/* ===== v41: 2026 catalog (Drive 'Website-2026') — product page gallery, options, sticky fix =====
   Loaded after styles.css / menu-pdp.css on rebuilt pages only. Keeps the existing purple styling. */

/* ---- Product page: two-part layout. The sticky details column lives inside .pdp-top,
   so its containing block ends with the gallery and it can never slide over Related products. ---- */
.pdp.pdp-2026 { display: block; }
.pdp-2026 > .breadcrumbs { margin: 0 0 0.75rem; }
.pdp-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.pdp-2026 .pdp-info { min-width: 0; }
@media (min-width: 900px) {
  .pdp-top { grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 0.5rem 3rem; }
  .pdp-2026 .pdp-info { position: sticky; top: calc(var(--header-h) + 1rem); align-self: start; }
  .pdp-2026 .pdp-media { grid-template-columns: 72px minmax(0, 1fr); align-items: start; }
  .pdp-2026 .pdp-thumbs { position: static; max-height: min(78vh, 720px); overflow-y: auto; scrollbar-width: thin; padding-right: 2px; }
}
.pdp-2026 .pdp-related { position: relative; z-index: 1; background: var(--white, #fff); }

/* gallery: swipeable track (phone), thumbnails (desktop) */
.pdp-gallery-wrap { min-width: 0; }
.pdp-2026 .pdp-gallery { aspect-ratio: 4 / 5; height: auto; max-height: min(78vh, 720px); width: 100%; position: relative; }
.pdp-track { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.pdp-track::-webkit-scrollbar { display: none; }
.pdp-slide { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; background: var(--mist); }
.pdp-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pdp-thumb { display: block; width: 64px; height: 80px; padding: 0; border: 1.5px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--mist); cursor: pointer; flex: 0 0 auto; }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-thumb:hover { border-color: var(--purple-light); }
.pdp-thumb.is-active { border-color: var(--purple); box-shadow: 0 0 0 1px var(--purple); }
.pdp-thumb:focus-visible, .pdp-dot:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.pdp-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.15rem; margin-top: 0.4rem; }
.pdp-dot { width: 28px; height: 28px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.pdp-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lilac200, #C9A24A); }
.pdp-dot.is-active::before { background: var(--purple); }
@media (min-width: 900px) { .pdp-dots { display: none; } }
@media (max-width: 899px) {
  .pdp-2026 .pdp-gallery { aspect-ratio: auto; height: min(calc((100vw - 2 * var(--gutter)) * 1.25), 60vh); max-height: 60vh; }
}

/* price, options, specs */
.pdp-2026 .pdp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem; }
.pdp-unit { font-size: 0.85rem; font-weight: 600; color: var(--ink-muted); }
.pdp-price.muted { color: var(--ink-muted); }
.opt-help { margin: 0.1rem 0 0.5rem; font-size: 0.8rem; line-height: 1.45; color: var(--ink-muted); }
.pdp-2026 .buy-box .opt, .pdp-2026 .buy-box .form-row { margin-bottom: 0.9rem; }
.pdp-2026 .opt-text input { width: 100%; box-sizing: border-box; min-height: 46px; padding: 0 0.85rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 0.95rem; background: var(--white); color: var(--ink); }
.pdp-2026 .opt-text input:focus-visible { outline: 2px solid var(--purple-light); border-color: var(--purple); }
.pdp-2026 .opt-text label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.3rem; }
.pdp-2026 .seg { flex-wrap: wrap; }
.buy-box--call .call-note { margin: 0.25rem 0 0.75rem; font-size: 0.9rem; color: var(--ink-muted); }
.buy-box--call .btn-add { display: flex; justify-content: center; align-items: center; text-decoration: none; width: 100%; min-height: 52px; border-radius: 6px; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; }
.pdp-tagline { font-family: var(--font-serif, Georgia, serif); font-style: italic; color: var(--purple-deep); }
.pdp-specs { margin: 1rem 0 0; padding: 0; display: grid; gap: 0.6rem; font-size: 0.9rem; }
.pdp-specs > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.75rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); }
.pdp-specs dt { font-weight: 700; color: var(--purple-deep); }
.pdp-specs dd { margin: 0; color: var(--ink-muted); line-height: 1.55; }
.pdp-specs ul { margin: 0; padding-left: 1.1rem; }
@media (max-width: 420px) { .pdp-specs > div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; } }

