/* ==========================================================================
   KodixaGrab - Public website
   Dark premium storefront, same design language as the admin panel.
   Tokens → base → layout → components → motion → responsive.
   ========================================================================== */

:root {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

    --brand-1: #2563eb;
    --brand-2: #06b6d4;
    --gradient: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    --gradient-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(6, 182, 212, 0.05));

    --bg: #ffffff;
    --bg-deep: #f4f6fb;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --surface-3: #f1f5f9;
    --border: #e5e9f2;
    --border-strong: #cbd5e1;
    --text: #0f172a;
    --text-soft: #475569;
    --text-muted: #94a3b8;

    --accent: var(--brand-1);
    --accent-soft: rgba(37, 99, 235, 0.1);
    --accent-ring: rgba(37, 99, 235, 0.25);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
    --shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.16);
    --glow: 0 0 0 rgba(0, 0, 0, 0);

    --r-xs: 8px;
    --r-sm: 12px;
    --r: 18px;
    --r-lg: 26px;
    --r-pill: 999px;

    --s1: 4px;
    --s2: 8px;
    --s3: 12px;
    --s4: 16px;
    --s5: 24px;
    --s6: 32px;
    --s7: 48px;
    --s8: 72px;
    --s9: 104px;

    --container: 1280px;
    --header: 68px;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --t-fast: 150ms var(--ease);
    --t: 260ms var(--ease);
    --t-slow: 500ms var(--ease);
}

[data-theme="dark"] {
    --bg: #070a14;
    --bg-deep: #04060d;
    --surface: #0e1424;
    --surface-2: #131a2c;
    --surface-3: #1a2338;
    --border: #1e2941;
    --border-strong: #2c3a58;
    --text: #eef2ff;
    --text-soft: #a9b4cd;
    --text-muted: #6b7a99;

    --accent: #3b82f6;
    --accent-soft: rgba(59, 130, 246, 0.16);
    --accent-ring: rgba(59, 130, 246, 0.35);
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.5);
    --shadow: 0 18px 44px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 34px 80px rgba(0, 0, 0, 0.72);
    --glow: 0 0 28px rgba(37, 99, 235, 0.4);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

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

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.site::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(900px 500px at 82% -10%, rgba(37, 99, 235, 0.14), transparent 60%),
        radial-gradient(760px 460px at 2% 6%, rgba(6, 182, 212, 0.1), transparent 58%);
}

h1, h2, h3, h4 { margin: 0; font-weight: 680; letter-spacing: -0.025em; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent-soft); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-xs); }

.skip-link { position: absolute; left: -9999px; }
.icon { flex: 0 0 auto; display: block; }
.muted { color: var(--text-muted); }

* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--r-pill); border: 2px solid transparent; background-clip: content-box; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s5); position: relative; z-index: 1; }

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 76%, transparent);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
}

.site-header__inner { display: flex; align-items: center; gap: var(--s5); height: var(--header); }

.site-brand { display: flex; align-items: center; gap: var(--s2); flex: 0 0 auto; }
.site-brand__logo { max-height: 36px; width: auto; }

.site-brand__text {
    font-weight: 750;
    font-size: 19px;
    letter-spacing: -0.03em;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-nav { flex: 0 1 auto; }
.site-nav__list { display: flex; gap: var(--s1); }

.site-nav__link {
    position: relative;
    display: block;
    padding: var(--s2) var(--s4);
    border-radius: var(--r-pill);
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-soft);
    transition: color var(--t-fast), background var(--t-fast);
}

.site-nav__link:hover { color: var(--text); background: var(--surface-2); }
.site-nav__link.is-active { color: #fff; background: var(--gradient); box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32); }

.site-burger {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: var(--s2);
    color: var(--text);
    margin-left: auto;
}

.icon-button {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text-soft);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast), border-color var(--t-fast);
}

.icon-button:hover { background: var(--surface-3); color: var(--accent); border-color: var(--border-strong); transform: translateY(-1px); }

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

/* --------------------------------------------------------------------------
   Live search
   -------------------------------------------------------------------------- */

.search { position: relative; flex: 1 1 260px; max-width: 460px; margin-left: auto; }
.search__form { position: relative; display: flex; align-items: center; }

.search__input {
    width: 100%;
    padding: 11px var(--s5) 11px 42px;
    border-radius: var(--r-pill);
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}

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

.search__input:focus {
    outline: none;
    background: var(--surface);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-ring);
}

.search__icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
}

.search__submit {
    position: absolute;
    right: 5px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 0;
    background: var(--gradient);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform var(--t-fast);
}

