/* ══════════════════════════════════════════════════════════════════════
   SECURITPRO — Shop Components  v6.0.0
   Boutique page · Breadcrumb · Filters · Sort · Category pills
   Hello Elementor compatible
   ══════════════════════════════════════════════════════════════════════ */

/* ─── Token aliases (resolved by hello-elementor-compat.css) ─── */
:root {
    --spmm-s-primary:    var(--spmm-primary,    #F59E0B);
    --spmm-s-primary-lt: var(--spmm-primary-lt, #FEF3C7);
    --spmm-s-primary-dk: var(--spmm-primary-dk, #D97706);
    --spmm-s-text:       var(--spmm-text,        #0F172A);
    --spmm-s-muted:      var(--spmm-muted,       #64748B);
    --spmm-s-border:     var(--spmm-border,      #E8EDF3);
    --spmm-s-bg:         var(--spmm-bg-soft,     #F8FAFC);
    --spmm-s-dark:       var(--spmm-dark,        #0D111A);
    --spmm-s-dark2:      var(--spmm-dark-2,      #1E293B);
    --spmm-s-font:       var(--spmm-font-body,   'DM Sans', sans-serif);
    --spmm-s-font-hd:    var(--spmm-font-head,   'Syne', sans-serif);
    --spmm-s-radius:     var(--spmm-r-lg,        16px);
}

/* ══════════════════════════════════════════════════════
   BOUTIQUE PAGE WRAPPER
══════════════════════════════════════════════════════ */
.spmm-boutique-wrap {
    font-family: var(--spmm-s-font);
    -webkit-font-smoothing: antialiased;
    padding: 32px 0 80px;
    max-width: 100%;
}

/* ══════════════════════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════════════════════ */
.spmm-breadcrumb {
    font-family: var(--spmm-s-font);
    -webkit-font-smoothing: antialiased;
    margin-bottom: 24px;
}
.spmm-breadcrumb ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}
.spmm-breadcrumb li {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--spmm-s-muted);
}
.spmm-breadcrumb li a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--spmm-s-muted);
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color .15s, background .15s;
}
.spmm-breadcrumb li a:hover {
    color: var(--spmm-s-text);
    background: var(--spmm-s-bg);
}
.spmm-breadcrumb li a i { font-size: 11px; color: var(--spmm-s-primary); }
.spmm-breadcrumb li .spmm-bc-sep {
    color: #CBD5E1;
    font-size: 9px;
    padding: 0 4px;
    display: flex;
    align-items: center;
}
.spmm-breadcrumb li .spmm-bc-current {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    color: var(--spmm-s-text);
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--spmm-s-primary-lt);
    border: 1px solid rgba(245,158,11,.18);
}

/* ══════════════════════════════════════════════════════
   SHOP HERO BANNER
══════════════════════════════════════════════════════ */
.spmm-shop-hero {
    background: linear-gradient(135deg, var(--spmm-s-dark) 0%, var(--spmm-s-dark2) 100%);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 28px;
    position: relative;
}
.spmm-shop-hero.has-img {
    background-size: cover;
    background-position: center;
}
.spmm-shop-hero.has-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,17,26,.88) 0%, rgba(13,17,26,.55) 100%);
}
.spmm-shop-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 32px 36px;
}
.spmm-shop-hero-text { flex: 1; min-width: 0; }
.spmm-shop-hero-title {
    font-family: var(--spmm-s-font-hd);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    color: #fff;
    letter-spacing: -.035em;
    margin: 0 0 6px;
    line-height: 1.15;
}
.spmm-shop-hero-desc {
    font-size: 14px;
    color: rgba(255,255,255,.55);
    line-height: 1.6;
    margin: 0;
    max-width: 480px;
}
.spmm-shop-hero-stat {
    flex-shrink: 0;
    text-align: center;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    padding: 16px 24px;
    backdrop-filter: blur(8px);
}
.spmm-shop-hero-stat-num {
    display: block;
    font-family: var(--spmm-s-font-hd);
    font-size: 32px;
    font-weight: 900;
    color: var(--spmm-s-primary);
    letter-spacing: -.04em;
    line-height: 1;
}
.spmm-shop-hero-stat-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,.45);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-top: 4px;
    display: block;
}

/* ══════════════════════════════════════════════════════
   CATEGORY PILLS NAV
══════════════════════════════════════════════════════ */
.spmm-cat-pills {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 24px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.spmm-cat-pills::-webkit-scrollbar { display: none; }

.spmm-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 100px;
    border: 1.5px solid var(--spmm-s-border);
    background: #fff;
    font-family: var(--spmm-s-font);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--spmm-s-muted);
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
    transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.spmm-cat-pill:hover {
    border-color: var(--spmm-s-primary);
    color: var(--spmm-s-text);
    box-shadow: 0 2px 8px rgba(245,158,11,.14);
}
.spmm-cat-pill.is-active {
    background: var(--spmm-s-dark);
    border-color: var(--spmm-s-dark);
    color: var(--spmm-s-primary);
    font-weight: 700;
}
.spmm-cat-pill-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 3px;
}
.spmm-cat-pill-count {
    font-size: 10px;
    font-weight: 700;
    background: var(--spmm-s-bg);
    color: var(--spmm-s-muted);
    padding: 1px 7px;
    border-radius: 100px;
}
.spmm-cat-pill.is-active .spmm-cat-pill-count {
    background: rgba(245,158,11,.18);
    color: var(--spmm-s-primary);
}

