:root {
    --bg: #f7f8fa;
    --surface: #ffffff;
    --surface-soft: #f1f3f5;

    --text: #111318;
    --text-soft: #60646c;
    --text-muted: #8a8f98;

    --border: #e2e5e9;
    --border-strong: #d5d9df;

    --accent: #15171c;
    --accent-soft: #eceef1;

    --success: #087443;
    --success-bg: #e9f7ef;

    --danger: #a32323;
    --danger-bg: #fcecec;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow-sm:
        0 1px 2px rgba(0, 0, 0, 0.04);

    --shadow-md:
        0 10px 30px rgba(17, 19, 24, 0.06);

    --container: 1180px;
}


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    background:
        var(--bg);

    color:
        var(--text);

    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    -webkit-font-smoothing:
        antialiased;
}


button,
input {
    font: inherit;
}


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


.container {
    width:
        min(
            calc(100% - 40px),
            var(--container)
        );

    margin:
        0 auto;
}


/* ==========================================================
   HEADER
   ========================================================== */

.site-header {
    position:
        sticky;

    top:
        0;

    z-index:
        20;

    border-bottom:
        1px solid rgba(226, 229, 233, 0.85);

    background:
        rgba(247, 248, 250, 0.9);

    backdrop-filter:
        blur(18px);
}


.header-inner {
    height:
        72px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;
}


.brand {
    display:
        inline-flex;

    align-items:
        center;

    gap:
        10px;

    font-weight:
        800;

    letter-spacing:
        -0.02em;
}


.brand-mark {
    width:
        34px;

    height:
        34px;

    display:
        grid;

    place-items:
        center;

    border-radius:
        10px;

    background:
        var(--accent);

    color:
        white;

    font-size:
        20px;

    line-height:
        1;
}


.brand-name {
    font-size:
        17px;
}


.main-nav {
    display:
        flex;

    align-items:
        center;

    gap:
        28px;

    color:
        var(--text-soft);

    font-size:
        14px;

    font-weight:
        600;
}


.main-nav a:hover {
    color:
        var(--text);
}


/* ==========================================================
   HERO
   ========================================================== */

.hero {
    padding:
        92px 0 80px;
}


.hero-inner {
    display:
        flex;

    justify-content:
        center;
}


.hero-copy {
    width:
        min(
            100%,
            820px
        );

    text-align:
        center;
}


.eyebrow {
    display:
        inline-block;

    margin-bottom:
        14px;

    color:
        var(--text-soft);

    font-size:
        12px;

    font-weight:
        800;

    letter-spacing:
        0.11em;

    text-transform:
        uppercase;
}


.hero h1 {
    margin:
        0;

    font-size:
        clamp(
            42px,
            6vw,
            72px
        );

    line-height:
        0.98;

    letter-spacing:
        -0.055em;

    font-weight:
        850;
}


.hero h1 span {
    display:
        block;

    color:
        var(--text-soft);
}


.hero-description {
    max-width:
        620px;

    margin:
        24px auto 0;

    color:
        var(--text-soft);

    font-size:
        18px;

    line-height:
        1.6;
}


.search-shell {
    width:
        min(
            100%,
            680px
        );

    height:
        62px;

    margin:
        34px auto 0;

    display:
        flex;

    align-items:
        center;

    gap:
        12px;

    padding:
        0 18px;

    border:
        1px solid var(--border-strong);

    border-radius:
        18px;

    background:
        var(--surface);

    box-shadow:
        var(--shadow-md);
}


.search-icon {
    color:
        var(--text-muted);

    font-size:
        24px;
}


.search-shell input {
    width:
        100%;

    border:
        0;

    outline:
        0;

    background:
        transparent;

    color:
        var(--text);

    font-size:
        16px;
}


.search-shell input::placeholder {
    color:
        #a2a6ad;
}


.hero-meta {
    margin-top:
        18px;

    display:
        flex;

    justify-content:
        center;

    flex-wrap:
        wrap;

    gap:
        8px;

    color:
        var(--text-muted);

    font-size:
        12px;

    font-weight:
        600;
}


.meta-separator {
    color:
        #c1c5ca;
}


/* ==========================================================
   CATALOG
   ========================================================== */

.catalog-section {
    padding:
        40px 0 100px;
}


.section-heading {
    display:
        flex;

    align-items:
        end;

    justify-content:
        space-between;

    gap:
        24px;

    margin-bottom:
        30px;
}


.section-heading h2 {
    margin:
        0;

    font-size:
        clamp(
            30px,
            4vw,
            42px
        );

    letter-spacing:
        -0.04em;

    line-height:
        1.05;
}


.catalog-count {
    padding-bottom:
        4px;

    color:
        var(--text-muted);

    font-size:
        13px;

    font-weight:
        600;
}


.category-tabs {
    display:
        flex;

    gap:
        8px;

    margin-bottom:
        28px;

    overflow-x:
        auto;

    scrollbar-width:
        none;
}


.category-tabs::-webkit-scrollbar {
    display:
        none;
}


.category-tab {
    flex:
        0 0 auto;

    padding:
        10px 16px;

    border:
        1px solid var(--border);

    border-radius:
        999px;

    background:
        var(--surface);

    color:
        var(--text-soft);

    cursor:
        pointer;

    font-size:
        13px;

    font-weight:
        700;

    transition:
        150ms ease;
}


