/* ==========================================================
   FEATURED CATEGORIES
   Scoped ONLY to .featured-categories
========================================================== */

.featured-categories {
    padding: 80px 0;
}

.featured-categories .category-card {
    position: relative;
    height: 390px;
    border-radius: 24px;
    overflow: hidden;
    background: #f1f1f1;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.featured-categories .category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.featured-categories .category-card > a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}


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

.featured-categories .category-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.featured-categories .category-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.featured-categories .category-card:hover .category-image img {
    transform: scale(1.06);
}


/* ==========================================================
   DARK GRADIENT
========================================================== */

.featured-categories .category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;

    pointer-events: none;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.65) 35%,
        rgba(0, 0, 0, 0.22) 70%,
        rgba(0, 0, 0, 0.02) 100%
    );
}


/* ==========================================================
   CONTENT / OVERLAY
========================================================== */

.featured-categories .category-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 30px;

    color: #fff;
}


/* ==========================================================
   PRODUCT COUNT
========================================================== */

.featured-categories .category-overlay > span {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;

    letter-spacing: 0.5px;

    color: rgba(255, 255, 255, 0.85);
}


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

.featured-categories .category-overlay h3 {
    margin: 0 0 10px;

    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;

    color: #fff;
}


/* ==========================================================
   DESCRIPTION
========================================================== */

.featured-categories .category-overlay p {
    margin: 0 0 20px;

    max-width: 95%;

    font-size: 15px;
    line-height: 1.6;

    color: rgba(255, 255, 255, 0.88);

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;

    overflow: hidden;
}


/* ==========================================================
   EXPLORE
========================================================== */

.featured-categories .category-link {
    display: inline-flex;
    align-items: center;

    width: fit-content;

    gap: 8px;

    font-size: 16px;
    font-weight: 600;

    color: #fff;

    transition: gap 0.25s ease;
}

.featured-categories .category-link i {
    font-size: 18px;

    transition: transform 0.25s ease;
}

.featured-categories .category-card:hover .category-link {
    gap: 12px;
}

.featured-categories .category-card:hover .category-link i {
    transform: translateX(4px);
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1199px) {

    .featured-categories .category-card {
        height: 360px;
    }

    .featured-categories .category-overlay {
        padding: 25px;
    }

    .featured-categories .category-overlay h3 {
        font-size: 27px;
    }
}


@media (max-width: 767px) {

    .featured-categories {
        padding: 60px 0;
    }

    .featured-categories .category-card {
        height: 340px;
        border-radius: 20px;
    }

    .featured-categories .category-overlay {
        padding: 22px;
    }

    .featured-categories .category-overlay h3 {
        font-size: 25px;
    }

    .featured-categories .category-overlay p {
        font-size: 14px;
    }
}


@media (max-width: 575px) {

    .featured-categories .category-card {
        height: 320px;
    }

    .featured-categories .category-overlay h3 {
        font-size: 23px;
    }
}