/* ══════════════════════════════════════════════════════
   MAIN 2-COLUMN BOUTIQUE LAYOUT
══════════════════════════════════════════════════════ */
.spmm-boutique-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

/* Sidebar sticky */
.spmm-boutique-sidebar {
    position: sticky;
    top: 100px; /* below Hello Elementor sticky header */
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--spmm-s-border) transparent;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.spmm-boutique-sidebar::-webkit-scrollbar { width: 4px; }
.spmm-boutique-sidebar::-webkit-scrollbar-thumb {
    background: var(--spmm-s-border);
    border-radius: 4px;
}

/* ══════════════════════════════════════════════════════
   FILTER SIDEBAR
══════════════════════════════════════════════════════ */
.spmm-shop-filters {
    font-family: var(--spmm-s-font);
    -webkit-font-smoothing: antialiased;
    background: #fff;
    border: 1.5px solid var(--spmm-s-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--spmm-shadow-sm, 0 2px 10px rgba(0,0,0,.07));
}

/* Filter header */
.spmm-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--spmm-s-border);
    background: linear-gradient(135deg, var(--spmm-s-dark) 0%, var(--spmm-s-dark2) 100%);
}
.spmm-filter-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.01em;
}
.spmm-filter-title i { color: var(--spmm-s-primary); font-size: 12px; }
.spmm-filter-badge {
    background: var(--spmm-s-primary);
    color: var(--spmm-s-dark);
    font-size: 9px;
    font-weight: 900;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.spmm-filter-clear-all {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 700;
    color: rgba(255,255,255,.45);
    text-decoration: none;
    padding: 4px 9px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.1);
    transition: color .15s, border-color .15s, background .15s;
}
.spmm-filter-clear-all:hover {
    color: #fff;
    border-color: rgba(255,255,255,.25);
    background: rgba(255,255,255,.07);
}

/* Filter groups */
.spmm-filter-group {
    border-bottom: 1px solid var(--spmm-s-border);
}
.spmm-filter-group:last-child { border-bottom: none; }

.spmm-filter-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 18px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--spmm-s-font);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--spmm-s-text);
    text-align: left;
    transition: background .15s;
}
.spmm-filter-group-header:hover { background: var(--spmm-s-bg); }
.spmm-filter-group-header span {
    display: flex;
    align-items: center;
    gap: 8px;
}
.spmm-filter-group-header span i { color: var(--spmm-s-primary); font-size: 11px; }
.spmm-filter-group-header.has-active { color: var(--spmm-s-primary-dk); }

.spmm-toggle-icon {
    font-size: 9px;
    color: #94A3B8;
    transition: transform .22s;
    flex-shrink: 0;
}
.spmm-filter-group.open .spmm-toggle-icon { transform: rotate(180deg); }

.spmm-filter-group-body {
    padding: 4px 14px 14px;
    display: none;
}
.spmm-filter-group.open .spmm-filter-group-body { display: block; }

/* Filter search */
.spmm-filter-search-group { padding: 12px 14px; }
.spmm-filter-search-wrap {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--spmm-s-bg);
    border: 1.5px solid var(--spmm-s-border);
    border-radius: 10px;
    padding: 9px 13px;
    transition: border-color .18s, box-shadow .18s;
}
.spmm-filter-search-wrap:focus-within {
    border-color: var(--spmm-s-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(245,158,11,.1);
}
.spmm-filter-search-wrap i { font-size: 12px; color: var(--spmm-s-primary); flex-shrink: 0; }
.spmm-filter-search-input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-family: var(--spmm-s-font);
    font-size: 13px;
    color: var(--spmm-s-text);
}
.spmm-filter-search-input::placeholder { color: #CBD5E1; }
.spmm-filter-clear-input { color: #94A3B8; text-decoration: none; font-size: 11px; }
.spmm-filter-clear-input:hover { color: var(--spmm-s-text); }

/* Category list */
.spmm-filter-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.spmm-filter-cat-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 9px;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--spmm-s-muted);
    transition: background .15s, color .15s;
}
.spmm-filter-cat-link:hover {
    background: var(--spmm-s-bg);
    color: var(--spmm-s-text);
}
.spmm-filter-cat-link.active {
    color: var(--spmm-s-primary-dk);
    font-weight: 700;
    background: var(--spmm-s-primary-lt);
}
.spmm-filter-cat-check {
    width: 17px;
    height: 17px;
    border-radius: 5px;
    border: 1.5px solid #CBD5E1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 8px;
    transition: all .15s;
}
.spmm-filter-cat-link.active .spmm-filter-cat-check {
    background: var(--spmm-s-primary);
    border-color: var(--spmm-s-primary);
    color: #fff;
}
.spmm-filter-cat-count {
    margin-left: auto;
    font-size: 10.5px;
    color: #94A3B8;
    background: var(--spmm-s-bg);
    padding: 1px 7px;
    border-radius: 100px;
    font-weight: 600;
}
.spmm-filter-cat-link.active .spmm-filter-cat-count {
    background: rgba(245,158,11,.14);
    color: var(--spmm-s-primary-dk);
}
.spmm-filter-subcat { padding-left: 28px !important; font-size: 12px; }
.spmm-filter-subcat-list { list-style: none; padding: 0; margin: 0; display: none; flex-direction: column; gap: 1px; }
.spmm-filter-subcat-list.open { display: flex; }

