/* =========================================================================
   nafnamiðar.is — brand stylesheet
   Playful, warm, kid-friendly. Coral + teal + sunshine on cream.
   ========================================================================= */

:root {
    --coral:      #FF6B57;
    --coral-dark: #ED4E38;
    --teal:       #16B8A6;
    --teal-dark:  #0E8C7E;
    --sun:        #FFC94D;
    --sky:        #6FC3E8;
    --grape:      #8B6DE0;
    --ink:        #26313B;
    --ink-soft:   #556170;
    --cream:      #FFF8F0;
    --cream-2:    #FFF1E2;
    --white:      #ffffff;
    --line:       #F0E4D6;
    --shadow-sm:  0 2px 8px rgba(38,49,59,.06);
    --shadow-md:  0 10px 30px rgba(38,49,59,.10);
    --shadow-lg:  0 24px 60px rgba(38,49,59,.14);
    --radius:     18px;
    --radius-lg:  28px;
    /* Emoji come from the device's own set by default. Where the browser can
       render the Noto Color Emoji web font (see @supports below) Noto is used
       instead, because that is the artwork the print/cut PDF embeds. */
    --font-head:  'Baloo 2', system-ui, sans-serif;
    --font-body:  'Nunito', system-ui, sans-serif;
    --font-emoji: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
    --container:  1140px;
}

/* Noto Color Emoji is served as a bitmap (CBDT) or COLRv1 font. Safari — every
   browser on iPhone and iPad — can render neither, so with Noto in the stack
   emoji there come out as blank squares. Only browsers that can render those
   formats get Noto; the rest keep their own emoji. */
@supports font-tech(color-CBDT) or font-tech(color-COLRv1) {
    :root {
        --font-head:  'Baloo 2', system-ui, sans-serif, 'Noto Color Emoji';
        --font-body:  'Nunito', system-ui, sans-serif, 'Noto Color Emoji';
        --font-emoji: 'Noto Color Emoji', sans-serif;
    }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--coral-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }
.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.text-center { text-align: center; }

.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--ink); color:#fff;
    padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
    padding: 14px 28px; border-radius: 999px; border: none; cursor: pointer;
    background: var(--coral); color: #fff; box-shadow: 0 6px 0 var(--coral-dark);
    transition: transform .08s ease, box-shadow .08s ease, background .15s ease;
    text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 7px 0 var(--coral-dark); background: #ff7c6a; }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--coral-dark); }
