/* Customised gifts page: same brand, lighter grounds so every budget feels welcome. */

/* ---------- Hero ---------- */
.gift-hero { background: var(--ivory); color: var(--indigo); padding-block: clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--ivory-line); }
.gift-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.crumb { font-size: 14px; color: var(--muted-ivory); }
.crumb a { color: var(--gold-deep); text-decoration: none; }
.gift-hero h1 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.06; letter-spacing: -.025em; margin-top: 14px; }
.gift-hero .lede { color: var(--muted-ivory); font-size: 18px; max-width: 50ch; margin-top: 18px; }
.gift-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-line-ivory { border-color: var(--indigo); color: var(--indigo); background: transparent; }
.btn-line-ivory:hover { background: var(--indigo); color: var(--ivory); }
.gift-hero :focus-visible { outline-color: var(--indigo); }
.hero-photo { margin: 0; justify-self: end; width: min(100%, 400px); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); }
.hero-photo figcaption { font-size: 14px; color: var(--muted-ivory); margin-top: 10px; }

/* ---------- Section links ---------- */
.section-nav { background: #fff; border-bottom: 1px solid var(--ivory-line); }
.section-nav-row { display: flex; gap: 8px 28px; overflow-x: auto; scrollbar-width: none; }
.section-nav a { flex: none; padding: 16px 0; color: var(--indigo); text-decoration: none; font-weight: 600; font-size: 15px; border-bottom: 2px solid transparent; }
.section-nav a:hover { border-bottom-color: var(--gold); }
.section-nav :focus-visible { outline-color: var(--indigo); }

/* ---------- How it works ---------- */
.how { background: var(--indigo); color: #fff; }
.how-steps { list-style: none; counter-reset: h; margin: 0; padding: 30px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.how-steps li { counter-increment: h; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; }
.how-steps li::before { content: counter(h); grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold-hi); display: grid; place-items: center; font-weight: 700; }
.how-steps h2 { font-size: 18px; letter-spacing: 0; }
.how-steps p { color: #cfcbe2; font-size: 15px; margin-top: 2px; }

/* ---------- Light sections ---------- */
.frames, .idcards, .faq { background: var(--ivory); color: var(--indigo); }
.mugs { background: var(--ivory-2); color: var(--indigo); }
.frames .section-lede, .mugs .section-lede, .idcards .section-lede { color: var(--muted-ivory); }
.frames :focus-visible, .mugs :focus-visible, .idcards :focus-visible, .faq :focus-visible, .summary :focus-visible { outline-color: var(--indigo); }
.shop-note, .note-ivory { font-size: 14px; color: var(--muted-ivory); margin-top: 18px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--indigo); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; min-height: 32px; }

/* ================= Photo frames ================= */
.configurator { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); gap: clamp(24px, 4vw, 56px); margin-top: 36px; align-items: start; }
.mock-col { position: sticky; top: 120px; }
.mock-stage { margin: 0; }
.mock-wall { position: relative; height: clamp(340px, 44vw, 540px); display: grid; place-items: center; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 15%, #f4f0e7 0%, #e6dfd1 55%, #d8d0bf 100%); border: 1px solid var(--ivory-line); }
.mock-wall::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14%; background: linear-gradient(180deg, transparent, rgba(80,64,40,.08)); }
.mock-stage figcaption { margin-top: 10px; font-size: 14.5px; color: var(--muted-ivory); }

.try-row { margin-top: 16px; }
.try-label { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.try-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: none; width: 58px; height: 58px; padding: 0; border: 2px solid transparent; border-radius: 4px; background: #fff; cursor: pointer; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb[aria-pressed="true"] { border-color: var(--indigo); }


/* Frames use real moulding textures (assets/img/mouldings), cut from the supplier photo and joined
   with 45° mitred corners. --fw is the moulding width, set to true scale (37 mm) by frames.js. */
.mock-frame { --fw: 16px; position: relative; z-index: 1; box-sizing: border-box; border: var(--fw) solid #111;
  border-image: var(--mould) 120 stretch; background: #fff;
  box-shadow: 0 26px 38px -16px rgba(30,22,10,.55), 0 6px 12px -4px rgba(30,22,10,.25); transition: width .35s ease, height .35s ease; }
.mock-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mock-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 6px rgba(0,0,0,.45);
  background: linear-gradient(118deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.03) 32%, transparent 48%); }