/* Price slider */
.spmm-price-slider-wrap { padding: 4px 0; }
.spmm-price-labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--spmm-s-text);
    margin-bottom: 14px;
    background: var(--spmm-s-bg);
    border: 1px solid var(--spmm-s-border);
    border-radius: 8px;
    padding: 7px 12px;
}
.spmm-price-labels span:nth-child(2) { color: #CBD5E1; }

.spmm-range-track {
    position: relative;
    height: 4px;
    background: #E2E8F0;
    border-radius: 4px;
    margin: 20px 0;
    cursor: pointer;
}
.spmm-range-fill {
    position: absolute;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--spmm-s-primary-dk), var(--spmm-s-primary));
    pointer-events: none;
}
.spmm-range-thumb {
    position: absolute;
    top: 50%;
    width: 100%;
    height: 0;
    -webkit-appearance: none;
    appearance: none;
    background: none;
    border: none;
    outline: none;
    pointer-events: none;
    transform: translateY(-50%);
}
.spmm-range-thumb::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid var(--spmm-s-primary);
    box-shadow: 0 2px 8px rgba(245,158,11,.28);
    cursor: grab;
    pointer-events: auto;
    transition: transform .15s, box-shadow .15s;
}
.spmm-range-thumb::-webkit-slider-thumb:hover,
.spmm-range-thumb::-webkit-slider-thumb:active {
    transform: scale(1.22);
    box-shadow: 0 4px 14px rgba(245,158,11,.45);
    cursor: grabbing;
}

/* ── Price apply button ── */
.spmm-price-apply {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 12px;
    padding: 9px 16px;
    border-radius: 10px;
    background: var(--spmm-s-dark);
    color: var(--spmm-s-primary);
    font-family: var(--spmm-s-font);
    font-size: 12px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.spmm-price-apply:hover {
    background: linear-gradient(135deg, var(--spmm-s-primary), var(--spmm-s-primary-dk));
    color: #fff;
}

/* Tags */
.spmm-filter-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 6px; }
.spmm-filter-tag {
    padding: 4px 11px;
    border-radius: 100px;
    border: 1.5px solid var(--spmm-s-border);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--spmm-s-muted);
    text-decoration: none;
    transition: border-color .15s, background .15s, color .15s;
}
.spmm-filter-tag:hover {
    border-color: var(--spmm-s-primary);
    color: var(--spmm-s-primary-dk);
    background: var(--spmm-s-primary-lt);
}
.spmm-filter-tag.active {
    border-color: var(--spmm-s-primary);
    background: var(--spmm-s-primary);
    color: #fff;
}

/* ══════════════════════════════════════════════════════
   SORT BAR
══════════════════════════════════════════════════════ */
.spmm-sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding: 10px 14px;
    background: #fff;
    border: 1.5px solid var(--spmm-s-border);
    border-radius: 12px;
    font-family: var(--spmm-s-font);
    flex-wrap: wrap;
    box-shadow: var(--spmm-shadow-xs, 0 1px 4px rgba(0,0,0,.06));
}
.spmm-sort-count {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--spmm-s-muted);
    white-space: nowrap;
}
.spmm-sort-count strong { color: var(--spmm-s-text); }
.spmm-sort-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
/* WC native orderby select */
.spmm-boutique-main .woocommerce-ordering {
    margin: 0 !important;
    float: none !important;
}
.spmm-boutique-main .woocommerce-ordering select {
    padding: 7px 32px 7px 12px !important;
    border: 1.5px solid var(--spmm-s-border) !important;
    border-radius: 9px !important;
    font-family: var(--spmm-s-font) !important;
    font-size: 12.5px !important;
    color: var(--spmm-s-text) !important;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center !important;
    -webkit-appearance: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    min-width: 160px !important;
    transition: border-color .18s !important;
}
.spmm-boutique-main .woocommerce-ordering select:focus {
    border-color: var(--spmm-s-primary) !important;
    box-shadow: 0 0 0 3px rgba(245,158,11,.1) !important;
}

/* View toggle */
.spmm-view-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--spmm-s-bg);
    border: 1.5px solid var(--spmm-s-border);
    border-radius: 9px;
    padding: 3px;
}
.spmm-view-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 13px;
    color: var(--spmm-s-muted);
    transition: background .15s, color .15s;
}
.spmm-view-btn.active {
    background: #fff;
    color: var(--spmm-s-primary);
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

/* ══════════════════════════════════════════════════════
   ACTIVE FILTERS STRIP
══════════════════════════════════════════════════════ */
.spmm-active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 18px;
    font-family: var(--spmm-s-font);
}
.spmm-active-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 100px;
    background: var(--spmm-s-dark);
    color: var(--spmm-s-primary);
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(245,158,11,.2);
    transition: background .18s;
}
.spmm-active-filter i { font-size: 9px; opacity: .6; }
.spmm-active-filter:hover { background: #EF4444; color: #fff; border-color: transparent; }
.spmm-active-filter-clear-all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 100px;
    background: none;
    border: 1.5px solid var(--spmm-s-border);
    font-family: var(--spmm-s-font);
    font-size: 11px;
    font-weight: 700;
    color: var(--spmm-s-muted);
    cursor: pointer;
    transition: border-color .15s, color .15s;
}
.spmm-active-filter-clear-all:hover {
    border-color: #EF4444;
    color: #EF4444;
}

/* ══════════════════════════════════════════════════════
   MAIN PRODUCTS AREA
══════════════════════════════════════════════════════ */
.spmm-boutique-main {
    min-width: 0;
}

/* WC products grid */
.spmm-boutique-main ul.products,
.spmm-sc-wrap ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 22px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: stretch !important;
}

/* Product card */
.spmm-boutique-main ul.products li.product,
.spmm-sc-wrap ul.products li.product {
    background: #fff !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04) !important;
    transition: box-shadow .24s ease, transform .24s ease, border-color .24s ease !important;
    position: relative !important;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}
