/* =========================
   Deals Page
========================= */

.deals-page {
    min-height: 70vh;
    background-color: #f8fafc;
}


/* =========================
   Hero
========================= */

.deals-hero {
    padding: 2.25rem 0;
    background:
        radial-gradient(
            circle at top right,
            rgba(245, 158, 11, 0.22),
            transparent 34%
        ),
        radial-gradient(
            circle at bottom left,
            rgba(220, 38, 38, 0.1),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #fff7ed,
            #ffffff
        );
    border-bottom: 1px solid #fed7aa;
}

.deals-hero-label {
    display: inline-flex;
    margin-bottom: 0.7rem;
    padding: 0.35rem 0.65rem;
    color: #991b1b;
    font-size: 0.67rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background-color: #fee2e2;
    border-radius: 999px;
}

.deals-hero h1 {
    max-width: 760px;
    margin-bottom: 0.65rem;
    color: #0f172a;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.deals-hero p {
    max-width: 720px;
    margin-bottom: 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.65;
}

/* =========================
   Content and Grid
========================= */

.deals-content {
    padding: 2.25rem 0 4rem;
}

.deals-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(270px, 340px));
    justify-content: start;
    gap: 1.25rem;
}


/* =========================
   Deal Cards
========================= */

.deal-product-card {
    display: flex;
    height: 100%;
    overflow: hidden;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    background-color: #ffffff;
    border: 1px solid #fed7aa;
    border-radius: 1.4rem;
    box-shadow:
        0 18px 42px rgba(120, 53, 15, 0.08),
        0 6px 18px rgba(15, 23, 42, 0.05);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.deal-product-card:hover {
    color: inherit;
    border-color: #f59e0b;
    box-shadow:
        0 26px 58px rgba(120, 53, 15, 0.14),
        0 10px 28px rgba(220, 38, 38, 0.08);
    transform: translateY(-7px);
}

.deal-product-card:focus-visible {
    outline: 3px solid rgba(220, 38, 38, 0.3);
    outline-offset: 4px;
}


/* =========================
   Product Image
========================= */

.deal-product-media {
    position: relative;
    height: 230px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at top right,
            rgba(220, 38, 38, 0.2),
            transparent 42%
        ),
        radial-gradient(
            circle at bottom left,
            rgba(245, 158, 11, 0.16),
            transparent 46%
        ),
        linear-gradient(
            145deg,
            #fff7ed,
            #f8fafc
        );
    border-bottom: 1px solid #fed7aa;
}

.deal-product-media img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0.35rem;
    object-fit: contain;
    transition: transform 0.45s ease;
}

.deal-product-card:hover .deal-product-media img {
    transform: scale(1.055);
}

.deal-product-media .deal-product-fallback-image {
    padding: 1.75rem;
    opacity: 0.85;
}

.deal-product-card:hover .deal-product-media {
    background:
        radial-gradient(
            circle at top right,
            rgba(220, 38, 38, 0.27),
            transparent 44%
        ),
        radial-gradient(
            circle at bottom left,
            rgba(245, 158, 11, 0.2),
            transparent 48%
        ),
        linear-gradient(
            145deg,
            #fff7ed,
            #f8fafc
        );
}

.deal-discount-badge {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    z-index: 2;
    display: inline-flex;
    align-items: baseline;
    gap: 0.12rem;
    padding: 0.5rem 0.75rem;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 900;
    background-color: #dc2626;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.25);
}

.deal-discount-badge strong {
    font-size: 0.95rem;
    font-weight: 950;
}

.deal-featured-badge {
    position: absolute;
    bottom: 0.9rem;
    left: 0.9rem;
    z-index: 2;
    padding: 0.42rem 0.7rem;
    color: #78350f;
    font-size: 0.67rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background-color: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 999px;
}


/* =========================
   Card Content
========================= */

.deal-product-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.1rem;
}

.deal-product-label {
    display: block;
    margin-bottom: 0.4rem;
    color: #dc2626;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.deal-product-content h2 {
    margin-bottom: 0.85rem;
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1.4;
}

.deal-price-comparison > div {
    padding: 0.85rem;
    background-color: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 0.85rem;
}

.deal-price-comparison > div > span {
    display: block;
    margin-bottom: 0.25rem;
    color: #64748b;
    font-size: 0.65rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.deal-current-price,
.deal-regular-price,
.deal-saving-banner strong {
    display: inline-flex;
    align-items: baseline;
    gap: 0.12rem;
    white-space: nowrap;
}

.deal-current-price {
    color: #dc2626;
    font-size: 1.2rem;
    font-weight: 950;
}

.deal-regular-price {
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: line-through;
}

.deal-currency {
    font-size: 0.75em;
}

.deal-saving-banner {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.8rem;
    padding: 0.6rem 0.75rem;
    color: #166534;
    font-size: 0.75rem;
    font-weight: 800;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.75rem;
}

.deal-saving-banner strong {
    font-size: 1rem;
    font-weight: 950;
}


/* =========================
   Card Footer
========================= */

.deal-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.deal-product-footer > div > span {
    display: block;
    margin-bottom: 0.2rem;
    color: #64748b;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
}

.deal-product-footer > div > strong {
    display: block;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 850;
}

.deal-view-product {
    color: #dc2626;
    font-size: 0.75rem;
    font-weight: 900;
    white-space: nowrap;
}

.deal-view-product > span {
    display: inline-block;
    transition: transform 0.2s ease;
}

.deal-product-card:hover .deal-view-product > span {
    transform: translateX(3px);
}


/* =========================
   Empty State
========================= */

.deals-empty {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #ffffff;
    border: 1px dashed #f59e0b;
    border-radius: 1.4rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.deals-empty-icon {
    display: flex;
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    align-items: center;
    justify-content: center;
    color: #92400e;
    font-size: 1.3rem;
    font-weight: 950;
    background-color: #fef3c7;
    border-radius: 50%;
}

.deals-empty h2 {
    margin-bottom: 0.6rem;
    color: #0f172a;
    font-size: 1.45rem;
    font-weight: 900;
}

.deals-empty p {
    max-width: 560px;
    margin: 0 auto 1.5rem;
    color: #64748b;
    line-height: 1.7;
}


/* =========================
   Catalog Link
========================= */

.deals-catalog-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #ffffff;
    border: 1px solid #fed7aa;
    box-shadow: 0 12px 30px rgba(194, 65, 12, 0.06);
    border-radius: 1.15rem;
}

.deals-catalog-link strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #0f172a;
    font-weight: 900;
}

.deals-catalog-link p {
    margin: 0;
    color: #64748b;
    font-size: 0.85rem;
}


/* =========================
   Responsive
========================= */

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

@media (max-width: 767.98px) {
    .deals-hero {
        padding: 2.25rem 0;
    }

    .deals-content {
        padding: 3rem 0 4rem;
    }

    .deals-catalog-link {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .deals-grid {
        grid-template-columns: 1fr;
    }

    .deals-catalog-link .btn {
        width: 100%;
    }
}