﻿/* ===== Offers Header ===== */
.offers-header {
    padding: 40px 0 30px;
    background-color: #f0f4e8;
    border-top: 1px solid #d0d8c0;
    border-bottom: 1px solid #d0d8c0;
}

.offers-title {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin: 0;
    text-align: center;
}

/* ===== Offers Grid Section ===== */
.offers-grid-section {
    padding: 60px 0 80px;
    background-color: #ffffff;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Offer Card */
.offer-card {
    position: relative;
}

.offer-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background-color: #90C847; 
}

.offer-image-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.offer-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.offer-image-wrapper:hover img {
    transform: scale(1.03);
}

/* Plus Button - HIDDEN BY DEFAULT */
.offer-plus-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0.5);
}

/* Show Plus Button on Hover */
.offer-image-wrapper:hover .offer-plus-btn {
    opacity: 1;
    transform: scale(1);
}

.offer-plus-btn svg {
    stroke: #000;
    transition: all 0.3s ease;
}

.offer-plus-btn:hover {
    background-color: #90C847; 
    transform: scale(1.1) rotate(90deg) !important;
}

.offer-plus-btn:hover svg {
    stroke: #ffffff;
}

/* Hover Overlay */
.offer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.offer-image-wrapper:hover .offer-overlay {
    opacity: 1;
}

/* No Offers Message */
.no-offers-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    font-size: 18px;
    color: #000;
}

/* ===== Responsive Design ===== */

@media (max-width: 992px) {
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .offers-header {
        padding: 35px 0 25px;
    }
    
    .offers-title {
        font-size: 26px;
    }
    
    .offers-grid-section {
        padding: 50px 0 60px;
    }
    
    .offers-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .offer-plus-btn {
        width: 45px;
        height: 45px;
        top: 15px;
        left: 15px;
    }
}

@media (max-width: 480px) {
    .offers-title {
        font-size: 22px;
    }
}