.search__submit:hover { transform: scale(1.08); }

.search__results {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 60;
    max-height: 70vh;
    overflow-y: auto;
    animation: pop-in var(--t) both;
}

.search__item {
    display: flex;
    align-items: center;
    gap: var(--s3);
    padding: var(--s3) var(--s4);
    border-bottom: 1px solid var(--border);
    transition: background var(--t-fast);
}

.search__item:last-child { border-bottom: 0; }
.search__item:hover { background: var(--surface-2); }

.search__thumb { width: 46px; height: 46px; flex: 0 0 46px; border-radius: var(--r-xs); object-fit: cover; background: var(--surface-3); }
.search__body { min-width: 0; flex: 1 1 auto; }
.search__title { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search__meta { font-size: 12px; color: var(--text-muted); }
.search__price { font-size: 14px; font-weight: 700; white-space: nowrap; color: var(--accent); }
.search__footer { padding: var(--s3) var(--s4); text-align: center; background: var(--surface-2); }
.search__footer a { color: var(--accent); font-size: 14px; font-weight: 600; }
.search__empty { padding: var(--s5); text-align: center; color: var(--text-muted); font-size: 14px; }

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

.site-main { min-height: 62vh; padding-bottom: var(--s8); position: relative; z-index: 1; }

.section { padding: var(--s8) 0 0; }
.section--tight { padding-top: var(--s6); }

.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }

.section__title { font-size: clamp(22px, 3vw, 30px); display: flex; align-items: center; gap: var(--s3); }

.section__title::before {
    content: "";
    width: 4px;
    height: 26px;
    border-radius: var(--r-pill);
    background: var(--gradient);
    box-shadow: var(--glow);
}

.section__title--sm { font-size: 19px; margin-bottom: var(--s4); }
.section__title--sm::before { height: 19px; }

.section__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 14.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: gap var(--t-fast);
}

.section__more:hover { gap: 11px; }

.page-head { padding: var(--s6) 0 var(--s6); }
.page-head__title { font-size: clamp(28px, 4.5vw, 44px); }
.page-head__intro { color: var(--text-soft); margin-top: var(--s3); max-width: 70ch; }
.page-head__meta { color: var(--text-muted); font-size: 14px; margin-top: var(--s2); }

.breadcrumb { padding: var(--s5) 0 0; }
.breadcrumb__list { display: flex; flex-wrap: wrap; gap: var(--s2); font-size: 13px; color: var(--text-muted); }
.breadcrumb__list li + li::before { content: "/"; margin-right: var(--s2); opacity: 0.5; }
.breadcrumb__list a { transition: color var(--t-fast); }
.breadcrumb__list a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Hero and slider
   -------------------------------------------------------------------------- */



.slider { position: relative; overflow: hidden; background: var(--surface-2); }
.slide { display: none; position: relative; }
.slide.is-active { display: block; animation: fade-in var(--t-slow) both; }
.slide__link { display: block; }
.slide__img { width: 100%; max-height: 560px; object-fit: cover; }

.slide__caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: var(--s9) 0 var(--s7);
    background: linear-gradient(to top, rgba(2, 5, 12, 0.88), rgba(2, 5, 12, 0.25) 55%, transparent);
    color: #fff;
}

.slide__title { font-size: clamp(24px, 4.5vw, 46px); animation: rise-in var(--t-slow) both; }
.slide__subtitle { margin-top: var(--s3); font-size: clamp(14px, 2vw, 19px); opacity: 0.92; max-width: 58ch; animation: rise-in var(--t-slow) 80ms both; }
.slide__caption .button { margin-top: var(--s5); animation: rise-in var(--t-slow) 160ms both; }

.slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(10, 14, 26, 0.45);
    backdrop-filter: blur(8px);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background var(--t-fast), transform var(--t-fast);
}

.slider__nav:hover { background: rgba(10, 14, 26, 0.75); transform: translateY(-50%) scale(1.06); }
.slider__nav--prev { left: var(--s5); }
.slider__nav--next { right: var(--s5); }

.slider__dots { position: absolute; bottom: var(--s5); left: 0; right: 0; display: flex; justify-content: center; gap: var(--s2); }

.slider__dot {
    width: 8px;
    height: 8px;
    border-radius: var(--r-pill);
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width var(--t), background var(--t);
}

.slider__dot.is-active { background: #fff; width: 26px; }

.banner { width: 100%; border-radius: var(--r); box-shadow: var(--shadow-sm); }



/* --------------------------------------------------------------------------
   Product grid and cards
   -------------------------------------------------------------------------- */

.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    backdrop-filter: blur(6px);
}

