/* =========================================================
   A1 CASH & CARRY - TODAY'S BEST OFFERS
========================================================= */

.offers-section {
    width: 100%;
    padding: 42px 0 48px;
    /* background: linear-gradient(135deg, #f4f8f5, #ffffff 55%, #f2f7f4); */
}

.offers-section .section-container {
    padding-top: 0;
    padding-bottom: 0;
}

.offers-section .section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 24px;
}

.offers-section .section-heading span {
    display: block;
    margin-bottom: 5px;
    color: #087f23;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.offers-section .section-heading h2 {
    margin: 0;
    color: #172b4d;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
}

.offers-view-all {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 4px;
    color: #087f23;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.offers-view-all:hover {
    color: #034c16;
}

/* =========================================================
   FIVE CARD ASYMMETRIC GRID
========================================================= */

.deal-layout {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1.05fr;
    grid-template-rows: minmax(220px, 0.9fr) minmax(220px, 1fr);
    grid-template-areas:
        "feature home home fashion"
        "feature grocery electronics fashion";
    gap: 18px;
    width: 100%;
}

/* =========================================================
   COMMON CARD
========================================================= */

.deal-card {
    position: relative;
    isolation: isolate;
    display: block;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: 12px;
    color: #ffffff;
    background-color: #0645a5;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    text-decoration: none;
    box-shadow: 0 5px 18px rgba(15, 35, 60, 0.10);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.deal-card:hover,
.deal-card:focus-visible {
    z-index: 2;
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15, 35, 60, 0.20);
    outline: 2px solid rgba(8, 127, 35, 0.65);
    outline-offset: 2px;
}

.deal-card-overlay {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(
        110deg,
        rgba(0, 25, 75, 0.78) 0%,
        rgba(0, 38, 100, 0.45) 52%,
        rgba(0, 20, 55, 0.10) 100%
    );
    transition: background 0.25s ease;
}

.deal-card:hover .deal-card-overlay {
    background: linear-gradient(
        110deg,
        rgba(0, 25, 75, 0.84) 0%,
        rgba(0, 38, 100, 0.52) 60%,
        rgba(0, 20, 55, 0.18) 100%
    );
}

/* =========================================================
   CARD POSITIONS AND BACKGROUND IMAGES
========================================================= */

.deal-feature {
    grid-area: feature;
    min-height: 450px;
    background-color: #073a9f;
    background-image: url("https://images.unsplash.com/photo-1490481651871-ab68de25d43d?auto=format&fit=crop&w=1200&q=85");
}

.deal-home {
    grid-area: home;
    background-color: #0759d8;
    background-image: url("https://images.unsplash.com/photo-1556911220-e15b29be8c8f?auto=format&fit=crop&w=1000&q=85");
}

.deal-grocery {
    grid-area: grocery;
    background-color: #087f23;
    background-image: url("https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&w=800&q=85");
}

.deal-electronics {
    grid-area: electronics;
    background-color: #1456b8;
    background-image: url("https://images.unsplash.com/photo-1496181133206-80ce9b88a853?auto=format&fit=crop&w=800&q=85");
}

.deal-fashion {
    grid-area: fashion;
    background-color: #7b274b;
    background-image: url("https://images.unsplash.com/photo-1445205170230-053b83016050?auto=format&fit=crop&w=900&q=85");
}

/* =========================================================
   CARD TEXT
========================================================= */

.deal-copy {
    position: relative;
    z-index: 1;
    padding: 23px;
}

.deal-copy h3 {
    max-width: 100%;
    margin: 0 0 20px;
    color: #ffffff;
    font-size: clamp(19px, 1.8vw, 29px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.5px;
    text-wrap: balance;
}

.deal-feature .deal-copy {
    padding: 29px 25px;
}

.deal-feature .deal-copy h3 {
    font-size: clamp(28px, 2.7vw, 44px);
    line-height: 1.12;
    letter-spacing: -1.2px;
    margin-bottom: 24px;
}

/* =========================================================
   SHOP DEALS BUTTON
========================================================= */

.deal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 19px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 30px;
    background: #ffffff;
    color: #10253c;
    font-size: 12px;
    font-weight: 800;
    transition: background 0.2s ease, color 0.2s ease;
}

.deal-card:hover .deal-button {
    background: #087f23;
    color: #ffffff;
    border-color: #087f23;
}

/* =========================================================
   FEATURE STICKER
========================================================= */

.deal-sticker {
    position: absolute;
    left: 23px;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    border-radius: 7px;
    /* background: #07378d; */
    color: #ffffff;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.22); */
}

.deal-sticker span {
    display: inline-block;
    width: fit-content;
    margin-bottom: 5px;
    padding: 3px 6px;
    border-radius: 4px;
    /* background: #087fdb; */
    font-size: 12px;
    font-weight: 800;
}

.deal-sticker strong {
    font-size: 24px;
    font-weight: 900;
    line-height: 0.98;
}

/* =========================================================
   FASHION CARD TEXT
========================================================= */

.deal-discount {
    position: absolute;
    left: 23px;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.deal-discount span {
    font-size: 15px;
    font-weight: 700;
}

.deal-discount strong {
    font-size: clamp(22px, 2.1vw, 35px);
    font-weight: 900;
    line-height: 1.1;
}

.deal-discount b {
    font-size: 17px;
    font-weight: 800;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {
    .deal-layout {
        grid-template-columns: 1.2fr 1fr 1fr;
        grid-template-rows: 300px 220px 260px;
        grid-template-areas:
            "feature home home"
            "feature grocery electronics"
            "fashion fashion fashion";
    }

    .deal-feature {
        min-height: 0;
    }

    .deal-fashion .deal-copy h3 {
        max-width: 55%;
    }

    .deal-fashion .deal-discount {
        left: auto;
        right: 25px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {
    .offers-section {
        padding: 32px 0;
    }

    .offers-section .section-heading {
        align-items: start;
        margin-bottom: 18px;
    }

    .offers-section .section-heading h2 {
        font-size: 21px;
    }

    .offers-view-all {
        font-size: 12px;
    }

    .deal-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: 310px 210px 210px 250px;
        grid-template-areas:
            "feature feature"
            "home home"
            "grocery electronics"
            "fashion fashion";
        gap: 12px;
    }

    .deal-feature {
        min-height: 0;
    }

    .deal-feature .deal-copy {
        padding: 22px;
    }

    .deal-feature .deal-copy h3 {
        max-width: 85%;
        font-size: 31px;
    }

    .deal-copy {
        padding: 17px;
    }

    .deal-copy h3 {
        font-size: 19px;
        margin-bottom: 14px;
    }

    .deal-button {
        gap: 5px;
        padding: 9px 13px;
        font-size: 11px;
    }

    .deal-sticker {
        left: 16px;
        bottom: 16px;
    }

    .deal-sticker strong {
        font-size: 21px;
    }

    .deal-discount {
        left: 17px;
        bottom: 17px;
    }

    .deal-fashion .deal-copy h3 {
        max-width: 100%;
    }
}

/* SMALL PHONES */

@media (max-width: 380px) {
    .deal-layout {
        grid-template-rows: 280px 190px 200px 230px;
    }

    .deal-feature .deal-copy h3 {
        font-size: 26px;
    }

    .deal-copy {
        padding: 13px;
    }

    .deal-copy h3 {
        font-size: 17px;
    }

    .deal-button {
        padding: 8px 10px;
        font-size: 10px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .deal-card,
    .deal-card-overlay,
    .deal-button {
        transition: none;
    }
}