.spmm-boutique-main ul.products li.product:hover,
.spmm-sc-wrap ul.products li.product:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.09), 0 2px 8px rgba(0,0,0,.05) !important;
    transform: translateY(-3px) !important;
    border-color: rgba(245,158,11,.3) !important;
}

/* Hide subcategory items */
.spmm-boutique-main ul.products li.product-category,
.spmm-sc-wrap ul.products li.product-category {
    display: none !important;
}

/* Product image link */
.spmm-boutique-main ul.products li.product a:first-child,
.spmm-boutique-main ul.products li.product .woocommerce-LoopProduct-link,
.spmm-sc-wrap ul.products li.product a:first-child,
.spmm-sc-wrap ul.products li.product .woocommerce-LoopProduct-link {
    display: block !important;
    position: relative !important;
    background: #FFFFFF !important;
    border-bottom: 1px solid #F2F4F7 !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

/* Product image */
.spmm-boutique-main ul.products li.product img,
.spmm-sc-wrap ul.products li.product img {
    width: 100% !important;
    aspect-ratio: 4/3.5 !important;
    object-fit: contain !important;
    display: block !important;
    padding: 22px !important;
    box-sizing: border-box !important;
    background: #FFFFFF !important;
    float: none !important;
    margin: 0 !important;
    transition: transform .44s cubic-bezier(.25,.46,.45,.94) !important;
}
/* Hide secondary hover image (WC ghost image) */
.spmm-boutique-main ul.products li.product img.secondary,
.spmm-sc-wrap ul.products li.product img.secondary {
    display: none !important;
}
.spmm-boutique-main ul.products li.product:hover img,
.spmm-sc-wrap ul.products li.product:hover img {
    transform: scale(1.05) !important;
}

/* Sale badge — matches reference */
.onsale,
ul.products li.product .onsale,
.woocommerce ul.products li.product .onsale,
.spmm-boutique-main ul.products li.product .onsale,
.spmm-sc-wrap ul.products li.product .onsale {
    position: absolute !important;
    top: 9px !important;
    left: 9px !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 10 !important;
    display: inline-block !important;
    align-items: unset !important;
    justify-content: unset !important;
    width: auto !important;
    min-width: unset !important;
    max-width: unset !important;
    min-height: unset !important;
    background: #EF4444 !important;
    color: #fff !important;
    font-size: 8.5px !important;
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: .09em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    padding: 3px 9px !important;
    border-radius: 5px !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    float: none !important;
    border: none !important;
    box-shadow: 0 1px 6px rgba(239,68,68,.35) !important;
}

/* Product title — DM Sans matches reference */
.spmm-boutique-main ul.products .woocommerce-loop-product__title,
.spmm-sc-wrap ul.products .woocommerce-loop-product__title {
    font-family: var(--spmm-s-font) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--spmm-s-text) !important;
    line-height: 1.42 !important;
    padding: 13px 14px 6px !important;
    margin: 0 !important;
    flex: 1 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    letter-spacing: 0 !important;
}

/* Price — DM Sans 700 14px amber-dark */
.spmm-boutique-main ul.products li.product .price,
.spmm-sc-wrap ul.products li.product .price {
    display: block !important;
    padding: 0 14px 14px !important;
    line-height: 1.3 !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    font-family: var(--spmm-s-font) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--spmm-s-primary-dk) !important;
}
.spmm-boutique-main ul.products li.product .price .woocommerce-Price-amount,
.spmm-boutique-main ul.products li.product .price .amount,
.spmm-sc-wrap ul.products li.product .price .woocommerce-Price-amount,
.spmm-sc-wrap ul.products li.product .price .amount {
    display: inline !important;
    font-family: var(--spmm-s-font) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--spmm-s-primary-dk) !important;
    letter-spacing: -.01em !important;
    white-space: nowrap !important;
}
.spmm-boutique-main ul.products li.product .price del .amount,
.spmm-sc-wrap ul.products li.product .price del .amount {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #94A3B8 !important;
    text-decoration: line-through !important;
    opacity: .9 !important;
}
.spmm-boutique-main ul.products li.product .price ins,
.spmm-sc-wrap ul.products li.product .price ins {
    text-decoration: none !important;
    display: inline !important;
}
.spmm-boutique-main ul.products li.product .price del,
.spmm-sc-wrap ul.products li.product .price del {
    display: inline !important; opacity: 1 !important; margin-right: 3px;
}

/* Add to cart / view button */
.spmm-boutique-main ul.products li.product a.button,
.spmm-boutique-main ul.products li.product button.add_to_cart_button,
.spmm-sc-wrap ul.products li.product a.button,
.spmm-sc-wrap ul.products li.product button.add_to_cart_button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    width: calc(100% - 28px) !important;
    margin: 0 14px 14px !important;
    padding: 10px 16px !important;
    background: var(--spmm-s-dark) !important;
    color: var(--spmm-s-primary) !important;
    border: none !important;
    border-radius: 10px !important;
    font-family: var(--spmm-s-font) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: .03em !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background .22s, color .22s, box-shadow .22s !important;
    box-sizing: border-box !important;
}
.spmm-boutique-main ul.products li.product a.button:hover,
.spmm-boutique-main ul.products li.product button.add_to_cart_button:hover,
.spmm-sc-wrap ul.products li.product a.button:hover,
.spmm-sc-wrap ul.products li.product button.add_to_cart_button:hover {
    background: linear-gradient(135deg, var(--spmm-s-primary), var(--spmm-s-primary-dk)) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(245,158,11,.4) !important;
}

