

.hero {
    width: 100%;
    height: 500px;

    position: relative;
    overflow: hidden;

    color: white;
}

.hero-slider {
    width: 100%;
    height: 100%;

    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;

    padding-left: 90px;

    box-sizing: border-box;

    transform: translateX(100%);

    transition:
        transform 0.8s ease-in-out;
}

.hero-slide.active {
    transform: translateX(0);
}

.hero-slide.previous {
    transform: translateX(-100%);
}


/* =========================================================
   HERO CONTENT
========================================================= */

.hero-content {
    max-width: 650px;
}

.hero .small-heading {
    margin: 0 0 12px;

    color: #28a9ff;

    font-size: 14px;
    font-weight: bold;

    letter-spacing: 2px;
}

.hero h2 {
    margin: 10px 0 18px;

    color: white;

    font-size: 48px;
    line-height: 1.1;
    font-weight: 700;
}

.hero h2 span {
    color: #28a9ff;
}

.features {
    margin: 0 0 28px;

    color: white;

    font-size: 18px;
    line-height: 1.6;
}


/* =========================================================
   SHOP SALE BUTTON
========================================================= */

.shop-btn {
    display: inline-block;

    padding: 13px 28px;

    background: #28a9ff;
    color: white;

    text-decoration: none;

    border-radius: 5px;

    font-size: 15px;
    font-weight: bold;

    transition:
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.shop-btn:hover {
    background: #1683ff;

    transform: translateY(-2px);

    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.20);
}


/* =========================================================
   SALE PRODUCTS SECTION
========================================================= */

.products-section {
    width: 100%;

    padding: 65px 5%;

    box-sizing: border-box;

    background: #f5f7fa;
}


/* =========================================================
   SECTION TITLE
========================================================= */

.products-section .section-title {
    text-align: center;

    margin-bottom: 5px;
}

.products-section .section-title .small-heading {
    margin: 0 0 8px;

    color: #28a9ff;

    font-size: 13px;
    font-weight: bold;

    letter-spacing: 2px;
}

.products-section .section-title h2 {
    margin: 0;

    color: #172b4d;

    font-size: 34px;
    line-height: 1.2;
}

.products-section .section-title h2 span {
    color: #28a9ff;
}

.products-section .section-title > p:last-child {
    max-width: 650px;

    margin: 12px auto 0;

    color: #777;

    font-size: 15px;

    line-height: 1.6;
}


/* =========================================================
   PRODUCTS GRID
========================================================= */

.products-grid {
    max-width: 1200px;

    margin: 38px auto 0;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 22px;
}


/* =========================================================
   PRODUCT CARD
========================================================= */

.product-card {
    width: 100%;

    overflow: hidden;

    background: white;

    border: 1px solid #e6e6e6;

    border-radius: 8px;

    box-sizing: border-box;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.06);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.13);
}


/* =========================================================
   PRODUCT IMAGE
========================================================= */

.product-image {
    position: relative;

    width: 100%;
    height: 310px;

    overflow: hidden;

    background: #eeeeee;
}

.product-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.45s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}


/* =========================================================
   SALE BADGE
========================================================= */

.sale-badge {
    position: absolute;

    top: 12px;
    left: 12px;

    z-index: 5;

    padding: 7px 12px;

    background: #e53935;
    color: white;

    border-radius: 4px;

    font-size: 11px;
    font-weight: bold;

    letter-spacing: 0.5px;

    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   DIFFERENT SALE BADGE COLORS
========================================================= */

.product-card:nth-child(2) .sale-badge {
    background: #f57c00;
}

.product-card:nth-child(3) .sale-badge {
    background: #e53935;
}

.product-card:nth-child(4) .sale-badge {
    background: #c62828;
}

.product-card:nth-child(5) .sale-badge {
    background: #172b4d;
}

.product-card:nth-child(6) .sale-badge {
    background: #e53935;
}

.product-card:nth-child(7) .sale-badge {
    background: #7b61ff;
}

.product-card:nth-child(8) .sale-badge {
    background: #c62828;
}


/* =========================================================
   PRODUCT INFORMATION
========================================================= */

.product-info {
    padding: 18px;
}

.product-info h3 {
    margin: 0 0 7px;

    color: #172b4d;

    font-size: 18px;

    line-height: 1.35;

    min-height: 48px;
}


/* =========================================================
   PRODUCT CATEGORY
========================================================= */

.product-category {
    margin: 0 0 12px;

    color: #777;

    font-size: 13px;
}


/* =========================================================
   RATING
========================================================= */

.rating {
    margin-bottom: 14px;

    color: #f5a623;

    font-size: 14px;

    letter-spacing: 0.5px;
}

.rating span {
    margin-left: 5px;

    color: #777;

    font-size: 12px;

    letter-spacing: 0;
}


/* =========================================================
   PRICE
========================================================= */

.price {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 16px;
}

.old-price {
    color: #999;

    font-size: 14px;

    text-decoration: line-through;
}

.sale-price {
    color: #e53935;

    font-size: 20px;

    font-weight: bold;
}


/* =========================================================
   ADD TO CART BUTTON
========================================================= */

.cart-btn {
    width: 100%;

    padding: 11px 15px;

    border: none;

    border-radius: 5px;

    background: #172b4d;
    color: white;

    font-size: 14px;
    font-weight: bold;

    cursor: pointer;

    transition:
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.cart-btn:hover {
    background: #e53935;

    transform: translateY(-2px);

    box-shadow:
        0 6px 14px rgba(229, 57, 53, 0.25);
}


/* =========================================================
   1200px
========================================================= */

@media (max-width: 1200px) {

    .products-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


/* =========================================================
   1000px
========================================================= */

@media (max-width: 1000px) {

    .hero-slide {
        padding-left: 55px;
    }

    .hero h2 {
        font-size: 42px;
    }

    .products-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   700px
========================================================= */

@media (max-width: 700px) {

    .hero {
        height: 480px;
    }

    .hero-slide {
        padding: 30px;

        align-items: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero .small-heading {
        font-size: 12px;

        letter-spacing: 1.5px;
    }

    .hero h2 {
        font-size: 35px;
    }

    .features {
        font-size: 15px;

        line-height: 1.5;
    }

    .shop-btn {
        padding: 11px 22px;
    }


    /* Products */

    .products-section {
        padding: 50px 15px;
    }

    .products-grid {
        grid-template-columns: 1fr;

        gap: 20px;

        margin-top: 30px;
    }

    .product-image {
        height: 360px;
    }

    .products-section .section-title h2 {
        font-size: 29px;
    }

    .products-section .section-title > p:last-child {
        font-size: 14px;
    }

}


/* =========================================================
   450px
========================================================= */

@media (max-width: 450px) {

    .hero {
        height: 450px;
    }

    .hero-slide {
        padding: 25px;
    }

    .hero .small-heading {
        font-size: 11px;

        letter-spacing: 1.3px;
    }

    .hero h2 {
        font-size: 29px;
    }

    .features {
        font-size: 14px;
    }

    .shop-btn {
        padding: 10px 18px;

        font-size: 13px;
    }


    /* Products */

    .products-section {
        padding: 40px 12px;
    }

    .products-grid {
        gap: 18px;
    }

    .product-image {
        height: 320px;
    }

    .product-info {
        padding: 16px;
    }

    .product-info h3 {
        font-size: 16px;

        min-height: 42px;
    }

    .product-category {
        font-size: 12px;
    }

    .old-price {
        font-size: 13px;
    }

    .sale-price {
        font-size: 18px;
    }

    .rating {
        font-size: 13px;
    }

    .cart-btn {
        padding: 10px;
    }

}

