/* ============================================================
   ShowGames design system
   Light: white / light grey surfaces, cyan + blue accents, violet/pink
   Dark: graphite, ice cyan, neon lime
   ============================================================ */

:root {
    color-scheme: light;

    --bg: #f4f7fb;
    --bg-soft: #eaf0f8;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --surface-3: #eef3f9;
    --text: #0e1726;
    --text-soft: #42536b;
    --muted: #6b7c94;
    --border: #dbe4f0;
    --border-strong: #c3d2e4;

    --accent: #0891b2;
    --accent-strong: #0e7490;
    --accent-soft: #cffafe;
    --accent-contrast: #ffffff;
    --blue: #2563eb;
    --violet: #7c3aed;
    --pink: #db2777;
    --lime: #65a30d;
    --amber: #b45309;
    --rose: #e11d48;
    --green: #15803d;

    --success-bg: #ecfdf5;
    --success-border: #a7f3d0;
    --error-bg: #fff1f2;
    --error-border: #fecdd3;
    --warning-bg: #fffbeb;
    --warning-border: #fde68a;

    --shadow-sm: 0 1px 2px rgba(14, 23, 38, 0.06);
    --shadow-md: 0 10px 30px rgba(14, 23, 38, 0.08);
    --shadow-lg: 0 24px 60px rgba(14, 23, 38, 0.14);

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    --container: 1280px;
    --header-h: 90px;

    --font: "Google Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Google Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

    --gradient-hero: radial-gradient(1200px 500px at 15% -10%, rgba(8, 145, 178, 0.20), transparent 60%),
        radial-gradient(900px 500px at 85% 0%, rgba(124, 58, 237, 0.16), transparent 55%),
        linear-gradient(135deg, #ffffff 0%, #eef8fc 55%, #f4efff 100%);
}

html[data-theme="dark"] {
    color-scheme: dark;

    --bg: #0a0e14;
    --bg-soft: #0f1620;
    --surface: #121a25;
    --surface-2: #16202c;
    --surface-3: #1c2836;
    --text: #e8eef7;
    --text-soft: #b9c7d8;
    --muted: #8a9bb0;
    --border: #22303f;
    --border-strong: #314255;

    --accent: #22d3ee;
    --accent-strong: #67e8f9;
    --accent-soft: rgba(34, 211, 238, 0.12);
    --accent-contrast: #06202a;
    --blue: #60a5fa;
    --violet: #a78bfa;
    --pink: #f472b6;
    --lime: #a3e635;
    --amber: #fbbf24;
    --rose: #fb7185;
    --green: #4ade80;

    --success-bg: rgba(34, 197, 94, 0.10);
    --success-border: rgba(74, 222, 128, 0.30);
    --error-bg: rgba(244, 63, 94, 0.10);
    --error-border: rgba(251, 113, 133, 0.30);
    --warning-bg: rgba(251, 191, 36, 0.10);
    --warning-border: rgba(251, 191, 36, 0.30);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 34px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.55);

    --gradient-hero: radial-gradient(1100px 480px at 12% -10%, rgba(34, 211, 238, 0.16), transparent 60%),
        radial-gradient(900px 520px at 88% 0%, rgba(163, 230, 53, 0.10), transparent 55%),
        linear-gradient(135deg, #0c121a 0%, #101b26 55%, #131a22 100%);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    font-size: 16px;
    min-height: 100vh;
}

body.no-scroll {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    line-height: 1.2;
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.8rem, 2.6vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 1.4vw, 1.3rem); }

p { margin: 0 0 1em; }

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: var(--accent);
    color: var(--accent-contrast);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 1281px) {
    :root {
        --container: 1680px;
    }
}

.container--narrow {
    max-width: 860px;
}

.grid {
    display: grid;
    gap: 20px;
}

.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;
}

.icon {
    width: 1.15em;
    height: 1.15em;
    flex: 0 0 auto;
    vertical-align: -0.15em;
}

.cart-count[hidden] {
    display: none;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 1000;
    padding: 10px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: top .2s ease;
}

.skip-link:focus {
    top: 12px;
}

/* ---------------- Header ---------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 0;
}

.topbar {
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-soft);
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 36px;
}

.topbar__links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar__links a:hover {
    color: var(--accent);
}

.topbar__note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}

.topbar__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 20%, transparent);
}

.header-main {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand__logo {
    display: block;
    height: 44px;
    width: auto;
    max-width: 100%;
}

.brand__logo--dark {
    display: none;
}

html[data-theme="dark"] .brand__logo--light {
    display: none;
}

html[data-theme="dark"] .brand__logo--dark {
    display: block;
}

.brand__mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.03em;
    color: #04121a;
    background: linear-gradient(135deg, #22d3ee, #a3e635);
    box-shadow: 0 8px 20px rgba(34, 211, 238, 0.35);
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand__name {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.brand__tagline {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.header-search {
    position: relative;
    flex: 1;
    max-width: 560px;
}

.header-search__form {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    background: var(--surface-3);
    border: 0;
    border-radius: 6px;
    padding: 3px 3px 3px 12px;
    transition: box-shadow .15s ease, background .15s ease;
}

.header-search__form:focus-within {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}

.header-search__input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0;
    line-height: 1.2;
    outline: none;
    font-size: 14px;
}

.header-search__input::placeholder {
    color: var(--muted);
}

.header-search__button {
    border: 0;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--blue));
    color: #fff;
    transition: transform .15s ease, filter .15s ease;
}

.header-search__button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.suggest {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: none;
    z-index: 120;
}

.suggest.is-open {
    display: block;
}

.suggest__head {
    padding: 10px 16px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
}

.suggest__list {
    list-style: none;
    margin: 0;
    padding: 6px;
}

.suggest__item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: var(--radius-sm);
    min-width: 0;
}

.suggest__item:hover,
.suggest__item.is-active {
    background: var(--surface-3);
}

.suggest__img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--surface-3);
    flex-shrink: 0;
}

.suggest__body {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.suggest__name {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggest__meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
    overflow: hidden;
    white-space: nowrap;
}

.suggest__price {
    flex: 0 0 auto;
    margin-left: 4px;
    font-weight: 700;
    white-space: nowrap;
    font-size: 14px;
}

.suggest__empty {
    padding: 18px 16px;
    color: var(--muted);
    font-size: 14px;
}

.suggest__footer {
    display: block;
    padding: 10px 16px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--accent);
    background: var(--surface-2);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    min-height: 38px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-soft);
    transition: background .15s ease, color .15s ease;
}

.icon-btn:hover {
    background: var(--surface-2);
    color: var(--text);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

.icon-btn__label {
    font-size: 13px;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 2px;
    min-width: 18px;
    height: 18px;
    border-radius: 99px;
    background: var(--pink);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: grid;
    place-items: center;
    padding: 0 5px;
}

.theme-toggle {
    border: 0;
    background: var(--surface-2);
    border-radius: 6px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--text-soft);
}

.theme-toggle:hover {
    color: var(--accent);
    background: var(--surface-3);
}

.theme-toggle .moon { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .moon { display: block; }

.menu-toggle {
    display: none;
    border: 1px solid var(--border);
    background: var(--surface);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    place-items: center;
}

/* ---------------- Main navigation ---------------- */

