/**
 * Blade Boss — Shop / Product Recommendations
 * modules/public/assets/css/shop.css
 *
 * Light-theme product catalogue. All tokens from design-tokens.css.
 * No :root redefinitions — zero design-token pollution.
 * All selectors scoped to .bb-products-container.
 *
 * @since 2.4.0
 */


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CONTAINER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.bb-products-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #F5F7FA 0%, #E8EAED 100%);
    font-family: var(--font-body);
    color: var(--bb-charcoal);
    overflow-x: hidden;
}

.bb-products-container *,
.bb-products-container *::before,
.bb-products-container *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HERO
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.bb-shop-hero {
    position: relative;
    padding: var(--space-10) var(--space-5);
    text-align: center;
    overflow: visible;
}

.bb-shop-hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--bb-green-bright) 0%, var(--bb-green) 100%);
    opacity: 0.06;
    z-index: 0;
    pointer-events: none;
}

.bb-shop-hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08)  0%, transparent 50%);
    animation: bb-shop-float 20s ease-in-out infinite;
}

@keyframes bb-shop-float {
    0%, 100% { transform: translate(0, 0); }
    50%       { transform: translate(-16px, 16px); }
}

.bb-shop-hero__content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width-sm);
    margin: 0 auto;
}

.bb-shop-hero__title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--bb-charcoal);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    animation: bb-shop-slide-down var(--duration-slow) var(--ease-out) both;
}

.bb-shop-hero__icon {
    font-size: 0.8em;
    display: inline-block;
    animation: bb-shop-bounce 2.5s ease-in-out infinite;
}

@keyframes bb-shop-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

.bb-shop-hero__subtitle {
    font-size: var(--text-lg);
    color: var(--bb-mid-gray);
    margin-bottom: var(--space-8);
    animation: bb-shop-slide-up var(--duration-slow) var(--ease-out) 0.1s both;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SEARCH
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.bb-shop-search {
    position: relative;
    max-width: var(--max-width-xs);
    margin: 0 auto var(--space-6);
    z-index: var(--z-overlay);
}

.bb-shop-search__wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition:
        box-shadow    var(--duration-normal) var(--ease-out),
        border-color  var(--duration-normal) var(--ease-out);
}

.bb-shop-search__wrapper:focus-within {
    box-shadow: var(--shadow-xl), 0 0 0 4px rgba(16, 185, 129, 0.12);
    border-color: var(--bb-green-bright);
}

.bb-shop-search__icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--bb-mid-gray);
    pointer-events: none;
}

.bb-shop-search__input {
    width: 100%;
    padding: 18px 56px;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 500;
    background: transparent;
    border: none;
    outline: none;
    color: var(--bb-charcoal);
}

.bb-shop-search__input::placeholder {
    color: var(--bb-mid-gray);
}

.bb-shop-search__clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--radius-full);
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bb-mid-gray);
    transition:
        background  var(--duration-fast) var(--ease-out),
        color       var(--duration-fast) var(--ease-out);
}

.bb-shop-search__clear:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--bb-charcoal);
}

/* Search results dropdown */
.bb-shop-search__results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-height: 420px;
    overflow-y: auto;
    display: none;
    z-index: var(--z-modal);
}

.bb-shop-search__results.active {
    display: block;
    animation: bb-shop-slide-down var(--duration-normal) var(--ease-out) both;
}

.bb-search-result-item {
    padding: var(--space-4) var(--space-5);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-4);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background var(--duration-fast) var(--ease-out);
}

.bb-search-result-item:last-child {
    border-bottom: none;
}

.bb-search-result-item:hover,
.bb-search-result-item:focus-visible {
    background: rgba(16, 185, 129, 0.05);
    outline: none;
}

.bb-search-result-item__img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.bb-search-result-item__info {
    flex: 1;
    min-width: 0;
}

