@charset "UTF-8";

:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --text: #111827;
    --muted: #667085;
    --line: #e5e7eb;
    --brand: #e51f2b;
    --brand-dark: #bd1620;
    --brand-soft: #fff1f2;
    --navy: #172033;
    --success: #16803c;
    --success-soft: #ecfdf3;
    --warning: #a85d00;
    --warning-soft: #fff7e8;
    --blue: #1d5bbf;
    --blue-soft: #edf4ff;
    --shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 0%, rgba(229, 31, 43, 0.08), transparent 34rem),
        linear-gradient(180deg, #ffffff 0, var(--bg) 390px);
    font-family: Inter, Montserrat, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(14px);
}

.header-inner {
    width: min(1180px, calc(100% - 36px));
    min-height: 92px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
}

.brand {
    width: 150px;
    display: flex;
    align-items: center;
}

.brand img {
    display: block;
    max-width: 100%;
    max-height: 54px;
    object-fit: contain;
}

.header-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.header-copy strong {
    font-size: 17px;
}

.header-eyebrow,
.section-kicker {
    color: var(--brand);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.price-nav {
    padding: 5px;
    display: flex;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f7f8fa;
}

.price-tab {
    min-height: 48px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border-radius: 12px;
    color: #475467;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: 0.18s ease;
}

.price-tab:hover {
    color: var(--text);
    background: #fff;
}

.price-tab.active {
    color: #fff;
    background: var(--navy);
    box-shadow: 0 7px 18px rgba(23, 32, 51, 0.17);
}

.tab-icon {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255,255,255,.14);
    font-weight: 900;
}

/* MAIN */

.app-shell {
    width: min(1080px, calc(100% - 36px));
    margin: 0 auto;
    padding: 74px 0 72px;
}

.hero-search {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.hero-copy h1 {
    margin: 10px 0 12px;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.hero-copy p {
    max-width: 610px;
    margin: 0 auto;
    color: var(--muted);
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.6;
}

.search-form {
    max-width: 850px;
    margin: 34px auto 0;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    padding: 9px 10px 9px 19px;
    border: 1px solid #d7dce2;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
    transition: .18s ease;
}

.search-box:focus-within {
    border-color: rgba(229, 31, 43, .55);
    box-shadow:
        0 0 0 5px rgba(229, 31, 43, .08),
        0 18px 50px rgba(17, 24, 39, .09);
}

.search-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: #98a2b3;
}

#produc {
    width: 100%;
    min-width: 0;
    height: 66px;
    padding: 0 18px;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font-size: clamp(17px, 2.5vw, 23px);
    font-weight: 700;
}

#produc::placeholder {
    color: #a0a7b2;
    font-weight: 500;
}

.clear-button {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 15px;
    color: #667085;
    background: #f2f4f7;
    cursor: pointer;
    transition: .18s ease;
}

.clear-button:hover {
    color: #fff;
    background: var(--brand);
}

.search-help {
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7a8493;
    font-size: 13px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #20b05b;
    box-shadow: 0 0 0 4px rgba(32, 176, 91, .1);
}

/* RESULTS */

.results-area {
    margin-top: 54px;
}

.empty-state,
.no-results {
    min-height: 230px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px dashed #d7dce2;
    border-radius: var(--radius-xl);
    color: var(--muted);
    background: rgba(255, 255, 255, .55);
    text-align: center;
}

.empty-state strong,
.no-results strong {
    color: #344054;
    font-size: 18px;
}

.empty-icon {
    width: 68px;
    height: 68px;
    margin-bottom: 8px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    color: var(--brand);
    background: var(--brand-soft);
}

.results-header {
    margin-bottom: 18px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.results-header h2 {
    margin: 5px 0 0;
    font-size: 28px;
    letter-spacing: -0.03em;
}

.product-list {
    display: grid;
    gap: 18px;
}

.product-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) 210px;
    grid-template-areas:
        "main primary"
        "prices prices";
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: 0 11px 34px rgba(16, 24, 40, .055);
}

.product-main {
    grid-area: main;
    padding: 27px 30px 23px;
}

.product-code {
    margin-bottom: 9px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
}

.product-main h3 {
    margin: 0;
    font-size: clamp(20px, 3vw, 29px);
    line-height: 1.18;
    letter-spacing: -.025em;
}

.product-meta {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.product-meta span {
    padding: 8px 11px;
    border-radius: 10px;
    color: #475467;
    background: #f5f7f9;
    font-size: 13px;
}

.primary-price {
    grid-area: primary;
    min-height: 150px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    border-left: 1px solid var(--line);
    color: #fff;
    background:
        linear-gradient(145deg, #ef3340 0%, var(--brand-dark) 100%);
}

.primary-price span {
    opacity: .84;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.primary-price strong {
    margin-top: 4px;
    font-size: clamp(33px, 5vw, 48px);
    line-height: 1;
    letter-spacing: -.04em;
}

.price-grid {
    grid-area: prices;
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
    border-top: 1px solid var(--line);
    background: var(--surface-soft);
}

.price-chip {
    min-height: 88px;
    padding: 15px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #e7eaf0;
    border-radius: 15px;
    background: #fff;
}

.price-chip span {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.price-chip strong {
    font-size: 20px;
}

.price-chip.promo {
    border-color: #fde4b8;
    background: var(--warning-soft);
}

.price-chip.promo strong {
    color: var(--warning);
}

.price-chip.super {
    border-color: #d5e5ff;
    background: var(--blue-soft);
}

.price-chip.super strong {
    color: var(--blue);
}

.price-chip.discount {
    border-color: #ccefd8;
    background: var(--success-soft);
}

.price-chip.discount strong {
    color: var(--success);
}

.results-summary {
    margin-top: 18px;
    padding: 14px 17px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--muted);
    background: rgba(255,255,255,.72);
    font-size: 13px;
}

.results-summary strong,
.results-summary span {
    color: var(--text);
}

/* FOOTER */

.site-footer {
    padding: 0 24px 28px;
    color: #98a2b3;
    font-size: 12px;
    text-align: center;
}

/* RESPONSIVE */

@media (max-width: 760px) {
    .header-inner {
        width: min(100% - 24px, 1180px);
        min-height: 76px;
        grid-template-columns: 1fr auto;
        gap: 10px;
    }

    .brand {
        width: 120px;
    }

    .header-copy {
        display: none;
    }

    .price-nav {
        padding: 4px;
    }

    .price-tab {
        min-height: 42px;
        padding: 0 11px;
        font-size: 12px;
    }

    .tab-icon {
        width: 22px;
        height: 22px;
    }

    .app-shell {
        width: min(100% - 24px, 1080px);
        padding-top: 48px;
    }

    .hero-copy h1 {
        margin-top: 8px;
    }

    .search-box {
        padding-left: 14px;
        border-radius: 18px;
    }

    #produc {
        height: 58px;
        padding: 0 12px;
    }

    .clear-button {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 13px;
    }

    .results-area {
        margin-top: 40px;
    }

    .product-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "primary"
            "prices";
    }

    .product-main {
        padding: 22px;
    }

    .primary-price {
        min-height: auto;
        padding: 20px 22px;
        align-items: flex-start;
        border-left: 0;
    }

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

@media (max-width: 460px) {
    .brand {
        width: 105px;
    }

    .price-tab {
        padding: 0 9px;
    }

    .price-tab .tab-icon {
        display: none;
    }

    .hero-copy p {
        font-size: 14px;
    }

    .search-icon {
        display: none;
    }

    #produc {
        padding-left: 8px;
        font-size: 16px;
    }

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

    .product-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}
