/* =========================================================
   SHOP BY CATEGORY CAROUSEL
========================================================= */

.shop-category-carousel {
    width: 100%;
    background: #fff;
    padding: 8px 0 12px;
    box-sizing: border-box;
}

.shop-category-carousel-inner {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}


/* =========================================================
   HEADER
========================================================= */

.shop-category-header {
    width: 100%;
    height: 24px;

    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 7px;
}

.shop-category-header > span {
    flex-shrink: 0;

    font-size: 14px;
    line-height: 18px;

    font-weight: 500;

    color: #222;

    letter-spacing: 0.3px;

    white-space: nowrap;
}


/* LINE */

.shop-category-line {
    height: 1px;

    background: #e8e8e8;

    flex: 1;
}


/* =========================================================
   ARROWS
========================================================= */

.shop-category-arrows {
    display: flex;
    align-items: center;

    gap: 4px;

    flex-shrink: 0;
}

.shop-category-arrows button {
    width: 24px;
    height: 24px;

    padding: 0;

    border: 1px solid #ddd;
    border-radius: 50%;

    background: #fff;

    color: #333;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    font-size: 12px;

    transition: all 0.2s ease;
}

.shop-category-arrows button:hover {
    background: #222;
    color: #fff;
    border-color: #222;
}

.shop-category-arrows button:disabled {
    opacity: 0.35;
    cursor: default;
}


/* =========================================================
   VIEWPORT
========================================================= */

.shop-category-viewport {
    width: 100%;

    overflow: hidden;

    position: relative;

    touch-action: pan-y;

    cursor: grab;
}

.shop-category-viewport:active {
    cursor: grabbing;
}


/* =========================================================
   TRACK
========================================================= */

.shop-category-track {
    display: flex;

    width: 100%;

    transform: translate3d(0, 0, 0);

    transition: transform 0.45s ease;

    will-change: transform;
}


/* =========================================================
   SLIDE
   DESKTOP = 6 ITEMS
========================================================= */

.shop-category-slide {
    flex: 0 0 calc(100% / 6);

    width: calc(100% / 6);

    min-width: 0;

    box-sizing: border-box;

    padding: 0 5px;
}


/* =========================================================
   ITEM
========================================================= */

.shop-category-item {
    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: flex-start;

    text-decoration: none;

    color: #222;

    box-sizing: border-box;
}


/* =========================================================
   ROUND IMAGE
========================================================= */

.shop-category-image {
    width: 150px;
    height: 150px;

    max-width: 100%;

    border-radius: 50%;

    background: #f8f7f5;

    overflow: hidden;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    margin-bottom: 6px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.shop-category-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

    border-radius: 50%;
}


/* =========================================================
   NAME
========================================================= */

.shop-category-item > span {
    width: 100%;

    text-align: center;

    font-size: 14px;

    line-height: 11px;

    font-weight: 600;

    color: #222;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================================
   HOVER
========================================================= */

@media (hover: hover) {

    .shop-category-item:hover .shop-category-image {
        transform: translateY(-2px);

        box-shadow:
            0 5px 15px rgba(0, 0, 0, 0.08);
    }

    .shop-category-item:hover > span {
        color: #8a6a2f;
    }
}


/* =========================================================
   TABLET
   5 ITEMS VISIBLE
========================================================= */

@media (max-width: 991px) {

    .shop-category-carousel-inner {
        padding-left: 15px;
        padding-right: 15px;
    }

    .shop-category-slide {
        flex: 0 0 20%;
        width: 20%;

        padding-left: 4px;
        padding-right: 4px;
    }

    .shop-category-image {
        width: 72px;
        height: 72px;
    }

    .shop-category-item > span {
        font-size: 8px;
        line-height: 10px;
    }
}


/* =========================================================
   MOBILE
   3 ITEMS VISIBLE
========================================================= */

@media (max-width: 767px) {

    .shop-category-carousel {
        padding-top: 7px;
        padding-bottom: 10px;
    }

    .shop-category-carousel-inner {
        padding-left: 8px;
        padding-right: 8px;
    }

    .shop-category-header {
        height: 22px;

        gap: 8px;

        margin-bottom: 6px;
    }

    .shop-category-header > span {
        font-size: 12px;
        line-height: 16px;
    }

    .shop-category-arrows {
        gap: 3px;
    }

    .shop-category-arrows button {
        width: 22px;
        height: 22px;

        font-size: 10px;
    }

    /* 3 VISIBLE */

    .shop-category-slide {
        flex: 0 0 33.333333%;
        width: 33.333333%;

        padding-left: 4px;
        padding-right: 4px;
    }

    .shop-category-image {
        width: 90px;
        height: 90px;

        margin-bottom: 5px;
    }

    .shop-category-item > span {
        font-size: 12px;
        line-height: 10px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .shop-category-carousel-inner {
        padding-left: 5px;
        padding-right: 5px;
    }

    .shop-category-slide {
        padding-left: 3px;
        padding-right: 3px;
    }

    .shop-category-image {
        width: 90px;
        height: 90px;
    }

    .shop-category-item > span {
        font-size: 12px;
        line-height: 9px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 360px) {

    .shop-category-image {
        width: 90px;
        height: 90px;
    }

    .shop-category-item > span {
        font-size: 12px;
        line-height: 8px;
    }
}