.main-nav {
    position: relative;
    z-index: 110;
    border-top: 0;
    -webkit-background-clip: initial, initial, initial;
    background-color: initial;
    background-image:
        linear-gradient(135deg, rgba(19, 176, 223, .26) 0, rgba(19, 176, 223, .26) 23%, rgba(16, 160, 197, .26) 23%, rgba(16, 160, 197, .26) 65%, rgba(13, 144, 172, .26) 65%, rgba(13, 144, 172, .26) 70%, rgba(9, 129, 146, .26) 70%, rgba(9, 129, 146, .26) 74%, rgba(6, 113, 121, .26) 74%, rgba(6, 113, 121, .26) 90%, rgba(3, 97, 95, .26) 90%, rgba(3, 97, 95, .26) 100%),
        linear-gradient(45deg, rgba(65, 234, 230, .26) 0, rgba(65, 234, 230, .26) 28%, rgba(88, 192, 215, .26) 28%, rgba(88, 192, 215, .26) 55%, rgba(110, 150, 201, .26) 55%, rgba(110, 150, 201, .26) 66%, rgba(133, 107, 186, .26) 66%, rgba(133, 107, 186, .26) 80%, rgba(155, 65, 172, .26) 80%, rgba(155, 65, 172, .26) 85%, rgba(178, 23, 157, .26) 85%, rgba(178, 23, 157, .26) 100%),
        linear-gradient(90deg, #1BC2F6 0, #1BC2F6 6%, #27AEED 6%, #27AEED 32%, #329BE5 32%, #329BE5 40%, #3E87DC 40%, #3E87DC 66%, #4A74D3 66%, #4A74D3 72%, #5660CA 72%, #5660CA 86%, #614DC2 86%, #614DC2 96%, #6D39B9 96%, #6D39B9 100%);
}

.main-nav__inner {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 50px;
    overflow-x: auto;
    scrollbar-width: none;
}

.main-nav__inner::-webkit-scrollbar {
    display: none;
}

.main-nav__link {
    padding: 13px 14px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 1px 2px rgba(10, 20, 40, 0.16);
    transition: color .15s ease, border-color .15s ease;
}

.main-nav__catalog {
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 0 0 auto;
    width: 300px;
    height: 50px;
    margin-right: 10px;
    background: url('/images/catalog-button.png') center / cover no-repeat;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(45, 0, 25, 0.28);
    transition: filter .15s ease;
}

.main-nav__catalog:hover {
    color: #ffffff;
    filter: brightness(1.06);
}

.main-nav__catalog-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.main-nav__link--mobile {
    display: none;
}

.main-nav__close {
    display: none;
}

/* ---------------- Mega menu ---------------- */

.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 150;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.mega-menu.is-open {
    display: block;
    animation: megaMenuIn .16s ease;
}

@keyframes megaMenuIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.mega-menu__inner {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    min-height: 360px;
    padding-top: 0;
    padding-bottom: 0;
}

.mega-menu__roots {
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 10px 0;
}

.mega-menu__root {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 20px;
    font-size: 15.5px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: background .12s ease, color .12s ease;
}

.mega-menu__root:last-child {
    border-bottom: 0;
}

.mega-menu__root svg {
    width: 16px;
    height: 16px;
    color: var(--muted);
    flex-shrink: 0;
}

.mega-menu__root:hover,
.mega-menu__root.is-active {
    background: var(--surface-2);
    color: var(--accent);
}

.mega-menu__root:hover svg,
.mega-menu__root.is-active svg {
    color: var(--accent);
}

.mega-menu__panels {
    background: var(--surface-2);
    padding: 26px 30px 28px;
    max-height: calc(100vh - var(--header-h) - 130px);
    overflow-y: auto;
}

.mega-menu__panel {
    display: none;
}

.mega-menu__panel.is-active {
    display: block;
}

.mega-menu__columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px 30px;
}

.mega-menu__heading {
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text);
}

.mega-menu__heading:hover {
    color: var(--accent);
}

.mega-menu__column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 7px;
}

.mega-menu__column li a {
    font-size: 13.5px;
    color: var(--text-soft);
    line-height: 1.35;
}

.mega-menu__column li a:hover {
    color: var(--accent);
}

.mega-menu__all {
    display: inline-block;
    margin-top: 22px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
}

.mega-menu__all:hover {
    color: var(--accent-strong);
}

