:root {
    --ivory: #fbf7f0;
    --sand: #f1e8da;
    --ink: #14231f;
    --ink-soft: #3d4f49;
    --teal: #0f4c46;
    --teal-soft: #1c6b62;
    --coral: #d9543a;
    --sun: #f2b33d;
    --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--ivory);
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.55;
}

h1, h2, h3 {
    font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 .6rem;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--teal); }

img { max-width: 100%; display: block; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3rem 0; }
.muted { color: var(--ink-soft); }
.small { font-size: .85rem; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
    position: absolute; left: 1rem; top: -100px; z-index: 50;
    background: var(--ink); color: var(--ivory);
    padding: .75rem 1.25rem; border-radius: 999px; font-weight: 600;
}
.skip:focus { top: 1rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(251, 247, 240, .96); border-bottom: 1px solid rgba(20, 35, 31, .1); backdrop-filter: blur(8px); }
.header-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: .75rem 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-family: Georgia, serif; font-size: 1.5rem; font-weight: 600; }
.brand img { display: block; width: auto; height: 34px; }
.brand i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--coral); display: inline-block; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.nav-link { display: inline-block; padding: .5rem .75rem; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.nav-link:hover { background: var(--sand); color: var(--teal); }
.nav-accent { color: var(--teal); background: rgba(15, 76, 70, .1); }

.menu { position: static; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.mega {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%); z-index: 40; margin-top: .5rem;
    width: min(952px, calc(100vw - 2rem)); max-height: none; overflow: visible;
    background: #fff; border: 1px solid rgba(20, 35, 31, .05);
    border-radius: var(--radius); padding: 1.5rem;
    box-shadow: 0 20px 48px -20px rgba(17, 17, 17, .28);
}
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .15rem 2rem; }
.mega a { display: block; padding: .45rem .6rem; border-radius: 10px; font-size: .95rem; font-weight: 500; color: var(--ink-soft); }
.mega a:hover { background: var(--sand); color: var(--teal); }
.mega-divider { height: 1px; background: rgba(20, 35, 31, .1); margin: .9rem 0 .6rem; }
.mega-all { display: block; padding: .5rem .6rem; font-size: .9rem; font-weight: 700; color: var(--teal); }
.mega-all:hover { background: var(--sand); color: var(--teal); }

