/* ==========================================================================
   PDP redesign v1 — single product pages only (body.single-product .dz-pdp)
   CSS + small vanilla JS (pdp-redesign.js). No header/nav menu rules here.
   ========================================================================== */
body.single-product .dz-pdp {
  --pdp-ink: #0b1d3a;
  --pdp-muted: #64748b;
  --pdp-line: #e6ebf1;
  --pdp-blue: var(--dz-primary, #0284c7);
  --pdp-blue-soft: #e8f5fd;
  --pdp-cream: #f7f0e6;
  --pdp-radius: 20px;
  --pdp-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Hero grid ---------- */
@media (min-width: 993px) {
  body.single-product .dz-pdp .dz-pdp-hero {
    grid-template-columns: minmax(360px, 42%) minmax(0, 1fr);
    gap: 2rem;
  }
}

/* ---------- Gallery ---------- */
body.single-product .dz-pdp .dz-pdp-stage {
  background:
    radial-gradient(120% 70% at 50% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, #fbf7f1 0%, #f1e7d8 100%);
  border: 1px solid #ebdfcc;
  border-radius: 26px;
  padding: 1.25rem 1.25rem 1rem;
  overflow: hidden;
}
body.single-product .dz-pdp .dz-pdp-badges {
  position: absolute;
  z-index: 3;
  top: 1rem;
  right: 1rem;
  margin: 0;
}
body.single-product .dz-pdp .dz-badge-discount {
  font-size: 0.8rem;
  padding: 6px 12px;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.3);
}
body.single-product .dz-pdp .dz-pdp-book {
  position: relative;
  min-height: 400px;
  cursor: zoom-in;
  border-radius: 18px;
  overflow: hidden;
  touch-action: pan-y;
}
body.single-product .dz-pdp .dz-main-cover-img {
  max-height: 460px;
  transition: transform 0.45s var(--pdp-ease), opacity 0.25s ease;
}
body.single-product .dz-pdp .dz-pdp-book.is-swapping .dz-main-cover-img {
  opacity: 0;
  transform: rotateY(-10deg) translateX(-14px) scale(0.98);
}
body.single-product .dz-pdp .dz-pdp-book.is-zoom .dz-main-cover-img {
  transform: scale(1.75);
  box-shadow: none;
  transition: transform 0.2s ease-out;
}
body.single-product .dz-pdp .dz-pdp-zoom-hint {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--pdp-ink);
  border: 1px solid var(--pdp-line);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 800;
  pointer-events: none;
}
body.single-product .dz-pdp .dz-pdp-counter {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  background: rgba(11, 29, 58, 0.75);
  color: #fff;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 800;
  pointer-events: none;
  direction: ltr;
}
body.single-product .dz-pdp .dz-gallery-thumbs-row {
  justify-content: flex-start;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 6px;
  margin: 0 0 0.85rem;
  gap: 10px;
}
body.single-product .dz-pdp .dz-gallery-thumbs-row::-webkit-scrollbar { display: none; }
@media (min-width: 993px) {
  body.single-product .dz-pdp .dz-gallery-thumbs-row { justify-content: center; }
}
body.single-product .dz-pdp .dz-thumb-btn {
  flex: 0 0 auto;
  width: 62px;
  height: 80px;
  border: 2px solid transparent;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(11, 29, 58, 0.08);
  scroll-snap-align: start;
  opacity: 0.7;
  transition: transform 0.25s var(--pdp-ease), opacity 0.2s, border-color 0.2s;
}
body.single-product .dz-pdp .dz-thumb-btn:hover { opacity: 1; transform: translateY(-2px); }
body.single-product .dz-pdp .dz-thumb-btn.is-active {
  opacity: 1;
  border-color: var(--pdp-blue);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.25);
}
body.single-product .dz-pdp .dz-pdp-dots {
  display: none;
  justify-content: center;
  gap: 6px;
  margin: 0 0 0.6rem;
}
body.single-product .dz-pdp .dz-pdp-dots i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #d6c4a8;
  transition: width 0.3s var(--pdp-ease), background 0.2s;
}
body.single-product .dz-pdp .dz-pdp-dots i.is-on { width: 22px; background: var(--pdp-blue); }

