:root {
    --offers-bg: #fffaf3;
    --offers-bg-soft: #fff3e4;
    --offers-card: #ffffff;
    --offers-ink: #1f2937;
    --offers-muted: #64748b;
    --offers-brand: #ff7a18;
    --offers-brand-strong: #ef5f00;
    --offers-accent: #0ea5a4;
    --offers-border: #f3dcc4;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--offers-ink);
    background: linear-gradient(180deg, var(--offers-bg) 0%, #ffffff 30%);
}

.offers-hero {
    position: relative;
    min-height: 370px;
    padding: 4.5rem 6vw 3.5rem;
    background-image: linear-gradient(120deg, rgba(255, 122, 24, 0.84), rgba(14, 165, 164, 0.72)), url('/media/8.jpeg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.offers-hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.24), transparent 42%), radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.16), transparent 36%);
}

.offers-hero__content {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.offers-hero__eyebrow {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.offers-hero h1 {
    margin: 0.55rem 0 0;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.1;
    color: #ffffff;
}

.offers-hero p {
    margin: 1rem auto 0;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
}

.offers-hero__stats {
    margin-top: 1.9rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.offers-hero__stats article {
    border-radius: 14px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(3px);
}

.offers-hero__stats strong {
    display: block;
    font-size: 1.45rem;
    color: #ffffff;
}

.offers-hero__stats span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.offers-shell {
    max-width: 1200px;
    margin: -36px auto 0;
    padding: 0 1.2rem 2.4rem;
    position: relative;
    z-index: 2;
}

.offers-toolbar {
    background: var(--offers-card);
    border: 1px solid var(--offers-border);
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(17, 24, 39, 0.08);
    padding: 1rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 0.8rem;
    align-items: end;
}

.toolbar-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.toolbar-field label {
    font-size: 0.78rem;
    color: var(--offers-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 700;
}

.toolbar-field input,
.toolbar-field select {
    height: 44px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: 0.96rem;
    padding: 0 0.8rem;
    outline: none;
    background: #fff;
}

.toolbar-field input:focus,
.toolbar-field select:focus {
    border-color: rgba(255, 122, 24, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.16);
}

.toolbar-actions {
    display: flex;
    gap: 0.55rem;
}

.toolbar-btn {
    height: 44px;
    border-radius: 10px;
    border: 1px solid transparent;
    padding: 0 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
}

.toolbar-btn--primary {
    background: linear-gradient(120deg, var(--offers-brand), var(--offers-brand-strong));
    color: #fff;
}

.toolbar-btn--ghost {
    background: #fff;
    border-color: #e5e7eb;
    color: #334155;
}

.offers-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.offers-chip {
    background: var(--offers-bg-soft);
    color: #9a3412;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 0.38rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.offers-grid {
    margin-top: 1.15rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.offer-card {
    background: var(--offers-card);
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.offer-badge {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    z-index: 2;
    background: #ef4444;
    color: #fff;
    padding: 0.32rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.offer-media {
    display: block;
    background: linear-gradient(180deg, #fff7ed, #fff);
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.offer-media img {
    width: 100%;
    height: 180px;
    object-fit: contain;
}

.offer-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.offer-content h3 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
}

.offer-content h3 a {
    text-decoration: none;
    color: #0f172a;
}

.offer-content p {
    margin: 0;
    color: #475569;
    line-height: 1.45;
    min-height: 44px;
}

.offer-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.price {
    font-size: 1.03rem;
    font-weight: 800;
    color: #0f766e;
}

.price-old {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: #94a3b8;
}

.stock {
    font-size: 0.82rem;
    font-weight: 700;
    color: #b45309;
}

.offer-actions {
    margin-top: 0.2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.offer-link,
.offer-btn {
    text-decoration: none;
    text-align: center;
    border-radius: 10px;
    padding: 0.62rem 0.7rem;
    font-size: 0.86rem;
    font-weight: 700;
}

.offer-link {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
}

.offer-btn {
    background: #0f172a;
    color: #fff;
}

.offers-empty {
    margin-top: 1.25rem;
    border: 1px dashed #fdba74;
    background: #fff7ed;
    border-radius: 14px;
    padding: 2rem;
    text-align: center;
}

.offers-empty h3 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
}

.offers-empty p {
    margin: 0.75rem 0 1rem;
    color: #7c2d12;
}

@media (max-width: 1100px) {
    .offers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .offers-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .toolbar-actions {
        grid-column: span 2;
    }
}

@media (max-width: 680px) {
    .offers-hero {
        min-height: 320px;
        padding-top: 3.4rem;
    }

    .offers-hero__stats {
        grid-template-columns: 1fr;
    }

    .offers-grid,
    .offers-toolbar {
        grid-template-columns: 1fr;
    }

    .toolbar-actions {
        grid-column: auto;
    }

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