/*
 * DivineCrystal — CRO Design System
 * Astrotalk-inspired Conversion Rate Optimisation
 * Phase 1–6: Global → Header → PLP → PDP → Cart → Checkout
 */

/* =====================================================
   PHASE 1: DESIGN SYSTEM RESET + FONT + COLOUR TOKENS
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --cro-primary:   #1A1A2E;   /* near-black */
  --cro-accent:    #F5A623;   /* trust gold */
  --cro-cta:       #E8342A;   /* urgent red */
  --cro-success:   #27AE60;   /* green */
  --cro-white:     #ffffff;
  --cro-grey-lt:   #f8f8f8;
  --cro-grey:      #6c757d;
  --cro-radius:    6px;
  --cro-shadow:    0 4px 18px rgba(0,0,0,.1);
}

/* Apply Inter sitewide — keeps existing family as fallback */
body, h1, h2, h3, h4, h5, h6, p, a, button, input, select, textarea, span, li {
  font-family: 'Inter', 'Jost', sans-serif !important;
}

/* =====================================================
   PHASE 1: 4-px GOLD TOP BAR
   ===================================================== */
.cro-top-bar {
  height: 4px;
  background: var(--cro-accent);
  width: 100%;
  display: block;
}

/* =====================================================
   PHASE 1: ROTATING ANNOUNCEMENT BAR
   ===================================================== */
.cro-announce-bar {
  background: var(--cro-primary);
  color: var(--cro-white);
  text-align: center;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  position: relative;
  z-index: 999;
  overflow: hidden;
}
.cro-announce-bar .cro-announce-inner {
  display: inline-block;
  transition: opacity .4s ease;
}
.cro-announce-bar a {
  color: var(--cro-accent);
  text-decoration: underline;
  margin-left: 8px;
}

/* =====================================================
   PHASE 1: TRUST STRIP (below header)
   ===================================================== */
.cro-trust-strip {
  background: var(--cro-primary);
  color: var(--cro-white);
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 7px 16px;
  flex-wrap: wrap;
  letter-spacing: .02em;
}
.cro-trust-strip .ts-item {
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: .9;
}
.cro-trust-strip .ts-item i,
.cro-trust-strip .ts-item span.ts-icon { color: var(--cro-accent); }

/* =====================================================
   PHASE 1: SOCIAL PROOF TOAST
   ===================================================== */
#cro-social-proof {
  position: fixed;
  bottom: 24px;
  left: 20px;
  z-index: 9999;
  max-width: 320px;
  background: var(--cro-white);
  border-left: 4px solid var(--cro-accent);
  border-radius: var(--cro-radius);
  box-shadow: var(--cro-shadow);
  padding: 12px 14px;
  display: none;
  animation: cro-slide-in .4s ease;
}
#cro-social-proof .sp-text {
  font-size: 13px;
  color: var(--cro-primary);
  font-weight: 500;
  margin: 0;
}
#cro-social-proof .sp-time {
  font-size: 11px;
  color: var(--cro-grey);
  margin: 2px 0 0;
}
@keyframes cro-slide-in {
  from { transform: translateX(-120%); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

/* =====================================================
   PHASE 2: PURPOSE NAV
   ===================================================== */
.cro-purpose-nav {
  background: var(--cro-white);
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cro-purpose-nav::-webkit-scrollbar { display: none; }

.cro-purpose-nav .purpose-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  min-width: max-content;
}
.cro-purpose-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 40px;
  border: 1.5px solid #e8e8e8;
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  color: var(--cro-primary);
  font-size: 11px;
  font-weight: 500;
}
.cro-purpose-item:hover,
.cro-purpose-item.active {
  background: var(--cro-primary);
  color: var(--cro-white);
  border-color: var(--cro-primary);
}
.cro-purpose-item .p-emoji {
  font-size: 20px;
  line-height: 1;
}
.cro-purpose-item .p-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .01em;
}

