/* Finishfoto: mobile-first styles. Colors of finishfoto.be (yellow, black, white, Montserrat),
   with yellow used as an accent: white surfaces on a light warm background. */
@font-face {
    font-family: "Montserrat"; font-style: normal; font-weight: 400 800; font-display: swap;
    src: url(fonts/montserrat-latin.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
                   U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Montserrat"; font-style: normal; font-weight: 400 800; font-display: swap;
    src: url(fonts/montserrat-latin-ext.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
                   U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113,
                   U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --yellow: #fcd21d;
    --yellow-soft: #fff6cc;
    --ink: #111111;
    --heading: #222222;
    --text: #444444;
    --muted: #707070;
    --bg: #f8f4e2;
    --surface: #ffffff;
    --border: #e6e4dd;
    --focus: #1f5fbf;
    --radius: 8px;
    --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .05);
    color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* also for buttons, which set their own display */
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 500 16px/1.65 "Montserrat", Helvetica, Arial, sans-serif;
    display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.center { text-align: center; }
h1, h2, h3 { color: var(--heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.5rem); margin: .15em 0 0; color: var(--ink); }
h2 { font-size: 1.2rem; margin: 1.8em 0 .7em; }
h3 { font-size: 1rem; }

/* small letter-spaced capitals, as on finishfoto.be */
.kicker { margin: 0; font-size: .75rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

/* header / footer: white, with a thin yellow line */
.site-header { background: var(--surface); border-bottom: 3px solid var(--yellow); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand img { width: 165px; height: auto; }
@media (min-width: 700px) { .brand img { width: 210px; } .header-inner { min-height: 72px; } }
.main-nav { display: flex; align-items: center; gap: 18px; font-size: .88rem; font-weight: 600; }
.main-nav > a { text-decoration: none; color: var(--muted); padding: 4px 0; }
.main-nav > a:hover, .main-nav > a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--yellow); }
@media (max-width: 480px) { .main-nav > a { display: none; } }
.langs { display: flex; gap: 2px; }
.langs a { text-decoration: none; padding: 3px 7px; border-radius: 4px; font-size: .72rem; letter-spacing: .08em;
           color: var(--muted); }
.langs a:hover { color: var(--ink); }
.langs a[aria-current] { color: var(--ink); background: var(--yellow); font-weight: 700; }
.site-footer { background: var(--surface); border-top: 1px solid var(--border); color: var(--muted);
               font-size: .82rem; padding: 26px 0; margin-top: 56px; }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.footer-logo { width: 120px; height: auto; opacity: .7; }
.site-footer p { margin: 0; }

/* page heads: light, a short yellow bar as accent */
.band { padding: 36px 0 28px; }
.band.hero { padding: 56px 0 24px; }
@media (min-width: 700px) { .band.hero { padding: 80px 0 32px; } }
.band h1::after { content: ""; display: block; width: 56px; height: 5px; border-radius: 3px;
                  background: var(--yellow); margin-top: 16px; }
.hero h1 { max-width: 22ch; font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.01em; }
.hero .kicker { margin-bottom: 10px; }

/* buttons */
button, .button {
    font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    border: 0; border-radius: 100px; padding: 8px 26px; min-height: 46px;
    background: var(--yellow); color: var(--ink); cursor: pointer; text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center; transition: background .15s, color .15s;
}
button:hover, .button:hover { background: var(--ink); color: var(--yellow); }
.button.outline { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }

/* home */
.section-title { font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
                 color: var(--muted); margin: 24px 0 14px; }
.event-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px;
              grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.event-card { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; text-decoration: none; height: 100%;
              background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
              border: 1px solid var(--border); transition: border-color .15s, transform .15s; position: relative; }
.event-card:hover { border-color: var(--yellow); transform: translateY(-1px); }
.event-card::before { content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 4px;
                      border-radius: 0 3px 3px 0; background: var(--yellow); opacity: 0; transition: opacity .15s; }
.event-card:hover::before { opacity: 1; }
.event-date { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.event-name { font-weight: 700; font-size: 1.1rem; color: var(--heading); line-height: 1.3; }
.event-meta { color: var(--muted); font-size: .85rem; }

/* event page */
.event-band { padding: 22px 0 22px; }
.event-band .kicker { margin-top: 16px; }
.crumb { margin: 0; font-size: .82rem; font-weight: 600; }
.crumb a { text-decoration: none; color: var(--muted); }
.crumb a:hover { color: var(--ink); }

.search-card, .search-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
                             box-shadow: var(--shadow); }
.tabs { display: flex; gap: 22px; margin: 0; padding: 0 20px; background: var(--surface);
        border: 1px solid var(--border); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; }
.tabs a { padding: 14px 0 12px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: .78rem;
          letter-spacing: .1em; text-transform: uppercase; border-bottom: 3px solid transparent; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--yellow); }
.tabs + .search-form { border-top-left-radius: 0; border-top-right-radius: 0; }
@media (max-width: 520px) {
    .tabs { gap: 14px; padding: 0 14px; }
    .tabs a { font-size: .68rem; letter-spacing: .05em; line-height: 1.35; }
}

.search-form { padding: 20px; }
.search-form p { margin-top: 0; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.row > * { min-width: 0; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: .7rem; font-weight: 700;
         letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field.grow { flex: 1 1 180px; }
input[type=text], input[type=search], input[type=time], input[type=email], select {
    font: inherit; font-size: 1rem; letter-spacing: normal; text-transform: none; font-weight: 500;
    padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--bg); color: var(--heading); min-height: 46px;
}
input:focus, select:focus { border-color: var(--yellow); background: var(--surface); outline: none;
                            box-shadow: 0 0 0 3px rgba(252, 210, 29, .3); }
input[name=bib] { font-size: 1.2rem; font-weight: 700; }
.time-range { display: flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: normal; font-weight: 500; }
.time-range input { width: 7.5em; min-width: 0; }
select { max-width: 100%; }

.color-field { border: 0; padding: 0; margin: 0 0 16px; }
.color-field legend { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
                      color: var(--muted); margin-bottom: 8px; padding: 0; }
.swatches, .choices { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch input, .choice input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span {
    display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--swatch);
    border: 1px solid rgba(0, 0, 0, .15); cursor: pointer;
}
.swatch.any span { width: auto; border-radius: 17px; padding: 0 14px; line-height: 32px; font-size: .8rem;
                   background: var(--bg); }
.swatch input:checked + span, .choice input:checked + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.swatch input:focus-visible + span, .choice input:focus-visible + span { outline: 3px solid var(--focus); }
.choice span { display: block; padding: 5px 16px; border: 1px solid var(--border); border-radius: 17px;
               cursor: pointer; font-size: .85rem; background: var(--bg); }
.choice input:checked + span { background: var(--yellow-soft); border-color: var(--yellow); outline: 0; }

.notice { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--yellow);
          padding: 14px 16px; border-radius: var(--radius); color: var(--heading); }

/* results */
.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; } }
.thumb { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius);
         background: #eee8d4; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .2s; }
