/* ==========================================================
   Topper World – storefront styles
   ========================================================== */
:root {
    --pink: #e8537a;
    --pink-dark: #c93d63;
    --pink-soft: #fde7ee;
    --cream: #fff8f3;
    --peach: #ffe9dc;
    --choc: #3b2a2a;
    --text: #4a3b3b;
    --muted: #8a7777;
    --line: #f0e1dc;
    --white: #fff;
    --gold: #f2b441;
    --green: #25d366;
    --radius: 18px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px -12px rgba(120, 50, 60, .25);
    --shadow-sm: 0 4px 14px -6px rgba(120, 50, 60, .2);
    --font-head: 'Fredoka', system-ui, sans-serif;
    --font-body: 'Nunito', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--pink-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--choc); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
small { font-size: .85em; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.pre { white-space: pre-line; }

/* ---------- Top bar / header ---------- */
.topbar {
    background: var(--choc);
    color: #f6e3dc;
    text-align: center;
    font-size: .85rem;
    padding: 8px 16px;
}
.topbar a { color: var(--gold); text-decoration: none; font-weight: 700; }

.header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 248, 243, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.logo {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-head); font-weight: 700; font-size: 1.45rem;
    color: var(--choc); text-decoration: none;
}
.logo--light { color: #fff; }
.logo__img { width: 58px; height: 58px; }
/* The logo has dark lettering, so on the dark footer it sits on a white disc. */
.logo__badge { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #fff; }
.logo__badge img { width: 52px; height: 52px; }

.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
    padding: 8px 14px; border-radius: 999px;
    color: var(--text); text-decoration: none; font-weight: 700;
    transition: background .2s, color .2s;
}
.nav a:hover { background: var(--pink-soft); color: var(--pink-dark); }
.nav a.is-active { background: var(--pink); color: #fff; }

.cart-link {
    position: relative; width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--white); color: var(--choc);
    box-shadow: var(--shadow-sm); text-decoration: none;
}
.cart-link__count {
    position: absolute; top: -4px; right: -4px;
    min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
    background: var(--pink); color: #fff; font-size: .75rem; font-weight: 700;
    display: grid; place-items: center; border: 2px solid var(--cream);
}

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--choc); border-radius: 2px; transition: .2s; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px;
    font: 700 1rem var(--font-body);
    border: 2px solid transparent; cursor: pointer; text-decoration: none;
    transition: transform .15s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 15px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--grow { flex: 1; }
.btn--primary { background: var(--pink); color: #fff; box-shadow: 0 8px 20px -8px var(--pink); }
.btn--primary:hover { background: var(--pink-dark); }
.btn--ghost { background: transparent; color: var(--pink-dark); border-color: var(--pink); }
.btn--ghost:hover { background: var(--pink-soft); }
.btn--light { background: #fff; color: var(--pink-dark); }
.btn--wa { background: var(--green); color: #fff; }

.link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--pink-dark); text-decoration: none; cursor: pointer; }
.link:hover { text-decoration: underline; }
.link--danger { color: #b54848; font-size: .85rem; font-weight: 600; }

/* ---------- Alerts ---------- */
.alert { margin: 20px 0 0; padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 600; }
.alert ul { margin: 6px 0 0; padding-left: 20px; font-weight: 400; }
.alert--success { background: #e6f7ec; color: #22643a; border: 1px solid #bfe7cb; }
.alert--error { background: #fdecec; color: #8f2c2c; border: 1px solid #f5c9c9; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(circle at 85% 20%, #ffd6e2 0, transparent 40%),
        radial-gradient(circle at 10% 90%, var(--peach) 0, transparent 45%),
        var(--cream);
    padding: 64px 0 80px;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
    display: inline-block; margin-bottom: 16px; padding: 6px 14px; border-radius: 999px;
    background: #fff; color: var(--pink-dark); font-weight: 700; font-size: .85rem;
    box-shadow: var(--shadow-sm);
}
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); margin-bottom: 18px; }
.hl { color: var(--pink); position: relative; white-space: nowrap; }
.hl::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 10px; z-index: -1;
    background: #ffd3a6; border-radius: 6px;
}
.lead { font-size: 1.15rem; color: var(--text); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero__points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; font-size: .95rem; }
.hero__points li::before { content: '✓'; color: var(--pink); margin-right: 6px; }

