/* ==========================================================================
   Zarna Jewels — product page (Oct 2026)
   Markup: front/product/productDetail.blade.php + productLeft.blade.php (gallery)
   Uses the --zh-* colours/fonts from header-lux.css. Scoped to .zd so the old
   product rules in styles.css (config buttons, gallery, fixed social bar) can't leak in.
   ========================================================================== */
.zd { background: var(--zh-ivory, #fdf9f1); color: var(--zh-text, #3d3a34); font-family: var(--zh-sans); font-size: 15px; line-height: 1.6; padding-bottom: 40px; }
.zd a { text-decoration: none; }
.zd-wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .zd-wrap { padding: 0 28px; } }
.zd :focus-visible { outline: 2px solid var(--zh-sage); outline-offset: 2px; }

.zd-crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; padding: 16px 0; font-size: 13px; color: var(--zh-muted); }
.zd-crumbs a { color: var(--zh-muted) !important; }
.zd-crumbs a:hover { color: var(--zh-emerald) !important; }
.zd-crumbs > * + *::before { content: "/"; margin-right: 8px; opacity: 0.55; }
.zd-crumbs span[aria-current] { color: var(--zh-ink); }

.zd-layout { display: grid; gap: 24px; }
@media (min-width: 992px) { .zd-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: start; } }
@media (min-width: 1300px) { .zd-layout { gap: 64px; } }

/* ---------- Gallery ---------- */
.zd-gallery { min-width: 0; }
.zd .images-list { margin: 0; }
.zd .zd-gallery__set { display: flex; gap: 0; width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; border-radius: 0; }
.zd .zd-gallery__set::-webkit-scrollbar { display: none; }
.zd .zd-gallery__set.d-none { display: none !important; }
.zd .product-img.zd-gallery__item { position: relative; flex: 0 0 100%; margin: 0; padding: 0; aspect-ratio: 1 / 1; scroll-snap-align: start; background: #f6f1e8; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.zd .product-img.zd-gallery__item img, .zd .product-img.zd-gallery__item video { width: 100%; height: 100%; max-width: none; object-fit: contain; mix-blend-mode: multiply; }
.zd .product-img.zd-gallery__item video { object-fit: cover; mix-blend-mode: normal; }
.zd-gallery__tag { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); font-size: 12px; font-weight: 600; color: var(--zh-ink); }
.zd-gallery__dots { display: flex; justify-content: center; gap: 6px; padding: 12px 0 4px; }
.zd-gallery__dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--zh-line); transition: background 0.2s, width 0.2s; }
.zd-gallery__dots span.is-on { width: 18px; border-radius: 4px; background: var(--zh-emerald); }
.zd .zd-gallery__note { margin: 6px 0 0; padding: 0; font-size: 12.5px; color: var(--zh-muted); text-align: left; background: none; }
@media (min-width: 768px) { .zd .zd-gallery__set { margin: 0; } }
@media (min-width: 992px) {
    .zd .zd-gallery__set { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; overflow: visible; }
    .zd .product-img.zd-gallery__item { border-radius: 16px; }
    .zd .product-img.zd-gallery__item:first-child { grid-column: 1 / -1; }
    .zd-gallery__dots { display: none; }
    .zd .product-img.zd-gallery__item img { transition: transform 0.8s var(--zh-ease); }
    .zd .product-img.zd-gallery__item:hover img { transform: scale(1.04); }
}

/* ---------- Details column ---------- */
.zd-info { min-width: 0; }
/* desktop: the photographs stay in view while the (longer) options column scrolls */
@media (min-width: 992px) {
    .zd .zd-info.product-details-right-col { position: static; height: auto; }
    .zd-gallery { position: sticky; top: 20px; }
}
.zd-eyebrow { margin: 0 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--zh-gold); }
.zd-title { margin: 0; text-transform: none; letter-spacing: -0.01em; }
.zd-title__main { display: block; font: 400 clamp(28px, 3.4vw, 40px)/1.12 var(--zh-serif); color: var(--zh-ink); }
.zd-title__sub { display: block; margin-top: 8px; font: 500 14px/1.5 var(--zh-sans); color: var(--zh-muted); letter-spacing: 0; }
.zd-sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.zd-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 12px; font-size: 13px; color: var(--zh-muted); }
.zd-meta strong { color: var(--zh-ink); font-weight: 600; }
.zd-rating { display: inline-flex; align-items: center; gap: 8px; color: var(--zh-ink) !important; font-size: 13.5px; }
.zd-stars { display: inline-flex; gap: 2px; color: var(--zh-gold); }
.zd-stars--sm { font-size: 12px; }
.zd-rating--big { margin: 0; font-size: 15px; }

