/* =========================================
   INDEX PAGE
========================================= */

:root {
    --home-blue: #2d65df;
    --home-green: #118b38;
    --home-text: #111827;
    --home-muted: #77818e;
    --home-bg: #f7f8fb;
}


/* =========================================
   HERO SECTION
========================================= */

.hero-section {
    width: 100%;

    padding:
        42px
        24px
        30px;

    background: #f4f6f9;
}


/* =========================================
   HERO SLIDER
========================================= */

.hero-slider {
    position: relative;

    width: 100%;
    height: 580px;

    overflow: hidden;

    border-radius: 28px;

    background: #111827;

    box-shadow:
        0 8px 30px
        rgba(17, 24, 39, 0.08);
}


/* =========================================
   HERO SLIDE
========================================= */

.hero-slide {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;
    visibility: hidden;

    transform: scale(1.015);

    transition:
        opacity 0.65s ease,
        visibility 0.65s ease,
        transform 1s ease;
}


.hero-slide.active {
    opacity: 1;

    visibility: visible;

    transform: scale(1);
}


/* =========================================
   HERO IMAGE
========================================= */

.hero-image {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transform: scale(1.08);
}


/* =========================================
   HERO FALLBACK
========================================= */

.hero-image-fallback {
    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 75% 40%,
            #334b69,
            transparent 36%
        ),
        linear-gradient(
            115deg,
            #09101d,
            #172a41
        );
}


/* =========================================
   DARK HERO OVERLAY
========================================= */

.hero-overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(5, 12, 23, 0.95) 0%,
            rgba(5, 12, 23, 0.84) 32%,
            rgba(5, 12, 23, 0.55) 60%,
            rgba(5, 12, 23, 0.28) 100%
        );
}


/* =========================================
   HERO CONTENT
========================================= */

.hero-content {
    position: absolute;

    inset: 0;

    z-index: 2;

    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
}


.hero-content-inner {
    width: 100%;

    padding:
        0
        55px
        0
        75px;

    transform: translateY(10px);
}


/* =========================================
   HERO BADGE
========================================= */

.hero-badge {
    min-height: 34px;

    padding:
        0
        17px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 24px;

    border:
        1px solid
        rgba(255, 255, 255, 0.18);

    border-radius: 30px;

    background:
        rgba(255, 255, 255, 0.13);

    color: #ffffff;

    font-size: 11px;

    line-height: 1;

    font-weight: 900;

    letter-spacing: 1px;

    backdrop-filter: blur(8px);

    box-shadow:
        0 4px 14px
        rgba(0, 0, 0, 0.13);
}


/* =========================================
   HERO TITLE
========================================= */

.hero-content h1 {
    max-width: 760px;

    margin: 0;

    color: #ffffff;

    font-size:
        clamp(
            48px,
            4.5vw,
            74px
        );

    line-height: 1;

    font-weight: 900;

    letter-spacing: -1px;

    text-transform: uppercase;

    text-shadow:
        0 3px 16px
        rgba(0, 0, 0, 0.25);
}


/* =========================================
   HERO SUBTITLE
========================================= */

.hero-content h2 {
    max-width: 720px;

    margin:
        17px
        0
        0;

    color: #ffffff;

    font-size:
        clamp(
            19px,
            1.7vw,
            29px
        );

    line-height: 1.3;

    font-weight: 700;

    text-shadow:
        0 2px 10px
        rgba(0, 0, 0, 0.2);
}


/* =========================================
   HERO BRANDS
========================================= */

.hero-brands {
    max-width: 850px;

    margin:
        22px
        0
        0;

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 6px;

    color:
        rgba(
            255,
            255,
            255,
            0.9
        );

    font-size: 14px;

    line-height: 1.5;

    font-weight: 600;
}


.hero-brands b {
    color:
        rgba(
            255,
            255,
            255,
            0.55
        );

    font-weight: 500;
}


/* =========================================
   HERO DOTS
========================================= */

.hero-dots {
    position: absolute;

    left: 50%;
    bottom: 20px;

    z-index: 10;

    display: flex;

    align-items: center;

    gap: 8px;

    transform:
        translateX(-50%);
}


.hero-dot {
    width: 9px;
    height: 9px;

    padding: 0;

    border: none;

    border-radius: 50%;

    background:
        rgba(
            255,
            255,
            255,
            0.5
        );

    cursor: pointer;

    transition:
        width 0.25s ease,
        background 0.25s ease;
}


.hero-dot.active {
    width: 29px;

    border-radius: 10px;

    background: #ffffff;
}


/* =========================================
   HERO ARROWS
========================================= */