.ex-wall .mock-frame { box-shadow: 0 12px 16px -8px rgba(30,22,10,.55); }
.swatch { background: center / cover no-repeat var(--corner); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.swatch::after { display: none; }
@media (prefers-reduced-motion: reduce) { .mock-frame { transition: none; } }
[data-style="black"] { --mould: url(../img/mouldings/black.webp); --corner: url(../img/mouldings/black-corner.webp); }
[data-style="black-white"] { --mould: url(../img/mouldings/black-white.webp); --corner: url(../img/mouldings/black-white-corner.webp); }
[data-style="white-gold"] { --mould: url(../img/mouldings/white-gold.webp); --corner: url(../img/mouldings/white-gold-corner.webp); }
[data-style="teak"] { --mould: url(../img/mouldings/teak.webp); --corner: url(../img/mouldings/teak-corner.webp); }
[data-style="rose-cream"] { --mould: url(../img/mouldings/rose-cream.webp); --corner: url(../img/mouldings/rose-cream-corner.webp); }
[data-style="grey"] { --mould: url(../img/mouldings/grey.webp); --corner: url(../img/mouldings/grey-corner.webp); }
[data-style="oak"] { --mould: url(../img/mouldings/oak.webp); --corner: url(../img/mouldings/oak-corner.webp); }
[data-style="cream-gold"] { --mould: url(../img/mouldings/cream-gold.webp); --corner: url(../img/mouldings/cream-gold-corner.webp); }

/* Options panel */
.cfg { border: 0; padding: 0; margin: 0 0 24px; }
.cfg legend { font-weight: 700; font-size: 15.5px; margin-bottom: 10px; padding: 0; }
.legend-note { font-weight: 400; color: var(--muted-ivory); }
.style-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.style-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; min-height: 60px; cursor: pointer;
  background: #fff; border: 1px solid var(--ivory-line); border-radius: var(--radius); color: var(--indigo); font: inherit; }
.style-opt.featured { grid-column: 1 / -1; padding-block: 14px; border-color: var(--gold); }
.style-opt[aria-pressed="true"] { border-color: var(--indigo); box-shadow: inset 0 0 0 1px var(--indigo); }
.swatch { flex: none; width: 40px; height: 40px; border-radius: 2px; position: relative; }
.style-opt .swatch { background-color: #ddd; }
.swatch::after { content: ""; position: absolute; inset: 8px; background: #e8e2d4; box-shadow: inset 0 0 3px rgba(0,0,0,.45); }
.style-opt.featured .swatch { width: 54px; height: 54px; --fw: 10px; }
.style-opt.featured .swatch::after { inset: 10px; }
.style-text { display: grid; gap: 2px; }
.style-name { font-weight: 700; font-size: 15.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.style-opt.featured .style-name { font-size: 17px; }
.style-note { font-size: 13.5px; color: var(--muted-ivory); line-height: 1.35; }
.badge { font-size: 12px; font-weight: 700; background: var(--gold); color: var(--black); padding: 2px 8px; border-radius: 3px; }

.size-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.size-opt { display: grid; gap: 2px; padding: 8px 6px; min-height: 54px; cursor: pointer; text-align: center; background: #fff;
  border: 1px solid var(--ivory-line); border-radius: var(--radius); color: var(--indigo); font: inherit; }
.size-opt:hover { border-color: var(--indigo); }
.size-opt[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.size-l { font-weight: 700; font-size: 15px; white-space: nowrap; }
.size-p { font-size: 13.5px; opacity: .85; white-space: nowrap; }

.cfg-row { display: flex; flex-wrap: wrap; gap: 0 28px; }
.seg { display: inline-flex; border: 1px solid var(--ivory-line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.seg button { min-height: 44px; padding: 0 16px; border: 0; background: none; color: var(--indigo); font: 500 15px var(--sans); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--indigo); color: #fff; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--ivory-line); border-radius: var(--radius); background: #fff; color: var(--indigo); }
.qty button { width: 44px; height: 44px; border: 0; background: none; font-size: 20px; color: var(--indigo); cursor: pointer; }
.qty input { width: 52px; height: 44px; border: 0; text-align: center; font: 600 16px var(--sans); color: var(--indigo); background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-val { min-width: 32px; text-align: center; font-weight: 600; }

.price-box { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 22px;
  background: #fff; border: 1px solid var(--ivory-line); border-top: 2px solid var(--gold); border-radius: var(--radius); }
.price-label { font-size: 14.5px; color: var(--muted-ivory); }
.price-big { font-size: 36px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.price-note { font-size: 13.5px; color: var(--muted-ivory); margin-top: 10px; }

/* Examples */
.examples-title { font-size: 22px; margin-top: 72px; }
.examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.example { background: #fff; border: 1px solid var(--ivory-line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; }
.ex-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ex-pair figure { margin: 0; }
.ex-pair figcaption { font-size: 12.5px; color: var(--muted-ivory); margin-top: 6px; text-align: center; }
.ex-orig-box { aspect-ratio: 3 / 4; display: grid; place-items: center; background: var(--ivory-2); padding: 6px; }
.ex-orig-box img { max-width: 100%; max-height: 100%; display: block; }
.ex-wall { aspect-ratio: 3 / 4; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 15%, #f4f0e7, #ddd5c5); }
.ex-wall .mock-frame { width: 80%; height: auto; }
.ex-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; line-height: 1.4; }
.example.delivered { padding: 0; overflow: hidden; }
.example.delivered img { width: 100%; flex: 1; min-height: 0; object-fit: cover; object-position: 50% 30%; display: block; aspect-ratio: 3 / 4; }
.delivered-cap { padding: 12px; font-size: 14px; font-weight: 600; }

.price-list { margin-top: 36px; border-top: 1px solid var(--ivory-line); border-bottom: 1px solid var(--ivory-line); }
.price-list summary { cursor: pointer; padding: 18px 0; font-weight: 700; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; padding-bottom: 18px; }
.price-grid div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--ivory-line); font-size: 15px; }
.price-grid span:last-child { font-weight: 700; }

/* ================= Mugs ================= */
.mug-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; max-width: 900px; }
.mug-card { background: #fff; border: 1px solid var(--ivory-line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.mug-stage { position: relative; height: 280px; display: grid; place-items: center; background: radial-gradient(110% 90% at 50% 20%, #faf7f1, #e9e2d4); }
.mug { --body: #fdfdfb; position: relative; width: 168px; height: 188px; margin: 0 40px 36px 0; background: var(--body);
  border-radius: 8px 8px 20px 20px / 8px 8px 14px 14px;
  box-shadow: inset -22px 0 26px rgba(0,0,0,.14), inset 16px 0 20px rgba(255,255,255,.55), 0 20px 26px -14px rgba(40,30,10,.45); transition: background .9s ease; }
.mug::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 14px; border-radius: 50%; background: var(--body); box-shadow: inset 0 3px 5px rgba(0,0,0,.25); transition: background .9s ease; }
.mug::after { content: ""; position: absolute; right: -48px; top: 40px; width: 52px; height: 92px; border: 14px solid var(--body); border-left: 0;
  border-radius: 0 50px 50px 0; box-shadow: 6px 6px 10px -6px rgba(0,0,0,.3); transition: border-color .9s ease; }
.mug-print { position: absolute; inset: 24px 16px 28px; background-position: center; background-size: cover; border-radius: 3px; transition: opacity .9s ease; }
.mug-print::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.18), transparent 25%, transparent 70%, rgba(0,0,0,.18)); }
.mug.is-magic { --body: #161616; }
.mug.is-magic .mug-print { opacity: 0; }
.mug.is-magic.is-hot .mug-print { opacity: 1; }
.pour { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ivory-line);
  background: #fff; color: var(--indigo); font: 600 14px var(--sans); cursor: pointer; }
.pour[aria-pressed="true"] { background: var(--indigo); color: #fff; border-color: var(--indigo); }
@media (prefers-reduced-motion: reduce) { .mug, .mug::before, .mug::after, .mug-print { transition: none; } }
.mug-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mug-body h3 { font-size: 20px; }
.p-desc { color: var(--muted-ivory); font-size: 15px; }
.mug-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.p-price { font-size: 22px; font-weight: 700; white-space: nowrap; }
.qty.small button { width: 40px; height: 40px; }
.mug-order { margin-top: 10px; }

/* ================= ID cards ================= */
.id-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.id-showcase { margin: 24px 0 8px; max-width: 440px; }
.id-svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 22px rgba(20,16,40,.22)); }
.id-showcase figcaption { font-size: 13.5px; color: var(--muted-ivory); margin-top: 6px; }
.id-list { margin-top: 20px; }
.form-light { background: #fff; border: 1px solid var(--ivory-line); border-top: 2px solid var(--gold); color: var(--indigo); }
.form-light label { color: var(--muted-ivory); }
.form-light input, .form-light select { background: var(--ivory); color: var(--indigo); border-color: var(--ivory-line); }
.form-light input:focus, .form-light select:focus { border-color: var(--indigo); }
.form-light .form-status { color: var(--gold-deep); }
.form-light .form-status.err { color: #b4432f; }
.form-light .form-status a { color: var(--indigo); }
.form-title { font-size: 21px; }
.check { display: flex !important; align-items: center; gap: 10px; grid-template-columns: none; min-height: 32px; cursor: pointer; }
.check input { width: 20px !important; height: 20px; min-height: 0 !important; accent-color: var(--gold); }
.min-note { font-size: 14px; color: var(--gold-deep); font-weight: 600; margin-top: -6px; }

/* ================= Corporate ================= */
.corporate { border-top: 0; }
.kits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.kit { background: var(--surface); border-radius: var(--radius); border-top: 2px solid var(--gold); padding: 26px 24px; display: grid; gap: 10px; align-content: start; }
.kit h3 { font-size: 20px; }
.kit > p { color: var(--muted); font-size: 15px; }
.corp-form { margin-top: 40px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.items { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.items legend { font-size: 14px; color: var(--muted); margin-bottom: 6px; padding: 0; }
.corp-form .check { color: var(--text); font-size: 15.5px; }
.corp-form .btn { justify-self: start; }

/* ================= Order summary ================= */
.summary { border: 0; padding: 0; border-radius: 6px; width: min(460px, calc(100vw - 32px)); background: var(--ivory); color: var(--indigo); }
.summary::backdrop { background: rgba(14,12,31,.62); }
.summary-inner { padding: 28px; }
.summary h2 { font-size: 24px; }
.summary-list { margin: 18px 0 0; }
.summary-list div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--ivory-line); }
.summary-list dt { color: var(--muted-ivory); }
.summary-list dd { margin: 0; font-weight: 600; text-align: right; }
.summary-list .total { border-bottom: 0; border-top: 2px solid var(--indigo); margin-top: 4px; padding-top: 14px; font-size: 19px; }
.summary-list .total dt { color: var(--indigo); font-weight: 700; }
.summary-list .total dd { font-weight: 700; }
.summary-attach { margin-top: 16px; font-size: 14.5px; color: var(--muted-ivory); }
.summary-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ================= FAQ ================= */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px clamp(40px, 6vw, 88px); }
.faq-list details { border-top: 1px solid var(--ivory-line); }
.faq-list details:last-child { border-bottom: 1px solid var(--ivory-line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 24px; font-weight: 400; color: var(--gold-deep); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { color: var(--muted-ivory); padding-bottom: 20px; max-width: 62ch; }

.nav a[aria-current="page"] { border-bottom-color: var(--gold); }

/* ================= Responsive ================= */
@media (max-width: 960px) {
  .configurator, .id-grid { grid-template-columns: minmax(0, 1fr); }
  .mock-col { position: static; }
  .examples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kits, .row3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .gift-hero-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { justify-self: start; width: min(100%, 360px); }
  .how-steps { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 600px) {
  .mock-wall { height: 320px; }
  .style-options { grid-template-columns: minmax(0, 1fr); }
  .size-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .price-grid, .mug-grid { grid-template-columns: minmax(0, 1fr); }
  .examples { grid-template-columns: minmax(0, 1fr); }
  .price-box .btn, .summary-actions .btn, .corp-form .btn { width: 100%; }
}
.mug-banner { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; margin-top: 28px; max-height: 520px; }