.tag--danger { background: var(--danger); color: #fff; box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35); }
.tag--accent { background: var(--gradient); color: #fff; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35); }
.tag--warning { background: var(--warning); color: #1a1205; }
.tag--muted { background: var(--surface-3); color: var(--text-soft); border: 1px solid var(--border); }

/* --------------------------------------------------------------------------
   Catalog
   -------------------------------------------------------------------------- */

.catalog { display: grid; grid-template-columns: 270px 1fr; gap: var(--s6); align-items: start; }
.catalog__results { min-width: 0; }
.catalog__toolbar { display: flex; justify-content: flex-end; margin-bottom: var(--s5); }
.catalog__sort { display: flex; align-items: center; gap: var(--s2); }
.catalog__sort-label { font-size: 14px; color: var(--text-muted); }
.catalog__filter-toggle { display: none; width: 100%; margin-bottom: var(--s4); }

.select {
    padding: 9px var(--s4);
    border-radius: var(--r-sm);
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }

.filters {
    position: sticky;
    top: calc(var(--header) + var(--s4));
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: var(--s5);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: var(--s5);
}

[data-theme="dark"] .filters {
    background: linear-gradient(180deg, rgba(19, 26, 44, 0.72), rgba(14, 20, 36, 0.72));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.filters__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.filters__title { font-weight: 700; display: flex; align-items: center; gap: var(--s2); }
.filters__clear { font-size: 13px; color: var(--accent); font-weight: 600; }
.filters__group { border: 0; padding: 0; margin: 0; }
.filters__legend { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: var(--s3); font-weight: 700; }
.filters__list { display: flex; flex-direction: column; gap: var(--s1); max-height: 260px; overflow-y: auto; }

.filters__option {
    display: flex;
    align-items: center;
    gap: var(--s2);
    font-size: 14px;
    cursor: pointer;
    color: var(--text-soft);
    padding: 6px var(--s2);
    border-radius: var(--r-xs);
    transition: background var(--t-fast), color var(--t-fast);
}

.filters__option:hover { color: var(--text); background: var(--surface-2); }
.filters__option input { accent-color: var(--accent); }
.filters__option span:nth-of-type(1) { flex: 1 1 auto; }
.filters__count { font-size: 11.5px; color: var(--text-muted); font-family: var(--font-mono); }

.load-more { display: flex; justify-content: center; align-items: center; gap: var(--s3); padding: var(--s7) 0; }
.load-more__spinner { color: var(--text-muted); font-size: 14px; }

.pagination { display: flex; justify-content: center; padding: var(--s5) 0; }
.pagination__list { display: flex; gap: var(--s1); flex-wrap: wrap; }

.pagination__link {
    display: grid;
    place-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--s3);
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
    transition: background var(--t-fast), border-color var(--t-fast);
}

.pagination__link:hover { background: var(--surface-2); border-color: var(--border-strong); }
.pagination__link.is-active { background: var(--gradient); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35); }

.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s4);
    padding: var(--s9) var(--s5);
    text-align: center;
    border: 1px dashed var(--border-strong);
    border-radius: var(--r);
    background: var(--surface-2);
}

.empty__text { color: var(--text-muted); font-size: 16px; }

/* --------------------------------------------------------------------------
   Product detail
   -------------------------------------------------------------------------- */

.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s7); padding: var(--s5) 0; align-items: start; }
.product__media { display: flex; flex-direction: column; gap: var(--s3); position: sticky; top: calc(var(--header) + var(--s4)); }

.product__stage {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface-2);
    aspect-ratio: 1 / 1;
    box-shadow: var(--shadow-sm);
}

.product__image { width: 100%; height: 100%; object-fit: contain; transition: transform var(--t-slow); }
.product__stage:hover .product__image { transform: scale(1.04); }
.product__discount { position: absolute; top: var(--s4); left: var(--s4); }

.product__thumbs { display: flex; gap: var(--s2); overflow-x: auto; padding-bottom: var(--s1); }

.product__thumb {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    overflow: hidden;
    background: var(--surface-2);
    cursor: pointer;
    transition: border-color var(--t), transform var(--t);
}

.product__thumb:hover { transform: translateY(-2px); }
.product__thumb.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-ring); }
.product__thumb img { width: 100%; height: 100%; object-fit: cover; }

.product__info { display: flex; flex-direction: column; gap: var(--s4); padding-top: var(--s2); }
.product__brand { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 700; }
.product__title { font-size: clamp(26px, 4vw, 40px); }
.product__badges { display: flex; gap: var(--s2); flex-wrap: wrap; }
.product__lead { color: var(--text-soft); font-size: 17px; }

