/* ==========================================================================
   BeautyBooth 1:1 Category, Subcategory & Childcategory Header & Best Selling
   ========================================================================== */

/* Font Arsenal fallback */
@import url('https://fonts.googleapis.com/css2?family=Arsenal:wght@400;700&display=swap');

.font-arsenal {
    font-family: 'Arsenal', 'Roboto', sans-serif !important;
}

/* 1. Page Title & Description Intro */
.bb-cat-intro-wrap {
    max-width: 860px;
    margin: 6px auto 18px auto;
    text-align: center;
    padding: 0 12px;
}

.bb-cat-intro-title {
    font-family: 'Arsenal', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    margin: 8px 0 10px 0;
    letter-spacing: -0.2px;
}

.bb-cat-intro-desc {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.68;
    text-align: justify;
    text-justify: inter-word;
    margin: 0 auto;
    max-width: 820px;
}

.bb-cat-intro-desc p {
    margin-bottom: 8px;
}
.bb-cat-intro-desc p:last-child {
    margin-bottom: 0;
}

/* 2. Circular Navigation Items (Subcategories / Childcategories) */
.bb-circle-nav-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 16px 44px;
    margin: 24px auto 32px auto;
    max-width: 1200px;
    padding: 0 10px;
}

.bb-circle-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    width: 92px;
    transition: transform 0.2s ease;
    outline: none;
}

.bb-circle-nav-item:hover {
    transform: translateY(-3px);
}

.bb-circle-nav-img-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e5e7eb;
    padding: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.bb-circle-nav-item:hover .bb-circle-nav-img-box {
    background: #dbeafe;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.bb-circle-nav-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.bb-circle-nav-name {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
    text-align: center;
    line-height: 1.25;
    min-height: 34px;
    word-break: break-word;
    transition: color 0.2s ease;
}

.bb-circle-nav-item:hover .bb-circle-nav-name {
    color: #EE2B8C;
}

/* 3. Best Selling Section with Subtle Multi-Color Gradient */
.bb-best-selling-gradient-box {
    background: linear-gradient(180deg, rgba(243, 232, 255, 0.5) 0%, rgba(253, 242, 248, 0.65) 50%, rgba(238, 242, 255, 0.55) 100%);
    border: 1px solid rgba(229, 231, 235, 0.65);
    border-radius: 16px;
    padding: 18px 20px 22px 20px;
    margin: 24px 0 32px 0;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.bb-bs-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.bb-bs-title {
    font-family: 'Arsenal', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    text-transform: capitalize;
    margin: 0;
    line-height: 1.2;
}

.bb-bs-see-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    text-decoration: none !important;
    transition: all 0.2s ease;
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.bb-bs-see-all:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #000000;
}

/* Swiper Slider Wrapper */
.bb-bs-swiper-wrap {
    position: relative;
    width: 100%;
}

.bb-bs-swiper-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 4px 2px;
}

.bb-bs-swiper-container .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
}

.bb-bs-swiper-container .swiper-slide .universal-product-card {
    width: 100% !important;
    margin: 0 !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
}

.bb-bs-swiper-container .swiper-slide .universal-product-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

/* Navigation Chevrons */
.bb-bs-nav-prev,
.bb-bs-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    cursor: pointer;
    z-index: 20;
    transition: all 0.2s ease;
}

.bb-bs-nav-prev {
    left: -14px;
}

.bb-bs-nav-next {
    right: -14px;
}

.bb-bs-nav-prev:hover,
.bb-bs-nav-next:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.bb-bs-nav-prev.swiper-button-disabled,
.bb-bs-nav-next.swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .bb-cat-intro-title {
        font-size: 22px;
    }
    .bb-circle-nav-wrap {
        gap: 14px 28px;
    }
    .bb-bs-nav-prev {
        left: -8px;
    }
    .bb-bs-nav-next {
        right: -8px;
    }
}

@media (max-width: 640px) {
    .bb-cat-intro-wrap {
        margin: 4px auto 14px auto;
        padding: 0 8px;
    }
    .bb-cat-intro-title {
        font-size: 17px;
        margin: 6px 0 6px 0;
    }
    .bb-cat-intro-desc {
        font-size: 11.5px;
        line-height: 1.55;
    }
    .bb-circle-nav-wrap {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 12px 0;
        margin: 16px 0 20px 0;
        padding: 0;
    }
    .bb-circle-nav-item {
        width: 25%;
        padding: 0 3px;
    }
    .bb-circle-nav-img-box {
        width: 60px;
        height: 60px;
        padding: 3px;
    }
    .bb-circle-nav-name {
        font-size: 11px;
        margin-top: 5px;
        min-height: 26px;
    }
    .bb-best-selling-gradient-box {
        padding: 12px 10px 14px 10px;
        margin: 16px 0 22px 0;
        border-radius: 12px;
    }
    .bb-bs-title {
        font-size: 18px;
    }
    .bb-bs-see-all {
        padding: 4px 10px;
        font-size: 11px;
    }
    .bb-bs-nav-prev,
    .bb-bs-nav-next {
        display: none !important;
    }
}