.category-tab:hover {
    border-color:
        var(--border-strong);

    color:
        var(--text);
}


.category-tab.active {
    border-color:
        var(--accent);

    background:
        var(--accent);

    color:
        white;
}


.product-grid {
    display:
        grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap:
        18px;
}


.product-card {
    display:
        flex;

    flex-direction:
        column;

    min-height:
        330px;

    padding:
        24px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-md);

    background:
        var(--surface);

    box-shadow:
        var(--shadow-sm);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}


.product-card:hover {
    transform:
        translateY(-3px);

    border-color:
        var(--border-strong);

    box-shadow:
        var(--shadow-md);
}


.product-topline {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        12px;
}


.product-category {
    color:
        var(--text-muted);

    font-size:
        11px;

    font-weight:
        800;

    letter-spacing:
        0.08em;

    text-transform:
        uppercase;
}


.offer-count {
    color:
        var(--text-muted);

    font-size:
        11px;

    font-weight:
        700;
}


.product-card h3 {
    margin:
        22px 0 8px;

    font-size:
        21px;

    line-height:
        1.25;

    letter-spacing:
        -0.025em;
}


.product-brand {
    margin:
        0;

    color:
        var(--text-soft);

    font-size:
        13px;
}


.product-size {
    display:
        inline-flex;

    width:
        fit-content;

    margin-top:
        14px;

    padding:
        6px 9px;

    border-radius:
        7px;

    background:
        var(--surface-soft);

    color:
        var(--text-soft);

    font-size:
        11px;

    font-weight:
        700;
}


.product-price-block {
    margin-top:
        auto;

    padding-top:
        28px;
}


.price-label {
    color:
        var(--text-muted);

    font-size:
        11px;

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        0.07em;
}


.price-row {
    margin-top:
        4px;

    display:
        flex;

    align-items:
        baseline;

    gap:
        7px;
}


.best-price {
    font-size:
        28px;

    font-weight:
        850;

    letter-spacing:
        -0.035em;
}


.currency {
    color:
        var(--text-muted);

    font-size:
        11px;

    font-weight:
        700;
}


.best-store {
    margin-top:
        5px;

    color:
        var(--success);

    font-size:
        12px;

    font-weight:
        700;
}


.product-action {
    width:
        100%;

    margin-top:
        18px;

    padding:
        12px 14px;

    border:
        0;

    border-radius:
        10px;

    background:
        var(--accent);

    color:
        white;

    cursor:
        pointer;

    font-size:
        13px;

    font-weight:
        750;

    transition:
        opacity 150ms ease;
}


.product-action:hover {
    opacity:
        0.88;
}


/* ==========================================================
   EMPTY STATE
   ========================================================== */

.empty-state {
    padding:
        60px 20px;

    border:
        1px dashed var(--border-strong);

    border-radius:
        var(--radius-md);

    text-align:
        center;

    background:
        rgba(255, 255, 255, 0.45);
}


.empty-icon {
    color:
        var(--text-muted);

    font-size:
        36px;
}


.empty-state h3 {
    margin:
        14px 0 6px;

    font-size:
        20px;
}


.empty-state p {
    margin:
        0;

    color:
        var(--text-soft);

    font-size:
        14px;
}


.hidden {
    display:
        none !important;
}


/* ==========================================================
   HOW IT WORKS
   ========================================================== */

.how-section {
    padding:
        90px 0;

    border-top:
        1px solid var(--border);

    background:
        var(--surface);
}


.steps-grid {
    display:
        grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap:
        18px;
}


.step-card {
    padding:
        26px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-md);

    background:
        var(--bg);
}


.step-number {
    color:
        var(--text-muted);

    font-size:
        11px;

    font-weight:
        800;

    letter-spacing:
        0.08em;
}


.step-card h3 {
    margin:
        26px 0 8px;

    font-size:
        20px;
}


.step-card p {
    margin:
        0;

    color:
        var(--text-soft);

    font-size:
        14px;

    line-height:
        1.6;
}


/* ==========================================================
   FOOTER
   ========================================================== */

.site-footer {
    padding:
        34px 0;

    border-top:
        1px solid var(--border);
}


.footer-inner {
    display:
        flex;

    align-items:
        end;

    justify-content:
        space-between;

    gap:
        30px;
}


.footer-brand {
    font-weight:
        800;
}


.footer-inner p {
    margin:
        6px 0 0;

    color:
        var(--text-muted);

    font-size:
        12px;
}


.footer-meta {
    color:
        var(--text-muted);

    font-size:
        12px;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (
    max-width: 900px
) {

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

}


@media (
    max-width: 680px
) {

    .container {
        width:
            min(
                calc(100% - 28px),
                var(--container)
            );
    }


    .main-nav {
        display:
            none;
    }


    .hero {
        padding:
            68px 0 58px;
    }


    .hero h1 {
        font-size:
            44px;
    }


    .hero-description {
        font-size:
            16px;
    }


    .search-shell {
        height:
            58px;
    }


    .section-heading {
        align-items:
            start;

        flex-direction:
            column;
    }


    .product-grid {
        grid-template-columns:
            1fr;
    }


    .steps-grid {
        grid-template-columns:
            1fr;
    }


    .footer-inner {
        align-items:
            start;

        flex-direction:
            column;
    }

}