/*!
 * Volt — electronics & technology theme for Aigen Commerce.
 * Tokens + the sections that are unique to Volt. Everything else comes from base.css.
 */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-greek.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope-greek.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }

:root {
    --accent: #2b59ff;
    --accent-2: #7c3aed;
    --accent-contrast: #ffffff;
    --sale: #e5383b;
    --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Manrope", "Inter", ui-sans-serif, system-ui, sans-serif;
    --display-weight: 800;
    --display-tracking: -0.03em;
    --header-h: 131px;

    --announce-bg: #0a0b0f;
    --announce-text: rgb(255 255 255 / 0.85);
    --footer-bg: #0a0b0f;
    --footer-text: rgb(255 255 255 / 0.66);
    --footer-heading: #ffffff;
    --footer-line: rgb(255 255 255 / 0.12);
    --footer-accent: #8ea6ff;
}

@layer theme {
    .announce__message .icon { color: #8ea6ff; opacity: 1; }

    /* Header */
    .site-header {
        position: sticky;
        top: 0;
        z-index: 50;
        border-bottom: 1px solid var(--line);
        background: color-mix(in oklab, var(--bg) 84%, transparent);
        -webkit-backdrop-filter: saturate(1.8) blur(20px);
        backdrop-filter: saturate(1.8) blur(20px);
        transition: box-shadow 0.3s;
    }
    .site-header.is-stuck { box-shadow: 0 12px 30px -22px rgb(10 12 20 / 0.45); }
    .header-main {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "logo search actions";
        align-items: center;
        gap: clamp(1rem, 2.5vw, 2.5rem);
        min-height: 76px;
    }
    .header-main__menu { display: none; grid-area: menu; }

    .logo { grid-area: logo; display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; line-height: 1; letter-spacing: -0.05em; }
    .logo__mark {
        display: grid;
        place-items: center;
        width: 38px;
        height: 38px;
        border-radius: 12px;
        background: linear-gradient(135deg, var(--accent), var(--accent-2));
        color: var(--accent-contrast);
        box-shadow: 0 8px 18px -8px color-mix(in oklab, var(--accent) 85%, transparent), inset 0 1px 0 rgb(255 255 255 / 0.28);
        transition: transform 0.4s var(--spring);
    }
    .logo:hover .logo__mark { transform: rotate(-8deg) scale(1.05); }
    .logo__mark .icon { width: 22px; height: 22px; }
    .logo--light { color: #fff; }

    .search { grid-area: search; position: relative; justify-self: center; width: 100%; max-width: 720px; }
    .search__field { display: flex; align-items: center; gap: 0.65rem; height: 50px; padding: 0 0.35rem 0 1.15rem; border: 1px solid transparent; border-radius: 999px; background: var(--surface); transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s; }
    .search__field > .icon { color: var(--muted); }
    .search__field:focus-within { border-color: var(--accent); background: var(--bg); box-shadow: 0 0 0 4px var(--accent-soft); }
    .search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 0.95rem; }
    .search input::placeholder { color: var(--muted); }
    .search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
    .search__kbd { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--muted); font: 600 0.75rem var(--font-sans); }
    .search__field:focus-within .search__kbd { display: none; }
    .search__submit { height: 40px; padding: 0 1.15rem; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 0.88rem; font-weight: 650; transition: background-color 0.2s, color 0.2s; }
    .search__submit:hover { background: var(--accent); color: var(--accent-contrast); }

    .header-actions { grid-area: actions; display: flex; align-items: center; gap: 0.15rem; }
    .theme-toggle__sun, [data-theme="dark"] .theme-toggle__moon { display: none; }
    [data-theme="dark"] .theme-toggle__sun { display: block; }
    .cart-btn { display: inline-flex; align-items: center; gap: 0.55rem; height: 46px; margin-left: 0.4rem; padding: 0 0.45rem 0 1rem; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 0.92rem; font-weight: 650; transition: background-color 0.2s, color 0.2s; }
    .cart-btn:hover { background: var(--accent); color: var(--accent-contrast); }
    .cart-btn .icon { width: 20px; height: 20px; }
    .cart-btn__count { display: grid; place-items: center; min-width: 30px; height: 30px; padding-inline: 7px; border-radius: 999px; background: var(--bg); color: var(--text); font-size: 0.8rem; font-weight: 750; }
    .cart-btn__count.is-bumped { animation: bump 0.45s var(--spring); }

    .header-nav { border-top: 1px solid var(--line); }
    .nav { display: flex; align-items: center; gap: 0.35rem; min-height: 54px; }
    .nav__all { display: inline-flex; align-items: center; gap: 0.5rem; height: 38px; margin-right: 0.5rem; padding: 0 0.95rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 0.9rem; font-weight: 650; white-space: nowrap; transition: background-color 0.2s; }
    .nav__all:hover { background: color-mix(in oklab, var(--accent) 18%, transparent); }
    .nav__all .icon { width: 18px; height: 18px; }
    .nav .pnav { flex: 1; gap: 0.15rem; }
    .nav__list { gap: 0.15rem; }
    .nav__link { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.8rem; border-radius: 999px; color: var(--text-2); font-size: 0.9rem; font-weight: 550; white-space: nowrap; transition: background-color 0.2s, color 0.2s; }
    .nav__link:hover { background: var(--surface); color: var(--text); }
    .nav__link .icon { width: 18px; height: 18px; }
    .nav__link--deals { flex: none; margin-left: auto; color: var(--sale); font-weight: 700; }
    .nav__link--deals:hover { background: color-mix(in oklab, var(--sale) 10%, transparent); color: var(--sale); }

    .mega { padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--elevated); box-shadow: var(--shadow-lg); }
    .mega:popover-open { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; animation: pop-in 0.25s var(--ease); }
    .mega__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.6rem 1.5rem; }
    .mega__title { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; font-size: 0.95rem; font-weight: 700; }
    .mega__title:hover { color: var(--accent-text); }
    .mega__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface); color: var(--accent-text); }
    .mega__icon .icon { width: 18px; height: 18px; }
    .mega__group ul { display: grid; gap: 0.1rem; padding-left: calc(34px + 0.6rem); }
    .mega__group li a { display: block; padding: 0.22rem 0; color: var(--muted); font-size: 0.88rem; transition: color 0.15s; }
    .mega__group li a:hover { color: var(--text); }
    .mega__promo { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; padding: 1.25rem; overflow: hidden; border-radius: var(--radius); background: #0a0b0f; color: #fff; }
    .mega__promo img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
    .mega__promo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(5 6 10 / 0.88), rgb(5 6 10 / 0.05) 65%); }
    .mega__promo:hover img { transform: scale(1.05); }
    .mega__promo-body { display: grid; gap: 0.35rem; }
    .mega__promo-eyebrow { color: rgb(255 255 255 / 0.75); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
    .mega__promo strong { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.15; letter-spacing: -0.02em; }
    .mega__promo .link-arrow { color: #fff; font-size: 0.88rem; }

    /* Hero bento */
    .hero { padding-top: clamp(0.75rem, 1.6vw, 1.25rem); }
    .bento { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: clamp(0.75rem, 1.2vw, 1rem); min-height: clamp(540px, 66vh, 650px); }
    .tile { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: clamp(1.25rem, 2.4vw, 2.25rem); overflow: hidden; border-radius: var(--radius-lg); background: #0b0c10; color: #fff; color-scheme: dark; }
    .tile__media { position: absolute; inset: 0; z-index: -2; }
    .tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
    .tile:hover .tile__media img { transform: scale(1.04); }
    .tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(5 6 10 / 0.82) 0%, rgb(5 6 10 / 0.3) 52%, rgb(5 6 10 / 0) 100%); pointer-events: none; }
    .tile--main { grid-row: span 2; justify-content: center; padding: clamp(1.5rem, 4.2vw, 4rem); background: radial-gradient(120% 120% at 72% 45%, #2a2a2a 0%, #171717 45%, #0d0d0d 100%); }
    .tile--main::after { background: linear-gradient(90deg, rgb(10 10 12 / 0.7) 0%, rgb(10 10 12 / 0.35) 34%, rgb(10 10 12 / 0) 58%); }
    .tile--main:has(.hero-chip) { padding-bottom: max(clamp(1.5rem, 4.2vw, 4rem), calc(60px + 1.1rem + 2 * clamp(1rem, 2vw, 1.75rem))); }
    .tile__media--fade { left: 30%; }
    .tile__media--fade img { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%); mask-image: linear-gradient(90deg, transparent 0%, #000 32%); }
    .tile__content { position: relative; max-width: 560px; }
    .tile__eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; width: fit-content; padding: 0.4rem 0.8rem; border: 1px solid rgb(255 255 255 / 0.16); border-radius: 999px; background: rgb(255 255 255 / 0.1); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
    .tile__pulse { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; animation: pulse 2s infinite; }
    .tile__title { margin: 1.1rem 0 1rem; font-size: clamp(2.6rem, 1.4rem + 3.8vw, 5.1rem); line-height: 0.98; letter-spacing: -0.045em; }
    .tile__text { max-width: 40ch; color: rgb(255 255 255 / 0.74); font-size: clamp(1rem, 0.95rem + 0.2vw, 1.1rem); }
    .tile__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
    .tile--side .tile__title { max-width: 15ch; margin: 0.75rem 0 0.35rem; font-size: clamp(1.35rem, 1rem + 1vw, 1.95rem); }
    .tile--side .tile__text { font-size: 0.92rem; }
    .tile__link { margin-top: 0.9rem; color: #fff; font-size: 0.9rem; }
    .tile__link::after { content: ""; position: absolute; inset: 0; }
    .tile--side:hover .tile__link .icon { translate: 4px 0; }
    .hero-chip { position: absolute; right: clamp(1rem, 2vw, 1.75rem); bottom: clamp(1rem, 2vw, 1.75rem); display: flex; align-items: center; gap: 0.85rem; max-width: 340px; padding: 0.55rem 0.6rem 0.55rem 0.55rem; border: 1px solid rgb(255 255 255 / 0.14); border-radius: 20px; background: rgb(22 22 26 / 0.55); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); color: #fff; transition: transform 0.3s var(--ease), background-color 0.3s; }
    .hero-chip:hover { transform: translateY(-3px); background: rgb(30 30 36 / 0.72); }
    .hero-chip__media { flex: none; width: 60px; height: 60px; overflow: hidden; border-radius: 14px; background: var(--media-bg); }
    .hero-chip__media img { width: 100%; height: 100%; object-fit: cover; }
    .hero-chip__body { display: grid; gap: 0.1rem; min-width: 0; }
    .hero-chip__name { overflow: hidden; font-size: 0.92rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
    .hero-chip__price { display: flex; align-items: baseline; gap: 0.45rem; font-size: 0.9rem; }
    .hero-chip__price strong { font-weight: 800; }
    .hero-chip__price s { color: rgb(255 255 255 / 0.55); font-size: 0.8rem; }
    .hero-chip__go { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 999px; background: #fff; color: #0a0b0f; }
    .hero-chip__go .icon { width: 18px; height: 18px; }

    /* Category grid */
    .cats { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(0.6rem, 1.2vw, 1rem); }
    .cat { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; text-align: center; }
    .cat__media { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-lg); background: var(--media-bg); transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
    .cat__media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform 0.7s var(--ease); }
    .cat:hover .cat__media { transform: translateY(-4px); box-shadow: var(--shadow); }
    .cat:hover .cat__media img { transform: scale(1.07); }
    .cat__name { font-size: 0.93rem; font-weight: 700; line-height: 1.25; }
    .cat__meta { margin-top: -0.45rem; color: var(--muted); font-size: 0.8rem; }

    /* Deal of the day */
    .deal { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); overflow: hidden; border-radius: var(--radius-xl); background: #0b0c12; color: #fff; color-scheme: dark; }
    .deal::before { content: ""; position: absolute; top: -35%; right: -12%; z-index: -1; width: 62%; aspect-ratio: 1; background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 42%, transparent), transparent); }
    .deal__media { position: relative; min-height: 480px; }
    .deal__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    .deal__badge { position: absolute; top: 1.25rem; left: 1.25rem; display: grid; place-content: center; justify-items: center; width: 96px; height: 96px; padding: 0.5rem; border-radius: 50%; background: var(--sale); color: var(--sale-contrast); font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; line-height: 1.05; text-align: center; white-space: nowrap; rotate: -10deg; box-shadow: 0 16px 34px -12px rgb(229 56 59 / 0.7); }
    .deal__badge span { max-width: 100%; font-family: var(--font-sans); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; }
    .deal__body { display: flex; flex-direction: column; justify-content: center; gap: 1.1rem; padding: clamp(1.5rem, 4vw, 3.5rem); }
    .deal__eyebrow { display: inline-flex; align-items: center; gap: 0.45rem; color: #ffb4a3; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
    .deal__eyebrow .icon { color: #ff7a59; }
    .deal__title { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.5rem); line-height: 1.08; }
    .deal__title span { color: rgb(255 255 255 / 0.5); }
    .deal__text { max-width: 52ch; color: rgb(255 255 255 / 0.7); }
    .deal__highlights { display: flex; flex-wrap: wrap; gap: 0.5rem; }
    .deal__highlights li { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.75rem; border: 1px solid rgb(255 255 255 / 0.1); border-radius: 999px; background: rgb(255 255 255 / 0.07); font-size: 0.82rem; font-weight: 550; }
    .deal__highlights .icon { width: 15px; height: 15px; color: #4ade80; }
    .countdown { display: flex; gap: 0.6rem; }
    .countdown__unit { display: grid; justify-items: center; min-width: 78px; padding: 0.75rem 0.4rem 0.6rem; text-align: center; border: 1px solid rgb(255 255 255 / 0.1); border-radius: 16px; background: rgb(255 255 255 / 0.06); }
    .countdown__value { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -0.02em; }
    .countdown__label { max-width: 100%; margin-top: 0.35rem; color: rgb(255 255 255 / 0.55); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
    .deal__buy { display: grid; gap: 1.1rem; margin-top: 0.4rem; padding-top: 1.4rem; border-top: 1px solid rgb(255 255 255 / 0.1); }
    .price--deal { align-items: center; }
    .price--deal .price__now { color: #fff; font-size: clamp(1.8rem, 1.4rem + 1vw, 2.4rem); }
    .price--deal .price__was { color: rgb(255 255 255 / 0.5); font-size: 1rem; }
    .deal__stock { display: grid; gap: 0.5rem; max-width: 440px; }
    .deal__stock-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; color: rgb(255 255 255 / 0.72); font-size: 0.82rem; }
    .deal__stock .meter { background: rgb(255 255 255 / 0.1); }
    .meter--hot > span { background: linear-gradient(90deg, #ffb020, #ff6a3d, var(--sale)); }
    .deal__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

    /* Promo banners */
    .promos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.75rem, 1.4vw, 1rem); }
    .promo { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; min-height: clamp(340px, 30vw, 430px); padding: clamp(1.25rem, 3vw, 2.5rem); overflow: hidden; border-radius: var(--radius-lg); background: #0b0c10; color: #fff; }
    .promo__media { position: absolute; inset: 0; z-index: -2; }
    .promo__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
    .promo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(5 6 10 / 0.7) 0%, rgb(5 6 10 / 0) 55%), linear-gradient(75deg, rgb(5 6 10 / 0.85) 0%, rgb(5 6 10 / 0.45) 45%, rgb(5 6 10 / 0) 78%); }
    .promo:hover .promo__media img { transform: scale(1.04); }
    .promo__title { max-width: 18ch; margin: 0.8rem 0 0.4rem; font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.35rem); }
    .promo__text { max-width: 40ch; color: rgb(255 255 255 / 0.76); }
    .promo__link { margin-top: 1.4rem; }

    /* Brands */
    .brand--sony, .brand--samsung, .brand--lg, .brand--dji, .brand--jbl, .brand--dell { letter-spacing: 0.1em; text-transform: uppercase; }
    .brand--apple, .brand--logitech { font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.04em; }
    .brand--fujifilm, .brand--microsoft { font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
    .brand--canon { font-style: italic; letter-spacing: -0.01em; }

    /* Newsletter */
    .newsletter { position: relative; isolation: isolate; padding: clamp(1.75rem, 5vw, 4rem); overflow: hidden; border-radius: var(--radius-xl); background: linear-gradient(125deg, color-mix(in oklab, var(--accent) 80%, black) 0%, var(--accent) 45%, var(--accent-2) 100%); color: #fff; color-scheme: dark; }
    .newsletter::before, .newsletter::after { content: ""; position: absolute; z-index: -1; aspect-ratio: 1; border-radius: 50%; }
    .newsletter::before { top: -45%; left: -10%; width: 55%; background: radial-gradient(closest-side, rgb(255 255 255 / 0.2), transparent); }
    .newsletter::after { right: -8%; bottom: -60%; width: 50%; background: radial-gradient(closest-side, rgb(255 94 138 / 0.5), transparent); }
    .newsletter__eyebrow { color: rgb(255 255 255 / 0.85); }
    .newsletter__text { color: rgb(255 255 255 / 0.84); }
    .newsletter__form { padding: 0.4rem; border: 1px solid rgb(255 255 255 / 0.28); border-radius: 999px; background: rgb(255 255 255 / 0.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color 0.2s, border-color 0.2s; }
    .newsletter__form:focus-within { border-color: rgb(255 255 255 / 0.6); background: rgb(255 255 255 / 0.2); }
    .newsletter__form input { color: #fff; }
    .newsletter__form input::placeholder { color: rgb(255 255 255 / 0.72); }
    .newsletter__message.is-error { color: #ffe0e0; }

    /* Footer */
    .site-footer { color-scheme: dark; }
    .logo--light .logo__word { color: #fff; }

    @media (max-width: 1140px) {
        .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    }

    @media (max-width: 1023px) {
        .header-nav { display: none; }
        .header-main { grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "menu logo search actions"; }
        .header-main__menu { display: inline-grid; margin-left: -0.5rem; }
        /* Enter (or the keyboard's search key) submits: the field keeps the room for what is typed. */
        .search__kbd, .search__submit, .cart-btn__label { display: none; }
        .search__field { padding-right: 1rem; }
        .cart-btn { padding: 0 0.35rem 0 0.75rem; }
        .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; min-height: 0; }
        .tile--main { grid-column: 1 / -1; grid-row: auto; justify-content: flex-end; min-height: clamp(500px, 78vw, 620px); }
        .tile--main::after { background: linear-gradient(to top, rgb(10 10 12 / 0.94) 0%, rgb(10 10 12 / 0.6) 42%, rgb(10 10 12 / 0.05) 72%); }
        .tile__media--fade { left: 0; }
        .tile__media--fade img { -webkit-mask-image: none; mask-image: none; }
        .tile--side { min-height: 280px; }
        .hero-chip { top: 1rem; right: 1rem; bottom: auto; }
        .tile--main:has(.hero-chip) { padding-top: calc(60px + 1.1rem + 2rem); padding-bottom: clamp(1.5rem, 4.2vw, 4rem); }
        .deal { grid-template-columns: 1fr; }
        .deal__media { min-height: 0; aspect-ratio: 16 / 9; }
        .promos { grid-template-columns: 1fr; }
        .mega:popover-open { grid-template-columns: 1fr; }
        .mega__promo { display: none; }
    }

    /* Tablets and phones: the search gets its own full-width row. */
    @media (max-width: 900px) {
        .header-main { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "menu logo actions" "search search search"; row-gap: 0.65rem; min-height: 0; padding-block: 0.55rem 0.8rem; }
        .search { max-width: none; }
        .search__field { height: 46px; }
    }

    @media (max-width: 760px) {
        .announce__links a { display: none; }
        .logo { font-size: 1.4rem; }
        .logo__mark { width: 34px; height: 34px; border-radius: 11px; }
        .cart-btn { padding: 0 0.35rem 0 0.75rem; }
        .cart-btn__label { display: none; }
        .tile--main { min-height: 540px; padding: 1.5rem; }
        .tile--main:has(.hero-chip) { padding-top: calc(48px + 1.1rem + 2rem); padding-bottom: 1.5rem; }
        .tile__title { font-size: clamp(2.4rem, 1.6rem + 4vw, 3.2rem); }
        .tile__actions { margin-top: 1.5rem; }
        .tile__actions .btn { min-height: 50px; padding-inline: 1.3rem; font-size: 0.95rem; }
        .tile--side { min-height: 230px; padding: 1.15rem; }
        .tile--side .tile__text { display: none; }
        .tile--side .tile__title { font-size: 1.3rem; }
        .hero-chip { max-width: calc(100% - 2rem); padding-right: 0.55rem; }
        .hero-chip__media { width: 48px; height: 48px; border-radius: 12px; }
        .cats { grid-auto-columns: 36%; grid-auto-flow: column; grid-template-columns: none; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 0.25rem; overflow-x: auto; scroll-padding-inline: var(--gutter); scroll-snap-type: x mandatory; scrollbar-width: none; }
        .cats > li { scroll-snap-align: start; }
        .countdown__unit { min-width: 0; flex: 1; }
        .countdown__label { font-size: 0.6rem; letter-spacing: 0.04em; }
        .deal__media { aspect-ratio: 4 / 3; }
        .deal__badge { width: 80px; height: 80px; font-size: 1rem; }
        .newsletter__form { padding: 0.5rem; border-radius: 22px; }
        .newsletter__form input { min-height: 46px; }
    }

    @media (max-width: 420px) {
        .bento { grid-template-columns: 1fr; }
        .tile--side { min-height: 200px; }
        .cats { grid-auto-columns: 42%; }
        .header-actions .theme-toggle { display: none; }
    }
}

@media (max-width: 1023px) {
    :root { --header-h: 76px; }
}

@media (max-width: 900px) {
    :root { --header-h: 118px; }
}
