.smpl-product-shell {
  --smpl-primary: var(--e-global-color-primary, #2f8262);
  --smpl-ink: var(--e-global-color-text, #202824);
  --smpl-muted: #59635e;
  --smpl-line: rgba(47, 70, 60, .18);
  --smpl-soft: rgba(47, 130, 98, .055);
  display: block;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  color: var(--smpl-ink);
  direction: rtl;
  font-family: var(--e-global-typography-text-font-family, "Vazirmatn"), "IRANSansX", Tahoma, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.smpl-product-shell *,
.smpl-product-shell *::before,
.smpl-product-shell *::after {
  box-sizing: border-box;
}

.smpl-product-layout {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  gap: clamp(34px, 4.5vw, 68px);
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: clamp(24px, 3.2vw, 46px) clamp(12px, 2.2vw, 30px);
  border: 0;
  background: transparent;
  box-shadow: none;
  direction: rtl;
}

.smpl-product-gallery-column,
.smpl-product-info-column {
  min-width: 0;
  width: 100%;
}

.smpl-product-info-column {
  direction: rtl;
  text-align: right;
}

.smpl-product-gallery-column .smpl-gallery {
  --smpl-green: var(--smpl-primary);
  --smpl-dark: var(--smpl-ink);
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

.smpl-product-shell .smpl-gallery,
.smpl-product-shell .smpl-main,
.smpl-product-shell .smpl-thumb {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.smpl-product-shell .smpl-gallery,
.smpl-product-shell .smpl-main {
  border-radius: 0;
}

.smpl-product-shell button {
  font-family: inherit;
}

.smpl-product-title {
  margin: 0 0 18px;
  color: var(--smpl-ink);
  font-family: var(--e-global-typography-primary-font-family, inherit);
  font-size: clamp(26px, 2.35vw, 36px);
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: -.015em;
  text-align: right;
  unicode-bidi: plaintext;
}

.smpl-product-description {
  max-width: 66ch;
  margin: 0 0 24px;
  color: var(--smpl-muted);
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 400;
  line-height: 1.95;
  text-align: right;
  unicode-bidi: plaintext;
}

.smpl-product-description p {
  margin: 0;
}

.smpl-specs-wrap {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--smpl-line);
  border-radius: 16px;
  background: transparent;
  box-shadow: 0 10px 30px rgba(24, 52, 40, .045);
  direction: rtl;
}

.smpl-specs {
  width: 100%;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: collapse !important;
  table-layout: fixed;
  background: transparent !important;
  color: var(--smpl-ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.65;
  direction: rtl;
}

.smpl-specs tr {
  background: transparent !important;
  transition: background-color .18s ease;
}

.smpl-specs tr:hover {
  background: var(--smpl-soft) !important;
}

.smpl-specs th,
.smpl-specs td {
  padding: 13px 15px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--smpl-line) !important;
  vertical-align: middle !important;
  text-align: right !important;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  overflow-wrap: anywhere;
}

.smpl-specs tr:last-child th,
.smpl-specs tr:last-child td {
  border-bottom: 0 !important;
}

.smpl-specs th {
  width: 36%;
  color: var(--smpl-ink);
  font-weight: 700 !important;
  border-left: 1px solid var(--smpl-line) !important;
  background: transparent !important;
}

.smpl-specs td,
.smpl-specs td p {
  margin: 0 !important;
  color: var(--smpl-muted);
  font-style: normal !important;
  font-weight: 400;
  unicode-bidi: plaintext;
}

.smpl-product-details {
  width: 100%;
  margin-top: clamp(34px, 5vw, 68px);
  padding: clamp(26px, 3.5vw, 46px) clamp(12px, 2.2vw, 30px) 10px;
  border: 0;
  border-top: 1px solid var(--smpl-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  direction: rtl;
}

.smpl-product-details-title {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 28px);
  width: 100%;
  margin: 0 auto clamp(24px, 3.5vw, 40px);
  color: var(--smpl-ink);
  font-family: var(--e-global-typography-primary-font-family, inherit);
  font-size: clamp(25px, 2.25vw, 34px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.015em;
  text-align: center;
  white-space: nowrap;
  unicode-bidi: plaintext;
}

.smpl-product-details-title::before,
.smpl-product-details-title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--smpl-line));
}

.smpl-product-details-title::after {
  background: linear-gradient(90deg, var(--smpl-line), transparent);
}

.smpl-product-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
  align-items: stretch;
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  counter-reset: smpl-detail;
}

.smpl-product-detail-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: clamp(18px, 2.5vw, 32px) clamp(18px, 2.5vw, 32px) 58px;
  overflow: hidden;
  border: 1px solid var(--smpl-line);
  border-radius: 22px;
  background: transparent;
  box-shadow: 0 14px 42px rgba(24, 52, 40, .055);
  counter-increment: smpl-detail;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.smpl-product-detail-image:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 130, 98, .38);
  box-shadow: 0 18px 48px rgba(24, 52, 40, .085);
}

.smpl-product-detail-image::before {
  content: counter(smpl-detail, decimal-leading-zero);
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--smpl-line);
  border-radius: 50%;
  color: var(--smpl-primary);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  direction: ltr;
}

.smpl-product-detail-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-width: 0;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

.smpl-product-detail-image figcaption {
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-top: 1px solid var(--smpl-line);
  color: var(--smpl-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 900px) {
  .smpl-product-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 18px 8px;
    align-items: start;
  }

  .smpl-product-gallery-column { grid-row: 1; }
  .smpl-product-info-column { grid-row: 2; }

  .smpl-product-gallery-column .smpl-gallery {
    max-width: 600px;
  }

  .smpl-product-title {
    margin-bottom: 14px;
    font-size: clamp(24px, 5.8vw, 31px);
  }

  .smpl-product-description {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.85;
  }

  .smpl-product-details {
    margin-top: 30px;
    padding: 28px 8px 8px;
  }
}