/* ── WC results count ── */
.spmm-boutique-main .woocommerce-result-count {
    font-family: var(--spmm-s-font) !important;
    font-size: 12.5px !important;
    color: var(--spmm-s-muted) !important;
    margin: 0 !important;
    float: none !important;
}

/* ══════════════════════════════════════════════════════
   SIDEBAR HELP BLOCK
══════════════════════════════════════════════════════ */
.spmm-sidebar-help {
    display: flex;
    gap: 13px;
    padding: 16px;
    background: linear-gradient(135deg, var(--spmm-s-dark), var(--spmm-s-dark2));
    border-radius: 14px;
    color: rgba(255,255,255,.65);
}
.spmm-sidebar-help-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(245,158,11,.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--spmm-s-primary);
}
.spmm-sidebar-help strong {
    display: block;
    font-size: 12.5px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
}
.spmm-sidebar-help p {
    font-size: 11.5px;
    margin: 0 0 9px;
    color: rgba(255,255,255,.42);
    line-height: 1.5;
}
.spmm-sidebar-help-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 13px;
    background: var(--spmm-s-primary);
    color: var(--spmm-s-dark) !important;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 800;
    text-decoration: none !important;
    transition: opacity .18s;
}
.spmm-sidebar-help-btn:hover { opacity: .88; }

/* ══════════════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════════════ */
.spmm-boutique-main .woocommerce-pagination,
.spmm-sc-wrap .woocommerce-pagination {
    margin-top: 40px !important;
}
.spmm-boutique-main .woocommerce-pagination ul,
.spmm-sc-wrap .woocommerce-pagination ul {
    display: flex !important;
    gap: 5px !important;
    justify-content: center !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.spmm-boutique-main .woocommerce-pagination ul li a,
.spmm-boutique-main .woocommerce-pagination ul li span,
.spmm-sc-wrap .woocommerce-pagination ul li a,
.spmm-sc-wrap .woocommerce-pagination ul li span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    border: 1.5px solid var(--spmm-s-border) !important;
    background: #fff !important;
    font-family: var(--spmm-s-font) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--spmm-s-text) !important;
    text-decoration: none !important;
    transition: all .18s !important;
}
.spmm-boutique-main .woocommerce-pagination ul li a:hover,
.spmm-sc-wrap .woocommerce-pagination ul li a:hover {
    border-color: var(--spmm-s-primary) !important;
    color: var(--spmm-s-primary-dk) !important;
}
.spmm-boutique-main .woocommerce-pagination ul li span.current,
.spmm-sc-wrap .woocommerce-pagination ul li span.current {
    background: var(--spmm-s-dark) !important;
    border-color: var(--spmm-s-dark) !important;
    color: var(--spmm-s-primary) !important;
    font-weight: 800 !important;
}

/* ══════════════════════════════════════════════════════
   EMPTY SHOP STATE
══════════════════════════════════════════════════════ */
.spmm-shop-empty {
    padding: 72px 28px;
    text-align: center;
    background: var(--spmm-s-bg);
    border: 2px dashed var(--spmm-s-border);
    border-radius: 20px;
}
.spmm-shop-empty-icon {
    font-size: 44px;
    color: #CBD5E1;
    display: block;
    margin-bottom: 18px;
}
.spmm-shop-empty h2 {
    font-family: var(--spmm-s-font-hd);
    font-size: 20px;
    font-weight: 800;
    color: var(--spmm-s-text);
    margin: 0 0 8px;
    letter-spacing: -.03em;
}
.spmm-shop-empty p {
    color: var(--spmm-s-muted);
    font-size: 14px;
    margin: 0 0 22px;
}
.spmm-shop-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--spmm-s-primary), var(--spmm-s-primary-dk));
    color: #fff !important;
    border-radius: 100px;
    font-weight: 800;
    font-size: 13.5px;
    text-decoration: none !important;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 18px rgba(245,158,11,.3);
}
.spmm-shop-empty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(245,158,11,.44);
}

/* ══════════════════════════════════════════════════════
   WC NOTICES
══════════════════════════════════════════════════════ */
.spmm-boutique-main .woocommerce-info,
.spmm-sc-wrap .woocommerce-info {
    border-left-color: var(--spmm-s-primary) !important;
    background: #FFFBEB !important;
    color: #92400E !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-family: var(--spmm-s-font) !important;
}