.main-nav__link:hover,
.main-nav__link.is-active {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.main-nav__link--accent {
    margin-left: auto;
    color: #ffffff;
}

/* ---------------- Buttons & badges ---------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 20px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    font-weight: 650;
    font-size: 14.5px;
    background: var(--surface);
    color: var(--text);
    transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
    text-align: center;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--blue) 100%);
    color: #fff;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 35%, transparent);
}

.btn--primary:hover {
    box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 45%, transparent);
}

.btn--accent {
    background: linear-gradient(135deg, var(--violet), var(--pink));
    color: #fff;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--violet) 30%, transparent);
}

.btn--outline {
    border-color: var(--border-strong);
    background: transparent;
}

.btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn--ghost {
    background: var(--surface-2);
    border-color: var(--border);
}

.btn--lime {
    background: var(--lime);
    color: #08120a;
}

/* Storefront buttons: unified geometric gradient */
.site-body .btn,
.site-body .btn--primary,
.site-body .btn--accent,
.site-body .btn--outline,
.site-body .btn--ghost,
.site-body .btn--lime {
    border: 0;
    border-radius: 0;
    color: #fff;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    background-color: transparent;
    background-image:
        linear-gradient(105deg, rgba(255, 255, 255, 0.16) 0 14%, transparent 14% 100%),
        linear-gradient(90deg, #25c9f2 0%, #22b8ee 20%, #2a9fe6 40%, #347fd8 58%, #4d66cc 76%, #6546bd 100%);
    clip-path: polygon(0 0, 100% 0, 93% 100%, 0 100%);
    box-shadow: 0 10px 24px rgba(37, 201, 242, 0.20);
}

.site-body .btn:hover {
    color: #fff;
    filter: brightness(1.08);
    box-shadow: 0 14px 30px rgba(37, 201, 242, 0.28);
}

.site-body .btn--outline:hover {
    color: #fff;
    border-color: transparent;
}

.site-body .btn:active {
    filter: brightness(.98);
}

.btn--block {
    width: 100%;
}

.btn--sm {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 13px;
}

.btn--lg {
    min-height: 52px;
    padding: 14px 26px;
    font-size: 15.5px;
}

.btn[disabled],
.btn.is-disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn.is-loading {
    color: transparent;
    position: relative;
}

.btn.is-loading::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-soft);
    line-height: 1.35;
}

.badge--in-stock {
    background: var(--success-bg);
    border-color: var(--success-border);
    color: var(--green);
}

.badge--out {
    background: var(--error-bg);
    border-color: var(--error-border);
    color: var(--rose);
}

.badge--preorder {
    background: color-mix(in srgb, var(--violet) 12%, transparent);
    border-color: color-mix(in srgb, var(--violet) 35%, transparent);
    color: var(--violet);
}

.badge--on-order {
    background: var(--warning-bg);
    border-color: var(--warning-border);
    color: var(--amber);
}

.badge--sale {
    background: var(--pink);
    border-color: var(--pink);
    color: #fff;
}

.badge--quick {
    background: color-mix(in srgb, var(--blue) 12%, transparent);
    border-color: color-mix(in srgb, var(--blue) 30%, transparent);
    color: var(--blue);
}

/* ---------------- Hero ---------------- */

.hero {
    background: #1a0b2a url('/images/banner-background.png') center / cover no-repeat;
    border-bottom: 0;
    padding: 34px 0 40px;
    overflow: hidden;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 22px;
    align-items: stretch;
}

.hero--slider {
    padding: 26px 0 26px;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(320px, 1fr);
    gap: 20px;
    align-items: stretch;
}

.hero-layout__main {
    min-width: 0;
}

.hero-side-banners {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    min-height: 0;
}

.hero-side-banner {
    position: relative;
    display: block;
    min-height: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #0d0714;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.30);
}

.hero-side-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.hero-side-banner:hover img {
    transform: scale(1.03);
}

.banner-slider {
    position: relative;
    max-width: none;
    margin: 0;
}

.banner-slider__viewport {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 6px;
    background: #0d0714;
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.35),
        0 24px 64px -18px rgba(32, 198, 237, 0.45);
}

.banner-slider__track {
    display: flex;
    transition: transform .45s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

.banner-slide {
    flex: 0 0 100%;
    display: block;
    line-height: 0;
}

.banner-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 1966 / 800;
    object-fit: cover;
    display: block;
}

.banner-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    z-index: 2;
    transition: transform .15s ease, filter .15s ease;
}

.banner-slider__arrow img {
    display: block;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
}

.banner-slider__arrow:hover {
    transform: translateY(-50%) scale(1.06);
}

.banner-slider__arrow--prev {
    left: 16px;
}

.banner-slider__arrow--next {
    right: 16px;
}

.hero__main--fallback {
    max-width: 900px;
    margin: 0 auto;
}

.hero__main {
    position: relative;
    padding: clamp(26px, 4vw, 54px);
    border-radius: 6px;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.hero__eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.hero__title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.04;
    margin-bottom: 16px;
    max-width: 16ch;
}

.hero__title em {
    font-style: normal;
    background: linear-gradient(120deg, var(--accent), var(--violet) 60%, var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__lead {
    color: var(--text-soft);
    max-width: 46ch;
    font-size: 16px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.hero__stats {
    display: flex;
    gap: 26px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero__stat strong {
    display: block;
    font-size: 22px;
    font-family: var(--font-display);
}

.hero__stat span {
    font-size: 12.5px;
    color: var(--muted);
}

.hero__art {
    position: absolute;
    right: -40px;
    bottom: -30px;
    width: 46%;
    opacity: .95;
    filter: drop-shadow(0 18px 40px rgba(8, 145, 178, .25));
    pointer-events: none;
}

.hero__side {
    display: grid;
    gap: 18px;
}

.promo-card {
    position: relative;
    padding: 22px;
    border-radius: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 132px;
}

.promo-card--violet {
    background: linear-gradient(150deg, color-mix(in srgb, var(--violet) 14%, var(--surface)), var(--surface));
    border-color: color-mix(in srgb, var(--violet) 30%, var(--border));
}

.promo-card--cyan {
    background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface));
    border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}

.promo-card__label {
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.promo-card__title {
    font-family: var(--font-display);
    font-size: 20px;
    margin: 6px 0 4px;
}

.promo-card__text {
    font-size: 13.5px;
    color: var(--text-soft);
    margin: 0;
}

.promo-card__link {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    margin-top: 12px;
}

/* ---------------- Sections ---------------- */

.section {
    padding: 44px 0;
}

.section--tight {
    padding: 28px 0;
}

.section--alt {
    background: var(--surface-2);
    border-block: 1px solid var(--border);
}

.section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.section__title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section__title::before {
    content: "";
    width: 4px;
    height: 26px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--accent), var(--violet));
}

.section__link {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

.section__sub {
    color: var(--muted);
    font-size: 14px;
    margin: -12px 0 22px;
}

/* ---------------- Category tiles ---------------- */

.category-showcase {
    margin-top: 18px;
    padding: clamp(18px, 2vw, 30px);
    border-radius: 6px;
    background: #1b2330;
}

.category-showcase__grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: clamp(10px, 1.4vw, 20px);
}

.category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    min-width: 0;
}

