/**
 * Alpha Amino Category Navigation
 * Version 1.0.7
 * Brand blue: #3465D1
 */

:root {
    --alpha-category-blue: #3465d1;
    --alpha-category-blue-dark: #274fa9;
    --alpha-category-blue-soft: #edf2ff;
    --alpha-category-border: #dfe5f2;
    --alpha-category-text: #0a1730;
}

/* ---------------------------------------------------------
   Shop/category navigation
   --------------------------------------------------------- */
.alpha-category-nav {
    width: 100%;
    margin: 0 0 34px;
}

.alpha-category-nav__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    padding: 4px 2px 8px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.alpha-category-nav__item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid var(--alpha-category-border);
    border-radius: 999px;
    background: #fff;
    color: var(--alpha-category-text) !important;
    box-shadow: 0 2px 9px rgba(10, 23, 48, .035);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.alpha-category-nav__item:hover {
    border-color: var(--alpha-category-blue);
    color: var(--alpha-category-blue) !important;
    transform: translateY(-1px);
}

.alpha-category-nav__item.is-active {
    border-color: var(--alpha-category-blue);
    background: var(--alpha-category-blue);
    color: #fff !important;
    box-shadow: 0 5px 14px rgba(52, 101, 209, .18);
}

/* ---------------------------------------------------------
   Product-card category labels
   Now sit BELOW the image and BEFORE the product title.
   --------------------------------------------------------- */
.alpha-category-badge-row {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    margin: 10px 0 8px;
    padding: 0 8px;
    box-sizing: border-box;
}

.alpha-product-category-badge {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    max-width: 100%;
    min-height: 34px;
    margin: 0 !important;
    padding: 7px 12px;
    border: 1px solid rgba(52, 101, 209, .14);
    border-radius: 999px;
    background: var(--alpha-category-blue-soft);
    color: var(--alpha-category-blue-dark) !important;
    box-shadow: 0 3px 10px rgba(52, 101, 209, .08);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
}

.alpha-product-category-badge:hover {
    border-color: rgba(52, 101, 209, .30);
    background: #e5edff;
    color: var(--alpha-category-blue-dark) !important;
}

/* Hide slider-hook output everywhere except Featured Peptides slider 1504. */
.alpha-featured-category-badge {
    display: none !important;
}

#sp-woo-product-slider-1504 .alpha-featured-category-badge,
[id*="sp-woo-product-slider-1504"] .alpha-featured-category-badge {
    display: inline-flex !important;
}

/* A little breathing room for cards whose old templates were very tight. */
.alpha-category-card-host .alpha-category-badge-row,
#sp-woo-product-slider-1504 .alpha-category-badge-row,
[id*="sp-woo-product-slider-1504"] .alpha-category-badge-row {
    clear: both;
}

/* ---------------------------------------------------------
   Single-product categories
   --------------------------------------------------------- */
.alpha-single-categories {
    margin: 8px 0 18px;
}

.alpha-single-categories__caption {
    display: block;
    margin-bottom: 8px;
    color: #667085;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.alpha-single-categories__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.alpha-single-categories__item {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid rgba(52, 101, 209, .14);
    border-radius: 999px;
    background: var(--alpha-category-blue-soft);
    color: var(--alpha-category-blue-dark) !important;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
}

.alpha-single-categories__item:hover {
    border-color: var(--alpha-category-blue);
    color: var(--alpha-category-blue) !important;
}

/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */
@media (max-width: 767px) {
    .alpha-category-nav {
        margin-bottom: 24px;
    }

    .alpha-category-nav__inner {
        gap: 8px;
        padding-bottom: 7px;
    }

    .alpha-category-nav__item {
        min-height: 40px;
        padding: 9px 16px;
        font-size: 13px;
    }

    .alpha-category-badge-row {
        min-height: 34px;
        margin: 8px 0 7px;
        padding: 0 6px;
    }

    .alpha-product-category-badge {
        min-height: 30px;
        padding: 6px 10px;
        font-size: 11px;
    }

    .alpha-single-categories {
        margin-bottom: 16px;
    }

    .alpha-single-categories__item {
        min-height: 32px;
        padding: 6px 10px;
        font-size: 11px;
    }
}


/* ---------------------------------------------------------
   v1.0.7 — Featured Peptides slider #1504 refinement
   Match Shop/category card proportions and spacing.
   --------------------------------------------------------- */

#sp-woo-product-slider-1504 .alpha-featured-category-row,
[id*="sp-woo-product-slider-1504"] .alpha-featured-category-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 34px !important;
    margin: 12px 0 14px !important;
    padding: 0 8px !important;
    box-sizing: border-box !important;
}

#sp-woo-product-slider-1504 .alpha-featured-category-row .alpha-featured-category-badge,
[id*="sp-woo-product-slider-1504"] .alpha-featured-category-row .alpha-featured-category-badge {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: fit-content !important;
    max-width: calc(100% - 16px) !important;
    min-width: 0 !important;
    min-height: 34px !important;
    margin: 0 auto !important;
    padding: 7px 12px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

/* Give the title/strength stack the same breathing room as normal cards. */
#sp-woo-product-slider-1504 .alpha-featured-category-row + *,
[id*="sp-woo-product-slider-1504"] .alpha-featured-category-row + * {
    margin-top: 0 !important;
}

#sp-woo-product-slider-1504 .sp-wps-product-title,
#sp-woo-product-slider-1504 .sp-wpspro-product-title,
[id*="sp-woo-product-slider-1504"] .sp-wps-product-title,
[id*="sp-woo-product-slider-1504"] .sp-wpspro-product-title {
    margin-bottom: 10px !important;
}

@media (max-width: 767px) {
    #sp-woo-product-slider-1504 .alpha-featured-category-row,
    [id*="sp-woo-product-slider-1504"] .alpha-featured-category-row {
        min-height: 32px !important;
        margin: 9px 0 11px !important;
        padding: 0 6px !important;
    }

    #sp-woo-product-slider-1504 .alpha-featured-category-row .alpha-featured-category-badge,
    [id*="sp-woo-product-slider-1504"] .alpha-featured-category-row .alpha-featured-category-badge {
        min-height: 30px !important;
        padding: 6px 10px !important;
        font-size: 11px !important;
    }
}