.product__price {
    display: flex;
    align-items: baseline;
    gap: var(--s3);
    flex-wrap: wrap;
    padding: var(--s4) var(--s5);
    border-radius: var(--r);
    background: var(--gradient-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

.product__amount {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 750;
    letter-spacing: -0.03em;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.product__old { font-size: 18px; color: var(--text-muted); text-decoration: line-through; }
.product__campaign-note { font-size: 13px; color: var(--warning); display: flex; align-items: center; gap: 6px; }
.product__stock { font-size: 14.5px; font-weight: 650; display: flex; align-items: center; gap: 7px; }
.product__stock--success { color: var(--success); }
.product__stock--danger { color: var(--danger); }

.product__meta { display: flex; flex-direction: column; gap: var(--s2); border-top: 1px solid var(--border); padding-top: var(--s4); }
.product__meta-row { display: flex; justify-content: space-between; gap: var(--s4); font-size: 14px; padding-bottom: var(--s2); border-bottom: 1px dashed var(--border); }
.product__meta-row:last-child { border-bottom: 0; }
.product__meta-row dt { color: var(--text-muted); }
.product__meta-row dd { margin: 0; font-weight: 600; text-align: right; font-family: var(--font-mono); font-size: 13px; }

.product__tags { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.product__tags-label { font-size: 13px; color: var(--text-muted); }

.prose { color: var(--text-soft); line-height: 1.75; max-width: 80ch; }
.prose p { margin-bottom: var(--s3); }
.prose ul, .prose ol { list-style: revert; padding-left: var(--s5); margin-bottom: var(--s3); }
.prose h2, .prose h3 { color: var(--text); margin: var(--s5) 0 var(--s2); font-size: 19px; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: var(--s4); font-size: 14.5px; }
.prose th, .prose td { padding: var(--s3) var(--s4); border: 1px solid var(--border); text-align: left; }
.prose th { background: var(--surface-2); font-weight: 650; color: var(--text); }
.prose img { border-radius: var(--r-sm); margin: var(--s3) 0; }
.prose a { color: var(--accent); }

.video { position: relative; padding-top: 56.25%; border-radius: var(--r); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-sm); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --------------------------------------------------------------------------
   Stores and contact
   -------------------------------------------------------------------------- */

.store-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s4); }

.store-card {
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: var(--surface);
    transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}

.store-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.store-card__body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s2); }
.store-card__name { font-weight: 700; font-size: 16px; }
.store-card__location { font-size: 13px; color: var(--accent); font-weight: 600; }
.store-card__address, .store-card__hours { font-size: 14px; color: var(--text-soft); }
.store-card__actions { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s2); }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s5); padding-bottom: var(--s6); }

.contact-block {
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: var(--s5);
    background: var(--surface);
    transition: border-color var(--t), transform var(--t);
}

.contact-block:hover { border-color: var(--accent); transform: translateY(-2px); }
.contact-block__title { font-size: 15px; margin-bottom: var(--s3); display: flex; align-items: center; gap: var(--s2); }
.contact-block__list { display: flex; flex-direction: column; gap: var(--s2); font-size: 15px; }
.contact-block__list a { transition: color var(--t-fast); }
.contact-block__list a:hover { color: var(--accent); }
.contact-block__label { display: block; font-size: 12px; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s2);
    padding: 12px var(--s6);
    border-radius: var(--r-pill);
    border: 1px solid transparent;
    font-weight: 650;
    font-size: 15px;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    transition: transform var(--t-fast), box-shadow var(--t), background var(--t-fast), border-color var(--t-fast);
}

.button:active { transform: scale(0.975); }
.button--primary { background: var(--gradient); color: #fff; box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35); }
.button--primary:hover { box-shadow: 0 12px 28px rgba(37, 99, 235, 0.45); transform: translateY(-2px); }
.button--ghost { border-color: var(--border-strong); color: var(--text); background: var(--surface-2); }
.button--ghost:hover { background: var(--surface-3); border-color: var(--accent); }
.button--sm { padding: 8px var(--s4); font-size: 13.5px; }
.button--block { width: 100%; }

.button .ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    animation: ripple 620ms linear;
}

.button--ghost .ripple { background: var(--accent-soft); }

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