.category-tile__media {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 6px;
    background: #000;
    transition: transform .2s ease, box-shadow .2s ease;
}

.category-tile__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.category-tile__name {
    color: #fff;
    font-size: clamp(12px, 1.05vw, 15px);
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.category-tile:hover .category-tile__media {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(32, 198, 237, 0.6), 0 10px 28px rgba(32, 198, 237, 0.18);
}

.category-tile:hover .category-tile__media img {
    transform: scale(1.04);
}

.category-tile:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.cat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 150px;
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface) 65%);
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.cat-card:nth-child(4n+2) {
    background: linear-gradient(145deg, color-mix(in srgb, var(--violet) 12%, var(--surface)), var(--surface) 65%);
}

.cat-card:nth-child(4n+3) {
    background: linear-gradient(145deg, color-mix(in srgb, var(--pink) 10%, var(--surface)), var(--surface) 65%);
}

.cat-card:nth-child(4n+4) {
    background: linear-gradient(145deg, color-mix(in srgb, var(--lime) 12%, var(--surface)), var(--surface) 65%);
}

.cat-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    color: var(--text);
}

.cat-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
    padding: 16px 14px;
    opacity: .38;
    transition: transform .3s ease, opacity .3s ease;
}

.cat-card:hover .cat-card__img {
    transform: scale(1.05);
    opacity: .45;
}

.cat-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, color-mix(in srgb, var(--surface) 88%, transparent) 100%);
}

.cat-card__body {
    position: relative;
}

.cat-card__name {
    font-weight: 700;
    font-size: 16px;
    margin: 0;
}

.cat-card__count {
    font-size: 12.5px;
    color: var(--muted);
}

/* ---------------- Product grid & card ---------------- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.product-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.p-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #1b2330;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    overflow: hidden;
    color: #fff;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
    height: 100%;
}

.p-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(3, 9, 20, 0.35);
    border-color: rgba(32, 198, 237, 0.45);
}

.p-card__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background: #fff;
    overflow: hidden;
}

.p-card__img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    padding: 0;
    display: block;
    transition: transform .3s ease;
}

.p-card:hover .p-card__img {
    transform: scale(1.04);
}

.p-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    z-index: 2;
}

.p-card .badge {
    border: 0;
    border-radius: 0;
    padding: 8px 13px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.p-card .badge--in-stock {
    background: #1d7a39;
    color: #fff;
}

.p-card .badge--out {
    background: #a92f3f;
    color: #fff;
}

.p-card .badge--preorder {
    background: #6c3fc4;
    color: #fff;
}

.p-card .badge--on-order {
    background: #b06a16;
    color: #fff;
}

.p-card .badge--sale {
    background: #e0218a;
    color: #fff;
}

.p-card__fav {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 36, 0.65);
    display: grid;
    place-items: center;
    color: #b7c4d6;
    z-index: 2;
}

.p-card__fav:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.p-card__body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1;
}

.p-card__brand {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #9aabc2;
}

.p-card__brand:hover {
    color: #38c6ef;
}

.p-card__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.p-card__title a {
    color: #fff;
}

.p-card__title a:hover {
    color: #38c6ef;
}

.p-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #8fa1b9;
}

.p-card__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 10px;
}

.p-card__price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.p-card__price {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    font-family: var(--font-display);
    color: #fff;
}

.p-card__old {
    font-size: 14px;
    color: #98a8bd;
    text-decoration: line-through;
}

.p-card__actions {
    margin: 0;
    display: flex;
    flex: 0 0 52%;
    max-width: 210px;
}

.p-card__actions .btn {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    font-size: 13px;
}

.p-card__actions .btn--outline {
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    background: transparent;
}

.p-card__actions .btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.p-card .p-card__buy,
.p-card .p-card__contact {
    position: relative;
    width: 100%;
    min-height: 48px;
    padding: 10px 18px;
    border: 0;
    border-radius: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    background-color: transparent;
    background-image:
        linear-gradient(105deg, rgba(255, 255, 255, 0.16) 0 14%, transparent 14% 100%),
        linear-gradient(90deg, #25c9f2 0%, #22b8ee 20%, #2a9fe6 40%, #347fd8 58%, #4d66cc 76%, #6546bd 100%);
    clip-path: polygon(0 0, 100% 0, 93% 100%, 0 100%);
    transition: filter .15s ease;
}

.p-card .p-card__buy:hover,
.p-card .p-card__contact:hover {
    filter: brightness(1.1);
}

.p-card .p-card__more {
    width: 100%;
    min-height: 48px;
    padding: 10px 18px;
    border: 0;
    border-radius: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    background-color: transparent;
    background-image:
        linear-gradient(105deg, rgba(255, 255, 255, 0.20) 0 14%, transparent 14% 100%),
        linear-gradient(90deg, #8f9aaa 0%, #7d899a 20%, #6b7789 40%, #596677 58%, #475466 76%, #364354 100%);
    clip-path: polygon(0 0, 100% 0, 93% 100%, 0 100%);
    box-shadow: 0 4px 12px rgba(14, 23, 38, 0.16);
    transition: filter .15s ease;
}

.p-card .p-card__more:hover {
    filter: brightness(1.08);
}

html[data-theme="dark"] .p-card .p-card__more {
    color: #fff;
    background-image:
        linear-gradient(105deg, rgba(255, 255, 255, 0.14) 0 14%, transparent 14% 100%),
        linear-gradient(90deg, #aab4c2 0%, #939fae 20%, #7c8999 40%, #657284 58%, #4f5c6e 76%, #3b4759 100%);
    box-shadow: none;
}

.p-card__oos {
    font-size: 13px;
    font-weight: 700;
    color: #ff7a8a;
    padding: 8px 0;
}

html[data-theme="light"] .p-card {
    background: rgba(110, 150, 201, 0.26);
    border-color: rgba(81, 108, 144, 0.28);
    color: #0e1726;
}

html[data-theme="light"] .p-card:hover {
    box-shadow: 0 18px 40px rgba(81, 108, 144, 0.20);
    border-color: rgba(81, 108, 144, 0.45);
}

html[data-theme="light"] .p-card__brand {
    color: #516c90;
}

html[data-theme="light"] .p-card__title a {
    color: #0e1726;
}

html[data-theme="light"] .p-card__meta {
    color: #516c90;
}

html[data-theme="light"] .p-card__price {
    color: #0e1726;
}

html[data-theme="light"] .p-card__old {
    color: #516c90;
}

/* ---------------- Layout: catalog ---------------- */

