/* ===================================================================
   آسان نصب پردیس — صفحات داخلی (محصول، breadcrumb، نظرات)
=================================================================== */

/* ===================== BREADCRUMB ===================== */
.theme-pardis .breadcrumb {
  background: var(--bg-muted, #F1F5F9);
  border-bottom: 1px solid var(--border, #E5E7EB);
  padding: 10px 0;
  font-size: .82rem;
}

.theme-pardis .breadcrumb ol {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px 0; margin: 0; padding: 0; list-style: none;
}

.theme-pardis .breadcrumb li {
  display: inline-flex; align-items: center; color: var(--ink-soft, #6B7280);
}

.theme-pardis .breadcrumb li:not(:first-child)::before {
  content: "‹"; margin: 0 8px; color: var(--ink-soft); font-size: 1rem;
}

.theme-pardis .breadcrumb a { color: var(--pardis-red, #D62828); font-weight: 600; }
.theme-pardis .breadcrumb a:hover { text-decoration: underline; }
.theme-pardis .breadcrumb span { color: var(--ink, #1F2937); font-weight: 600; }

/* ===================== صفحه محصول ===================== */
.theme-pardis .page-article--pardis-product .page-header { display: none; }

.theme-pardis .page-article--pardis-product {
  max-width: var(--container, 1240px);
  margin: 0 auto;
  padding: 0 20px 40px;
  overflow-x: hidden;
  min-width: 0;
}

.theme-pardis .product-hero.product-hero--enhanced,
.theme-pardis .page-article--pardis-product .product-hero--enhanced {
  display: block !important;
  width: 100%;
  min-width: 0;
  padding: 16px 0 20px;
  grid-template-columns: none !important;
  grid-template-areas: none !important;
  gap: 0 !important;
}

/* اگر CSS قدیمی pashapoosh هنوز grid والد را فعال کند، layout تمام عرض بگیرد */
.theme-pardis .product-hero--enhanced > .product-hero__layout {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.theme-pardis .product-hero__layout,
.theme-pardis .pardis-product-layout {
  display: grid !important;
  grid-template-columns: 340px minmax(0, 1fr);
  grid-template-rows: auto;
  grid-template-areas: "buy content";
  column-gap: 32px;
  row-gap: 0;
  align-items: start;
  direction: ltr;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  isolation: isolate;
}

.theme-pardis .pardis-product-content {
  grid-area: content;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  width: 100%;
  direction: rtl;
}

.theme-pardis .product-hero__head,
.theme-pardis .pardis-product-head {
  grid-area: unset;
  grid-column: unset;
  grid-row: unset;
  width: 100%;
  min-width: 0;
  margin: 0;
  direction: rtl;
}

.theme-pardis .product-hero__gallery {
  grid-area: unset;
  grid-column: unset;
  grid-row: unset;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  position: relative;
  direction: rtl;
  overflow: visible;
  flex: unset !important;
  justify-self: stretch;
  margin: 0;
  padding: 0;
}
.theme-pardis .product-hero__title {
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  font-weight: 800;
  line-height: 1.55;
  margin: 0;
  padding: 0 0 8px;
  border-bottom: 2px solid var(--pardis-red, #D62828);
  text-align: right;
  color: var(--ink, #1F2937);
  width: 100%;
  box-sizing: border-box;
}

.theme-pardis .product-hero__main {
  border: 1px solid var(--border, #E5E7EB);
  border-radius: var(--radius-lg, 14px);
  background: #fff;
  overflow: hidden;
  width: 100%;
}

.theme-pardis .product-hero__zoom {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  aspect-ratio: 1;
  max-height: min(460px, 42vw);
  width: 100%;
  background: var(--bg-muted, #F1F5F9);
  overflow: hidden;
  cursor: zoom-in;
}

.theme-pardis .product-hero__zoom.is-zoomable img {
  transition: transform .15s ease-out;
  will-change: transform;
}

.theme-pardis .product-hero__zoom img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 14px;
  margin: 0 auto;
}

.theme-pardis .product-hero__zoom-hint {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: .76rem; padding: 5px 10px; border-radius: 6px;
  opacity: 0; transition: opacity .2s;
}

.theme-pardis .product-hero__zoom:hover .product-hero__zoom-hint { opacity: 1; }

.theme-pardis .product-hero__thumbs {
  display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap;
  justify-content: flex-start;
}

.theme-pardis .product-hero__summary {
  width: 100%;
  margin-top: 6px;
  padding: 14px 16px;
  border: 1px dashed var(--border, #E5E7EB);
  border-radius: var(--radius, 10px);
  background: #FAFFFC;
}

.theme-pardis .product-hero__summary-body {
  font-size: .88rem;
  line-height: 1.75;
  color: var(--ink, #1F2937);
}

.theme-pardis .product-hero__summary-body p {
  margin: 0 0 .65em;
}

.theme-pardis .product-hero__summary-body p:last-child {
  margin-bottom: 0;
}

.theme-pardis .product-hero__thumb {
  width: 72px; height: 72px; border-radius: 8px;
  border: 2px solid var(--border, #E5E7EB);
  background: #fff; padding: 4px; cursor: pointer;
  transition: border-color .2s;
  overflow: hidden;
}

.theme-pardis .product-hero__thumb.is-active { border-color: var(--pardis-red, #D62828); }
.theme-pardis .product-hero__thumb img { width: 100%; height: 100%; object-fit: contain; }

/* سایدبار خرید — ستون چپ، عرض ثابت */
.theme-pardis .pardis-product-sidebar,
.theme-pardis .product-hero__layout .product-sidebar {
  grid-area: buy;
  grid-column: 1 / 2;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: calc(var(--pardis-header-h, 154px) + 14px);
  width: 100%;
  max-width: 340px;
  min-width: 0;
  align-self: start;
  justify-self: start;
  box-sizing: border-box;
  flex: unset !important;
  direction: rtl;
  overflow: hidden;
  margin: 0;
}

.theme-pardis .pardis-product-box--desc.pardis-product-box--after-buy {
  margin-top: 4px;
  border-top: 1px dashed var(--border, #E5E7EB);
  padding-top: 12px;
}

.theme-pardis .pardis-product-box--desc .pardis-product-box__desc {
  font-size: .88rem;
  line-height: 1.75;
  color: var(--ink, #1F2937);
}

.theme-pardis .pardis-product-box--desc .pardis-product-box__desc p {
  margin: 0 0 .65em;
}

.theme-pardis .pardis-product-box--desc .pardis-product-box__desc p:last-child {
  margin-bottom: 0;
}

.theme-pardis .pardis-product-box--desc .pardis-product-box__desc p {
  margin: 0 0 .6em;
}

.theme-pardis .pardis-product-box--after-buy {
  border-color: #D1E7DD;
  background: #FAFFFC;
}

.theme-pardis .pardis-product-box {
  border: 1.5px solid #B8D4E8;
  border-radius: var(--radius, 10px);
  padding: 14px 16px;
  background: #fff;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* خنثی‌سازی CSS قدیمی pashapoosh روی صفحه محصول */
.theme-pardis .page-article--pardis-product .product-hero--enhanced {
  display: block !important;
  grid-template-columns: none !important;
  grid-template-areas: none !important;
}

.theme-pardis .page-article--pardis-product .product-hero__layout .product-hero__head,
.theme-pardis .page-article--pardis-product .product-hero__layout .pardis-product-head {
  grid-area: unset !important;
  grid-column: unset !important;
  grid-row: unset !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.theme-pardis .page-article--pardis-product .product-hero__layout .pardis-product-content {
  grid-area: content !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.theme-pardis .page-article--pardis-product .product-hero__layout .product-hero__gallery {
  grid-area: unset !important;
  grid-column: unset !important;
  grid-row: unset !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.theme-pardis .page-article--pardis-product .product-hero__layout .product-hero__main,
.theme-pardis .page-article--pardis-product .product-hero__layout .product-hero__zoom {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
}

.theme-pardis .page-article--pardis-product .product-hero__layout .product-sidebar,
.theme-pardis .page-article--pardis-product .product-hero__layout .pardis-product-sidebar {
  grid-area: buy !important;
  grid-column: 1 / 2 !important;
  grid-row: 1 / -1 !important;
  position: sticky;
  max-width: 340px !important;
  width: 100% !important;
  margin: 0 !important;
}

/* خنثی grid-area قدیمی pashapoosh روی سایدبار */
.theme-pardis .page-article--pardis-product .product-sidebar {
  grid-area: buy !important;
}

.theme-pardis .pardis-product-box--title {
  border-color: #B8D4E8;
  background: linear-gradient(180deg, #F8FBFF 0%, #fff 100%);
}

.theme-pardis .pardis-product-box__title {
  font-size: 1.15rem; font-weight: 800; margin: 0; line-height: 1.5;
  color: var(--ink, #1F2937);
}

.theme-pardis .pardis-product-box__label {
  display: block; font-size: .82rem; font-weight: 700;
  color: var(--ink-soft, #6B7280); margin-bottom: 6px;
}

.theme-pardis .pardis-product-box__price-row {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}

.theme-pardis .pardis-product-box__price {
  font-size: 1.2rem; font-weight: 800; color: var(--pardis-red, #D62828);
}

.theme-pardis .pardis-product-box__strike {
  font-size: .9rem; color: var(--ink-soft);
}

.theme-pardis .pardis-product-box__desc {
  font-size: .86rem; line-height: 1.75; color: var(--ink);
}

.theme-pardis .pardis-product-box__desc ul { margin: 0; padding-right: 1.2em; }
.theme-pardis .pardis-product-box__desc li { margin-bottom: 4px; }

.theme-pardis .pardis-select {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--border, #E5E7EB);
  border-radius: 8px; font-family: inherit;
  font-size: .9rem; background: #fff; color: var(--ink);
  cursor: pointer;
}

.theme-pardis .pardis-select:focus {
  outline: none; border-color: var(--pardis-blue, #3B82C4);
  box-shadow: 0 0 0 3px rgba(59, 130, 196, .12);
}

.theme-pardis .pardis-product-box__final-price {
  font-size: 1.25rem; font-weight: 800; color: var(--pardis-red, #D62828);
}

.theme-pardis .pardis-size-cap {
  font-size: .82rem; color: var(--ink-soft); margin: -4px 0 0;
  display: flex; align-items: center; gap: 6px;
}

.theme-pardis .pardis-add-cart {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px 20px;
  border: none; border-radius: 8px;
  background: var(--pardis-green, #22A55B); color: #fff;
  font-size: 1rem; font-weight: 800;
  box-shadow: 0 6px 18px rgba(34, 165, 91, .3);
  transition: background .2s, transform .2s;
}

.theme-pardis .pardis-add-cart:hover {
  background: var(--pardis-green-dark, #178A47);
  transform: translateY(-1px);
}

.theme-pardis .pardis-add-cart--phone { background: var(--pardis-blue, #3B82C4); }
.theme-pardis .pardis-add-cart--wa { background: #25D366; }

.theme-pardis .pardis-out-stock {
  padding: 14px; border-radius: 8px;
  background: var(--pardis-red-soft, #FEE2E2);
  color: var(--pardis-red-dark, #B91C1C);
  font-weight: 700; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

.theme-pardis .pardis-contact-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.theme-pardis .pardis-contact-btns .pardis-add-cart {
  width: 100%;
  box-sizing: border-box;
}

.theme-pardis .pardis-product-features {
  margin-top: 14px;
  border: 1px solid #E0E0E6;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(63, 64, 100, .06);
}

.theme-pardis .pardis-product-features__title {
  margin: 0;
  padding: 11px 14px;
  font-size: .88rem;
  font-weight: 700;
  color: #3F4064;
  background: #F0F0F1;
  border-bottom: 1px solid #E0E0E6;
}

.theme-pardis .pardis-product-features__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.theme-pardis .pardis-product-features__item {
  display: block;
  margin: 0;
  padding: 11px 14px;
  border-bottom: 1px solid #F0F0F1;
  font-size: .82rem;
  line-height: 1.7;
  color: #3F4064;
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}

.theme-pardis .pardis-product-features__item:last-child {
  border-bottom: none;
}

.theme-pardis .pardis-product-features__item:nth-child(even) {
  background: #FAFAFB;
}

.theme-pardis .pardis-trust-card {
  margin-top: 14px;
  border: 1px solid #E0E0E6;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(63, 64, 100, .06);
}

.theme-pardis .pardis-trust-card__title {
  margin: 0;
  padding: 11px 14px;
  font-size: .88rem;
  font-weight: 700;
  color: #3F4064;
  background: #F0F0F1;
  border-bottom: 1px solid #E0E0E6;
}

.theme-pardis .pardis-trust-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
}

.theme-pardis .pardis-trust-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid #F0F0F1;
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.6;
  color: #3F4064;
}

.theme-pardis .pardis-trust-list__item:last-child {
  border-bottom: none;
}

.theme-pardis .pardis-trust-list__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #E8F5E9;
  color: #00A049;
  font-size: .62rem;
}

.theme-pardis .pardis-trust-list__text {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

/* واریانت‌ها */
.theme-pardis .product-variants {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.theme-pardis .pardis-product-box--variants {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.theme-pardis .product-variants__group {
  min-width: 0; max-width: 100%;
}

.theme-pardis .product-variant-select {
  width: 100%;
}

.theme-pardis .product-variants__label {
  display: block; font-size: .82rem; font-weight: 700;
  color: var(--ink-soft); margin-bottom: 6px;
}

.theme-pardis .product-variants__options {
  display: flex; flex-wrap: wrap; gap: 8px;
  min-width: 0; max-width: 100%;
}

.theme-pardis .product-variants__options--sizes {
  flex-direction: column;
  align-items: stretch;
}

.theme-pardis .product-variant-size,
.theme-pardis .product-variant-color {
  padding: 8px 12px; border-radius: 8px;
  border: 1.5px solid var(--border); background: #fff;
  font-size: .84rem; font-weight: 600; cursor: pointer;
  transition: border-color .15s, background .15s;
  max-width: 100%;
}

.theme-pardis .product-variant-size {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  text-align: right;
  white-space: normal;
  word-break: break-word;
}

.theme-pardis .product-variant-size__price {
  font-size: .8rem;
  font-weight: 800;
  color: var(--pardis-red, #D62828);
}

.theme-pardis .product-variant-size.is-active,
.theme-pardis .product-variant-color.is-active {
  border-color: var(--pardis-red); background: var(--pardis-red-soft);
  color: var(--pardis-red-dark);
}

.theme-pardis .product-variant-size.is-out,
.theme-pardis .product-variant-color.is-out { opacity: .45; cursor: not-allowed; }

/* ===================== تب‌های محصول ===================== */
.theme-pardis .pardis-product-tabs {
  margin: 24px 0 32px;
  border: 1px solid var(--border, #E5E7EB);
  border-radius: var(--radius-lg, 14px);
  overflow: hidden; background: #fff;
}

.theme-pardis .pardis-product-tabs__nav {
  display: flex; flex-wrap: wrap;
  background: var(--bg-muted, #F1F5F9);
  border-bottom: 1px solid var(--border, #E5E7EB);
}

.theme-pardis .pardis-product-tabs__tab {
  flex: 1; min-width: 120px;
  padding: 14px 18px; border: none; background: transparent;
  font-family: inherit; font-size: .9rem; font-weight: 700;
  color: var(--ink-soft, #6B7280); cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s, background .2s;
}

.theme-pardis .pardis-product-tabs__tab:hover { color: var(--pardis-red, #D62828); }

.theme-pardis .pardis-product-tabs__tab.is-active {
  color: var(--pardis-red, #D62828);
  background: #fff;
  border-bottom-color: var(--pardis-red, #D62828);
}

.theme-pardis .pardis-product-tabs__panel {
  display: none; padding: 24px;
}

.theme-pardis .pardis-product-tabs__panel.is-active { display: block; }

.theme-pardis .pardis-tab-content { font-size: .92rem; line-height: 1.85; }
.theme-pardis .pardis-tab-content img { border-radius: 8px; margin: 12px 0; }

.theme-pardis .pardis-specs-wrap .product-specs__head { display: none; }
.theme-pardis .pardis-specs-wrap .product-specs { border: none; padding: 0; margin: 0; }

/* ===================== محصولات پیشنهادی ===================== */
.theme-pardis .pardis-related {
  margin: 32px 0;
  border: 2px solid var(--pardis-red, #D62828);
  border-radius: var(--radius-lg, 14px);
  padding: 20px;
  background: #fff;
}

.theme-pardis .pardis-related__title {
  font-size: 1.1rem; font-weight: 800;
  color: var(--pardis-red, #D62828);
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--pardis-red-soft, #FEE2E2);
}

.theme-pardis .pardis-related__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}

.theme-pardis .pardis-related__shell {
  position: relative;
  padding-inline: 40px;
  padding-bottom: 8px;
  z-index: var(--z-carousel, 1);
  isolation: isolate;
}

.theme-pardis .pardis-related-swiper {
  overflow: hidden;
  padding-bottom: 44px;
}

.theme-pardis .pardis-related-swiper .swiper-wrapper {
  align-items: stretch;
}

.theme-pardis .pardis-related-swiper .swiper-slide {
  height: auto;
  display: flex;
  box-sizing: border-box;
}

.theme-pardis .pardis-related-swiper .swiper-slide > .hp-product-card,
.theme-pardis .pardis-related-swiper .swiper-slide > .pardis-product-card {
  width: 100%;
  min-height: 0;
}

.theme-pardis .pardis-related-swiper .swiper-pagination,
.theme-pardis .pardis-related-swiper .hp-swiper-pagination {
  position: absolute;
  bottom: 10px !important;
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  line-height: 1;
}

.theme-pardis .pardis-related-swiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(30, 51, 80, .25);
  opacity: 1;
  margin: 0 4px !important;
  transition: transform .2s ease, background .2s ease, width .2s ease;
}

.theme-pardis .pardis-related-swiper .swiper-pagination-bullet-active {
  background: var(--pardis-blue, #3B82C4);
  transform: scale(1.15);
  width: 16px;
  border-radius: 999px;
}

.theme-pardis .pardis-related__shell.is-single {
  padding-inline: 0;
}

.theme-pardis .pardis-related__shell.is-single .hp-swiper-btn {
  display: none;
}

.theme-pardis .pardis-related__shell.is-few .swiper-slide {
  max-width: 260px;
}

.theme-pardis .pardis-related__shell.is-few .hp-swiper-btn {
  display: none;
}

.theme-pardis .pardis-related__shell.is-few .swiper-wrapper {
  justify-content: flex-start;
}

/* ===================== نظرات ===================== */
.theme-pardis .comments-section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border, #E5E7EB);
}

.theme-pardis .comment-form {
  background: var(--bg-soft, #F8FAFC);
  border: 1px solid var(--border, #E5E7EB);
  border-radius: var(--radius-lg, 14px);
  padding: 24px;
}

.theme-pardis .comment-form h3 {
  font-size: 1.05rem; margin-bottom: 16px;
  color: var(--pardis-red, #D62828);
}

.theme-pardis .comment-form input,
.theme-pardis .comment-form textarea {
  border: 1.5px solid var(--border, #E5E7EB);
  border-radius: 8px; padding: 10px 12px;
  font-family: inherit; font-size: .9rem; width: 100%;
}

.theme-pardis .comment-form input:focus,
.theme-pardis .comment-form textarea:focus {
  outline: none; border-color: var(--pardis-blue, #3B82C4);
}

.theme-pardis .comment-form button[type="submit"] {
  background: var(--pardis-red, #D62828); color: #fff;
  border: none; border-radius: 8px;
  padding: 12px 28px; font-weight: 700; font-size: .92rem;
}

/* ===================== صفحات عمومی ===================== */
.theme-pardis .page-article:not(.page-article--pardis-product) {
  max-width: var(--container, 1240px);
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.theme-pardis .page-h1 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--pardis-red, #D62828);
  margin-bottom: 20px;
}

.theme-pardis .page-content,
.theme-pardis .page-content-intro {
  font-size: .95rem; line-height: 1.9;
  direction: rtl;
  text-align: right;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.theme-pardis .page-content > *:not(ul):not(ol):not(table),
.theme-pardis .page-content-intro > *:not(ul):not(ol):not(table) {
  margin-right: 0 !important;
  padding-right: 0 !important;
  max-width: 100%;
}

.theme-pardis .page-content > p,
.theme-pardis .page-content > div,
.theme-pardis .page-content-intro > p,
.theme-pardis .page-content-intro > div {
  text-align: right !important;
}

.theme-pardis .page-content [style*="padding-right"],
.theme-pardis .page-content [style*="margin-right"],
.theme-pardis .page-content-intro [style*="padding-right"],
.theme-pardis .page-content-intro [style*="margin-right"] {
  padding-right: 0 !important;
  margin-right: 0 !important;
}

.theme-pardis .page-header {
  padding-inline: 0;
  margin-inline: 0;
}

/* برچسب‌های دسته — بین H1 و لیست محصولات */
.theme-pardis .category-highlights {
  margin: 8px 0 28px;
  padding: 18px 20px 20px;
  background: linear-gradient(165deg, #fff 0%, #F8FAFC 48%, #EEF2F7 100%);
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 6px 22px rgba(15, 23, 42, .06);
}

.theme-pardis .category-highlights__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 12px 14px;
}

.theme-pardis .category-highlights__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.5;
  color: #1E293B;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
  transition: transform .18s ease, box-shadow .18s ease;
}

.theme-pardis .category-highlights__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .1);
}

.theme-pardis .category-highlights__icon-wrap {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .88rem;
}

.theme-pardis .category-highlights__text {
  min-width: 0;
  word-break: break-word;
}

.theme-pardis .category-highlights__item:nth-child(5n+1) {
  background: linear-gradient(145deg, #FFF7F7, #FEE2E2);
  border-color: #FECACA;
}
.theme-pardis .category-highlights__item:nth-child(5n+1) .category-highlights__icon-wrap {
  color: #D62828;
  background: rgba(214, 40, 40, .14);
}

.theme-pardis .category-highlights__item:nth-child(5n+2) {
  background: linear-gradient(145deg, #F5F9FF, #DBEAFE);
  border-color: #BFDBFE;
}
.theme-pardis .category-highlights__item:nth-child(5n+2) .category-highlights__icon-wrap {
  color: #2563EB;
  background: rgba(37, 99, 235, .12);
}

.theme-pardis .category-highlights__item:nth-child(5n+3) {
  background: linear-gradient(145deg, #F5F3FF, #EDE9FE);
  border-color: #DDD6FE;
}
.theme-pardis .category-highlights__item:nth-child(5n+3) .category-highlights__icon-wrap {
  color: #7C3AED;
  background: rgba(124, 58, 237, .12);
}

.theme-pardis .category-highlights__item:nth-child(5n+4) {
  background: linear-gradient(145deg, #ECFEFF, #CFFAFE);
  border-color: #A5F3FC;
}
.theme-pardis .category-highlights__item:nth-child(5n+4) .category-highlights__icon-wrap {
  color: #0891B2;
  background: rgba(8, 145, 178, .12);
}

.theme-pardis .category-highlights__item:nth-child(5n+5) {
  background: linear-gradient(145deg, #F0FDF4, #DCFCE7);
  border-color: #BBF7D0;
}
.theme-pardis .category-highlights__item:nth-child(5n+5) .category-highlights__icon-wrap {
  color: #16A34A;
  background: rgba(22, 163, 74, .12);
}

@media (min-width: 1024px) {
  .theme-pardis .category-highlights__grid--count-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .theme-pardis .category-highlights__grid--count-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .theme-pardis .category-highlights__grid--count-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .theme-pardis .category-highlights__grid--count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-pardis .category-highlights__grid--count-1 {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }
}

.theme-pardis .page-excerpt--category {
  margin: 0 0 22px;
}

.theme-pardis .page-excerpt--category p {
  margin: 0 0 .65em;
}

.theme-pardis .page-excerpt--category p:last-child {
  margin-bottom: 0;
}

.theme-pardis .page-content > div,
.theme-pardis .page-content > section,
.theme-pardis .page-content-intro > div,
.theme-pardis .page-content-intro > section {
  width: 100% !important;
  max-width: 100% !important;
  padding-inline: 0 !important;
  margin-inline: 0 !important;
  box-sizing: border-box;
}

.theme-pardis .page-content div,
.theme-pardis .page-content-intro div {
  padding-right: 0 !important;
  margin-right: 0 !important;
}

.theme-pardis .page-content,
.theme-pardis .page-content-intro,
.theme-pardis .pardis-tab-content,
.theme-pardis .section-text .section-content {
  font-family: inherit !important;
}

.theme-pardis .page-content [style*="font-family"],
.theme-pardis .pardis-tab-content [style*="font-family"] {
  font-family: inherit !important;
}

.theme-pardis .page-content img,
.theme-pardis .page-content-intro img,
.theme-pardis .pardis-tab-content img,
.theme-pardis .section-text img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.25rem auto;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.theme-pardis .page-content p[style*="text-align: left"],
.theme-pardis .page-content div[style*="text-align: left"],
.theme-pardis .page-content [dir="ltr"]:not([dir="rtl"]) {
  text-align: right !important;
  direction: rtl !important;
}

.theme-pardis .page-type-article .page-article,
.theme-pardis .page-article.page-type-article {
  direction: rtl;
}

.theme-pardis .page-type-article .page-h1,
.theme-pardis .page-article.page-type-article .page-h1 {
  text-align: right;
}

.theme-pardis .page-content figure,
.theme-pardis .pardis-tab-content figure {
  margin: 1.25rem auto;
  text-align: center;
  max-width: 100%;
}

.theme-pardis .page-content h2 {
  font-size: 1.2rem; margin-top: 1.6em;
  padding-right: 12px;
  border-right: 4px solid var(--pardis-red, #D62828);
}

.theme-pardis .page-content table {
  width: 100%; border-collapse: collapse; margin: 16px 0;
}

.theme-pardis .page-content th,
.theme-pardis .page-content td {
  border: 1px solid var(--border, #E5E7EB);
  padding: 10px 12px; font-size: .88rem;
}

.theme-pardis .page-content th { background: var(--bg-muted, #F1F5F9); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
  .theme-pardis .product-hero__layout,
  .theme-pardis .pardis-product-layout,
  .theme-pardis .page-article--pardis-product .product-hero__layout,
  .theme-pardis .page-article--pardis-product .pardis-product-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    grid-template-areas:
      "content"
      "buy" !important;
    gap: 16px !important;
    direction: rtl !important;
  }

  .theme-pardis .pardis-product-content,
  .theme-pardis .page-article--pardis-product .product-hero__layout .pardis-product-content {
    grid-area: content !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .theme-pardis .product-hero__head,
  .theme-pardis .pardis-product-head,
  .theme-pardis .page-article--pardis-product .product-hero__layout .product-hero__head,
  .theme-pardis .page-article--pardis-product .product-hero__layout .pardis-product-head {
    grid-area: unset !important;
    grid-column: unset !important;
    grid-row: unset !important;
    width: 100% !important;
  }

  .theme-pardis .product-hero__gallery,
  .theme-pardis .pardis-product-gallery,
  .theme-pardis .page-article--pardis-product .product-hero__layout .product-hero__gallery {
    grid-area: unset !important;
    grid-column: unset !important;
    grid-row: unset !important;
    width: 100% !important;
    max-width: 100% !important;
    align-items: stretch !important;
  }

  .theme-pardis .pardis-product-sidebar,
  .theme-pardis .product-hero__layout .product-sidebar,
  .theme-pardis .page-article--pardis-product .product-hero__layout .product-sidebar,
  .theme-pardis .page-article--pardis-product .product-hero__layout .pardis-product-sidebar {
    grid-area: buy !important;
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .theme-pardis .pardis-product-sidebar .pardis-product-box,
  .theme-pardis .pardis-product-sidebar .pardis-product-box--price,
  .theme-pardis .pardis-product-sidebar .pardis-product-box--qty,
  .theme-pardis .pardis-product-sidebar .pardis-product-box--variants,
  .theme-pardis .pardis-product-sidebar .pardis-size-cap,
  .theme-pardis .pardis-product-sidebar .pardis-product-box--final,
  .theme-pardis .pardis-product-sidebar .pardis-add-cart,
  .theme-pardis .pardis-product-sidebar .pardis-out-stock,
  .theme-pardis .pardis-product-sidebar .pardis-contact-btns,
  .theme-pardis .pardis-product-sidebar .pardis-trust-card,
  .theme-pardis .pardis-product-sidebar .pardis-trust-list,
  .theme-pardis .pardis-product-sidebar .pardis-product-features,
  .theme-pardis .pardis-product-sidebar .pardis-product-box--desc {
    width: 100% !important;
    max-width: 100% !important;
    grid-column: auto !important;
    margin: 0 !important;
  }

  .theme-pardis .pardis-product-sidebar .pardis-contact-btns {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .theme-pardis .pardis-product-sidebar .pardis-contact-btns .pardis-add-cart {
    width: 100% !important;
  }

  .theme-pardis .pardis-product-sidebar .pardis-product-features,
  .theme-pardis .pardis-product-sidebar .pardis-trust-card {
    margin-top: 12px !important;
    border-radius: 10px !important;
  }

  .theme-pardis .pardis-product-sidebar .pardis-product-features__title,
  .theme-pardis .pardis-product-sidebar .pardis-trust-card__title {
    padding: 10px 12px;
    font-size: .84rem;
  }

  .theme-pardis .pardis-product-sidebar .pardis-product-features__item {
    padding: 10px 12px;
    font-size: .78rem;
    line-height: 1.65;
  }

  .theme-pardis .pardis-product-sidebar .pardis-trust-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .theme-pardis .pardis-product-sidebar .pardis-trust-list__item {
    padding: 10px 12px;
    font-size: .78rem;
    line-height: 1.55;
    align-items: flex-start;
  }

  .theme-pardis .pardis-product-sidebar .pardis-trust-list__icon {
    margin-top: 2px;
  }

  .theme-pardis .product-hero__main {
    width: 100%;
    max-width: 100%;
  }

  .theme-pardis .product-hero__zoom {
    max-height: min(360px, 78vw);
    margin-inline: auto;
  }

  .theme-pardis .product-hero__thumbs {
    justify-content: flex-start;
  }

  .theme-pardis .product-hero__summary {
    max-width: 100%;
  }

  .theme-pardis .pardis-related__grid { grid-template-columns: repeat(2, 1fr); }
  .theme-pardis .pardis-product-tabs__tab { min-width: 50%; flex: 1 1 50%; }
}

@media (max-width: 520px) {
  .theme-pardis .category-highlights {
    margin-bottom: 16px;
    padding: 12px 10px 14px;
    border-radius: 12px;
  }

  .theme-pardis .category-highlights__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .theme-pardis .category-highlights__item {
    min-height: 46px;
    padding: 9px 10px;
    font-size: .74rem;
    line-height: 1.45;
    border-radius: 10px;
    gap: 7px;
  }

  .theme-pardis .category-highlights__item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-content: center;
    text-align: center;
    padding: 11px 14px;
    min-height: 48px;
  }

  .theme-pardis .category-highlights__icon-wrap {
    width: 26px;
    height: 26px;
    font-size: .76rem;
  }

  .theme-pardis .pardis-related__grid { grid-template-columns: 1fr; }
  .theme-pardis .product-hero__thumb { width: 60px; height: 60px; }
  .theme-pardis .product-hero__zoom { max-height: min(320px, 88vw); }
  .theme-pardis .pardis-product-tabs__tab { flex: 1 1 100%; }
  .theme-pardis .floating-social { left: 8px; transform: translateY(-50%) scale(.88); }
}

/* ===================== لایت‌باکس گالری (main.js) ===================== */
.lb-overlay {
  padding: 20px;
  box-sizing: border-box;
}

.lb-fig {
  position: relative;
  max-width: min(94vw, 980px);
  width: 100%;
}

.lb-img {
  max-width: min(94vw, 980px) !important;
  max-height: 82vh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}

.lb-cap {
  color: #fff !important;
  font-size: .9rem !important;
  line-height: 1.6 !important;
  padding: 0 12px;
}

.lb-btn {
  position: fixed;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .25);
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .15s;
  z-index: 10001;
  backdrop-filter: blur(4px);
}

.lb-btn:hover {
  background: rgba(255, 255, 255, .32);
  transform: scale(1.05);
}

.lb-close {
  top: 16px;
  left: 16px;
  font-size: 28px;
}

.lb-prev {
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
}

.lb-next {
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
}

.lb-prev:hover {
  transform: translateY(-50%) scale(1.05);
}

.lb-next:hover {
  transform: translateY(-50%) scale(1.05);
}

@media (max-width: 640px) {
  .lb-overlay { padding: 12px; }
  .lb-btn { width: 42px; height: 42px; font-size: 18px; }
  .lb-close { top: 10px; left: 10px; }
  .lb-prev { right: 10px; }
  .lb-next { left: 10px; }
  .lb-img { max-height: 76vh !important; }
}