.thumb:hover img { transform: scale(1.03); }
.thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
                box-shadow: inset 0 0 0 0 var(--yellow); transition: box-shadow .15s; }
.thumb:hover::after { box-shadow: inset 0 0 0 3px var(--yellow); }
.badge { position: absolute; left: 6px; bottom: 6px; font-size: .66rem; font-weight: 700; letter-spacing: .06em;
         text-transform: uppercase; background: rgba(0, 0, 0, .6); color: #fff; padding: 2px 8px; border-radius: 10px; }
.badge.full { background: var(--yellow); color: var(--ink); }
.results-host[aria-busy=true] { opacity: .5; transition: opacity .15s; }
.person > h2 { margin-bottom: .2em; }
.person > h2 .muted { font-weight: 600; }
.person h3 { margin: 30px 0 10px; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
             display: flex; align-items: center; gap: 10px; color: var(--heading); }
.person h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); }
.person h3::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.likely-hint { margin: 12px 0 8px; font-size: .88rem; }
.people { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.people a { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 12px 16px;
            border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
            color: var(--heading); text-decoration: none; }
.people a:hover { border-color: var(--yellow); }
.page-of { margin: -6px 0 12px; font-size: .85rem; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 28px 0; }
.pager a, .pager span { min-width: 2.5em; padding: 9px 12px; border-radius: 100px; text-align: center;
                        text-decoration: none; line-height: 1; font-weight: 600; font-size: .85rem; }
.pager a { background: var(--surface); border: 1px solid var(--border); color: var(--heading); }
.pager a:hover { border-color: var(--yellow); }
.pager .current { background: var(--yellow); color: var(--ink); font-weight: 700; }
.pager .pager-gap { min-width: auto; padding: 8px 2px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 10; background: rgba(0, 0, 0, .94);
            display: flex; flex-direction: column; color: #fff; }
.lightbox[hidden] { display: none; }
.lb-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 8px; min-height: 0; }
.lb-frame { position: relative; max-width: 100%; max-height: 100%; }
.lb-frame img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; }
.lb-box { position: absolute; border: 3px solid var(--yellow); border-radius: 6px;
          box-shadow: 0 0 0 9999px rgba(0, 0, 0, .25); pointer-events: none; }