.catalog-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.filters {
    position: sticky;
    top: calc(var(--header-h) + 60px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.filters__title {
    font-weight: 700;
    font-size: 15px;
    margin: 0;
}

.filters__reset {
    font-size: 12.5px;
    color: var(--muted);
    background: none;
    border: none;
    padding: 0;
}

.filters__reset:hover {
    color: var(--accent);
}

.filter-group {
    border-top: 1px solid var(--border);
    padding: 14px 0;
}

.filter-group:first-of-type {
    border-top: 0;
}

.filter-group__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: 0;
    padding: 0;
    font-weight: 650;
    font-size: 14px;
    text-align: left;
    margin-bottom: 10px;
}

.filter-group__title svg {
    width: 16px;
    height: 16px;
    color: var(--muted);
    transition: transform .2s ease;
}

.filter-group.is-collapsed .filter-group__title svg {
    transform: rotate(-90deg);
}

.filter-group.is-collapsed .filter-group__body {
    display: none;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 0;
    font-size: 13.5px;
    color: var(--text-soft);
    cursor: pointer;
}

.filter-option:hover {
    color: var(--text);
}

.filter-option input {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
}

.filter-option__count {
    margin-left: auto;
    font-size: 12px;
    color: var(--muted);
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-inputs input {
    width: 100%;
    min-width: 0;
}

.filters__apply {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.catalog-toolbar__count {
    font-size: 14px;
    color: var(--muted);
}

.catalog-toolbar__count strong {
    color: var(--text);
}

.sort-select {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}

.select,
.input,
.textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.select:focus,
.input:focus,
.textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}

.textarea {
    min-height: 110px;
    resize: vertical;
}

.field {
    margin-bottom: 14px;
}

.field__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.field__label .req {
    color: var(--rose);
}

.field__hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.field__error {
    font-size: 12.5px;
    color: var(--rose);
    margin-top: 5px;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13.5px;
    color: var(--text-soft);
}

.checkbox input {
    margin-top: 3px;
    accent-color: var(--accent);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    background: var(--accent-soft);
    color: var(--accent-strong);
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    font-size: 12.5px;
}

.chip button {
    border: 0;
    background: none;
    color: inherit;
    padding: 0;
    display: grid;
    place-items: center;
}

.chip--clear {
    background: transparent;
    border-color: var(--border);
    color: var(--muted);
}

/* ---------------- Pagination ---------------- */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination__link,
.pagination__current {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 14px;
    color: var(--text-soft);
}

.pagination__link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination__current {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-contrast);
    font-weight: 700;
}

.pagination__dots {
    color: var(--muted);
    padding: 0 4px;
}

/* ---------------- Breadcrumbs ---------------- */

.breadcrumbs {
    padding: 16px 0 0;
    font-size: 12.5px;
    color: var(--muted);
}

.breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.breadcrumbs li + li::before {
    content: "/";
    margin-right: 6px;
    color: var(--border-strong);
}

.breadcrumbs a:hover {
    color: var(--accent);
}

/* ---------------- Product page ---------------- */

.product {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 36px;
    padding: 26px 0 10px;
    align-items: start;
}

.gallery {
    display: grid;
    gap: 12px;
}

.gallery__main {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: #fff;
    overflow: hidden;
    display: grid;
    place-items: center;
}

.gallery__main img {
    position: absolute;
    top: 7.5%;
    left: 7.5%;
    width: 85%;
    height: 85%;
    object-fit: contain;
    padding: 18px;
    box-sizing: border-box;
}

.gallery__badges {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.gallery__thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gallery__thumb {
    width: 78px;
    height: 78px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    padding: 4px;
    cursor: pointer;
}

.gallery__thumb.is-active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent);
}

.gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info__brand {
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 8px;
}

.product-info__title {
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    margin-bottom: 12px;
}

.product-info__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
}

.product-info__price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 14px 0 6px;
}

.product-info__price .now {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.product-info__price .old {
    font-size: 16px;
    color: var(--muted);
    text-decoration: line-through;
}

.product-info__state {
    margin-bottom: 16px;
}

.product-info__buy {
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin: 18px 0;
    flex-wrap: wrap;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    overflow: hidden;
    background: var(--surface);
    height: 46px;
}

.qty-control button {
    width: 40px;
    height: 100%;
    border: 0;
    background: transparent;
    font-size: 17px;
    color: var(--text-soft);
}

.qty-control button:hover {
    background: var(--surface-3);
    color: var(--text);
}

.qty-control input {
    width: 46px;
    text-align: center;
    border: 0;
    background: transparent;
    font-weight: 700;
    -moz-appearance: textfield;
}

.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.buy-note {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 18px 0;
    font-size: 12.5px;
    color: var(--text-soft);
}

.buy-note__item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.buy-note__item svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
}

.specs {
    margin-top: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}

.specs__group-title {
    padding: 10px 14px;
    background: var(--surface-2);
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    border-bottom: 1px solid var(--border);
}

.specs__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 9px 14px;
    font-size: 13.5px;
    border-bottom: 1px solid var(--border);
}

.specs__row:last-child {
    border-bottom: 0;
}

.specs__key {
    color: var(--muted);
}

.specs__val {
    color: var(--text);
    font-weight: 550;
}