.header-actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.locale { height: 2.25rem; border: 1px solid rgba(20, 35, 31, .15); border-radius: 999px; padding: 0 .75rem; background: #fff; font-weight: 600; color: var(--ink-soft); }
.cart-link { display: inline-flex; align-items: center; gap: .5rem; background: var(--ink); color: var(--ivory); padding: .5rem 1rem; border-radius: 999px; font-size: .9rem; font-weight: 600; }
.cart-link:hover { background: var(--teal); color: var(--ivory); }
.cart-count { background: rgba(251, 247, 240, .2); border-radius: 999px; padding: 0 .45rem; font-size: .8rem; }

/* Cart dropdown */
.cart-menu { position: relative; }
.cart-menu summary.cart-link { cursor: pointer; }
.add-to-cart .cart-status { margin: .45rem 0 0; min-height: 1.05em; }
body.theme-star-wars .add-to-cart .cart-status { color: #ffe81f; }
.cart-panel {
    position: absolute; top: 100%; right: 0; z-index: 40; margin-top: .5rem;
    width: min(400px, calc(100vw - 2rem));
    background: #fff; border: 1px solid rgba(20, 35, 31, .05);
    border-radius: 16px; box-shadow: 0 20px 48px -20px rgba(17, 17, 17, .28);
    padding: .6rem;
}
.cart-panel-items { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.cart-panel-items li {
    display: grid; grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: .6rem; align-items: center; padding: .4rem; border-radius: 10px;
}
.cart-panel-items li:hover { background: var(--sand); }
.cart-panel-media {
    width: 42px; height: 42px; border-radius: 8px; overflow: hidden;
    background: var(--sand); display: block;
}
.cart-panel-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-panel-body { min-width: 0; }
.cart-panel-name {
    display: block; font-size: .85rem; font-weight: 600; line-height: 1.25; color: var(--ink);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cart-panel-name:hover { color: var(--teal); }
.cart-panel-meta { margin: .15rem 0 0; font-size: .78rem; color: var(--ink-soft); }
.cart-panel-total { font-size: .82rem; font-weight: 700; white-space: nowrap; }
.cart-panel-more {
    margin: .45rem .4rem 0; padding-top: .6rem;
    border-top: 1px solid rgba(20, 35, 31, .1);
    font-size: .82rem; font-weight: 700; color: var(--teal);
}
.cart-panel-empty { margin: .5rem .4rem; font-size: .88rem; color: var(--ink-soft); }
.cart-panel-actions {
    display: flex; gap: .4rem; margin-top: .5rem; padding-top: .6rem;
    border-top: 1px solid rgba(20, 35, 31, .1);
}
.cart-panel-actions a {
    flex: 1; text-align: center; padding: .5rem .6rem; border-radius: 999px;
    font-size: .82rem; font-weight: 700;
}
.cart-panel-primary { background: var(--ink); color: var(--ivory); }
.cart-panel-primary:hover { background: var(--teal); }
.cart-panel-secondary { background: var(--sand); color: var(--ink); }
.cart-panel-secondary:hover { background: rgba(20, 35, 31, .09); }

/* Language button + modal (Airbnb-style) */
.lang-button {
    display: inline-flex; align-items: center; gap: .4rem;
    height: 2.25rem; padding: 0 .8rem;
    background: #fff; border: 1px solid rgba(20, 35, 31, .15);
    border-radius: 999px; font: inherit; font-size: .88rem; font-weight: 600; color: var(--ink-soft);
    cursor: pointer;
}
.lang-button:hover { background: var(--sand); color: var(--teal); }

.modal-backdrop {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(20, 35, 31, .45);
    display: grid; place-items: center;
    padding: 1.25rem;
}
.modal-backdrop[hidden] { display: none; }
.modal {
    width: min(440px, 100%); max-height: min(80vh, 640px);
    background: #fff; border-radius: 24px;
    box-shadow: 0 24px 64px -24px rgba(17, 17, 17, .45);
    display: flex; flex-direction: column; overflow: hidden;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.25rem; border-bottom: 1px solid rgba(20, 35, 31, .08); }
.modal-head h2 { margin: 0; font-size: 1.1rem; }
.modal-close {
    width: 2.2rem; height: 2.2rem; border-radius: 999px; border: 0;
    background: rgba(20, 35, 31, .06); font-size: 1rem; cursor: pointer; color: var(--ink);
}
.modal-close:hover { background: var(--sand); }
.lang-list { list-style: none; margin: 0; padding: .5rem; overflow: auto; }
.lang-list a {
    display: flex; align-items: center; justify-content: space-between;
    padding: .8rem .9rem; border-radius: 12px; font-size: 1rem; color: var(--ink);
}
.lang-list a:hover { background: var(--sand); }
.lang-list a.is-current { background: rgba(15, 76, 70, .1); color: var(--teal); font-weight: 700; }

/* Buttons and chips */
.btn {
    display: inline-block; border: 0; cursor: pointer;
    background: var(--teal); color: var(--ivory);
    padding: .7rem 1.4rem; border-radius: 999px;
    font-size: .95rem; font-weight: 600; text-align: center;
}
.btn:hover { background: var(--teal-soft); color: var(--ivory); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid rgba(20, 35, 31, .15); }
.btn-ghost:hover { background: var(--sand); color: var(--teal); }
.btn-small { padding: .45rem .9rem; font-size: .85rem; }
.btn-block { display: block; width: 100%; }

.chips { list-style: none; padding: 0; margin: .75rem 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
    display: inline-flex; align-items: center; gap: .35rem;
    background: #fff; border: 1px solid rgba(20, 35, 31, .1);
    border-radius: 999px; padding: .35rem .8rem; font-size: .85rem; color: var(--ink-soft);
}
.chip small { color: rgba(61, 79, 73, .6); }
.chip:hover { border-color: rgba(15, 76, 70, .4); color: var(--teal); }
.chip-soft { background: rgba(241, 232, 218, .7); border-color: transparent; }
.chip-active { background: rgba(15, 76, 70, .1); color: var(--teal); font-weight: 600; border-color: transparent; }

/* Hero and bands */
.hero { padding: 4rem 1.25rem 3rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 700; color: var(--teal-soft); margin: 0 0 .5rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 22ch; }
.lead { color: var(--ink-soft); font-size: 1.05rem; max-width: 60ch; }
.hero-actions { display: flex; gap: .6rem; margin-top: 1.5rem; flex-wrap: wrap; }
.band { background: rgba(241, 232, 218, .4); border-block: 1px solid rgba(20, 35, 31, .08); padding: 2.5rem 0; }
.band h2 { font-size: 1.4rem; }

/* Home hero (Toy Finder) */
.hero2-section { padding: 1.75rem 1.25rem 0; }
.hero2 {
    background: linear-gradient(135deg, #f8f1e6 0%, var(--sand) 100%);
    border: 1px solid rgba(20, 35, 31, .06);
    border-radius: 18px;
    padding: clamp(1.5rem, 3.6vw, 3.4rem);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: clamp(1.5rem, 3.5vw, 3.5rem);
    align-items: center;
}
.hero2-eyebrow {
    margin: 0 0 1.15rem; font-size: .72rem; font-weight: 700;
    letter-spacing: .17em; text-transform: uppercase; color: var(--teal);
}
.hero2-title {
    font-family: "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(2.15rem, 4vw, 3.3rem);
    line-height: 1.03; letter-spacing: -.035em; font-weight: 800;
    margin: 0 0 1.4rem; max-width: 100%; color: var(--ink);
    text-wrap: balance;
}
.hero2-lead {
    margin: 0 0 1.9rem; max-width: 46ch;
    color: var(--ink-soft); font-size: clamp(.95rem, 1.35vw, 1.06rem); line-height: 1.65;
}
.hero2-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero2-btn {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .95rem 1.35rem; border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 700; font-size: .95rem; line-height: 1;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.hero2-btn-dark { background: var(--teal); color: var(--ivory); }
.hero2-btn-dark:hover, .hero2-btn-dark:focus-visible { background: var(--teal-soft); color: var(--ivory); }
.hero2-btn-light { background: #fffdf9; color: var(--teal); border-color: rgba(15, 76, 70, .28); }
.hero2-btn-light:hover, .hero2-btn-light:focus-visible { background: rgba(15, 76, 70, .07); color: var(--teal); border-color: rgba(15, 76, 70, .45); }
.hero2-btn span { font-size: 1.05em; line-height: 1; }
.hero2-card {
    background: #fffdf9; border-radius: 14px;
    border: 1px solid rgba(20, 35, 31, .07);
    padding: clamp(1.1rem, 2.2vw, 1.55rem);
    box-shadow: 0 2px 10px rgba(20, 35, 31, .05);
}
.hero2-card-photo {
    aspect-ratio: 1 / 1;
    padding: 0;
    background-color: #f7e3d5;
    background-image: url('/assets/hero-passions.jpg');
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(20, 35, 31, .06);
}
.hero2-card-eyebrow {
    margin: 0 0 1rem; font-size: .68rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: var(--teal-soft);
}
.hero2-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.hero2-tile {
    position: relative; min-height: 108px;
    background: rgba(15, 76, 70, .07); border-radius: 10px;
    padding: .7rem .85rem .85rem;
    display: flex; align-items: flex-end;
}
.hero2-tile:nth-child(2) { background: rgba(217, 84, 58, .1); }
.hero2-tile:nth-child(3) { background: rgba(242, 179, 61, .18); }
.hero2-tile:nth-child(4) { background: rgba(28, 107, 98, .1); }
.hero2-num {
    position: absolute; top: .6rem; right: .8rem;
    font-size: .74rem; font-weight: 600; letter-spacing: .02em; color: rgba(15, 76, 70, .55);
}
.hero2-tile:nth-child(2) .hero2-num { color: rgba(184, 67, 45, .6); }
.hero2-tile:nth-child(3) .hero2-num { color: rgba(150, 107, 20, .65); }
.hero2-tile:nth-child(4) .hero2-num { color: rgba(28, 107, 98, .6); }
.hero2-word {
    font-family: "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(1.05rem, 1.7vw, 1.3rem); font-weight: 800;
    letter-spacing: -.01em; text-transform: uppercase; color: var(--ink);
}
.hero2-card-link {
    display: flex; align-items: center; gap: .4rem;
    margin-top: 1.15rem; padding-top: 1.05rem;
    border-top: 1px solid rgba(20, 35, 31, .1);
    font-weight: 600; font-size: .88rem; color: var(--teal);
}
.hero2-card-link:hover, .hero2-card-link:focus-visible { color: var(--teal-soft); }
.hero2-trust {
    list-style: none; margin: 0; padding: 1.5rem .15rem;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
    border-bottom: 1px solid rgba(20, 35, 31, .1);
}
.hero2-trust li, .hero2-trust a { display: flex; align-items: center; gap: .8rem; }
.hero2-trust li { font-size: .9rem; color: var(--ink-soft); }
.hero2-trust a:hover, .hero2-trust a:focus-visible { color: var(--teal); }
.hero2-icon {
    width: 42px; height: 42px; flex: 0 0 auto;
    border-radius: 10px; background: rgba(15, 76, 70, .08);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
}
.hero2-trust li:nth-child(2) .hero2-icon { background: rgba(217, 84, 58, .12); }
.hero2-trust li:nth-child(3) .hero2-icon { background: rgba(242, 179, 61, .22); }
@media (max-width: 900px) {
    .hero2 { grid-template-columns: 1fr; }
    .hero2-title { max-width: 18ch; }
    .hero2-trust { grid-template-columns: 1fr; gap: .75rem; padding: 1.25rem .15rem; }
}
@media (max-width: 600px) {
    .hero2-section { padding-top: 1.1rem; }
    .hero2 { padding: 1.25rem; border-radius: 14px; }
    .hero2-actions .hero2-btn { flex: 1 1 100%; justify-content: center; }
    .hero2-tile { min-height: 92px; }
    .hero2-card { border-radius: 12px; }
}

/* Age band */
.age-band-section { padding: 2.25rem 1.25rem 0; }
.age-band {
    background: linear-gradient(135deg, #f8f1e6 0%, var(--sand) 100%);
    border: 1px solid rgba(20, 35, 31, .06);
    color: var(--ink);
    border-radius: 18px;
    padding: clamp(1.6rem, 3vw, 2.6rem);
}
.age-band-eyebrow {
    margin: 0 0 .6rem; font-size: .72rem; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase; color: var(--teal);
}
.age-band-title {
    font-family: "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.55rem); font-weight: 800;
    line-height: 1.1; letter-spacing: -.02em; color: var(--ink);
    margin: 0 0 1.6rem;
}
.age-band-grid {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem;
}
.age-band-tile {
    height: 100%;
    background: #fffdf9; border: 1px solid rgba(20, 35, 31, .14); border-radius: 8px;
    padding: 1.1rem .8rem; text-align: center;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .3rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.age-band-tile:hover, .age-band-tile:focus-visible {
    border-color: var(--teal);
    box-shadow: 0 6px 14px rgba(20, 35, 31, .08);
}
.age-band-tile strong { font-size: 1.05rem; color: var(--ink); }
.age-band-tile span { font-size: .8rem; color: var(--ink-soft); }
@media (max-width: 900px) {
    .age-band-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .age-band-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .age-band-tile { padding: .9rem .6rem; }
    .age-band-title { font-size: 1.7rem; }
}

/* Home sections: passions and brands */
.home-sec { padding: 3rem 1.25rem 0; }
.home-sec-brands { padding-top: 2.75rem; }
.sec-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 2rem; margin-bottom: 1.4rem;
}
.sec-eyebrow {
    margin: 0 0 .45rem; font-size: .72rem; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase; color: var(--teal-soft);
}
.sec-title {
    font-family: "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.15rem); font-weight: 800;
    letter-spacing: -.02em; margin: 0; color: var(--ink);
}
.sec-lead { margin: 0; color: var(--ink-soft); font-size: .95rem; max-width: 42ch; text-align: right; }
.sec-link {
    display: inline-flex; align-items: center; gap: .45rem;
    font-weight: 700; font-size: .95rem; color: var(--ink);
    text-decoration: underline; text-underline-offset: 4px;
}
.sec-link:hover, .sec-link:focus-visible { color: var(--teal); }
.passion-grid {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem;
}
.passion-grid > li { display: flex; }
.passion-card {
    position: relative; display: flex; flex-direction: column; flex: 1 1 auto;
    min-height: 185px; padding: 1.15rem 1.15rem 4.2rem;
    border-radius: 12px; overflow: hidden;
    background: rgba(15, 76, 70, .08);
}
.passion-card:hover .passion-arrow, .passion-card:focus-within .passion-arrow {
    background: var(--teal); color: var(--ivory); border-color: var(--teal);
}
.passion-create { background: rgba(217, 84, 58, .09); }
.passion-nature { background: rgba(28, 107, 98, .1); }
.passion-fantasy { background: rgba(242, 179, 61, .18); }
.passion-tech { background: rgba(15, 76, 70, .1); }
.passion-learn { background: rgba(28, 107, 98, .08); }
.passion-social { background: rgba(217, 84, 58, .07); }
.passion-move { background: rgba(242, 179, 61, .14); }
.passion-name {
    font-family: "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
    font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; color: var(--ink);
}
.passion-cats {
    list-style: none; margin: .55rem 0 0; padding: 0;
    display: grid; grid-template-columns: 1fr; gap: .15rem;
    font-size: .78rem; line-height: 1.35;
}
.passion-cats a { display: block; padding: .32rem 0; color: var(--ink-soft); }
.passion-cats a:hover, .passion-cats a:focus-visible { color: var(--teal); text-decoration: underline; }
.passion-num {
    position: absolute; right: .9rem; bottom: -.1rem;
    font-family: "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
    font-size: 4rem; line-height: 1; font-weight: 800;
    letter-spacing: -.05em; color: rgba(20, 35, 31, .55);
    pointer-events: none;
}
.passion-arrow {
    position: absolute; left: 1.15rem; bottom: 1.05rem;
    width: 34px; height: 34px; border-radius: 8px;
    background: #fffdf9; border: 1px solid rgba(20, 35, 31, .14);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1rem; color: var(--ink);
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.brand-strip {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-wrap: nowrap; align-items: center;
    justify-content: space-between; gap: 1.2rem;
}
.brand-strip li { flex: 1 1 0; min-width: 0; display: flex; justify-content: center; }
.brand-tile {
    width: 100%; max-width: 120px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    padding: 0; background: none; border: 0; border-radius: 0;
}
.brand-tile img {
    width: 100%; max-width: 110px; height: 36px;
    object-fit: contain; opacity: .9;
    transition: opacity .15s ease;
}
.brand-tile:hover img, .brand-tile:focus-visible img { opacity: 1; }
@media (max-width: 900px) {
    .passion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sec-head { flex-direction: column; align-items: flex-start; gap: .6rem; }
    .sec-lead { text-align: left; max-width: none; }
    .brand-strip li:nth-child(n+7) { display: none; }
}
@media (max-width: 600px) {
    .home-sec { padding-top: 2.25rem; }
    .passion-grid { gap: .6rem; }
    .passion-card { min-height: 160px; padding: .9rem .9rem 3.8rem; }
    .passion-cats { grid-template-columns: 1fr; gap: .1rem; font-size: .74rem; }
    .passion-num { font-size: 3.4rem; }
    .passion-arrow { left: .9rem; bottom: .9rem; }
    .brand-strip { gap: .8rem; }
    .brand-strip li:nth-child(n+5) { display: none; }
    .brand-tile { height: 34px; }
    .brand-tile img { height: 30px; }
}

/* Passion pages */
.passion-page { max-width: 62rem; padding-top: 2rem; padding-bottom: 3rem; }
.crumbs {
    display: flex; flex-wrap: wrap; align-items: center; gap: .35rem;
    margin-bottom: 1.4rem; font-size: .8rem; color: var(--ink-soft);
}
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover, .crumbs a:focus-visible { color: var(--teal); }
.passion-head { margin-bottom: 1.6rem; }
.passion-head h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: .35rem; }
.passion-head .lead { max-width: 60ch; }
.passion-cat-list {
    list-style: none; padding: 0; margin: 0 0 1.8rem;
    border-top: 1px solid rgba(20, 35, 31, .12);
}
.passion-cat-list li { border-bottom: 1px solid rgba(20, 35, 31, .12); }
.passion-cat-list a {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem .4rem;
}
.passion-cat-list a:hover, .passion-cat-list a:focus-visible { background: rgba(15, 76, 70, .05); }
.cat-name { flex: 1; font-weight: 600; color: var(--ink); }
.cat-count { color: var(--ink-soft); font-size: .85rem; white-space: nowrap; }
.cat-arrow { color: var(--teal); font-weight: 700; }
.passion-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.passion-index { display: grid; gap: 1.6rem; }
.passion-index-block h2 { font-size: 1.25rem; margin: 0 0 .35rem; }
.passion-index-block h2 a { display: inline-flex; align-items: baseline; gap: .4rem; }
.passion-index-block h2 a:hover, .passion-index-block h2 a:focus-visible { color: var(--teal); }
.passion-index-block .chips { margin: .4rem 0 0; }
.passion-name { color: var(--ink); }
.passion-name:hover, .passion-name:focus-visible { color: var(--teal); text-decoration: underline; }

/* Product grid */
.grid { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.card { background: #fff; border: 1px solid rgba(20, 35, 31, .1); border-radius: var(--radius); padding: 1rem; display: flex; flex-direction: column; }
.card-media { display: block; aspect-ratio: 1; background: #fff; border-radius: 14px; overflow: hidden; margin-bottom: .75rem; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: .4rem; }
.card-meta { margin: 0; min-height: 1.55em; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-soft); }
.card-age { margin: 0 0 .25rem; min-height: 1.55em; font-size: .7rem; font-weight: 600; letter-spacing: .06em; color: var(--ink-soft); }
.card h3 {
    font-size: 1.05rem; margin: 0 0 .4rem; min-height: 2.3em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    line-clamp: 2; overflow: hidden;
}
.card .price { font-weight: 700; font-size: 1.1rem; margin: 0; }
.price-was { color: var(--coral); font-size: .78em; font-weight: 600; margin-left: .4rem; text-decoration: line-through; white-space: nowrap; }
.card .stock { margin: .2rem 0 0; font-size: .85rem; color: var(--ink-soft); }

/* Listing */
.listing { padding: 2.5rem 1.25rem; }
.search { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .5rem; margin: 1rem 0; }
.search input { height: 2.6rem; border: 1px solid rgba(20, 35, 31, .2); border-radius: 10px; padding: 0 .8rem; width: min(360px, 100%); min-width: 0; }

/* Toy Finder */
.tf-page { padding: 2.5rem 1.25rem 3.5rem; }
.tf-intro { max-width: 720px; margin: 0 auto 2rem; text-align: center; }
.tf-intro h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.02em; line-height: 1.06; margin: .35rem 0 .8rem; }
.tf-intro .lead { margin: 0 auto; max-width: 580px; }
.tf-wizard {
    width: 100%; max-width: none; margin: 0 auto; background: #fff;
    border: 1px solid rgba(20, 35, 31, .1); border-radius: 28px;
    box-shadow: 0 24px 60px -34px rgba(17, 17, 17, .35);
    padding: clamp(1.25rem, 4vw, 2.5rem);
}
.tf-progresshead { display: flex; align-items: center; justify-content: space-between; gap: .75rem; color: var(--ink-soft); font-size: .8rem; font-weight: 700; }
.tf-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: .8rem 0 1.7rem; }
.tf-progress span { height: 6px; border-radius: 99px; background: #ece8e1; }
.tf-progress span.active { background: var(--teal); }
.tf-wizard h2 { font-size: clamp(1.55rem, 3.6vw, 2.15rem); margin: 0 0 .5rem; }
.tf-sub { color: var(--ink-soft); font-size: .95rem; margin: 0 0 1.4rem; }
.tf-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.tf-genders { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tf-choice {
    min-height: 78px; padding: .8rem .6rem; border: 2px solid transparent; border-radius: 16px;
    background: #faf9f7; color: var(--ink); font: inherit; font-weight: 700; text-align: center;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
    cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.tf-choice:hover { background: var(--sand); transform: translateY(-1px); }
.tf-choice[aria-pressed="true"] { border-color: var(--teal); background: rgba(15, 76, 70, .08); }
.tf-choice-small { min-height: 62px; }
.tf-age-groups { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.tf-age-group { border: 1px solid rgba(20, 35, 31, .1); border-radius: 18px; padding: 1rem; background: #fff; }
.tf-age-group-title { display: flex; align-items: center; gap: .45rem; font-size: 1rem; margin: 0 0 .75rem; }
.tf-age-group .tf-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tf-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.tf-helper { color: var(--ink-soft); font-size: .8rem; flex: 1 1 100%; order: -1; margin: 0 0 .15rem; }
.tf-helper:empty { display: none; }
.tf-foot .btn:last-child { margin-left: auto; }
.tf-results { animation: tf-fade .25s ease both; }
@keyframes tf-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.tf-result-heading { display: flex; align-items: center; gap: .75rem; margin: .5rem 0 1rem; }
.tf-summary { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.5rem; }
.tf-pill { background: var(--sand); border: 0; border-radius: 999px; padding: .5rem .8rem; font-size: .8rem; font-weight: 700; color: var(--ink); cursor: pointer; transition: background .15s ease, color .15s ease; }
.tf-pill:hover { background: var(--teal); color: var(--ivory); }
.tf-sectiontitle { font-size: 1.1rem; margin: 1.5rem 0 .75rem; }
.tf-result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.tf-result-card { border: 1px solid rgba(20, 35, 31, .1); border-radius: 18px; padding: 1rem; background: #fcfbf9; }
.tf-rank { color: var(--coral); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tf-result-card h3 { font-size: 1.05rem; margin: .4rem 0 .35rem; }
.tf-result-card p { margin: 0 0 .6rem; color: var(--ink-soft); font-size: .8rem; }
.tf-link { color: var(--teal); font-weight: 700; font-size: .82rem; text-decoration: underline; text-underline-offset: 3px; }
.tf-catalog-status { background: rgba(241, 232, 218, .55); border-left: 4px solid var(--sun); padding: .8rem 1rem; border-radius: 10px; font-size: .82rem; color: var(--ink-soft); margin: 1.25rem 0; }
.tf-all { border-top: 1px solid rgba(20, 35, 31, .1); margin-top: 1.5rem; padding-top: 1rem; }
.tf-all summary { cursor: pointer; font-weight: 700; }
.tf-group { margin: .8rem 0; }
.tf-group b { display: block; margin-bottom: .2rem; }
.tf-group span { font-size: .82rem; color: var(--ink-soft); }
.tf-group a { color: var(--teal); }
[hidden] { display: none !important; }

@media (max-width: 700px) {
    .tf-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tf-age-groups { grid-template-columns: 1fr; }
    .tf-age-group { padding: .75rem; }
    .tf-age-group-title { font-size: .9rem; margin-bottom: .55rem; }
    .tf-age-group .tf-options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
    .tf-age-group .tf-choice { min-height: 54px; padding: .4rem .2rem; font-size: .72rem; border-radius: 12px; }
    .tf-result-grid { grid-template-columns: 1fr; }
    .tf-genders { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tf-genders .tf-choice { font-size: .78rem; padding: .6rem .2rem; }
    .tf-foot { flex-wrap: wrap; }
    .tf-foot .btn { flex: 1 1 0; min-width: 0; }
    .search { justify-content: stretch; }
    .search input { width: 100%; }
}

/* Catalog facets */
.facet {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem;
    background: #fff; border: 1px solid rgba(20, 35, 31, .1);
    border-radius: 14px; padding: .85rem 1rem; margin: 0 0 1rem;
}
.facet-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.facet-group legend {
    padding: 0; margin-bottom: .4rem;
    font-size: .72rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--teal-soft);
}
.facet-options { display: flex; flex-wrap: wrap; gap: .35rem .95rem; }
.facet-option { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; cursor: pointer; }
.facet-option input { accent-color: var(--teal); }
.facet-option small { font-size: .78rem; color: #5c6863; }
.facet-hint { margin: .45rem 0 0; font-size: .78rem; color: var(--ink-soft); }
.facet-price input {
    height: 2.2rem; width: 7rem; border: 1px solid rgba(20, 35, 31, .2);
    border-radius: 10px; padding: 0 .6rem; font: inherit; font-size: .9rem;
}
.facet-price-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.facet-price-row label { display: grid; gap: .25rem; font-size: .72rem; font-weight: 600; color: var(--ink-soft); }
.facet-price-row input { width: 100%; }
.facet-category select,
.facet-age select {
    height: 2.2rem; min-width: 13rem; max-width: 18rem;
    border: 1px solid rgba(20, 35, 31, .2); border-radius: 10px;
    padding: 0 .6rem; background: #fff; font: inherit; font-size: .9rem;
}
.facet button { margin-left: auto; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; }

/* Taxonomy directory (brands and categories) */
.taxonomy-page { padding: 3rem 1.25rem 3.5rem; }
.taxonomy-head { max-width: 680px; margin: 0 auto 2.5rem; text-align: center; }
.taxonomy-head .eyebrow { margin-bottom: .6rem; }
.taxonomy-head h1 {
    font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
    font-size: clamp(2.1rem, 4.5vw, 3rem); font-weight: 500;
    letter-spacing: -.015em; line-height: 1.1; margin: 0 0 .7rem;
}
.taxonomy-head .lead { margin: 0 auto; font-size: .98rem; }
.taxonomy-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }
.taxonomy-card {
    display: flex; flex-direction: column; justify-content: space-between; gap: 1.8rem;
    height: 100%; min-height: 7.5rem; padding: 1.15rem 1.2rem;
    background: #fff; border: 1px solid rgba(20, 35, 31, .1); border-radius: 14px;
    transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.taxonomy-card:hover {
    background: #fffdf8; border-color: rgba(15, 76, 70, .4);
    transform: translateY(-2px); box-shadow: 0 14px 30px -22px rgba(17, 17, 17, .45);
}
.taxonomy-card.has-logo { gap: .7rem; min-height: 10rem; }
.taxonomy-card-logo {
    display: flex; align-items: center; justify-content: center;
    height: 64px;
}
.taxonomy-card-logo img {
    max-width: 100%; max-height: 64px; width: auto; height: auto;
    object-fit: contain;
}
.taxonomy-card-name {
    font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
    font-size: 1.1rem; font-weight: 500; line-height: 1.3;
    color: var(--ink); overflow-wrap: break-word;
}
.taxonomy-card:hover .taxonomy-card-name { color: var(--teal); }
.taxonomy-card-meta {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    font-size: .68rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase;
    color: #5c6863;
}
.taxonomy-card-arrow { font-size: .95rem; color: var(--teal); opacity: 0; transform: translateX(-4px); transition: opacity .18s ease, transform .18s ease; }
.taxonomy-card:hover .taxonomy-card-arrow, .taxonomy-card:focus-visible .taxonomy-card-arrow { opacity: 1; transform: none; }
.taxonomy-grid li { display: flex; flex-direction: column; }
.taxonomy-card-site {
    align-self: flex-start; margin: .35rem 0 0 .6rem;
    font-size: .72rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--teal);
}
.taxonomy-card-site:hover { text-decoration: underline; }
.taxonomy-card-site.is-unverified { color: #8a5a2b; font-weight: 600; }

/* Brand profile on the brand listing page */
.brand-profile {
    background: #fff; border: 1px solid rgba(20,35,31,.1); border-radius: var(--radius);
    padding: 1.15rem 1.35rem; margin: 1.5rem 0 0;
}
.brand-profile-head { display: flex; align-items: center; gap: 1rem; }
.brand-profile-logo { width: 92px; height: 64px; object-fit: contain; flex: 0 0 auto; }
.brand-profile h2 { margin: .1rem 0; font-size: 1.5rem; }
.brand-profile-data {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: .7rem 1.2rem; margin: 1rem 0;
}
.brand-profile-data div { display: grid; gap: .15rem; }
.brand-profile-data dt {
    font-size: .7rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--ink-soft);
}
.brand-profile-data dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) {
    .brand-profile-head { align-items: flex-start; }
    .brand-profile-logo { width: 68px; height: 48px; }
}
.taxonomy-back { margin-top: 2.25rem; }

/* Other products of the same brand (product page) */
.brand-more { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid rgba(20, 35, 31, .1); }
.brand-more-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.brand-more-brand { display: flex; align-items: center; gap: 1rem; }
.brand-more-logo { width: 84px; height: 58px; object-fit: contain; flex: 0 0 auto; }
.brand-more-head .eyebrow { margin-bottom: .25rem; }
.brand-more-head h2 { margin: 0; font-size: 1.5rem; }
.brand-more-link { font-weight: 600; font-size: .9rem; white-space: nowrap; }
.brand-more-link:hover, .brand-more-link:focus-visible { color: var(--teal); }
.brand-more-grid { margin-top: 1rem; }
@media (max-width: 600px) {
    .brand-more-head { flex-direction: column; align-items: flex-start; gap: .4rem; }
}

/* Alphabetical brand index */
.alphabet {
    display: flex; flex-wrap: wrap; justify-content: center; gap: .05rem;
    margin: 0 auto 2.25rem; padding: .4rem 0;
    border-top: 1px solid rgba(20, 35, 31, .1);
    border-bottom: 1px solid rgba(20, 35, 31, .1);
}
.alphabet a, .alphabet .alphabet-empty {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2rem; height: 2rem; border-radius: 999px;
    font-size: .82rem; font-weight: 600; letter-spacing: .03em;
}
.alphabet a { color: var(--teal); }
.alphabet a:hover { background: var(--sand); }
.alphabet .alphabet-empty { color: rgba(20, 35, 31, .22); }
.alpha-section { scroll-margin-top: 5.75rem; }
.alpha-section + .alpha-section { margin-top: 2.5rem; }
.alpha-title { display: flex; align-items: center; gap: .85rem; margin: 0 0 1rem; font-size: 1.45rem; font-weight: 500; }
.alpha-key { min-width: 1.4rem; }
.alpha-rule { flex: 1; height: 1px; background: rgba(20, 35, 31, .12); }
.to-top {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2rem; height: 2rem; border-radius: 999px;
    background: #fff; border: 1px solid rgba(20, 35, 31, .15); color: var(--teal);
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.to-top:hover { background: var(--sand); border-color: rgba(15, 76, 70, .35); transform: translateY(-1px); }

/* Product page */
.product { padding: 2rem 1.25rem 3rem; }
.back { font-size: .9rem; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb { margin-bottom: .25rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; font-size: .82rem; color: var(--ink-soft); }
.breadcrumb li { display: inline-flex; align-items: center; gap: .35rem; min-width: 0; }
.breadcrumb li + li::before { content: "›"; color: rgba(20, 35, 31, .35); }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover, .breadcrumb a:focus-visible { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb li[aria-current] { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.product-return-note { margin: .55rem 0 0; font-size: .8rem; line-height: 1.4; color: var(--ink-soft); }
.product-return-note-price { margin: -.35rem 0 .9rem; font-size: .78rem; max-width: 34rem; }
.product-return-note-price a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.product-return-note-price a:hover, .product-return-note-price a:focus-visible { color: var(--teal); }
.variant-picker { display: grid; gap: .55rem; margin: .2rem 0 0; }
.variant-group { border: 0; margin: 0; padding: 0; }
.variant-group legend { padding: 0; margin-bottom: .3rem; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.variant-options { display: flex; flex-wrap: wrap; gap: .4rem; }
.variant-option {
    min-width: 2.6rem; padding: .45rem .7rem; border: 1px solid rgba(15, 76, 70, .3);
    background: #fff; border-radius: 10px; font: inherit; font-size: .85rem; cursor: pointer;
}
.variant-option:hover:not(:disabled) { border-color: var(--teal); }
.variant-option.is-selected { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.variant-option:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.variant-stock { margin: .1rem 0 .2rem; min-height: 1rem; }
.price-from { font-size: .55em; font-weight: 600; color: var(--ink-soft); margin-right: .15rem; }
.payment-methods { border: 0; margin: 1rem 0 .9rem; padding: 0; }
.payment-methods legend { padding: 0; margin-bottom: .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.payment-option { display: flex; align-items: center; gap: .55rem; padding: .55rem .75rem; border: 1px solid rgba(15, 76, 70, .28); border-radius: 10px; margin-bottom: .4rem; cursor: pointer; }
.payment-option:has(input:checked) { border-color: var(--teal); background: rgba(15, 76, 70, .06); }
.landing .lead { max-width: 62ch; }
/* Official LEGO set names can need three lines on a narrow card. */
.landing .grid .card h3,
.landing-more .grid .card h3 { -webkit-line-clamp: 3; line-clamp: 3; }
.landing-hero { display: grid; gap: 2rem; grid-template-columns: 1.02fr .98fr; align-items: center; margin: .4rem 0 2.4rem; }
.landing-hero-copy h1 { margin: 0 0 .8rem; }
.landing-hero-lead { color: var(--ink-soft); max-width: 56ch; margin: 0 0 1rem; line-height: 1.55; }
.landing-hero-meta { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); margin: 0 0 1.2rem; }
.landing-hero-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.landing-hero-media { background: #fff; border: 1px solid rgba(20, 35, 31, .1); border-radius: 22px; padding: 1rem; }
.landing-hero-media img { width: 100%; height: auto; display: block; object-fit: contain; }
.landing-hero-media { position: relative; aspect-ratio: 1; overflow: hidden; perspective: 1000px; }
.hero-stage { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .25s ease-out; }
.landing-hero-media .hero-slide {
    position: absolute; top: 1rem; left: 1rem; width: calc(100% - 2rem); height: calc(100% - 2rem);
    object-fit: contain; opacity: 0; transition: opacity .7s ease;
}
.landing-hero-media .hero-slide.is-active { opacity: 1; }
.hero-glow {
    position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease; z-index: 1;
    background: radial-gradient(220px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 232, 31, .28), transparent 70%);
}
.landing-hero-media.is-hover .hero-glow { opacity: 1; }
.hero-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 2.3rem; height: 2.3rem; border-radius: 50%; cursor: pointer;
    display: grid; place-items: center; font-size: 1.2rem; line-height: 1;
    background: rgba(10, 14, 23, .6); color: #fff; border: 1px solid rgba(255, 255, 255, .3);
    opacity: 0; transition: opacity .2s ease, background .2s ease;
}
.landing-hero-media:hover .hero-nav, .landing-hero-media:focus-within .hero-nav { opacity: 1; }
.hero-nav:hover, .hero-nav:focus-visible { background: rgba(10, 14, 23, .85); border-color: #ffe81f; color: #ffe81f; }
.hero-prev { left: .55rem; }
.hero-next { right: .55rem; }
.landing-hero-media:focus-visible { outline: 2px solid #ffe81f; outline-offset: 3px; }
.landing-eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .8rem; padding: .32rem .75rem; border: 1px solid rgba(20, 35, 31, .18); border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 900px) {
    .landing-hero { grid-template-columns: 1fr; gap: 1.2rem; }
    .landing-hero-media { order: -1; }
}
.landing-grid-title { margin: 1.6rem 0 .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
.card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 26px 60px -34px rgba(20, 35, 31, .55); }
.card-media img { transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.04); }
body.theme-star-wars .card:hover { border-color: rgba(255, 232, 31, .45); box-shadow: 0 30px 70px -40px rgba(56, 89, 160, .95); }
/* Inner glow on hover: light coming from inside the card, no extra assets. */
body.theme-star-wars .card { position: relative; }
body.theme-star-wars .card::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 232, 31, .32), inset 0 0 34px rgba(255, 232, 31, .16);
    opacity: 0; transition: opacity .3s ease;
}
body.theme-star-wars .card:hover::after,
body.theme-star-wars .card:focus-within::after { opacity: 1; }
body.theme-star-wars .landing-hero-media { transition: transform .2s ease-out; will-change: transform; }
@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
    .reveal.is-visible { opacity: 1; transform: none; }
    .card.reveal.is-visible { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
}
.landing-blocks { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.landing-block { background: #fff; border: 1px solid rgba(20, 35, 31, .1); border-radius: 16px; padding: 1.1rem 1.2rem; }
.landing-block h2 { margin: 0 0 .4rem; font-size: 1.02rem; }
.landing-block p { margin: 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.55; }
.landing-faq h2 { margin-bottom: .6rem; }
.faq-item { border-bottom: 1px solid rgba(20, 35, 31, .12); padding: .7rem 0; }
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item p { margin: .45rem 0 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.55; max-width: 70ch; }
/* Star Wars themed landing: deep space, starfield, yellow accent. No third-party logos. */
body.theme-star-wars {
    background-color: #080b12;
    background-image: radial-gradient(circle at 72% -8%, rgba(56, 89, 160, .42), transparent 58%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    color: #e9eef8;
}
body.theme-star-wars #starfield {
    position: fixed; inset: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}
body.theme-star-wars main,
body.theme-star-wars .site-footer { position: relative; z-index: 1; }
body.theme-star-wars .site-header { background: rgba(8, 11, 18, .92); border-bottom-color: rgba(255, 255, 255, .1); }
body.theme-star-wars .nav-link { color: #cbd4e6; }
body.theme-star-wars .nav-link:hover, body.theme-star-wars .nav-link:focus-visible { background: rgba(255, 255, 255, .08); color: #ffe81f; }
body.theme-star-wars .nav-accent { color: #ffe81f; background: rgba(255, 232, 31, .12); }
body.theme-star-wars .lang-button,
body.theme-star-wars .cart-link { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #e9eef8; }
body.theme-star-wars .cart-count { background: #ffe81f; color: #0a0e17; }
body.theme-star-wars .skip { background: #ffe81f; color: #0a0e17; }
body.theme-star-wars h1, body.theme-star-wars h2, body.theme-star-wars h3 { color: #ffffff; }
body.theme-star-wars .lead { color: #c3cde2; }
body.theme-star-wars .breadcrumb a, body.theme-star-wars .breadcrumb li { color: #98a4bd; }
body.theme-star-wars .breadcrumb li[aria-current] { color: #e9eef8; }
body.theme-star-wars .landing-grid-title { color: #ffe81f; }
body.theme-star-wars .card { background: #111a2c; border-color: rgba(255, 255, 255, .09); }
body.theme-star-wars .card-media { background: transparent; }
body.theme-star-wars .card h3 a { color: #f2f5fb; }
body.theme-star-wars .card h3 a:hover { color: #ffe81f; }
body.theme-star-wars .card-meta { color: #9fb0cc; }
body.theme-star-wars .card-age { color: #8b9ab5; }
body.theme-star-wars .price { color: #ffe81f; }
body.theme-star-wars .card .stock { color: #a9b6cd; }
body.theme-star-wars .landing-block { background: #111a2c; border-color: rgba(255, 255, 255, .09); }
body.theme-star-wars .landing-block p { color: #c3cde2; }
body.theme-star-wars .faq-item { border-bottom-color: rgba(255, 255, 255, .12); }
body.theme-star-wars .faq-item summary { color: #eef2f9; }
body.theme-star-wars .faq-item p { color: #c3cde2; }
body.theme-star-wars .pager .btn-ghost { color: #e9eef8; border-color: rgba(255, 255, 255, .24); }
body.theme-star-wars .pager .muted { color: #98a4bd; }
body.theme-star-wars .site-footer { border-top: 1px solid rgba(255, 255, 255, .08); }
body.theme-star-wars .landing-hero-copy h1 {
    font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 5.6vw, 4.3rem);
    line-height: .94;
    letter-spacing: -.015em;
    text-transform: uppercase;
    text-shadow: 0 0 48px rgba(255, 232, 31, .18);
}
body.theme-star-wars h2,
body.theme-star-wars .landing-block h2,
body.theme-star-wars .faq-item summary { font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
body.theme-star-wars .landing-eyebrow { color: #ffe81f; border-color: rgba(255, 232, 31, .45); background: rgba(255, 232, 31, .08); }
body.theme-star-wars .landing-eyebrow::before { content: ""; width: .42rem; height: .42rem; border-radius: 50%; background: #ffe81f; box-shadow: 0 0 10px #ffe81f; }
body.theme-star-wars .landing-hero-lead { color: #c3cde2; }
body.theme-star-wars .landing-hero-meta { color: #9fb0cc; }
body.theme-star-wars .landing-btn-primary {
    background: #ffe81f; color: #0a0e17; border: 1px solid #ffe81f; border-radius: 999px;
    font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
body.theme-star-wars .landing-btn-primary:hover,
body.theme-star-wars .landing-btn-primary:focus-visible { background: #fff45c; border-color: #fff45c; }
body.theme-star-wars .landing-btn-secondary { color: #e9eef8; border: 1px solid rgba(255, 255, 255, .32); border-radius: 999px; }
body.theme-star-wars .landing-btn-secondary:hover { border-color: #ffe81f; color: #ffe81f; }
body.theme-star-wars .landing-hero-media {
    background: radial-gradient(circle at 50% 40%, #1b2740, #0d1526 72%);
    border: 1px solid rgba(255, 255, 255, .09);
    box-shadow: 0 40px 90px -50px rgba(56, 89, 160, .95);
}
@property --sw-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
/* Yellow light travelling around the hero frame. */
body.theme-star-wars .landing-hero-media::before {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    border-radius: inherit; padding: 2px;
    background: conic-gradient(from var(--sw-angle),
        rgba(255, 232, 31, 0) 0deg,
        rgba(255, 232, 31, 0) 236deg,
        rgba(255, 232, 31, .55) 292deg,
        #ffe81f 340deg,
        #fff6a3 352deg,
        rgba(255, 232, 31, 0) 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: sw-trace 3.4s linear infinite;
}
@keyframes sw-trace { to { --sw-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) {
    body.theme-star-wars .landing-hero-media::before {
        animation: none;
        background: rgba(255, 232, 31, .3);
    }
}
/* Cart dropdown in the same dark language as the landing. */
body.theme-star-wars .cart-panel {
    background: #0e1626;
    border-color: rgba(255, 255, 255, .1);
    box-shadow: 0 26px 60px -24px rgba(0, 0, 0, .9);
}
body.theme-star-wars .cart-panel-items li:hover { background: rgba(255, 255, 255, .06); }
body.theme-star-wars .cart-panel-media { background: rgba(255, 255, 255, .07); }
body.theme-star-wars .cart-panel-name { color: #eef2f9; }
body.theme-star-wars .cart-panel-name:hover { color: #ffe81f; }
body.theme-star-wars .cart-panel-meta,
body.theme-star-wars .cart-panel-empty { color: #9fb0cc; }
body.theme-star-wars .cart-panel-more { border-top-color: rgba(255, 255, 255, .1); color: #ffe81f; }
body.theme-star-wars .cart-panel-actions { border-top-color: rgba(255, 255, 255, .1); }
body.theme-star-wars .cart-panel-primary { background: #ffe81f; color: #0a0e17; }
body.theme-star-wars .cart-panel-primary:hover { background: #fff45c; }
body.theme-star-wars .cart-panel-secondary { background: rgba(255, 255, 255, .08); color: #e9eef8; }
body.theme-star-wars .cart-panel-secondary:hover { background: rgba(255, 255, 255, .15); }
.product-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.1fr 1fr; margin-top: 1.5rem; }
.gallery-main { aspect-ratio: 1; background: #fff; border-radius: 18px; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: .75rem; }
.gallery-main-solo { background: transparent; }
.gallery-main-solo img { padding: .5rem; }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }
.gallery-thumbs button { width: 4rem; height: 4rem; padding: .2rem; background: #fff; border: 1px solid rgba(20, 35, 31, .15); border-radius: 10px; cursor: pointer; }
.gallery-thumbs button.is-active { border: 2px solid var(--teal); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-info h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.price-lg { font-size: 1.8rem; font-weight: 700; margin: .5rem 0 1rem; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: .55rem; margin: .5rem 0 .75rem; }
.price-row .price-lg { margin: 0; }
.price-row .muted { margin: 0; }
.specs { margin: 0 0 1.25rem; display: grid; gap: .4rem; font-size: .9rem; }
.specs div { display: flex; gap: .5rem; }
.specs dt { font-weight: 700; }
.specs dd { margin: 0; }
.add-to-cart { margin: 1rem 0 1rem; }
.description p { color: var(--ink-soft); white-space: pre-line; }
.description h3 { margin: 1.3rem 0 .3rem; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.description h3:first-of-type { margin-top: .9rem; }
.safety { margin-top: 1.5rem; background: rgba(28, 107, 98, .07); border: 1px solid rgba(28, 107, 98, .35); border-radius: 14px; padding: 1rem; }
.safety h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-soft); }
.product-facts { display: grid; gap: .5rem; margin: 0 0 1rem; }
.fact-box {
    display: grid; gap: .15rem;
    padding: .55rem .8rem; border: 1px solid rgba(15, 76, 70, .28);
    border-radius: 12px;
}
.fact-box-label {
    font-size: .6rem; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase; color: var(--teal-soft);
}
.fact-box-value { font-size: .95rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.product-facts .muted.small { margin: .3rem 0 0; }

/* Themed product page inside a landing. */
body.theme-star-wars .fact-box { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .14); }
body.theme-star-wars .fact-box-label { color: #9fb0cc; }
body.theme-star-wars .fact-box-value { color: #eef2f9; }
body.theme-star-wars .fact-box code { color: #eef2f9; background: rgba(255, 255, 255, .08); }
body.theme-star-wars .product-return-note,
body.theme-star-wars .product-return-note a { color: #9fb0cc; }
body.theme-star-wars .btn { background: #ffe81f; color: #0a0e17; border-color: #ffe81f; }
body.theme-star-wars .btn:hover { background: #fff45c; border-color: #fff45c; }
body.theme-star-wars .btn-ghost { background: transparent; color: #e9eef8; border-color: rgba(255, 255, 255, .28); }
body.theme-star-wars .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #ffe81f; }
body.theme-star-wars .description h3 { color: #ffe81f; }
body.theme-star-wars .description p { color: #c3cde2; }
body.theme-star-wars .gallery-thumbs button { border-color: rgba(255, 255, 255, .22); }
body.theme-star-wars .gallery-thumbs button.is-active { border-color: #ffe81f; }
body.theme-star-wars .brand-profile,
body.theme-star-wars .brand-more { border-top-color: rgba(255, 255, 255, .12); }
body.theme-star-wars .brand-profile-data dt { color: #9fb0cc; }
body.theme-star-wars .brand-profile-data dd { color: #e9eef8; }
body.theme-star-wars .stock { color: #a9b6cd; }
body.theme-star-wars .muted { color: #9fb0cc; }

/* Cart */
.cart { padding: 2.5rem 1.25rem; }
.cart-grid { display: grid; gap: 2rem; grid-template-columns: 1.6fr 1fr; margin-top: 1.5rem; }
.cart-items { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.cart-item { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1rem; background: #fff; border: 1px solid rgba(20, 35, 31, .1); border-radius: 18px; padding: 1rem; align-items: center; }
.cart-item-media img { width: 5rem; height: 5rem; object-fit: contain; }
.cart-item-name { font-weight: 600; }
.cart-item-row { display: flex; align-items: center; gap: .7rem; margin-top: .55rem; flex-wrap: wrap; }
.qty-form { margin: 0; }
.qty-stepper { display: inline-flex; align-items: center; background: #fff; border: 1px solid rgba(20, 35, 31, .2); border-radius: 999px; overflow: hidden; }
.qty-btn { width: 2rem; height: 2.1rem; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1rem; font-weight: 700; line-height: 1; cursor: pointer; }
.qty-btn:hover:not(:disabled) { background: var(--sand); }
.qty-btn:disabled { opacity: .3; cursor: not-allowed; }
.qty-input { width: 2.6rem; height: 2.1rem; border: 0; background: transparent; text-align: center; font: inherit; font-weight: 600; padding: 0; }
.qty-input:focus { outline: none; background: var(--sand); }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.remove-form { margin: 0; }
.cart-remove { background: none; border: 0; color: #b0432e; cursor: pointer; padding: .3rem .1rem; font-size: .85rem; text-decoration: underline; }
.cart-remove:hover { color: #8f3524; }
.link-danger { background: none; border: 0; color: #b0432e; cursor: pointer; padding: 0; font-size: .85rem; text-decoration: underline; }
.cart-item-total { margin-left: auto; font-weight: 700; white-space: nowrap; }
.cart-summary { background: #fff; border: 1px solid rgba(20, 35, 31, .1); border-radius: var(--radius); padding: 1.5rem; height: fit-content; }
.cart-summary dl { margin: 0 0 1rem; }
.cart-summary dl div { display: flex; justify-content: space-between; margin-bottom: .4rem; }
.cart-summary .total { border-top: 1px solid rgba(20, 35, 31, .1); padding-top: .5rem; font-weight: 700; font-size: 1.05rem; }
.notice { background: rgba(242, 179, 61, .14); border: 1px solid rgba(242, 179, 61, .5); border-radius: 10px; padding: .75rem; font-size: .85rem; color: var(--ink-soft); }

/* Toy Finder */
.finder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; background: #fff; border: 1px solid rgba(20, 35, 31, .1); border-radius: var(--radius); padding: 1.25rem; margin: 1.5rem 0 1rem; }
.finder label { display: grid; gap: .3rem; font-size: .9rem; font-weight: 600; }
.finder select { height: 2.5rem; border: 1px solid rgba(20, 35, 31, .2); border-radius: 10px; padding: 0 .6rem; background: #fff; }
.finder-actions { display: flex; align-items: center; gap: 1rem; }

.empty { background: #fff; border: 1px solid rgba(20, 35, 31, .1); border-radius: 18px; padding: 1.5rem; color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--ink); color: var(--ivory); margin-top: 3rem; }
.footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.5rem;
    padding: 2.25rem 1.25rem 1.2rem;
}
.footer-col { display: flex; flex-direction: column; gap: .35rem; font-size: .86rem; }
.footer-col h2 {
    font-family: inherit; font-size: .7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .12em; color: rgba(251, 247, 240, .62); margin: 0 0 .35rem;
}
.footer-col a { color: rgba(251, 247, 240, .86); text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-brand {
    display: inline-flex; align-items: center; align-self: flex-start;
    font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
    font-size: 1.4rem; font-weight: 600; color: var(--ivory); margin-bottom: .55rem;
}
.footer-brand img { display: block; width: auto; height: 26px; }
.footer-about p { margin: .1rem 0; color: rgba(251, 247, 240, .72); }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
    border-top: 1px solid rgba(251, 247, 240, .16);
    padding: 1rem 1.25rem 1.5rem; font-size: .78rem; color: rgba(251, 247, 240, .68);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(251, 247, 240, .88); }

/* Legal pages */
.legal-page { max-width: 920px; padding: 2.5rem 1.25rem 3rem; }
.legal-intro { max-width: 70ch; }
.legal-sections { display: grid; gap: 1.25rem; margin: 2rem 0; }
.legal-section h2 { font-size: 1.05rem; margin: 0 0 .4rem; color: var(--ink); }
.legal-section p { margin: 0; color: var(--ink-soft); line-height: 1.65; font-size: .95rem; }
.legal-nav {
    display: flex; flex-wrap: wrap; gap: .5rem 1.2rem;
    border-top: 1px solid rgba(20, 35, 31, .12); padding-top: 1.2rem;
}
.legal-nav a { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.legal-back { margin-top: 1.5rem; }
.checkout-terms {
    display: flex; align-items: flex-start; gap: .55rem;
    margin: .4rem 0 .2rem; font-size: .85rem; color: var(--ink-soft);
}
.checkout-terms input { margin-top: .2rem; }
.checkout-terms a { color: var(--teal); text-decoration: underline; }
.withdraw-form {
    max-width: 620px; margin: 1.5rem 0; padding: 1.5rem;
    background: #fff; border: 1px solid rgba(20, 35, 31, .1); border-radius: var(--radius);
}
.field textarea {
    border: 1px solid rgba(20, 35, 31, .2); border-radius: 10px;
    padding: .6rem .7rem; font: inherit; font-weight: 400; background: #fff;
    resize: vertical;
}
.contact-form { max-width: 680px; margin: 1.2rem 0 1.8rem; }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .9rem; }
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { margin-top: .4rem; }
@media (max-width: 640px) {
    .contact-fields { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .product-grid, .cart-grid { grid-template-columns: 1fr; }
    .finder { grid-template-columns: 1fr; }
    .mega ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .taxonomy-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
    .card { padding: .65rem; border-radius: 16px; }
    .card-media { margin-bottom: .5rem; border-radius: 10px; }
    .card-meta { font-size: .62rem; letter-spacing: .06em; }
    .card-age { font-size: .62rem; }
    .card h3 { font-size: .92rem; line-height: 1.25; min-height: 2.5em; }
    .card .price { font-size: 1rem; }
    .card .stock { font-size: .78rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.2rem; }
    .footer-bottom { flex-direction: column; }
}

@media (max-width: 560px) {
    .mega ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cart-item { grid-template-columns: 4rem minmax(0, 1fr); }
    .taxonomy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .alphabet a, .alphabet .alphabet-empty { width: 1.85rem; height: 1.85rem; font-size: .78rem; }
}

@media (max-width: 400px) {
    .taxonomy-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Forms, checkout, orders */
.field { display: grid; gap: .3rem; margin-bottom: .9rem; font-size: .9rem; font-weight: 600; }
.field input, .field select { height: 2.6rem; border: 1px solid rgba(20,35,31,.2); border-radius: 10px; padding: 0 .7rem; font: inherit; font-weight: 400; background: #fff; }
.checkout-form { background: #fff; border: 1px solid rgba(20,35,31,.1); border-radius: var(--radius); padding: 1.5rem; }
.summary-items { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.summary-items li { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.totals { margin: 0; }
.totals div { display: flex; justify-content: space-between; margin-bottom: .4rem; }
.totals .total { border-top: 1px solid rgba(20,35,31,.1); padding-top: .5rem; font-weight: 700; font-size: 1.05rem; }
.notice-error { background: rgba(217,84,58,.1); border-color: rgba(217,84,58,.5); color: #8c2f1e; }
.badge { display: inline-block; border-radius: 999px; padding: .2rem .7rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; background: rgba(20,35,31,.1); }
.badge-paid { background: rgba(15,76,70,.15); color: var(--teal); }
.badge-shipped, .badge-delivered { background: rgba(15,76,70,.15); color: var(--teal); }
.badge-pending_payment { background: rgba(242,179,61,.2); color: #7a5a10; }
.badge-cancelled { background: rgba(217,84,58,.15); color: #8c2f1e; }

/* Admin */
.admin-body { background: #f7f4ee; }
.admin-header { background: var(--ink); color: var(--ivory); }
.admin-header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: .9rem 1.25rem; }
.admin-header .brand { color: var(--ivory); font-size: 1.25rem; }
.admin-header .brand i { background: var(--coral); }
.admin-kicker { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(251,247,240,.6); }
.admin-nav { display: flex; gap: .25rem; }
.admin-nav a { color: rgba(251,247,240,.85); padding: .4rem .8rem; border-radius: 999px; font-size: .9rem; font-weight: 600; }
.admin-nav a:hover { background: rgba(251,247,240,.12); color: var(--ivory); }
.admin-user { margin-left: auto; display: flex; align-items: center; gap: .8rem; font-size: .85rem; }
.admin-main { padding: 2rem 1.25rem 3rem; }
.admin-login { min-height: 100dvh; display: grid; place-items: center; padding: 2rem 1.25rem; }
.admin-card { width: min(440px, 100%); background: #fff; border: 1px solid rgba(20,35,31,.1); border-radius: var(--radius); padding: 2rem; }
.admin-form { margin-top: 1.25rem; }
.stats { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.stats li { background: #fff; border: 1px solid rgba(20,35,31,.1); border-radius: 16px; padding: 1rem; display: grid; gap: .4rem; }
.stats span { font-size: .8rem; color: var(--ink-soft); }
.stats strong { font-size: 1.6rem; font-family: Georgia, serif; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid rgba(20,35,31,.1); border-radius: 16px; margin-top: 1rem; }
.table { width: 100%; border-collapse: collapse; font-size: .85rem; min-width: 46rem; }
.table th, .table td { padding: .6rem .7rem; border-bottom: 1px solid rgba(20,35,31,.06); text-align: left; vertical-align: middle; }
.table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.table tbody tr:last-child td { border-bottom: 0; }
.table form { display: contents; }
.input-small { width: 6.5rem; height: 2rem; border: 1px solid rgba(20,35,31,.2); border-radius: 8px; padding: 0 .4rem; }
.table select { height: 2rem; border: 1px solid rgba(20,35,31,.2); border-radius: 8px; padding: 0 .4rem; background: #fff; }
.block { display: block; }
.admin-orders { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .75rem; }
.admin-order { background: #fff; border: 1px solid rgba(20,35,31,.1); border-radius: 16px; padding: 1rem; }
.admin-order-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; }
.admin-order-total { text-align: right; display: grid; gap: .3rem; justify-items: end; }
.admin-order-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: .75rem; }
.ship-form { display: flex; flex-wrap: wrap; gap: .4rem; }
.ship-form input { height: 2.1rem; border: 1px solid rgba(20,35,31,.2); border-radius: 8px; padding: 0 .5rem; font-size: .85rem; }
.ship-form input[name="carrier"] { width: 7rem; }
.ship-form input[name="tracking"] { width: 9rem; }
.ship-form input[name="tracking_url"] { width: 14rem; }

/* GPSR safety data */
.safety-specs { margin: .5rem 0 0; }
.safety-specs div { display: grid; grid-template-columns: minmax(110px, 165px) 1fr; gap: .15rem .8rem; }
.safety-specs dd { overflow-wrap: anywhere; }
.admin-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 1rem 0; }
.admin-filter input[type="search"] {
    height: 2.2rem; border: 1px solid rgba(20,35,31,.2); border-radius: 8px;
    padding: 0 .6rem; font: inherit; font-size: .85rem; background: #fff;
    width: min(280px, 100%);
}
.check-inline { display: flex; align-items: center; gap: .4rem; font-size: .85rem; }
.brand-safety-list { display: grid; gap: .6rem; margin-top: 1rem; }
.brand-safety-card { background: #fff; border: 1px solid rgba(20,35,31,.1); border-radius: 14px; padding: .8rem 1rem; }
.brand-safety-card summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.brand-safety-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem 1rem; margin-top: 1rem; }
.brand-safety-form .field { margin-bottom: 0; }
.brand-safety-form-note { grid-column: 1 / -1; margin: 0; }
.brand-safety-form button { grid-column: 1 / -1; justify-self: start; }
.brand-safety-fieldset {
    grid-column: 1 / -1; border: 1px solid rgba(20,35,31,.12);
    border-radius: 12px; padding: 1rem; margin: 0;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .8rem 1rem;
}
.brand-safety-fieldset legend {
    padding: 0 .4rem; font-size: .78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft);
}
.brand-safety-fieldset-wide { grid-column: 1 / -1; }
@media (max-width: 560px) {
    .safety-specs div { grid-template-columns: 1fr; }
}

/* Offcanvas navigation and catalog sidebar */
.nav-toggle {
    display: none; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 2.5rem; height: 2.5rem; padding: 0;
    border: 1px solid rgba(20, 35, 31, .15); border-radius: 999px;
    background: #fff; color: var(--ink-soft); font: inherit;
    font-weight: 700; cursor: pointer;
}
.nav-toggle:hover { background: var(--sand); color: var(--teal); }

.drawer-backdrop {
    position: fixed; inset: 0; z-index: 80;
    background: rgba(20, 35, 31, .45);
}
.drawer-backdrop[hidden] { display: none; }
.drawer {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 90;
    width: min(360px, 88vw); background: #fff;
    padding: 1rem 1.1rem 2rem; overflow: auto;
    box-shadow: 24px 0 60px -30px rgba(17, 17, 17, .45);
    transform: translateX(-100%); transition: transform .22s ease;
}
.drawer.is-open { transform: none; }
.drawer-head {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding-bottom: .9rem; margin-bottom: .4rem;
    border-bottom: 1px solid rgba(20, 35, 31, .1);
}
.drawer-nav a { display: block; padding: .65rem .55rem; border-radius: 10px; font-weight: 600; color: var(--ink-soft); }
.drawer-nav a:hover { background: var(--sand); color: var(--teal); }
.drawer-group { margin-top: .2rem; }
.drawer-group summary { padding: .65rem .55rem; font-weight: 700; cursor: pointer; border-radius: 10px; list-style: none; }
.drawer-group summary::-webkit-details-marker { display: none; }
.drawer-group summary:hover { background: var(--sand); }
.drawer-group ul { list-style: none; margin: 0; padding: 0 0 .4rem .55rem; }
.drawer-group li a { padding: .4rem .55rem; font-size: .9rem; font-weight: 500; }
.drawer-all { display: block; padding: .45rem .55rem; color: var(--teal); font-size: .85rem; font-weight: 700; }

.catalog-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 2rem; align-items: start; margin-top: 1.25rem; }
.catalog-sidebar { position: sticky; top: 5.5rem; }
.catalog-main { min-width: 0; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.sidebar-head h2 { font-size: 1.1rem; margin: 0; }
.sidebar-close { display: none; }
.search-field { position: relative; display: flex; flex: 0 0 auto; }
.filter-mobile {
    display: none; align-items: center; gap: .35rem; flex: 0 0 auto;
    height: 2.8rem; padding: 0 .95rem; border: 0; border-left: 1px solid rgba(20, 35, 31, .12);
    background: transparent; color: var(--teal); font: inherit; font-size: .9rem; font-weight: 700;
    cursor: pointer;
}
.filter-mobile:hover { background: var(--sand); }
.catalog-sidebar .facet { display: block; margin: 0; padding: 1.1rem; }
.catalog-sidebar .facet-group { margin-bottom: 1rem; }
.catalog-sidebar .facet-options { display: grid; grid-template-columns: 1fr; gap: .45rem; }
.catalog-sidebar .facet-category select,
.catalog-sidebar .facet-age select { width: 100%; max-width: none; min-width: 0; }
.catalog-sidebar .facet-price input { width: 100%; }
.catalog-sidebar .facet button { width: 100%; margin-left: 0; }
.cart-label { display: inline; }

@media (max-width: 900px) {
    .nav { display: none; }
    .nav-toggle { display: inline-flex; }
    .header-inner { gap: .6rem; }
    .header-actions { gap: .4rem; }
    .cart-label { display: none; }
    .cart-link { padding: .5rem .7rem; }
    .brand { font-size: 1.35rem; }
    .brand img { height: 28px; }
    .lang-button span { display: none; }
    .lang-button { width: 2.25rem; justify-content: center; padding: 0; }

    .catalog-layout { display: block; }
    .catalog-sidebar {
        position: fixed; top: 0; bottom: 0; left: 0; z-index: 90;
        width: min(340px, 88vw); padding: 1rem 1.1rem 2rem;
        background: #fff; overflow: auto; visibility: hidden;
        box-shadow: 24px 0 60px -30px rgba(17, 17, 17, .45);
        transform: translateX(-100%); transition: transform .22s ease, visibility .22s ease;
    }
    .catalog-sidebar.is-open { transform: none; visibility: visible; }
    .catalog-sidebar .facet { border: 0; box-shadow: none; padding: 0; }
    .sidebar-close { display: inline-flex; }
    .search { justify-content: flex-start; }
    .search-field {
        flex: 1 1 100%; display: flex; align-items: center; overflow: hidden;
        border: 1px solid rgba(20, 35, 31, .2); border-radius: 999px; background: #fff;
    }
    .search-field input {
        flex: 1 1 auto; width: 100%; min-width: 0; height: 2.8rem;
        border: 0; border-radius: 0; background: transparent; padding: 0 1rem;
    }
    .search-field input:focus-visible { outline: none; }
    .filter-mobile:focus-visible { outline: none; }
    .search-field:focus-within { outline: 3px solid var(--teal); outline-offset: 2px; }
    .filter-mobile { display: inline-flex; }
}