.hero__visual { position: relative; height: 480px; }
.hero__sheet {
    position: absolute; width: 58%; aspect-ratio: 210 / 297; object-fit: cover;
    background: #fff; border-radius: 6px; box-shadow: var(--shadow);
}
/* Square mockup photos instead of A4 sheets */
.hero__sheet--photo { aspect-ratio: 1; width: 64%; border-radius: 18px; border: 8px solid #fff; }
.hero__sheet--back { right: 6%; top: 0; transform: rotate(7deg); }
.hero__sheet--front { left: 8%; top: 40px; transform: rotate(-6deg); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: rotate(-4deg) translateY(-10px); } }
.hero__sheet { transition: opacity .4s ease; }
.hero__sheet.is-changing { opacity: 0; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section--tight { padding: 32px 0 64px; }
.section--soft { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { text-align: center; margin-bottom: 32px; }
.section__head p { color: var(--muted); }
.section__head--row { display: flex; justify-content: space-between; align-items: baseline; text-align: left; }

.page-head {
    padding: 44px 0 12px;
    background: linear-gradient(180deg, var(--pink-soft), var(--cream));
}
.page-head p { color: var(--muted); margin: 0; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chips--center { justify-content: center; margin: 0; }
.chip {
    padding: 9px 18px; border-radius: 999px;
    background: #fff; border: 1.5px solid var(--line);
    color: var(--text); text-decoration: none; font-weight: 700; font-size: .95rem;
    transition: .2s;
}
.chip:hover { border-color: var(--pink); color: var(--pink-dark); }
.chip.is-active { background: var(--choc); border-color: var(--choc); color: #fff; }

/* ---------- Product grid / cards ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
    display: flex; flex-direction: column;
    background: #fff; border-radius: var(--radius);
    text-decoration: none; color: inherit;
    box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s;
    overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
/* Product image: mockup photo layered over the A4 sheet */
.media {
    position: relative; aspect-ratio: 1; overflow: hidden;
    background: linear-gradient(160deg, #fdeef1, #fff4ea);
}
.media__sheet { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 7%; }
.media__sheet img {
    height: 100%; width: auto; max-width: 100%; aspect-ratio: 210 / 297; object-fit: cover;
    background: #fff; border-radius: 3px;
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .25);
    transition: transform .35s;
}
.media__mockup {
    position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover;
    transition: opacity .35s ease, transform .5s ease;
}
.media__hint {
    position: absolute; left: 10px; bottom: 10px; z-index: 2;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 999px;
    background: rgba(255, 255, 255, .92); color: var(--choc);
    font-size: .75rem; font-weight: 800; box-shadow: var(--shadow-sm);
    transition: opacity .25s;
}
.media.show-sheet .media__mockup { opacity: 0; }
.media.show-sheet .media__hint { opacity: 0; }
@media (hover: hover) {
    .card:hover .media__mockup, .product__stage:hover .media__mockup { opacity: 0; transform: scale(1.04); }
    .card:hover .media__hint, .product__stage:hover .media__hint { opacity: 0; }
    .card:hover .media__sheet img { transform: rotate(-2deg) scale(1.02); }
}
@media (hover: none) {
    .card .media__hint { display: none; }
    /* Phones: cards passing the middle of the screen show their A4 sheet (main.js). */
    .card .media.is-peek .media__mockup { opacity: 0; transform: scale(1.04); }
    .card .media.is-peek .media__sheet img { transform: rotate(-2deg) scale(1.02); }
}
.card__link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.card__body { padding: 16px 18px 12px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.05rem; margin-bottom: 4px; }
.card__meta { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.card__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 18px 18px; }

/* Search box for designs / categories (partials/category_finder.php) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.finder {
    position: relative; display: flex; align-items: center; max-width: 560px; margin: 0 0 18px;
    background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 20px;
    box-shadow: var(--shadow-sm); transition: border-color .2s;
}
.finder--center { margin: 0 auto 22px; }
.finder:focus-within { border-color: var(--pink); }
.finder input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; padding: 8px 0; color: var(--text); }
.finder input::-webkit-search-cancel-button { cursor: pointer; }
.finder input:focus { box-shadow: none; border: 0; }
.finder__button { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--pink); color: #fff; display: grid; place-items: center; cursor: pointer; }
.finder__button:hover { background: var(--pink-dark); }
.finder__list {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
    background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 6px; max-height: 340px; overflow-y: auto; text-align: left;
}
.finder__item { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.finder__item small { color: var(--muted); font-weight: 400; }
.finder__item:hover, .finder__item.is-active { background: var(--pink-soft); color: var(--pink-dark); }
.chip--more { display: none; cursor: pointer; font: inherit; font-weight: 700; font-size: .95rem; border-style: dashed; color: var(--pink-dark); }

/* Shop sort tabs: For you / Latest / Top selling / Most popular */
.sort-tabs { display: flex; align-items: center; gap: 6px; margin: -8px 0 22px; overflow-x: auto; scrollbar-width: none; }
.sort-tabs__label { color: var(--muted); font-size: .9rem; font-weight: 700; margin-right: 4px; flex: none; }
.sort-tabs__tab { flex: none; padding: 6px 14px; border-radius: 999px; font-size: .9rem; font-weight: 700; color: var(--text); text-decoration: none; background: transparent; transition: .2s; }
.sort-tabs__tab:hover { background: var(--pink-soft); color: var(--pink-dark); }
.sort-tabs__tab.is-active { background: var(--pink); color: #fff; }

/* "Notify me about new toppers" bar */
.notify-bar { background: var(--pink-soft); border-top: 1px solid var(--line); }
.notify-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.notify-bar__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.notify-bar .btn { padding: 8px 18px; }
.notify-bar__close { background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 6px; }
@media (max-width: 600px) {
    .notify-bar__inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* Checkout: saved details */
.remember { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; font-size: .9rem; cursor: pointer; }
.remember input { margin-top: 3px; accent-color: var(--pink); width: 16px; height: 16px; }
.saved-note { margin: -4px 0 12px; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--pink-dark); text-decoration: underline; cursor: pointer; }

/* More designs while scrolling / "Show more" */
.infinite { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 32px 0 8px; }
.infinite .btn { border: 2px solid var(--pink); }
.infinite.is-loading .btn { opacity: .6; pointer-events: none; }
.infinite__spinner { width: 20px; height: 20px; border: 3px solid var(--pink-soft); border-top-color: var(--pink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Add button / quantity stepper on product cards */
.qty-control { margin: 0; }
.qty-control button { font: inherit; cursor: pointer; border: 0; }
.qty-control__add { background: var(--pink); color: #fff; font-weight: 700; font-size: .9rem; padding: 8px 16px; border-radius: 999px; box-shadow: 0 6px 14px -8px var(--pink); transition: background .2s; }
.qty-control__add:hover { background: var(--pink-dark); }

/* "+ Add" invites a tap: a soft ring pulses out every few seconds and a light
   sweeps across, staggered so the whole grid doesn't pulse at once. */
.qty-control__add { position: relative; overflow: visible; isolation: isolate; }
.qty-control__add::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
    background: var(--pink); animation: add-ring 2.8s ease-out infinite;
}
.qty-control__add::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%) no-repeat;
    background-size: 220% 100%; background-position: 160% 0; animation: add-shine 2.8s ease-in-out infinite;
}
.card:nth-child(3n+2) .qty-control__add::before, .card:nth-child(3n+2) .qty-control__add::after { animation-delay: .9s; }
.card:nth-child(3n) .qty-control__add::before, .card:nth-child(3n) .qty-control__add::after { animation-delay: 1.8s; }
.qty-control__add:active { transform: scale(.94); }
@keyframes add-ring {
    0%, 55% { transform: scale(1); opacity: .55; }
    100% { transform: scale(1.45, 1.8); opacity: 0; }
}
@keyframes add-shine {
    0%, 60% { background-position: 160% 0; }
    100% { background-position: -60% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .qty-control__add::before, .qty-control__add::after { animation: none; opacity: 0; }
}

.card__code { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 6px; background: var(--pink-soft); color: var(--pink-dark); font-weight: 800; font-size: .78rem; letter-spacing: .3px; }
.product__code { margin: -4px 0 10px; color: var(--muted); }
.product__code strong { color: var(--pink-dark); letter-spacing: .3px; }
.summary__or { text-align: center; color: var(--muted); font-size: .85rem; margin: 10px 0 6px; }

/* First-visit "how to order" guide */
.guide { position: fixed; inset: 0; z-index: 105; display: grid; align-items: end; justify-items: center; padding: 16px; background: rgba(40, 25, 25, .45); }
.guide[hidden] { display: none; }
.guide__box { width: 100%; max-width: 440px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 22px 18px; animation: guide-up .35s ease-out; }
.guide__box h3 { font-family: var(--font-head); color: var(--choc); margin: 0 0 12px; }
.guide__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.guide__steps li { display: flex; gap: 12px; align-items: flex-start; }
.guide__steps li > span { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--pink); color: #fff; font-weight: 800; }
.guide__steps small { color: var(--muted); }
.guide__add { display: inline-block; padding: 1px 9px; border-radius: 999px; background: var(--pink); color: #fff; }
.guide__note { margin: 14px 0 0; font-size: .9rem; color: var(--muted); }
.guide__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
@keyframes guide-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) { .guide { align-items: center; } }
.qty-control__stepper { display: none; align-items: center; background: var(--pink-soft); border-radius: 999px; padding: 3px; }
.qty-control__stepper button { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--pink-dark); font-weight: 700; font-size: 1.1rem; line-height: 1; }
.qty-control__stepper button:hover:not(:disabled) { background: var(--pink); color: #fff; }
.qty-control__stepper button:disabled { opacity: .4; cursor: default; }
.qty-control__qty { min-width: 30px; text-align: center; font-weight: 700; }
.qty-control.is-in-cart .qty-control__add { display: none; }
.qty-control.is-in-cart .qty-control__stepper { display: inline-flex; }
.qty-control.is-busy { opacity: .6; pointer-events: none; }
.price { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--choc); }

.badge {
    position: absolute; top: 12px; left: 12px; z-index: 3;
    padding: 4px 10px; border-radius: 999px;
    background: var(--gold); color: var(--choc); font-size: .75rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .03em;
}
.badge--inline { position: static; display: inline-block; margin-bottom: 10px; }

/* ---------- Pager (CodeIgniter default template) ---------- */
.pager { margin-top: 36px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pagination a { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); color: var(--text); font-weight: 700; text-decoration: none; }
.pagination a:hover { border-color: var(--pink); color: var(--pink-dark); }
.pagination .active a { background: var(--pink); border-color: var(--pink); color: #fff; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { background: var(--cream); border-radius: var(--radius); padding: 28px 22px; text-align: center; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }
.steps__num {
    display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px;
    border-radius: 50%; background: var(--pink); color: #fff;
    font: 700 1.3rem var(--font-head);
}
.steps--list { grid-template-columns: 1fr; margin-bottom: 32px; }
.steps--list li { display: flex; gap: 18px; text-align: left; background: #fff; box-shadow: var(--shadow-sm); padding: 22px; }
.steps--list .steps__num { flex: none; margin: 0; }

/* ---------- Promo ---------- */
.promo {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 44px 48px; border-radius: 28px;
    background: linear-gradient(120deg, var(--pink), #ff8f7a);
    color: #fff;
}
.promo h2 { color: #fff; }
.promo p { margin: 0; max-width: 36em; opacity: .95; }

/* ---------- Product page ---------- */
.crumbs { padding: 24px 0 8px; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--pink-dark); }

.product { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 16px 0 24px; align-items: start; }
.product__media { position: sticky; top: 96px; }
.product__stage { position: relative; border-radius: 24px; overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow-sm); }
.product__gallery .media__sheet { padding: 6%; }
.product__gallery .media__hint { left: 16px; bottom: 16px; font-size: .82rem; }
.product__stage .badge { top: 16px; left: 16px; }
.thumbs { display: flex; gap: 12px; margin-top: 14px; }
.thumbs__item {
    display: flex; align-items: center; gap: 10px; flex: 1;
    padding: 8px; border-radius: 14px; border: 2px solid var(--line); background: #fff;
    font: 700 .9rem var(--font-body); color: var(--text); cursor: pointer; text-align: left;
    transition: border-color .2s;
}
.thumbs__item img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.thumbs__sheet { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 8px; background: var(--pink-soft); }
.thumbs__sheet img { width: auto; height: 44px; aspect-ratio: 210 / 297; border-radius: 1px; }
.thumbs__item.is-active { border-color: var(--pink); }
.product__zoom-hint {
    position: absolute; bottom: 16px; right: 16px; z-index: 2;
    padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .85);
    font: 700 .78rem var(--font-body); color: var(--muted);
}
.product__note { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 12px; }
.product__price { font-family: var(--font-head); font-size: 1.9rem; font-weight: 600; color: var(--pink-dark); margin-bottom: 14px; }
.product__price small { font-family: var(--font-body); font-size: .9rem; color: var(--muted); font-weight: 600; }

.facts { list-style: none; padding: 0; margin: 0 0 24px; display: flex; gap: 10px; }
.facts li { flex: 1; text-align: center; padding: 12px 8px; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.facts strong { display: block; font: 600 1.2rem var(--font-head); color: var(--choc); }

/* ---------- Forms ---------- */
.form { display: block; }
.field { margin-bottom: 18px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; color: var(--choc); margin-bottom: 6px; padding: 0; }
.field small { color: var(--muted); font-weight: 600; }
.field-row { display: flex; gap: 14px; }
.field-row .field { flex: 1; }
.field--sm { max-width: 130px; }
.req { color: var(--pink); }

input[type=text], input[type=tel], input[type=email], input[type=date], input[type=number], textarea {
    width: 100%; padding: 12px 14px;
    font: inherit; color: var(--text);
    background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px var(--pink-soft); }
textarea { resize: vertical; }

.options { display: grid; gap: 10px; }
.options--row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 18px; }
.option { position: relative; cursor: pointer; }
.option input { position: absolute; opacity: 0; }
.option span {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 13px 16px; border-radius: var(--radius-sm);
    background: #fff; border: 1.5px solid var(--line); font-weight: 700;
    transition: .2s;
}
.option em { font-style: normal; font-weight: 600; font-size: .85rem; color: var(--muted); }
.option input:checked + span { border-color: var(--pink); background: var(--pink-soft); box-shadow: 0 0 0 1px var(--pink); }
.option input:focus-visible + span { box-shadow: 0 0 0 4px var(--pink-soft); }


.buy { display: flex; gap: 12px; margin: 24px 0 12px; }
.qty { display: flex; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 44px; height: 100%; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--choc); }
.qty button:hover { background: var(--pink-soft); }
.qty input { width: 48px; border: 0; text-align: center; padding: 0; font-weight: 700; -moz-appearance: textfield; }
.qty input:focus { box-shadow: none; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

.wa-inline { display: inline-block; margin-top: 18px; font-weight: 700; color: #128c4a; }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 100;
    display: grid; place-items: center; padding: 24px;
    background: rgba(40, 25, 25, .85); cursor: zoom-out;
}
.lightbox img { max-height: 92vh; width: auto; background: #fff; border-radius: 4px; }
.lightbox__close { position: absolute; top: 14px; right: 20px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; }

/* ---------- "Your details" box on the first Add ---------- */
.details-modal {
    position: fixed; inset: 0; z-index: 110;
    display: grid; place-items: center; padding: 16px;
    background: rgba(40, 25, 25, .6); overflow-y: auto;
}
.details-modal[hidden] { display: none; }
.details-modal__box {
    width: 100%; max-width: 420px; margin: 0;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px;
}
.details-modal__box h3 { font-family: var(--font-head); color: var(--choc); margin: 0 0 6px; }
.details-modal__box h3 small { color: var(--muted); font-size: .7em; font-weight: 500; }
.details-modal__box .alert { margin: 0 0 14px; }
.details-modal__box .field { margin-bottom: 14px; }

/* ---------- Cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cart-item {
    display: grid; grid-template-columns: 90px 1fr auto; gap: 18px; align-items: start;
    padding: 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.cart-item__img { background: var(--pink-soft); padding: 8px; border-radius: 10px; }
.cart-item__img img { aspect-ratio: 210 / 297; object-fit: cover; background: #fff; border-radius: 2px; }
.cart-item__name { font: 600 1.05rem var(--font-head); color: var(--choc); text-decoration: none; }
.cart-item__info p { margin: 2px 0; font-size: .88rem; }
.cart-item__unit { font-weight: 700; margin-top: 6px !important; }
.cart-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.qty-input { width: 72px !important; text-align: center; padding: 8px !important; }
.cart-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }

.summary, .panel { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.summary { position: sticky; top: 96px; }
.panel { margin-bottom: 20px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.summary__total { font-size: 1.15rem; border-bottom: 0; color: var(--choc); }
.summary__total strong { font-family: var(--font-head); color: var(--pink-dark); font-size: 1.4rem; }
.summary .btn { margin-top: 16px; }
.summary__items { list-style: none; margin: 0 0 8px; padding: 0; }
.summary__items li { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.summary__items img { width: 42px; aspect-ratio: 210 / 297; object-fit: cover; border: 1px solid var(--line); border-radius: 2px; }
.summary__items span { flex: 1; font-weight: 700; font-size: .9rem; line-height: 1.3; }
.summary__items small { display: block; color: var(--muted); font-weight: 600; }

.empty-state { text-align: center; padding: 40px 0; }
.empty-state img { margin: 0 auto 20px; transform: rotate(-6deg); box-shadow: var(--shadow); }

.success { text-align: center; padding: 20px 0 32px; }
.success__icon {
    width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%;
    display: grid; place-items: center; font-size: 2.2rem; color: #fff;
    background: linear-gradient(135deg, #3ccf7a, #1fa85a);
    box-shadow: 0 12px 24px -10px #1fa85a;
}

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 6px 0 6px 28px; position: relative; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--pink); font-weight: 800; }

/* ---------- Footer ---------- */
.footer { background: var(--choc); color: #d9c5bf; padding: 56px 0 0; margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.footer a:not(.logo) { display: block; color: #d9c5bf; text-decoration: none; padding: 3px 0; font-size: .95rem; }
.footer a:hover { color: #fff; }
.footer a.footer__social { display: flex; align-items: center; gap: 6px; }
.footer p { font-size: .95rem; margin-top: 12px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding: 20px; text-align: center; font-size: .85rem; }

.wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 60;
    width: 58px; height: 58px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--green); color: #fff;
    box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .8);
    transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .grid { grid-template-columns: repeat(3, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .nav {
        position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column; gap: 0; padding: 12px 20px 20px;
        background: var(--cream); border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        display: none;
    }
    .nav.is-open { display: flex; }
    .nav a { padding: 12px 14px; }
    .cart-link { order: 2; }
    .nav-toggle { order: 3; margin-left: 0; }
    .header__inner { gap: 12px; }
    .logo { margin-right: auto; }

    .hero { padding: 40px 0 56px; }
    .hero__inner { grid-template-columns: 1fr; gap: 24px; }
    .hero__visual { height: 340px; max-width: 420px; width: 100%; margin: 0 auto; }

    .product { grid-template-columns: 1fr; gap: 28px; }
    .product__media { position: static; }

    .cart-layout { grid-template-columns: 1fr; }
    .summary { position: static; }

    .promo { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
}

@media (max-width: 600px) {
    .container { padding: 0 16px; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .chips:not(.chips--center) { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 24px; padding: 0 16px 4px; scrollbar-width: none; }
    .chips:not(.chips--center) .chip { flex: none; }
    /* Only the popular categories on a phone; the search box finds the rest. */
    .chips--finder, .chips--finder:not(.chips--center) { flex-wrap: wrap; overflow: visible; margin: 0 0 24px; padding: 0; gap: 8px; }
    .chips--finder .chip { padding: 7px 14px; font-size: .88rem; }
    .chips--finder .chip--extra { display: none; }
    .chips--finder.is-open .chip--extra { display: inline-block; }
    .chips--finder .chip--more { display: inline-block; }
    .chips--finder.is-open .chip--more { display: none; }
    .finder { padding-left: 16px; }
    .card__body { padding: 12px 12px 8px; }
    .card__foot { padding: 0 12px 12px; flex-wrap: wrap; }
    .card__title { font-size: .95rem; }
    .qty-control__add { padding: 7px 12px; }
    .qty-control__stepper button { width: 28px; height: 28px; }
    .price { font-size: 1.05rem; }
    .steps { grid-template-columns: 1fr; }
    .section { padding: 44px 0; }
    .field-row { flex-direction: column; gap: 0; }
    .field--sm { max-width: none; }
    .cart-item { grid-template-columns: 70px 1fr; }
    .cart-item__side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
    .footer__grid { grid-template-columns: 1fr; }
    .topbar { font-size: .78rem; }
}

/* Colour choice on one-colour designs (product page) */
.colors { margin: 4px 0 16px; padding: 12px 14px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.colors__label { margin: 0 0 10px; font-size: .95rem; }
.colors__label strong { color: var(--pink-dark); }
.colors__list { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: var(--text); }
.swatch span { width: 38px; height: 38px; border-radius: 50%; background: var(--sw); border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.swatch small { font-size: .75rem; color: var(--muted); }
.swatch:hover span { transform: scale(1.08); }
.swatch.is-active span { box-shadow: 0 0 0 3px var(--pink-dark), var(--shadow-sm); transform: scale(1.1); }
.swatch.is-active small { color: var(--pink-dark); font-weight: 700; }
.colors__error { margin: 10px 0 0; color: #c0392b; font-size: .9rem; }
.colors__vote { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: .9rem; }
.colors__vote[hidden], .colors__thanks[hidden], .colors__error[hidden] { display: none; }
.colors__thanks { margin: 12px 0 0; font-size: .9rem; color: var(--pink-dark); font-weight: 700; }
.product__painting {
    position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .75); font-weight: 700; color: var(--pink-dark); font-size: 1.1rem;
    animation: painting-pulse 1s ease-in-out infinite alternate;
}
.product__painting[hidden] { display: none; }
@keyframes painting-pulse { from { opacity: .7; } to { opacity: 1; } }
.line-color { display: inline-flex; align-items: center; gap: 5px; font-size: .85rem; color: var(--muted); }
.line-color i { width: 12px; height: 12px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 1px var(--line); }

/* Sheet only / Cut & Pack (product page) */
.finish { display: grid; gap: 10px; margin-bottom: 16px; }
.finish__opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--white); cursor: pointer; transition: border-color .15s, background .15s; }
.finish__opt input { accent-color: var(--pink-dark); width: 18px; height: 18px; flex: none; }
.finish__opt span { flex: 1; display: flex; flex-direction: column; }
.finish__opt small { color: var(--muted); font-size: .8rem; }
.finish__opt b { font-family: var(--font-head); color: var(--pink-dark); white-space: nowrap; }
.finish__opt:has(input:checked) { border-color: var(--pink); background: var(--pink-soft); }
.line-cut { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--pink-dark); background: var(--pink-soft); padding: 1px 8px; border-radius: 999px; }
