/* ==========================================
   OFFERS CAROUSEL - FIXED VERSION
   Working Arrows | Better Tablet Handling
========================================== */

/* ==================== MAIN CONTAINER ==================== */
.offers-carousel-fullwidth {
    width: 100%;
    margin: 0 0 30px 0;
    padding: 0;
    position: relative;
}

.offers-carousel-fullwidth .swiper-slide {
    height: auto;
}

/* ==================== OFFER CARD ==================== */
.offer-carousel-card {
    background: var(--surface-color, #fff);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-carousel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* ==================== IMAGE WITH OVERLAY CONTENT ==================== */
.offer-carousel-image {
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* Dark gradient overlay for readability */
.offer-carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.1) 40%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

/* ==================== DISCOUNT BADGE ==================== */
.offer-carousel-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.5);
    z-index: 10;
}

/* ==================== PRICE ON IMAGE (Bottom Left) ==================== */
.offer-carousel-price {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.offer-carousel-original-price {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: line-through;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.offer-carousel-discounted-price {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    line-height: 1;
}

/* ==================== CTA BUTTON ON IMAGE (Bottom Right) ==================== */
.offer-carousel-cta {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    padding: 12px 26px;
    background: var(--primary-color, #FF6B6B);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.4);
}

.offer-carousel-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

/* ==================== HIDE CONTENT SECTION ==================== */
.offer-carousel-content {
    display: none;
}

.offer-carousel-footer {
    display: none;
}

/* ==================== MINIMAL NAVIGATION ARROWS ==================== */
.offers-carousel-fullwidth .swiper-button-next,
.offers-carousel-fullwidth .swiper-button-prev {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.25s ease;
    opacity: 0.75;
}

.offers-carousel-fullwidth .swiper-button-next::after,
.offers-carousel-fullwidth .swiper-button-prev::after {
    font-size: 0.75rem;
    color: var(--primary-color, #FF6B6B);
    font-weight: 700;
}

.offers-carousel-fullwidth .swiper-button-next:hover,
.offers-carousel-fullwidth .swiper-button-prev:hover {
    background: var(--primary-color, #FF6B6B);
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3);
}

.offers-carousel-fullwidth .swiper-button-next:hover::after,
.offers-carousel-fullwidth .swiper-button-prev:hover::after {
    color: white;
}

/* ==================== HIDE PAGINATION DOTS ==================== */
.offers-carousel-fullwidth .swiper-pagination {
    display: none;
}

/* ==================== LARGE TABLET & DESKTOP: GRID LAYOUT ==================== */
@media (min-width: 900px) {
    /* Convert Swiper to Grid */
    .offers-carousel-fullwidth {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 24px;
        margin-bottom: 40px;
    }
    
    /* Make Swiper wrapper behave like grid */
    .offers-carousel-fullwidth .swiper-wrapper {
        display: contents !important;
        transform: none !important;
    }
    
    .offers-carousel-fullwidth .swiper-slide {
        width: auto !important;
        margin: 0 !important;
    }
    
    /* HIDE Navigation completely */
    .offers-carousel-fullwidth .swiper-button-next,
    .offers-carousel-fullwidth .swiper-button-prev {
        display: none !important;
    }
    
    .offers-carousel-fullwidth .swiper-pagination {
        display: none !important;
    }
}

/* ==================== SMALL TABLET (Carousel with Arrows) ==================== */
@media (min-width: 600px) and (max-width: 899px) {
    .offer-carousel-image {
        height: 320px;
    }
}

/* ==================== MOBILE ==================== */
@media (max-width: 599px) {
    .offer-carousel-image {
        height: 280px;
    }

    .offer-carousel-price {
        bottom: 16px;
        left: 16px;
    }

    .offer-carousel-discounted-price {
        font-size: 1.6rem;
    }

    .offer-carousel-original-price {
        font-size: 0.8rem;
    }

    .offer-carousel-cta {
        bottom: 16px;
        right: 16px;
        padding: 10px 20px;
        font-size: 0.875rem;
    }

    .offer-carousel-badge {
        top: 12px;
        right: 12px;
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}

/* ==================== SMALL MOBILE ==================== */
@media (max-width: 480px) {
    .offer-carousel-image {
        height: 260px;
    }

    .offer-carousel-price {
        bottom: 12px;
        left: 12px;
    }

    .offer-carousel-discounted-price {
        font-size: 1.4rem;
    }

    .offer-carousel-cta {
        bottom: 12px;
        right: 12px;
        padding: 9px 18px;
        font-size: 0.8rem;
    }
}
