/**
 * Toolkit - Category Product CSS
 * Only styles specific to plugin features (not in child theme)
 * Includes: Category navigation, Best seller slider, ACF description
 */

/* ===========================================
   CSS VARIABLES (uses theme variables)
   =========================================== */
:root {
    --tk-color-primary: #000;
    --tk-color-text: #333;
    --tk-color-bg-light: #f7f7f7;
    --tk-color-border: var(--theme-border-color, #ddd);
    --tk-radius-lg: 8px;
    --tk-transition: 0.3s ease;
}

/* ===========================================
   CATEGORY NAVIGATION (Internal linking)
   =========================================== */
.category-scroll {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 24px;
    cursor: grab;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.cat-pill {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: var(--tk-radius-lg);
    background: var(--tk-color-bg-light);
    color: var(--tk-color-text);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background var(--tk-transition), color var(--tk-transition);
    border: 1px solid var(--tk-color-border);
    white-space: nowrap;
}

.cat-pill:hover {
    background: #ddd;
    color: var(--tk-color-primary);
}

@media (max-width: 767px) {
    .category-scroll {
        gap: 10px;
        padding-bottom: 15px;
    }
    .cat-pill {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}

/* ===========================================
   BEST SELLER SLIDER
   =========================================== */
.best-seller-section {
    margin-top: 2rem;
}

.best-seller-slider {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
}

.best-seller-slider ul.products {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 1rem;
}

.best-seller-slider ul.products li.product {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 220px !important;
}

@media (max-width: 768px) {
    .best-seller-slider ul.products li.product {
        width: 160px !important;
    }
}

@media (max-width: 480px) {
    .best-seller-slider ul.products li.product {
        width: 140px !important;
    }
}

/* ===========================================
   ACF DESCRIPTION BELOW
   =========================================== */
.acf-description-below {
    margin-top: 50px;
    max-width: 1190px;
    font-size: 14px;
}

.acf-description-below h2 {
    font-size: var(--wp--preset--font-size--large) !important;
}

.acf-description-below h3 {
    font-size: calc(var(--wp--preset--font-size--large) * 0.85) !important;
}

.acf-description-below a {
    color: #0988e6;
    text-decoration: underline;
}

/* ===========================================
   DYNAMIC CATEGORY TITLE
   =========================================== */
.dynamic-category-title {
    font-size: var(--wp--preset--font-size--large) !important;
}