/* FREE CONSULTATION CTA in header */
.cro-consult-btn {
  background: var(--cro-accent);
  color: var(--cro-white) !important;
  padding: 8px 16px !important;
  border-radius: 40px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  white-space: nowrap;
  transition: background .2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cro-consult-btn:hover { background: #d4911f; color: #fff !important; }

/* =====================================================
   PHASE 3: PLP PRODUCT CARD ENHANCEMENTS
   ===================================================== */

/* Authenticity badge overlay */
.cro-auth-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(26,26,46,.78);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  pointer-events: none;
  z-index: 2;
  backdrop-filter: blur(2px);
}

/* Purpose pill tags */
.cro-purpose-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0 6px;
  justify-content: center;
}
.cro-purpose-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 20px;
  border: 1px solid;
  cursor: pointer;
}
.cro-purpose-pill.love      { color: #c2185b; border-color: #c2185b; background: #fce4ec; }
.cro-purpose-pill.wealth    { color: #e65100; border-color: #e65100; background: #fff3e0; }
.cro-purpose-pill.protection{ color: #1565c0; border-color: #1565c0; background: #e3f2fd; }
.cro-purpose-pill.health    { color: #2e7d32; border-color: #2e7d32; background: #e8f5e9; }
.cro-purpose-pill.spiritual { color: #6a1b9a; border-color: #6a1b9a; background: #f3e5f5; }

/* Urgency low-stock badge */
.cro-urgency-badge {
  font-size: 11px;
  color: var(--cro-cta);
  font-weight: 700;
  display: block;
  margin: 3px 0;
}

/* Quick Add hover bar */
.single-grid-product .product-top {
  position: relative;
  overflow: hidden;
}
.cro-quick-add {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--cro-primary);
  color: var(--cro-white);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  padding: 10px;
  transform: translateY(100%);
  transition: transform .25s ease;
  cursor: pointer;
  z-index: 3;
  border: none;
  width: 100%;
}
.single-grid-product:hover .cro-quick-add { transform: translateY(0); }

/* Price savings on card */
.cro-savings-badge {
  display: inline-block;
  background: var(--cro-cta);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 4px;
}

/* =====================================================
   PHASE 4: PDP ENHANCEMENTS
   ===================================================== */

/* Certification trust block */
.cro-cert-block {
  background: linear-gradient(135deg, #fffbf0, #fff8e1);
  border: 1.5px solid #f0c060;
  border-radius: var(--cro-radius);
  padding: 16px 20px;
  margin: 18px 0;
}
.cro-cert-block .cert-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--cro-primary);
}
.cro-cert-block .cert-row i { color: var(--cro-accent); font-size: 15px; }

/* Countdown timer */
.cro-countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff5f5;
  border: 1px solid #ffd5d5;
  border-radius: var(--cro-radius);
  padding: 10px 14px;
  margin: 14px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--cro-cta);
}
.cro-countdown #cro-timer {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

/* Viewing / sold counter */
.cro-live-signals {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--cro-grey);
  font-weight: 500;
  margin: 8px 0 12px;
  flex-wrap: wrap;
}
.cro-live-signals .ls-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.cro-live-signals .ls-dot {
  width: 7px; height: 7px;
  background: var(--cro-success);
  border-radius: 50%;
  display: inline-block;
  animation: cro-pulse 1.4s infinite;
}
@keyframes cro-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