.hero-arrow {
    position: absolute;

    top: 50%;

    z-index: 10;

    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    transform:
        translateY(-50%);

    border:
        1px solid
        rgba(255, 255, 255, 0.20);

    border-radius: 50%;

    background:
        rgba(0, 0, 0, 0.25);

    color: #ffffff;

    font-size: 14px;

    opacity: 0;

    cursor: pointer;

    backdrop-filter: blur(5px);

    transition:
        opacity 0.25s ease,
        background 0.25s ease;
}


.hero-slider:hover
.hero-arrow {
    opacity: 1;
}


.hero-arrow:hover {
    background:
        rgba(
            0,
            0,
            0,
            0.58
        );
}


.hero-prev {
    left: 20px;
}


.hero-next {
    right: 20px;
}


/* =========================================
   LARGE SCREEN HERO
========================================= */

@media (min-width: 1600px) {

    .hero-slider {
        height: 620px;
    }


    .hero-content-inner {
        padding-left: 85px;
    }

}


/* =========================================
   TABLET HERO
========================================= */

@media (max-width: 1000px) {

    .hero-section {
        padding:
            28px
            18px
            30px;
    }


    .hero-slider {
        height: 500px;

        border-radius: 23px;
    }


    .hero-content-inner {
        padding:
            0
            40px
            0
            55px;
    }


    .hero-content h1 {
        font-size: 48px;
    }


    .hero-content h2 {
        font-size: 22px;
    }


    .hero-brands {
        max-width: 650px;

        font-size: 12px;
    }

}


/* =========================================
   MOBILE HERO
========================================= */

@media (max-width: 600px) {

    .hero-section {
        padding:
            15px
            10px
            22px;
    }


    .hero-slider {
        height: 360px;

        border-radius: 18px;
    }


    .hero-image {
        transform: scale(1.05);
    }


    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(5,12,23,0.91) 0%,
                rgba(5,12,23,0.75) 52%,
                rgba(5,12,23,0.28) 100%
            );
    }


    .hero-content-inner {
        padding:
            25px
            22px;

        transform: none;
    }


    .hero-badge {
        min-height: 27px;

        padding:
            0
            11px;

        margin-bottom: 14px;

        font-size: 8px;
    }


    .hero-content h1 {
        max-width: 90%;

        font-size: 31px;

        line-height: 1.05;
    }


    .hero-content h2 {
        max-width: 90%;

        margin-top: 10px;

        font-size: 16px;
    }


    .hero-brands {
        max-width: 95%;

        margin-top: 15px;

        gap: 3px;

        font-size: 9px;
    }


    .hero-arrow {
        display: none;
    }


    .hero-dots {
        bottom: 12px;
    }


    .hero-dot {
        width: 7px;
        height: 7px;
    }


    .hero-dot.active {
        width: 21px;
    }

}


/* =========================================
   SMALL MOBILE HERO
========================================= */

@media (max-width: 400px) {

    .hero-slider {
        height: 280px;
    }


    .hero-content h1 {
        font-size: 27px;
    }


    .hero-content h2 {
        font-size: 14px;
    }


    .hero-brands {
        font-size: 8px;
    }

}


/* =========================================
   CATEGORIES SECTION
========================================= */

.home-categories {
    width: 100%;

    padding:
        40px
        0;

    overflow: hidden;

    background: #f5f7fb;
}


.category-slider-wrapper {
    position: relative;

    width: 100%;
}


/* =========================================
   CATEGORY TRACK
========================================= */

.category-track {
    width: 100%;

    display: flex;

    align-items: center;

    gap: 24px;

    padding:
        7px
        70px
        15px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;

    scrollbar-width: none;
}


.category-track::-webkit-scrollbar {
    display: none;
}


/* =========================================
   CATEGORY CARD
========================================= */

.home-category-card {
    position: relative;

    flex:
        0
        0
        300px;

    height: 290px;

    padding: 0;

    overflow: hidden;

    border: none;

    border-radius: 26px;

    background: #172033;

    cursor: pointer;

    box-shadow:
        0 8px 25px
        rgba(15, 23, 42, 0.09);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.home-category-card:hover,
.home-category-card.active,
.home-category-card.selected {
    transform:
        translateY(-5px);

    box-shadow:
        0 14px 34px
        rgba(15, 23, 42, 0.15);
}


.home-category-card.active,
.home-category-card.selected {
    outline:
        3px solid
        rgba(45, 101, 223, 0.18);
}


.home-category-card img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.35s ease;
}


.home-category-card:hover img {
    transform: scale(1.04);
}


/* =========================================
   CATEGORY IMAGE OVERLAY
========================================= */

.category-dark-overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            to bottom,
            transparent 34%,
            rgba(0,0,0,0.14) 55%,
            rgba(0,0,0,0.78) 100%
        );
}


.home-category-card h3 {
    position: absolute;

    left: 15px;
    right: 15px;
    bottom: 23px;

    z-index: 2;

    margin: 0;

    color: #ffffff;

    text-align: center;

    font-size: 25px;

    line-height: 1.2;

    font-weight: 800;
}