/* cards */
.product-price.price-soon { color: var(--ink-muted); font-weight: 600; font-style: italic; }
.page .chip-row--shop { margin: 0.25rem 0 1.25rem; }
.chip[aria-current="page"] { background: var(--purple); color: #fff; border-color: var(--purple); }

/* home: category circles — centred wrap so 5 now (8 later) rows stay balanced */
@media (min-width: 900px) {
  .home .cat-circles { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem 1.25rem; }
  .home .cat-circle { flex: 0 0 calc((100% - 4 * 1.25rem) / 5); }
  .home .cat-circle .cat-tile-media { max-width: 190px; }
}
.buy-box .form-row[hidden]{display:none!important}

/* v44 order notes */
.order-notes{border-top:1px solid var(--line);padding-top:.75rem}
.order-notes label{font-weight:700}
.order-notes .opt-help{margin:.15rem 0 .4rem}
/* v46 matching boutonniere inline preview */
.bout-preview{display:flex;align-items:center;gap:.75rem;margin:.6rem 0 0}
.bout-preview[hidden]{display:none}
.bout-preview img{width:120px;height:150px;object-fit:cover;border-radius:12px;border:1px solid var(--line);flex:0 0 auto}
.bout-preview figcaption{font-size:.9rem;font-weight:600}

/* v48: design-dependent option rows (show_if on seg rows) */
.buy-box .opt[hidden]{display:none!important}

/* v49: design rows with their own photo + description (hair pins) */
.opt-design-head{display:flex;align-items:center;gap:.75rem;margin:.2rem 0 .5rem}
.opt-design-head .opt-help{margin:0}
.opt-thumb{width:72px;height:90px;object-fit:cover;border-radius:10px;border:1px solid var(--line);flex:0 0 auto}
.opt-thumb--none{display:none}
[data-note-show][hidden]{display:none}

/* ---- Products menu groups (catalog.json menu_groups, Nov 2026) ---- */
.hd-sub .hd-sub-h { padding: 0.55rem 1.1rem 0.3rem; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple); white-space: nowrap; }
.hd-sub:has(.hd-sub-h) { columns: 2; column-gap: 0.25rem; width: 520px; padding: 0.6rem 0.4rem 0.9rem; }
.hd-sub:has(.hd-sub-h) > li { break-inside: avoid; }
.hd-sub:has(.hd-sub-h) > .hd-sub-h:not(:first-child) { break-before: column; }
.hd-sub:has(.hd-sub-h) a { white-space: normal; padding-top: 0.35rem; padding-bottom: 0.35rem; }
@media (min-width: 1200px) { .hd-sub:has(.hd-sub-h) { columns: 4; width: 900px; } }
.hd-drawer-main details li.drawer-h { padding: 0.75rem 0 0.15rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple); }
.hd-drawer-main details li.drawer-h:first-child { padding-top: 0.2rem; }
.coll-jump { margin: 0.25rem 0 0.5rem; }
.coll-h { margin: 1.75rem 0 1rem; font-family: var(--font-serif, Georgia, serif); font-weight: 600; font-size: 1.5rem; color: var(--purple-deep); text-align: center; scroll-margin-top: calc(var(--header-h) + 16px); }
@media (min-width: 900px) {
  .hd-nav .hd-menu { position: relative; }
  .hd-menu > li.has-sub:has(.hd-sub-h) { position: static; }
  .hd-sub:has(.hd-sub-h) { left: 50%; margin-left: -260px; }
}
@media (min-width: 1200px) { .hd-sub:has(.hd-sub-h) { margin-left: -450px; } }