.tabs {
    margin-top: 30px;
}

.tabs__nav {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.tabs__btn {
    padding: 10px 16px;
    border: 0;
    background: none;
    font-weight: 650;
    font-size: 14px;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.tabs__btn:hover {
    color: var(--text);
}

.tabs__btn.is-active {
    color: var(--text);
    border-bottom-color: var(--accent);
}

.tabs__panel {
    display: none;
    padding: 20px 0;
    font-size: 14.5px;
    color: var(--text-soft);
}

.tabs__panel.is-active {
    display: block;
}

.tabs__panel h2,
.tabs__panel h3 {
    color: var(--text);
    margin-top: 18px;
}

.tabs__panel img {
    border-radius: var(--radius-sm);
    margin: 12px 0;
    max-height: 520px;
    object-fit: contain;
}

.tabs__panel table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

.tabs__panel td,
.tabs__panel th {
    border: 1px solid var(--border);
    padding: 8px;
    font-size: 13.5px;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
}

.stars {
    display: inline-flex;
    gap: 2px;
    color: #f59e0b;
}

.stars svg {
    width: 15px;
    height: 15px;
}

.rating-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.rating-form select {
    width: auto;
}

/* ---------------- Cart ---------------- */

.page-head {
    padding: 26px 0 8px;
}

.page-head h1 {
    margin-bottom: 4px;
}

.page-head__sub {
    color: var(--muted);
    font-size: 14px;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px;
    align-items: start;
    padding: 18px 0 40px;
}

.cart-lines {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-line {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 14px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    align-items: center;
}

.cart-line__img {
    width: 92px;
    height: 92px;
    border-radius: 10px;
    background: var(--surface-3);
    object-fit: contain;
    padding: 5px;
}

.cart-line__name {
    font-weight: 650;
    font-size: 14.5px;
    margin-bottom: 4px;
}

.cart-line__meta {
    font-size: 12.5px;
    color: var(--muted);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.cart-line__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.cart-line__price {
    text-align: right;
    font-weight: 800;
    font-size: 16px;
    white-space: nowrap;
}

.cart-line__remove {
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 12.5px;
    padding: 0;
    text-decoration: underline;
}

.cart-line__remove:hover {
    color: var(--rose);
}

.summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    position: sticky;
    top: calc(var(--header-h) + 60px);
}

.summary__title {
    font-size: 16px;
    margin-bottom: 14px;
}

.summary__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    padding: 6px 0;
    color: var(--text-soft);
}

.summary__row--total {
    border-top: 1px solid var(--border);
    margin-top: 10px;
    padding-top: 14px;
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
}

.summary__hint {
    font-size: 12px;
    color: var(--muted);
    margin: 10px 0 14px;
}

.promo-form {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}

.promo-form .input {
    min-width: 0;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
}

.empty-state svg {
    width: 54px;
    height: 54px;
    color: var(--border-strong);
    margin-bottom: 12px;
}

/* ---------------- Checkout ---------------- */

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) 380px;
    gap: 26px;
    align-items: start;
    padding: 18px 0 44px;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.panel + .panel {
    margin-top: 16px;
}

.panel__title {
    font-size: 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel__num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 12.5px;
    font-weight: 800;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
}

.form-grid .field--full {
    grid-column: 1 / -1;
}

.delivery-options,
.payment-options {
    display: grid;
    gap: 10px;
}

.option-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.option-card:hover {
    border-color: var(--border-strong);
}

.option-card input {
    margin-top: 4px;
    accent-color: var(--accent);
}

.option-card:has(input:checked) {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}

.option-card__body {
    flex: 1;
}

.option-card__name {
    font-size: 14px;
    font-weight: 650;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.option-card__price {
    font-weight: 700;
    white-space: nowrap;
}

.option-card__desc {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 3px;
}

.option-card__extra {
    margin-top: 10px;
}

.order-mini {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.order-mini:last-child {
    border-bottom: 0;
}

.order-mini__img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: contain;
    background: var(--surface-3);
    padding: 3px;
}

.order-mini__name {
    font-size: 12.5px;
    line-height: 1.35;
    flex: 1;
    min-width: 0;
}

.order-mini__price {
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
}

/* ---------------- Order success ---------------- */

.success-hero {
    text-align: center;
    padding: 44px 20px 26px;
}

.success-hero__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    background: var(--success-bg);
    color: var(--green);
    border: 1px solid var(--success-border);
}

.success-hero__icon svg {
    width: 34px;
    height: 34px;
}

.order-number {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .02em;
}

.order-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.meta-box {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.meta-box__label {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
    margin-bottom: 4px;
}

.meta-box__value {
    font-size: 14px;
    font-weight: 600;
}

/* ---------------- Alerts ---------------- */

.alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface-2);
    font-size: 13.5px;
    margin-bottom: 14px;
}

.alert svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert--success {
    background: var(--success-bg);
    border-color: var(--success-border);
    color: var(--green);
}

.alert--error {
    background: var(--error-bg);
    border-color: var(--error-border);
    color: var(--rose);
}

.alert--warning {
    background: var(--warning-bg);
    border-color: var(--warning-border);
    color: var(--amber);
}

.alert--info {
    background: var(--accent-soft);
    border-color: color-mix(in srgb, var(--accent) 30%, transparent);
    color: var(--accent-strong);
}

.alert ul {
    margin: 4px 0 0;
    padding-left: 18px;
}

/* ---------------- Footer ---------------- */

.site-footer {
    margin-top: 40px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 30px;
    padding: 40px 0 28px;
}

.footer-brand p {
    font-size: 13.5px;
    color: var(--muted);
    max-width: 34ch;
    margin-top: 12px;
}

.footer-title {
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text-soft);
}

.footer-contact {
    display: grid;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text-soft);
}

.footer-contact a {
    font-weight: 650;
}

.footer-contact__phone {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--muted);
}

/* ---------------- Auth / account ---------------- */

.auth-wrap {
    max-width: 440px;
    margin: 46px auto 60px;
    padding: 0 20px;
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
}

.auth-card h1 {
    font-size: 24px;
    margin-bottom: 4px;
}