@media (max-width: 680px) {
  .smpl-product-shell {
    font-size: 14px;
  }

  .smpl-product-layout {
    gap: 22px;
    padding: 12px 0;
  }

  .smpl-specs-wrap {
    border-radius: 12px;
  }

  .smpl-specs th,
  .smpl-specs td {
    padding: 11px 9px !important;
    font-size: 12.5px !important;
  }

  .smpl-specs th {
    width: 39%;
  }

  .smpl-product-details {
    padding-right: 0;
    padding-left: 0;
  }

  .smpl-product-details-title {
    gap: 12px;
    margin-bottom: 22px;
    font-size: 24px;
  }

  .smpl-product-details-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 520px;
  }

  .smpl-product-detail-image {
    width: 100%;
    border-radius: 16px;
    padding: 18px 18px 52px;
  }

  .smpl-product-detail-image::before {
    top: 11px;
    right: 11px;
    width: 30px;
    height: 30px;
    font-size: 10px;
  }

  .smpl-product-detail-image figcaption {
    right: 14px;
    left: 14px;
    min-height: 42px;
    font-size: 12px;
  }
}

@media (max-width: 390px) {
  .smpl-product-title { font-size: 22px; }
  .smpl-product-details-title { font-size: 21px; }
  .smpl-specs th,
  .smpl-specs td { padding: 10px 7px !important; }
}

/* Related products - automatically shown under every SMPL product */
.smpl-related-products {
  width: 100%;
  max-width: 1240px;
  margin: clamp(42px, 5vw, 76px) auto 0;
  padding: clamp(28px, 3.5vw, 44px) clamp(10px, 2vw, 24px) 8px;
  border-top: 1px solid var(--smpl-line, #e5eee9);
  direction: rtl;
}

.smpl-related-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 26px;
  color: var(--smpl-ink, #173d31);
  font-family: var(--e-global-typography-primary-font-family, inherit);
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 850;
  line-height: 1.4;
  text-align: right;
}

.smpl-related-title::before {
  content: "";
  width: 5px;
  height: 30px;
  flex: 0 0 5px;
  border-radius: 99px;
  background: var(--smpl-primary, #2f8262);
  box-shadow: 0 5px 16px rgba(47, 130, 98, .24);
}

.smpl-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
  width: 100%;
  align-items: stretch;
}

.smpl-related-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(35, 74, 58, .12);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff 0%, #fcfdfc 100%);
  box-shadow: 0 10px 30px rgba(24, 52, 40, .07);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  isolation: isolate;
}

.smpl-related-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--smpl-primary, #2f8262);
  opacity: 0;
  transform: scaleX(.45);
  transition: opacity .25s ease, transform .25s ease;
}

.smpl-related-card:hover {
  transform: translateY(-6px);
  border-color: rgba(47, 130, 98, .3);
  box-shadow: 0 20px 46px rgba(24, 52, 40, .12);
}

.smpl-related-card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.smpl-related-card-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: clamp(12px, 1.5vw, 20px);
  overflow: hidden;
  border-bottom: 1px solid rgba(35, 74, 58, .09);
  background: radial-gradient(circle at 50% 42%, #fff 0%, #fbfcfb 68%, #f5f8f6 100%);
  box-sizing: border-box;
}

.smpl-related-card-image::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(47, 130, 98, .06);
  border-radius: 16px;
  pointer-events: none;
}

.smpl-related-card-image img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: contain;
  object-position: center;
  transition: transform .32s ease;
}

.smpl-related-card:hover .smpl-related-card-image img {
  transform: scale(1.035);
}

.smpl-related-placeholder {
  display: block;
  width: 62%;
  height: 62%;
  border-radius: 18px;
  background: linear-gradient(135deg, #f2f6f4, #e8efeb);
}

.smpl-related-card-body {
  min-height: 112px;
  padding: 16px 16px 18px;
  text-align: right;
}

.smpl-related-card-title {
  display: -webkit-box;
  min-height: 3em;
  margin: 0;
  overflow: hidden;
  color: var(--smpl-ink, #173d31);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-wrap: pretty;
}

.smpl-related-card-description {
  display: -webkit-box;
  margin: 9px 0 0;
  overflow: hidden;
  color: var(--smpl-muted, #66736d);
  font-size: 12.5px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Tablet: exactly 3 cards per row */
@media (max-width: 1024px) {
  .smpl-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
  }
}

/* Mobile: exactly 2 cards per row */
@media (max-width: 600px) {
  .smpl-related-products {
    margin-top: 36px;
    padding: 24px 0 6px;
  }

  .smpl-related-title {
    gap: 10px;
    margin: 0 4px 18px;
    font-size: 21px;
  }

  .smpl-related-title::before {
    width: 4px;
    height: 24px;
    flex-basis: 4px;
  }

  .smpl-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .smpl-related-card {
    border-radius: 16px;
    box-shadow: 0 7px 22px rgba(24, 52, 40, .07);
  }

  .smpl-related-card:hover {
    transform: translateY(-2px);
  }

  .smpl-related-card-image {
    padding: 8px;
  }

  .smpl-related-card-image::before {
    inset: 7px;
    border-radius: 12px;
  }

  .smpl-related-card-body {
    min-height: 74px;
    padding: 10px 9px 12px;
  }

  .smpl-related-card-title {
    min-height: 2.9em;
    font-size: 12.5px;
    line-height: 1.45;
  }

  .smpl-related-card-description {
    display: none;
  }
}
