/* ===== look.css: the shop's look (fonts, login, home, categories, phone bottom bar, tile polish) =====
   Loaded after app.css and store.css; only overrides and new pieces live here.
   Fonts: Nunito Sans (text) and Plus Jakarta Sans (headings, part numbers, prices), both SIL OFL, self-hosted in /fonts. */

@font-face {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-display: swap;
    font-weight: 200 1000;
    src: url(/fonts/nunito-sans-latin-wght-normal.woff2) format('woff2-variations'), url(/fonts/nunito-sans-latin-wght-normal.woff2) format('woff2');
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url(/fonts/plus-jakarta-sans-latin-wght-normal.woff2) format('woff2-variations'), url(/fonts/plus-jakarta-sans-latin-wght-normal.woff2) format('woff2');
}

:root {
    --font: 'Nunito Sans', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Nunito Sans', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --bg: #F5F3ED;
    --border: #E6E1D3;
    --radius: 12px;
    --shadow-sm: 0 1px 2px rgba(23, 21, 15, .05), 0 2px 6px rgba(23, 21, 15, .05);
    --shadow-md: 0 10px 26px rgba(23, 21, 15, .11);
    --shadow-lg: 0 22px 48px rgba(23, 21, 15, .22);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --bnav-h: 64px;
}

/* ---- type ------------------------------------------------------------------------------- */
body { font-family: var(--font); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
b, strong { font-weight: 750; }
h1, h2, h3, .pagehd, .dialog .hd h2, .panel h3, .panel h2 { font-family: var(--font-display); letter-spacing: -.015em; }
.pagehd { font-size: 27px; font-weight: 800; }
.panel h3 { font-size: 17px; font-weight: 750; }
.tile .code, .pcard-pn, .pm-code, .kpi b, .qtot b, .qprice b, .sumbox .tot, .done .slip, .suggest b, .again .tx b, table.lines td > b { font-family: var(--font-display); letter-spacing: -.01em; }
.pcard-pn { font-weight: 800; }
.kpi b { font-weight: 800; }
table.lines th, table.t th, .field label, .filters label { font-weight: 750; }
.pill { font-weight: 750; }

/* ---- buttons ---------------------------------------------------------------------------- */
button.primary, a.primary { background: linear-gradient(180deg, #DDBB72 0%, #C9A04F 100%); border-color: #BF9644; color: #1D1A12; font-weight: 800; border-radius: 10px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 6px rgba(122, 92, 20, .22); transition: box-shadow .15s, filter .15s, transform .1s; }
button.primary:hover, a.primary:hover { filter: brightness(1.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 16px rgba(122, 92, 20, .3); }
button.primary:active, a.primary:active { transform: translateY(1px); }
button.quiet, a.quiet { border-radius: 10px; font-weight: 650; transition: border-color .15s, box-shadow .15s; }
a.quiet.linkbtn2 { background: var(--surface); border: 1px solid var(--border); padding: 10px 16px; }
a.quiet.linkbtn2:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }

/* ---- header ----------------------------------------------------------------------------- */
.top { background: linear-gradient(180deg, #1E1B13 0%, #14120C 100%); box-shadow: 0 1px 0 rgba(206, 169, 92, .35), 0 8px 22px rgba(0, 0, 0, .18); }
.searchbar { position: relative; }
.searchbar input { height: 46px; border-radius: 999px; padding: 0 58px 0 20px; border: 2px solid transparent; background: #fff; font-size: 16px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .08); transition: border-color .15s, box-shadow .15s; }
.searchbar input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(206, 169, 92, .28); }
.searchbar .sbtn { position: absolute; right: 4px; top: 4px; height: 38px; width: 50px; border-radius: 999px; border: 0; background: linear-gradient(180deg, #DDBB72, #C9A04F); color: #1D1A12; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: filter .15s; }
.searchbar .sbtn:hover { filter: brightness(1.07); }
.suggest { border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
.basketlink, .top button.link { border-radius: 999px; background: rgba(255, 255, 255, .05); border-color: rgba(206, 169, 92, .35); font-weight: 700; transition: border-color .15s, color .15s, background .15s; }
.basketlink:hover, .top button.link:hover { background: rgba(206, 169, 92, .12); }
.menu { border-radius: 14px; }
.menu a, .menu button { font-weight: 600; }

.tabs { background: #1C1912; border-bottom: 1px solid rgba(206, 169, 92, .16); }
.tabs a { font-weight: 650; font-size: 14.5px; padding: 12px 15px; color: #D3CAB1; transition: color .15s, border-color .15s; }
.tabs a:hover { color: #fff; border-bottom-color: rgba(206, 169, 92, .4); }
.tabs a.on { color: var(--gold); border-bottom-color: var(--gold); font-weight: 800; }

/* ---- panels, kpis, sections -------------------------------------------------------------- */
.panel { border-radius: 16px; box-shadow: var(--shadow-sm); }
.kpi { border-radius: 16px; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.lk-kpis .kpi { display: grid; grid-template-columns: 46px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.lk-kpis .kpi i { grid-row: 1 / span 2; width: 46px; height: 46px; border-radius: 14px; background: var(--gold-soft); display: grid; place-items: center; font-style: normal; font-size: 20px; color: #C2185B; }
.lk-kpis .kpi b { font-size: 28px; line-height: 1.05; }
.lk-kpis .kpi span { line-height: 1.25; }

.lk-hello { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); font-weight: 850; margin-bottom: 2px; }
.lk-welcome .pagehd { font-size: 30px; }
.lk-sec { margin: 26px 0 22px; }
.lk-sechd { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.lk-sechd h2 { margin: 0; font-size: 22px; font-weight: 800; position: relative; padding-left: 15px; }
.lk-sechd h2::before { content: ''; position: absolute; left: 0; top: .2em; bottom: .2em; width: 5px; border-radius: 3px; background: linear-gradient(180deg, var(--gold), var(--gold-deep)); }
.lk-sechd a { color: var(--gold-deep); font-weight: 800; text-decoration: none; font-size: 14px; white-space: nowrap; }
.lk-sechd a:hover { text-decoration: underline; }

/* ---- specials hero (fallback banner when the specials module is not there) ----------------- */
#specials { margin: 0 0 18px; }
#specials:empty { display: none; }
.lk-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 210px; padding: 32px 36px; border-radius: 22px; color: #fff; text-decoration: none;
    background: radial-gradient(90% 140% at 88% 15%, rgba(214, 176, 96, .5) 0%, rgba(214, 176, 96, 0) 50%), radial-gradient(70% 90% at 0% 100%, rgba(122, 92, 20, .45) 0%, rgba(122, 92, 20, 0) 60%), linear-gradient(115deg, #15130D 0%, #241F14 55%, #362C1B 100%);
    box-shadow: var(--shadow-lg); }
.lk-hero-art { position: absolute; inset: 0; z-index: -1; background: url(/art/parts-pattern.svg) 0 0 / 420px auto repeat; opacity: .14; }
.lk-hero::after { content: ''; position: absolute; z-index: -1; top: -60%; left: -40%; width: 35%; height: 220%; background: linear-gradient(90deg, transparent, rgba(255, 228, 165, .2), transparent); transform: rotate(18deg); }
.lk-hero-tx { display: block; max-width: 560px; }
.lk-hero-kick { display: block; color: var(--gold); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 850; }
.lk-hero-tx b { display: block; font-family: var(--font-display); font-size: clamp(24px, 3.3vw, 36px); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; margin: 8px 0 8px; }
.lk-hero-sub { display: block; color: #D9D0B6; font-size: 15px; }
.lk-hero-cta { display: inline-block; margin-top: 18px; padding: 11px 20px; border-radius: 999px; background: linear-gradient(180deg, #E2C27C, #C9A04F); color: #1D1A12; font-weight: 850; box-shadow: 0 8px 20px rgba(0, 0, 0, .35); transition: transform .2s var(--ease); }
.lk-hero:hover .lk-hero-cta { transform: translateX(4px); }
.lk-hero-badges { display: flex; flex: none; padding-right: 8px; }
.lk-hero-badges img { width: 118px; height: 118px; border-radius: 50%; object-fit: cover; margin-left: -22px; border: 3px solid rgba(206, 169, 92, .7); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
.lk-hero-badges img:nth-child(2) { transform: translateY(-14px); }

/* ---- shop by category tiles -------------------------------------------------------------- */
.catcirc { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; flex: none;
    background: #FBF7EE; background: radial-gradient(circle at 32% 26%, #FFFFFF 0%, color-mix(in srgb, var(--tint) 12%, #FFFFFF) 55%, color-mix(in srgb, var(--tint) 26%, #FFFFFF) 100%);
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tint) 28%, transparent), 0 8px 18px color-mix(in srgb, var(--tint) 20%, transparent);
    transition: transform .3s var(--ease); }
.catcirc img { width: 80%; height: auto; display: block; }
.cattiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .cattiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cattile { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 20px 12px 16px; text-align: center; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-sm); transition: transform .22s var(--ease), box-shadow .22s, border-color .22s; }
.cattile::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--tint); opacity: .85; }
.cattile .catcirc { margin-bottom: 10px; }
.cattile b { font-family: var(--font-display); font-size: 15.5px; font-weight: 750; line-height: 1.2; }
.cattile span { font-size: 12.5px; color: var(--ink-muted); font-weight: 600; }
.cattile:hover, .cattile:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--tint) 45%, var(--border)); outline: none; }
.cattile:hover .catcirc { transform: scale(1.07) rotate(-4deg); }

/* ---- shop by range ------------------------------------------------------------------------ */
.ranges { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.range { flex: 1 0 124px; max-width: 180px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 10px 14px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-sm); transition: transform .22s var(--ease), box-shadow .22s, border-color .22s; }
.range img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; box-shadow: 0 6px 16px rgba(0, 0, 0, .14); transition: transform .3s var(--ease); }
.range b { font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.range span { font-size: 12px; color: var(--ink-muted); font-weight: 600; }
.range:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.range:hover img { transform: scale(1.07); }

/* ---- categories page ------------------------------------------------------------------- */
.lk-pagehd { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.lk-pagehd .pagehd { margin: 0; }
.catlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; align-items: start; }
.catrow { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s; }
.catrow:hover, .catrow.open { box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--tint) 40%, var(--border)); }
.cathd { display: flex; align-items: center; gap: 16px; width: 100%; padding: 12px 16px 12px 12px; background: none; border: 0; text-align: left; cursor: pointer; color: var(--ink); text-decoration: none; font: inherit; }
.cathd .catcirc { width: 66px; height: 66px; }
.cathd:hover .catcirc { transform: scale(1.06) rotate(-4deg); }
.cattx { flex: 1; min-width: 0; }
.cattx b { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 750; }
.cattx span { font-size: 13px; color: var(--ink-muted); font-weight: 600; }
.chev { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-sunken); transition: transform .25s var(--ease), background .2s; }
.chev::after { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-right: 2.2px solid var(--ink-muted); border-bottom: 2.2px solid var(--ink-muted); transform: translate(-50%, -70%) rotate(45deg); }
.chev.go::after { transform: translate(-70%, -50%) rotate(-45deg); }
.catrow.open .chev { transform: rotate(180deg); background: color-mix(in srgb, var(--tint) 18%, #FFFFFF); }
.catsubs { border-top: 1px solid var(--border); padding: 6px 10px 10px; }
.catsubs a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 12px 11px 26px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 650; position: relative; }
.catsubs a::before { content: ''; position: absolute; left: 12px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--tint); }
.catsubs a.all { font-weight: 850; }
.catsubs a:hover { background: color-mix(in srgb, var(--tint) 9%, #FFFFFF); }
.catsubs em { font-style: normal; font-size: 12px; font-weight: 750; color: var(--ink-muted); background: var(--surface-sunken); border-radius: 999px; padding: 2px 9px; }

/* ---- product tiles (made by store.js; restyled here only) --------------------------------- */
.tile { border-radius: 16px; border-color: var(--border); box-shadow: var(--shadow-sm); transition: transform .22s var(--ease), box-shadow .22s, border-color .22s; }
.tile:hover, .tile:focus-within { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(23, 21, 15, .13); border-color: var(--gold); }
.tile .pic { background: radial-gradient(circle at 50% 42%, #FFFFFF 0%, #F3F0E8 78%); height: 160px; }
.tile .pic > img:not(.brandlogo) { transition: transform .35s var(--ease); }
.tile:hover .pic > img:not(.brandlogo) { transform: scale(1.06); }
.tile .pic .brandlogo { border-radius: 8px; }
.tile .body { padding: 11px 13px 13px; }
.tile .code { font-size: 17.5px; font-weight: 800; }
.tile .code:hover { color: var(--gold-deep); }
.tile .desc { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile .row .stock { display: inline-flex; align-items: center; gap: 6px; font-weight: 750; font-size: 12.5px; }
.tile .row .stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); flex: none; }
.tile .brandname { font-weight: 650; }
.tile .buy .add { font-weight: 800; border-radius: 10px; }
.tile .qty { border-radius: 10px; }
.fav { transition: transform .15s, color .15s; }
.fav:hover { transform: scale(1.12); color: #C2185B; }
.again { transition: background .15s; border-radius: 10px; }

/* ---- product card + dialogs ------------------------------------------------------------- */
.dialog { border-radius: 18px; box-shadow: var(--shadow-lg); }
.pcard-face { border-radius: 18px; }

/* ---- footer --------------------------------------------------------------------------- */
.footer { font-weight: 650; letter-spacing: .02em; }

/* ===== login: full-screen, dark and gold ===== */
body.atlogin { background: #0D0B07; }
body.atlogin .footer { color: #7D7663; }
#loginbox.login { position: relative; isolation: isolate; overflow: hidden; flex: 1 0 auto; width: 100%; max-width: none; margin: 0; padding: 48px 28px; border: 0; border-radius: 0; box-shadow: none; display: flex; align-items: center; justify-content: center; color: #fff;
    background: radial-gradient(120% 90% at 10% 0%, #2C2416 0%, rgba(44, 36, 22, 0) 55%), radial-gradient(90% 80% at 100% 100%, #2A2113 0%, rgba(42, 33, 19, 0) 60%), linear-gradient(160deg, #15120C 0%, #0D0B07 100%); }
.lg-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.lg-pattern { position: absolute; inset: 0; background: url(/art/parts-pattern.svg) 0 0 / 520px auto repeat; opacity: .085; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 50%, #000 20%, transparent 85%); mask-image: radial-gradient(ellipse 70% 80% at 30% 50%, #000 20%, transparent 85%); }
.lg-glow { position: absolute; border-radius: 50%; filter: blur(40px); }
.lg-glow.g1 { width: 620px; height: 620px; left: -180px; top: -220px; background: radial-gradient(circle, rgba(214, 176, 96, .42) 0%, rgba(214, 176, 96, 0) 65%); }
.lg-glow.g2 { width: 720px; height: 720px; right: -260px; bottom: -300px; background: radial-gradient(circle, rgba(170, 120, 40, .4) 0%, rgba(170, 120, 40, 0) 65%); }
.lg-streak { position: absolute; left: -20%; width: 70%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(232, 200, 128, 0), rgba(240, 210, 140, .95), rgba(232, 200, 128, 0)); box-shadow: 0 0 12px rgba(232, 200, 128, .6); opacity: .35; transform: rotate(-16deg); }
.lg-streak.s1 { top: 26%; }
.lg-streak.s2 { top: 58%; width: 50%; left: 30%; opacity: .25; }
.lg-streak.s3 { top: 88%; width: 60%; left: 10%; opacity: .2; }

.lg-wrap { width: min(1160px, 100%); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, 420px); gap: 64px; align-items: center; }
.lg-logo { display: block; width: 168px; height: auto; margin: -24px 0 -8px -22px; mix-blend-mode: screen; }
.lg-kicker { margin: 0 0 12px; color: var(--gold); text-transform: uppercase; letter-spacing: .2em; font-size: 12.5px; font-weight: 850; }
#loginbox .lg-hl { margin: 0 0 30px; text-align: left; font-family: var(--font-display); font-size: clamp(34px, 4.8vw, 60px); line-height: 1.03; letter-spacing: -.03em; font-weight: 800; color: #FFFFFF; }
.lg-hl em { font-style: normal; color: var(--gold); background: linear-gradient(90deg, #F6DB98 0%, #CEA95C 50%, #EBC87C 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lg-points { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 16px; }
.lg-points li { display: flex; gap: 14px; align-items: flex-start; }
.lg-ic { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(206, 169, 92, .12); border: 1px solid rgba(206, 169, 92, .35); box-shadow: 0 0 22px rgba(206, 169, 92, .12); }
.lg-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lg-points b { display: block; font-family: var(--font-display); font-size: 16.5px; font-weight: 750; color: #FFFFFF; }
.lg-points li span:not(.lg-ic) { color: #BDB49C; font-size: 14.5px; }
.lg-ranges { display: flex; flex-wrap: wrap; gap: 8px; }
.lg-ranges img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(206, 169, 92, .5); box-shadow: 0 6px 16px rgba(0, 0, 0, .5); transition: transform .25s var(--ease); }
.lg-ranges img:hover { transform: translateY(-4px) scale(1.06); }

.lg-card { position: relative; padding: 36px 32px 26px; border-radius: 24px; color: #fff; background: linear-gradient(160deg, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, .04) 100%); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); box-shadow: 0 34px 70px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .14); }
.lg-card::before { content: ''; position: absolute; left: 28px; right: 28px; top: -1px; height: 2px; background: linear-gradient(90deg, rgba(206, 169, 92, 0), var(--gold), rgba(206, 169, 92, 0)); }
.lg-card h2 { margin: 0 0 4px; font-size: 27px; font-weight: 800; color: #fff; }
.lg-sub { margin: 0 0 24px; color: #C8BFA6; }
#loginbox .lg-card .field { margin-bottom: 14px; }
.lg-card .field label { color: #D9D0B6; font-size: 11.5px; letter-spacing: .09em; margin-bottom: 5px; display: block; }
.lg-card .field input { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .2); color: #fff; padding: 13px 15px; border-radius: 12px; font-size: 16px; transition: border-color .15s, box-shadow .15s, background .15s; }
.lg-card .field input:focus { outline: none; border-color: var(--gold); background: rgba(255, 255, 255, .11); box-shadow: 0 0 0 4px rgba(206, 169, 92, .22); }
.lg-card .field input:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 1000px #2A2518 inset; caret-color: #fff; }
#loginbox .lg-card button.primary { width: 100%; margin-top: 6px; padding: 14px; font-size: 16.5px; border-radius: 12px; }
.lg-forgot { text-align: center; margin: 16px 0 0; }
.lg-forgot a { color: var(--gold); font-weight: 700; }
.lg-new { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); color: #A69E87; font-size: 13px; text-align: center; }
#loginmsg .message.error { background: rgba(179, 38, 30, .2); color: #FFB8B0; border-color: rgba(255, 120, 110, .45); }

@media (max-width: 880px) {
    #loginbox.login { padding: 26px 16px 34px; align-items: flex-start; }
    .lg-wrap { display: flex; flex-direction: column; gap: 0; max-width: 480px; }
    .lg-pitch { display: contents; }
    .lg-logo { order: 1; width: 120px; margin: -14px auto -6px; }
    .lg-kicker { order: 2; text-align: center; font-size: 11px; }
    #loginbox .lg-hl { order: 3; text-align: center; font-size: 34px; margin-bottom: 22px; }
    .lg-card { order: 4; padding: 26px 20px 20px; border-radius: 20px; margin-bottom: 28px; }
    .lg-points { order: 5; margin-bottom: 22px; }
    .lg-ranges { order: 6; justify-content: center; }
    .lg-ranges img { width: 50px; height: 50px; }
    .lg-glow.g1 { width: 420px; height: 420px; }
}

/* ===== phone bottom bar + account sheet ===== */
.bnav { display: none; }
.sheetbg { position: fixed; inset: 0; z-index: 64; background: rgba(12, 11, 8, .55); }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; margin: 0 auto; width: min(100%, 480px); z-index: 66; max-height: 86vh; overflow: auto; background: var(--surface); border-radius: 22px 22px 0 0; padding: 14px 10px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -14px 40px rgba(0, 0, 0, .35); }
.sheet::before { content: ''; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--border); margin: 0 auto 8px; }
.sheet-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 6px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.sheet-hd b { display: block; font-family: var(--font-display); font-size: 18px; }
.sheet-hd span { color: var(--ink-muted); font-size: 13px; }
.sheet > a, .sheet > button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 12px; text-align: left; text-decoration: none; color: var(--ink); font-size: 16px; font-weight: 700; cursor: pointer; }
.sheet > a:hover, .sheet > button:hover { background: var(--gold-soft); }
.sheet > a > span, .sheet > button > span { width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--gold-soft); display: grid; place-items: center; font-size: 17px; color: #C2185B; }

@media (max-width: 720px) {
    body.has-bnav .bnav:not([hidden]) { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 6px 2px calc(6px + env(safe-area-inset-bottom)); background: rgba(22, 20, 14, .97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid rgba(206, 169, 92, .28); box-shadow: 0 -8px 22px rgba(0, 0, 0, .25); }
    .bnav a, .bnav button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 50px; padding: 2px 0; background: none; border: 0; color: #B9B19A; text-decoration: none; font: inherit; font-size: 11px; font-weight: 750; cursor: pointer; -webkit-tap-highlight-color: transparent; }
    .bnav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
    .bnav .on { color: var(--gold); }
    .bnav .on::before { content: ''; position: absolute; top: -6px; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }
    .bnav .bn-ic { position: relative; display: block; height: 24px; }
    .bnav .bn-ic .n { position: absolute; top: -7px; right: -13px; font-size: 10px; min-width: 18px; height: 18px; line-height: 18px; box-shadow: 0 0 0 2px #16140E; }
    body.has-bnav .tabs { display: none; }
    body.has-bnav .page { padding-bottom: calc(var(--bnav-h) + 34px); }
    body.has-bnav .footer { padding-bottom: calc(var(--bnav-h) + 18px + env(safe-area-inset-bottom)); }
    body.has-bnav .qrail { bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom)); }
    body.has-bnav #toasts { bottom: calc(var(--bnav-h) + 20px + env(safe-area-inset-bottom)); }

    .top .walink { margin-left: auto; }
    .top .walink[hidden] + .basketlink { margin-left: auto; }
    .top .basketlink[hidden] + .menuwrap { margin-left: auto; }
    .searchbar input { height: 44px; }
    .searchbar .sbtn { height: 36px; width: 46px; }
    .pagehd, .lk-welcome .pagehd { font-size: 23px; }
    .lk-welcome .quick { display: none; }
    .lk-kpis .kpi { grid-template-columns: 38px 1fr; padding: 11px 12px; column-gap: 10px; }
    .lk-kpis .kpi i { width: 38px; height: 38px; font-size: 17px; border-radius: 11px; }
    .lk-kpis .kpi b { font-size: 22px; }
    .lk-kpis .kpi span { font-size: 12px; }
    .lk-sec { margin: 20px 0 16px; }
    .lk-sechd h2 { font-size: 19px; }
    .cattiles { grid-template-columns: repeat(3, 1fr); gap: 9px; }
    .cattile { padding: 14px 6px 12px; border-radius: 16px; }
    .cattile .catcirc { width: 66px; height: 66px; margin-bottom: 7px; }
    .cattile b { font-size: 13px; }
    .cattile span { font-size: 11.5px; }
    .range { flex: 0 0 108px; padding: 12px 8px; }
    .range img { width: 72px; height: 72px; }
    .lk-hero { min-height: 0; padding: 22px 20px; border-radius: 18px; gap: 10px; }
    .lk-hero-badges img { width: 66px; height: 66px; margin-left: -18px; }
    .lk-hero-badges img:nth-child(n+3) { display: none; }
    .lk-hero-sub { font-size: 13.5px; }
    .lk-hero-cta { margin-top: 14px; padding: 9px 16px; font-size: 14px; }
    .catlist { grid-template-columns: 1fr; gap: 9px; }
    .cathd { padding: 10px 14px 10px 10px; gap: 13px; }
    .cathd .catcirc { width: 58px; height: 58px; }
    .tile .pic { height: 130px; }
    .tile .code { font-size: 15.5px; }
}
@media (max-width: 420px) {
    .lk-hero-badges { display: none; }
}

/* ===== motion: gentle, and switched off for people who ask for less ===== */
@media (prefers-reduced-motion: no-preference) {
    .lk-welcome, #specials, .lk-kpis, .lk-sec, .cols, .lk-pagehd, .catrow { animation: lk-rise .5s var(--ease) both; }
    #specials { animation-delay: .05s; } .lk-kpis { animation-delay: .1s; } .lk-sec { animation-delay: .15s; } .lk-sec + .lk-sec { animation-delay: .2s; } .cols { animation-delay: .25s; }
    .cattile { animation: lk-pop .45s var(--ease) both; }
    .cattile:nth-child(2) { animation-delay: .04s; } .cattile:nth-child(3) { animation-delay: .08s; } .cattile:nth-child(4) { animation-delay: .12s; } .cattile:nth-child(5) { animation-delay: .16s; } .cattile:nth-child(6) { animation-delay: .2s; }
    .cattile:nth-child(7) { animation-delay: .24s; } .cattile:nth-child(8) { animation-delay: .28s; } .cattile:nth-child(9) { animation-delay: .32s; } .cattile:nth-child(10) { animation-delay: .36s; } .cattile:nth-child(n+11) { animation-delay: .4s; }
    .catrow:nth-child(2) { animation-delay: .03s; } .catrow:nth-child(3) { animation-delay: .06s; } .catrow:nth-child(4) { animation-delay: .09s; } .catrow:nth-child(5) { animation-delay: .12s; } .catrow:nth-child(n+6) { animation-delay: .15s; }
    .catrow.open .catsubs { animation: lk-fade .25s var(--ease) both; }
    .lk-hero-art { animation: lk-drift 70s linear infinite; }
    .lk-hero::after { animation: lk-sheen 7s ease-in-out 1s infinite; }
    .lg-pattern { animation: lk-drift-lg 120s linear infinite; }
    .lg-glow.g1 { animation: lk-float 14s ease-in-out infinite alternate; }
    .lg-glow.g2 { animation: lk-float 18s ease-in-out infinite alternate-reverse; }
    .lg-streak { animation: lk-streak 9s ease-in-out infinite; }
    .lg-streak.s2 { animation-delay: 3s; } .lg-streak.s3 { animation-delay: 6s; }
    .lg-wrap { animation: lk-rise .7s var(--ease) both; }
    .lg-card { animation: lk-rise .7s var(--ease) .12s both; }
    .sheet:not([hidden]) { animation: lk-up .25s var(--ease) both; }
    .sheetbg:not([hidden]) { animation: lk-fade .2s both; }
}
@keyframes lk-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes lk-pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes lk-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lk-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes lk-drift { to { background-position: 420px 315px; } }
@keyframes lk-drift-lg { to { background-position: 520px 390px; } }
@keyframes lk-float { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.12); } }
@keyframes lk-sheen { 0% { left: -40%; } 45%, 100% { left: 130%; } }
@keyframes lk-streak { 0% { transform: translateX(-60%) rotate(-16deg); opacity: 0; } 20% { opacity: .55; } 70% { opacity: .3; } 100% { transform: translateX(80%) rotate(-16deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .tile:hover, .tile:focus-within, .cattile:hover, .range:hover, .kpi:hover { transform: none; }
    .tile:hover .pic > img:not(.brandlogo), .cattile:hover .catcirc, .range:hover img, .cathd:hover .catcirc { transform: none; }
}

/* WhatsApp: a fixed icon in the top bar beside the basket */
.walink { display: flex; align-items: center; gap: 7px; flex: none; color: #fff; text-decoration: none; font-weight: 700; font-size: 14px;
    border: 1px solid rgba(37, 211, 102, .55); background: rgba(37, 211, 102, .12); border-radius: 999px; padding: 7px 14px 7px 8px; transition: background .15s, border-color .15s; }
.walink svg { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: #25D366; flex: none; }
.walink:hover { background: rgba(37, 211, 102, .25); border-color: #25D366; }
@media (max-width: 1100px) { .walink .lbl { display: none; } .walink { padding: 6px; } }