.auth-card__sub {
    color: var(--muted);
    font-size: 13.5px;
    margin-bottom: 20px;
}

.auth-switch {
    text-align: center;
    font-size: 13.5px;
    color: var(--muted);
    margin-top: 16px;
}

.auth-switch a {
    color: var(--accent);
    font-weight: 650;
}

.account-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 24px;
    padding: 24px 0 44px;
    align-items: start;
}

.account-nav {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    position: sticky;
    top: calc(var(--header-h) + 60px);
}

.account-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-soft);
}

.account-nav a:hover,
.account-nav a.is-active {
    background: var(--surface-3);
    color: var(--text);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 11px 12px;
    text-align: left;
    font-size: 13.5px;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: var(--surface-2);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.data-table a {
    font-weight: 650;
}

/* ---------------- Blog ---------------- */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.article-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .16s ease, box-shadow .16s ease;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.article-card__media {
    aspect-ratio: 16 / 9;
    background: var(--surface-3);
    overflow: hidden;
}

.article-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.article-card__cat {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent);
    font-weight: 700;
}

.article-card__title {
    font-size: 16px;
    margin: 0;
    line-height: 1.35;
}

.article-card__excerpt {
    font-size: 13px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card__meta {
    margin-top: auto;
    font-size: 12px;
    color: var(--muted);
    display: flex;
    gap: 10px;
}

.article-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px 0 40px;
}

.article-page__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
}

.article-page__image {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 8px 0 22px;
}

.article-page__content {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-soft);
}

.article-page__content h2,
.article-page__content h3 {
    color: var(--text);
    margin-top: 1.5em;
}

.article-page__content img {
    border-radius: var(--radius-sm);
    margin: 16px 0;
}

.category-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.category-pill {
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-soft);
    background: var(--surface);
}

.category-pill:hover,
.category-pill.is-active {
    border-color: var(--accent);
    color: var(--accent);
}

/* ---------------- Info page ---------------- */

.info-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 18px 0 40px;
}

.info-page__content {
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--text-soft);
}

.info-page__content h2,
.info-page__content h3 {
    color: var(--text);
    margin-top: 1.4em;
}

.info-page__content img {
    border-radius: var(--radius-sm);
    margin: 14px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: start;
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.contact-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
    border-bottom: 0;
}

.contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item__label {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.contact-item__value {
    font-size: 14.5px;
    font-weight: 600;
}

/* ---------------- Toast ---------------- */

.toast {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 500;
    max-width: 360px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 12px 16px;
    font-size: 13.5px;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast--success { border-left-color: var(--green); }
.toast--error { border-left-color: var(--rose); }

/* ---------------- Utilities ---------------- */

.muted { color: var(--muted); }
.text-soft { color: var(--text-soft); }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.w-full { width: 100%; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ---------------- Responsive ---------------- */

@media (max-width: 1180px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-top > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
    .header-search { max-width: none; }
    .icon-btn__label { display: none; }
    .hero__inner { grid-template-columns: 1fr; }
    .hero__side { grid-template-columns: 1fr 1fr; }
    .catalog-layout { grid-template-columns: 1fr; }
    .filters {
        position: static;
        max-height: none;
        display: none;
    }
    .filters.is-open { display: block; }
    .product { grid-template-columns: 1fr; gap: 24px; }
    .cart-layout,
    .checkout-layout { grid-template-columns: 1fr; }
    .summary { position: static; }
    .account-layout { grid-template-columns: 1fr; }
    .account-nav { position: static; display: flex; gap: 6px; overflow-x: auto; }
    .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1.3fr 1fr; }
}

@media (max-width: 760px) {
    :root { --header-h: 64px; }
    .brand__logo { height: 30px; }
    .topbar__note { display: none; }
    .topbar__inner { justify-content: flex-end; }
    .topbar__links a:not(:last-child) { display: none; }
    .header-main { flex-wrap: wrap; padding: 10px 0; gap: 10px; }
    .menu-toggle { display: grid; }
    .brand__tagline { display: none; }
    .header-search { order: 3; flex-basis: 100%; max-width: none; }
    .header-actions { margin-left: auto; }
    .main-nav { display: none; }
    .main-nav.is-open {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        height: 100dvh;
        z-index: 200;
        background: linear-gradient(180deg, #20c6ed 0%, #5e3d9b 100%);
        padding: 18px;
        overflow-y: auto;
    }

    .main-nav__close {
        display: grid;
        position: absolute;
        top: 14px;
        right: 14px;
        width: 40px;
        height: 40px;
        border: 0;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.16);
        color: #fff;
        place-items: center;
        z-index: 2;
    }

    .main-nav.is-open .main-nav__inner {
        padding-top: 56px;
    }
    .main-nav.is-open .main-nav__inner {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
    }
    .main-nav.is-open .main-nav__link {
        padding: 14px 6px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
        font-size: 16px;
        color: #ffffff;
    }

    .main-nav.is-open .main-nav__catalog {
        width: 100%;
        height: 54px;
        margin: 0 0 8px;
    }

    .main-nav.is-open .main-nav__link--mobile {
        display: block;
    }

    .mega-menu {
        display: none !important;
    }
    .main-nav.is-open .main-nav__link--accent { margin-left: 0; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero__side { grid-template-columns: 1fr; }
    .section { padding: 30px 0; }
    .p-card__body { padding: 11px; }
    .p-card__title { font-size: 13px; }
    .p-card__price { font-size: 16px; }
    .specs__row { grid-template-columns: 1fr; gap: 2px; }
    .form-grid { grid-template-columns: 1fr; }
    .order-meta-grid { grid-template-columns: 1fr; }
    .cart-line { grid-template-columns: 70px minmax(0, 1fr); }
    .cart-line__img { width: 70px; height: 70px; }
    .cart-line__price { grid-column: 2; text-align: left; }
    .blog-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; padding: 28px 0 20px; }
    .breadcrumbs { font-size: 11.5px; }
    .gallery__thumb { width: 62px; height: 62px; }
}

@media (max-width: 420px) {
    .product-grid { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .hero--slider {
        padding: 16px 0 22px;
    }

    .banner-slider__arrow {
        width: 24px;
        height: 24px;
    }

    .banner-slider__arrow--prev {
        left: 8px;
    }

    .banner-slider__arrow--next {
        right: 8px;
    }
}

@media (max-width: 980px) {
    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-side-banners {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: none;
    }

    .hero-side-banner img {
        height: auto;
        aspect-ratio: 1966 / 800;
    }
}

@media (max-width: 600px) {
    .hero-side-banners {
        grid-template-columns: 1fr;
    }
}

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

@media (max-width: 560px) {
    .category-showcase {
        padding: 14px;
    }

    .category-showcase__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

/* ---------------- Scroll reveal ---------------- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity .55s ease,
        transform .55s cubic-bezier(.22, .61, .36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------------- Manufacturer index ---------------- */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.brand-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.brand-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.brand-card__logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex: 0 0 auto;
}

.brand-card__name {
    display: block;
    font-weight: 600;
}

.brand-card__count {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--muted);
}

.p-card__actions form {
    width: 100%;
}

@media (max-width: 520px) {
    .p-card__bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .p-card__actions {
        flex: none;
        max-width: none;
        width: 100%;
    }

    .p-card__price {
        font-size: 24px;
    }
}

/* Filters toggle is only needed when the sidebar is collapsed */
#mobile-filters {
    display: none;
}

@media (max-width: 980px) {
    #mobile-filters {
        display: inline-flex;
    }
}

