/* UrbanNutMix - Grid Banners Component CSS */

.unm-grid-banners-section {
    width: 100%;
    padding: 32px clamp(12px, 3vw, 40px);
    background: #ffffff;
    box-sizing: border-box;
    overflow: hidden;
}

.unm-grid-banners-inner {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.unm-grid-banners-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.unm-grid-banner-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 2.2 / 1; /* Desktop rectangle aspect ratio matching reference */
    display: block;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}

.unm-grid-banner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.unm-grid-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.unm-grid-banner-card:hover .unm-grid-banner-img {
    transform: scale(1.04);
}

/* Shop Now Button overlay styling */
.unm-grid-banner-btn {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background-color: #4b8a08; /* Premium green background matching reference image */
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    text-transform: capitalize;
    border: none;
    cursor: pointer;
}

.unm-grid-banner-card:hover .unm-grid-banner-btn {
    background-color: #3e7306;
    box-shadow: 0 6px 16px rgba(75, 138, 8, 0.35);
    transform: scale(1.02);
}

/* ===================================
   RESPONSIVE OVERRIDES
   =================================== */

@media (max-width: 900px) {
    .unm-grid-banners-layout {
        gap: 16px;
    }
    .unm-grid-banner-btn {
        bottom: 16px;
        left: 16px;
        font-size: 0.68rem;
        padding: 8px 14px;
    }
}

/* Mobile view: 2x2 layout with almost square cards */
@media (max-width: 640px) {
    .unm-grid-banners-section {
        padding: 24px 12px;
    }
    .unm-grid-banners-layout {
        gap: 10px;
    }
    .unm-grid-banner-card {
        aspect-ratio: 1 / 1.05; /* Matches square-portrait mobile layout in reference image */
        border-radius: 8px;
    }
    .unm-grid-banner-btn {
        bottom: 12px;
        left: 12px;
        font-size: 0.6rem;
        padding: 7px 12px;
        border-radius: 4px;
        gap: 4px;
    }
}

@media (max-width: 380px) {
    .unm-grid-banners-layout {
        gap: 8px;
    }
    .unm-grid-banner-card {
        aspect-ratio: 1 / 1.1;
    }
    .unm-grid-banner-btn {
        bottom: 10px;
        left: 10px;
        font-size: 0.55rem;
        padding: 6px 10px;
    }
}