/* ---- v57: colour card pop-up (site.js P.cc; garlands, gajray & kaleeray, hair accessories) ---- */
.cc-link{appearance:none;display:inline;background:none;border:0;padding:0;margin:0 0 0 .6rem;min-height:0;font:inherit;font-size:.8rem;font-weight:700;letter-spacing:0;text-transform:none;color:var(--purple);text-decoration:underline;text-underline-offset:3px;cursor:pointer;white-space:nowrap}
.cc-link:hover,.cc-link:focus-visible{color:var(--purple-deep)}
.cc-hidden-select{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden;clip:rect(0 0 0 0);border:0!important;opacity:0}
.cc-mirror{margin-top:.35rem}
.cc-mb{appearance:none;background:none;border:0;padding:0;font:inherit;cursor:pointer}
.cc-mb[aria-pressed="true"] span{border-color:var(--purple);background:var(--mist);color:var(--purple-deep);font-weight:700}
.cc-mb:focus-visible{outline:0}
.cc-mb:focus-visible span{outline:2px solid var(--purple-light);outline-offset:2px}
html.cc-open{overflow:hidden}
.cc{position:fixed;inset:0;z-index:300;display:flex;align-items:flex-end;justify-content:center}
.cc-scrim{position:absolute;inset:0;background:rgba(43,16,56,.55)}
.cc-panel{position:relative;box-sizing:border-box;width:100%;max-height:92vh;max-height:92dvh;overflow-y:auto;overscroll-behavior:contain;background:#fff;border-radius:18px 18px 0 0;border-top:3px solid #C9A24A;box-shadow:0 -12px 40px rgba(43,16,56,.28);padding:.9rem 1rem calc(1.2rem + env(safe-area-inset-bottom,0px));outline:0;animation:cc-up .22s ease-out;font-family:"Lato",system-ui,sans-serif}
@keyframes cc-up{from{transform:translateY(28px);opacity:.5}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.cc-panel{animation:none}}
.cc-x{position:sticky;top:0;float:right;z-index:2;width:44px;height:44px;margin:-.2rem -.2rem 0 .5rem;display:grid;place-items:center;border-radius:999px;border:1.5px solid #E9DEC8;background:#fff;color:#4B1A63;font-size:1.7rem;line-height:1;cursor:pointer;padding:0}
.cc-x:hover,.cc-x:focus-visible{border-color:#6B2A8A}
.cc-card{margin:0 0 .8rem;text-align:center}
.cc-card img{display:inline-block;max-width:100%;width:auto;height:auto;max-height:44vh;border-radius:12px;border:1px solid #E9DEC8;background:#FBF8F2}
.cc-eyebrow{margin:0;font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:#B08A35;font-weight:700}
.cc-panel h2{font-family:"Playfair Display",Georgia,serif;font-weight:600;color:#4B1A63;font-size:1.35rem;line-height:1.2;margin:.15rem 0 .25rem}
.cc-line{margin:0 0 .8rem;color:#6A5E6C;font-size:.95rem}
.cc-opts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}
.cc-opt{display:flex;align-items:center;gap:.55rem;min-height:48px;padding:.45rem .7rem;border:1.5px solid #E9DEC8;border-radius:12px;background:#fff;color:#2E2430;font:inherit;font-size:.95rem;line-height:1.2;text-align:left;cursor:pointer}
.cc-opt:hover{border-color:#6B2A8A}
.cc-opt:focus-visible{outline:2px solid #9457B0;outline-offset:2px}
.cc-opt.is-hl{border-color:#C9A24A;box-shadow:0 0 0 2px rgba(201,162,74,.45)}
.cc-opt[aria-pressed="true"]{border-color:#6B2A8A;background:#FBF8F2;color:#4B1A63;font-weight:700}
.cc-opt:disabled{opacity:.45;cursor:not-allowed}
.cc-opt-l{display:flex;flex-direction:column;min-width:0}
.cc-opt-l small{font-size:.7rem;font-weight:400;color:#6A5E6C}
.cc-sw{flex:0 0 auto;width:26px;height:26px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(46,36,48,.2)}
.cc-add{margin-left:auto;font-size:.8rem;font-weight:700;color:#B08A35;white-space:nowrap}
.cc-none{grid-column:1/-1;justify-content:center;color:#6A5E6C}
.cc-foot{margin:.8rem 0 0;font-size:.8rem;color:#6A5E6C}
@media (min-width:800px){
  .cc{align-items:center;padding:2rem}
  .cc-panel{max-width:860px;max-height:88vh;border-radius:18px;padding:1.5rem 1.6rem;box-shadow:0 18px 60px rgba(43,16,56,.35)}
  .cc-panel--nocard{max-width:540px}
  .cc-body{display:grid;grid-template-columns:minmax(0,400px) minmax(0,1fr);gap:1.6rem;align-items:start}
  .cc-panel--nocard .cc-body{display:block}
  .cc-card{margin:0}
  .cc-card img{max-height:calc(88vh - 3rem)}
  .cc-side{padding-top:.4rem}
  .cc-panel h2{font-size:1.65rem}
  .cc-opts{grid-template-columns:repeat(2,minmax(0,1fr))}
}
