:root {
  --ink: #1f2140;
  --ink-2: #4b4f6e;
  --muted: #7c8099;
  --brand: #e2565d;
  --brand-dark: #c7424a;
  --brand-soft: #fdecea;
  --lilac: #ece6fb;
  --bg: #fcf9f6;
  --stage: #f7f1ea;
  --surface: #ffffff;
  --line: #eee5dc;
  --green: #1f9d63;
  --radius: 18px;
  --shadow: 0 18px 40px -20px rgba(31, 33, 64, .25);
  --shadow-sm: 0 6px 18px -10px rgba(31, 33, 64, .2);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Fraunces', Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.1rem; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.section { padding: 64px 0; }
.hp { position: absolute; left: -9999px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: .5rem; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid transparent; font: 600 1rem var(--font); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn-sm { padding: .5rem 1rem; font-size: .9rem; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 22px -10px rgba(226, 86, 93, .7); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-soft { background: var(--brand-soft); color: var(--brand-dark); }
.btn-soft:hover { background: var(--brand); color: #fff; }
.block { display: flex; width: 100%; }
.grow { flex: 1; }
.link { color: var(--brand); font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font: inherit; font-size: .85rem; }

/* Announcement + header */
.announce { background: var(--ink); color: #fff; text-align: center; font-size: .82rem; padding: .55rem 16px; letter-spacing: .01em; }
.site-header { background: rgba(252, 249, 246, .9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 1rem; height: 70px; }
.logo { display: flex; align-items: center; gap: .4rem; text-decoration: none; flex-shrink: 0; }
.logo img { max-height: 46px; width: auto; }
.logo-mark { font-size: 1.5rem; }
.logo-text { font-family: var(--display); font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }
.main-nav { display: flex; gap: 1.4rem; margin-left: 1.5rem; }
.main-nav a { text-decoration: none; font-weight: 500; color: var(--ink-2); font-size: .95rem; white-space: nowrap; position: relative; }
.main-nav a:hover { color: var(--ink); }
.main-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--brand); transform: scaleX(0); transition: transform .2s; border-radius: 2px; }
.main-nav a:hover::after { transform: scaleX(1); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: .7rem; }
.search input { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .6rem 1rem; font: inherit; width: 200px; }
.cart-link { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--line); }
.cart-count { position: absolute; top: -4px; right: -4px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* Flash */
.flashes { padding-top: 16px; }
.flash { padding: .85rem 1.1rem; border-radius: 12px; margin-bottom: .6rem; font-weight: 500; }
.flash-success { background: #e6f6ee; color: #146c45; }
.flash-error { background: #fdeaea; color: #a3262c; }

/* ---------- 3D stage ---------- */
.stage { position: relative; aspect-ratio: 1; border-radius: 28px; background: var(--stage); overflow: hidden; isolation: isolate; }
.stage .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s; z-index: 0; }
.stage canvas { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .5s; }
.stage.is-3d canvas { opacity: 1; }
.stage.is-3d .poster { opacity: 0; }
.stage-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--stage); z-index: 3; }
.stage-badge { position: absolute; top: 14px; left: 14px; z-index: 4; background: rgba(255, 255, 255, .9); border-radius: 999px; padding: .35rem .8rem; font-size: .78rem; font-weight: 600; display: none; align-items: center; gap: .4rem; box-shadow: var(--shadow-sm); }
.stage-badge i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); animation: pulse 1.8s infinite; }
.drag-hint { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 4; font-size: .8rem; color: var(--ink-2); background: rgba(255, 255, 255, .85); padding: .3rem .8rem; border-radius: 999px; display: none; pointer-events: none; }
.stage.is-3d .stage-badge { display: inline-flex; }
.stage.is-3d .drag-hint { display: block; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); } }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(900px 480px at 90% 10%, #fde3dc 0%, transparent 60%), radial-gradient(700px 420px at 0% 100%, var(--lilac) 0%, transparent 60%); padding: 48px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; background: #fff; color: var(--brand-dark); font-weight: 600; font-size: .85rem; padding: .4rem .95rem; border-radius: 999px; margin-bottom: 1.1rem; box-shadow: var(--shadow-sm); }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); letter-spacing: -.03em; }
.hero-sub { font-size: 1.15rem; color: var(--ink-2); max-width: 36ch; margin: 0 0 1.6rem; }
.hero-try { display: flex; gap: .5rem; background: #fff; padding: .4rem; border-radius: 999px; box-shadow: var(--shadow); max-width: 520px; border: 1px solid var(--line); }
.hero-try input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 1.05rem var(--font); padding: 0 1rem; color: var(--ink); }
.hero-try input:focus { outline: none; }
.hero-colours { display: flex; align-items: center; gap: .55rem; margin: 1.1rem 0 0 .4rem; }
.dot { width: 30px; height: 30px; border-radius: 50%; background: var(--c); border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); cursor: pointer; padding: 0; transition: transform .15s; }
.dot:hover { transform: scale(1.1); }
.dot.on { box-shadow: 0 0 0 2px var(--ink); }
.hero-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; gap: 1.3rem; flex-wrap: wrap; color: var(--ink-2); font-size: .95rem; font-weight: 500; }
.hero-points span { color: var(--green); font-weight: 700; }
.hero-stage { box-shadow: var(--shadow); max-width: 560px; width: 100%; margin-left: auto; }