.bb-search-result-item__name {
    font-weight: 600;
    color: var(--bb-charcoal);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bb-search-result-item__cat {
    font-size: var(--text-sm);
    color: var(--bb-mid-gray);
}

.bb-search-result-item__price {
    font-weight: 700;
    color: var(--bb-green-bright);
    flex-shrink: 0;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HERO STATS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.bb-shop-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    animation: bb-shop-fade-in var(--duration-slow) var(--ease-out) 0.2s both;
}

.bb-shop-stat {
    text-align: center;
}

.bb-shop-stat__number {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 900;
    color: var(--bb-green-bright);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.bb-shop-stat__label {
    font-size: var(--text-xs);
    color: var(--bb-mid-gray);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CATEGORY NAV
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.bb-shop-cat-nav {
    position: sticky;
    top: var(--nav-height);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: var(--space-3) 0;
    margin-bottom: var(--space-6);
    z-index: var(--z-sticky);
}

.bb-shop-cat-nav__wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--page-gutter);
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(16, 185, 129, 0.3) transparent;
    -webkit-overflow-scrolling: touch;
}

.bb-shop-cat-nav__wrapper::-webkit-scrollbar {
    height: 3px;
}

.bb-shop-cat-nav__wrapper::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-full);
}

.bb-shop-cat-nav__btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 10px 20px;
    min-height: 44px; /* mobile touch target */
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--bb-mid-gray);
    cursor: pointer;
    transition:
        color        var(--duration-normal) var(--ease-out),
        background   var(--duration-normal) var(--ease-out),
        box-shadow   var(--duration-normal) var(--ease-out),
        border-color var(--duration-normal) var(--ease-out);
    white-space: nowrap;
    flex-shrink: 0;
}

.bb-shop-cat-nav__btn:hover {
    color: var(--bb-charcoal);
    background: rgba(0, 0, 0, 0.04);
}

.bb-shop-cat-nav__btn.active {
    color: var(--bb-white);
    background: linear-gradient(135deg, var(--bb-green-bright) 0%, var(--bb-green) 100%);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    border-color: transparent;
}

.bb-shop-cat-nav__btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.4);
}

.bb-shop-cat-nav__btn i {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PRODUCTS SECTION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.bb-shop-products {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--page-gutter) var(--space-10);
}

.bb-shop-products__wrapper {
    position: relative;
}


/* Loading */
.bb-shop-loading {
    text-align: center;
    padding: var(--space-10);
    color: var(--bb-mid-gray);
}

.bb-shop-loading__spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-5);
    border: 3px solid rgba(0, 0, 0, 0.08);
    border-top-color: var(--bb-green-bright);
    border-radius: 50%;
    animation: bb-shop-spin 0.9s linear infinite;
}

@keyframes bb-shop-spin {
    to { transform: rotate(360deg); }
}


/* No results */
.bb-shop-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-10) var(--space-5);
    background: var(--bb-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-xl);
    text-align: center;
}

.bb-shop-no-results i {
    width: 48px;
    height: 48px;
    color: var(--bb-mid-gray);
}

.bb-shop-no-results h3 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--bb-charcoal);
}

.bb-shop-no-results p {
    color: var(--bb-mid-gray);
}

.bb-shop-load-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-10) var(--space-5);
    background: var(--bb-white);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-xl);
    text-align: center;
}

.bb-shop-load-error i {
    width: 48px;
    height: 48px;
    color: var(--bb-error);
}

.bb-shop-load-error h3 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--bb-charcoal);
}

.bb-shop-load-error p {
    color: var(--bb-mid-gray);
}


/* Accordion list container */
.bb-shop-accordion {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    /* Offset scrollIntoView past fixed nav + sticky category bar */
    scroll-margin-top: calc(var(--nav-height) + 64px);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ACCORDION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.bb-accordion {
    background: var(--bb-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-xl);
    overflow: visible; /* overflow:hidden would clip absolute-positioned badges */
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--duration-normal) var(--ease-out);
    animation: bb-shop-fade-up var(--duration-slow) var(--ease-out) both;
}

.bb-accordion:hover {
    box-shadow: var(--shadow-lg);
}

.bb-accordion__header {
    padding: var(--space-5);
    cursor: pointer;
    user-select: none;
    border-radius: var(--radius-xl);
    transition: background var(--duration-fast) var(--ease-out);
    outline: none;
}

.bb-accordion__header:hover {
    background: rgba(16, 185, 129, 0.02);
}

