:root {
    --bg:
        #f7f8fa;

    --surface:
        #ffffff;

    --surface-soft:
        #f1f3f5;

    --text:
        #111318;

    --text-soft:
        #60646c;

    --text-muted:
        #8a8f98;

    --border:
        #e2e5e9;

    --border-strong:
        #d5d9df;

    --accent:
        #15171c;

    --success:
        #087443;

    --success-soft:
        #edf8f2;

    --danger:
        #b42318;

    --danger-soft:
        #fff1f0;

    --warning:
        #936000;

    --warning-soft:
        #fff8e6;

    --radius:
        16px;

    --shadow:
        0 18px 50px rgba(
            17,
            19,
            24,
            0.06
        );
}


* {
    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;
}


a {
    color:
        inherit;

    text-decoration:
        none;
}


button,
a {
    -webkit-tap-highlight-color:
        transparent;
}


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

    margin:
        0 auto;
}


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

.site-header {
    position:
        sticky;

    top:
        0;

    z-index:
        20;

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

    backdrop-filter:
        blur(16px);

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


.header-inner {
    min-height:
        72px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        24px;
}


.brand {
    display:
        inline-flex;

    align-items:
        center;

    gap:
        10px;

    font-weight:
        800;
}


.brand-mark {
    width:
        32px;

    height:
        32px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        9px;

    background:
        var(--accent);

    color:
        #ffffff;

    font-size:
        17px;
}


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


.back-link {
    color:
        var(--text-soft);

    font-size:
        14px;

    font-weight:
        600;

    transition:
        color 0.15s ease;
}


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


/* ============================================================
   LOADING / ERROR
   ============================================================ */

.loading-state {
    min-height:
        300px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    color:
        var(--text-muted);

    font-size:
        14px;
}


.error-state {
    min-height:
        420px;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    text-align:
        center;

    padding:
        60px 20px;
}


.error-symbol {
    width:
        42px;

    height:
        42px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    margin-bottom:
        18px;

    background:
        var(--danger-soft);

    color:
        var(--danger);

    border-radius:
        50%;

    font-weight:
        800;
}


.error-state h1 {
    margin:
        0;

    font-size:
        clamp(
            24px,
            4vw,
            36px
        );
}


.error-state p {
    max-width:
        520px;

    margin:
        14px auto 24px;

    color:
        var(--text-soft);

    line-height:
        1.6;
}


.secondary-button {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    min-height:
        44px;

    padding:
        0 18px;

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

    border-radius:
        10px;

    background:
        var(--surface);

    font-weight:
        700;

    font-size:
        13px;
}


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

.product-hero {
    padding:
        70px 0 58px;
}


.breadcrumb {
    margin-bottom:
        22px;

    color:
        var(--text-muted);

    font-size:
        12px;

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        0.08em;
}


.product-heading {
    display:
        grid;

    grid-template-columns:
        minmax(0, 1fr)
        300px;

    gap:
        56px;

    align-items:
        end;
}


.category-label {
    margin-bottom:
        12px;

    color:
        var(--text-muted);

    font-size:
        12px;

    font-weight:
        800;

    text-transform:
        uppercase;

    letter-spacing:
        0.08em;
}


.product-heading h1 {
    max-width:
        720px;

    margin:
        0;

    font-size:
        clamp(
            36px,
            5vw,
            58px
        );

    line-height:
        1.02;

    letter-spacing:
        -0.045em;
}


.product-meta {
    display:
        flex;

    flex-wrap:
        wrap;

    align-items:
        center;

    gap:
        9px;

    margin-top:
        20px;

    color:
        var(--text-soft);

    font-size:
        15px;
}


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


.product-summary {
    padding:
        22px;

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

    border-radius:
        var(--radius);

    background:
        var(--surface);

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


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

    font-size:
        11px;

    font-weight:
        800;

    text-transform:
        uppercase;

    letter-spacing:
        0.07em;
}


.summary-price {
    margin-top:
        8px;

    font-size:
        34px;

    font-weight:
        850;

    letter-spacing:
        -0.04em;
}


.summary-store {
    margin-top:
        4px;

    color:
        var(--success);

    font-size:
        14px;

    font-weight:
        750;
}


.summary-savings {
    margin-top:
        12px;

    padding-top:
        12px;

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

    color:
        var(--success);

    font-size:
        13px;

    font-weight:
        750;
}


/* ============================================================
   COMPARISON
   ============================================================ */

.comparison-section {
    padding:
        12px 0 90px;
}


.section-heading {
    display:
        flex;

    align-items:
        flex-end;

    justify-content:
        space-between;

    gap:
        24px;

    margin-bottom:
        24px;
}


.eyebrow {
    margin-bottom:
        8px;

    color:
        var(--text-muted);

    font-size:
        11px;

    font-weight:
        800;

    text-transform:
        uppercase;

    letter-spacing:
        0.08em;
}


.section-heading h2 {
    margin:
        0;

    font-size:
        clamp(
            28px,
            4vw,
            40px
        );

    letter-spacing:
        -0.035em;
}


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

    font-size:
        13px;
}


