/* ============================================================
   Amayaa — Product Drawer  v6
   Left:  Header 10vh · Image 72vh · Swatches 18vh
   Right: Info strip (fixed) · Wish/Share (fixed) · Scroll zone · CTA (fixed)
   ============================================================ */

/* ── Backdrop ─────────────────────────────────────────────── */
.pd-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 900;
  background: rgba(15, 5, 25, .55);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
}
.pd-backdrop.pd-open { display: block; }

/* ── Drawer shell ─────────────────────────────────────────── */
.pd-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 72vw;
  display: flex;
  flex-direction: column;
  background: #F7F2F9;
  border-left: 1px solid rgba(123,94,167,.25);
  box-shadow: -10px 0 56px rgba(10,0,20,.30);
  z-index: 901;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.32,0,.16,1);
  font-family: 'Jost', sans-serif;
}
.pd-drawer.pd-open { transform: translateX(0); }

/* ── HEADER — 10vh ────────────────────────────────────────── */
.pd-header {
  flex: 0 0 10vh;
  min-height: 64px;
  max-height: 88px;
  background: linear-gradient(120deg, #3D1A5C 0%, #6B3FA0 45%, #9B7DC4 100%);
  border-bottom: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px 0 16px;
  gap: 12px;
}

/* LEFT: brand */
.pd-header-brand {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.pd-header-logo {
  width: 46px; height: 46px;
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.pd-wordmark { text-align: left; line-height: 1.15; }
.pd-wordmark-main {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-weight: 600;
  color: #fff; letter-spacing: .05em;
}
.pd-wordmark-sub {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 11px; font-weight: 400;
  color: rgba(255,255,255,.7);
  letter-spacing: .2em; text-transform: uppercase;
}

/* RIGHT: breadcrumb + close */
.pd-header-right {
  display: flex; align-items: center; gap: 20px; flex-shrink: 0; min-width: 0;
}
.pd-breadcrumb {
  min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
  text-align: right; overflow: hidden;
}
.pd-bc-upper {
  font-family: 'Jost', sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: 1.6px; text-transform: uppercase;
  color: rgba(255,255,255,.65);
  white-space: nowrap;
}
.pd-bc-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 700;
  color: #fff; letter-spacing: .01em; line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pd-close-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.1);
  color: #fff; font-size: 20px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .15s;
}
.pd-close-btn:hover { background: rgba(255,255,255,.25); }

/* ── BODY ─────────────────────────────────────────────────── */
.pd-body-2col {
  flex: 1;
  min-height: 0;
  display: flex;
}

/* ── LEFT COLUMN ──────────────────────────────────────────── */
.pd-col-left {
  flex: 0 0 50%;
  min-height: 0;
  display: flex; flex-direction: column;
  border-right: 1px solid rgba(123,94,167,.18);
  overflow: hidden;
  background: #080410;
}

/* Image viewer — 72vh of total drawer height */
.pd-img-zone {
  flex: 0 0 72vh;
  position: relative;
  padding: 6px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pd-img-inner {
  aspect-ratio: 3/4;        /* consistent portrait frame */
  height: 100%;             /* anchored to zone height   */
  width: auto;              /* derives from aspect-ratio */
  max-width: 100%;          /* never overflows zone      */
  margin: 0 auto;           /* centred; zone bg = bars   */
  position: relative; overflow: hidden; border-radius: 2px;
}
.pd-img-display {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.pd-img-gradient {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding-bottom: 24px;
}
.pd-grad-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 500;
  color: rgba(255,255,255,.8);
  letter-spacing: .1em;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
}

/* Badges */
.pd-badge-row {
  position: absolute; top: 14px; left: 12px;
  display: flex; gap: 5px; flex-wrap: wrap; z-index: 3;
}
.pd-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .9px;
  text-transform: uppercase; padding: 3px 10px; border-radius: 20px;
}
.pd-badge-new  { background: #1A5A2A; color: #fff; }
.pd-badge-offer{ background: #8B1A4A; color: #fff; }
.pd-badge-feat { background: #C4622D; color: #fff; }
.pd-badge-gi   { background: linear-gradient(135deg,#C4622D,#E8843D); color: #fff; }
.pd-badge-sold { background: #444; color: #ccc; }

/* Nav arrows */
.pd-arr {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.22);
  cursor: pointer; font-size: 20px; color: #fff;
  display: flex; align-items: center; justify-content: center;
  z-index: 4; transition: background .15s;
  backdrop-filter: blur(4px);
}
.pd-arr:hover { background: rgba(0,0,0,.8); }
.pd-arr-left  { left: 14px; }
.pd-arr-right { right: 14px; }
.pd-arr[hidden] { display: none; }

/* Swatch strip — 18vh of total drawer height */
.pd-swatches-strip {
  flex: 0 0 18vh;
  min-height: 64px;
  display: flex;
  border-top: 1px solid rgba(255,255,255,.06);
  background: #0E0718;
  overflow: hidden;
}
.pd-swatch-item {
  flex: 1;
  position: relative; cursor: pointer;
  overflow: hidden; transition: opacity .15s;
}
.pd-swatch-item:not(.pd-sw-active):hover { opacity: .8; }
.pd-swatch-item.pd-sw-active::after {
  content: '';
  position: absolute; inset: 0;
  border: 3px solid #fff;
  box-shadow: inset 0 0 0 2px rgba(155,125,196,.7);
  pointer-events: none; z-index: 2;
}
.pd-swatch-item.pd-sw-active::before {
  content: '✓';
  position: absolute; bottom: 5px; right: 5px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; color: #6B3FA0;
  font-size: 9px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  z-index: 3; line-height: 16px; text-align: center;
}
.pd-swatch-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-swatch-gradient { width: 100%; height: 100%; }
.pd-swatch-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: rgba(255,255,255,.9); font-size: 10px;
  letter-spacing: .5px; text-transform: uppercase;
  padding: 10px 4px 5px; text-align: center;
  font-family: 'Jost', sans-serif;
}

/* ── RIGHT COLUMN ─────────────────────────────────────────── */
.pd-col-right {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  background: #F7F2F9;
}

/* ── INFO STRIP (fixed) — type · title · price · GI ──────── */
.pd-info-strip {
  flex: 0 0 auto;
  padding: 16px 22px 12px;
  border-bottom: 1px solid rgba(155,125,196,.2);
  display: flex; flex-direction: column; gap: 6px;
}
.pd-type-line {
  font-size: 13px; font-weight: 700; letter-spacing: 2.2px;
  text-transform: uppercase; color: #9B7DC4;
}
.pd-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 600;
  color: #1A0A04; line-height: 1.18;
}
.pd-price-row {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.pd-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px; font-weight: 700; color: #C4622D;
}
.pd-orig-price { font-size: 16px; color: #9A8070; text-decoration: line-through; }
.pd-savings {
  font-size: 12px; font-weight: 700;
  background: #1A5A2A; color: #fff;
  padding: 2px 10px; border-radius: 20px; letter-spacing: .4px;
}
.pd-gst-note {
  font-size: 11px; color: #9A8070; letter-spacing: .2px; margin-top: 2px;
}
.pd-gi-line {
  font-size: 13px; font-weight: 600; color: #C4622D;
  display: flex; align-items: center; gap: 5px; letter-spacing: .3px;
}

/* Wish / Share row — lives in info strip */
.pd-wish-share-row {
  display: flex; gap: 10px; padding-top: 4px;
}
.pd-btn-wish {
  display: flex; align-items: center; gap: 6px;
  background: transparent; color: #8B1A4A;
  border: 1.5px solid rgba(139,26,74,.35); border-radius: 8px;
  padding: 7px 16px;
  font-family: 'Jost', sans-serif; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .15s;
  position: relative;
}
.pd-btn-wish:hover, .pd-btn-wish.pd-wished {
  background: rgba(139,26,74,.07); border-color: #8B1A4A;
}
.pd-btn-share {
  display: flex; align-items: center; gap: 6px;
  background: transparent; color: #7B5EA7;
  border: 1.5px solid rgba(123,94,167,.4); border-radius: 8px;
  padding: 7px 16px;
  font-family: 'Jost', sans-serif; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .15s;
  position: relative;
}
.pd-btn-share:hover { background: rgba(123,94,167,.1); border-color: #7B5EA7; }

/* Hover tooltips */
.pd-btn-wish::after, .pd-btn-share::after {
  content: attr(data-tip);
  position: absolute; bottom: 115%; left: 50%;
  transform: translateX(-50%);
  background: rgba(30,10,50,.88); color: #fff;
  font-family: 'Jost', sans-serif; font-size: 11px;
  padding: 5px 10px; border-radius: 5px;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .18s;
  z-index: 20;
}
.pd-btn-wish:hover::after, .pd-btn-share:hover::after { opacity: 1; }

/* ── SCROLL ZONE (no accordions — always visible) ─────────── */
.pd-scroll-zone {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 22px 14px;
  display: flex; flex-direction: column; gap: 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(123,94,167,.5) rgba(155,125,196,.12);
}
.pd-scroll-zone::-webkit-scrollbar { width: 5px; }
.pd-scroll-zone::-webkit-scrollbar-track { background: rgba(155,125,196,.1); }
.pd-scroll-zone::-webkit-scrollbar-thumb { background: rgba(123,94,167,.5); border-radius: 3px; }
.pd-scroll-zone::-webkit-scrollbar-thumb:hover { background: rgba(107,63,160,.75); }

/* Specs grid */
.pd-specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px;
}
.pd-spec {
  background: rgba(155,125,196,.08); border-radius: 8px;
  padding: 7px 12px; display: flex; flex-direction: column; gap: 3px;
}
.pd-spec-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: #9B7DC4;
}
.pd-spec-val { font-size: 14px; color: #2A1A0A; line-height: 1.35; }

/* Short description */
.pd-short-desc {
  font-family: 'Jost', sans-serif;
  font-size: 15px; line-height: 1.75; color: #4A3A2A;
  border-left: 3px solid rgba(155,125,196,.5);
  padding-left: 14px; font-style: italic;
}

/* Plain always-visible sections (replaces accordions) */
.pd-section {
  display: flex; flex-direction: column; gap: 10px;
  border-top: 1px solid rgba(155,125,196,.2);
  padding-top: 12px;
}
.pd-section-hdr {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 700;
  color: #3D1A5C; letter-spacing: .01em;
}
.pd-section-body {
  font-family: 'Jost', sans-serif;
  font-size: 15px; line-height: 1.78; color: #3A2A1A;
  word-wrap: break-word; overflow-wrap: break-word;
}

/* Weave facts */
.pd-weave-facts {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 10px;
}
.pd-wf {
  text-align: center; padding: 10px 6px;
  border-radius: 8px; background: rgba(155,125,196,.1);
}
.pd-wf-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 700; color: #6B3FA0;
}
.pd-wf-label {
  font-family: 'Jost', sans-serif; font-size: 10px; color: #7B5EA7;
  letter-spacing: .6px; text-transform: uppercase; margin-top: 3px;
}

/* ── CTA PANEL — WhatsApp + Call only ─────────────────────── */
.pd-cta-panel {
  flex: 0 0 auto;
  border-top: 1px solid rgba(155,125,196,.2);
  padding: 12px 18px 16px;
  display: flex; flex-direction: column; gap: 9px;
  background: linear-gradient(180deg, #EDE5F8 0%, #E8DFF5 100%);
}
.pd-btn-wa {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, #1A7A3A 0%, #22A847 100%);
  color: #fff; border: none; border-radius: 9px;
  padding: 0 18px; height: 44px;
  font-family: 'Jost', sans-serif; font-size: 14px; font-weight: 700;
  letter-spacing: .6px; cursor: pointer; text-decoration: none;
  transition: opacity .15s; flex-shrink: 0;
}
.pd-btn-wa:hover { opacity: .9; }
.pd-btn-call {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; flex-shrink: 0;
  background: #fff; color: #2A1A0A;
  border: 1.5px solid rgba(155,125,196,.5); border-radius: 9px; height: 42px;
  font-family: 'Jost', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: border-color .15s;
}
.pd-btn-call:hover { border-color: #9B7DC4; background: rgba(155,125,196,.05); }

/* ── Skeleton ─────────────────────────────────────────────── */
.pd-skel {
  border-radius: 6px;
  background: linear-gradient(90deg, #dfd4ef 25%, #ede5f5 50%, #dfd4ef 75%);
  background-size: 200% 100%;
  animation: pd-shimmer 1.4s infinite;
}
@keyframes pd-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Error ────────────────────────────────────────────────── */
.pd-error { padding: 36px 20px; text-align: center; }
.pd-error-msg { font-size: 16px; color: #8B4A6A; margin-bottom: 12px; }
.pd-error-link { color: #7B5EA7; cursor: pointer; text-decoration: underline; font-size: 14px; }

/* ── Toast ────────────────────────────────────────────────── */
.pd-toast {
  position: fixed; bottom: 80px; right: 24px;
  background: #2A1A0A; color: #F7F2F9;
  font-family: 'Jost', sans-serif; font-size: 13px;
  padding: 9px 20px; border-radius: 20px;
  z-index: 910; opacity: 0; transform: translateY(8px);
  transition: opacity .2s, transform .2s; pointer-events: none;
}
.pd-toast.pd-show { opacity: 1; transform: translateY(0); }

/* ── Mobile — bottom sheet ────────────────────────────────── */
@media (max-width: 768px) {

  /* Sheet slides UP — full screen on mobile */
  .pd-drawer {
    width: 100%;
    height: 100%;                       /* full viewport height   */
    top: 0;
    border-left: none;
    border-top: none;
    border-radius: 0;                   /* full screen, no rounding */
    transform: translateY(100%);        /* hidden below viewport  */
  }
  .pd-drawer.pd-open { transform: translateY(0); }

  /* Drag handle */
  .pd-drawer::before {
    content: '';
    position: absolute; top: 10px; left: 50%;
    transform: translateX(-50%);
    width: 36px; height: 4px;
    background: rgba(255,255,255,.38);
    border-radius: 2px; z-index: 5;
  }

  /* Header: tighter on mobile */
  .pd-header {
    flex: 0 0 auto; min-height: 52px; max-height: 64px;
    padding: 0 12px 0 10px;
  }
  .pd-header-logo { width: 36px; height: 36px; }
  .pd-wordmark { display: none; }       /* reclaim horizontal space */
  .pd-bc-upper { display: none; }
  .pd-bc-title { font-size: 17px; }
  .pd-close-btn { width: 30px; height: 30px; font-size: 18px; }

  /* Body: single vertical scroll — image + all details flow as one column */
  .pd-body-2col {
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  /* Left col: full width, stacked — image on top, thumbs below */
  .pd-col-left {
    flex: 0 0 auto;
    flex-direction: column;             /* image stacked above thumbs */
    border-right: none;
    border-bottom: 1px solid rgba(123,94,167,.18);
  }

  /* Image zone: tall portrait, anchored in vh so it's large on any phone */
  .pd-img-zone {
    flex: 0 0 50vh;                     /* 50% of screen height — ~422px on iPhone 14 */
    min-height: 280px;
    max-height: none;                   /* let vh control, no artificial cap */
    padding: 4px;
  }

  /* Swatches: horizontal scrolling row below image */
  .pd-swatches-strip {
    flex: 0 0 68px;
    min-height: 68px;
    flex-direction: row;                /* thumbs side by side */
    border-top: 1px solid rgba(255,255,255,.06);
    border-left: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pd-swatches-strip::-webkit-scrollbar { display: none; }
  .pd-swatch-item {
    flex: 0 0 68px;                     /* fixed width, scroll horizontally */
    height: 68px;
  }
  .pd-swatch-label { font-size: 8px; padding: 4px 2px 3px; }

  /* Right col: auto height — all content visible, body handles scrolling */
  .pd-col-right { flex: 0 0 auto; overflow: visible; min-height: 0; }

  /* Scroll zone: not a scroller on mobile — parent body scrolls */
  .pd-scroll-zone { overflow-y: visible; min-height: auto; flex: none; }

  /* CTA: sticky at bottom of drawer while body scrolls */
  .pd-cta-panel {
    position: sticky; bottom: 0; z-index: 5;
    background: #F7F2F9;
    border-top: 2px solid rgba(123,94,167,.2);
  }

  /* Info strip: tighter padding, smaller type */
  .pd-info-strip { padding: 10px 14px 8px; gap: 4px; }
  .pd-type-line { font-size: 11px; letter-spacing: 1.6px; }
  .pd-title { font-size: 20px; }
  .pd-price { font-size: 24px; }
  .pd-gi-line { font-size: 11px; }
  .pd-wish-share-row { gap: 8px; padding-top: 2px; }
  .pd-btn-wish, .pd-btn-share { padding: 6px 12px; font-size: 12px; }

  /* Scroll zone */
  .pd-scroll-zone { padding: 10px 14px 12px; gap: 10px; }
  .pd-section-hdr { font-size: 18px; }
  .pd-section-body { font-size: 14px; line-height: 1.7; }
  .pd-short-desc { font-size: 14px; }
  .pd-spec-label { font-size: 10px; }
  .pd-spec-val { font-size: 13px; }

  /* CTA: tighter */
  .pd-cta-panel { padding: 10px 12px 14px; gap: 7px; }
  .pd-btn-wa { height: 42px; font-size: 13px; }
  .pd-btn-call { height: 40px; font-size: 13px; }

  /* Weave facts: 3 cols still fine */
  .pd-wf-num { font-size: 18px; }
  .pd-wf-label { font-size: 9px; }
}

/* Very small phones (< 390px) */
@media (max-width: 390px) {
  .pd-img-zone { flex: 0 0 46vh; min-height: 240px; }
  .pd-title { font-size: 18px; }
  .pd-price { font-size: 22px; }
  .pd-specs { grid-template-columns: 1fr; }  /* single col */
  .pd-section-hdr { font-size: 16px; }
}

/* ── Fullscreen image overlay (tap to zoom) ─────────────── */
#pd-fs-ov {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.96);
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out;
  animation: pdFsIn .22s ease;
}
@keyframes pdFsIn { from { opacity: 0; } to { opacity: 1; } }
#pd-fs-ov .pd-img-inner {
  width: auto; height: 90vh;
  max-width: 95vw;
  aspect-ratio: 3/4;
  border-radius: 4px; overflow: hidden;
  cursor: zoom-out;
}
#pd-fs-ov .pd-img-display {
  width: 100%; height: 100%; object-fit: cover;
}
#pd-fs-ov .pd-img-gradient {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
#pd-fs-close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.2); border: 1.5px solid rgba(255,255,255,.4);
  color: #fff; font-size: 24px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
#pd-fs-close:hover { background: rgba(255,255,255,.35); }
/* Zoom-in cursor on image viewer (signals tap is possible) */
.pd-img-inner { cursor: zoom-in; }