.site-footer { border-top: 1px solid var(--border); padding: var(--s8) 0 var(--s6); background: var(--bg-deep); position: relative; z-index: 1; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--s6); padding-bottom: var(--s6); }
.site-footer__col { min-width: 0; }
.site-footer__title { font-weight: 700; margin-bottom: var(--s3); font-size: 15px; }
.site-footer__text { font-size: 14px; color: var(--text-muted); max-width: 40ch; }
.site-footer__list { display: flex; flex-direction: column; gap: var(--s2); font-size: 14px; color: var(--text-soft); }
.site-footer__list a { transition: color var(--t-fast); }
.site-footer__list a:hover { color: var(--accent); }
.social { display: flex; flex-direction: column; gap: var(--s2); font-size: 14px; }
.social__link { color: var(--text-soft); transition: color var(--t-fast); }
.social__link:hover { color: var(--accent); }
.site-footer__copy { border-top: 1px solid var(--border); padding-top: var(--s4); font-size: 13px; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Error pages
   -------------------------------------------------------------------------- */

.error-page { display: grid; place-items: center; min-height: 100vh; padding: var(--s5); background: var(--bg-deep); }
.error-shell { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--s4); max-width: 640px; }

.error-code {
    font-size: 96px;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.error-title { font-size: clamp(20px, 4vw, 30px); }

.error-trace {
    text-align: left;
    width: 100%;
    max-height: 320px;
    overflow: auto;
    padding: var(--s4);
    border-radius: var(--r);
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes ripple { to { transform: scale(3.4); opacity: 0; } }

@keyframes drift {
    from { transform: translate3d(-2%, -1%, 0) scale(1); }
    to { transform: translate3d(2%, 2%, 0) scale(1.1); }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--t-slow), transform var(--t-slow); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Staggered product cards */
.product-grid > .product-card:nth-child(1) { animation-delay: 20ms; }
.product-grid > .product-card:nth-child(2) { animation-delay: 60ms; }
.product-grid > .product-card:nth-child(3) { animation-delay: 100ms; }
.product-grid > .product-card:nth-child(4) { animation-delay: 140ms; }
.product-grid > .product-card:nth-child(5) { animation-delay: 180ms; }
.product-grid > .product-card:nth-child(6) { animation-delay: 220ms; }

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

@media (max-width: 1024px) {
    .catalog { grid-template-columns: 1fr; }
    .filters { position: static; }
    .catalog__filter-toggle { display: inline-flex; }
    .catalog__filters .filters { display: none; }
    .catalog__filters.is-open .filters { display: flex; animation: rise-in var(--t) both; }
    .product__media { position: static; }
}

@media (max-width: 880px) {
    .site-header__inner { flex-wrap: wrap; height: auto; padding-top: var(--s3); padding-bottom: var(--s3); gap: var(--s3); }
    .site-burger { display: block; order: 3; }
    .icon-button { order: 2; margin-left: auto; }
    .search { order: 4; flex-basis: 100%; max-width: none; margin-left: 0; }
    .site-nav { order: 5; flex-basis: 100%; display: none; }
    .site-nav.is-open { display: block; animation: rise-in var(--t) both; }
    .site-nav__list { flex-direction: column; gap: 2px; }
    .site-nav__link { padding: var(--s3) var(--s4); border-radius: var(--r-sm); }
    .product { grid-template-columns: 1fr; gap: var(--s5); }
    .slide__img { max-height: 340px; }
    .slide__caption { padding: var(--s7) 0 var(--s5); }
}

@media (max-width: 560px) {
    .container { padding: 0 var(--s4); }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: var(--s3); }
    .product-card__body { padding: var(--s3); }
    .product-card__title { font-size: 14px; }
    .product-card__amount { font-size: 16px; }
    .section { padding-top: var(--s7); }
    .hero { padding: var(--s8) 0; }
    .slider__nav { display: none; }
    .product__price { padding: var(--s3) var(--s4); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--border-strong); }

.slider__track { position: relative; }

/* ==========================================================================
   Storefront components
   ========================================================================== */

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

.hero { position: relative; padding: var(--s9) 0 var(--s8); overflow: hidden; }

.hero__glow {
    position: absolute;
    inset: -45% -10% auto -10%;
    height: 150%;
    pointer-events: none;
    background:
        radial-gradient(620px 360px at 50% 34%, rgba(37, 99, 235, 0.3), transparent 62%),
        radial-gradient(520px 320px at 78% 66%, rgba(6, 182, 212, 0.22), transparent 60%);
    animation: drift 22s ease-in-out infinite alternate;
}

.hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: var(--s5); text-align: center; }

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--s2);
    padding: 6px var(--s4);
    border-radius: var(--r-pill);
    border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.02em;
}

