/* UrbanNutMix - Shop by Dryfruits Categories CSS */

/* === SECTION WRAPPER === */
.unm-categories-section {
    width: 100%;
    padding: 36px 0 32px;
    background-color: #ffffff;
    overflow-x: hidden;
    overflow-y: visible;
    position: relative;
    box-sizing: border-box;
}

/* === SECTION HEADING === */
.unm-categories-heading {
    text-align: center;
    margin: 0 0 28px;
    padding: 0 24px;
}

.unm-categories-heading h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

/* === SLIDER OUTER WRAPPER (holds arrows + track) === */
.unm-categories-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 56px; /* Reserve room for arrow buttons */
    max-width: 1360px;
    margin: 0 auto;
}

/* === TRACK (clips overflowing items) === */
.unm-categories-track {
    overflow: hidden;
    width: 100%;
}

/* === ITEM LIST === */
.unm-categories-list {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* li must also participate in flex sizing */
.unm-categories-list li {
    flex: 0 0 calc(100% / 7); /* All 7 visible on large desktop */
    display: flex;
    align-items: stretch;
}

/* === EACH CATEGORY LINK (anchor) === */
.unm-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;                /* tight gap matching reference */
    cursor: pointer;
    padding: 6px 4px 10px;
    text-decoration: none;
    transition: transform 0.3s ease;
    width: 100%;
}

.unm-category-item:hover {
    transform: translateY(-5px);
}

/* === CIRCULAR IMAGE WRAP === */
.unm-category-img-wrap {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.unm-category-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.unm-category-item:hover .unm-category-img {
    transform: scale(1.07);
}

/* === LABEL === */
.unm-category-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: #94a3b8;          /* Default grey, matches reference non-active items */
    text-align: center;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
    white-space: nowrap;
    line-height: 1.4;
}

.unm-category-item:hover .unm-category-label {
    color: #cf6e0c;
}

/* Active (first item / selected) shows orange label */
.unm-category-item.active .unm-category-label {
    color: #cf6e0c;
    font-weight: 600;
}

/* === NAV ARROWS === */
.unm-cat-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    flex-shrink: 0;
    color: #475569;
    padding: 0;
}

.unm-cat-arrow:hover {
    background: #cf6e0c;
    border-color: #cf6e0c;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(207,110,12,0.28);
}

.unm-cat-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.unm-cat-arrow-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.unm-cat-arrow-prev { left: 8px; }
.unm-cat-arrow-next { right: 8px; }

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

/* 6 visible (one scrolled off-screen) */
@media (max-width: 1280px) {
    .unm-categories-list li {
        flex: 0 0 calc(100% / 6);
    }
}

/* 5 visible */
@media (max-width: 1024px) {
    .unm-categories-list li {
        flex: 0 0 calc(100% / 5);
    }
    .unm-category-img-wrap {
        width: 100px;
        height: 100px;
    }
}

/* 4 visible */
@media (max-width: 800px) {
    .unm-categories-slider-wrapper {
        padding: 0 48px;
    }
    .unm-categories-list li {
        flex: 0 0 calc(100% / 4);
    }
    .unm-category-img-wrap {
        width: 88px;
        height: 88px;
    }
    .unm-categories-heading h2 {
        font-size: 1.4rem;
    }
}

/* 3 visible */
@media (max-width: 580px) {
    .unm-categories-section {
        padding: 28px 0 24px;
    }
    .unm-categories-heading {
        margin-bottom: 20px;
    }
    .unm-categories-slider-wrapper {
        padding: 0 42px;
    }
    .unm-categories-list li {
        flex: 0 0 calc(100% / 3);
    }
    .unm-category-img-wrap {
        width: 80px;
        height: 80px;
    }
    .unm-category-label {
        font-size: 0.7rem;
    }
    .unm-cat-arrow {
        width: 32px;
        height: 32px;
    }
}

/* 2.5 visible on smallest screens */
@media (max-width: 380px) {
    .unm-categories-slider-wrapper {
        padding: 0 36px;
    }
    .unm-categories-list li {
        flex: 0 0 calc(100% / 2.5);
    }
    .unm-category-img-wrap {
        width: 72px;
        height: 72px;
    }
    .unm-cat-arrow {
        width: 28px;
        height: 28px;
    }
    .unm-cat-arrow-icon {
        width: 13px;
        height: 13px;
    }
}