.category-no-image {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #182538,
            #263b55
        );

    font-size: 42px;
}


/* =========================================
   CATEGORY ARROWS
========================================= */

.category-arrow {
    position: absolute;

    top: 50%;

    z-index: 5;

    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    transform:
        translateY(-50%);

    border: none;

    border-radius: 50%;

    background: #ffffff;

    color: #172033;

    font-size: 15px;

    box-shadow:
        0 5px 22px
        rgba(0, 0, 0, 0.16);

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.category-arrow:hover {
    box-shadow:
        0 8px 26px
        rgba(0,0,0,0.22);
}


.category-prev {
    left: 20px;
}


.category-next {
    right: 20px;
}


/* =========================================
   PRODUCTS SECTION
========================================= */

.latest-products {
    width: 100%;

    padding:
        65px
        0
        85px;

    background: #f8f9fc;
}


.latest-products-inner {
    width:
        min(
            1540px,
            calc(100% - 100px)
        );

    margin:
        0
        auto;
}


/* =========================================
   PRODUCTS HEADING
========================================= */

.latest-products-heading {
    text-align: center;
}


.latest-products-heading h2 {
    margin: 0;

    color: var(--home-text);

    font-size: 42px;

    line-height: 1.15;

    font-weight: 800;
}


.latest-products-heading p {
    margin:
        12px
        0
        0;

    color: var(--home-muted);

    font-size: 17px;

    line-height: 1.5;
}


/* =========================================
   PRODUCT SEARCH
========================================= */

.latest-product-search {
    position: relative;

    width:
        min(
            650px,
            100%
        );

    margin:
        42px
        auto
        65px;
}


.latest-product-search > i {
    position: absolute;

    top: 50%;
    left: 24px;

    z-index: 2;

    transform:
        translateY(-50%);

    color: #98a1ad;

    font-size: 14px;

    pointer-events: none;
}


.latest-product-search input {
    width: 100%;
    height: 62px;

    padding:
        0
        25px
        0
        52px;

    border:
        1px solid
        #e0e4ea;

    outline: none;

    border-radius: 35px;

    background: #ffffff;

    color: #252b35;

    font-size: 15px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.latest-product-search input::placeholder {
    color: #9ba4ae;
}


.latest-product-search input:focus {
    border-color: #aebbd0;

    box-shadow:
        0 5px 18px
        rgba(31, 41, 55, 0.06);
}


/* =========================================
   PRODUCT GRID
========================================= */

.latest-product-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap:
        55px
        28px;
}


/* =========================================
   PRODUCT CARD
========================================= */

.latest-product-card {
    width: 100%;

    min-width: 0;
}


/* =========================================
   PRODUCT IMAGE
========================================= */

.latest-product-image {
    width: 100%;

    aspect-ratio:
        1 / 1;

    display: block;

    overflow: hidden;

    border-radius: 25px;

    background: #f0f1f3;
}


.latest-product-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

    padding: 28px;

    transition:
        transform 0.35s ease;
}


.latest-product-card:hover
.latest-product-image img {
    transform: scale(1.035);
}


.latest-product-no-image {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #a7afb9;

    background: #eef0f3;

    font-size: 40px;
}


/* =========================================
   PRODUCT NAME
========================================= */

.latest-product-name {
    margin:
        18px
        4px
        0;

    font-size: 18px;

    line-height: 1.35;

    font-weight: 800;
}


.latest-product-name a {
    color: #111111;

    transition:
        color 0.2s ease;
}


.latest-product-name a:hover {
    color: var(--home-blue);
}


/* =========================================
   PRODUCT DESCRIPTION
========================================= */

.latest-product-description {
    margin:
        8px
        4px
        0;

    overflow: hidden;

    color: #75808d;

    font-size: 13px;

    line-height: 1.5;

    white-space: nowrap;

    text-overflow: ellipsis;
}


/* =========================================
   PRODUCT ACTIONS
========================================= */

.latest-product-actions {
    width: 100%;

    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 22px;
}


/* =========================================
   ADD TO CART
========================================= */

.latest-add-btn {
    flex: 1;

    height: 48px;

    padding:
        0
        15px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    border:
        1.5px solid
        var(--home-green);

    border-radius: 13px;

    background: #ffffff;

    color: var(--home-green);

    font-family: inherit;

    font-size: 13px;

    font-weight: 800;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}


.latest-add-btn:hover {
    background: var(--home-green);

    color: #ffffff;
}


.latest-add-btn.added {
    background: var(--home-green);

    color: #ffffff;
}


.latest-add-btn:disabled {
    cursor: not-allowed;
}


/* =========================================
   OUT OF STOCK
========================================= */

.product-out-of-stock {
    border-color: #d5d9df;

    background: #f1f2f4;

    color: #949ca7;

    cursor: not-allowed;
}