/* ---------- Buy box ---------- */
body.single-product .dz-pdp .dz-pdp-buybox {
  border-radius: 26px;
  border-color: var(--pdp-line);
  padding: 1.6rem 1.7rem 1.5rem;
}
body.single-product .dz-pdp .dz-product-main-title {
  font-size: clamp(1.2rem, 1.1rem + 0.8vw, 1.85rem);
  line-height: 1.45;
}
body.single-product .dz-pdp .dz-pdp-meta span { background: #fff; }
body.single-product .dz-pdp .dz-pdp-specs-pills {
  background: #f8fafc;
  border: 1px solid var(--pdp-line);
  border-radius: 16px;
}
body.single-product .dz-pdp .dz-pdp-price {
  position: relative;
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 70%);
  border: 1px solid #cfe9f8;
  border-radius: 18px;
}
body.single-product .dz-pdp .dz-price-curr-val {
  color: var(--pdp-ink);
  transition: color 0.3s;
}
body.single-product .dz-pdp .dz-pdp-price.is-updated .dz-price-curr-val {
  animation: dzPdpPop 0.5s var(--pdp-ease);
  color: var(--pdp-blue);
}
@keyframes dzPdpPop { 0% { transform: scale(0.92); opacity: 0.4; } 100% { transform: none; opacity: 1; } }

