/* =================================
   SHOP BY CATEGORY SECTION
================================= */

.custom-shop-categories {
    width: 100%;
    padding: 15px 0 20px;
    overflow: hidden;
    box-sizing: border-box;
}

/* Heading */

.custom-category-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 22px;
}

.custom-category-heading h2 {
    font-size: 24px;
    font-weight: 700;
    color: #123d49;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
}

.custom-category-heading .category-line {
    width: 110px;
    height: 2px;
    background: #f7941d;
    flex-shrink: 0;
}

/* =================================
   HORIZONTAL CATEGORY SCROLL
   ALL DEVICES
================================= */

.custom-category-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    gap: 18px;

    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden !important;

    padding: 5px 15px 15px;
    box-sizing: border-box;

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    /* Hide scrollbar Firefox */
    scrollbar-width: none;

    /* Hide scrollbar IE/Edge legacy */
    -ms-overflow-style: none;
}

/* Hide scrollbar Chrome, Safari and Edge */

.custom-category-grid::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Category Card */

.custom-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;

    flex: 0 0 150px !important;
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;

    min-height: 125px;
    padding: 12px 8px 10px;

    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.10);

    text-decoration: none !important;
    border: 1px solid #f4f4f4;

    box-sizing: border-box;
    scroll-snap-align: start;

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

.custom-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.13);
}

/* Category Image */

.custom-category-image {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 7px;
    flex-shrink: 0;
}

.custom-category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.category-placeholder {
    font-size: 35px;
}

/* Category Name */

.custom-category-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: #173c48;
    line-height: 1.3;
    margin: 0 0 6px;
}

/* Shop Now */

.custom-category-shop {
    font-size: 12px;
    font-weight: 600;
    color: #f58220;
    line-height: 1.3;
}

.custom-category-shop span {
    font-size: 16px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.custom-category-card:hover .custom-category-shop span {
    transform: translateX(4px);
}

/* =================================
   TABLET
================================= */

@media (max-width: 991px) {

    .custom-category-grid {
        gap: 15px;
    }

    .custom-category-card {
        flex-basis: 145px;
        width: 145px;
        min-width: 145px;
        max-width: 145px;
    }

}

/* =================================
   MOBILE
================================= */

@media (max-width: 600px) {

    .custom-shop-categories {
        padding: 12px 0 18px;
    }

    .custom-category-heading {
        gap: 8px;
        margin-bottom: 16px;
    }

    .custom-category-heading h2 {
        font-size: 19px;
    }

    .custom-category-heading .category-line {
        width: 40px;
    }

    .custom-category-grid {
        gap: 12px;
        padding: 5px 12px 12px;
    }

    .custom-category-card {
        flex-basis: 138px;
        width: 138px;
        min-width: 138px;
        max-width: 138px;

        min-height: 120px;
        border-radius: 23px;
    }

    .custom-category-image {
        width: 50px;
        height: 50px;
    }

    .custom-category-card h3 {
        font-size: 13px;
    }

}