.btn.teal { background: var(--teal); box-shadow: 0 6px 0 var(--teal-dark); }
.btn.teal:hover { background: #1ac6b3; box-shadow: 0 7px 0 var(--teal-dark); }
.btn.teal:active { box-shadow: 0 2px 0 var(--teal-dark); }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: 0 4px 0 var(--line); border: 2px solid var(--line); }
.btn.ghost:hover { background: var(--cream-2); }
.btn.lg { font-size: 1.2rem; padding: 17px 36px; }
.btn.block { display: flex; width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.pill {
    display: inline-flex; align-items: center; gap: .45em; font-weight: 700; font-size: .85rem;
    background: var(--sun); color: var(--ink); padding: 6px 14px; border-radius: 999px;
}

/* --- Header -------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,248,240,.92); backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { display: flex; }
.brand-word { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--ink); letter-spacing: -.01em; }
.brand-dot { color: var(--coral); }
.primary-nav { display: flex; gap: 6px; margin-left: 12px; }
.primary-nav a {
    font-family: var(--font-head); font-weight: 600; color: var(--ink-soft);
    padding: 8px 14px; border-radius: 999px;
}
.primary-nav a:hover { color: var(--ink); background: var(--cream-2); text-decoration: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; background: var(--cream-2); border-radius: 999px; padding: 3px; }
.lang-switch a { font-family: var(--font-head); font-weight: 700; font-size: .82rem; color: var(--ink-soft); padding: 5px 11px; border-radius: 999px; }
.lang-switch a.active { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.lang-switch a:hover { text-decoration: none; }
.cart-btn { position: relative; color: var(--ink); display: flex; padding: 6px; }
.cart-badge {
    position: absolute; top: -4px; right: -6px; background: var(--coral); color: #fff;
    font-family: var(--font-head); font-weight: 700; font-size: .72rem; min-width: 20px; height: 20px;
    border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 3px; background: var(--ink); border-radius: 2px; }

/* --- Hero ---------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 96px; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(60% 55% at 82% 18%, rgba(111,195,232,.28), transparent 60%),
        radial-gradient(55% 50% at 12% 85%, rgba(22,184,166,.20), transparent 60%),
        linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy h1 { margin-bottom: .3em; }
.hero-copy h1 .hl { color: var(--coral); position: relative; white-space: nowrap; }
.hero-copy .lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 30ch; }
.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.hero-price { font-family: var(--font-head); font-weight: 600; color: var(--ink-soft); }

/* floating sticker collage in hero */
.hero-art { position: relative; height: 360px; }
.sticker {
    position: absolute; background: #fff; border-radius: 14px; padding: 14px 20px;
    box-shadow: var(--shadow-md); font-family: var(--font-head); font-weight: 700;
    display: flex; align-items: center; gap: 10px; border: 2px solid rgba(0,0,0,.04);
}
.sticker .dot { width: 26px; height: 26px; border-radius: 8px; flex: none; }
.sticker.s1 { top: 12%; left: 6%;  transform: rotate(-7deg);  font-size: 1.3rem; }
.sticker.s2 { top: 4%;  right: 4%; transform: rotate(6deg);   font-size: 1.05rem; }
.sticker.s3 { top: 42%; left: 26%; transform: rotate(-2deg);  font-size: 1.5rem; z-index: 2; }
.sticker.s4 { bottom: 8%; left: 2%; transform: rotate(5deg);  font-size: 1.1rem; }
.sticker.s5 { bottom: 4%; right: 8%; transform: rotate(-6deg); font-size: 1.25rem; }
.float { animation: floaty 5s ease-in-out infinite; }
.float.d1 { animation-delay: .0s; }
.float.d2 { animation-delay: .8s; }
.float.d3 { animation-delay: 1.5s; }
.float.d4 { animation-delay: .4s; }
.float.d5 { animation-delay: 1.1s; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(var(--r,0)); } 50% { transform: translateY(-10px) rotate(var(--r,0)); } }
.sticker.s1 { --r: -7deg; } .sticker.s2 { --r: 6deg; } .sticker.s3 { --r: -2deg; }
.sticker.s4 { --r: 5deg; } .sticker.s5 { --r: -6deg; }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } html { scroll-behavior: auto; } }