/* Variation chips as selectable cards (logic untouched: woocommerce-dz.js) */
body.single-product .dz-pdp .dz-var-panel {
  border: 1px solid var(--pdp-line);
  border-radius: 18px;
  background: #fff;
}
body.single-product .dz-pdp .dz-var-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.6rem;
}
body.single-product .dz-pdp .dz-var-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  text-align: right;
  padding: 0.8rem 2.4rem 0.8rem 0.9rem;
  border: 1.5px solid var(--pdp-line);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.25s var(--pdp-ease), transform 0.25s var(--pdp-ease), background 0.2s;
}
body.single-product .dz-pdp .dz-var-chip::before {
  content: "";
  position: absolute;
  right: 0.85rem;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-radius: 999px;
  border: 2px solid #cbd5e1;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
body.single-product .dz-pdp .dz-var-chip:hover { border-color: #93c5fd; transform: translateY(-2px); }
body.single-product .dz-pdp .dz-var-chip.is-selected {
  border-color: var(--pdp-blue);
  background: var(--pdp-blue-soft);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.16);
}
body.single-product .dz-pdp .dz-var-chip.is-selected::before {
  border-color: var(--pdp-blue);
  box-shadow: inset 0 0 0 4px #fff;
  background: var(--pdp-blue);
}
body.single-product .dz-pdp .dz-var-chip-name { font-weight: 900; color: var(--pdp-ink); }
body.single-product .dz-pdp .dz-var-chip-meta { font-size: 0.74rem; color: var(--pdp-muted); }
body.single-product .dz-pdp .dz-var-chip-price { font-weight: 800; color: var(--pdp-blue); font-size: 0.85rem; }
body.single-product .dz-pdp .dz-var-panel.dz-need-pick {
  animation: dzPdpShake 0.45s ease;
  border-color: #f59e0b;
}
@keyframes dzPdpShake { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }

/* Quantity stepper (JS adds the +/- buttons around the real input) */
body.single-product .dz-pdp .dz-qty-step {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--pdp-line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
body.single-product .dz-pdp .dz-qty-step { flex: 0 0 auto; min-height: 50px; }
body.single-product .dz-pdp .dz-single-cart-wrap .dz-qty-step .quantity {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  min-height: 0;
}
body.single-product .dz-pdp .dz-qty-step input.qty {
  width: 40px !important;
  height: 46px !important;
  border: 0 !important;
  text-align: center;
  font-weight: 900;
  background: transparent;
  -moz-appearance: textfield;
}
body.single-product .dz-pdp .dz-qty-step input.qty::-webkit-outer-spin-button,
body.single-product .dz-pdp .dz-qty-step input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body.single-product .dz-pdp .dz-qty-btn {
  width: 38px;
  height: 46px;
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--pdp-ink);
  cursor: pointer;
}
body.single-product .dz-pdp .dz-qty-btn:hover { background: #f1f5f9; }
body.single-product .dz-pdp .single_add_to_cart_button {
  position: relative;
  overflow: hidden;
  border-radius: 14px !important;
  min-height: 50px;
  font-weight: 900 !important;
  box-shadow: 0 10px 22px rgba(2, 132, 199, 0.28);
  transition: transform 0.2s var(--pdp-ease), box-shadow 0.2s;
}
body.single-product .dz-pdp .single_add_to_cart_button:not(.disabled):hover { transform: translateY(-2px); }
body.single-product .dz-pdp .single_add_to_cart_button::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
}
body.single-product .dz-pdp .single_add_to_cart_button:not(.disabled):hover::after { left: 120%; }

/* Trust row */
body.single-product .dz-pdp .dz-pdp-trust-row > div {
  background: #f8fafc;
  border: 1px solid var(--pdp-line);
  border-radius: 14px;
  padding: 0.65rem 0.3rem;
  transition: transform 0.25s var(--pdp-ease), background 0.2s;
}
body.single-product .dz-pdp .dz-pdp-trust-row > div:hover { transform: translateY(-3px); background: var(--pdp-blue-soft); }
body.single-product .dz-pdp .dz-pdp-trust-row .dz-svg-icon {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 999px;
  background: #fff;
  color: var(--pdp-blue);
  box-shadow: 0 3px 10px rgba(11, 29, 58, 0.08);
}

/* ---------- Tabs + description ---------- */
body.single-product .dz-pdp .dz-product-tabs-section {
  border-radius: 26px;
  border: 1px solid var(--pdp-line);
  overflow: visible;
}
body.single-product .dz-pdp .dz-tabs-nav {
  display: flex;
  gap: 0.4rem;
  padding: 0.5rem;
  margin: 0.75rem;
  background: #f1f5f9;
  border-radius: 16px;
  border: 0;
}
body.single-product .dz-pdp .dz-tab-btn {
  flex: 1 1 0;
  justify-content: center;
  border: 0 !important;
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
body.single-product .dz-pdp .dz-tab-btn.active {
  background: #fff;
  color: var(--pdp-blue);
  box-shadow: 0 4px 14px rgba(11, 29, 58, 0.08);
}
body.single-product .dz-pdp .dz-tab-pane.active { animation: dzPdpFade 0.35s ease; }
@keyframes dzPdpFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

body.single-product .dz-pdp .dz-pdp-toc {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 0 0.9rem;
  margin: 0 0 1rem;
  border-bottom: 1px dashed var(--pdp-line);
}
body.single-product .dz-pdp .dz-pdp-toc::-webkit-scrollbar { display: none; }
body.single-product .dz-pdp .dz-pdp-toc strong {
  flex: 0 0 auto;
  align-self: center;
  font-size: 0.78rem;
  color: var(--pdp-muted);
}
body.single-product .dz-pdp .dz-pdp-toc a {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--pdp-ink);
  background: #fff;
  border: 1px solid var(--pdp-line);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
body.single-product .dz-pdp .dz-pdp-toc a:hover { border-color: var(--pdp-blue); color: var(--pdp-blue); }

body.single-product .dz-pdp .dz-content-typography {
  line-height: 2.1;
  color: #334155;
  width: 100%;
  text-align: right;
}
body.single-product .dz-pdp .dz-product-tabs-section,
body.single-product .dz-pdp .dz-tabs-content,
body.single-product .dz-pdp .dz-tab-pane { width: 100%; max-width: none; }
@media (min-width: 993px) {
  body.single-product .dz-pdp .dz-tabs-content { padding: 1.5rem 2.25rem 2rem; }
}
body.single-product .dz-pdp .dz-content-typography > * { max-width: none; }
body.single-product .dz-pdp .dz-content-typography p,
body.single-product .dz-pdp .dz-content-typography li {
  text-align: justify;
  text-justify: inter-word;
  direction: rtl;
  font-size: 1rem;
}
body.single-product .dz-pdp .dz-content-typography img {
  display: block;
  margin: 1.25rem auto;
}
body.single-product .dz-pdp .dz-content-typography h2 {
  position: relative;
  padding-right: 0.85rem;
  margin: 2rem 0 0.8rem;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  color: var(--pdp-ink);
  scroll-margin-top: 120px;
}
body.single-product .dz-pdp .dz-content-typography h2::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.35em;
  bottom: 0.35em;
  width: 4px;
  border-radius: 4px;
  background: var(--pdp-blue);
}
body.single-product .dz-pdp .dz-content-typography img {
  border-radius: 16px;
  height: auto;
  max-width: 100%;
  box-shadow: 0 10px 26px rgba(11, 29, 58, 0.1);
}
body.single-product .dz-pdp .dz-content-typography iframe,
body.single-product .dz-pdp .dz-content-typography video { max-width: 100%; border-radius: 16px; }

/* Read-more collapse (content stays in the DOM) */
body.single-product .dz-pdp .dz-desc-collapsible {
  position: relative;
  max-height: 760px;
  overflow: hidden;
  transition: max-height 0.6s var(--pdp-ease);
}
body.single-product .dz-pdp .dz-desc-collapsible::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 85%);
  pointer-events: none;
}
body.single-product .dz-pdp .dz-desc-collapsible.is-open { max-height: none; overflow: visible; }
body.single-product .dz-pdp .dz-desc-collapsible.is-open::after { display: none; }
body.single-product .dz-pdp .dz-desc-more {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.75rem auto 0;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid var(--pdp-blue);
  background: #fff;
  color: var(--pdp-blue);
  font-weight: 900;
  cursor: pointer;
}
body.single-product .dz-pdp .dz-desc-more:hover { background: var(--pdp-blue); color: #fff; }

/* FAQ accordion (built on the existing .dz-faq <p><strong> markup) */
body.single-product .dz-pdp .dz-faq.is-acc { display: grid; gap: 0.55rem; }
body.single-product .dz-pdp .dz-faq.is-acc > p {
  margin: 0;
  border: 1px solid var(--pdp-line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
body.single-product .dz-pdp .dz-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  color: var(--pdp-ink);
}
body.single-product .dz-pdp .dz-faq-q::after {
  content: "+";
  flex: 0 0 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  border-radius: 999px;
  background: var(--pdp-blue-soft);
  color: var(--pdp-blue);
  font-weight: 900;
  transition: transform 0.3s var(--pdp-ease);
}
body.single-product .dz-pdp .is-open > .dz-faq-q::after { transform: rotate(45deg); }
body.single-product .dz-pdp .dz-faq-a {
  display: none;
  padding: 0 1rem 0.9rem;
}
body.single-product .dz-pdp .is-open > .dz-faq-a { display: block; animation: dzPdpFade 0.3s ease; }
body.single-product .dz-pdp .dz-faq.is-acc br.dz-faq-br { display: none; }

/* ---------- Desktop sticky buy bar ---------- */
.dz-pdp-stickybar { display: none; }
@media (min-width: 993px) {
  body.single-product .dz-pdp-stickybar {
    position: fixed;
    z-index: 900;
    right: 50%;
    bottom: 14px;
    transform: translate(50%, 140%);
    width: min(1100px, calc(100% - 140px));
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0.8rem 0.6rem 0.6rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 18px 44px rgba(11, 29, 58, 0.18);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--dz-font-main);
  }
  body.single-product .dz-pdp-stickybar.is-shown { transform: translate(50%, 0); }
}
.dz-pdp-stickybar img { width: 44px; height: 58px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.dz-pdp-stickybar .sb-info { flex: 1 1 auto; min-width: 0; }
.dz-pdp-stickybar .sb-title { display: block; font-weight: 900; color: #0b1d3a; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz-pdp-stickybar .sb-var { display: block; font-size: 0.76rem; color: #64748b; }
.dz-pdp-stickybar .sb-price { flex: 0 0 auto; font-weight: 900; color: #0b1d3a; font-size: 1.1rem; }
.dz-pdp-stickybar .sb-price small { font-size: 0.72rem; color: #64748b; margin-right: 0.2rem; }
.dz-pdp-stickybar .sb-btn {
  flex: 0 0 auto;
  border: 0;
  border-radius: 14px;
  padding: 0.8rem 1.4rem;
  background: var(--dz-primary, #0284c7);
  color: #fff;
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(2, 132, 199, 0.3);
}
.dz-pdp-stickybar .sb-btn:hover { filter: brightness(1.07); }

/* ---------- Scroll reveal ---------- */
body.single-product .dz-pdp .dz-rv { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s var(--pdp-ease); }
body.single-product .dz-pdp .dz-rv.is-in { opacity: 1; transform: none; }

/* ---------- Lightbox ---------- */
.dz-pdp-lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.dz-pdp-lb::backdrop { background: rgba(11, 29, 58, 0.86); }
.dz-pdp-lb[open] { display: flex; align-items: center; justify-content: center; }
.dz-pdp-lb img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 12px; background: #fff; }
.dz-pdp-lb button {
  position: absolute;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #0b1d3a;
  font-size: 1.4rem;
  font-weight: 900;
  cursor: pointer;
}
.dz-pdp-lb .lb-x { top: 18px; left: 18px; }
.dz-pdp-lb .lb-prev { right: 18px; top: 50%; margin-top: -23px; }
.dz-pdp-lb .lb-next { left: 18px; top: 50%; margin-top: -23px; }

/* ---------- Mobile / tablet ---------- */
@media (max-width: 992px) {
  body.single-product .dz-pdp .dz-pdp-stage { position: relative; top: auto !important; border-radius: 22px; padding: 0.9rem 0.8rem 0.6rem; }
  body.single-product .dz-pdp .dz-pdp-book { min-height: 300px; cursor: default; }
  body.single-product .dz-pdp .dz-main-cover-img { max-height: 320px; max-width: 70%; }
  body.single-product .dz-pdp .dz-pdp-dots { display: flex; }
  body.single-product .dz-pdp .dz-pdp-zoom-hint { display: none; }
  body.single-product .dz-pdp .dz-thumb-btn { width: 52px; height: 66px; }
  body.single-product .dz-pdp .dz-pdp-buybox { padding: 1.05rem 1rem 1.1rem; border-radius: 22px; }
  body.single-product .dz-pdp .dz-tabs-nav { flex-direction: row !important; margin: 0.6rem; overflow-x: auto !important; }
  body.single-product .dz-pdp .dz-tab-btn { width: auto !important; flex: 1 0 auto; font-size: 0.8rem !important; padding: 0.6rem 0.7rem !important; border-bottom: 0 !important; }
  body.single-product .dz-pdp .dz-tab-btn.active { background: #fff !important; }
  body.single-product .dz-pdp .dz-desc-collapsible { max-height: 620px; }
}
@media (min-width: 600px) and (max-width: 992px) {
  body.single-product .dz-pdp .dz-pdp-hero { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr) !important; gap: 1rem; }
  body.single-product .dz-pdp .dz-pdp-dots { display: none; }
}
@media (max-width: 420px) {
  body.single-product .dz-pdp .dz-var-chips { grid-template-columns: 1fr 1fr; gap: 0.45rem; }
  body.single-product .dz-pdp .dz-var-chip { padding: 0.65rem 2.1rem 0.65rem 0.6rem; }
  body.single-product .dz-pdp .dz-var-chip::before { right: 0.65rem; width: 16px; height: 16px; margin-top: -8px; }
}

/* ==========================================================================
   Round 2 — motions (own take on the interaction ideas) + mini-cart popup
   ========================================================================== */
/* Press + hover feedback on PDP buttons/cards */
body.single-product .dz-pdp :is(.dz-var-chip, .dz-thumb-btn, .dz-tab-btn, .dz-desc-more, .dz-qty-btn, .dz-btn-b2b-link, .dz-pdp-toc a):active { transform: scale(0.97); }
body.single-product .dz-pdp .single_add_to_cart_button:not(.disabled):active { transform: scale(0.96); }
.dz-pdp-stickybar .sb-btn { position: relative; overflow: hidden; transition: transform 0.18s ease, filter 0.18s; }
.dz-pdp-stickybar .sb-btn:hover { transform: translateY(-1px); }
.dz-pdp-stickybar .sb-btn:active { transform: scale(0.96); }

/* Click ripple */
.dz-ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  animation: dzRipple 0.65s ease-out forwards;
}
@keyframes dzRipple { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(26); } }

/* Loading state on add-to-cart */
body.single-product .single_add_to_cart_button.dz-busy,
.dz-pdp-stickybar .sb-btn.dz-busy { pointer-events: none; opacity: 0.85; }
body.single-product .single_add_to_cart_button.dz-busy::before,
.dz-pdp-stickybar .sb-btn.dz-busy::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-left: 0.4rem;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 999px;
  display: inline-block;
  vertical-align: middle;
  animation: dzSpin 0.7s linear infinite;
}
@keyframes dzSpin { to { transform: rotate(360deg); } }
body.single-product .single_add_to_cart_button.dz-done { animation: dzDone 0.6s ease; }
@keyframes dzDone { 0% { transform: scale(1); } 40% { transform: scale(1.05); background: #10b981; } 100% { transform: scale(1); } }

/* Cart badge bump */
.dz-cart-count.dz-bump { animation: dzBump 0.5s cubic-bezier(0.16, 1, 0.3, 1); display: inline-block; }
@keyframes dzBump { 40% { transform: scale(1.45); } }

/* Discount badge: pop in + periodic shine */
body.single-product .dz-pdp .dz-badge-discount { position: relative; overflow: hidden; animation: dzSaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both; }
body.single-product .dz-pdp .dz-badge-discount::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(130%);
  animation: dzSaleShine 4.5s ease-in-out 1.2s infinite;
}
@keyframes dzSaleIn { from { opacity: 0; transform: scale(0.4) rotate(-10deg); } to { opacity: 1; transform: none; } }
@keyframes dzSaleShine { 0% { transform: translateX(130%); } 18%, 100% { transform: translateX(-130%); } }

/* Old price strike draws in, current price pops */
body.single-product .dz-pdp .dz-price-old-val { position: relative; text-decoration: none !important; display: inline-block; }
body.single-product .dz-pdp .dz-price-old-val::after {
  content: "";
  position: absolute;
  right: -2px;
  left: -2px;
  top: 52%;
  height: 1.5px;
  background: #dc2626;
  transform-origin: right center;
  transform: rotate(-6deg);
  animation: dzStrike 0.55s ease-out 0.5s both;
}
@keyframes dzStrike { from { transform: rotate(-6deg) scaleX(0); } to { transform: rotate(-6deg) scaleX(1); } }
body.single-product .dz-pdp .dz-price-curr-val { display: inline-block; animation: dzDigit 0.6s ease 0.3s both; }
@keyframes dzDigit { 0% { transform: scale(0.82); opacity: 0.3; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }

/* Variation chip pick: pop + check mark */
body.single-product .dz-pdp .dz-var-chip.is-selected { animation: dzChipPop 0.35s ease; }
@keyframes dzChipPop { 50% { transform: scale(1.04); } }
body.single-product .dz-pdp .dz-var-chip::after {
  content: "";
  position: absolute;
  right: calc(0.85rem + 5px);
  top: 50%;
  width: 5px;
  height: 9px;
  margin-top: -6px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg) scale(0.2);
}
body.single-product .dz-pdp .dz-var-chip.is-selected::before { box-shadow: none; }
body.single-product .dz-pdp .dz-var-chip.is-selected::after { opacity: 1; transform: rotate(45deg) scale(1); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s; }
@media (max-width: 420px) { body.single-product .dz-pdp .dz-var-chip::after { right: calc(0.65rem + 4px); } }

/* Trust row: truck nudges now and then */
body.single-product .dz-pdp .dz-pdp-trust-row > div:first-child .dz-svg-icon { animation: dzTruck 3.2s ease-in-out infinite; }
@keyframes dzTruck { 0%, 70%, 100% { translate: 0; } 78% { translate: -3px; } 86% { translate: 1px; } 92% { translate: -1px; } }

/* Section titles: underline grows when revealed */
body.single-product .dz-pdp .dz-content-typography h2::after,
body.single-product .dz-pdp .dz-related-books-section .dz-section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 0.35rem;
  border-radius: 3px;
  background: linear-gradient(90deg, #7dd3fc, var(--dz-primary, #0284c7));
  transform-origin: right center;
  transform: scaleX(0);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
body.single-product .dz-pdp .is-lined::after { transform: scaleX(1) !important; }
html.dz-no-io body.single-product .dz-pdp .dz-content-typography h2::after { transform: none; }

/* TOC jump: highlight the target heading */
body.single-product .dz-pdp .dz-toc-hit { animation: dzTocHit 1.4s ease; border-radius: 10px; }
@keyframes dzTocHit { 0%, 40% { background: rgba(2, 132, 199, 0.12); box-shadow: 0 0 0 8px rgba(2, 132, 199, 0.12); } 100% { background: transparent; box-shadow: 0 0 0 8px transparent; } }

/* Content images and related cards: hover lift/zoom */
body.single-product .dz-pdp .dz-content-typography img { transition: transform 0.35s ease, box-shadow 0.35s ease; }
body.single-product .dz-pdp .dz-content-typography img:hover { transform: scale(1.02); box-shadow: 0 16px 34px rgba(11, 29, 58, 0.16); }
body.single-product .dz-pdp .dz-related-books-section .dz-book-card { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s; }
body.single-product .dz-pdp .dz-related-books-section .dz-book-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(11, 29, 58, 0.12); }
body.single-product .dz-pdp .dz-related-books-section .dz-book-card img { transition: transform 0.4s ease; }
body.single-product .dz-pdp .dz-related-books-section .dz-book-card:hover img { transform: scale(1.05); }

/* Staggered reveal for related cards */
body.single-product .dz-pdp .dz-rv-item { opacity: 0; transform: translateY(14px); }
body.single-product .dz-pdp .dz-rv-item.is-in { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }

/* Lightbox: fade/scale in */
.dz-pdp-lb[open] img { animation: dzLbIn 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes dzLbIn { from { opacity: 0; transform: scale(0.94); } }
.dz-pdp-lb .lb-x { transition: transform 0.25s ease; }
.dz-pdp-lb .lb-x:hover { transform: rotate(90deg); }

/* ---------- Mini-cart popup (3D) ---------- */
.dz-mc {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  perspective: 1200px;
  font-family: var(--dz-font-main);
  direction: rtl;
}
.dz-mc[hidden] { display: none; }
.dz-mc__scrim {
  position: absolute;
  inset: 0;
  background: rgba(11, 29, 58, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.dz-mc.is-open .dz-mc__scrim { opacity: 1; }
.dz-mc__panel {
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.9) inset,
    0 30px 60px -12px rgba(11, 29, 58, 0.45),
    0 18px 36px -18px rgba(2, 132, 199, 0.45);
  transform-origin: 50% 100%;
  transform: translateY(40px) rotateX(18deg) scale(0.88);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  overflow: hidden;
}
.dz-mc.is-open .dz-mc__panel { transform: none; opacity: 1; }
.dz-mc.is-closing .dz-mc__panel { transform: translateY(24px) rotateX(-8deg) scale(0.94); opacity: 0; transition-duration: 0.25s; }
.dz-mc.is-closing .dz-mc__scrim { opacity: 0; }
.dz-mc__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.1rem 0.85rem;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0f9ff 100%);
  border-bottom: 1px solid #e2e8f0;
}
.dz-mc__ok {
  position: relative;
  flex: 0 0 38px;
  height: 38px;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}
.dz-mc__ok::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 9px;
  width: 8px;
  height: 15px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) scale(0.2);
  opacity: 0;
}
.dz-mc.is-open .dz-mc__ok::after { animation: dzCheckIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s forwards; }
.dz-mc__ok::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 2px solid #34d399;
  opacity: 0;
}
.dz-mc.is-open .dz-mc__ok::before { animation: dzBurst 0.7s ease-out 0.2s; }
@keyframes dzCheckIn { to { opacity: 1; transform: rotate(45deg) scale(1); } }
@keyframes dzBurst { from { opacity: 1; transform: scale(0.4); } to { opacity: 0; transform: scale(1.5); } }
.dz-mc__title { flex: 1 1 auto; min-width: 0; }
.dz-mc__title strong { display: block; color: #065f46; font-size: 1rem; font-weight: 900; }
.dz-mc__title span { display: block; color: #64748b; font-size: 0.78rem; }
.dz-mc__x {
  flex: 0 0 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #0b1d3a;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(11, 29, 58, 0.1);
  transition: transform 0.25s ease;
}
.dz-mc__x:hover { transform: rotate(90deg); }
.dz-mc__list {
  list-style: none;
  margin: 0;
  padding: 0.6rem 0.8rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  max-height: min(56vh, 440px);
  flex: 0 1 auto;
}
.dz-mc__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem;
  border-radius: 16px;
  border: 1px solid transparent;
  animation: dzMcItem 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.dz-mc__item + .dz-mc__item { margin-top: 0.35rem; }
.dz-mc__item.is-new { background: #f0f9ff; border-color: #bae6fd; }
@keyframes dzMcItem { from { opacity: 0; transform: translateY(12px); } }
.dz-mc__thumb {
  flex: 0 0 52px;
  height: 68px;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  box-shadow: 0 6px 14px rgba(11, 29, 58, 0.14);
  transform: perspective(300px) rotateY(-12deg);
}
.dz-mc__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dz-mc__info { flex: 1 1 auto; min-width: 0; }
.dz-mc__name { display: block; color: #0b1d3a; font-weight: 800; font-size: 0.86rem; line-height: 1.6; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dz-mc__meta { display: block; color: #64748b; font-size: 0.76rem; margin-top: 0.15rem; }
.dz-mc__meta b { color: #0284c7; }
.dz-mc__foot {
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 -10px 20px -14px rgba(11, 29, 58, 0.25);
}
.dz-mc__sum { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; color: #334155; font-size: 0.86rem; }
.dz-mc__sum strong { color: #0b1d3a; font-size: 1.05rem; font-weight: 900; }
.dz-mc__btns { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0.6rem; }
.dz-mc__btns a,
.dz-mc__btns button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 14px;
  font-family: inherit;
  font-weight: 900;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s;
}
.dz-mc__go { background: linear-gradient(135deg, #0284c7, #0369a1); color: #fff !important; border: 0; box-shadow: 0 10px 22px rgba(2, 132, 199, 0.35); }
.dz-mc__go:hover { transform: translateY(-2px); }
.dz-mc__keep { background: #fff; color: #0b1d3a; border: 1.5px solid #cbd5e1; }
.dz-mc__keep:hover { border-color: #0284c7; color: #0284c7; }
.dz-mc__btns a:active, .dz-mc__btns button:active { transform: scale(0.96); }
.dz-mc__skel { height: 68px; border-radius: 14px; margin: 0.35rem 0; background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%); background-size: 200% 100%; animation: dzShimmer 1.2s linear infinite; }
@keyframes dzShimmer { to { background-position: -200% 0; } }
@media (max-width: 600px) {
  .dz-mc { align-items: flex-end; padding: 0; }
  .dz-mc__panel {
    width: 100%;
    border-radius: 24px 24px 0 0;
    max-height: 88vh;
    max-height: 88dvh;
    transform: translateY(100%) rotateX(10deg);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .dz-mc__panel::before { content: ""; display: block; width: 44px; height: 5px; margin: 8px auto 0; border-radius: 99px; background: #cbd5e1; }
  .dz-mc__head { padding-top: 0.6rem; }
  .dz-mc__list { max-height: 48vh; }
  .dz-mc.is-closing .dz-mc__panel { transform: translateY(100%); }
}
body.dz-mc-lock { overflow: hidden; }

/* ==========================================================================
   Round 3 — in-description images as one compact gallery strip
   ========================================================================== */
.dz-pdp-lb.is-single .lb-prev, .dz-pdp-lb.is-single .lb-next { display: none; }
.dz-pdp-lb .lb-n { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 800; font-size: 0.85rem; direction: ltr; }
body.single-product .dz-pdp .dz-content-typography .dz-desc-gallery {
  max-width: none;
  margin: 1.4rem 0;
  padding: 0.9rem 0.9rem 0.8rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
}
body.single-product .dz-pdp .dz-desc-gallery__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0.15rem 0.7rem;
  line-height: 1.6;
}
body.single-product .dz-pdp .dz-desc-gallery__head strong { color: #0b1d3a; font-size: 0.92rem; font-weight: 900; }
body.single-product .dz-pdp .dz-desc-gallery__head span { color: #64748b; font-size: 0.74rem; }
body.single-product .dz-pdp .dz-desc-gallery__row {
  --dz-g-n: min(5, var(--dz-g-cnt, 5));
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(calc((100% - (var(--dz-g-n) - 1) * 0.75rem) / var(--dz-g-n)), 230px);
  justify-content: start;
  gap: 0.75rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: 0.35rem;
}
body.single-product .dz-pdp .dz-desc-gallery__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  scroll-snap-align: start;
  font-family: inherit;
  text-align: center;
}
body.single-product .dz-pdp .dz-content-typography .dz-desc-gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  margin: 0;
  object-fit: cover;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 16px rgba(11, 29, 58, 0.1);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}
body.single-product .dz-pdp .dz-desc-gallery__item:hover img,
body.single-product .dz-pdp .dz-desc-gallery__item:focus-visible img { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(11, 29, 58, 0.16); }
body.single-product .dz-pdp .dz-desc-gallery__item:active img { transform: scale(0.97); }
body.single-product .dz-pdp .dz-desc-gallery__item::after {
  content: "⤢";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 26px;
  height: 26px;
  line-height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0b1d3a;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(11, 29, 58, 0.15);
  opacity: 0;
  transition: opacity 0.2s;
}
body.single-product .dz-pdp .dz-desc-gallery__item:hover::after { opacity: 1; }
body.single-product .dz-pdp .dz-desc-gallery__cap { font-size: 0.72rem; color: #64748b; line-height: 1.6; }
@media (max-width: 992px) {
  body.single-product .dz-pdp .dz-desc-gallery__row { --dz-g-n: min(3.3, var(--dz-g-cnt, 3.3)); }
}
@media (max-width: 600px) {
  body.single-product .dz-pdp .dz-content-typography .dz-desc-gallery { padding: 0.75rem 0.7rem 0.65rem; border-radius: 16px; }
  body.single-product .dz-pdp .dz-desc-gallery__row { --dz-g-n: 2.4; gap: 0.6rem; grid-auto-columns: min(calc((100% - 1.4 * 0.6rem) / 2.4), 150px); }
}

/* Round 3 fix: a content-side gallery wrapper never draws a second box around ours */
body.single-product .dz-pdp .dz-content-typography .dz-incontent-gallery:has(.dz-desc-gallery),
body.single-product .dz-pdp .dz-content-typography .dz-incontent-gallery-track:has(.dz-desc-gallery) {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  overflow: visible !important;
  min-width: 0 !important;
  display: block !important;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  body.single-product .dz-pdp *,
  body.single-product .dz-pdp *::before,
  body.single-product .dz-pdp *::after,
  .dz-pdp-stickybar,
  .dz-pdp-stickybar *,
  .dz-mc *,
  .dz-mc *::before,
  .dz-mc *::after,
  .dz-cart-count.dz-bump,
  .dz-ripple {
    animation: none !important;
    transition: none !important;
  }
  .dz-mc__ok::after { opacity: 1 !important; transform: rotate(45deg) !important; }
  body.single-product .dz-pdp .dz-rv-item { opacity: 1; transform: none; }
  body.single-product .dz-pdp .dz-content-typography h2::after,
  body.single-product .dz-pdp .dz-related-books-section .dz-section-title::after { transform: none; }
  body.single-product .dz-pdp .dz-price-old-val::after { transform: rotate(-6deg); }
  body.single-product .dz-pdp .dz-rv { opacity: 1; transform: none; }
}