/* Astrological benefits accordion */
.cro-astro-accordion {
  margin: 20px 0;
}
.cro-astro-accordion .cro-acc-item {
  border: 1px solid #e8e8e8;
  border-radius: var(--cro-radius);
  margin-bottom: 6px;
  overflow: hidden;
}
.cro-astro-accordion .cro-acc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--cro-grey-lt);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--cro-primary);
  transition: background .2s;
}
.cro-astro-accordion .cro-acc-head:hover { background: #f0f0f0; }
.cro-astro-accordion .cro-acc-head .acc-arrow {
  font-size: 12px;
  transition: transform .25s;
}
.cro-astro-accordion .cro-acc-item.open .acc-arrow { transform: rotate(180deg); }
.cro-astro-accordion .cro-acc-body {
  display: none;
  padding: 12px 16px;
  font-size: 13px;
  color: #444;
  line-height: 1.7;
}

/* Zodiac selector */
.cro-zodiac-selector {
  background: var(--cro-grey-lt);
  border: 1px solid #ddd;
  border-radius: var(--cro-radius);
  padding: 14px 16px;
  margin: 16px 0;
}
.cro-zodiac-selector label {
  font-size: 13px;
  font-weight: 600;
  color: var(--cro-primary);
  margin-bottom: 8px;
  display: block;
}
.cro-zodiac-selector select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  appearance: auto;
}
.cro-zodiac-result {
  margin-top: 10px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  font-size: 13px;
  color: var(--cro-primary);
  display: none;
}
.cro-zodiac-result .z-stars { color: var(--cro-accent); font-size: 15px; }

/* =====================================================
   PHASE 5: CART DRAWER ENHANCEMENTS
   ===================================================== */

/* Prepaid nudge banner */
.cro-prepaid-nudge {
  background: linear-gradient(135deg, #F5A623, #E8342A);
  color: #fff;
  text-align: center;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--cro-radius);
  margin-bottom: 14px;
  cursor: pointer;
}

/* Free shipping progress bar */
.cro-shipping-progress {
  background: var(--cro-grey-lt);
  border-radius: var(--cro-radius);
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--cro-primary);
  font-weight: 500;
}
.cro-shipping-progress .sp-label { margin-bottom: 6px; display: block; }
.cro-sp-track {
  height: 5px;
  background: #ddd;
  border-radius: 3px;
  overflow: hidden;
}
.cro-sp-fill {
  height: 100%;
  background: var(--cro-success);
  border-radius: 3px;
  transition: width .5s ease;
}