.lb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px;
          justify-content: space-between; }
.lb-name { font-size: .85rem; opacity: .85; }
.lb-actions { display: flex; gap: 8px; align-items: center; }
.lb-actions button.icon { width: 44px; min-width: 44px; padding: 0; font-size: 1.6rem; line-height: 1; letter-spacing: 0; }
@media (max-width: 600px) {
    .lb-bar { padding: 10px 12px 14px; gap: 8px; }
    .lb-name { width: 100%; }
    .lb-actions { width: 100%; }
    .lb-actions [data-act=buy] { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.lb-actions button.secondary { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.lb-actions button.secondary:hover { box-shadow: inset 0 0 0 1px #fff; }

/* ---- cart ---- */
.cart-button { min-height: 38px; padding: 6px 14px 6px 12px; gap: 8px; font-size: .8rem; letter-spacing: .02em;
               text-transform: none; background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--border); }
.cart-button:hover { background: var(--ink); color: #fff; }
.cart-button.has-items { background: var(--yellow); box-shadow: none; }
.cart-button.has-items:hover { background: var(--ink); color: var(--yellow); }
.cart-count { min-width: 1.5em; height: 1.5em; line-height: 1.5em; border-radius: 1em; background: var(--ink); color: #fff;
              font-size: .72rem; text-align: center; padding: 0 .35em; }
.cart-button.has-items .cart-count { background: var(--ink); color: var(--yellow); }
.cart-total:empty { display: none; }
.cart-button.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.12); } 60% { transform: scale(.96); } }
@media (max-width: 480px) { .cart-total { display: none; } .main-nav { gap: 10px; } }

/* button on each photo; photos in the cart get a yellow frame and check mark */
.photo { position: relative; }
.add-cart { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; min-height: 0; padding: 0;
            border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink);
            box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.add-cart:hover { background: var(--yellow); color: var(--ink); }
.add-cart .i-check { display: none; }
.photo.in-cart .add-cart { background: var(--yellow); }
.photo.in-cart .add-cart .i-plus { display: none; }
.photo.in-cart .add-cart .i-check { display: inline; }
.photo.in-cart .thumb::after { box-shadow: inset 0 0 0 4px var(--yellow); }
.photo.in-cart .thumb img { opacity: .9; }
@media (hover: hover) {
    .add-cart { opacity: .85; }
    .photo:hover .add-cart, .add-cart:focus-visible, .photo.in-cart .add-cart { opacity: 1; }
}

/* popup with the options */
.option-pop { position: fixed; z-index: 30; width: min(320px, calc(100vw - 16px)); background: var(--surface);
              border-radius: 12px; padding: 10px; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.option-pop[hidden] { display: none; }
.pop-title { margin: 2px 6px 8px; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
             color: var(--muted); }
.pop-option { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; width: 100%; text-align: left; min-height: 0;
              padding: 10px 12px; border-radius: 8px; background: transparent; color: var(--heading);
              text-transform: none; letter-spacing: normal; font-size: .95rem; box-shadow: inset 0 0 0 1px transparent; }
.pop-option + .pop-option { margin-top: 4px; }
.pop-option:hover, .pop-option:focus-visible { background: var(--bg); color: var(--heading); }
.pop-option.selected { background: var(--yellow-soft); box-shadow: inset 0 0 0 2px var(--yellow); }
.pop-label { font-weight: 700; }
.pop-price { font-weight: 700; }
.pop-desc { grid-column: 1 / -1; font-size: .78rem; font-weight: 500; color: var(--muted); }
.pop-deal { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 4px; background: var(--yellow);
            font-size: .68rem; vertical-align: 1px; }
.pop-remove { width: 100%; margin-top: 6px; min-height: 38px; background: transparent; color: #a3261b;
              text-transform: none; letter-spacing: normal; font-size: .85rem; }
.pop-remove:hover { background: #fbeceb; color: #a3261b; }

/* lightbox button when the photo is already in the cart */
.lb-actions button.in-cart { background: #fff; color: var(--ink); }

/* cart overview (slides in from the right) */
.cart-drawer { position: fixed; inset: 0; z-index: 40; }
.cart-drawer[hidden] { display: none; }
.cart-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); }
.cart-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--surface);
              display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0, 0, 0, .2); outline: 0;
              animation: slide-in .2s ease; }