.bb-accordion__header:focus-visible {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

.bb-accordion__header.active {
    background: linear-gradient(to bottom, rgba(16, 185, 129, 0.04), transparent);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.bb-accordion__header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bb-accordion__title-row {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.bb-accordion__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bb-green-bright) 0%, var(--bb-green) 100%);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

.bb-accordion__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--bb-charcoal);
    margin-bottom: 3px;
}

.bb-accordion__subtitle {
    font-size: var(--text-sm);
    color: var(--bb-mid-gray);
}

.bb-accordion__meta {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    flex-shrink: 0;
}

.bb-accordion__count {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--bb-mid-gray);
}

.bb-accordion__count i {
    width: 15px;
    height: 15px;
}

.bb-accordion__arrow {
    width: 24px;
    height: 24px;
    color: var(--bb-mid-gray);
    transition: transform var(--duration-normal) var(--ease-out);
    flex-shrink: 0;
}

.bb-accordion__header.active .bb-accordion__arrow {
    transform: rotate(180deg);
}

/* Accordion content panel.
   JS drives max-height via inline style for the open/close animation.
   .active class is a STATE SIGNAL only — never override max-height here
   or the close transition will be clobbered. */
.bb-accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-in-out);
}

/* Product grid inside an open accordion */
.bb-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: var(--space-5);
    padding: 0 var(--space-5) var(--space-5);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PRODUCT CARD
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.bb-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bb-white);
    border: 2px solid transparent;
    border-radius: var(--radius-xl);

    /* overflow:visible so .bb-product-card__badge (absolute) can animate with scale()
       without being clipped. The image uses its own overflow:hidden. */
    overflow: visible;
    max-width: 100%;

    box-shadow: var(--shadow-md);
    text-decoration: none;
    cursor: pointer;
    transition:
        transform      var(--duration-normal) var(--ease-out-back),
        box-shadow     var(--duration-normal) var(--ease-out),
        border-color   var(--duration-normal) var(--ease-out);
    animation: bb-shop-fade-up var(--duration-slow) var(--ease-out) both;
}

.bb-product-card:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow:
        var(--shadow-xl),
        0 20px 40px -12px rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.25);
}

.bb-product-card:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.4), var(--shadow-xl);
    border-color: var(--bb-green-bright);
}

/* Image area — separate overflow:hidden so images stay contained
   while the card itself remains overflow:visible for the badge */
.bb-product-card__img-wrap {
    width: 100%;
    height: 200px;
    flex-shrink: 0;
    border-radius: calc(var(--radius-xl) - 2px) calc(var(--radius-xl) - 2px) 0 0;
    overflow: hidden;
    background: linear-gradient(135deg, #F5F7FA 0%, #C3CFE2 100%);
}

.bb-product-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.bb-product-card:hover .bb-product-card__img-wrap img {
    transform: scale(1.08);
}

.bb-product-card__img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}