/* ══════════════════════════════════════════════════════
   LIST VIEW
══════════════════════════════════════════════════════ */
.spmm-boutique-main.spmm-view-list ul.products {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
}
.spmm-boutique-main.spmm-view-list ul.products li.product {
    flex-direction: row !important;
    max-height: 140px !important;
}
.spmm-boutique-main.spmm-view-list ul.products li.product img {
    width: 140px !important;
    height: 140px !important;
    aspect-ratio: 1/1 !important;
    flex-shrink: 0 !important;
    padding: 14px !important;
}
.spmm-boutique-main.spmm-view-list ul.products .woocommerce-loop-product__title {
    font-size: 14px !important;
}
.spmm-boutique-main.spmm-view-list ul.products li.product .button,
.spmm-boutique-main.spmm-view-list ul.products li.product .add_to_cart_button {
    width: auto !important;
    margin: auto 14px auto auto !important;
    white-space: nowrap !important;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .spmm-boutique-main ul.products,
    .spmm-sc-wrap ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .spmm-boutique-layout {
        grid-template-columns: 230px 1fr;
        gap: 22px;
    }
}
@media (max-width: 820px) {
    .spmm-boutique-layout {
        grid-template-columns: 1fr;
    }
    .spmm-boutique-sidebar {
        position: static; max-height: none; overflow-y: visible;
    }
    .spmm-boutique-main ul.products,
    .spmm-sc-wrap ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    .spmm-shop-hero-inner { padding: 24px; }
    .spmm-shop-hero-title { font-size: clamp(20px, 5vw, 32px); }
}
@media (max-width: 520px) {
    .spmm-boutique-main ul.products,
    .spmm-sc-wrap ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .spmm-shop-hero-stat { display: none; }
    .spmm-cat-pill { padding: 7px 10px; font-size: 11.5px; }
    .spmm-boutique-main ul.products .woocommerce-loop-product__title {
        font-size: 11.5px !important;
        padding: 9px 10px 4px !important;
    }
    .spmm-boutique-main ul.products li.product .price {
        padding: 0 10px 10px !important;
        font-size: 13px !important;
    }
    .spmm-boutique-main ul.products li.product .price .amount,
    .spmm-boutique-main ul.products li.product .price .woocommerce-Price-amount {
        font-size: 13px !important;
    }
    .spmm-boutique-main ul.products li.product img { padding: 12px !important; }
    .spmm-boutique-main ul.products li.product a.button,
    .spmm-boutique-main ul.products li.product button.add_to_cart_button {
        width: calc(100% - 20px) !important;
        margin: 0 10px 10px !important;
        padding: 8px !important;
        font-size: 11px !important;
    }
}
@media (max-width: 360px) {
    .spmm-boutique-main ul.products,
    .spmm-sc-wrap ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* ── Definitive empty-slot fix — CSS :has() ── */
.spmm-boutique-main ul.products li:not(:has(.woocommerce-loop-product__title)),
.spmm-sc-wrap ul.products li:not(:has(.woocommerce-loop-product__title)) {
    display: none !important;
}

/* ════════════════════════════════════════════════════════════════════
   ENHANCED DESIGN — v7.0.0
   Richer visuals: boutique toolbar · hero decorations · card quality
   matching the products-widget reference design
   ════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════
   BOUTIQUE TOOLBAR (wrapper for count + view + sort)
   Was missing from CSS — added here
══════════════════════════════════════════════════════ */
.spmm-boutique-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding: 10px 16px;
    background: #fff;
    border: 1.5px solid var(--spmm-s-border);
    border-radius: 12px;
    font-family: var(--spmm-s-font);
    flex-wrap: wrap;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.spmm-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
/* Remove duplicate margin from .spmm-sort-bar when inside toolbar */
.spmm-boutique-toolbar .spmm-sort-bar {
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

/* ══════════════════════════════════════════════════════
   HERO — decorative layers
══════════════════════════════════════════════════════ */
.spmm-shop-hero {
    box-shadow: 0 10px 48px rgba(0,0,0,.22);
    border: 1px solid rgba(255,255,255,.06);
}
/* Radial amber glow at top-right */
.spmm-shop-hero::after {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(245,158,11,.22) 0%, transparent 68%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}
.spmm-shop-hero-inner { position: relative; z-index: 2; }

/* Subtle dot-grid column next to the stat block */
.spmm-shop-hero-stat {
    position: relative;
}
.spmm-shop-hero-stat::before {
    content: '';
    position: absolute;
    inset: -24px;
    background-image: radial-gradient(rgba(245,158,11,.28) 1.5px, transparent 1.5px);
    background-size: 14px 14px;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    opacity: .55;
}

/* Amber underline accent on hero title */
.spmm-shop-hero-title {
    padding-bottom: 10px;
    position: relative;
}
.spmm-shop-hero-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 44px; height: 3px;
    background: linear-gradient(90deg, var(--spmm-s-primary), var(--spmm-s-primary-dk));
    border-radius: 4px;
}

/* ══════════════════════════════════════════════════════
   CATEGORY PILLS — enhanced hover + bounce
══════════════════════════════════════════════════════ */
.spmm-cat-pill {
    transition: all .25s cubic-bezier(.34,1.56,.64,1) !important;
}
.spmm-cat-pill:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 18px rgba(245,158,11,.18) !important;
}
.spmm-cat-pill.is-active {
    box-shadow: 0 4px 16px rgba(13,17,26,.3) !important;
    transform: translateY(-1px);
}
/* Fade-out right edge when pills overflow */
.spmm-cat-pills {
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    padding-right: 40px;
}

/* ══════════════════════════════════════════════════════
   PRODUCT CARDS — boutique grid lifted to widget quality
══════════════════════════════════════════════════════ */

/* Taller image area: 4/3.5 like widget (was 4/3) */
.spmm-boutique-main ul.products li.product img,
.spmm-sc-wrap ul.products li.product img {
    aspect-ratio: 4 / 3.5 !important;
    padding: 22px !important;
}

/* Image link as block with relative positioning for overlay */
.spmm-boutique-main ul.products li.product a:first-child,
.spmm-boutique-main ul.products li.product .woocommerce-LoopProduct-link,
.spmm-sc-wrap ul.products li.product a:first-child,
.spmm-sc-wrap ul.products li.product .woocommerce-LoopProduct-link {
    position: relative !important;
    display: block !important;
}

