/* MagnetPhoto — site styles. Tokens first; everything else uses them. */
:root {
  --navy: #1F2A44;
  --navy-2: #2D3A5C;
  --heart: #D93A55;
  --heart-dark: #B82A44;
  --gold: #FFC845;
  --cream: #FFF7F3;
  --paper: #FFFFFF;
  --ink: #1F2A44;
  --muted: #5B6478;
  --line: #E7E1DC;
  --ok: #1E7A55;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 24px rgba(31, 42, 68, 0.10);
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Figtree', system-ui, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.55 var(--body);
}
img { max-width: 100%; display: block; }
a { color: var(--heart-dark); }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.4em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Draft banner: shown while catalogue.pricesConfirmed is false */
.draft { background: var(--gold); color: var(--navy); text-align: center; font-weight: 700; font-size: 0.9rem; padding: 6px 12px; }

/* Header */
.head { background: var(--paper); border-bottom: 1px solid var(--line); }
.head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 0.97rem; padding: 10px 0; }
.nav a:hover, .nav a[aria-current] { color: var(--heart); }
.nav { margin-left: auto; }
.cart-link { display: inline-flex; align-items: center; gap: 6px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.cart-link:hover { background: var(--navy-2); color: #fff; }
.cart-count { background: var(--heart); color: #fff; border-radius: 999px; font-size: 0.8rem; min-width: 22px; text-align: center; padding: 0 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; font: 700 1rem var(--body); text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--heart); color: #fff; }
.btn-primary:hover { background: var(--heart-dark); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* Hero */
.hero { padding: 48px 0 32px; }
.hero .wrap { max-width: var(--wrap); }
.hero p.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* Sections */
.section { padding: 48px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-cats { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow); color: inherit; }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.price { font-weight: 700; color: var(--navy); }
.badge { align-self: flex-start; display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #EFEAE6; color: var(--muted); }
.badge-live { background: #DDF2E8; color: var(--ok); }

/* Product mock: a magnet drawn at the product's real proportions */
.mock { background: #EEF1F5; display: flex; align-items: center; justify-content: center; padding: 28px; aspect-ratio: 4 / 3; }
.mock .mag { background: linear-gradient(135deg, #F6C8A8, #D98E7A 55%, #7A5C8E); border: 6px solid #fff; border-radius: 6px; box-shadow: var(--shadow); max-height: 100%; }
.mock .mag-scene { background: #fff; border: 0; border-radius: 5px; overflow: hidden; box-shadow: 0 1px 2px rgba(31,42,68,.18), 0 10px 24px rgba(31,42,68,.18); }
.mag-scene > span { display: block; width: 100%; height: 100%; }
.mag-scene svg { display: block; width: 100%; height: 100%; }
.mock[data-orient="L"] .scene-P, .mock[data-orient="P"] .scene-L { display: none; }
.duo { background: #EEF1F5; display: flex; align-items: flex-end; justify-content: center; gap: 6%; padding: 24px 9% 12px; }
.duo-item { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.duo-item .mag-scene { display: block; width: 100%; background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 1px 2px rgba(31,42,68,.18), 0 8px 18px rgba(31,42,68,.16); }
.duo-item svg { display: block; width: 100%; height: 100%; }
.duo-item small { font-size: .78rem; font-weight: 700; color: var(--muted); }
.grid-sizes { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
@media (max-width: 400px) { .grid-sizes { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: s; }
.step { background: var(--paper); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font: 800 1rem var(--display); align-items: center; justify-content: center; margin-bottom: 10px; }

/* Product page */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 40px 0 56px; }
.opts { display: flex; flex-direction: column; gap: 22px; }
.opt h3 { margin-bottom: 10px; font-size: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip label { display: flex; flex-direction: column; min-width: 96px; padding: 10px 14px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); cursor: pointer; font-weight: 600; }
.chip label small { font-weight: 500; color: var(--muted); }
.chip input:checked + label { border-color: var(--heart); box-shadow: 0 0 0 3px rgba(217, 58, 85, 0.15); }
.chip input:focus-visible + label { outline: 3px solid var(--navy); outline-offset: 2px; }
.chip input:disabled + label { opacity: 0.4; cursor: not-allowed; }

/* Our own frame around the Printess editor */
html.editor-open, body.editor-open { overflow: hidden; }
.editor-panel { position: fixed; inset: 0; z-index: 1000; background: var(--paper); display: flex; flex-direction: column; }
.editor-bar { display: flex; align-items: center; gap: 14px; padding: 8px 16px; border-bottom: 1px solid var(--line); min-height: 56px; }
.editor-bar img { height: 30px; width: auto; }
.editor-title { font-weight: 700; color: var(--muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.editor-close { min-height: 40px; padding: 0 16px; }
.editor-host { position: relative; flex: 1; min-height: 0; }
@media (max-width: 560px) { .editor-title { display: none; } .editor-bar { justify-content: space-between; } }

select { min-height: 48px; padding: 0 12px; border-radius: var(--radius-sm); border: 2px solid var(--line); font: 600 1rem var(--body); background: var(--paper); color: var(--ink); }
.total { font: 800 1.6rem var(--display); }
.note { background: #FFF1D6; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 0.95rem; }

/* Cart */
.cart-table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.cart-table th, .cart-table td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cart-thumb { width: 72px; height: 54px; object-fit: contain; background: #EEF1F5; border-radius: 6px; }
.cart-sum { margin-left: auto; max-width: 360px; background: var(--paper); border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); }
.cart-sum .row { display: flex; justify-content: space-between; padding: 4px 0; }
.cart-sum .grand { font-weight: 800; font-size: 1.2rem; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; }
.table-scroll { overflow-x: auto; }

/* Prose pages */
.prose { max-width: 760px; padding-top: 40px; padding-bottom: 64px; }   /* keep .wrap side padding */
.prose h2 { margin-top: 1.4em; font-size: 1.4rem; }
.prose ul { padding-left: 1.2em; }

/* Footer */
.foot { background: var(--navy); color: #C9CFDB; padding: 40px 0; margin-top: 40px; font-size: 0.95rem; }
.foot .wrap { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { color: var(--gold); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot img { height: 36px; width: auto; margin-bottom: 10px; }

@media (max-width: 860px) {
  .pdp { grid-template-columns: minmax(0, 1fr); }
  .cart-sum { max-width: none; }
}

/* Product page pictures: landscape and portrait, tap one to choose */
.pdp-pics .duo { border-radius: var(--radius); padding: 36px 10% 18px; position: sticky; top: 16px; }
.duo-pick .duo-item { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.duo-pick .duo-item .mag-scene { outline: 3px solid transparent; outline-offset: 5px; transition: outline-color .15s, opacity .15s; }
.duo-pick[data-sel="L"] [data-pick="L"] .mag-scene, .duo-pick[data-sel="P"] [data-pick="P"] .mag-scene { outline-color: var(--heart); }
.duo-pick[data-sel="L"] [data-pick="P"], .duo-pick[data-sel="P"] [data-pick="L"] { opacity: .55; }
.duo-pick[data-sel="L"] [data-pick="L"] small, .duo-pick[data-sel="P"] [data-pick="P"] small { color: var(--heart-dark); }
.duo-pick .duo-item:disabled { cursor: not-allowed; opacity: .3; }
.duo-mm { font-weight: 500; }
fieldset.opt { border: 0; padding: 0; margin: 0; min-width: 0; }

/* Design picker: shows each design the way round the customer chose */
.designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.design { position: relative; }
.design input { position: absolute; opacity: 0; inset: 0; }
.design label { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); cursor: pointer; height: 100%; }
.design-pic { display: block; width: 100%; max-height: 120px; border-radius: 3px; overflow: hidden; box-shadow: 0 1px 2px rgba(31,42,68,.18), 0 4px 10px rgba(31,42,68,.12); }
.design-pic svg, .design-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
#pdp[data-orient="L"] .design-P, #pdp[data-orient="P"] .design-L { display: none; }
#pdp[data-orient="P"] .design-pic { width: auto; height: 120px; }
.design-name { font-weight: 700; font-size: .95rem; text-align: center; }
.design input:checked ~ label { border-color: var(--heart); box-shadow: 0 0 0 3px rgba(217, 58, 85, 0.15); }
.design input:focus-visible ~ label { outline: 3px solid var(--navy); outline-offset: 2px; }
.design input:disabled ~ label { opacity: .4; cursor: not-allowed; }

/* Menu button (phones) */
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 2px solid var(--navy); border-radius: 999px; background: var(--paper); color: var(--navy); font: 700 1rem var(--body); cursor: pointer; }
.menu-btn i { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.menu-btn i::before, .menu-btn i::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.menu-btn i::before { top: -6px; } .menu-btn i::after { top: 6px; }
.menu-btn[aria-expanded="true"] i { background: transparent; }
.menu-btn[aria-expanded="true"] i::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .head .wrap { flex-wrap: nowrap; min-height: 64px; gap: 10px; }
  .brand { margin-right: auto; }
  .brand img { height: 32px; }
  .menu-btn { display: inline-flex; }
  .head { position: relative; }
  .head .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; gap: 0; padding: 6px 16px 12px; margin: 0; overflow: visible; }
  .head.open .nav { display: flex; }
  .head .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .head .nav a:last-child { border-bottom: 0; }
  .cart-link { padding: 10px 14px; }
}

/* Phones: make each tile clearly one thing */
@media (max-width: 640px) {
  .grid { gap: 22px; }
  .card { border: 2px solid #D9CFC7; box-shadow: 0 6px 18px rgba(31, 42, 68, 0.10); }
  .duo { border-bottom: 1px solid var(--line); }
  .pdp-pics .duo { position: static; padding: 28px 8% 14px; border: 2px solid #D9CFC7; }
}

/* Shaped (die-cut) magnets: no rectangle, shadow follows the cut line */
.duo-item.duo-shape .mag-scene { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.duo-item.duo-shape svg, .duo-item.duo-shape img { filter: drop-shadow(0 1px 1px rgba(31,42,68,.25)) drop-shadow(0 6px 10px rgba(31,42,68,.18)); }
/* Single cut shapes (heart, circle): same picture height whatever the shape,
   so their tiles line up; the shape is sized by height, not width. */
.duo-one { height: 232px; align-items: center; padding-top: 18px; padding-bottom: 12px; }
.duo-one .duo-item { flex: 0 0 auto !important; width: auto; height: 100%; justify-content: center; }
.duo-one .duo-item .mag-scene { height: 160px; width: auto; max-width: 100%; }
.pdp-pics .duo-one { height: 340px; }
.pdp-pics .duo-one .duo-item .mag-scene { height: 250px; }
.card-body p.dims { font-size: .88rem; font-weight: 600; color: var(--navy); margin-top: -2px; }
.design-pic.design-shape { box-shadow: none; border-radius: 0; overflow: visible; max-width: 120px; }
.design-pic.design-shape svg, .design-pic.design-shape img { filter: drop-shadow(0 2px 4px rgba(31,42,68,.25)); }
.nav-full { display: none; }
@media (max-width: 860px) { .nav-short { display: none; } .nav-full { display: inline; } }
.editor-tip { font-size: .9rem; color: var(--heart-dark); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 560px) { .editor-tip { white-space: normal; font-size: .8rem; line-height: 1.2; } }

/* Cart: tap a thumbnail to see the preview large, and confirm before paying */
.cart-thumb-btn { position: relative; display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 6px; }
.cart-thumb-btn .cart-thumb { width: 96px; height: 72px; }
.cart-thumb-zoom { position: absolute; right: 4px; bottom: 4px; background: rgba(31,42,68,.85); color: #fff; font-size: .7rem; font-weight: 700; padding: 1px 6px; border-radius: 999px; }
.cart-thumb-btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.proof { border: 0; border-radius: var(--radius); padding: 20px; width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.proof::backdrop { background: rgba(20, 26, 40, .6); }
.proof-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.proof-head h2 { font-size: 1.3rem; margin: 0; }
.proof-close { min-height: 40px; padding: 0 16px; }
.proof-pic { background: #EEF1F5; border-radius: var(--radius-sm); padding: 16px; display: flex; justify-content: center; }
.proof-pic img { max-width: 100%; max-height: 60vh; object-fit: contain; box-shadow: var(--shadow); }
.proof-ok { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: .92rem; cursor: pointer; }
.proof-ok input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--heart); }
.foot .credit { font-size: .8rem; color: #9AA3B2; }
.foot .credit a { color: #C9CFDB; text-decoration: underline; }

/* SEO pages: breadcrumbs, intro, link pills, copy and FAQ */
.crumbs { font-size: .88rem; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--navy); }
.crumbs [aria-current] { color: var(--ink, #1F2A44); font-weight: 600; }
.intro { max-width: 42em; font-size: 1.12rem; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-radius: 999px; background: #fff; border: 2px solid var(--line); color: var(--navy); font-weight: 600; text-decoration: none; }
.pill:hover { border-color: var(--navy); }
.seo-copy { max-width: 46em; margin-top: 44px; }
.copy { margin-bottom: 26px; }
.copy h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-top: 1.1em; }
.copy p, .copy li { font-size: 1.05rem; line-height: 1.65; }
.copy ul { padding-left: 1.2em; }
.faq { margin-top: 20px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 700; list-style: none; position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--heart); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0; padding: 0 16px 16px; line-height: 1.6; }
.landing-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.landing-pic { padding: 0; }
@media (max-width: 800px) { .landing-top { grid-template-columns: 1fr; } }
.grid-ideas { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.idea-card h3, .idea-card .h3 { font-size: 1.2rem; }
.idea-card .more { color: var(--heart); font-weight: 700; }
.article { max-width: 46em; }
.article .copy h2 { margin-top: 1.4em; }
.more-ideas { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; }
.more-ideas h2 { font-size: 1.3rem; }
.lede-sm { font-size: 1.15rem; color: var(--muted); }
.foot .wrap { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

/* Mix and match: count stepper, price breaks, cart notes */
.count-row { display: flex; align-items: center; gap: 8px; }
.count-row input { width: 84px; min-height: 48px; text-align: center; font: inherit; font-size: 1.15rem; border: 2px solid var(--line); border-radius: var(--radius-sm); }
.count-btn { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--line); background: #fff; font-size: 1.5rem; line-height: 1; color: var(--navy); cursor: pointer; }
.count-btn:hover { border-color: var(--navy); }
.mix-box { margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.mix-box p { margin: 0 0 8px; font-size: .95rem; }
.breaks { border-collapse: collapse; font-size: .95rem; }
.breaks td { padding: 3px 18px 3px 0; }
.breaks td:last-child { font-weight: 700; color: var(--navy); }
.mix-note { margin-top: 16px; background: #EAF6EF; border: 1px solid #BFE3CD; color: #1E4D35; border-radius: var(--radius-sm); padding: 12px 14px; }
.mix-note strong { margin-right: 6px; }

/* What you get: the magnet layers picture */
.quality { display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; align-items: center; }
@media (max-width: 860px) { .quality { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: #1E7A55 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.6L13 6.6' stroke='%23fff' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.layers { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.layers svg { width: 100%; height: auto; display: block; }
.layers figcaption { font-size: .92rem; color: var(--muted); margin-top: 8px; text-align: center; }
.layers-compact { padding: 10px; margin-top: 10px; }
.spec { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 16px; }
.spec h3 { font-size: 1.05rem; margin-bottom: 4px; }
.spec p { margin: 0; font-size: .95rem; color: var(--muted); }
.prose .layers { margin: 14px 0 6px; }

.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.cart-head h1 { margin: 0; }
.cart-continue { min-height: 44px; padding: 0 18px; }

/* Real design previews in the picture tiles */
.duo-item .mag-scene img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* View larger: under the main picture, and a magnifier on each design */
.pdp-pics { position: sticky; top: 16px; align-self: start; }
.pdp-pics .duo { position: static; }
@media (max-width: 860px) { .pdp-pics { position: static; } }
.zoom-btn { display: flex; align-items: center; gap: 6px; margin: 10px auto 0; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font: 700 .9rem var(--body); color: var(--navy); cursor: pointer; }
.zoom-btn:hover { border-color: var(--navy); }
.zoom-btn svg, .design-zoom svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.design-zoom { position: absolute; top: 6px; right: 6px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--navy); box-shadow: 0 1px 4px rgba(31,42,68,.3); cursor: pointer; }
.design-zoom:hover { background: var(--navy); color: #fff; }
.design-zoom:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

/* The larger-view panel */
.lb { width: min(1000px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--radius); background: var(--cream); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.lb::backdrop { background: rgba(20, 26, 40, .72); }
.lb[open] { display: flex; flex-direction: column; }
.lb-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px 8px; }
.lb-top h2 { margin: 0; font-size: 1.35rem; }
.lb-count { font-size: .9rem; color: var(--muted); }
.lb-x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--paper); font-size: 1.8rem; line-height: 1; color: var(--navy); cursor: pointer; flex: none; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 12px; min-height: 0; flex: 1; touch-action: pan-y; }
.lb-stage img { display: block; max-width: calc(100% - 120px); max-height: calc(100dvh - 230px); width: auto; height: auto; border-radius: 4px; box-shadow: 0 2px 4px rgba(31,42,68,.2), 0 14px 30px rgba(31,42,68,.25); background: #fff; user-select: none; -webkit-user-drag: none; }
.lb-nav { flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 4px rgba(31,42,68,.25); font-size: 2rem; line-height: 1; color: var(--navy); cursor: pointer; }
.lb-nav:hover { background: var(--navy); color: #fff; }
.lb-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 10px 20px 4px; }
.lb-orient { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper); }
.lb-orient button { min-height: 44px; padding: 0 16px; border: 0; background: none; font: 700 .95rem var(--body); color: var(--navy); cursor: pointer; }
.lb-orient button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.lb-orient button:disabled { opacity: .35; cursor: not-allowed; }
.lb-note { text-align: center; font-size: .85rem; margin: 6px 20px 14px; }
@media (max-width: 640px) {
  .lb { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .lb-stage { padding: 4px; }
  .lb-stage img { max-width: 100%; max-height: calc(100dvh - 250px); }
  .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; z-index: 1; opacity: .92; }
  .lb-nav[data-lb-step="-1"] { left: 6px; }
  .lb-nav[data-lb-step="1"] { right: 6px; }
  .lb-foot .btn { flex: 1 1 100%; }
}

/* Chosen design: obvious without opening the larger view */
.design label { position: relative; transition: border-color .15s, background .15s, box-shadow .15s; }
.design input:checked ~ label { border-width: 3px; padding: 11px; border-color: var(--heart); background: #FFF0F2; box-shadow: 0 0 0 4px rgba(217, 58, 85, 0.18); }
.design input:checked ~ label::before { content: '✓'; position: absolute; top: -10px; left: -10px; z-index: 3; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--heart); color: #fff; font: 800 1rem/1 var(--body); box-shadow: 0 2px 6px rgba(31,42,68,.3); }
.design input:checked ~ label .design-name { color: var(--heart-dark); }
.design input:checked ~ label .design-name::after { content: 'Selected'; display: block; margin-top: 2px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.design-chosen { margin: 12px 0 0; text-align: center; font-size: .95rem; color: var(--muted); }
.design-chosen strong { color: var(--ink); }

/* Cut shapes in the lightbox: no card, just the shape's own shadow */
[data-lb-img].lb-shape { background: none !important; box-shadow: none !important; filter: drop-shadow(0 2px 3px rgba(31,42,68,.25)) drop-shadow(0 10px 18px rgba(31,42,68,.18)); }

/* Home tiles: a visible "See all" button; the whole tile stays the link */
.card-cta { margin-top: auto; align-self: flex-start; min-height: 42px; padding: 0 20px; font-size: .95rem; pointer-events: none; }
.card-body .price { margin-bottom: 8px; }
.card:hover .card-cta { background: var(--heart-dark); }
.card-cta .arrow { display: inline-block; transition: transform .15s; }
.card:hover .card-cta .arrow { transform: translateX(3px); }

/* Vouchers: cart code box, applied row, ?code= banner, sign-up page */
.cart-sum .voucher-row { color: var(--ok); font-weight: 600; }
.link-btn { background: none; border: 0; padding: 0 0 0 6px; font: inherit; font-size: .85rem; color: var(--muted); text-decoration: underline; cursor: pointer; }
.voucher { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.voucher summary { cursor: pointer; font-weight: 600; color: var(--navy-2); font-size: .95rem; }
.voucher-form { display: flex; gap: 8px; margin-top: 10px; }
.voucher-form input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: 600 1rem/1 ui-monospace, Menlo, monospace; letter-spacing: 1px; text-transform: uppercase; }
.voucher-form .btn { min-height: 44px; padding: 0 16px; }
.voucher-msg { margin: 8px 0 0; font-size: .9rem; color: var(--heart-dark); min-height: 0; }
.voucher-msg:empty { display: none; }
.voucher-note { font-size: .85rem; margin-top: 8px; }
.vbanner { background: var(--navy); color: #fff; text-align: center; padding: 10px 16px; font-size: .95rem; }
.vbanner strong { font-family: ui-monospace, Menlo, monospace; letter-spacing: 1px; color: var(--gold); }
.vbanner button { background: none; border: 0; color: #fff; opacity: .8; text-decoration: underline; cursor: pointer; font: inherit; margin-left: 8px; }
.vsign { max-width: 520px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.vsign h1 { font-family: var(--display); font-size: 2rem; line-height: 1.15; margin: 0 0 8px; }
.vsign .lead { color: var(--muted); margin: 0 0 18px; }
.vsign label { display: block; font-weight: 600; font-size: .92rem; margin: 12px 0 6px; }
.vsign input { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; }
.vsign .btn { width: 100%; margin-top: 18px; }
.vsign .err { color: var(--heart-dark); margin: 12px 0 0; }
.vsign .fine { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.vcode { display: inline-block; margin: 14px 0; padding: 14px 22px; border: 2px dashed var(--heart); border-radius: 12px; font: 800 1.9rem/1 ui-monospace, Menlo, monospace; letter-spacing: 3px; color: var(--navy); background: #fff; }
.vdone { text-align: center; }