/* ---------------- Product reviews ---------------- */
.reviews {
    margin-top: 42px;
}

.reviews__count {
    color: var(--muted);
    font-size: 13px;
}

.reviews-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.reviews-summary {
    position: sticky;
    top: calc(var(--header-h) + 30px);
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
}

.reviews-summary__score {
    color: var(--text);
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 800;
    line-height: 1;
}

.reviews-summary__score--muted {
    color: var(--muted);
}

.reviews-summary__total {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.stars {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #d7dee8;
}

.stars svg {
    width: 16px;
    height: 16px;
}

.stars svg.is-filled {
    color: #f5b301;
    fill: currentColor;
}

.stars--lg {
    margin: 8px 0 4px;
}

.stars--lg svg {
    width: 21px;
    height: 21px;
}

.reviews-distribution {
    display: grid;
    gap: 6px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.reviews-distribution__row {
    display: grid;
    grid-template-columns: 12px 14px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 11px;
}

.reviews-distribution__row svg {
    width: 12px;
    height: 12px;
    color: #f5b301;
    fill: currentColor;
}

.reviews-distribution__bar {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-3);
}

.reviews-distribution__bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #f5b301;
}

.reviews-distribution__row b {
    text-align: right;
    font-weight: 600;
}

.reviews-summary__empty {
    text-align: center;
}

.reviews-summary__empty strong {
    display: block;
    margin-top: 6px;
}

.reviews-summary__empty p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.reviews-user-status {
    display: grid;
    gap: 3px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 12px;
}

.reviews-user-status > span,
.reviews-user-status small {
    color: var(--muted);
}

.review-card {
    padding: 0 0 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.review-card:last-of-type {
    margin-bottom: 0;
}

.review-card__head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.review-card__author {
    font-size: 14px;
}

.review-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11.5px;
}

.review-card__verified {
    color: #1f9d55;
}

.review-card__title {
    margin: 12px 0 6px;
    font-size: 16px;
}

.review-card__text {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.65;
}

.review-card__photos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.review-card__photos img {
    width: 82px;
    height: 82px;
    border: 1px solid var(--border);
    border-radius: 6px;
    object-fit: cover;
}

.review-shop-reply {
    margin-top: 12px;
    padding: 11px 13px;
    border-left: 3px solid var(--accent);
    border-radius: 0 6px 6px 0;
    background: var(--surface-2);
    color: var(--text-soft);
    font-size: 13px;
}

.review-shop-reply strong {
    display: block;
    margin-bottom: 3px;
    color: var(--accent);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.reviews-empty {
    padding: 32px 20px;
    border: 1px dashed var(--border-strong);
    border-radius: 6px;
    text-align: center;
}

.reviews-empty > svg {
    width: 30px;
    height: 30px;
    color: var(--muted);
}

.reviews-empty h3 {
    margin: 8px 0 4px;
    font-size: 16px;
}

.reviews-empty p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.review-form-panel {
    margin-top: 30px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
}

.review-form {
    display: grid;
    gap: 14px;
    max-width: 760px;
}

.review-stars {
    margin: 0;
    padding: 0;
    border: 0;
}

.review-stars legend {
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
}

.review-stars__inputs {
    display: flex;
    gap: 3px;
    align-items: center;
}

.review-stars__inputs input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.review-stars__inputs label {
    display: grid;
    width: 32px;
    height: 32px;
    cursor: pointer;
    place-items: center;
    color: #d0d8e4;
    transition: color .12s ease, transform .12s ease;
}

.review-stars__inputs label svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.review-stars__inputs label:hover,
.review-stars__inputs input:checked + label {
    color: #f5b301;
    transform: scale(1.08);
}

.review-stars__inputs input:focus-visible + label {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.review-form__existing {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.review-form__existing img {
    width: 70px;
    height: 70px;
    border: 1px solid var(--border);
    border-radius: 6px;
    object-fit: cover;
}

.review-login {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.review-login p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 900px) {
    .reviews-layout {
        grid-template-columns: 1fr;
    }

    .reviews-summary {
        position: static;
    }
}

@media (max-width: 560px) {
    .review-card__head {
        flex-direction: column;
        gap: 8px;
    }

    .review-login {
        align-items: flex-start;
        flex-direction: column;
    }
}

.p-card__rating {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #9aabc2;
    font-size: 11.5px;
}

.p-card__rating .stars {
    color: #4a5563;
}

.p-card__rating .stars svg {
    width: 12px;
    height: 12px;
}

.p-card__rating .stars svg.is-filled {
    color: #f5b301;
}

html[data-theme="light"] .p-card__rating {
    color: #516c90;
}

html[data-theme="light"] .p-card__rating .stars {
    color: #a8b6c8;
}