/* Complete-the-ritual upsell */
.cro-ritual-upsell {
  border-top: 1px solid #eee;
  padding-top: 14px;
  margin-top: 14px;
}
.cro-ritual-upsell h6 {
  font-size: 12px;
  font-weight: 700;
  color: var(--cro-primary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cro-upsell-items {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cro-upsell-items::-webkit-scrollbar { display: none; }
.cro-upsell-card {
  min-width: 130px;
  background: var(--cro-grey-lt);
  border-radius: var(--cro-radius);
  padding: 10px;
  flex-shrink: 0;
  text-align: center;
}
.cro-upsell-card img {
  width: 60px; height: 60px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 6px;
}
.cro-upsell-card .uc-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--cro-primary);
  display: block;
  margin-bottom: 5px;
  line-height: 1.4;
}
.cro-upsell-add {
  background: var(--cro-primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background .2s;
}
.cro-upsell-add:hover { background: var(--cro-cta); }

/* =====================================================
   PHASE 6: CHECKOUT ENHANCEMENTS
   ===================================================== */

/* COD fee nudge */
.cro-cod-nudge {
  display: none;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: var(--cro-radius);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #856404;
  margin-top: 8px;
}
.cro-prepaid-saved {
  display: none;
  background: #d4edda;
  border: 1px solid var(--cro-success);
  border-radius: var(--cro-radius);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cro-success);
  margin-top: 8px;
}

/* Pincode auto-fill spinner */
.cro-pin-loading {
  font-size: 11px;
  color: var(--cro-grey);
  margin-top: 4px;
  display: none;
}

/* =====================================================
   STICKY HEADER — ADVANCED 4-ROW COLLAPSE
   ===================================================== */

/* ── Transition setup: elements that collapse on scroll ── */
.cro-top-bar {
  overflow: hidden;
  max-height: 10px;
  transition: max-height .32s cubic-bezier(0.4,0,0.2,1),
              opacity     .28s ease;
}
.cro-announce-bar {
  overflow: hidden;
  max-height: 80px;
  transition: max-height .32s cubic-bezier(0.4,0,0.2,1),
              padding-top .32s ease,
              padding-bottom .32s ease,
              opacity     .28s ease;
}
.header-area .header-top {
  overflow: hidden;
  max-height: 200px;
  transition: max-height .32s cubic-bezier(0.4,0,0.2,1),
              padding-top .32s ease,
              padding-bottom .32s ease,
              opacity     .25s ease;
}
.cro-trust-strip {
  overflow: hidden;
  max-height: 80px;
  transition: max-height .32s cubic-bezier(0.4,0,0.2,1),
              padding-top .32s ease,
              padding-bottom .32s ease,
              opacity     .25s ease;
}
.cro-purpose-nav {
  overflow: hidden;
  max-height: 150px;
  transition: max-height .32s cubic-bezier(0.4,0,0.2,1),
              padding-top .32s ease,
              padding-bottom .32s ease,
              opacity     .25s ease;
}

/* ── Sticky extras: invisible until header is sticky ── */
.sticky-nav-extras,
.sticky-user-slot {
  display: none !important;
}

/* ══════════════════════════════════
   body.cro-scrolled — SCROLLED STATE
   ══════════════════════════════════ */

/* Collapse gold accent bar */
body.cro-scrolled .cro-top-bar {
  max-height: 0 !important;
  opacity: 0;
}

/* Collapse announcement strip */
body.cro-scrolled .cro-announce-bar {
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  opacity: 0;
}

/* Fix header: position, white bg, shadow */
body.cro-scrolled .header-area {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: #ffffff !important;
  box-shadow: 0 2px 18px rgba(0,0,0,.13);
  animation: cro-header-drop .22s ease;
}

/* Collapse Row 2 (utility bar) */
body.cro-scrolled .header-area .header-top {
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  opacity: 0;
}

/* Collapse trust strip */
body.cro-scrolled .cro-trust-strip {
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  opacity: 0;
}

/* Collapse purpose nav */
body.cro-scrolled .cro-purpose-nav {
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  opacity: 0;
}

/* ── Show sticky Row-4 extras (Call Us · INR · Language) ── */
body.cro-scrolled .sticky-nav-extras {
  display: flex !important;
  align-items: center;
}

/* ── Show sticky Row-3 user block ── */
body.cro-scrolled .sticky-user-slot {
  display: flex !important;
  align-items: center;
  margin-left: 1.6rem;
}

/* ── Separator pill in nav ── */
.sne-sep-item {
  color: #d0d0d0;
  font-size: 16px;
  padding: 0 2px;
  pointer-events: none;
  user-select: none;
}

/* ── Call-Us link in sticky nav ── */
.sne-call {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  font-size: 12.5px !important;
  color: var(--cro-primary) !important;
  white-space: nowrap;
}
.sne-call i { font-size: 12px; }

/* ── Currency & Lang switchers inside sticky nav extras ── */
.sticky-nav-extras .currency-switcher,
.sticky-nav-extras .lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  cursor: pointer;
}
/* Keep dropdowns opening downward from the nav bar */
.sticky-nav-extras .currency-switcher .currency-list,
.sticky-nav-extras .lang-switcher .lang-list {
  top: calc(100% + 10px) !important;
  bottom: auto !important;
  left: 0 !important;
}