.product-out-of-stock:hover {
    border-color: #d5d9df;

    background: #f1f2f4;

    color: #949ca7;
}


/* =========================================
   WISHLIST
========================================= */

.latest-wishlist-btn {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        #e1e5ea;

    border-radius: 13px;

    background: #ffffff;

    color: #697481;

    font-size: 17px;

    cursor: pointer;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}


.latest-wishlist-btn:hover,
.latest-wishlist-btn.active {
    border-color: #ffccd4;

    background: #fff0f3;

    color: #eb3157;
}


/* =========================================
   PRODUCT PRICE
========================================= */

.latest-product-price-row {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin:
        17px
        4px
        0;
}


.latest-product-prices {
    min-width: 0;

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;
}


.latest-current-price {
    color: #168942;

    font-size: 19px;

    font-weight: 900;
}


.latest-old-price {
    color: #969da7;

    font-size: 12px;
}


.latest-discount-badge {
    flex-shrink: 0;

    padding:
        6px
        9px;

    border-radius: 7px;

    background: #fff0f0;

    color: #e83b3b;

    font-size: 10px;

    font-weight: 800;
}


/* =========================================
   EMPTY STATES
========================================= */

.latest-products-empty,
.product-search-empty {
    grid-column:
        1 / -1;

    padding:
        70px
        20px;

    text-align: center;

    color: #818b98;
}


.latest-products-empty i,
.product-search-empty i {
    margin-bottom: 15px;

    color: #a2abb6;

    font-size: 40px;
}


.latest-products-empty h3,
.product-search-empty h3 {
    margin:
        0
        0
        7px;

    color: #303844;

    font-size: 20px;
}


.latest-products-empty p,
.product-search-empty p {
    margin: 0;

    font-size: 13px;
}


.product-search-empty {
    display: none;
}


/* =========================================
   LARGE TABLET
========================================= */

@media (max-width: 1100px) {

    .home-category-card {
        flex-basis: 260px;

        height: 255px;
    }


    .latest-products-inner {
        width:
            calc(100% - 50px);
    }


    .latest-product-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }

}


/* =========================================
   SMALL TABLET
========================================= */

@media (max-width: 800px) {

    .category-track {
        padding-left: 55px;

        padding-right: 55px;
    }


    .latest-product-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {


    /* =========================
       CATEGORIES
    ========================= */

    .home-categories {
        padding:
            23px
            0;
    }


    .category-track {
        gap: 13px;

        padding:
            5px
            14px
            12px;

        scroll-snap-type:
            x mandatory;
    }


    .home-category-card {
        flex:
            0
            0
            205px;

        height: 215px;

        border-radius: 18px;

        scroll-snap-align: start;
    }


    .home-category-card h3 {
        bottom: 17px;

        font-size: 19px;
    }


    .category-arrow {
        display: none;
    }


    /* =========================
       PRODUCTS
    ========================= */

    .latest-products {
        padding:
            45px
            0
            60px;
    }


    .latest-products-inner {
        width:
            calc(100% - 24px);
    }


    .latest-products-heading h2 {
        font-size: 30px;
    }


    .latest-products-heading p {
        font-size: 14px;
    }


    .latest-product-search {
        margin:
            30px
            auto
            40px;
    }


    .latest-product-search input {
        height: 53px;

        padding:
            0
            20px
            0
            48px;
    }


    .latest-product-search > i {
        left: 21px;
    }


    .latest-product-grid {
        gap:
            38px
            14px;
    }


    .latest-product-image {
        border-radius: 17px;
    }


    .latest-product-image img {
        padding: 15px;
    }


    .latest-product-name {
        margin-top: 13px;

        font-size: 14px;
    }


    .latest-product-description {
        font-size: 11px;
    }


    .latest-product-actions {
        gap: 7px;

        margin-top: 15px;
    }


    .latest-add-btn {
        height: 42px;

        padding:
            0
            8px;

        border-radius: 10px;

        font-size: 11px;
    }


    .latest-wishlist-btn {
        width: 42px;
        height: 42px;

        border-radius: 10px;

        font-size: 15px;
    }


    .latest-product-price-row {
        align-items: flex-start;

        flex-direction: column;

        margin-top: 13px;
    }


    .latest-current-price {
        font-size: 16px;
    }


    .latest-old-price {
        font-size: 11px;
    }

}


/* =========================================
   VERY SMALL MOBILE
========================================= */

@media (max-width: 380px) {

    .hero-section {
        padding-left: 8px;
        padding-right: 8px;
    }


    .hero-slider {
        height: 280px;
    }


    .latest-product-grid {
        grid-template-columns:
            1fr;
    }


    .latest-product-image {
        max-height: 320px;
    }


    .home-category-card {
        flex-basis: 190px;

        height: 200px;
    }

}