.hero__title {
    font-size: clamp(34px, 6.4vw, 66px);
    max-width: 18ch;
    background: linear-gradient(180deg, var(--text) 35%, color-mix(in srgb, var(--text) 52%, transparent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__subtitle { font-size: clamp(15px, 2.1vw, 19px); color: var(--text-soft); max-width: 60ch; }

.hero__search {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--s2);
    width: min(680px, 100%);
    padding: 7px 7px 7px var(--s7);
    border-radius: var(--r-pill);
    border: 1px solid var(--border-strong);
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: border-color var(--t), box-shadow var(--t);
}

.hero__search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-ring), var(--shadow); }
.hero__search-icon { position: absolute; left: var(--s5); color: var(--text-muted); pointer-events: none; }
.hero__search-input { flex: 1 1 auto; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 15px; padding: 8px 0; }
.hero__search-input:focus { outline: none; }
.hero__search-input::placeholder { color: var(--text-muted); }

.hero__actions { display: flex; gap: var(--s3); flex-wrap: wrap; justify-content: center; }

.hero__stats { display: flex; gap: var(--s7); flex-wrap: wrap; justify-content: center; margin-top: var(--s4); }
.hero__stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }

.hero__stat-value {
    font-size: clamp(22px, 3.4vw, 32px);
    font-weight: 780;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 600; }

/* --------------------------------------------------------------------------
   Trust bar
   -------------------------------------------------------------------------- */

.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.trust__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--s5); padding-top: var(--s5); padding-bottom: var(--s5); }
.trust__item { display: flex; align-items: flex-start; gap: var(--s3); }

.trust__icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: var(--r-sm);
    display: grid;
    place-items: center;
    background: var(--gradient-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
    color: var(--accent);
}

.trust__title { font-size: 14.5px; font-weight: 650; }
.trust__text { font-size: 13px; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Countdown
   -------------------------------------------------------------------------- */

.countdown { display: flex; flex-direction: column; gap: 6px; }
.countdown__label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: var(--warning); }
.countdown__blocks { display: flex; gap: 5px; }

.countdown__block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 34px;
    padding: 5px 7px;
    border-radius: var(--r-xs);
    background: var(--surface-3);
    border: 1px solid var(--border);
}

.countdown__value { font-size: 14px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.countdown__unit { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }

.countdown--sm .countdown__block { min-width: 30px; padding: 3px 6px; }
.countdown--sm .countdown__value { font-size: 12.5px; }

.countdown--lg .countdown__blocks { gap: var(--s2); }

.countdown--lg .countdown__block {
    min-width: 62px;
    padding: var(--s3) var(--s2);
    background: var(--surface);
    border-color: color-mix(in srgb, var(--warning) 30%, transparent);
}

.countdown--lg .countdown__value { font-size: 24px; }
.countdown--lg .countdown__label { font-size: 13px; }

.countdown.is-urgent .countdown__block { border-color: var(--danger); animation: pulse 1.6s ease-in-out infinite; }
.countdown.is-urgent .countdown__value { color: var(--danger); }
.countdown__over { font-size: 12.5px; font-weight: 650; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Product card
   -------------------------------------------------------------------------- */

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s5); }

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: var(--surface);
    overflow: hidden;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    animation: rise-in var(--t-slow) both;
}

[data-theme="dark"] .product-card {
    background: linear-gradient(180deg, rgba(19, 26, 44, 0.72), rgba(14, 20, 36, 0.72));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
.product-card--deal { border-color: color-mix(in srgb, var(--warning) 40%, var(--border)); }

.ribbon {
    position: absolute;
    top: var(--s3);
    right: var(--s3);
    z-index: 2;
    padding: 5px 11px;
    border-radius: var(--r-pill);
    background: linear-gradient(135deg, var(--danger), #f97316);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -0.01em;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.ribbon--lg { top: var(--s4); right: auto; left: var(--s4); font-size: 15px; padding: 8px var(--s4); }

.product-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--surface-3); overflow: hidden; }
.product-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.product-card:hover .product-card__img { transform: scale(1.08); }

.product-card__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--text-muted);
    background: repeating-linear-gradient(45deg, var(--surface-3), var(--surface-3) 10px, var(--surface-2) 10px, var(--surface-2) 20px);
}

.product-card__badges { position: absolute; top: var(--s3); left: var(--s3); display: flex; flex-wrap: wrap; gap: var(--s1); max-width: 70%; }

.product-card__hover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(to top, rgba(4, 8, 18, 0.72), rgba(4, 8, 18, 0.15));
    opacity: 0;
    transition: opacity var(--t);
}