@keyframes slide-in { from { transform: translateX(30px); opacity: 0; } }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px;
             border-bottom: 3px solid var(--yellow); }
.cart-head h2 { margin: 0; font-size: 1.1rem; }
.cart-head .muted { font-weight: 500; font-size: .9rem; }
.cart-close { min-height: 40px; width: 40px; padding: 0; background: transparent; font-size: 1.6rem; letter-spacing: 0; }
.cart-items { list-style: none; margin: 0; padding: 8px 18px; overflow-y: auto; flex: 1; }
.cart-items li { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px 0;
                 border-bottom: 1px solid var(--border); align-items: start; }
.cart-items img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; background: var(--bg); }
.ci-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ci-event { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ci-name { font-weight: 700; font-size: .88rem; color: var(--heading); overflow-wrap: anywhere; }
.ci-body select { min-height: 36px; padding: 4px 8px; font-size: .82rem; margin-top: 4px; }
.ci-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ci-price { font-weight: 700; color: var(--heading); }
.ci-remove { min-height: 0; padding: 2px 0; background: transparent; color: var(--muted); font-size: .72rem;
             letter-spacing: .04em; text-decoration: underline; }
.ci-remove:hover { background: transparent; color: #a3261b; }
.cart-empty { padding: 24px 18px; flex: 1; }
.cart-foot { padding: 14px 18px 18px; border-top: 1px solid var(--border); background: var(--bg); }
.cart-foot p { margin: 0 0 6px; }
.cart-deal { font-size: .78rem; font-weight: 700; color: var(--ink); }
.cart-deal::before { content: "★ "; color: var(--yellow); }
.cart-line { display: flex; justify-content: space-between; font-size: .9rem; }
.cart-sum { font-size: 1.15rem; font-weight: 800; color: var(--ink); margin: 6px 0 12px !important; }
.cart-checkout { width: 100%; }
.cart-checkout:disabled { opacity: .5; cursor: not-allowed; }
.cart-checkout:disabled:hover { background: var(--yellow); color: var(--ink); }
.cart-note { font-size: .78rem; text-align: center; margin: 8px 0 10px !important; }
.cart-continue { width: 100%; min-height: 40px; }

/* ---- checkout and order pages ---- */
.shop-body { padding-bottom: 48px; }
.shop-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
             box-shadow: var(--shadow); padding: 4px 20px 18px; }
.shop-card .section-title { margin-top: 18px; }
.checkout-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 860px) { .checkout-grid { grid-template-columns: 1.4fr 1fr; } }
.order-lines { list-style: none; margin: 0 0 12px; padding: 0; }
.order-lines li { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center;
                  padding: 12px 0; border-bottom: 1px solid var(--border); }