/* ── Account switcher in sticky user slot ── */
.sticky-user-slot .account-switcher {
  position: relative;
  min-width: auto;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
/* Account dropdown opens downward */
.sticky-user-slot .account-switcher .account-list {
  top: calc(100% + 10px) !important;
  bottom: auto !important;
}

/* Drop-in animation when header first becomes sticky */
@keyframes cro-header-drop {
  from { transform: translateY(-40px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 767px) {
  .cro-trust-strip { gap: 12px; font-size: 10px; }
  .cro-announce-bar { font-size: 11px; }
  .cro-purpose-nav .purpose-inner { gap: 6px; }
  #cro-social-proof { max-width: calc(100vw - 32px); }
  .cro-live-signals { flex-direction: column; gap: 6px; }
}

/* =====================================================
   PHASE 4 EXTENDED: FULL PDP LAYOUT
   Brand palette:  #c8a96e (gold)  |  #5a3e28 (brown)  |  #f5f0ea (cream)
   Sticky top offset = 80px  (matches typical fixed navbar height)
   ===================================================== */

/* ── Section wrapper ── */
.pdp-hero-section {
  padding: 48px 0 60px;
  background: #fff;
}

/* ── Two-column grid ── */
.pdp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* ── Gallery column ── */
.pdp-gallery-col { position: relative; }

.pdp-gallery-sticky {
  position: sticky;
  top: var(--header-height, 88px); /* set dynamically by ResizeObserver in JS */
  display: flex;
  gap: 12px;
}

/* Thumbnails — vertical strip on desktop */
.pdp-thumbs-strip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 72px;
  flex-shrink: 0;
}

.pdp-thumb {
  width: 68px;
  height: 68px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .2s, opacity .2s;
  opacity: .65;
}
.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pdp-thumb:hover { opacity: .9; border-color: #c8a96e; }
.pdp-thumb.active { opacity: 1; border-color: #5a3e28; }

/* Main image */
.pdp-main-image-wrap {
  flex: 1;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f0ea;
  aspect-ratio: 1 / 1;
}
.pdp-main-image-wrap #pdpMainImg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity .22s ease;
}
.pdp-main-image-wrap #pdpMainImg.pdp-fade-out { opacity: 0; }

.pdp-badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #5a3e28;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* ── Info column ── */
.pdp-info-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pdp-cat-tag {
  display: inline-block;
  background: #f5f0ea;
  color: #5a3e28;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin: 0 4px 10px 0;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid #d8c8a4;
}

.pdp-product-name {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  color: #5a3e28;
  line-height: 1.3;
  margin: 0 0 10px;
}

/* ── Price row ── */
.pdp-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.pdp-price {
  font-size: 26px;
  font-weight: 800;
  color: #5a3e28;
  letter-spacing: -.02em;
}
.pdp-mrp {
  font-size: 16px;
  color: #999;
  text-decoration: line-through;
  font-weight: 400;
}

/* ── About text ── */
.pdp-about-text {
  font-size: 14px;
  color: #555;
  line-height: 1.75;
  margin: 0 0 18px;
  border-left: 3px solid #c8a96e;
  padding-left: 14px;
}

/* ── Quantity row ── */
.pdp-qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 10px;
  flex-wrap: wrap;
}

/* ── CTA buttons row ── */
.pdp-cta-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.pdp-btn-buynow,
.pdp-btn-addcart {
  flex: 1 1 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 14px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  border: 2px solid transparent;
  white-space: nowrap;
}
.pdp-btn-buynow:hover,
.pdp-btn-addcart:hover { opacity: .88; transform: translateY(-1px); }

.pdp-btn-buynow {
  background: #5a3e28;
  color: #fff !important;
  border-color: #5a3e28;
}
.pdp-btn-addcart {
  background: #c8a96e;
  color: #fff !important;
  border-color: #c8a96e;
}

/* ── Delivery features list ── */
.pdp-features {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pdp-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #444;
}
.pdp-features li img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ── Vertical accordion tabs ── */
.pdp-vtabs {
  margin-top: 24px;
  border: 1px solid #e4ddd0;
  border-radius: 8px;
  overflow: hidden;
}

.pdp-vt-item {
  border-bottom: 1px solid #e4ddd0;
}
.pdp-vt-item:last-child { border-bottom: none; }

.pdp-vt-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #f5f0ea;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #5a3e28;
  text-align: left;
  transition: background .2s;
  gap: 10px;
}
.pdp-vt-head:hover { background: #ede5d8; }
.pdp-vt-item.open > .pdp-vt-head { background: #5a3e28; color: #f5f0ea; }
.pdp-vt-item.open > .pdp-vt-head .pdp-vt-arrow { transform: rotate(180deg); color: #c8a96e; }

.pdp-vt-arrow {
  font-size: 12px;
  transition: transform .25s ease;
  flex-shrink: 0;
  color: #c8a96e;
}

.pdp-vt-body {
  display: none;
  padding: 16px 18px;
  font-size: 13.5px;
  color: #444;
  line-height: 1.8;
  background: #fff;
}
.pdp-vt-item.open > .pdp-vt-body { display: block; }
.pdp-vt-body p { margin-bottom: 10px; }
.pdp-vt-body p:last-child { margin-bottom: 0; }
.pdp-vt-body strong { color: #5a3e28; }

/* ── Full-width Reviews section ── */
.pdp-reviews-section {
  background: #f5f0ea;
  padding: 56px 0;
}

.pdp-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.pdp-section-title {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  color: #5a3e28;
  margin: 0;
}
.pdp-section-sub {
  font-size: 14px;
  color: #777;
  margin: 6px 0 0;
}

.pdp-reviews-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pdp-avg-score {
  font-size: 36px;
  font-weight: 800;
  color: #5a3e28;
  line-height: 1;
}
.pdp-review-count {
  font-size: 13px;
  color: #888;
  font-weight: 500;
}

.pdp-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.pdp-review-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(90,62,40,.07);
  transition: transform .2s, box-shadow .2s;
}
.pdp-review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(90,62,40,.12);
}

.pdp-reviewer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.pdp-reviewer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #c8a96e;
}
.pdp-reviewer-name {
  font-size: 14px;
  font-weight: 700;
  color: #5a3e28;
  margin: 0 0 2px;
}
.pdp-review-date {
  font-size: 11px;
  color: #aaa;
}
.pdp-review-stars {
  margin-bottom: 8px;
}
.pdp-review-text {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

.pdp-no-reviews {
  text-align: center;
  color: #888;
  font-size: 15px;
  padding: 30px 0;
}

.pdp-write-review-cta {
  text-align: center;
  margin-top: 30px;
}
.pdp-btn-review {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: #5a3e28;
  color: #fff !important;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.pdp-btn-review:hover {
  background: #c8a96e;
  transform: translateY(-1px);
  color: #fff !important;
}

/* ── Full-width FAQ section ── */
.pdp-faq-section {
  background: #fff;
  padding: 56px 0;
}

.pdp-faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdp-faq-item {
  border: 1.5px solid #e4ddd0;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.pdp-faq-item.open {
  border-color: #c8a96e;
  box-shadow: 0 3px 14px rgba(200,169,110,.14);
}

.pdp-faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #f5f0ea;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #5a3e28;
  text-align: left;
  transition: background .2s;
  gap: 12px;
}
.pdp-faq-q:hover { background: #ede5d8; }
.pdp-faq-item.open > .pdp-faq-q { background: #5a3e28; color: #fff; }
.pdp-faq-item.open > .pdp-faq-q .pdp-faq-arrow { transform: rotate(180deg); color: #c8a96e; }

.pdp-faq-arrow {
  font-size: 12px;
  flex-shrink: 0;
  transition: transform .25s ease;
  color: #c8a96e;
}

.pdp-faq-a {
  display: none;
  padding: 16px 20px;
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  background: #fff;
}
.pdp-faq-item.open > .pdp-faq-a { display: block; }
.pdp-faq-a p { margin: 0; }

/* =====================================================
   GLOBAL STAR RATING — always horizontal row
   (overrides any list/block default from helpers.php)
   ===================================================== */
ul.product-review {
  display: flex !important;
  flex-direction: row !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 4px 0 6px !important;
  gap: 2px;
  align-items: center;
  flex-wrap: nowrap;
}
ul.product-review .review-item {
  display: inline-flex !important;
  align-items: center;
  font-size: 14px;
  color: #d0d0d0;
  line-height: 1;
}
ul.product-review .review-item.active { color: #FCA610 !important; }

/* Inside PDP info column: slightly larger stars */
.pdp-info-col ul.product-review { font-size: 16px; gap: 3px; }

/* Inside review cards: small stars */
.pdp-review-stars ul.product-review { font-size: 13px; margin: 0 0 8px !important; }

/* Reviews section summary stars */
.pdp-reviews-summary ul.product-review { font-size: 20px; margin: 0 !important; }

/* =====================================================
   SHARE ICONS — horizontal inline row
   ===================================================== */
.share-area .social-media {
  display: flex !important;
  flex-direction: row !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 8px 0 0 !important;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.share-area .social-media .media-item {
  display: inline-flex !important;
}

/* =====================================================
   REVIEWS SECTION — centred layout
   ===================================================== */
.pdp-reviews-section .pdp-section-header {
  justify-content: center;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.pdp-reviews-section .pdp-reviews-summary {
  justify-content: center;
}

/* =====================================================
   STICKY GALLERY FIX
   Remove align-items:start so the gallery column
   stretches to the full info-column height, giving
   position:sticky enough room to scroll.
   ===================================================== */
.pdp-layout {
  align-items: stretch;   /* override the earlier 'start' value */
}
.pdp-info-col {
  align-self: start;      /* info col sits at top, natural height */
}

/* =====================================================
   PDP SHIPPING CALCULATOR WIDGET
   ===================================================== */
.pdp-shipping-calc {
  background: #f5f0ea;
  border: 1.5px solid #e4ddd0;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 18px;
}
.pdp-shipping-calc .psc-label {
  font-size: 13px;
  font-weight: 600;
  color: #5a3e28;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pdp-shipping-calc .psc-input-row {
  display: flex;
  gap: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1.5px solid #c8a96e;
}
.pdp-shipping-calc .psc-input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  background: #fff;
}
.pdp-shipping-calc .psc-btn {
  background: #5a3e28;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.pdp-shipping-calc .psc-btn:hover { background: #c8a96e; }
.pdp-shipping-calc .psc-result {
  margin-top: 10px;
  font-size: 13px;
  border-radius: 5px;
  padding: 10px 12px;
}
.pdp-shipping-calc .psc-result.psc-ok {
  background: #eaf7ee;
  border: 1px solid #b2dfcc;
  color: #1e6641;
}
.pdp-shipping-calc .psc-result.psc-err {
  background: #fff3f3;
  border: 1px solid #f5c6c6;
  color: #c0392b;
}
.pdp-shipping-calc .psc-result strong { color: #5a3e28; }

/* ── Responsive overrides ── */
@media (max-width: 991px) {
  .pdp-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .pdp-gallery-sticky {
    position: static;    /* disable sticky on tablet/mobile */
  }
  .pdp-reviews-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 767px) {
  .pdp-hero-section { padding: 24px 0 36px; }

  /* Horizontal thumbnail strip on mobile */
  .pdp-gallery-sticky {
    flex-direction: column;
    gap: 10px;
  }
  .pdp-thumbs-strip {
    flex-direction: row;
    overflow-x: auto;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    order: 2;          /* thumbs below main image on mobile */
  }
  .pdp-thumbs-strip::-webkit-scrollbar { display: none; }
  .pdp-thumb { width: 60px; height: 60px; flex-shrink: 0; }
  .pdp-main-image-wrap { order: 1; }

  .pdp-product-name { font-size: 20px; }
  .pdp-price { font-size: 22px; }

  .pdp-cta-row { flex-direction: column; }
  .pdp-btn-buynow,
  .pdp-btn-addcart { flex: unset; width: 100%; }

  .pdp-faq-list { max-width: 100%; }

  .pdp-reviews-section,
  .pdp-faq-section { padding: 36px 0; }

  .pdp-section-header { flex-direction: column; align-items: flex-start; }
}