.product-card:hover .product-card__hover { opacity: 1; }

.product-card__hover-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px var(--s4);
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 13px;
    font-weight: 650;
    transform: translateY(8px);
    transition: transform var(--t);
}

.product-card:hover .product-card__hover-btn { transform: none; }

.product-card__body { padding: var(--s4); display: flex; flex-direction: column; gap: var(--s2); flex: 1 1 auto; }
.product-card__brand { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.product-card__title { font-size: 15px; font-weight: 650; line-height: 1.35; }
.product-card__title a { transition: color var(--t-fast); }
.product-card:hover .product-card__title a { color: var(--accent); }
.product-card__code { font-size: 11.5px; color: var(--text-muted); font-family: var(--font-mono); }

.product-card__price { margin-top: auto; display: flex; align-items: baseline; gap: var(--s2); flex-wrap: wrap; }
.product-card__amount { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.product-card__old { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }

.product-card__saving {
    font-size: 11px;
    font-weight: 700;
    color: var(--success);
    background: color-mix(in srgb, var(--success) 14%, transparent);
    padding: 2px 8px;
    border-radius: var(--r-pill);
}

.product-card__ask {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 650;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 6px var(--s3);
    border-radius: var(--r-pill);
}

.product-card__stock { font-size: 12px; font-weight: 650; }
.product-card__stock--success { color: var(--success); }
.product-card__stock--danger { color: var(--danger); }

.stock-bar { height: 5px; border-radius: var(--r-pill); background: var(--surface-3); overflow: hidden; }
.stock-bar__fill { display: block; height: 100%; border-radius: var(--r-pill); transition: width var(--t-slow); }
.stock-bar__fill--success { background: linear-gradient(90deg, var(--success), #22d3ee); }
.stock-bar__fill--danger { background: var(--danger); }

.product-card__actions { display: flex; gap: var(--s2); margin-top: var(--s2); }
.product-card__actions .button { flex: 1 1 auto; }
.button--icon { flex: 0 0 auto; padding-left: var(--s3); padding-right: var(--s3); }

/* --------------------------------------------------------------------------
   Deals row and carousel
   -------------------------------------------------------------------------- */

.deals {
    border: 1px solid color-mix(in srgb, var(--warning) 30%, var(--border));
    border-radius: var(--r-lg);
    padding: var(--s6);
    background:
        radial-gradient(600px 200px at 10% 0%, color-mix(in srgb, var(--warning) 10%, transparent), transparent 70%),
        var(--surface);
}

[data-theme="dark"] .deals { background: radial-gradient(600px 220px at 12% 0%, rgba(251, 191, 36, 0.1), transparent 70%), rgba(19, 26, 44, 0.6); }

.deals__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); flex-wrap: wrap; }
.deals__subtitle { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.section__title--flush::before { display: none; }
.section__title--flush { gap: var(--s2); }
.section__title--flush .icon { color: var(--warning); }

.carousel { position: relative; }
.carousel__track { display: flex; gap: var(--s5); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s2); scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__item { flex: 0 0 clamp(230px, 24%, 280px); scroll-snap-align: start; }

.carousel__nav {
    position: absolute;
    top: 42%;
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background var(--t-fast), transform var(--t-fast), opacity var(--t-fast);
}

.carousel__nav:hover { background: var(--surface-3); transform: scale(1.06); }
.carousel__nav:disabled { opacity: 0.25; cursor: default; transform: none; }
.carousel__nav--prev { left: calc(var(--s5) * -1); }
.carousel__nav--next { right: calc(var(--s5) * -1); }
.carousel.is-static .carousel__nav { display: none; }

/* --------------------------------------------------------------------------
   Category tiles and brands
   -------------------------------------------------------------------------- */

.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s4); }

.category-tile {
    display: flex;
    align-items: center;
    gap: var(--s4);
    padding: var(--s4);
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: var(--surface);
    transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}

.category-tile:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-sm); }

.category-tile__media {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: var(--r-sm);
    overflow: hidden;
    background: var(--gradient-soft);
    display: grid;
    place-items: center;
}

.category-tile__img { width: 100%; height: 100%; object-fit: cover; }
.category-tile__icon { color: var(--accent); }
.category-tile__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.category-tile__name { font-weight: 650; font-size: 15.5px; }
.category-tile__count { font-size: 12.5px; color: var(--text-muted); }
.category-tile__arrow { color: var(--text-muted); transition: transform var(--t), color var(--t); }
.category-tile:hover .category-tile__arrow { transform: translateX(4px); color: var(--accent); }