.zd-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--zh-line-2); }
.zd-price .total-price { font: 600 26px/1.2 var(--zh-sans); color: var(--zh-ink); }
.zd-price s.mrp-price { font-size: 16px; color: var(--zh-muted); }
.zd-price s.mrp-price[hidden] { display: none; }
.zd-save { padding: 4px 11px; border-radius: 999px; background: #e5f2ea; color: #2f6b4f; font-size: 13px; font-weight: 700; }
.zd-price__note { margin: 6px 0 0; font-size: 12.5px; color: var(--zh-muted); }

/* (18 Oct 2026) "How this price is made up": gold by karat and weight, diamonds by weight, making, GST */
.zd-makeup { margin: 14px 0 0; border: 1px solid var(--zh-line-2); border-radius: 14px; background: var(--zh-ivory, #faf8f3); }
.zd-makeup > summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; list-style: none; cursor: pointer; font: 600 13.5px var(--zh-sans); color: var(--zh-ink); }
.zd-makeup > summary::-webkit-details-marker { display: none; }
.zd-makeup > summary .bi { color: var(--zh-gold, #b08d57); font-size: 16px; }
.zd-makeup > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.25s; flex: none; }
.zd-makeup[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.zd-makeup__table { width: 100%; border-collapse: collapse; margin: 0; padding: 0 16px; }
.zd-makeup__row th, .zd-makeup__row td { padding: 9px 16px; border-top: 1px dashed var(--zh-line-2); font-size: 13.5px; vertical-align: top; }
.zd-makeup__row th { font-weight: 500; color: var(--zh-ink); text-align: left; }
.zd-makeup__row th small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--zh-muted); }
.zd-makeup__row td { text-align: right; white-space: nowrap; color: var(--zh-ink); font-variant-numeric: tabular-nums; }
.zd-makeup__row.is-gst th, .zd-makeup__row.is-gst td { color: var(--zh-muted); font-size: 13px; }
.zd-makeup__row.is-total th, .zd-makeup__row.is-total td { border-top: 1px solid var(--zh-ink); font-weight: 600; font-size: 14.5px; }
.zd-makeup__note { margin: 0; padding: 10px 16px 14px; font-size: 12.5px; color: var(--zh-muted); line-height: 1.5; }
@media (max-width: 640px) { .zd-makeup__row th, .zd-makeup__row td { padding: 8px 12px; font-size: 13px; } }

/* options */
.zd-options { display: grid; gap: 4px; margin-top: 18px; }
.zd .zd-opt.config-section { display: block; margin: 0; padding: 16px 0; border-top: 1px solid var(--zh-line-2); }
.zd-opt__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.zd-opt__label { font-size: 13.5px; font-weight: 600; color: var(--zh-ink); }
.zd-opt__label strong { font-weight: 500; color: var(--zh-text); }
.zd .zd-opt .config-info-icon { color: var(--zh-muted); font-size: 15px; cursor: help; }
.zd-opt__row { display: flex; flex-wrap: wrap; gap: 8px; }
.zd-plain { text-decoration: none; }
.zd .config-btn, .zd .config-btn-small {
    min-width: 0; min-height: 42px; padding: 8px 16px; border: 1px solid var(--zh-line); border-radius: 10px; background: #fff; color: var(--zh-ink);
    font: 500 14px var(--zh-sans); box-shadow: none; transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.zd .config-btn-small { min-width: 54px; padding: 8px 12px; }
.zd .config-btn:hover, .zd .config-btn-small:hover { border-color: var(--zh-sage); background: #fff; color: var(--zh-ink); }
.zd .config-btn.selected, .zd .config-btn-small.selected { border-color: var(--zh-emerald); background: var(--zh-emerald); color: #fff; }
.zd .config-btn-circle { width: 50px; height: 50px; padding: 3px; border: 1px solid var(--zh-line); border-radius: 50%; background: #fff; box-shadow: none; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; transition: box-shadow 0.2s, border-color 0.2s; }
.zd .config-btn-circle img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.zd .config-btn-circle span { font-size: 10px; line-height: 1.1; color: var(--zh-ink); }
.zd .config-btn-circle:hover { border-color: var(--zh-sage); background: #fff; }
.zd .config-btn-circle.selected { border-color: var(--zh-emerald); background: #fff; box-shadow: 0 0 0 2px var(--zh-emerald); }
.zd .zd-shape { padding: 8px; }
.zd .zd-shape img { border-radius: 0; }
.zd .zd-select { width: 100%; max-width: 360px; height: 48px; padding: 0 40px 0 14px; border: 1px solid var(--zh-line); border-radius: 10px; background-color: #fff; font: 500 15px var(--zh-sans); color: var(--zh-ink); box-shadow: none; }
.zd .zd-select:focus { border-color: var(--zh-sage); box-shadow: 0 0 0 3px rgba(72, 119, 99, 0.15); }
.zd .zd-error { display: block; margin-top: 8px; font-size: 13px; color: #b3413b; }
.zd .zd-error.d-none { display: none !important; }
.zd-hint { margin: 8px 0 0; font-size: 12.5px; color: var(--zh-muted); }
.zd-link { color: var(--zh-emerald) !important; font-size: 13.5px; font-weight: 600; text-decoration: underline !important; text-underline-offset: 3px; }

/* buy */
.zd-buy { display: flex; gap: 10px; margin-top: 20px; }
.zd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 54px; padding: 0 24px; border: 1px solid transparent; border-radius: 12px; font: 600 15.5px var(--zh-sans); cursor: pointer; text-decoration: none; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.zd .zd-btn--primary, .zd .custom-btn.zd-btn--primary { flex: 1; width: auto; min-width: 0; background: var(--zh-emerald); border-color: var(--zh-emerald); color: #fff !important; text-transform: none; letter-spacing: 0; }
.zd .zd-btn--primary:hover { background: var(--zh-emerald-2); }
.zd-btn--icon { flex: none; width: 54px; padding: 0; background: #fff; border-color: var(--zh-line); color: var(--zh-ink) !important; }
.zd-btn--icon svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.zd-btn--icon:hover { border-color: var(--zh-emerald); }
.zd-btn--icon.active { color: #c0392b !important; border-color: rgba(192, 57, 43, 0.4); }
.zd-btn--icon.active svg { fill: currentColor; }
.zd-help { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.zd .zd-btn--ghost { min-height: 46px; padding: 0 12px; background: #fff; border: 1px solid var(--zh-line); color: var(--zh-emerald) !important; font-size: 13.5px; width: auto; min-width: 0; border-radius: 12px; }
.zd .zd-btn--ghost:hover { border-color: var(--zh-emerald); background: #fff; }
.zd .zd-btn--ghost img { width: 20px; height: 20px; }
@media (max-width: 380px) { .zd-help { grid-template-columns: 1fr; } }

.zd-promises { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 0; padding: 16px; border-radius: 14px; background: var(--zh-cream); }
.zd-promises li { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--zh-muted); line-height: 1.4; }
.zd-promises .bi { font-size: 18px; color: var(--zh-sage); margin-top: 1px; }
.zd-promises strong { display: block; color: var(--zh-ink); font-size: 13px; }

/* share: the old fixed bar on the left edge is now a menu under a "Share" button */
.zd-share { position: relative; margin-top: 14px; }
.zd .social-share-mobile-icon.zd-share__toggle { position: static; display: inline-flex; align-items: center; gap: 8px; width: auto; height: auto; padding: 6px 0; border: 0; background: none; color: var(--zh-muted); font: 600 13.5px var(--zh-sans); cursor: pointer; transform: none; }
.zd .social-share-mobile-icon.zd-share__toggle:hover { color: var(--zh-emerald); }
.zd .fixed-social.zd-share__menu { position: absolute; top: 100%; left: 0; z-index: 20; display: none; grid-template-columns: 1fr 1fr; gap: 2px; width: 280px; padding: 8px; border-radius: 14px; background: #fff; box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(27, 26, 23, 0.06); transform: none; }
.zd .fixed-social.zd-share__menu.fixed-social-open { display: grid; }
.zd .fixed-social.zd-share__menu a, .zd .fixed-social.zd-share__menu button { display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; height: auto; margin: 0; padding: 9px 10px; border: 0; border-radius: 9px; background: none; color: var(--zh-text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.zd .fixed-social.zd-share__menu a:hover, .zd .fixed-social.zd-share__menu button:hover { background: var(--zh-ivory); color: var(--zh-emerald); }
.zd .fixed-social.zd-share__menu a i, .zd .fixed-social.zd-share__menu button i { font-size: 16px; line-height: 1; color: var(--zh-sage); }
.zd .fixed-social.zd-share__menu a span, .zd .fixed-social.zd-share__menu button span { position: static; visibility: visible; opacity: 1; }

/* accordions */
.zd-acc { margin-top: 22px; border-top: 1px solid var(--zh-line); }
.zd-acc__item { border-bottom: 1px solid var(--zh-line); }
.zd-acc__item > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; list-style: none; cursor: pointer; font: 600 15px var(--zh-sans); color: var(--zh-ink); }
.zd-acc__item > summary::-webkit-details-marker { display: none; }
.zd-acc__item > summary::after { content: ""; width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform 0.25s; flex: none; }
.zd-acc__item[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.zd-acc__body { padding: 0 0 20px; font-size: 14.5px; }
.zd-prose p { margin: 0 0 0.8em; }
.zd-prose ul { padding-left: 18px; }
/* "About this design" written by App\Helper\ProductDescription (Oct 2026) */
.zd-prose .zj-about__lead { font-size: 15.5px; color: var(--zh-ink, #1b1a17); }
.zd-prose h3 { margin: 18px 0 8px; font-family: var(--zh-sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--zh-ink, #1b1a17); }
.zd-prose ul { margin: 0 0 12px; }
.zd-prose li { margin-bottom: 6px; }
.zd-prose a { color: var(--zh-emerald, #1f3d33); text-decoration: underline; text-underline-offset: 3px; }
.zd-prose .zj-about__more { margin-top: 14px; font-size: 13.5px; color: var(--zh-muted, #6f695f); }
.zd-specs { margin: 0; display: grid; gap: 0; }
.zd-specs div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--zh-line-2); font-size: 14px; }
.zd-specs dt { font-weight: 400; color: var(--zh-muted); }
.zd-specs dd { margin: 0; text-align: right; color: var(--zh-ink); font-weight: 500; }
.zd-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.zd-list a { color: var(--zh-emerald) !important; text-decoration: underline !important; text-underline-offset: 3px; }
.zd .faq-item { border-bottom: 1px dashed var(--zh-line-2); padding: 0; margin: 0; }
.zd .faq-question { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; font-weight: 600; font-size: 14px; color: var(--zh-ink); cursor: pointer; background: none; }
.zd .faq-answer p { margin: 0 0 12px; font-size: 14px; color: var(--zh-text); }

/* ---------- You may also like / reviews ---------- */
.zd-more, .zd-reviews { padding-top: 56px; }
@media (min-width: 992px) { .zd-more, .zd-reviews { padding-top: 80px; } }
.zd-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; margin-bottom: 22px; }
.zd-section-head h2 { margin: 0; font: 400 clamp(26px, 3vw, 36px)/1.15 var(--zh-serif); color: var(--zh-ink); text-transform: none; letter-spacing: -0.01em; }
.zd .most-loved-card { border-radius: 16px; overflow: hidden; background: #fff; }
.zd-review { height: 100%; padding: 20px; border-radius: 16px; background: #fff; border: 1px solid var(--zh-line-2); font-size: 14.5px; }
.zd-review__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.zd-review__head strong { display: block; color: var(--zh-ink); }
.zd-review__avatar { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--zh-emerald); color: #fbf7ee; font: 400 18px var(--zh-serif); flex: none; }
.zd-review__avatar img { width: 100%; height: 100%; object-fit: cover; }
.zd-verified { margin-left: auto; font-size: 12px; font-weight: 600; color: #2f6b4f; }
.zd-review__photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.zd-review__photos img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.zd-review small { color: var(--zh-muted); }

/* ---------- Phone price bar ---------- */
.zd-buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--zh-line-2); box-shadow: 0 -10px 30px -16px rgba(0, 0, 0, 0.3); transform: translateY(110%); transition: transform 0.3s var(--zh-ease); }
.zd-buybar.is-on { transform: none; }
.zd-buybar__price { min-width: 0; }
.zd-buybar__price small { display: block; font-size: 12px; color: var(--zh-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zd-buybar__price strong { font-size: 16px; color: var(--zh-ink); white-space: nowrap; }
.zd-buybar .zd-btn--primary { flex: none; min-height: 46px; padding: 0 22px; }
@media (min-width: 992px) { .zd-buybar { display: none; } }

@media (prefers-reduced-motion: reduce) { .zd * { transition: none !important; animation: none !important; } }
