:root {
    --app-bg: #f7f9fc;
    --app-surface: #ffffff;
    --app-text: #172033;
    --app-muted: #667085;
    --app-primary: #0d6efd;
    --app-primary-soft: #eaf2ff;
    --app-border: #e4e7ec;
    --app-success-soft: #ecfdf3;
    --app-success: #067647;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--app-bg);
    color: var(--app-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.app-navbar {
    min-height: 72px;
    backdrop-filter: blur(14px);
    background-color: rgba(255, 255, 255, 0.94) !important;
}

.navbar-brand {
    color: var(--app-text);
    letter-spacing: -0.02em;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #0d6efd, #4f8cff);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.2);
}

.hero-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 15%, rgba(13, 110, 253, 0.12), transparent 32%),
        radial-gradient(circle at 5% 85%, rgba(111, 66, 193, 0.08), transparent 28%),
        var(--app-bg);
}

.py-lg-6 {
    padding-top: 5.5rem !important;
    padding-bottom: 5.5rem !important;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: var(--app-primary-soft);
    color: var(--app-primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-section h1 {
    max-width: 780px;
    letter-spacing: -0.045em;
    line-height: 1.06;
}

.hero-copy {
    max-width: 720px;
    line-height: 1.7;
}

.search-preview {
    max-width: 760px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
}

.search-preview .form-control,
.search-preview .btn {
    min-height: 56px;
}

.search-preview .form-control:disabled {
    background-color: #fff;
    color: var(--app-muted);
    opacity: 1;
}

.store-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--app-border);
    border-radius: 999px;
    background: #fff;
    color: var(--app-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-panel {
    padding: 1.5rem;
    border: 1px solid rgba(228, 231, 236, 0.85);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
}

.hero-panel__top {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--app-muted);
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #12b76a;
    box-shadow: 0 0 0 5px rgba(18, 183, 106, 0.1);
}

.price-demo__product {
    margin-bottom: 0.75rem;
    color: var(--app-text);
    font-weight: 700;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.75rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--app-border);
    border-radius: 16px;
    background: #fff;
}

.price-row strong {
    white-space: nowrap;
    font-size: 1.15rem;
}

.price-row small {
    color: var(--app-muted);
}

.price-row.best-price {
    border-color: #abefc6;
    background: var(--app-success-soft);
}

.price-row.best-price strong,
.price-row.best-price .store-name {
    color: var(--app-success);
}

.store-name {
    font-weight: 700;
}

.section-heading {
    max-width: 650px;
}

.feature-card {
    padding: 1.5rem;
    border: 1px solid var(--app-border);
    border-radius: 20px;
    background: var(--app-surface);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: #cdd5df;
    box-shadow: 0 16px 40px rgba(16, 24, 40, 0.08);
}

.feature-number {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--app-primary);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.notice-section {
    background: #fff;
}

.notice-card {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.15rem;
    border: 1px solid #fedf89;
    border-radius: 16px;
    background: #fffaeb;
    color: #7a2e0e;
    font-size: 0.93rem;
    line-height: 1.6;
}

.search-results-hero {
    background: linear-gradient(180deg, #fff, var(--app-bg));
}

.product-result-card {
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.06);
}

.product-result-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 1.25rem;
    background: #f8fafc;
}

.product-result-image {
    width: 100%;
    max-width: 180px;
    max-height: 180px;
    object-fit: contain;
}

.product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    border-radius: 28px;
    background: var(--app-primary-soft);
    color: var(--app-primary);
    font-size: 2.2rem;
    font-weight: 800;
}

.best-price-summary {
    min-width: 150px;
    padding: 0.8rem 1rem;
    border: 1px solid #abefc6;
    border-radius: 16px;
    background: var(--app-success-soft);
    text-align: right;
}

.best-price-summary__label,
.best-price-summary small {
    display: block;
    color: var(--app-success);
    font-size: 0.78rem;
    font-weight: 700;
}

.best-price-summary strong {
    display: block;
    color: var(--app-success);
    font-size: 1.45rem;
}

.offer-list {
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: 16px;
}

.offer-list-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.4fr) minmax(150px, 1fr) minmax(100px, auto);
    gap: 1rem;
    align-items: center;
    padding: 0.9rem 1rem;
    background: #fff;
}

.offer-list-row + .offer-list-row {
    border-top: 1px solid var(--app-border);
}

.offer-list-row--best {
    background: var(--app-success-soft);
}

.offer-list-row__price strong {
    white-space: nowrap;
    font-size: 1.05rem;
}

.empty-search-state {
    max-width: 680px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    border: 1px dashed #cdd5df;
    border-radius: 22px;
    background: #fff;
}

.empty-search-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--app-primary-soft);
    color: var(--app-primary);
    font-size: 1.4rem;
    font-weight: 800;
}

.app-footer {
    border-top: 1px solid var(--app-border);
    background: #fff;
}

@media (max-width: 991.98px) {
    .py-lg-6 {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }

    .hero-section h1 {
        font-size: clamp(2.35rem, 9vw, 4rem);
    }

    .navbar-collapse {
        border-top: 1px solid var(--app-border);
        margin-top: 0.75rem;
    }

    .offer-list-row {
        grid-template-columns: 1fr auto;
    }

    .offer-list-row__checked {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

@media (max-width: 767.98px) {
    .product-result-image-wrap {
        min-height: 150px;
    }

    .best-price-summary {
        text-align: left;
    }
}

@media (max-width: 575.98px) {
    .app-navbar {
        min-height: 64px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .hero-section h1 {
        font-size: 2.35rem;
    }

    .hero-copy {
        font-size: 1rem;
    }

    .search-preview {
        padding: 1rem !important;
        border-radius: 16px;
    }

    .search-preview .input-group {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .search-preview .form-control,
    .search-preview .btn {
        width: 100%;
        border-radius: 0.75rem !important;
    }

    .hero-panel {
        padding: 1.15rem;
        border-radius: 18px;
    }

    .price-row {
        padding: 0.85rem;
    }

    .offer-list-row {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .offer-list-row__checked {
        grid-column: auto;
        grid-row: auto;
    }

    .offer-list-row__price {
        text-align: left !important;
    }

    .notice-card {
        display: block;
    }

    .notice-card strong {
        display: block;
        margin-bottom: 0.25rem;
    }
}