.order-lines img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; background: var(--bg); }
.ol-body { display: flex; flex-direction: column; min-width: 0; }
.ol-event { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ol-name { font-weight: 700; color: var(--heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-option { font-size: .85rem; }
.ol-price { font-weight: 700; color: var(--heading); white-space: nowrap; }
.ol-price s { color: var(--muted); font-weight: 400; }
.order-lines .button { min-height: 40px; padding: 0 16px; }
.shop-card .cart-line { margin: 6px 0; }
.checkout-form { display: flex; flex-direction: column; gap: 14px; }
.checkout-form .field { font-size: .75rem; }
.checkout-form .field small { font-weight: 400; letter-spacing: 0; text-transform: none; font-size: .8rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; line-height: 1.45; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.field-error { color: #a3261b; font-size: .82rem; margin: 0; font-weight: 600; letter-spacing: 0; text-transform: none; }
.checkout-submit { width: 100%; }
.checkout-submit:disabled { opacity: .5; cursor: not-allowed; }
.notice { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--yellow);
          border-radius: var(--radius); padding: 12px 16px; margin: 0 0 16px; line-height: 1.55; }
.notice.error { border-left-color: #a3261b; }
.test-notice { background: var(--yellow-soft); font-weight: 600; }
.zip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 16px; }
.zip-row .muted { font-size: .88rem; }
@media (max-width: 520px) {
    .order-lines li { grid-template-columns: 56px 1fr; }
    .order-lines img { width: 56px; height: 56px; }
    .order-lines li > .button, .order-lines li > .ol-price { grid-column: 2; justify-self: start; }
}

/* ---- admin panel ---- */
.admin .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.admin-tag { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
             background: var(--ink); color: var(--yellow); padding: 3px 8px; border-radius: 4px; }
.admin-nav { flex-wrap: wrap; row-gap: 4px; }
.admin .main-nav > a { display: inline; }
.inline { display: inline; margin: 0; }
.link-button { background: none; min-height: 0; padding: 4px 0; color: var(--muted); font: inherit; font-size: inherit;
               letter-spacing: 0; text-transform: none; font-weight: 500; }
.link-button:hover { background: none; color: var(--ink); }
.admin-main { width: 100%; padding: 24px 16px 64px; display: flex; flex-direction: column; gap: 18px; }
.admin-title { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0; }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.admin-head .admin-title { margin-right: auto; }
.toggle { font-size: .85rem; color: var(--muted); }
.kpis { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.kpis li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
           box-shadow: var(--shadow); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.kpi-label { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kpi-value { font-size: 1.45rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: .8rem; color: var(--muted); }
.admin-cols { display: grid; gap: 18px; align-items: start; }
@media (min-width: 980px) { .admin-cols { grid-template-columns: repeat(3, 1fr); } }
.table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-table th { text-align: left; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
                  font-weight: 700; padding: 8px 8px 8px 0; border-bottom: 2px solid var(--border); }
.admin-table td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-table tr.is-test td { color: var(--muted); }
.admin-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; background: var(--bg); }
.pill { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
        background: var(--yellow-soft); color: var(--ink); border: 1px solid var(--yellow); border-radius: 999px; padding: 1px 7px; }
.admin-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 16px 0; font-size: .92rem; }
.admin-dl dt { color: var(--muted); }
.admin-dl dd { margin: 0; }
.admin-search { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-search input[type=search] { flex: 1 1 240px; }
.admin-search button { min-height: 46px; }
.admin-login, .admin-form { max-width: 420px; display: flex; flex-direction: column; gap: 14px; padding: 18px 22px 22px; }
.admin-login { margin: 40px auto; }
.admin-login input, .admin-form input { width: 100%; }
input[type=password] { font: inherit; font-size: 1rem; padding: 10px 14px; border: 1px solid var(--border);
                       border-radius: var(--radius); background: var(--bg); color: var(--heading); min-height: 46px; }
.switch { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px 0 6px;
          background: #e9e6dc; color: var(--muted); font-size: .72rem; }
.switch .knob { width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.switch.on { background: var(--yellow); color: var(--ink); flex-direction: row-reverse; padding: 0 6px 0 14px; }
.switch:hover { background: var(--ink); color: var(--yellow); }
.photo-admin-bar { position: sticky; top: 72px; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
                   background: var(--bg); padding: 10px 0; }
.photo-admin-bar .muted { margin-right: auto; font-size: .88rem; }
button.danger { background: #a3261b; color: #fff; }
button.danger:hover { background: var(--ink); color: #fff; }
button.danger:disabled { opacity: .4; cursor: not-allowed; }
button.danger:disabled:hover { background: #a3261b; }
.admin-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px;
              grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.admin-grid li { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
                 overflow: hidden; }
.admin-grid label { display: block; cursor: pointer; }
.admin-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #eee8d4; }
.admin-grid input { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; accent-color: #a3261b; z-index: 1; }
.admin-grid li:has(input:checked) { outline: 3px solid #a3261b; outline-offset: -3px; }
.admin-grid li:has(input:checked) img { opacity: .6; }
.ag-name { display: block; font-size: .72rem; padding: 6px 8px 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-grid .sold { position: absolute; top: 8px; right: 8px; }
.ag-open { display: block; font-size: .72rem; padding: 0 8px 7px; color: var(--muted); }

/* ---- terms / privacy ---- */
.legal { max-width: 820px; padding: 8px 28px 24px; line-height: 1.65; }
.legal h2 { font-size: 1.05rem; margin: 26px 0 6px; }
.legal p { margin: 0 0 10px; }
.legal mark { background: var(--yellow-soft); outline: 1px dashed #a3261b; padding: 0 3px; }
.footer-links a { color: inherit; }
.check a { color: var(--ink); }

/* ---- company invoice at checkout, VAT line ---- */
.company-fields { border: 0; margin: 0; padding: 0 0 0 28px; display: none; flex-direction: column; gap: 12px; }
.checkout-form:has(input[name=invoice]:checked) .company-fields { display: flex; }
.company-fields input { width: 100%; }
.field-row { display: flex; gap: 12px; }
.field-row .field:first-child { flex: 0 0 8em; }
.field-row .field.grow { flex: 1; }
.vat-line { font-size: .82rem; color: var(--muted); margin-top: -6px !important; }
.invoice-note { font-size: .85rem; margin: 8px 0 0; }
.admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-bottom: 20px; }
.admin-actions .section-title { width: 100%; }
.admin-actions .muted { width: 100%; margin: 0; font-size: .85rem; }
button.small { min-height: 34px; padding: 0 14px; font-size: .72rem; }
code { background: var(--yellow-soft); padding: 1px 5px; border-radius: 4px; font-size: .9em; }

/* ---- discount code ---- */
.coupon-field label { font-size: .75rem; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .06em; }
.coupon-row .button { min-height: 46px; padding: 0 16px; }
.coupon-ok { color: var(--green, #2a9d4b); font-weight: 600; font-size: .82rem; letter-spacing: 0; text-transform: none; }
.coupon-line { color: #2a7a3f; font-weight: 600; }
.coupon-form { display: flex; flex-direction: column; gap: 14px; padding-bottom: 20px; }
.coupon-form > button { align-self: flex-start; }
.coupon-grid { display: grid; gap: 16px 22px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.coupon-grid .wide { grid-column: 1 / -1; }
.coupon-grid fieldset { border: 0; margin: 0; padding: 0; }
.coupon-grid input[type=text], .coupon-grid input[type=date] { width: 100%; }
.coupon-grid small { font-weight: 400; letter-spacing: 0; text-transform: none; }
.seg { display: flex; gap: 6px; align-items: center; }
.seg label { display: inline-flex; align-items: center; gap: 4px; font-size: .95rem; letter-spacing: 0; color: var(--ink); cursor: pointer;
             border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; min-height: 46px; }
.seg label:has(input:checked) { background: var(--yellow); border-color: var(--yellow); font-weight: 700; }
.seg input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.seg input[type=text] { flex: 1; }
.small-num { width: 5em; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; font: inherit; }
input[type=date] { font: inherit; font-size: 1rem; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius);
                   background: var(--bg); color: var(--heading); min-height: 46px; }
.code { font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; }
.pill.on { background: #dcf1e2; border-color: #9fd4ad; color: #1d6b35; }
.actions-cell { white-space: nowrap; }
.coupon-grid fieldset .check { text-transform: none; letter-spacing: 0; font-size: .92rem; font-weight: 500; color: var(--text); margin-top: 4px; }
.check input.small-num { width: 5em; height: auto; margin: 0 4px; accent-color: auto; }
