
/* =========================================
   DESHIGRAM — FINAL PRODUCT DETAIL PAGE
   Replace: website/css/product.css
========================================= */

:root {
  --pd-green: #0f4a32;
  --pd-green-2: #177a4a;
  --pd-green-soft: #eaf5ed;
  --pd-cream: #fbf8f0;
  --pd-cream-2: #f3ecdd;
  --pd-gold: #c9962f;
  --pd-text: #1e2b24;
  --pd-muted: #69756e;
  --pd-white: #ffffff;
  --pd-border: #e4e3da;
  --pd-shadow: 0 24px 70px rgba(15, 74, 50, 0.13);
}

[hidden] {
  display: none !important;
}

/* ---------- Main product area ---------- */

.product-detail-page {
  padding: 44px 0 105px;
  background:
    radial-gradient(circle at 92% 6%, rgba(23, 122, 74, 0.12), transparent 28%),
    linear-gradient(180deg, #fffdf8 0%, var(--pd-cream) 100%);
}

.product-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 34px;
  color: var(--pd-muted);
  font-size: 14px;
}

.product-breadcrumb a {
  transition: color .2s ease;
}

.product-breadcrumb a:hover,
.product-breadcrumb strong {
  color: var(--pd-green);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: start;
  gap: 66px;
}

/* ---------- Gallery ---------- */

.dynamic-product-gallery {
  position: sticky;
  top: 125px;
}

.dynamic-main-image {
  position: relative;
  display: grid;
  min-height: 610px;
  place-items: center;
  padding: 58px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, #ffffff 0%, #edf6ed 62%, #e4f0e5 100%);
  border: 1px solid rgba(15, 74, 50, 0.09);
  border-radius: 32px;
  box-shadow: var(--pd-shadow);
}

.dynamic-main-image::before,
.dynamic-main-image::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.dynamic-main-image::before {
  width: 420px;
  height: 420px;
  border: 1px solid rgba(201, 150, 47, 0.26);
}

.dynamic-main-image::after {
  width: 250px;
  height: 250px;
  top: -110px;
  right: -85px;
  background: rgba(201, 150, 47, 0.08);
}

.dynamic-main-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  height: 490px;
  object-fit: contain;
  filter: drop-shadow(0 24px 28px rgba(15, 74, 50, 0.16));
  transition: transform .35s ease;
}

.dynamic-main-image:hover img {
  transform: scale(1.045);
}

.dynamic-product-badge {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  padding: 9px 15px;
  color: #fff;
  background: var(--pd-green);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .45px;
  box-shadow: 0 8px 20px rgba(15, 74, 50, 0.18);
}

.dynamic-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.dynamic-thumbnail {
  display: grid;
  height: 118px;
  place-items: center;
  padding: 11px;
  overflow: hidden;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 17px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 74, 50, 0.06);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.dynamic-thumbnail:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(15, 74, 50, 0.1);
}

.dynamic-thumbnail.active {
  border-color: var(--pd-green-2);
}

.dynamic-thumbnail img {
  width: 100%;
  height: 92px;
  object-fit: contain;
}

/* ---------- Product content ---------- */

.dynamic-product-content {
  padding-top: 10px;
}

.dynamic-product-category {
  color: var(--pd-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.25px;
  text-transform: uppercase;
}

.dynamic-product-content h1 {
  margin-top: 12px;
  color: var(--pd-green);
  font-family:"Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(46px, 5.5vw, 72px);
  line-height: 1.04;
  letter-spacing: -2px;
}

.dynamic-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.dynamic-rating span {
  color: var(--pd-gold);
  letter-spacing: 2px;
}

.dynamic-rating small {
  color: var(--pd-muted);
}

.dynamic-product-intro {
  margin-top: 24px;
  color: var(--pd-muted);
  font-size: 18px;
  line-height: 1.8;
}

.dynamic-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  padding: 24px 25px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--pd-border);
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(15, 74, 50, 0.06);
}

.price-label {
  display: block;
  color: var(--pd-muted);
  font-size: 13px;
}

.price-values {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 5px;
}

.price-values strong {
  color: var(--pd-green);
  font-size: 32px;
  line-height: 1;
}

.price-values del {
  color: #99a39d;
  font-size: 17px;
}

.dynamic-weight {
  padding: 9px 15px;
  color: var(--pd-green);
  background: var(--pd-green-soft);
  border-radius: 999px;
  font-weight: 700;
}

.product-feature-list {
  margin-top: 32px;
}

.product-feature-list h2 {
  color: var(--pd-green);
  font-family:"Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 28px;
}

.product-feature-list > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
  margin-top: 16px;
}

.dynamic-feature-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 64px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--pd-border);
  border-radius: 14px;
}

.dynamic-feature-item span {
  display: grid;
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  place-items: center;
  color: #fff;
  background: var(--pd-green-2);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}

.dynamic-feature-item p {
  margin: 0;
  color: var(--pd-green);
  font-size: 14px;
  font-weight: 600;
}