/* Hover overlay with "Voir" pill — matching widget */
.spmm-boutique-main ul.products li.product a:first-child::after,
.spmm-boutique-main ul.products li.product .woocommerce-LoopProduct-link::after,
.spmm-sc-wrap ul.products li.product a:first-child::after,
.spmm-sc-wrap ul.products li.product .woocommerce-LoopProduct-link::after {
    content: '→ Voir le produit';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--spmm-s-font);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    color: #0D111A;
    background: rgba(13,17,26,.52);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .24s ease;
    border-radius: inherit;
}
/* The text inside the pseudo-element — use a box decoration */
.spmm-boutique-main ul.products li.product:hover a:first-child::after,
.spmm-boutique-main ul.products li.product:hover .woocommerce-LoopProduct-link::after,
.spmm-sc-wrap ul.products li.product:hover a:first-child::after,
.spmm-sc-wrap ul.products li.product:hover .woocommerce-LoopProduct-link::after {
    opacity: 1;
}
/* Pill label styling via outline-box trick */
.spmm-boutique-main ul.products li.product a:first-child::after,
.spmm-boutique-main ul.products li.product .woocommerce-LoopProduct-link::after,
.spmm-sc-wrap ul.products li.product a:first-child::after,
.spmm-sc-wrap ul.products li.product .woocommerce-LoopProduct-link::after {
    text-shadow: none;
    box-shadow: inset 0 0 0 1px rgba(245,158,11,.15);
}
/* Amber pill inside overlay (text-shadow hack won't work, use box) */
.spmm-boutique-main ul.products li.product .woocommerce-LoopProduct-link::before,
.spmm-sc-wrap ul.products li.product .woocommerce-LoopProduct-link::before {
    content: 'Voir le produit →';
    position: absolute;
    z-index: 5;
    top: 50%; left: 50%;
    transform: translate(-50%, calc(-50% + 6px));
    background: var(--spmm-s-primary);
    color: #0D111A;
    font-family: var(--spmm-s-font);
    font-size: 11.5px;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: 100px;
    white-space: nowrap;
    letter-spacing: .02em;
    opacity: 0;
    transition: opacity .24s ease, transform .26s ease;
    pointer-events: none;
}
.spmm-boutique-main ul.products li.product:hover .woocommerce-LoopProduct-link::before,
.spmm-sc-wrap ul.products li.product:hover .woocommerce-LoopProduct-link::before {
    opacity: 1;
    transform: translate(-50%, -50%);
}
/* Remove the pseudo after from link (keep it clean) */
.spmm-boutique-main ul.products li.product a:first-child::after,
.spmm-boutique-main ul.products li.product .woocommerce-LoopProduct-link::after,
.spmm-sc-wrap ul.products li.product a:first-child::after,
.spmm-sc-wrap ul.products li.product .woocommerce-LoopProduct-link::after {
    content: '';
    text-indent: -9999px;
    font-size: 0;
}

/* Card border on hover — amber tint */
.spmm-boutique-main ul.products li.product:hover,
.spmm-sc-wrap ul.products li.product:hover {
    border-color: rgba(245,158,11,.4) !important;
    box-shadow: 0 16px 48px rgba(0,0,0,.12), 0 4px 16px rgba(245,158,11,.1) !important;
}

/* Title: 2-line clamp like widget */
.spmm-boutique-main ul.products .woocommerce-loop-product__title,
.spmm-sc-wrap ul.products .woocommerce-loop-product__title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 38px;
}

/* Price: refined amber treatment */
.spmm-boutique-main ul.products li.product .price .woocommerce-Price-amount,
.spmm-boutique-main ul.products li.product .price .amount,
.spmm-sc-wrap ul.products li.product .price .woocommerce-Price-amount,
.spmm-sc-wrap ul.products li.product .price .amount {
    letter-spacing: -.03em !important;
}

/* Add-to-cart button: pill style refinement */
.spmm-boutique-main ul.products li.product a.button,
.spmm-boutique-main ul.products li.product button.add_to_cart_button,
.spmm-sc-wrap ul.products li.product a.button,
.spmm-sc-wrap ul.products li.product button.add_to_cart_button {
    border-radius: 100px !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    font-size: 10.5px !important;
}
.spmm-boutique-main ul.products li.product a.button:hover,
.spmm-boutique-main ul.products li.product button.add_to_cart_button:hover,
.spmm-sc-wrap ul.products li.product a.button:hover,
.spmm-sc-wrap ul.products li.product button.add_to_cart_button:hover {
    transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════
   FILTER SIDEBAR — premium feel
══════════════════════════════════════════════════════ */
.spmm-shop-filters {
    box-shadow: 0 6px 28px rgba(0,0,0,.1) !important;
}
.spmm-filter-group-header {
    transition: background .18s, color .18s, padding-left .18s;
}
.spmm-filter-group-header:hover {
    padding-left: 22px !important;
}
.spmm-filter-cat-link {
    transition: background .15s, color .15s, padding-left .15s;
}
.spmm-filter-cat-link:hover {
    padding-left: 16px !important;
}
.spmm-filter-cat-link.active {
    padding-left: 14px !important;
}

/* ══════════════════════════════════════════════════════
   SIDEBAR HELP — warmer glow
══════════════════════════════════════════════════════ */
.spmm-sidebar-help {
    box-shadow: 0 6px 24px rgba(0,0,0,.18);
    border: 1px solid rgba(245,158,11,.15);
}

/* ══════════════════════════════════════════════════════
   PAGINATION — refined
══════════════════════════════════════════════════════ */
.spmm-boutique-main .woocommerce-pagination ul li a,
.spmm-boutique-main .woocommerce-pagination ul li span,
.spmm-sc-wrap .woocommerce-pagination ul li a,
.spmm-sc-wrap .woocommerce-pagination ul li span {
    transition: all .2s cubic-bezier(.34,1.56,.64,1) !important;
}
.spmm-boutique-main .woocommerce-pagination ul li a:hover,
.spmm-sc-wrap .woocommerce-pagination ul li a:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(245,158,11,.22) !important;
}

