/* ====================================================
   FILE: css/product.css
   PURPOSE: Product details page styling, matching the approved homepage
   EDIT HERE: Only edit colour values in custom.css :root
   ==================================================== */
.item-page { background: var(--paper); }
.item-breadcrumb { max-width: 1320px; margin: auto; padding: 24px 24px 16px; display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.item-breadcrumb a { text-decoration: underline; text-underline-offset: 4px; }
.demo-flag { max-width: 1272px; margin: 0 auto 14px; padding: 10px 16px; background: #f1e7d6; color: #51391c; font-size: 13px; }
/* SECTION: PRODUCT GALLERY. Main photo never crops jewellery. */
.item-layout { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); gap: clamp(24px, 5vw, 76px); padding: 0 24px 75px; }
.item-main-photo { width: 100%; border: 0; padding: 0; background: #fff; cursor: zoom-in; position: relative; display: block; }
.item-main-photo picture, .item-main-photo img { display: block; width: 100%; }
.item-main-photo img { aspect-ratio: 4 / 3; height: auto; object-fit: contain; }
.item-magnify { position: absolute; right: 16px; bottom: 16px; background: #faf7f3eb; padding: 8px 12px; font-size: 13px; }
.item-thumbnails { display: flex; gap: 11px; margin-top: 13px; }
.item-thumb { border: 1px solid transparent; background: #fff; padding: 3px; cursor: pointer; }
.item-thumb.is-active { border-color: var(--brass); }
.item-thumb img { width: 76px; height: 76px; object-fit: contain; }
.item-photo-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
/* SECTION: PRODUCT INFORMATION. Update via spreadsheet later. */
.item-information { padding-top: 20px; }
.item-information h1 { font: 400 clamp(48px, 5vw, 80px)/1 var(--serif); letter-spacing: -.035em; margin: 0 0 20px; }
.item-price { font-size: 19px; font-weight: 600; margin: 0 0 23px; }
.item-summary { max-width: 470px; font-size: 16px; line-height: 1.75; }
.item-code { color: var(--muted); font-size: 13px; }
.item-actions { border-top: 1px solid #d8cfc6; border-bottom: 1px solid #d8cfc6; padding: 21px 0; margin: 25px 0; display: grid; justify-items: start; gap: 11px; }
.item-actions .btn { min-width: 225px; }
.item-actions .btn:disabled { opacity: .65; cursor: not-allowed; }
.item-actions p { font-size: 12px; color: var(--muted); margin: 0; }
.item-question { text-decoration: underline; text-underline-offset: 5px; font-weight: 600; font-size: 14px; }
.item-facts h2 { font: 400 36px var(--serif); margin: 20px 0 14px; }
.item-facts dl { margin: 0; }
.item-facts dl div { display: grid; grid-template-columns: 140px 1fr; border-bottom: 1px solid #e5ded7; gap: 15px; padding: 12px 0; font-size: 14px; }
.item-facts dt { font-weight: 600; }
.item-facts dd { margin: 0; }
/* SECTION: STORY AND CARE. Separate panels retain homepage rhythm. */
.item-story { background: #eee8e0; padding: clamp(36px, 6vw, 85px) max(24px, calc((100vw - 1272px) / 2)); display: grid; grid-template-columns: 1fr 1fr; gap: 38px; }
.item-story h2, .item-similar h2 { font: italic clamp(44px, 5vw, 75px)/1.05 var(--serif); }
.item-story p:not(.eyebrow) { max-width: 480px; font-size: 16px; line-height: 1.75; }
.item-aftercare { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; padding: 42px max(24px, calc((100vw - 1272px) / 2)); background: #302f30; color: #f7f3ee; }
.item-aftercare h2 { font: 400 33px var(--serif); }
.item-aftercare p { max-width: 430px; font-size: 14px; line-height: 1.7; }
.item-similar { text-align: center; padding: 52px 24px 65px; }
.item-similar .btn { margin-top: 12px; }
/* SECTION: ZOOM OVERLAY. Native dialog supports keyboard closing. */
.item-lightbox { border: 0; max-width: min(96vw, 1100px); max-height: 94vh; padding: 30px; background: #fff; }
.item-lightbox::backdrop { background: #111c; }
.item-lightbox img { max-height: calc(94vh - 60px); width: auto; max-width: 100%; object-fit: contain; }
.close-lightbox { position: absolute; right: 4px; top: 0; border: 0; background: #fff; font-size: 35px; padding: 2px 14px; cursor: pointer; }
@media (max-width: 800px) { .item-layout { grid-template-columns: 1fr; padding: 0 16px 45px; gap: 25px; } .item-information { padding: 0; } .item-breadcrumb { padding: 18px 16px; } .demo-flag { margin: 0 16px 14px; } .item-story, .item-aftercare { grid-template-columns: 1fr; gap: 13px; padding: 36px 20px; } .item-information h1 { font-size: clamp(44px, 11vw, 65px); } .item-facts dl div { grid-template-columns: 115px 1fr; } }
@media (prefers-reduced-motion: reduce) { .item-lightbox { scroll-behavior: auto; } }
/* ==========================================
   SECTION: GENERATED CATALOGUE
   What this does: styles the automatically created shop preview.
   Safe to edit: spacing, text and colours.
   ========================================== */
.catalogue-main{max-width:1320px;margin:auto;padding:clamp(40px,6vw,85px) 24px;min-height:60vh}
.catalogue-main h1{font:400 clamp(48px,6vw,86px)/1.08 var(--serif);letter-spacing:-.035em}
.catalogue-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:30px;margin-top:30px}
.catalogue-card{background:#fff;padding:12px 12px 20px}
.catalogue-card img{display:block;width:100%;aspect-ratio:4/3;object-fit:contain}
.catalogue-card h2{font:400 28px/1.15 var(--serif);margin:17px 0 8px}
.catalogue-card p{color:var(--muted);font-size:14px}
.missing-photo{display:grid;place-items:center;min-height:230px;background:#eee9e2;color:#5a514a;text-align:center;padding:20px}
.item-sold-label{font-weight:700;font-size:19px}

.item-video{margin-top:24px}.item-video h2{font:400 27px var(--serif);margin:0 0 12px}.item-video video{display:block;width:100%;max-height:480px;background:#f6f2ec;object-fit:contain}.item-similar .btn{margin:8px 4px}

/* Preserve native photo proportions for close inspection. */
.item-main-photo img{width:100%;height:auto;aspect-ratio:auto;object-fit:contain;max-height:none}.catalogue-card img{object-fit:cover}