/* --- Feature cards ------------------------------------------------------- */
.features { background: var(--white); }
.grid { display: grid; gap: 24px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.feature {
    background: var(--cream); border-radius: var(--radius); padding: 28px 24px;
    border: 2px solid var(--line); text-align: center;
}
.feature .ficon {
    width: 58px; height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; color: #fff;
}
.feature h3 { margin-bottom: .3em; }
.feature p { color: var(--ink-soft); margin: 0; font-size: .97rem; }

/* --- Product cards ------------------------------------------------------- */
.products-section { background: var(--cream-2); }
.product-card {
    background: #fff; border-radius: var(--radius-lg); padding: 8px; border: 2px solid var(--line);
    box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .12s ease, box-shadow .12s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-preview {
    border-radius: 22px; height: 190px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--cream) 0%, #fff 100%); position: relative; overflow: hidden; margin-bottom: 4px;
}
.product-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { margin-bottom: .2em; }
.product-dims { font-size: .85rem; color: var(--ink-soft); font-weight: 700; }
.product-body p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.product-price { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; }

/* mini label preview used on cards & cart */
.label-chip {
    font-family: var(--font-head); font-weight: 700; border-radius: 10px; padding: 10px 18px;
    box-shadow: var(--shadow-sm); border: 2px dashed rgba(0,0,0,.08); display: inline-flex; align-items: center; gap: 8px;
    transform: rotate(-3deg);
}

/* --- How it works -------------------------------------------------------- */
.steps { counter-reset: step; }
.step { text-align: center; position: relative; }
.step .num {
    width: 56px; height: 56px; border-radius: 999px; background: var(--sun); color: var(--ink);
    font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px; box-shadow: var(--shadow-sm);
}
.step:nth-child(2) .num { background: var(--teal); color:#fff; }
.step:nth-child(3) .num { background: var(--coral); color:#fff; }
.step p { color: var(--ink-soft); }

/* --- CTA band ------------------------------------------------------------ */
.cta-band { background: linear-gradient(120deg, var(--teal) 0%, var(--sky) 100%); color: #fff; text-align: center; border-radius: var(--radius-lg); padding: 56px 24px; }
.cta-band h2 { color: #fff; }
.cta-band .btn { background: #fff; color: var(--ink); box-shadow: 0 6px 0 rgba(0,0,0,.15); }
.cta-band .btn:hover { background: var(--cream); }

/* --- Customizer ---------------------------------------------------------- */
.cz-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.cz-stage {
    position: sticky; top: 96px; background: var(--white); border-radius: var(--radius-lg);
    border: 2px solid var(--line); box-shadow: var(--shadow-md); padding: 32px; text-align: center;
}
.cz-stage-label { font-family: var(--font-head); font-weight: 700; color: var(--ink-soft); margin-bottom: 18px; }
.preview-scene {
    background: repeating-linear-gradient(45deg, var(--cream) 0 14px, var(--cream-2) 14px 28px);
    border-radius: 18px; padding: 40px 20px; display: flex; align-items: center; justify-content: center; min-height: 220px;
}
#labelPreview {
    min-width: 240px; max-width: 100%; border-radius: 12px; padding: 22px 26px; box-shadow: var(--shadow-md);
    border: 2px dashed rgba(0,0,0,.10); display: block;
    transform: rotate(-3deg); transition: all .15s ease; word-break: break-word;
}
#labelPreview { background-size: cover; background-position: center; }
#labelPreview .lp-inner { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; }

.form-error {
    max-width: var(--container); margin: 0 auto 18px; padding: 12px 16px; border-radius: 12px;
    background: #FDECEA; border: 2px solid #F5C2BC; color: #8E2A1C; font-weight: 700; font-size: .92rem;
}
.form-error .fe-detail { font-weight: 600; opacity: .8; }

/* Advice, not an error — the customer can ignore it and still order. */
.contrast-warn {
    max-width: 340px; margin: 14px auto 0; padding: 9px 13px; border-radius: 12px;
    background: #FFF6D6; border: 2px solid #F2DFA0; color: #7A5B12;
    font-size: .82rem; font-weight: 700; line-height: 1.35; text-align: left;
}

/* --- Background picker: colour swatches or an image ---------------------- */
.bg-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.bg-tab {
    border: 2px solid var(--line); background: #fff; border-radius: 999px; cursor: pointer;
    padding: 5px 14px; font-family: var(--font-head); font-weight: 700; font-size: .82rem; color: var(--ink-soft);
}
.bg-tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.bg-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.bg-option { cursor: pointer; }
.bg-option input { position: absolute; opacity: 0; }
.bg-option .bgo-card {
    display: flex; align-items: flex-end; height: 62px; border-radius: 12px; overflow: hidden;
    border: 2px solid var(--line); background-size: cover; background-position: center; transition: all .12s ease;
}
.bg-option .bgo-name {
    width: 100%; padding: 3px 7px; font-size: .68rem; font-weight: 700; font-family: var(--font-head);
    color: #fff; background: rgba(0,0,0,.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bg-option input:checked + .bgo-card { border-color: var(--teal); box-shadow: 0 3px 0 var(--teal); }
.bg-upload { margin-top: 14px; }
.bg-upload-btn { display: inline-block; cursor: pointer; }
.bg-upload-btn input { position: absolute; opacity: 0; width: 0; height: 0; }
.bg-upload-btn span {
    display: inline-block; border: 2px dashed var(--line); border-radius: 12px; padding: 9px 16px;
    font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--ink-soft); background: #fff;
}
.bg-upload-btn:hover span { border-color: var(--teal); color: var(--ink); }
.bg-upload-name { margin-left: 10px; font-size: .82rem; font-weight: 700; color: var(--teal-dark); }
.bg-hint { margin: 8px 0 0; font-size: .78rem; color: var(--ink-soft); }
#labelPreview .lp-text { font-weight: 700; font-size: 1.9rem; line-height: 1.02; }
/* Emoji inside label text, as Noto images sized to the text */
img.emoji { height: 1em; width: auto; vertical-align: -0.12em; border: 0; }
#labelPreview .lp-icon { font-size: 1.8rem; line-height: 1; flex: none; font-family: var(--font-emoji); }
#labelPreview .lp-icon img { display: block; height: 1.15em; width: auto; max-width: 2.3em; }
.icon-option .io-card img { width: 32px; height: 32px; object-fit: contain; }
.preview-note { margin-top: 16px; color: var(--ink-soft); font-weight: 700; font-size: .9rem; }

/* --- Vinnumiðar (custom work labels) ------------------------------------- */
.wl-preview {
    box-sizing: border-box; width: 100%; max-width: 380px; margin: 0 auto;
    border-radius: 12px; padding: 3px; box-shadow: var(--shadow-md);
    border: 2px dashed rgba(0,0,0,.10); display: flex; align-items: center; justify-content: center;
    gap: 4px; background-size: cover; background-position: center; overflow: hidden;
}
.wl-preview.pos-above { flex-direction: column; }
.wl-preview.pos-left  { flex-direction: row; }
.wl-preview .lp-inner { display: flex; align-items: center; justify-content: center; flex: 0 1 auto; min-height: 0; }
.wl-preview .lp-text { font-weight: 700; font-size: 1.6rem; line-height: 1.02; word-break: break-word; }
.wl-logo { display: block; object-fit: contain; }
.wl-logo[hidden] { display: none; }
.wl-preview.pos-above .wl-logo { max-height: 62%; max-width: 100%; }
.wl-preview.pos-left  .wl-logo { max-width: 48%; max-height: 100%; }

.wl-size { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.wl-size-in { display: flex; flex-direction: column; }
.wl-size-in input { width: 92px; }
.wl-size-in small { color: var(--ink-soft); font-size: .72rem; margin-top: 3px; text-align: center; }
.wl-x { font-weight: 800; padding-bottom: 11px; color: var(--ink-soft); }
.wl-mm { padding-bottom: 12px; color: var(--ink-soft); font-weight: 700; }

.wl-check { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; font-size: .88rem; font-weight: 700; color: var(--ink-soft); cursor: pointer; }
.wl-check input { width: 16px; height: 16px; }
.wl-logopos { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.wl-logopos[hidden] { display: none; }
.wl-logopos-lbl { font-size: .82rem; color: var(--ink-soft); font-weight: 700; }
.wl-logo-clear { background: none; border: none; color: var(--coral); font-weight: 700; cursor: pointer; font-size: .82rem; margin-left: 8px; }
#wlBgField.is-off .bg-tabs, #wlBgField.is-off .bg-pane { opacity: .4; pointer-events: none; }
.wl-bg-off { margin-top: 8px; font-size: .8rem; color: var(--ink-soft); font-weight: 700; }

.cz-form { background: #fff; border-radius: var(--radius-lg); border: 2px solid var(--line); padding: 30px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 22px; }
.field > label { display: block; font-family: var(--font-head); font-weight: 700; margin-bottom: 8px; }
.field input[type=text], .field select, .field input[type=number], .co-form input, .co-form select {
    width: 100%; font-family: var(--font-body); font-size: 1.05rem; padding: 13px 16px;
    border: 2px solid var(--line); border-radius: 12px; background: var(--cream); color: var(--ink);
}
.field input:focus, .field select:focus, .co-form input:focus, .co-form select:focus {
    outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(22,184,166,.15);
}
#nameField .ml-line { margin-top: 8px; }
#nameField.single .ml-line { display: none; }
.type-options { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.type-option { cursor: pointer; display: flex; }
.type-option input { position: absolute; opacity: 0; }
.type-option .to-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    width: 100%; box-sizing: border-box;
    border: 2px solid var(--line); border-radius: 14px; padding: 12px 8px; text-align: center; background: var(--cream);
    font-family: var(--font-head); font-weight: 700; font-size: .9rem; transition: all .12s ease;
}
.type-option .to-dims { font-weight: 700; font-size: .72rem; color: var(--ink-soft); font-family: var(--font-body); }
.type-option .to-pack { font-weight: 700; font-size: .7rem; color: var(--teal-dark); font-family: var(--font-body); margin-top: 1px; }
.type-option input:checked + .to-card { border-color: var(--coral); background: #fff; box-shadow: 0 4px 0 var(--coral); }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 38px; height: 38px; border-radius: 10px; cursor: pointer; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); position: relative; }
.swatch.selected { box-shadow: 0 0 0 3px var(--ink); transform: scale(1.05); }
.swatch input { position: absolute; opacity: 0; }

.icon-options { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-option { cursor: pointer; }
.icon-option input { position: absolute; opacity: 0; }
.icon-option .io-card {
    width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--line); background: var(--cream);
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem; transition: all .12s ease;
    font-family: var(--font-emoji);
}
.icon-option .io-card.none { width: auto; min-width: 46px; padding: 0 14px; font-size: .82rem; font-weight: 700; font-family: var(--font-head); color: var(--ink-soft); white-space: nowrap; }
.icon-option input:checked + .io-card { border-color: var(--teal); background: #fff; box-shadow: 0 3px 0 var(--teal); }

/* Tabbed + searchable icon picker */
.icon-picker { border: 2px solid var(--line); border-radius: 16px; padding: 14px; background: var(--cream); }
.icon-picker-top { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.icon-none { flex: none; }
.icon-search {
    flex: 1; min-width: 150px; padding: 11px 14px; border: 2px solid var(--line); border-radius: 12px;
    background: #fff; font-family: var(--font-body); font-size: .98rem; color: var(--ink);
}
.icon-search:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(22,184,166,.15); }
.icon-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.icon-tab {
    font-family: var(--font-head); font-weight: 700; font-size: .82rem; padding: 7px 14px; border-radius: 999px;
    border: 2px solid var(--line); background: #fff; color: var(--ink-soft); cursor: pointer; transition: all .12s ease;
}
.icon-tab:hover { background: var(--cream-2); }
.icon-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.icon-grid {
    display: flex; flex-wrap: wrap; gap: 8px; max-height: 232px; overflow-y: auto; padding: 4px;
    scrollbar-width: thin;
}
.icon-grid .icon-option[hidden] { display: none; }
/* Hover preview card for the icon picker (one shared element on <body>) */
.icon-pop {
    position: fixed; z-index: 120; width: 136px; height: 136px; pointer-events: none;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 2px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-md);
    animation: icon-pop-in .12s ease-out;
}
.icon-pop[hidden] { display: none; }
.icon-pop img { width: 112px; height: 112px; object-fit: contain; display: block; }
.icon-pop span { font-size: 92px; line-height: 1; font-family: var(--font-emoji); }
.icon-pop::after {
    content: ""; position: absolute; left: 50%; bottom: -8px; width: 14px; height: 14px;
    background: #fff; border-right: 2px solid var(--line); border-bottom: 2px solid var(--line);
    transform: translateX(-50%) rotate(45deg);
}
.icon-pop.below::after { bottom: auto; top: -8px; transform: translateX(-50%) rotate(-135deg); }
@keyframes icon-pop-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.icon-noresults { width: 100%; text-align: center; color: var(--ink-soft); padding: 24px 0; font-weight: 700; font-family: var(--font-head); }

/* Font options: keep tidy at a larger count */
.font-options { grid-template-columns: 1fr 1fr 1fr; }
.font-options .to-card { font-size: 1rem; padding: 12px 6px; min-height: 46px; }

/* Style toolbar: bold / italic / alignment */
.style-toolbar { display: flex; flex-wrap: wrap; gap: 10px; }
.style-group { display: inline-flex; gap: 6px; background: var(--cream); border: 2px solid var(--line); border-radius: 12px; padding: 5px; }
.style-btn { cursor: pointer; }
.style-btn input { position: absolute; opacity: 0; }
.style-btn > span {
    display: flex; align-items: center; justify-content: center; width: 42px; height: 40px;
    border-radius: 8px; color: var(--ink-soft); font-family: var(--font-head); font-size: 1.15rem; transition: all .12s ease;
}
.style-btn:hover > span { background: var(--cream-2); }
.style-btn input:checked + span { background: var(--ink); color: #fff; }

.qty-row { display: flex; align-items: center; gap: 12px; }
.qty-stepper { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--cream); }
.qty-stepper button { width: 44px; height: 46px; border: none; background: none; font-size: 1.4rem; font-family: var(--font-head); cursor: pointer; color: var(--ink); }
.qty-stepper button:hover { background: var(--cream-2); }
.qty-stepper input { width: 54px; height: 46px; text-align: center; border: none; background: none; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.cz-price-line { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 0 20px; }
.cz-price-line .amt { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; }
.field-hint { color: var(--coral-dark); font-weight: 700; font-size: .9rem; margin-top: 6px; display: none; }
.field.error .field-hint { display: block; }
.field.error input { border-color: var(--coral); }

/* --- Cart & checkout ----------------------------------------------------- */
.page-head { text-align: center; margin-bottom: 40px; }
.page-sub { color: var(--ink-soft); max-width: 560px; margin: 10px auto 0; font-weight: 600; }
.cart-layout, .co-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.card { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card.pad { padding: 26px; }
.summary-card { position: sticky; top: 96px; padding: 26px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; color: var(--ink-soft); }
.summary-row.total { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--ink); border-top: 2px solid var(--line); padding-top: 14px; margin-top: 6px; }
.summary-row .free { color: var(--teal-dark); font-weight: 800; }
.summary-row.discount { color: var(--teal-dark); font-weight: 700; }

/* discount code box */
.disc-box { margin-top: 16px; padding-top: 16px; border-top: 2px solid var(--line); }
.disc-form { display: flex; gap: 8px; }
.disc-form input { flex: 1; min-width: 0; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; font-family: var(--font-body); text-transform: uppercase; }
.disc-form .btn.ghost { padding: 10px 16px; white-space: nowrap; }
.disc-applied { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.disc-tag { font-weight: 800; font-family: var(--font-head); background: var(--cream-2); border: 2px dashed var(--line); border-radius: 10px; padding: 6px 12px; }
.disc-msg { margin-top: 10px; font-size: .88rem; }
.disc-msg.ok { color: var(--teal-dark); }
.disc-msg.err { color: var(--coral-dark); }

.cart-item { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 2px solid var(--line); }
.cart-item:last-child { border-bottom: none; }
/* Label with an icon: icon left of the whole text block, as it prints */
.ci-preview.has-icon { display: flex; align-items: center; justify-content: center; gap: 8px; }
.ci-preview.has-icon.al-left { justify-content: flex-start; }
.ci-preview.has-icon.al-right { justify-content: flex-end; }
.ci-preview .ci-icon { flex: none; font-size: 1.9em; line-height: 1; }
.ci-preview .ci-icon img { display: block; vertical-align: baseline !important; }
.ci-preview { border-radius: 10px; padding: 12px 16px; font-family: var(--font-head); font-weight: 700; box-shadow: var(--shadow-sm); border: 2px dashed rgba(0,0,0,.08); white-space: nowrap; }
.ci-meta h3 { margin-bottom: 2px; font-size: 1.05rem; }
.ci-meta .ci-sub { color: var(--ink-soft); font-size: .88rem; }
.ci-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ci-price { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; }
.mini-qty { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; }
.mini-qty button { width: 32px; height: 34px; border: none; background: var(--cream); cursor: pointer; font-size: 1.1rem; font-family: var(--font-head); }
.mini-qty span { width: 38px; text-align: center; font-weight: 700; }
.link-remove { background: none; border: none; color: var(--ink-soft); cursor: pointer; font-size: .85rem; text-decoration: underline; font-family: var(--font-body); }
.link-remove:hover { color: var(--coral-dark); }

.co-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* Street + apartment no.: stays side by side on phones too (the unit field is short). */
.co-form .row2.row-addr { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); }
.co-form fieldset { border: none; padding: 0; margin: 0 0 26px; }
/* Red delivery warning under the contact heading (dark enough to pass AA on white) */
.co-form .co-note { color: #C42B17; font-weight: 700; font-size: calc(.92rem - 1pt); line-height: 1.45; margin: -4px 0 18px; }
.co-form legend { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; margin-bottom: 14px; padding: 0; }
.co-summary-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.secure-note { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: .85rem; margin-top: 16px; }
.simulate-banner { background: var(--sun); color: var(--ink); border-radius: 12px; padding: 12px 16px; font-weight: 700; font-size: .9rem; margin-bottom: 20px; }

/* --- Result pages -------------------------------------------------------- */
.result { text-align: center; padding: 80px 0; }
.result .emoji { font-size: 4rem; margin-bottom: 12px; }
.result.ok .badge, .result.fail .badge { width: 90px; height: 90px; border-radius: 999px; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.result.ok .badge { background: rgba(22,184,166,.15); }
.result.fail .badge { background: rgba(255,107,87,.15); }

/* --- FAQ / prose --------------------------------------------------------- */
.faq-item { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.faq-item summary { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; padding: 20px 24px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--coral); }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 24px 22px; color: var(--ink-soft); }
.prose { font-size: 1.1rem; color: var(--ink-soft); }
.prose h1 { color: var(--ink); }

/* Legal / policy pages */
.privacy { font-size: 1rem; line-height: 1.7; }
.privacy h2 { color: var(--ink); font-size: 1.15rem; margin: 32px 0 10px; }
.privacy p { margin: 0 0 12px; }
.privacy ul { margin: 0 0 12px; padding-left: 22px; }
.privacy li { margin: 4px 0; }
.privacy-date { color: var(--ink-soft); font-weight: 700; margin-bottom: 28px; }
.privacy a { color: var(--teal-dark); text-decoration: underline; }

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #cdd6df; padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand .brand-word { color: #fff; }
.footer-brand p { color: #9aa6b2; max-width: 32ch; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cdd6df; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; font-size: .85rem; color: #8b97a3; }
.footer-version { opacity: .6; font-variant-numeric: tabular-nums; }

/* --- Toast --------------------------------------------------------------- */
.toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%);
    background: var(--ink); color: #fff; padding: 14px 26px; border-radius: 999px; font-family: var(--font-head);
    font-weight: 700; box-shadow: var(--shadow-lg); z-index: 200; transition: transform .3s cubic-bezier(.2,1.3,.5,1); display: flex; gap: 10px; align-items: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast .t-check { color: var(--teal); }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero-art { height: 300px; order: -1; }
    .cz-wrap, .cart-layout, .co-layout { grid-template-columns: 1fr; }
    .cz-wrap { gap: 14px; }
    .summary-card { position: static; }
    /* Keep the live label preview pinned to the top of the viewport on mobile so
       it stays visible while the customer scrolls the options below. It collapses
       into a slim strip — no striped scene, smaller label — to leave room. */
    .cz-stage {
        position: sticky; top: 74px; z-index: 20;
        padding: 12px 14px; border-radius: 16px;
        box-shadow: 0 8px 18px rgba(38,49,59,.12);
    }
    .cz-stage-label, .cz-stage .preview-note { display: none; }
    .cz-stage .preview-scene { background: none; padding: 0; min-height: 0; }
    .cz-stage #labelPreview {
        transform: none; min-width: 0; padding: 12px 20px; box-shadow: var(--shadow-sm);
    }
    .cz-stage #labelPreview .lp-text { font-size: 1.35rem; }
    .cz-stage #labelPreview .lp-icon { font-size: 1.3rem; }
    .grid.cols-4 { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .primary-nav {
        display: none; position: absolute; top: 74px; left: 0; right: 0; background: var(--cream);
        flex-direction: column; padding: 12px; border-bottom: 2px solid var(--line); gap: 2px;
    }
    .primary-nav.open { display: flex; }
    .nav-toggle { display: flex; }
    .grid.cols-4, .grid.cols-3 { grid-template-columns: 1fr; }
    .co-form .row2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cart-item { grid-template-columns: 1fr auto; }
    .ci-preview { grid-column: 1 / -1; }
    .section { padding: 52px 0; }
}

/* --- Cookie consent banner --------------------------------------------- */
.cookie-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
    max-width: 560px; margin: 0 auto;
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
    background: var(--ink); color: #fff; padding: 16px 20px; border-radius: 16px;
    box-shadow: 0 12px 40px rgba(38,49,59,.28);
}
.cookie-banner .cookie-msg { margin: 0; flex: 1 1 260px; font-size: .92rem; line-height: 1.45; }
.cookie-banner .cookie-msg a { color: var(--sun); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.cookie-btn {
    border: none; cursor: pointer; border-radius: 999px; padding: 9px 18px;
    font-family: var(--font-head); font-weight: 700; font-size: .88rem;
    background: var(--coral); color: #fff;
}
.cookie-btn:hover { background: var(--coral-dark); }
.cookie-btn.ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.3); padding: 7px 16px; }
.cookie-btn.ghost:hover { border-color: rgba(255,255,255,.6); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cookie-link {
    background: none; border: none; cursor: pointer; padding: 0; font: inherit;
    color: inherit; opacity: .7; text-decoration: underline;
}
.cookie-link:hover { opacity: 1; }