/* ══════════════════════════════════════════════════════
   EMPTY SLOT FIX — belt-and-suspenders approach
   Works alongside the :has() rule + PHP fix
══════════════════════════════════════════════════════ */
.spmm-boutique-main ul.products > li:not([class*="product"]),
.spmm-sc-wrap ul.products > li:not([class*="product"]) {
    display: none !important;
}
/* Any li with no real product content (no title h2) */
.spmm-boutique-main ul.products li.product:not(:has(h2, h3, a.button)),
.spmm-sc-wrap ul.products li.product:not(:has(h2, h3, a.button)) {
    display: none !important;
    pointer-events: none !important;
}
/* Hide product-category items that WC might inject */
.spmm-boutique-main ul.products li.product-category,
.spmm-sc-wrap ul.products li.product-category {
    display: none !important;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE TOOLBAR
══════════════════════════════════════════════════════ */
@media (max-width: 520px) {
    .spmm-boutique-toolbar {
        gap: 8px;
        padding: 8px 12px;
    }
    .spmm-toolbar-right {
        gap: 6px;
    }
}

/* ════════════════════════════════════════════════════════════
   PRODUCT ATTRIBUTE FILTERS — v2.0
   Checkbox list · Button chips · Color swatches
   ════════════════════════════════════════════════════════════ */

/* Active count badge on group header */
.spmm-filter-attr-count-badge {
    margin-left: 6px;
    background: var(--spmm-primary, #F59E0B);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    padding: 1px 7px;
    border-radius: 100px;
    line-height: 16px;
}

/* ── Checkbox list (default) ── */
.spmm-filter-attr-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.spmm-filter-attr-item { display: block; }
.spmm-filter-attr-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
    text-decoration: none !important;
    transition: background .15s, color .15s;
    cursor: pointer;
}
.spmm-filter-attr-link:hover { background: #F8FAFC; color: #0F172A; }
.spmm-filter-attr-link.active { background: #FFFBEB; color: #0F172A; }

.spmm-filter-attr-check {
    width: 17px;
    height: 17px;
    border: 1.5px solid #D1D5DB;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 9px;
    color: transparent;
    background: #fff;
    transition: border-color .15s, background .15s, color .15s;
}
.spmm-filter-attr-link.active .spmm-filter-attr-check,
.spmm-filter-attr-link:hover .spmm-filter-attr-check {
    border-color: var(--spmm-primary, #F59E0B);
}
.spmm-filter-attr-link.active .spmm-filter-attr-check {
    background: var(--spmm-primary, #F59E0B);
    color: #fff;
}
.spmm-filter-attr-img {
    width: 22px;
    height: 22px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #E2E8F0;
    flex-shrink: 0;
}
.spmm-filter-attr-name { flex: 1; min-width: 0; word-break: break-word; }
.spmm-filter-attr-count {
    margin-left: auto;
    font-size: 10.5px;
    color: #9CA3AF;
    background: #F3F4F6;
    padding: 1px 6px;
    border-radius: 100px;
    white-space: nowrap;
    flex-shrink: 0;
}
.spmm-filter-attr-link.active .spmm-filter-attr-count {
    background: rgba(245,158,11,.12);
    color: var(--spmm-primary-dk, #D97706);
}

/* ── Button/chip style ── */
.spmm-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 2px 0 4px;
}
.spmm-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border: 1.5px solid #E2E8F0;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    text-decoration: none !important;
    background: #fff;
    transition: border-color .15s, background .15s, color .15s;
    cursor: pointer;
}
.spmm-filter-chip:hover {
    border-color: var(--spmm-primary, #F59E0B);
    color: #0F172A;
}
.spmm-filter-chip.active {
    border-color: var(--spmm-primary, #F59E0B);
    background: #FFFBEB;
    color: #0F172A;
    font-weight: 800;
}
.spmm-filter-chip-count {
    font-size: 10px;
    font-weight: 700;
    color: #9CA3AF;
    background: #F3F4F6;
    padding: 0 5px;
    border-radius: 100px;
}
.spmm-filter-chip.active .spmm-filter-chip-count {
    background: rgba(245,158,11,.15);
    color: var(--spmm-primary-dk, #D97706);
}

/* ── Color swatches ── */
.spmm-filter-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0 6px;
}
.spmm-filter-swatch {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2.5px solid transparent;
    text-decoration: none !important;
    flex-shrink: 0;
    transition: transform .18s cubic-bezier(.34,1.56,.64,1), border-color .15s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.spmm-filter-swatch:hover {
    transform: scale(1.14);
    border-color: rgba(0,0,0,.2);
}
.spmm-filter-swatch.active {
    border-color: var(--spmm-primary, #F59E0B);
    box-shadow: 0 0 0 2px rgba(245,158,11,.25);
}
.spmm-swatch-color {
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    display: block;
    border: 1px solid rgba(0,0,0,.08);
}
.spmm-swatch-check {
    position: absolute;
    z-index: 1;
    font-size: 10px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.5);
}

/* ── "Effacer [attr]" link ── */
.spmm-filter-attr-clear {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--spmm-primary-dk, #D97706) !important;
    text-decoration: none !important;
    padding: 3px 0;
    opacity: .85;
}
.spmm-filter-attr-clear:hover { opacity: 1; text-decoration: underline !important; }