.dynamic-product-actions {
  display: flex;
  gap: 14px;
  margin-top: 31px;
}

.dynamic-product-actions .button {
  flex: 1;
  min-height: 58px;
}

.launch-information {
  margin-top: 21px;
  padding: 19px 20px;
  background: rgba(201, 150, 47, 0.09);
  border-left: 4px solid var(--pd-gold);
  border-radius: 5px 14px 14px 5px;
}

.launch-information strong {
  color: var(--pd-green);
}

.launch-information p {
  margin-top: 5px;
  color: var(--pd-muted);
  font-size: 14px;
}

/* ---------- Tabs section ---------- */

.dynamic-information-section {
  padding: 95px 0;
  background: #fff;
}

.dynamic-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--pd-border);
}

.dynamic-tab {
  padding: 13px 22px;
  color: var(--pd-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}

.dynamic-tab:hover,
.dynamic-tab.active {
  color: #fff;
  background: var(--pd-green);
}

.dynamic-tab-content {
  max-width: 980px;
  min-height: 300px;
  margin: 45px auto 0;
}

.dynamic-panel {
  display: none;
}

.dynamic-panel.active {
  display: block;
  animation: productFade .35s ease;
}

@keyframes productFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dynamic-panel h2 {
  margin-top: 18px;
  color: var(--pd-green);
  font-family:"Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(36px, 5vw, 52px);
}

.dynamic-panel > p {
  margin-top: 20px;
  color: var(--pd-muted);
  font-size: 18px;
  line-height: 1.85;
}

.product-information-list {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 25px;
  padding: 0;
  list-style: none;
}

.product-information-list li {
  padding: 12px 18px;
  color: var(--pd-green);
  background: var(--pd-green-soft);
  border-radius: 999px;
  font-weight: 700;
}

.statutory-note {
  padding: 18px;
  background: var(--pd-cream);
  border-radius: 13px;
  font-size: 14px !important;
}

.dynamic-usage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.dynamic-usage-grid article {
  padding: 28px;
  background: var(--pd-cream);
  border: 1px solid var(--pd-border);
  border-radius: 18px;
}

.dynamic-usage-grid span {
  color: var(--pd-gold);
  font-size: 13px;
  font-weight: 700;
}

.dynamic-usage-grid p {
  margin-top: 13px;
  color: var(--pd-muted);
}

/* ---------- Related products ---------- */

.dynamic-related-section {
  padding: 100px 0;
  background: var(--pd-cream);
}

.dynamic-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 480px));
  justify-content: center;
  gap: 25px;
}

.dynamic-related-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--pd-border);
  border-radius: 20px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.dynamic-related-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--pd-shadow);
}

.dynamic-related-image {
  display: grid;
  min-height: 230px;
  place-items: center;
  padding: 24px;
  background: var(--pd-green-soft);
}

.dynamic-related-image img {
  width: 100%;
  height: 185px;
  object-fit: contain;
}

.dynamic-related-content {
  padding: 25px;
}

.dynamic-related-content p {
  color: var(--pd-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.dynamic-related-content h3 {
  margin-top: 7px;
  color: var(--pd-green);
  font-family:"Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 28px;
}

.dynamic-related-content span {
  display: inline-flex;
  margin-top: 18px;
  color: var(--pd-green-2);
  font-weight: 700;
}

/* ---------- Modal ---------- */

.dynamic-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.dynamic-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 28, 18, .72);
  backdrop-filter: blur(5px);
}

.dynamic-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  padding: 42px;
  background: #fff;
  border-radius: 25px;
  box-shadow: 0 35px 90px rgba(0, 0, 0, .3);
}

.dynamic-modal-card h2 {
  margin-top: 16px;
  color: var(--pd-green);
  font-family:"Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 42px;
}

.dynamic-modal-card > p {
  margin-top: 13px;
  color: var(--pd-muted);
}

.dynamic-modal-close {
  position: absolute;
  top: 15px;
  right: 17px;
  width: 38px;
  height: 38px;
  color: var(--pd-green);
  background: var(--pd-cream);
  border: 0;
  border-radius: 50%;
  font-size: 25px;
  cursor: pointer;
}

.dynamic-modal-card form {
  display: grid;
  gap: 17px;
  margin-top: 25px;
}

.dynamic-modal-card label {
  color: var(--pd-green);
  font-size: 14px;
  font-weight: 700;
}

.dynamic-modal-card input {
  width: 100%;
  min-height: 53px;
  margin-top: 7px;
  padding: 12px 15px;
  border: 1px solid var(--pd-border);
  border-radius: 11px;
  font: inherit;
  outline: none;
}

.dynamic-modal-card input:focus {
  border-color: var(--pd-green-2);
  box-shadow: 0 0 0 3px rgba(23, 122, 74, .1);
}

.modal-open {
  overflow: hidden;
}

.website-toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 6000;
  max-width: 380px;
  padding: 16px 20px;
  color: #fff;
  background: var(--pd-green);
  border-radius: 13px;
  box-shadow: var(--pd-shadow);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s ease, transform .3s ease;
}