/* Badge — absolutely positioned on the card corner */
.bb-product-card__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    backdrop-filter: blur(8px);
    z-index: var(--z-above);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: bb-shop-badge-pop 0.45s var(--ease-out-back) 0.2s both;
    /* Default style */
    background: linear-gradient(135deg, var(--bb-charcoal) 0%, #374151 100%);
    color: var(--bb-white);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

@keyframes bb-shop-badge-pop {
    0%   { transform: scale(0) rotate(-30deg); opacity: 0; }
    70%  { transform: scale(1.08) rotate(3deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.bb-product-card__badge.badge--top-rated {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    border-color: rgba(251, 191, 36, 0.35);
}

.bb-product-card__badge.badge--discount {
    background: linear-gradient(135deg, var(--bb-error) 0%, #DC2626 100%);
    border-color: rgba(254, 202, 202, 0.3);
}

.bb-product-card__badge.badge--eco {
    background: linear-gradient(135deg, var(--bb-green-bright) 0%, var(--bb-green) 100%);
    border-color: rgba(16, 185, 129, 0.3);
}

.bb-product-card__badge.badge--new {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    border-color: rgba(196, 181, 253, 0.3);
}

.bb-product-card__badge.badge--blade-boss,
.bb-product-card__badge.badge--default {
    background: linear-gradient(135deg, var(--bb-orange) 0%, var(--bb-orange-hover) 100%);
    border-color: var(--bb-orange-glow);
}


/* Card content */
.bb-product-card__body {
    padding: var(--space-5);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.bb-product-card__title {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--bb-charcoal);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bb-product-card__vendor {
    font-size: var(--text-sm);
    color: var(--bb-mid-gray);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.bb-product-card__vendor i {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.bb-product-card__price {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--bb-green-bright);
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
}

.bb-product-card__original-price {
    font-size: var(--text-sm);
    color: var(--bb-mid-gray);
    text-decoration: line-through;
    font-weight: 400;
}

.bb-product-card__cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--bb-green-bright);
    font-weight: 600;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: gap var(--duration-normal) var(--ease-out);
}

.bb-product-card__cta i {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.bb-product-card:hover .bb-product-card__cta {
    gap: var(--space-3);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FOOTER CTA
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.bb-shop-cta {
    background: linear-gradient(135deg, var(--bb-green-bright) 0%, var(--bb-green) 100%);
    padding: var(--space-10) var(--page-gutter);
    text-align: center;
    margin-top: var(--space-10);
}

.bb-shop-cta__content {
    max-width: var(--max-width-xs);
    margin: 0 auto;
}

.bb-shop-cta__title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--bb-white);
    margin-bottom: var(--space-4);
}

.bb-shop-cta__body {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: var(--space-6);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BUTTONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.bb-btn-primary,
.bb-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 14px 28px;
    min-height: 44px; /* touch target */
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition:
        transform    var(--duration-normal) var(--ease-out-back),
        box-shadow   var(--duration-normal) var(--ease-out),
        background   var(--duration-normal) var(--ease-out);
}

.bb-btn-primary {
    background: linear-gradient(135deg, var(--bb-green-bright) 0%, var(--bb-green) 100%);
    color: var(--bb-white);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.bb-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.bb-btn-primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.5), 0 4px 16px rgba(16, 185, 129, 0.3);
}

.bb-btn-secondary {
    background: rgba(255, 255, 255, 0.18);
    color: var(--bb-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.bb-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.bb-btn-secondary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.bb-shop-search__clear:focus-visible {
    outline: none;
    background: rgba(0, 0, 0, 0.06);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

.bb-btn-primary i,
.bb-btn-secondary i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ANIMATIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@keyframes bb-shop-slide-down {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes bb-shop-slide-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes bb-shop-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes bb-shop-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (max-width: 768px) {

    .bb-shop-hero {
        padding: var(--space-8) var(--space-4);
    }

    .bb-shop-stats {
        gap: var(--space-5);
    }

    .bb-shop-stat__number {
        font-size: var(--text-3xl);
    }

    .bb-accordion__header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }

    .bb-accordion__meta {
        width: 100%;
        justify-content: space-between;
    }

    .bb-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        padding: 0 var(--space-4) var(--space-4);
    }

    .bb-shop-products {
        padding: 0 var(--space-4) var(--space-8);
    }

    .bb-shop-accordion {
        scroll-margin-top: calc(var(--nav-height-mobile) + env(safe-area-inset-top, 0px) + 56px);
    }

    .bb-shop-cat-nav {
        padding: var(--space-2) 0;
        top: calc(var(--nav-height-mobile) + env(safe-area-inset-top, 0px));
    }
}

@media (max-width: 480px) {

    .bb-shop-hero__title {
        font-size: var(--text-3xl);
        flex-direction: column;
        gap: var(--space-2);
    }

    .bb-accordion__title {
        font-size: var(--text-lg);
    }

    .bb-accordion__icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .bb-product-grid {
        grid-template-columns: 1fr;
    }

    .bb-product-card__body {
        padding: var(--space-4);
    }

    .bb-shop-stats {
        gap: var(--space-4);
    }

    .bb-shop-no-results {
        padding: var(--space-8) var(--space-4);
    }
}


/* Reduced motion — honour system preference */
@media (prefers-reduced-motion: reduce) {

    .bb-shop-hero__bg::before,
    .bb-shop-hero__icon,
    .bb-shop-loading__spinner {
        animation: none;
    }

    .bb-product-card:hover,
    .bb-btn-primary:hover,
    .bb-btn-secondary:hover {
        transform: none;
    }

    .bb-accordion__content {
        transition: none;
    }
}