.brand-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s3); }

.brand-chip {
    display: grid;
    place-items: center;
    height: 84px;
    padding: var(--s3);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--surface);
    transition: border-color var(--t), transform var(--t);
}

.brand-chip:hover { border-color: var(--accent); transform: translateY(-2px); }
.brand-chip__logo { max-height: 46px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.75; transition: filter var(--t), opacity var(--t); }
.brand-chip:hover .brand-chip__logo { filter: none; opacity: 1; }
.brand-chip__name { font-weight: 650; font-size: 14.5px; text-align: center; }

/* --------------------------------------------------------------------------
   Product page buy box
   -------------------------------------------------------------------------- */

.buybox {
    display: flex;
    flex-direction: column;
    gap: var(--s4);
    padding: var(--s5);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: var(--surface-2);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .buybox { background: linear-gradient(180deg, rgba(19, 26, 44, 0.8), rgba(14, 20, 36, 0.8)); }

.buybox__price { display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap; }

.buybox__amount {
    font-size: clamp(28px, 4.4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.035em;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.buybox__old { font-size: 19px; color: var(--text-muted); text-decoration: line-through; }

.buybox__saving {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--success);
    background: color-mix(in srgb, var(--success) 14%, transparent);
    padding: 5px var(--s3);
    border-radius: var(--r-pill);
}

.buybox__ask { display: inline-flex; align-items: center; gap: var(--s2); font-size: 19px; font-weight: 700; color: var(--accent); }
.buybox__stock { display: flex; flex-direction: column; gap: var(--s2); }
.buybox__actions { display: flex; flex-direction: column; gap: var(--s2); }
.buybox__row { display: flex; gap: var(--s2); flex-wrap: wrap; }

.product__stage--empty { display: grid; place-items: center; }
.product__placeholder { color: var(--text-muted); }

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

/* --------------------------------------------------------------------------
   Call to action band
   -------------------------------------------------------------------------- */

.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s5);
    flex-wrap: wrap;
    padding: var(--s7) var(--s6);
    border-radius: var(--r-lg);
    border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
    background:
        radial-gradient(700px 260px at 15% 0%, rgba(37, 99, 235, 0.22), transparent 65%),
        radial-gradient(600px 240px at 85% 100%, rgba(6, 182, 212, 0.18), transparent 62%),
        var(--surface);
}

.cta__title { font-size: clamp(21px, 3vw, 28px); }
.cta__text { color: var(--text-soft); margin-top: var(--s2); }
.cta__actions { display: flex; gap: var(--s3); flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Empty state icon
   -------------------------------------------------------------------------- */

.empty__icon {
    width: 62px;
    height: 62px;
    border-radius: var(--r);
    display: grid;
    place-items: center;
    background: var(--gradient-soft);
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   Scroll chrome
   -------------------------------------------------------------------------- */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 90;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: 0 50%;
    pointer-events: none;
}

.to-top {
    position: fixed;
    right: var(--s5);
    bottom: var(--s5);
    z-index: 80;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity var(--t), transform var(--t), background var(--t-fast);
}

.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--gradient); color: #fff; border-color: transparent; }

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--danger) 45%, transparent); }
    50% { box-shadow: 0 0 0 6px transparent; }
}

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

@media (max-width: 1024px) {
    .carousel__nav--prev { left: 0; }
    .carousel__nav--next { right: 0; }
}

@media (max-width: 880px) {
    .hero { padding: var(--s8) 0 var(--s7); }
    .hero__stats { gap: var(--s5); }
    .deals { padding: var(--s5) var(--s4); }
    .cta { padding: var(--s6) var(--s5); }
}

@media (max-width: 560px) {
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: var(--s3); }
    .product-card__amount { font-size: 17px; }
    .product-card__actions { flex-direction: column; }
    .product-card__hover { display: none; }
    .hero__search { padding-left: var(--s6); flex-wrap: wrap; }
    .hero__search .button { width: 100%; }
    .hero__stat-value { font-size: 22px; }
    .countdown--lg .countdown__block { min-width: 52px; }
    .countdown--lg .countdown__value { font-size: 19px; }
    .carousel__item { flex-basis: 74%; }
    .to-top { right: var(--s4); bottom: var(--s4); }
}

.cta__body { min-width: 0; flex: 1 1 320px; }

/* Full specification table on the product page */
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table th,
.spec-table td { padding: var(--s3) var(--s4); text-align: left; border-bottom: 1px solid var(--border); }
.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 42%; color: var(--text-muted); font-weight: 600; }
.spec-table td { font-weight: 600; }