.offers-list {
    display:
        flex;

    flex-direction:
        column;

    gap:
        12px;
}


.offer-card {
    position:
        relative;

    display:
        grid;

    grid-template-columns:
        minmax(190px, 1.15fr)
        minmax(145px, 0.8fr)
        minmax(130px, 0.7fr)
        minmax(130px, 0.8fr)
        auto;

    gap:
        22px;

    align-items:
        center;

    min-height:
        116px;

    padding:
        22px 24px;

    background:
        var(--surface);

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

    border-radius:
        14px;
}


.offer-card.best-offer {
    border-color:
        #acd8c2;

    box-shadow:
        0 0 0 1px #d8f1e4;
}


.offer-store-block {
    min-width:
        0;
}


.best-badge {
    display:
        inline-flex;

    align-items:
        center;

    margin-bottom:
        7px;

    padding:
        4px 7px;

    border-radius:
        999px;

    background:
        var(--success-soft);

    color:
        var(--success);

    font-size:
        10px;

    font-weight:
        850;

    text-transform:
        uppercase;

    letter-spacing:
        0.06em;
}


.offer-store {
    font-size:
        16px;

    font-weight:
        800;
}


.offer-seller {
    margin-top:
        5px;

    color:
        var(--text-muted);

    font-size:
        12px;
}


.offer-column-label {
    margin-bottom:
        5px;

    color:
        var(--text-muted);

    font-size:
        10px;

    font-weight:
        800;

    text-transform:
        uppercase;

    letter-spacing:
        0.06em;
}


.offer-price {
    font-size:
        21px;

    font-weight:
        850;

    letter-spacing:
        -0.025em;
}


.offer-regular-price {
    margin-top:
        3px;

    color:
        var(--text-muted);

    font-size:
        11px;

    text-decoration:
        line-through;
}


.stock-badge {
    display:
        inline-flex;

    align-items:
        center;

    padding:
        6px 9px;

    border-radius:
        999px;

    font-size:
        11px;

    font-weight:
        800;
}


.stock-badge.in-stock {
    background:
        var(--success-soft);

    color:
        var(--success);
}


.stock-badge.out-of-stock {
    background:
        var(--danger-soft);

    color:
        var(--danger);
}


.stock-badge.unknown-stock {
    background:
        var(--surface-soft);

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


.last-update {
    color:
        var(--text-soft);

    font-size:
        12px;

    line-height:
        1.45;
}


.offer-button {
    min-width:
        120px;

    min-height:
        44px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        0 16px;

    border:
        0;

    border-radius:
        10px;

    background:
        var(--accent);

    color:
        #ffffff;

    font-size:
        12px;

    font-weight:
        800;

    cursor:
        pointer;

    transition:
        transform 0.15s ease,
        opacity 0.15s ease;
}


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


.offer-button.disabled {
    pointer-events:
        none;

    opacity:
        0.42;
}


.comparison-note {
    margin-top:
        24px;

    padding:
        17px 19px;

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

    border-radius:
        12px;

    background:
        var(--surface-soft);

    color:
        var(--text-soft);

    font-size:
        12px;

    line-height:
        1.6;
}


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

.site-footer {
    border-top:
        1px solid var(--border);

    background:
        var(--surface);
}


.footer-inner {
    min-height:
        140px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        30px;
}


.footer-brand {
    font-size:
        14px;

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


/* ============================================================
   HELPERS
   ============================================================ */

.hidden {
    display:
        none !important;
}


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

@media (
    max-width: 900px
) {

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


    .product-summary {
        max-width:
            420px;
    }


    .offer-card {
        grid-template-columns:
            1fr 1fr;
    }


    .offer-action {
        grid-column:
            1 / -1;
    }


    .offer-button {
        width:
            100%;
    }

}


@media (
    max-width: 620px
) {

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


    .header-inner {
        min-height:
            64px;
    }


    .brand-name {
        display:
            none;
    }


    .product-hero {
        padding:
            46px 0 42px;
    }


    .product-heading {
        gap:
            30px;
    }


    .product-heading h1 {
        font-size:
            36px;
    }


    .section-heading {
        align-items:
            flex-start;

        flex-direction:
            column;
    }


    .offer-card {
        grid-template-columns:
            1fr;

        gap:
            16px;
    }


    .offer-action {
        grid-column:
            auto;
    }


    .footer-inner {
        flex-direction:
            column;

        align-items:
            flex-start;

        justify-content:
            center;
    }

}