﻿
/* =====================================
   GENERAL
===================================== */
body {
    margin: 0;
    font-family: Georgia, sans-serif;
    background: linear-gradient( to bottom, #fcfaf8, #f6efe7 );
    color: #333;
}

.offers-page {
    width: 92%;
    max-width: 1250px;
    margin: 45px auto 70px;
    font-family: Arial, sans-serif;
    color: #333;
}


/* ==================================
   PAGE TITLE
===================================== */

.offers-title {
    text-align: center;
    margin-bottom: 55px;
}

    .offers-title h1 {
        font-size: 34px;
        font-weight: 600;
        color: #70452f;
        margin-bottom: 10px;
    }

    .offers-title p {
        font-size: 15px;
        color: #888;
    }


/* =====================================
   CATEGORY SECTION
===================================== */

.offer-section {
    margin-bottom: 55px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

    .section-heading h2 {
        font-size: 23px;
        font-weight: 600;
        color: #49372d;
        margin: 0;
    }


/* =====================================
   CAROUSEL CONTROLS
===================================== */

.carousel-controls {
    display: flex;
    gap: 10px;
}

    .carousel-controls button {
        width: 36px;
        height: 36px;
        border: 1px solid #c8a78e;
        border-radius: 50%;
        background: #fff;
        color: #70452f;
        font-size: 17px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .carousel-controls button:hover {
            background: #70452f;
            color: #fff;
        }


/* =====================================
   CAROUSEL
===================================== */

.carousel-viewport {
    width: 100%;
    overflow: hidden;
}

.offer-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .offer-track::-webkit-scrollbar {
        display: none;
    }


/* =====================================
   PRODUCT CARD
===================================== */

.offer-card {
    flex: 0 0 calc((100% - 54px) / 4);
    min-width: 0;
    scroll-snap-align: start;
    background-color: #fff;
}

.offer-image {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    position: relative;
    overflow: hidden;
    background: #f7f2ed;
    border-radius: 5px;
}

    .offer-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

    .offer-image:hover img {
        transform: scale(1.04);
    }


/* =====================================
   DISCOUNT BADGE
===================================== */

.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #FF091A;
    color: #fff;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    z-index: 2;
}


/* =====================================
   PRODUCT INFORMATION
===================================== */

.offer-info {
    padding: 12px 2px;
}

    .offer-info h3 {
        font-size: 15px;
        font-weight: 500;
        color: #40352f;
        margin: 0 0 10px;
        line-height: 1.5;
    }

.offer-prices {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.old-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.new-price {
    font-size: 16px;
    font-weight: bold;
    color: #9b4935;
}


/* =====================================
   EMPTY CATEGORY
===================================== */

.no-offers {
    display: block;
    padding: 15px 0;
    color: #888;
    font-size: 14px;
}



/* =====================================
   DESKTOP
===================================== */

@media screen and (min-width: 901px) {

    .offer-card {
        flex: 0 0 calc((100% - 54px) / 4);
    }

    .carousel-controls {
        display: flex;
    }
}


/* =====================================
   TABLET
===================================== */

@media screen and (min-width: 601px) and (max-width: 900px) {

    .offers-page {
        width: 94%;
    }

    .offer-card {
        flex: 0 0 calc((100% - 36px) / 3);
    }

    .carousel-controls {
        display: none;
    }
}


/* =====================================
   MOBILE
===================================== */

@media screen and (max-width: 600px) {

    .offers-page {
        width: 94%;
        margin: 25px auto 45px;
    }

    .offers-title {
        margin-bottom: 35px;
    }

        .offers-title h1 {
            font-size: 26px;
        }

        .offers-title p {
            font-size: 13px;
        }

    .section-heading {
        margin-bottom: 15px;
    }

        .section-heading h2 {
            font-size: 18px;
        }

    .carousel-controls {
        display: none;
    }

    .offer-track {
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .offer-card {
        flex: 0 0 calc((100% - 12px) / 2);
        scroll-snap-align: start;
    }

    .offer-image {
        aspect-ratio: 3 / 4;
    }

    .discount-badge {
        font-size: 10px;
        padding: 5px 7px;
        top: 8px;
        left: 8px;
    }

    .offer-info h3 {
        font-size: 13px;
    }

    .offer-prices {
        gap: 6px;
    }

    .old-price {
        font-size: 11px;
    }

    .new-price {
        font-size: 14px;
    }

    .offer-section {
        margin-bottom: 35px;
    }
}


/* =====================================
   SMALL MOBILE
===================================== */

@media screen and (max-width: 360px) {

    .offers-title h1 {
        font-size: 23px;
    }

    .section-heading h2 {
        font-size: 16px;
    }

    .offer-info h3 {
        font-size: 12px;
    }

    .new-price {
        font-size: 13px;
    }
}