.website-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Error ---------- */

.product-error {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 80px 0;
  background: var(--pd-cream);
}

.product-error-box {
  max-width: 720px;
  text-align: center;
}

.product-error-box h1 {
  margin-top: 20px;
  color: var(--pd-green);
  font-family:"Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 55px;
}

.product-error-box p {
  margin: 18px 0 30px;
  color: var(--pd-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .dynamic-product-gallery {
    position: static;
    max-width: 720px;
    margin-inline: auto;
  }

  .dynamic-product-content {
    max-width: 720px;
    margin-inline: auto;
  }

  .dynamic-related-grid {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  .product-detail-page {
    padding-top: 28px;
  }

  .dynamic-main-image {
    min-height: 440px;
    padding: 35px;
    border-radius: 23px;
  }

  .dynamic-main-image img {
    height: 350px;
  }

  .dynamic-thumbnails {
    gap: 8px;
  }

  .dynamic-thumbnail {
    height: 96px;
  }

  .dynamic-thumbnail img {
    height: 72px;
  }

  .dynamic-product-content h1 {
    font-size: 46px;
    letter-spacing: -1.4px;
  }

  .product-feature-list > div,
  .dynamic-usage-grid {
    grid-template-columns: 1fr;
  }

  .dynamic-product-actions {
    flex-direction: column;
  }

  .dynamic-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 20px;
  }

  .dynamic-tab {
    flex: 0 0 auto;
  }

  .dynamic-related-card {
    grid-template-columns: 145px 1fr;
  }

  .dynamic-related-image {
    min-height: 200px;
  }

  .dynamic-related-image img {
    height: 150px;
  }

  .dynamic-modal-card {
    padding: 35px 22px;
  }
}

@media (max-width: 480px) {
  .dynamic-main-image {
    min-height: 350px;
    padding: 25px;
  }

  .dynamic-main-image img {
    height: 280px;
  }

  .dynamic-price-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .dynamic-related-card {
    grid-template-columns: 1fr;
  }

  .dynamic-related-image {
    min-height: 240px;
  }

  .dynamic-related-image img {
    height: 200px;
  }

  .dynamic-product-content h1 {
    font-size: 40px;
  }

  .product-error-box h1 {
    font-size: 42px;
  }
}

/* DeshiGram unified typography */
html, body, button, input, select, textarea {
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}
body {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 0;
}
h1 { font-weight: 700; }
h2 { font-weight: 700; }
h3, h4 { font-weight: 600; }
nav a, .navigation a, .sidebar a, .button, button {
  font-weight: 600;
  letter-spacing: 0;
}
input, select, textarea {
  font-size: 14px;
  font-weight: 400;
}
small, .muted, .hint, .subtext {
  font-size: 13px;
  line-height: 1.45;
}
.price, .product-price, .amount, .metric-value {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.dg-card-gallery{display:flex;gap:8px;margin:10px 0}.dg-card-photo{width:58px;height:58px;padding:3px;border:1px solid #ddd;border-radius:10px;background:#fff;cursor:pointer}.dg-card-photo.active{border:2px solid #0d4d35}.dg-card-photo img{width:100%;height:100%;object-fit:cover;border-radius:7px}.dg-offer-saving{display:block;color:#0d6b45;font-weight:700;margin-top:5px}.dg-card-details{margin-top:14px;padding-top:12px;border-top:1px solid #e7e2d8;font-size:.9rem;line-height:1.5}.dg-card-details strong{display:block;color:#0d4d35;margin-top:7px}.dg-card-details p{margin:3px 0 0}

/* === FINAL PRODUCT IMAGE SLIDER === */
.dg-card-slider{position:relative;margin:0 0 12px;border-radius:14px;overflow:hidden;background:#faf8f2}
.dg-card-slides{position:relative;aspect-ratio:1/1;display:grid;place-items:center}
.dg-card-slide{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:0;transition:opacity .22s ease;background:#faf8f2}
.dg-card-slide.active{opacity:1}
.dg-slide-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:34px;height:34px;border:0;border-radius:50%;background:rgba(13,77,53,.92);color:#fff;font-size:23px;line-height:1;cursor:pointer}
.dg-slide-arrow.prev{left:8px}.dg-slide-arrow.next{right:8px}
.dg-slide-dots{position:absolute;left:0;right:0;bottom:8px;z-index:3;display:flex;justify-content:center;gap:6px}
.dg-slide-dot{width:7px;height:7px;border:0;border-radius:50%;background:#d2d7d4;padding:0;cursor:pointer}
.dg-slide-dot.active{width:18px;border-radius:10px;background:#0d4d35}
.dg-offer-saving{display:block;color:#0d6b45;font-weight:700;margin-top:5px}
.dg-card-details{margin-top:14px;padding-top:12px;border-top:1px solid #e7e2d8;font-size:.9rem;line-height:1.5}
.dg-card-details strong{display:block;color:#0d4d35;margin-top:7px}
.dg-card-details p{margin:3px 0 0}