/* Section heads */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.section-head h2 { margin: 0; }
.section-head.center { justify-content: center; text-align: center; }
.page-head { margin-bottom: 1.5rem; }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { position: relative; aspect-ratio: 1; background: var(--stage); display: block; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.tag { position: absolute; top: 12px; left: 12px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; padding: .28rem .65rem; border-radius: 999px; }
.tag-dark { background: var(--ink); }
.tag-3d { left: auto; right: 12px; background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card-body h3 { font-family: var(--font); font-weight: 600; font-size: .98rem; line-height: 1.35; margin: 0; letter-spacing: 0; }
.card-body h3 a { text-decoration: none; }
.card-dots { display: flex; align-items: center; gap: 4px; }
.card-dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.card-dots small { margin-left: 6px; color: var(--muted); font-size: .78rem; white-space: nowrap; }
.card-cta { margin-top: auto; align-self: flex-start; }
.price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.price .now { font-weight: 700; font-size: 1.15rem; }
.price s { color: var(--muted); font-size: .9rem; }
.price.big .now { font-size: 2rem; font-family: var(--display); }
.save { background: #e6f6ee; color: var(--green); font-weight: 700; font-size: .8rem; padding: .2rem .55rem; border-radius: 6px; }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.cat { text-decoration: none; text-align: center; font-weight: 600; }
.cat img { aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: var(--stage); margin-bottom: .6rem; border: 4px solid #fff; box-shadow: var(--shadow); }

/* How it works */
.how { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.step { text-align: center; padding: 1.6rem 1.2rem; border-radius: var(--radius); background: var(--bg); }
.step span { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 1.25rem; margin-bottom: .9rem; font-family: var(--display); }
.step p { color: var(--ink-2); margin: 0; font-size: .95rem; }

/* Occasions */
.occasions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.occ { display: grid; gap: .2rem; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; transition: transform .2s, box-shadow .2s; }
.occ:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.occ span { font-size: 1.8rem; }
.occ small { color: var(--muted); }

/* About / SEO text */
.about-band { background: linear-gradient(180deg, #fff, var(--bg)); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-grid p { color: var(--ink-2); }
.about-img { border-radius: 24px; box-shadow: var(--shadow); }
.ticks { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .5rem; }
.ticks li::before { content: '✓'; color: var(--green); font-weight: 700; margin-right: .6rem; }

/* FAQ */
.faq { display: grid; gap: .7rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 1.2rem; }
.faq summary { cursor: pointer; font-weight: 600; padding: 1.05rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.1rem; color: var(--ink-2); }

.cta-band { background: linear-gradient(120deg, var(--ink), #3a4378); color: #fff; border-radius: 28px; padding: 2.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-band p { margin: 0; opacity: .85; }

/* Shop bar */
.shop-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { text-decoration: none; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .9rem; font-weight: 500; }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.sort select { margin-left: .4rem; padding: .45rem .7rem; border-radius: 10px; border: 1px solid var(--line); font: inherit; background: #fff; }
.empty { text-align: center; padding: 3rem 1rem; background: #fff; border-radius: var(--radius); border: 1px dashed var(--line); }

/* ---------- Product page ---------- */
.product-section { padding-top: 28px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1.2rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.product { display: grid; grid-template-columns: 1.08fr 1fr; gap: 3rem; align-items: start; }
.gallery { position: sticky; top: 90px; min-width: 0; }
.preview-text { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); font-family: var(--display); font-size: clamp(1rem, 3vw, 1.6rem); font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.45); pointer-events: none; text-align: center; max-width: 40%; word-wrap: break-word; line-height: 1.1; z-index: 2; }
.thumbs { display: flex; gap: .6rem; margin-top: .8rem; overflow-x: auto; padding-bottom: 4px; }
.thumb { border: 2px solid transparent; border-radius: 14px; padding: 0; width: 72px; height: 72px; overflow: hidden; cursor: pointer; background: var(--stage); flex-shrink: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--ink); }
.thumb-3d span { display: grid; place-items: center; height: 100%; font-weight: 800; font-size: 1.05rem; color: var(--brand-dark); background: linear-gradient(135deg, var(--brand-soft), var(--lilac)); }
.product-info { min-width: 0; }
.product-info h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .5rem; }
.lead { font-size: 1.04rem; color: var(--ink-2); }
.buy-form { margin-top: 1.4rem; display: grid; gap: 1.25rem; }
.field { display: grid; gap: .45rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .93rem; padding: 0; }
.field legend { margin-bottom: .45rem; }
.field legend strong { font-weight: 500; color: var(--ink-2); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input:not([type]), .field select, .field textarea, .field input[type=file] { width: 100%; padding: .78rem .95rem; border: 1px solid #e3d9cf; border-radius: 12px; font: inherit; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.err { color: #c62828; font-size: .82rem; }
.swatches { display: flex; flex-wrap: wrap; gap: .55rem; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.swatch > span:not(.sw) { display: inline-block; padding: .5rem 1rem; border: 1.5px solid #e3d9cf; border-radius: 999px; cursor: pointer; background: #fff; font-size: .92rem; }
.swatch input:checked + span:not(.sw) { border-color: var(--ink); background: var(--ink); color: #fff; }
.sw { display: block; width: 42px; height: 42px; border-radius: 50%; background: var(--c); border: 4px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .14); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.swatch:hover .sw { transform: scale(1.06); }
.swatch input:checked + .sw { box-shadow: 0 0 0 2px var(--ink); }
.swatch input:focus-visible + span { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.name-input { position: relative; }
.name-input input { padding-right: 4rem !important; font-size: 1.05rem !important; }
.count { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: .8rem; color: var(--muted); }
.fonts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.font-opt, .layout-opt { position: relative; }
.font-opt input, .layout-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.font-opt { display: grid; place-items: center; gap: .1rem; border: 1.5px solid #e3d9cf; border-radius: 14px; padding: .55rem .4rem .45rem; background: #fff; cursor: pointer; text-align: center; transition: border-color .15s; }
.font-opt:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.font-opt:has(input:focus-visible) { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.font-sample { font-size: 1.35rem; line-height: 1.3; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.font-opt small { font-size: .72rem; color: var(--muted); font-weight: 500; }
.f-script { font-family: 'Great Vibes', cursive; font-size: 1.6rem; }
.f-signature { font-family: 'Sacramento', cursive; font-size: 1.75rem; }
.f-classic { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 700; }
.f-modern { font-family: 'Montserrat', sans-serif; font-weight: 700; text-transform: uppercase; font-size: 1rem; letter-spacing: .04em; }
.layouts { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.layout-opt span { display: flex; align-items: center; gap: .6rem; border: 1.5px solid #e3d9cf; border-radius: 14px; padding: .7rem .9rem; background: #fff; font-weight: 500; font-size: .92rem; cursor: pointer; }
.layout-opt input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.layout-opt input:focus-visible + span { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.ico { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-dark); font-size: .8rem; }
.ico-v { writing-mode: vertical-rl; transform: rotate(180deg); }
.upload-preview { max-width: 140px; border-radius: 12px; margin-top: .4rem; border: 1px solid var(--line); }
.buy-row { display: flex; gap: .8rem; }
.qty { display: flex; align-items: center; border: 1.5px solid #e3d9cf; border-radius: 999px; background: #fff; overflow: hidden; flex-shrink: 0; }
.qty button { width: 42px; height: 100%; min-height: 50px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.qty input { width: 40px; border: 0; text-align: center; font: 600 1rem var(--font); -moz-appearance: textfield; appearance: textfield; background: transparent; color: var(--ink); }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.low-stock { color: var(--brand-dark); font-weight: 600; margin: 0; }
.perks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.perks li { display: flex; gap: .7rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .8rem .9rem; font-size: .85rem; color: var(--muted); }
.perks b { font-size: 1.2rem; line-height: 1.2; }
.perks strong { display: block; color: var(--ink); font-size: .9rem; }
.perks a { color: var(--brand); }
.desc { margin-top: 3.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem; }
.rich { color: var(--ink-2); }
.rich h2, .rich h3 { color: var(--ink); margin-top: 1.3em; }
.rich img { border-radius: 12px; }
.rich ul { padding-left: 1.2rem; }

/* Cart & checkout */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }
.cart-items { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem 1.5rem; }
.cart-line { display: grid; grid-template-columns: 88px 1fr auto; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line img { width: 88px; height: 88px; border-radius: 12px; object-fit: cover; background: var(--stage); }
.cart-line .name { font-weight: 600; text-decoration: none; }
.meta { font-size: .85rem; color: var(--muted); }
.cart-line-qty { display: grid; gap: .5rem; justify-items: end; }
.cart-line-qty input { width: 70px; padding: .45rem; border: 1px solid #e3d9cf; border-radius: 10px; text-align: center; font: inherit; }
.cart-actions { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 0; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; position: sticky; top: 90px; display: grid; gap: .8rem; }
.summary h2 { font-size: 1.3rem; margin: 0; }
.summary .row { display: flex; justify-content: space-between; }
.summary .total { font-size: 1.2rem; font-weight: 700; border-top: 1px solid var(--line); padding-top: .8rem; }
.hint { background: var(--brand-soft); color: var(--brand-dark); padding: .55rem .8rem; border-radius: 10px; font-size: .88rem; margin: 0; }
.checkout-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.checkout-form h2 { font-size: 1.25rem; margin: 1.6rem 0 1rem; }
.checkout-form h2:first-child { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.pay-options { display: grid; gap: .7rem; }
.pay-opt { display: flex; gap: .8rem; align-items: flex-start; border: 1.5px solid #e3d9cf; border-radius: 14px; padding: 1rem; cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pay-opt input { margin-top: .3rem; accent-color: var(--brand); }
.pay-opt span { display: grid; }
.pay-opt small { color: var(--muted); }
.mini-line { display: grid; grid-template-columns: 52px 1fr auto; gap: .7rem; align-items: center; font-size: .9rem; }
.mini-line img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.mini-line small { display: block; color: var(--muted); }
.pay-box { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 2.5rem 1.5rem; }
.pay-amount { font-family: var(--display); font-size: 2.6rem; font-weight: 700; margin: .5rem 0 1.5rem; }

/* Order */
.success-head { text-align: center; margin-bottom: 2rem; }
.success-tick { width: 72px; height: 72px; border-radius: 50%; background: #e6f6ee; color: var(--green); font-size: 2.2rem; display: grid; place-items: center; margin: 0 auto 1rem; }
.order-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-top: 1.5rem; }
.order-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1rem; }
.order-meta small { display: block; color: var(--muted); font-size: .78rem; }
.tracking { background: #eef1ff; padding: .7rem 1rem; border-radius: 10px; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: .7rem .4rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table .r { text-align: right; }
.table tfoot td { border: 0; padding: .35rem .4rem; }
.table tfoot .total td { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--line); padding-top: .7rem; }
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.badge-grey { background: #eceef3; color: #555b70; }
.badge-blue { background: #e4ecff; color: #2d50c8; }
.badge-amber { background: #fff3d9; color: #9a6200; }
.badge-purple { background: #f0e6ff; color: #6b2fc0; }
.badge-green { background: #e2f6ec; color: #17784a; }
.badge-red { background: #fde6e6; color: #b42323; }
.track-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: .7rem; }
.track-form input { padding: .8rem 1rem; border: 1px solid #e3d9cf; border-radius: 12px; font: inherit; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; display: grid; gap: 1.2rem; justify-items: start; }
.contact-form .form-grid { width: 100%; }
.contact-info { display: grid; gap: 1.2rem; align-content: start; }
.contact-info h3 { margin: 0 0 .2rem; font-size: 1rem; font-family: var(--font); }
.contact-info p, .contact-info a { margin: 0; color: var(--ink-2); }

/* Footer */
.trust-strip { background: #fff; border-top: 1px solid var(--line); padding: 28px 0; margin-top: 32px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.trust-grid div { display: grid; font-size: .9rem; }
.trust-grid span { color: var(--muted); font-size: .85rem; }
.site-footer { background: var(--ink); color: #c9cce0; padding: 52px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-grid h4 { color: #fff; margin: 0 0 .8rem; font-size: 1rem; }
.footer-grid a { display: block; text-decoration: none; padding: .2rem 0; font-size: .92rem; }
.footer-grid a:hover { color: #fff; }
.footer-logo { font-family: var(--display); font-size: 1.5rem; color: #fff; font-weight: 700; }
.socials { display: flex; gap: 1rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.2rem; font-size: .82rem; }
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 25px -5px rgba(37, 211, 102, .6); z-index: 60; }

/* Responsive */
@media (max-width: 1080px) {
  .main-nav { gap: .9rem; margin-left: .5rem; }
  .search input { width: 150px; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: 70px 0 auto 0; background: var(--bg); flex-direction: column; gap: 0; margin: 0; padding: .5rem 16px 1rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; max-height: calc(100vh - 70px); overflow-y: auto; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .main-nav a::after { display: none; }
  .search { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .product, .cart-layout, .checkout-layout, .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 2rem; }
  .hero-stage { margin: 0 auto; max-width: 480px; }
  .gallery, .summary { position: static; }
  .occasions, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 44px 0; }
  .hero { padding: 28px 0 40px; }
  .hero-try { flex-direction: column; border-radius: 22px; padding: .5rem; }
  .hero-try input { padding: .75rem .8rem; }
  .hero-try .btn { width: 100%; }
  .grid { gap: .8rem; }
  .card-body { padding: .75rem .8rem .9rem; }
  .card-body h3 { font-size: .88rem; }
  .card-cta { display: none; }
  .price .now { font-size: 1rem; }
  .tag-3d, .card-dots small { display: none; }
  .fonts { grid-template-columns: repeat(2, 1fr); }
  .perks { grid-template-columns: 1fr; }
  .form-grid, .track-form { grid-template-columns: 1fr; }
  .order-meta { grid-template-columns: 1fr 1fr; }
  .cart-line { grid-template-columns: 64px 1fr; }
  .cart-line img { width: 64px; height: 64px; }
  .cart-line-qty { grid-column: 2; justify-items: start; grid-auto-flow: column; align-items: center; }
  .checkout-form, .contact-form, .desc { padding: 1.2rem; }
  .cta-band { padding: 1.8rem; }
  .logo-text { font-size: 1.35rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head.center { align-items: center; }
  .stage { border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Photo customiser ---------- */
.photo-stage { background: #fff; border: 1px solid var(--line); }
.photo-stage .poster { object-fit: contain; }
.photo-stage .poster.gone { opacity: 0; }
.photo-stage canvas.photo-canvas { position: absolute; inset: auto; top: 50%; left: 50%; transform: translate(-50%, -50%); width: auto; height: auto; max-width: 100%; max-height: 100%; opacity: 1; z-index: 2; touch-action: none; }
/* phones: outside the design studio a swipe on the photo scrolls the page (dragging the name is for the studio) */
@media (max-width: 960px) { .photo-stage canvas.photo-canvas { touch-action: pan-y; }
  body.personalising .photo-stage canvas.photo-canvas { touch-action: none; }
  body:not(.personalising) .drag-hint { display: none !important; } }
.stage-3d { position: absolute; inset: 0; z-index: 2; background: var(--stage); }
.stage-3d canvas { opacity: 1 !important; }
.stage.is-live .stage-badge { display: inline-flex; }
.stage.is-live .drag-hint { display: block; transition: opacity .4s; }
.drag-hint.gone { opacity: 0; }
.drag-hint { white-space: nowrap; }
.gallery-note { margin: .6rem 0 0; }
.card-img img { object-fit: contain; background: #fff; }
.card-img { background: #fff; }

.designer { border: 1.5px solid var(--line); border-radius: 20px; padding: 1.2rem; background: linear-gradient(180deg, #fff, #fffaf7); display: grid; gap: 1.15rem; }
.designer-head { display: flex; justify-content: space-between; align-items: center; font-size: 1.05rem; }
.designer-head .muted { background: #e6f6ee; color: var(--green); font-weight: 700; padding: .15rem .6rem; border-radius: 999px; }
.field .label, .label-row { font-weight: 600; font-size: .93rem; display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.font-current { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .55rem .9rem; border: 1.5px solid #e3d9cf; border-radius: 14px; background: #fff; cursor: pointer; text-align: left; color: var(--ink); }
.font-current:hover { border-color: var(--ink); }
.font-current-sample { flex: 1; font-size: 1.7rem; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.font-current-name { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.font-panel { border: 1.5px solid #e3d9cf; border-radius: 16px; background: #fff; overflow: hidden; }
.font-tools { padding: .7rem; border-bottom: 1px solid var(--line); display: grid; gap: .55rem; }
.font-tools input { padding: .55rem .8rem; border: 1px solid #e3d9cf; border-radius: 10px; font: inherit; }
.font-cats { display: flex; gap: .35rem; flex-wrap: wrap; }
.font-cats button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .3rem .75rem; font: 500 .82rem var(--font); cursor: pointer; color: var(--ink); }
.font-cats button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.font-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .45rem; padding: .7rem; max-height: 330px; overflow-y: auto; overscroll-behavior: contain; }
.font-tile { display: grid; gap: .1rem; justify-items: center; padding: .55rem .4rem .45rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; color: var(--ink); min-width: 0; }
.font-tile:hover { border-color: #c9bdb1; }
.font-tile.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.font-tile .font-sample { font-size: 1.45rem; line-height: 1.4; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.font-tile small { font-size: .7rem; color: var(--muted); }
.size-row { display: flex; align-items: center; gap: .6rem; }
.size-row input[type=range] { flex: 1; accent-color: var(--brand); height: 28px; }
.size-btn { width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid #e3d9cf; background: #fff; cursor: pointer; font: 700 .8rem var(--font); color: var(--ink); }
.size-btn.big { font-size: 1.05rem; }
.text-colours { display: flex; flex-wrap: wrap; gap: .6rem; }
.tc { position: relative; display: grid; justify-items: center; gap: .2rem; cursor: pointer; }
.tc input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tc span { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.tc input:checked + span { box-shadow: 0 0 0 2px var(--ink); }
.tc input:focus-visible + span { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.tc small { font-size: .7rem; color: var(--muted); }
.tc-silver { background: linear-gradient(135deg, #fafafa, #b9bcc6); }
.tc-gold { background: linear-gradient(135deg, #f6dc95, #a97c28); }
.tc-rosegold { background: linear-gradient(135deg, #f8d3c6, #b9725f); }
.tc-white { background: #fff; }
.tc-black { background: #1f1f23; }
.tc-navy { background: #26306a; }
.icon-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .4rem; }
.icon-btn { aspect-ratio: 1; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; padding: 6px; display: grid; place-items: center; }
.icon-btn canvas { width: 100%; height: 100%; }
.icon-btn span { font-size: .7rem; font-weight: 600; color: var(--muted); }
.icon-btn:hover { border-color: #c9bdb1; }
.icon-btn.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); background: var(--brand-soft); }
.seg { display: flex; flex-wrap: wrap; gap: .4rem; }
.seg label { position: relative; flex: 1 1 auto; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; gap: .45rem; padding: .6rem .7rem; border: 1.5px solid #e3d9cf; border-radius: 12px; background: #fff; font-size: .88rem; font-weight: 500; white-space: nowrap; }
.seg input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.seg input:focus-visible + span { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.icon-pos { margin-top: .5rem; }
.cart-design { width: 88px; height: 88px; object-fit: contain; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
@media (max-width: 600px) {
  .icon-grid { grid-template-columns: repeat(6, 1fr); }
  .designer { padding: 1rem; }
  .font-grid { max-height: 280px; }
}

/* ---------- v4: views, photo upload, gifting ---------- */
.stage-original { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; z-index: 3; }
.thumb-design { position: relative; width: 96px; }
.thumb-design img { opacity: .55; }
.thumb-design span { position: absolute; inset: auto 0 0 0; background: rgba(31, 33, 64, .85); color: #fff; font-size: .62rem; font-weight: 700; padding: 3px 2px; text-align: center; }
.eta { background: #eef7f1; color: #17603f; padding: .55rem .85rem; border-radius: 12px; font-size: .9rem; margin: .4rem 0 0; }
.upload-drop { position: relative; display: flex; align-items: center; justify-content: center; border: 2px dashed #d9cdc1; border-radius: 14px; padding: 1rem; background: #fff; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.upload-drop:hover { border-color: var(--brand); color: var(--brand-dark); }
.upload-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.photo-tools { display: grid; gap: .55rem; margin-top: .5rem; }
.photo-tools input[type=range] { accent-color: var(--brand); }
.confirm { background: #fff8e6; border: 1px solid #f3dfb0; border-radius: 12px; padding: .7rem .85rem; font-size: .88rem; display: flex; gap: .55rem; align-items: flex-start; font-weight: 500; }
.confirm input { margin-top: .2rem; accent-color: var(--brand); }
.gift-box { display: grid; gap: .8rem; background: #fff8f6; border: 1px solid #f4dcd6; border-radius: 14px; padding: 1rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; }
.gift-box .check { display: flex; gap: .6rem; align-items: flex-start; }
.gift-box .check input { margin-top: .25rem; accent-color: var(--brand); }
.designer .confirm { display: flex; width: 100%; justify-self: stretch; }
.designer .confirm[hidden] { display: none !important; }
.icon-current canvas { width: 34px; height: 34px; flex-shrink: 0; }
.icon-current-name { flex: 1; font-weight: 500; font-size: 1rem; }
.icon-panel { padding: .7rem; }
.icon-pos-select { display: grid; gap: .35rem; font-weight: 600; font-size: .9rem; margin-top: .5rem; }
.icon-pos-select select { padding: .65rem .8rem; border: 1px solid #e3d9cf; border-radius: 12px; font: inherit; font-weight: 500; background: #fff; color: var(--ink); }
.icon-size { display: grid; gap: .35rem; margin-top: .6rem; }

/* ---------- v7: accounts, reviews, coupons, tracking + alignment polish ---------- */
.icon-link { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.icon-link:hover, .cart-link:hover { border-color: var(--ink); }
.auth-section { padding-block: 56px; }
.auth-card { max-width: 440px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 2.2rem; box-shadow: var(--shadow-sm); }
.auth-card h1 { font-size: 1.9rem; margin-bottom: .3rem; }
.auth-card > .muted { margin: 0 0 1.4rem; }
.auth-form { display: grid; gap: 1rem; }
.auth-form input { width: 100%; padding: .8rem .95rem; border: 1px solid #e3d9cf; border-radius: 12px; font: inherit; background: #fff; }
.auth-links { display: flex; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-top: 1.2rem; font-size: .92rem; color: var(--muted); }
.auth-links a { color: var(--brand); font-weight: 600; text-decoration: none; }
.account-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.account-head h1 { margin: 0; }
.account-head p { margin: .2rem 0 0; }
.account-tabs { display: flex; gap: .4rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.account-tabs a { padding: .7rem 1rem; text-decoration: none; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.account-tabs a.on { color: var(--ink); border-color: var(--brand); }
.order-list { display: grid; gap: .7rem; }
.order-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr auto; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.2rem; text-decoration: none; transition: box-shadow .2s, border-color .2s; }
.order-row:hover { border-color: #d8ccc0; box-shadow: var(--shadow-sm); }
.order-row small { display: block; color: var(--muted); font-size: .75rem; }
.order-row-go { color: var(--brand); font-weight: 700; }
.order-actions { margin-top: 1rem; }
.profile-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.5rem; align-items: start; }
.panel-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: grid; gap: 1rem; justify-items: start; }
.panel-card > * { width: 100%; }
.panel-card > .btn { width: auto; }
.panel-card h2 { font-size: 1.25rem; margin: 0; }
.panel-card p { margin: 0; }
.login-nudge { background: #f3f0ff; border-radius: 12px; padding: .75rem 1rem; margin: 0 0 1.4rem; font-size: .92rem; }
.login-nudge a { color: var(--brand-dark); font-weight: 600; }
.coupon-form { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; border-top: 1px dashed var(--line); padding-top: .9rem; }
.coupon-form input { flex: 1; min-width: 0; padding: .6rem .8rem; border: 1px solid #e3d9cf; border-radius: 10px; font: inherit; text-transform: uppercase; }
.coupon-on { flex: 1; font-size: .92rem; }
.save-row, .summary .save-row span { color: var(--green); font-weight: 600; }
.progress { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; padding: 0; margin: 1.2rem 0 1.4rem; counter-reset: p; }
.progress li { position: relative; display: grid; justify-items: center; gap: .4rem; text-align: center; font-size: .8rem; color: var(--muted); font-weight: 500; }
.progress li span { width: 22px; height: 22px; border-radius: 50%; background: #ece6df; border: 3px solid #fff; box-shadow: 0 0 0 1px #e0d6cb; z-index: 1; }
.progress li::before { content: ''; position: absolute; top: 10px; left: -50%; right: 50%; height: 3px; background: #ece6df; }
.progress li:first-child::before { display: none; }
.progress li.done { color: var(--ink); }
.progress li.done span { background: var(--green); box-shadow: 0 0 0 1px var(--green); }
.progress li.done::before { background: var(--green); }
.tracking { background: #f4f6ff; border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: 1.2rem; }
.tracking-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.tracking-status { margin-top: .2rem; font-weight: 600; color: #2d50c8; }
.timeline { list-style: none; margin: 1rem 0 0; padding: 0 0 0 1rem; border-left: 2px solid #d5dcff; display: grid; gap: .8rem; }
.timeline li { position: relative; display: grid; gap: .1rem; font-size: .9rem; }
.timeline li::before { content: ''; position: absolute; left: calc(-1rem - 6px); top: .35rem; width: 10px; height: 10px; border-radius: 50%; background: #2d50c8; border: 2px solid #f4f6ff; }
.timeline li:not(:first-child)::before { background: #a9b6f0; }
.t-date { font-size: .78rem; color: var(--muted); }
.t-act { font-weight: 600; }
.t-loc { color: var(--ink-2); font-size: .85rem; }
.item-cell { display: flex; gap: .8rem; align-items: flex-start; }
.item-cell .cart-design { width: 64px; height: 64px; flex-shrink: 0; }
.table .c, .table th.c { text-align: center; }
.table th.r { text-align: right; }
.rating-line { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; margin: 0 0 .6rem; font-size: .92rem; }
.stars { color: #f2a93b; letter-spacing: 1px; }
.stars .off { color: #e2dad1; }
.reviews { margin-top: 3.5rem; }
.reviews-head h2 { margin-bottom: .3rem; }
.rating-big { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: 0; }
.rating-big .stars { font-size: 1.3rem; }
.reviews-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; margin-top: 1.4rem; align-items: start; }
.review-list { display: grid; gap: .9rem; }
.review { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem; }
.review-top { display: flex; align-items: center; gap: .6rem; }
.review h3 { font-family: var(--font); font-size: 1rem; margin: .5rem 0 .2rem; letter-spacing: 0; }
.review p { margin: .3rem 0 .5rem; color: var(--ink-2); }
.review-form { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem; display: grid; gap: .9rem; justify-items: start; position: sticky; top: 90px; }
.review-form > * { width: 100%; }
.review-form > .btn { width: auto; }
.review-form h3 { font-family: var(--font); font-size: 1.1rem; margin: 0; letter-spacing: 0; }
.review-form p { margin: 0; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: .15rem; border: 0; padding: 0; margin: 0; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2rem; line-height: 1; color: #e2dad1; cursor: pointer; transition: color .1s; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f2a93b; }
.star-input input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 4px; }
.related-head { margin-top: 3.5rem; }
/* alignment polish */
.designer .confirm { color: var(--ink); align-items: flex-start; }
.designer .confirm input { flex-shrink: 0; }
.summary .row { align-items: baseline; gap: 1rem; }
.summary .row span:last-child { text-align: right; white-space: nowrap; }
.cart-line-info { display: grid; gap: .15rem; min-width: 0; }
.cart-line-info .link-btn { justify-self: start; margin-top: .3rem; }
.page-head h1 { margin-bottom: .3rem; }
.section-head > div > .kicker { display: block; }
.footer-grid > div { display: grid; align-content: start; gap: .1rem; }
.footer-grid p { margin: .4rem 0 0; }
.trust-grid div { gap: .15rem; }
.contact-info > div { display: grid; gap: .2rem; }
@media (max-width: 960px) {
  .reviews-grid, .profile-grid { grid-template-columns: 1fr; }
  .review-form { position: static; }
}
@media (max-width: 600px) {
  .order-row { grid-template-columns: 1fr 1fr; }
  .order-row-go { display: none; }
  .auth-card { padding: 1.5rem; border-radius: 20px; }
  .progress li { font-size: .7rem; }
  .header-actions { gap: .45rem; }
  .icon-link, .cart-link { width: 40px; height: 40px; }
}

/* v8: phone polish for order tables */
@media (max-width: 560px) {
  .order-card { padding: 1rem; }
  .order-card .table th, .order-card .table td { padding-left: .35rem; padding-right: .35rem; }
  .item-cell { gap: .55rem; }
  .item-cell .cart-design { width: 44px; height: 44px; }
  .item-cell strong { font-size: .9rem; line-height: 1.3; }
  .item-cell .meta { font-size: .78rem; }
  .order-card .table th.c, .order-card .table td.c { width: 2.2rem; }
}

/* v8: WhatsApp */
.wa-optin { background: #effaf3; border: 1px solid #c9ecd6; border-radius: 12px; padding: .75rem .9rem; font-size: .9rem; align-items: center; }
.wa-optin > span { display: flex; gap: .55rem; align-items: flex-start; }
.wa-optin svg { flex-shrink: 0; margin-top: .1rem; color: #25D366; }
.panel-card .wa-optin { margin: .2rem 0 1rem; }
.wa-optin input { accent-color: #1da851; flex-shrink: 0; }
.btn-wa { background: #1da851; color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; box-shadow: 0 8px 20px rgba(29,168,81,.25); }
.btn-wa:hover { background: #178f45; color: #fff; }
.phone-input { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.phone-input:focus-within { border-color: #1da851; box-shadow: 0 0 0 3px rgba(29,168,81,.15); }
.phone-input span { display: grid; place-items: center; padding: 0 .85rem; background: #f6f6f8; color: var(--muted); font-weight: 600; border-right: 1px solid var(--line); }
.phone-input input { border: 0 !important; box-shadow: none !important; flex: 1; min-width: 0; border-radius: 0; }
.auth-or { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .85rem; margin: 1.4rem 0 1rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.otp-input { font-size: 1.5rem !important; letter-spacing: .5em; text-align: center; font-weight: 700; }
.center { text-align: center; }
.auth-links .link-btn { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; font-weight: 600; }
.auth-form { grid-template-columns: minmax(0, 1fr); }
.btn-wa { white-space: normal; text-align: center; line-height: 1.25; }
@media (max-width: 400px) { .btn-wa.btn-lg { font-size: .95rem; padding-left: 1rem; padding-right: 1rem; } }

/* v9: cart remove icon, confirm dialog, slide-in cart, offers */
.cart-line { grid-template-columns: 88px 1fr auto auto; }
.icon-remove { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; transition: color .15s, background .15s, border-color .15s; flex-shrink: 0; }
.icon-remove:hover, .icon-remove:focus-visible { color: var(--brand); border-color: #f3c3c6; background: var(--brand-soft); }
@media (max-width: 720px) {
  .cart-line { grid-template-columns: 64px 1fr auto; }
  .cart-line .icon-remove { grid-column: 3; grid-row: 1; }
  .cart-line-qty { grid-column: 2 / 4; grid-row: 2; }
}
body.modal-open { overflow: hidden; }
.confirm-backdrop { position: fixed; inset: 0; background: rgba(20, 21, 40, .5); display: grid; place-items: center; z-index: 1000; padding: 16px; animation: fade .15s ease; }
.confirm-backdrop[hidden] { display: none !important; }
.confirm-box { background: #fff; border-radius: 20px; padding: 1.6rem 1.5rem 1.3rem; width: 100%; max-width: 380px; text-align: center; box-shadow: 0 30px 60px -20px rgba(0,0,0,.35); animation: pop .18s ease; }
.confirm-icon { width: 56px; height: 56px; margin: 0 auto .7rem; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; font-size: 1.5rem; }
.confirm-box h3 { margin: 0 0 .35rem; font-size: 1.2rem; }
.confirm-box p { margin: 0 0 1.2rem; color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.confirm-actions .btn { width: 100%; min-width: 0; justify-content: center; white-space: normal; line-height: 1.25; min-height: 48px; padding-left: .9rem; padding-right: .9rem; }
.confirm-actions.stack { grid-template-columns: 1fr; }
.confirm-actions.stack [data-yes] { order: -1; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }

.drawer-backdrop { position: fixed; inset: 0; background: rgba(20, 21, 40, .45); z-index: 900; opacity: 0; transition: opacity .25s; }
.drawer-backdrop.is-open { opacity: 1; }
.drawer-backdrop[hidden] { display: none !important; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); background: var(--bg); z-index: 950; transform: translateX(105%); transition: transform .28s cubic-bezier(.2,.8,.2,1); box-shadow: -20px 0 50px -20px rgba(0,0,0,.35); visibility: hidden; }
.cart-drawer.is-open { transform: none; visibility: visible; }
.cart-drawer.is-busy .drawer-body { opacity: .55; pointer-events: none; }
.drawer-body { height: 100%; display: flex; flex-direction: column; transition: opacity .15s; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); background: #fff; }
.drawer-head h2 { margin: 0; font-size: 1.25rem; }
.drawer-head h2 span { color: var(--muted); font-family: var(--font); font-size: 1rem; font-weight: 500; }
.drawer-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1rem; cursor: pointer; color: var(--ink); }
.ship-progress { padding: .8rem 1.1rem; background: #fff; border-bottom: 1px solid var(--line); font-size: .88rem; }
.ship-progress p { margin: 0 0 .45rem; }
.ship-progress .bar { height: 6px; border-radius: 99px; background: #efe7df; overflow: hidden; }
.ship-progress .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #f08a5d); border-radius: 99px; transition: width .3s; }
.drawer-lines { flex: 1; overflow-y: auto; padding: .4rem 1.1rem; -webkit-overflow-scrolling: touch; }
.drawer-line { display: grid; grid-template-columns: 68px 1fr auto; gap: .8rem; padding: .9rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.drawer-thumb img { width: 68px; height: 68px; border-radius: 12px; object-fit: cover; background: var(--stage); display: block; }
.drawer-info { min-width: 0; display: grid; gap: .2rem; }
.drawer-info .name { font-weight: 600; font-size: .92rem; line-height: 1.3; color: var(--ink); text-decoration: none; }
.drawer-info .meta { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .35rem; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; background: #fff; overflow: hidden; }
.stepper form { display: contents; }
.stepper button { width: 34px; height: 34px; border: 0; background: none; font-size: 1.1rem; cursor: pointer; color: var(--ink); }
.stepper button:disabled { opacity: .35; }
.stepper span { min-width: 1.8rem; text-align: center; font-weight: 600; font-size: .92rem; }
.drawer-remove .icon-remove { width: 34px; height: 34px; }
.drawer-foot { padding: 1rem 1.1rem calc(1rem + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line); display: grid; gap: .45rem; box-shadow: 0 -10px 30px -20px rgba(0,0,0,.2); }
.drawer-foot .row { display: flex; justify-content: space-between; font-size: .92rem; }
.drawer-foot .row.total { font-weight: 700; font-size: 1.05rem; padding-top: .35rem; border-top: 1px solid var(--line); }
.drawer-foot .btn { margin-top: .2rem; }
.drawer-offer { background: #e9f8ef; color: #146c45; border-radius: 10px; padding: .55rem .75rem; font-size: .85rem; }
.drawer-offer.warn { background: #fff6e0; color: #855c00; }
.drawer-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: .6rem; padding: 2rem; text-align: center; color: var(--ink-2); }
.drawer-empty-icon { font-size: 2.6rem; }

.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 12px; font-size: .9rem; z-index: 1100; box-shadow: var(--shadow); max-width: calc(100vw - 32px); transition: opacity .4s, transform .4s; animation: pop .2s ease; }
.toast-error { background: #a3262c; }
.toast.out { opacity: 0; transform: translate(-50%, 10px); }

.offer-note { margin: 0; font-size: .85rem; background: #eef4ff; color: #2d50c8; border-radius: 10px; padding: .55rem .75rem; }
.offer-note.is-lost { background: #fff6e0; color: #855c00; }
.offer-note.is-lost::after { content: " Not applied with Cash on Delivery."; font-weight: 600; }
.offer-warn { margin: -.2rem 0 0; font-size: .85rem; color: #a3262c; background: #fdeaea; border-radius: 10px; padding: .55rem .75rem; }
.offers-box { border-top: 1px dashed var(--line); padding-top: 1rem; margin-top: .3rem; display: grid; gap: .6rem; }
.offers-box h3 { margin: 0; font-size: 1rem; }
.offer-card { display: flex; justify-content: space-between; align-items: center; gap: .7rem; border: 1px dashed #e9c9b9; background: #fffaf6; border-radius: 12px; padding: .7rem .8rem; }
.offer-card.is-on { border-style: solid; border-color: #b9e4cb; background: #effaf3; }
.offer-main { display: grid; gap: .15rem; min-width: 0; }
.offer-main strong { font-size: .9rem; line-height: 1.3; }
.offer-main small { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.offer-main .offer-hint { color: #855c00; }
.offer-main .offer-save { color: var(--green); font-weight: 600; }
.offer-side { display: grid; justify-items: end; gap: .3rem; flex-shrink: 0; }
.offer-code { font: 700 .75rem/1 ui-monospace, Menlo, monospace; letter-spacing: .05em; border: 1px dashed var(--brand); color: var(--brand); padding: .3rem .45rem; border-radius: 6px; background: #fff; }
.offer-applied { color: var(--green); font-weight: 700; font-size: .85rem; }
.offer-auto { color: var(--muted); font-size: .78rem; }
.offer-side form { margin: 0; }

/* v10: leaving-cart offer */
.exit-box { position: relative; max-width: 400px; padding: 1.8rem 1.6rem 1.2rem; }
.exit-x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--muted); }
.exit-gift { font-size: 2.6rem; line-height: 1; margin-bottom: .4rem; animation: wiggle 1.2s ease 1; }
.exit-box h3 { font-size: 1.45rem; margin: 0 0 .4rem; }
.exit-text { margin-bottom: 1rem !important; }
.exit-code { display: flex; align-items: center; justify-content: space-between; gap: .6rem; border: 2px dashed var(--brand); background: var(--brand-soft); border-radius: 12px; padding: .55rem .6rem .55rem 1rem; margin-bottom: .4rem; }
.exit-code span { font: 800 1.15rem/1 ui-monospace, Menlo, monospace; letter-spacing: .08em; color: var(--brand-dark); }
.exit-code button { border: 0; background: #fff; color: var(--ink); border-radius: 8px; padding: .45rem .75rem; font-weight: 600; cursor: pointer; font-size: .85rem; }
.exit-until { display: block; color: var(--muted); font-size: .8rem; margin-bottom: 1rem; }
.exit-box form { margin: 0 0 .5rem; }
.exit-no { color: var(--muted) !important; font-size: .88rem; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-12deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(3deg); } }

/* v11: personalisation on request + pinned live preview on phones */
.custom-start { width: 100%; display: flex; align-items: center; gap: .9rem; text-align: left; padding: 1rem 1.1rem; border-radius: 16px; border: 2px dashed color-mix(in srgb, var(--brand) 55%, #fff); background: linear-gradient(135deg, var(--brand-soft), #fff 70%); cursor: pointer; font: inherit; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.custom-start:hover, .custom-start:focus-visible { transform: translateY(-1px); box-shadow: var(--shadow-sm); border-color: var(--brand); }
.custom-start .cs-icon { width: 46px; height: 46px; border-radius: 14px; background: #fff; display: grid; place-items: center; font-size: 1.4rem; box-shadow: var(--shadow-sm); flex-shrink: 0; }
.custom-start .cs-text { display: grid; gap: .1rem; flex: 1; min-width: 0; }
.custom-start strong { font-size: 1.02rem; }
.custom-start small { color: var(--muted); font-size: .82rem; }
.custom-start .cs-plus { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.3rem; font-weight: 600; flex-shrink: 0; }
.designer:not(.is-open) { padding: 0; border: 0; background: none; box-shadow: none; }
.designer-body { display: grid; gap: inherit; }
.designer-body[hidden] { display: none !important; }
.designer-head .link-btn { font-size: .85rem; color: var(--muted); }
.custom-done { display: none; }
.studio-bar, .studio-tabs, .studio-add, .zoom-btn { display: none; }
.zoom-btn { position: absolute; right: 10px; top: 10px; z-index: 5; align-items: center; gap: .3rem; border: 0; border-radius: 999px; padding: .35rem .7rem; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-sm); font: 600 .75rem var(--font); color: var(--ink); cursor: pointer; }
.custom-foot { display: grid; gap: .8rem; }
.custom-foot-btns { display: flex; gap: .6rem; }
.custom-foot-btns .btn { flex: 1; }
.custom-start.is-edit { border-style: solid; background: #fff; }
.custom-start.is-edit .cs-plus { font-size: 1rem; }
/* phones: full-screen design studio – live preview on top, one tool at a time underneath, follows the keyboard */
@media (max-width: 960px) {
  html.studio-lock, html.studio-lock body { overflow: hidden; overscroll-behavior: none; }
  body.personalising { --pv: calc(var(--vvh, 100svh) * .6); }
  body.personalising.studio-full { --pv: calc(var(--vvh, 100svh) * .34); }
  body.personalising.studio-short { --pv: calc(var(--vvh, 100svh) - 128px); }
  body.personalising .site-header, body.personalising .announcement, body.personalising .topbar { visibility: hidden; }
  body.personalising .product > .gallery { position: fixed; left: 0; right: 0; top: calc(var(--vvt, 0px) + 52px); height: calc(var(--pv) - 52px); z-index: 1001; margin: 0; padding: 6px 12px 8px; background: var(--bg); }
  body.personalising .product > .gallery .stage { aspect-ratio: auto; height: 100%; min-height: 0; max-height: none; border-radius: 18px; transition: height .3s; }
  body.personalising .photo-stage canvas.photo-canvas { transform: translate(-50%, -50%) translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--z, 1)); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
  body.personalising .zoom-btn { display: inline-flex; }
  body.personalising .stage-badge { top: 10px; left: 10px; font-size: .72rem; padding: .25rem .6rem; }
  body.personalising .drag-hint { bottom: 10px; }
  body.personalising.studio-short .drag-hint, body.personalising.studio-short .stage-badge { display: none !important; }
  body.personalising .product > .gallery .thumbs, body.personalising .product > .gallery .gallery-note { display: none; }
  body.personalising .studio-bar { display: flex; position: fixed; left: 0; right: 0; top: var(--vvt, 0px); height: 52px; z-index: 1002; align-items: center; justify-content: space-between; padding: 0 8px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .studio-bar button { border: 0; background: none; font: inherit; font-weight: 600; padding: .6rem .7rem; color: var(--ink); cursor: pointer; border-radius: 10px; }
  .studio-bar button:last-child { color: var(--muted); font-weight: 500; font-size: .9rem; }
  .studio-bar strong { font-size: 1rem; }
  body.personalising .designer-body { position: fixed; left: 0; right: 0; top: calc(var(--vvt, 0px) + var(--pv)); height: calc(var(--vvh, 100svh) - var(--pv)); z-index: 1001; margin: 0;
    display: flex; flex-direction: column; gap: 0; background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -10px 30px -12px rgba(31, 33, 64, .25); overflow: hidden; }
  body.personalising .designer-head { display: none; }
  body.personalising .studio-tabs { display: flex; gap: .4rem; overflow-x: auto; padding: .7rem .8rem .55rem; flex-shrink: 0; scrollbar-width: none; border-bottom: 1px solid var(--line); }
  .studio-tabs::-webkit-scrollbar { display: none; }
  .studio-tabs button { flex-shrink: 0; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .5rem .9rem; font: inherit; font-size: .88rem; font-weight: 600; color: var(--ink); cursor: pointer; }
  .studio-tabs button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
  body.personalising .designer-body [data-tab] { display: none; }
  body.personalising .designer-body [data-tab].tab-on { display: grid; gap: .6rem; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: .9rem 1rem; margin: 0; border: 0; align-content: start; }
  body.personalising .designer-body [data-tab] > label:first-child, body.personalising .designer-body [data-tab] > .label, body.personalising .designer-body [data-tab] > legend { display: none; }
  /* fonts & icons: a swipeable strip, plus a dropdown that opens the full list */
  body.personalising [data-font-toggle], body.personalising [data-icon-toggle] { padding: .45rem .8rem; border-radius: 12px; }
  body.personalising .font-current-sample { font-size: 1.35rem; }
  body.personalising [data-font-panel][hidden], body.personalising [data-icon-panel][hidden] { display: block !important; }
  body.personalising .font-panel { border: 0; border-radius: 0; background: none; overflow: visible; }
  body.personalising .font-tools { display: none; }
  body.personalising .font-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; grid-template-columns: none; max-height: none; overflow-x: auto; overflow-y: hidden; padding: .1rem .1rem .4rem; scroll-snap-type: x proximity; scrollbar-width: none; }
  body.personalising .font-grid::-webkit-scrollbar, body.personalising .icon-grid::-webkit-scrollbar { display: none; }
  body.personalising .font-grid .font-tile { scroll-snap-align: center; }
  body.personalising .icon-grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, 46px); grid-auto-columns: 46px; grid-template-columns: none; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: none; }
  body.personalising.studio-full .font-tools { display: grid; position: sticky; top: -.9rem; background: #fff; z-index: 1; padding: .2rem 0 .5rem; border: 0; }
  body.personalising.studio-full .font-grid { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); grid-auto-columns: auto; overflow: visible; }
  body.personalising.studio-full .icon-grid { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); grid-template-rows: none; grid-auto-columns: auto; overflow: visible; }
  body.personalising.studio-full .icon-grid .icon-btn { height: auto; }
  /* keyboard open: just the name box under the preview */
  body.personalising.studio-short .studio-tabs, body.personalising.studio-short .custom-foot { display: none; }
  body.personalising .name-input input { font-size: 1.1rem; }
  body.personalising .custom-foot { flex-shrink: 0; gap: .5rem; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
  body.personalising .confirm { font-size: .76rem; line-height: 1.3; padding: .35rem .55rem; margin: 0; }
  body.personalising .custom-foot-btns .btn { min-height: 44px; padding-top: .55rem; padding-bottom: .55rem; }
  body.personalising .studio-tabs { padding: .55rem .7rem .45rem; }
  body.personalising .studio-tabs button { padding: .4rem .8rem; font-size: .84rem; }
  body.personalising .designer-body [data-tab].tab-on { padding: .7rem .9rem; grid-template-columns: minmax(0, 1fr); }
  body.personalising .designer-body [data-tab].tab-on > * { min-width: 0; }
  body.personalising .custom-done, body.personalising .studio-add { display: block; }
  body.personalising .drag-hint { font-size: .72rem; }
  body.personalising .chatbot, body.personalising .wa-float { display: none !important; }
}
}




/* v11: home page 3D carousel – transparent PNG products gliding on an oval */
@property --tint { syntax: '<color>'; inherits: true; initial-value: #e9a8c0; }
.hero3d { --W: clamp(135px, 13.5vw, 195px); position: relative; padding: clamp(1.2rem, 3.5vw, 2.4rem) 0 clamp(1.5rem, 3vw, 2.5rem); background: var(--bg); overflow: hidden; isolation: isolate; transition: --tint .9s ease; }
.show-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.show-tint { position: absolute; left: 50%; top: 58%; width: min(1100px, 130vw); aspect-ratio: 2 / 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tint) 42%, transparent), color-mix(in srgb, var(--tint) 12%, transparent) 60%, transparent); filter: blur(10px); }
.show-beam { position: absolute; left: 50%; top: -10%; width: 520px; height: 90%; transform: translateX(-50%); background: linear-gradient(to bottom, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0)); clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); opacity: .55; }
.hero3d-head { text-align: center; max-width: 760px; position: relative; }
.hero3d-head h1 { font-size: clamp(1.7rem, 3.8vw, 2.9rem); line-height: 1.08; margin: .5rem 0 .5rem; }
.hero3d-head .hero-sub { margin: 0 auto; max-width: 600px; font-size: 1.02rem; }
.show-wrap { position: relative; height: calc(var(--W) * 1.71 + 110px); user-select: none; -webkit-user-select: none; }
.show-scene { position: absolute; inset: 0; perspective: 1150px; perspective-origin: 50% 20%; cursor: grab; touch-action: pan-y; outline: none; }
.show-hero.is-dragging .show-scene, .hero3d.is-dragging .show-scene { cursor: grabbing; }
.show-scene:focus-visible { outline: 2px solid var(--brand); outline-offset: -6px; border-radius: 24px; }
.show-world { position: absolute; left: 50%; bottom: 56px; width: 0; height: 0; transform-style: preserve-3d; }
.show-item { position: absolute; left: 0; bottom: 0; width: var(--W); margin-left: calc(var(--W) / -2); transform-origin: 50% 100%; will-change: transform, opacity; cursor: pointer; }
.si-img { position: relative; display: block; width: 100%; height: auto; pointer-events: none;
  filter: blur(calc(var(--d, 0) * 2.2px)) brightness(calc(1 - var(--d, 0) * .1)); transform-origin: 50% 100%; }
.show-item.is-front .si-img { animation: siFloat 4s ease-in-out .6s infinite; }
@keyframes siFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.show-item.spin .si-img { animation: siSpin .42s cubic-bezier(.4, 0, .2, 1); }
@keyframes siSpin { 50% { transform: scaleX(.04); } }
.hero3d:not(.is-ready) .show-item { opacity: 0; }
.show-arrow { position: absolute; top: 44%; z-index: 5; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: var(--shadow-sm); font-size: 1.7rem; line-height: 1; color: var(--ink); cursor: pointer; display: grid; place-items: center; transform: translateY(-50%); transition: transform .2s, background .2s; }
.show-arrow:hover { transform: translateY(-50%) scale(1.08); background: #fff; }
.show-arrow.prev { left: max(12px, calc(50% - 560px)); }
.show-arrow.next { right: max(12px, calc(50% - 560px)); }
.show-dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: .45rem; z-index: 5; }
.show-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(31, 33, 64, .22); cursor: pointer; transition: width .35s cubic-bezier(.2, .8, .2, 1), background .35s; }
.show-dot.on { width: 26px; background: var(--ink); }
.ring-sw { width: 20px; height: 20px; padding: 0; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.ring-sw.on { box-shadow: 0 0 0 2px var(--ink); }
.ring-sw:hover { transform: scale(1.15); }
.ring-pick { margin: .6rem auto 0; max-width: 820px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1rem 1.1rem; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; box-shadow: var(--shadow-sm); position: relative; z-index: 3; }
.ring-pick.swap .ring-pick-info { animation: pickIn .35s ease; }
@keyframes pickIn { from { opacity: 0; transform: translateY(6px); } }
.ring-pick-info { display: grid; gap: .25rem; min-width: 0; }
.ring-pick-info strong { font-size: 1.05rem; line-height: 1.3; }
.ring-pick-price { display: flex; gap: .5rem; align-items: baseline; }
.ring-pick-price span { font-weight: 700; color: var(--brand-dark); font-size: 1.1rem; }
.ring-pick-price s { color: var(--muted); font-size: .9rem; }
.ring-pick-price em { font-style: normal; color: var(--green); font-weight: 700; font-size: .85rem; }
.ring-swatches { display: flex; gap: .35rem; }
.ring-pick-form { display: flex; gap: .5rem; }
.ring-pick-form input { width: 230px; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; font: inherit; background: var(--bg); }
.ring-pick-form input:focus { outline: none; border-color: var(--brand); background: #fff; }
.ring-pick-form .btn { white-space: nowrap; }
.center-points { justify-content: center; margin-top: 1rem; }
@media (max-width: 760px) {
  .hero3d { --W: 128px; padding-top: 1rem; }
  .hero3d-head h1 { font-size: 1.65rem; margin: .4rem 0 0; }
  .hero3d-head .hero-sub { display: none; }
  .hero3d-head .eyebrow { font-size: .75rem; }
  .show-wrap { height: calc(var(--W) * 1.71 + 90px); }
  .show-world { bottom: 48px; }
  .show-beam { width: 300px; }
  .show-arrow { width: 40px; height: 40px; font-size: 1.4rem; top: 46%; }
  .ring-pick { grid-template-columns: 1fr; text-align: center; }
  .ring-pick-info { justify-items: center; }
  .ring-pick-form { flex-direction: column; }
  .ring-pick-form input { width: 100%; text-align: center; }
  .ring-sw { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) { .show-item .si-img { animation: none !important; } }

/* v11: shopping assistant chat */
.chatbot { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 800; font-size: .95rem; }
.chat-launch { display: flex; align-items: center; gap: .55rem; border: 0; border-radius: 999px; padding: .45rem 1.1rem .45rem .45rem; background: var(--ink); color: #fff; font: 600 .95rem var(--font); cursor: pointer; box-shadow: 0 12px 30px -10px rgba(31, 33, 64, .55); transition: transform .15s; }
.chat-launch:hover { transform: translateY(-2px); }
.cl-ava { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.3rem; }
.chatbot.is-open .chat-launch { display: none; }
.chat-nudge { position: absolute; right: 0; bottom: 64px; width: 230px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 16px 16px 4px 16px; padding: .75rem 2rem .75rem .9rem; box-shadow: var(--shadow); cursor: pointer; font-size: .9rem; animation: pop .25s ease; }
.chat-nudge[hidden] { display: none; }
.cn-x { position: absolute; top: 6px; right: 6px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: .8rem; }
.chat-panel { position: absolute; right: 0; bottom: 0; width: min(390px, calc(100vw - 32px)); height: min(620px, calc(100vh - 110px)); background: var(--bg); border-radius: 22px; box-shadow: 0 30px 70px -20px rgba(31, 33, 64, .45); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; animation: pop .2s ease; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: .65rem; padding: .8rem .9rem; background: var(--ink); color: #fff; }
.ch-ava { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.chat-head div { flex: 1; display: grid; line-height: 1.25; min-width: 0; }
.chat-head small { color: rgba(255, 255, 255, .75); font-size: .76rem; display: flex; align-items: center; gap: .35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head small i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; flex-shrink: 0; }
.ch-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; font-size: .95rem; }
.ch-btn:hover { background: rgba(255, 255, 255, .22); }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem .85rem; display: flex; flex-direction: column; gap: .55rem; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.cm { max-width: 86%; padding: .6rem .85rem; border-radius: 16px; line-height: 1.45; word-wrap: break-word; }
.cm-user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.cm-bot { display: grid; gap: .45rem; justify-items: start; }
.cm-bot-text { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--ink); }
.cm-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip-q { border: 1.5px solid color-mix(in srgb, var(--brand) 45%, #fff); background: #fff; color: var(--brand-dark); border-radius: 999px; padding: .4rem .75rem; font: 600 .84rem var(--font); cursor: pointer; }
.chip-q:hover { background: var(--brand-soft); }
.cm-products { display: flex; gap: .55rem; overflow-x: auto; max-width: 100%; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.cm-card { flex: 0 0 160px; scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .55rem; display: grid; gap: .2rem; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.cm-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.cc-img { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--stage); }
.cc-img img { width: 100%; height: 100%; object-fit: cover; }
.cc-name { font-weight: 600; font-size: .82rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cc-price { font-size: .85rem; } .cc-price b { color: var(--brand-dark); } .cc-price s { color: var(--muted); font-size: .76rem; } .cc-price em { color: var(--green); font-style: normal; font-weight: 700; font-size: .74rem; }
.cc-rate { font-size: .76rem; color: #c58b00; } .cc-rate small { color: var(--muted); }
.cc-dots { display: flex; gap: 3px; } .cc-dots i { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); }
.cc-btn { margin-top: .2rem; text-align: center; background: var(--brand); color: #fff; border-radius: 999px; padding: .35rem; font-weight: 600; font-size: .8rem; }
.cm-track { display: grid; gap: .4rem; width: 86%; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .7rem; }
.cm-track input { padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.cm-order { display: grid; gap: .2rem; width: 86%; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 12px; padding: .7rem .8rem; }
.cm-order small { color: var(--muted); }
.cm-order-links { display: flex; gap: .8rem; flex-wrap: wrap; font-size: .85rem; margin-top: .2rem; }
.cm-order-links a, .cm-link { color: var(--brand-dark); font-weight: 600; }
.cm-human { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.cm-human .hb { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .4rem .8rem; font-weight: 600; font-size: .84rem; color: var(--ink); text-decoration: none; }
.cm-human .hb.wa { background: #1da851; border-color: #1da851; color: #fff; }
.cm-human small { width: 100%; color: var(--muted); }
.cm-typing { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: .7rem .9rem; display: flex; gap: 4px; }
.cm-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.cm-typing i:nth-child(2) { animation-delay: .2s; } .cm-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-input { display: flex; gap: .45rem; padding: .65rem; border-top: 1px solid var(--line); background: #fff; }
.chat-input input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 999px; padding: .65rem 1rem; font: inherit; font-size: 16px; background: var(--bg); }
.chat-input input:focus { outline: none; border-color: var(--brand); background: #fff; }
.chat-input button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; font-size: 1.05rem; cursor: pointer; flex-shrink: 0; }
.chat-foot { margin: 0; padding: .3rem .8rem .55rem; background: #fff; font-size: .72rem; color: var(--muted); text-align: center; }
.chat-foot a { color: inherit; }
@media (max-width: 700px) {
  .chat-launch .cl-txt { display: none; }
  .chat-launch { padding: .4rem; }
  .chatbot.is-open { inset: 0; right: 0; bottom: 0; }
  .chat-panel { position: fixed; inset: auto 0 0 0; width: 100%; height: 88vh; height: 88dvh; border-radius: 22px 22px 0 0; }
}
body.personalising .chatbot:not(.is-open), body.modal-open .chatbot:not(.is-open) { display: none; }
