/**
 * 101 Category Experience — Frontend Styles
 *
 * Brand tokens (inherited from Elementor global kit):
 *   --ce101-primary:   #06B18F  (header teal)
 *   --ce101-secondary: #FFFFFF
 *   --ce101-text:      #212322
 *   --ce101-accent:    #F47831  (coral/CTA)
 *
 * Pill inactive: teal outline + teal text, no fill
 * Pill active:   teal fill + white text
 */

:root {
    --ce101-primary: #06B18F;
    --ce101-primary-hover: #05a07f;
    --ce101-primary-light: rgba(6, 177, 143, 0.08);
    --ce101-secondary: #FFFFFF;
    --ce101-text: #212322;
    --ce101-text-muted: #6b7280;
    --ce101-accent: #F47831;
    --ce101-border: #e3e5e8;
    --ce101-border-light: #f1f3f5;
    --ce101-radius-pill: 999px;
    --ce101-radius-md: 8px;
    --ce101-radius-sm: 4px;
    --ce101-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --ce101-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --ce101-transition: all 0.2s ease;
}

/* ==========================================================================
   SUBCATEGORY PILLS
   ========================================================================== */
.ce101-subcategory-pills {
    margin: 24px 0 32px;
    position: relative;
}

.ce101-pills-scroll {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    padding: 4px 0;
}

@media (max-width: 768px) {
    .ce101-pills-scroll {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 4px 16px 4px 16px;
        margin: 0 -16px;
        mask-image: linear-gradient(to right, transparent 0, black 16px, black calc(100% - 30px), transparent 100%);
    }
    .ce101-pills-scroll::-webkit-scrollbar { display: none; }
}

.ce101-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border: 1.5px solid var(--ce101-primary);
    border-radius: var(--ce101-radius-pill);
    background: transparent;
    color: var(--ce101-primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    flex: 0 0 auto;
    transition: var(--ce101-transition);
    cursor: pointer;
}

.ce101-pill:hover {
    background: var(--ce101-primary-light);
    text-decoration: none;
}

.ce101-pill-active {
    background: var(--ce101-primary);
    color: var(--ce101-secondary);
    border-color: var(--ce101-primary);
}

.ce101-pill-active:hover {
    background: var(--ce101-primary-hover);
    color: var(--ce101-secondary);
}

.ce101-pill-count {
    display: inline-block;
    padding: 1px 8px;
    border-radius: var(--ce101-radius-pill);
    background: rgba(6, 177, 143, 0.14);
    color: var(--ce101-primary);
    font-size: 12px;
    font-weight: 600;
}

.ce101-pill-active .ce101-pill-count {
    background: rgba(255, 255, 255, 0.25);
    color: var(--ce101-secondary);
}

.ce101-pill-clear {
    border-color: var(--ce101-text-muted);
    color: var(--ce101-text-muted);
    background: transparent;
}

.ce101-pill-clear:hover {
    border-color: var(--ce101-text);
    color: var(--ce101-text);
    background: transparent;
}

/* ==========================================================================
   SMART FILTERS SIDEBAR
   ========================================================================== */
.ce101-smart-filters {
    font-size: 14px;
    color: var(--ce101-text);
    padding: 0 8px 0 0;
}

.ce101-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ce101-border);
    margin-bottom: 18px;
}

.ce101-filters-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ce101-text);
    margin: 0;
}

.ce101-filters-clear-all {
    color: var(--ce101-text-muted);
    text-decoration: underline;
    font-size: 13px;
}
.ce101-filters-clear-all:hover { color: var(--ce101-text); }

/* Refine-by active filter chips */
.ce101-refine-by {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ce101-border-light);
}
.ce101-refine-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ce101-text);
    margin: 0 0 8px;
    text-transform: none;
}
.ce101-refine-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ce101-refine-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--ce101-text);
    color: var(--ce101-secondary);
    border-radius: var(--ce101-radius-pill);
    font-size: 12px;
    text-decoration: none;
}
.ce101-refine-chip:hover { background: #000; color: var(--ce101-secondary); }
.ce101-chip-close {
    font-size: 16px;
    line-height: 1;
    opacity: 0.7;
}

/* Filter group */
.ce101-filter-group {
    padding: 14px 0;
    border-bottom: 1px solid var(--ce101-border-light);
}
.ce101-filter-group:last-child { border-bottom: 0; }

/* ==========================================================================
   POLISH 3 (v4.4.0 final): Collapse/expand icon pinned to the FAR RIGHT,
   aligned on the same baseline as the '(N) Label' count in the filter title.

   Strategy:
   1. Header is a flex row spanning the full sidebar width.
   2. Title stretches (flex: 1 1 auto) so it fills all available space.
   3. Toggle is flex: 0 0 auto with margin-left: auto — forces it to the
      right edge regardless of title length.
   4. align-items: baseline aligns the +/- icon with the trailing text,
      so the dash sits on the SAME baseline as '(1) Material'.
   5. !important used aggressively to override Motta/Elementor widget CSS.
   ========================================================================== */
.ce101-smart-filters .ce101-filter-group .ce101-filter-group-header,
.ce101-widget .ce101-filter-group .ce101-filter-group-header,
aside .ce101-filter-group .ce101-filter-group-header,
.ce101-filter-group > .ce101-filter-group-header {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    cursor: pointer;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    gap: 12px !important;
    padding: 0 !important;
    margin: 0 !important;
}
.ce101-filter-group-header .ce101-filter-group-title,
.ce101-filter-group-header h4.ce101-filter-group-title,
.ce101-filter-group > .ce101-filter-group-header > .ce101-filter-group-title {
    flex: 1 1 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    text-align: left !important;
    display: block !important;
    line-height: 1.4 !important;
}
/* The toggle button — pinned flush to the right edge.
   flex-shrink: 0 prevents the title from squashing it.
   margin-left: auto forces it right even if justify-content is overridden.
   align-self: baseline keeps its baseline the SAME as the title text,
   so the minus/plus sign reads on the same line as '(1) Material'. */
.ce101-filter-group-header .ce101-filter-toggle,
.ce101-filter-group > .ce101-filter-group-header > .ce101-filter-toggle,
.ce101-smart-filters .ce101-filter-toggle,
.ce101-widget .ce101-filter-toggle {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    align-self: baseline !important;
    position: relative !important;
    right: 0 !important;
}

.ce101-filter-group-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ce101-text);
    margin: 0;
}

/* POLISH 3: Collapse toggle fixed — transparent background always,
   icon rotates between - and + states. Contrast stays clean at all times. */
.ce101-filter-toggle {
    background: transparent !important;
    border: 0 !important;
    color: var(--ce101-text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 0 !important;
    line-height: 1 !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.2s ease;
    box-shadow: none !important;
    vertical-align: baseline !important;
}
.ce101-filter-toggle:hover {
    color: var(--ce101-primary);
    background: transparent !important;
}
.ce101-filter-toggle:focus {
    outline: none;
    color: var(--ce101-primary);
    background: transparent !important;
}
.ce101-filter-toggle .ce101-toggle-icon {
    position: relative;
    display: inline-block;
    width: 12px;
    height: 12px;
}
.ce101-filter-toggle .ce101-toggle-icon::before,
.ce101-filter-toggle .ce101-toggle-icon::after {
    content: '';
    position: absolute;
    background-color: currentColor;
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.ce101-filter-toggle .ce101-toggle-icon::before {
    /* Horizontal bar (always visible — the minus) */
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-50%);
}
.ce101-filter-toggle .ce101-toggle-icon::after {
    /* Vertical bar (hidden when expanded, visible when collapsed = forms plus) */
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%) scaleY(0);
    opacity: 0;
}
.ce101-filter-group[aria-expanded="false"] .ce101-toggle-icon::after {
    transform: translateX(-50%) scaleY(1);
    opacity: 1;
}

.ce101-filter-group-body {
    padding-top: 10px;
}

.ce101-filter-group[aria-expanded="false"] .ce101-filter-group-body {
    display: none;
}

/* Checkbox list */
.ce101-filter-checkbox-list,
.ce101-price-bucket-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ce101-filter-value,
.ce101-price-bucket {
    margin: 0;
    padding: 0;
}

.ce101-filter-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    color: var(--ce101-text);
    text-decoration: none;
    font-size: 14px;
}

.ce101-filter-link:hover .ce101-value-label {
    color: var(--ce101-primary);
}

.ce101-checkbox-visual {
    display: inline-flex;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--ce101-border);
    border-radius: var(--ce101-radius-sm);
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--ce101-transition);
}

.ce101-value-selected .ce101-checkbox-visual,
.ce101-filter-value:hover .ce101-checkbox-visual {
    border-color: var(--ce101-primary);
}

/* v4.4.1: filled checkbox + white check, label gets primary color */
.ce101-value-selected .ce101-checkbox-visual {
    background: var(--ce101-primary);
    border: 1.5px solid var(--ce101-primary);
}

.ce101-check-mark {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.ce101-value-label {
    flex: 1;
    color: var(--ce101-text);
    transition: var(--ce101-transition);
}

.ce101-value-selected .ce101-value-label {
    color: var(--ce101-primary);
    font-weight: 500;
}

.ce101-value-count {
    color: var(--ce101-text-muted);
    font-size: 12px;
}

/* Swatches (color, shade) */
.ce101-filter-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ce101-swatch {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: var(--ce101-radius-sm);
    text-decoration: none;
    color: var(--ce101-text);
    font-size: 11px;
    min-width: 46px;
    transition: var(--ce101-transition);
}

.ce101-swatch:hover { text-decoration: none; color: var(--ce101-text); }

.ce101-swatch-dot {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--ce101-border);
    background: #eee;
    box-shadow: var(--ce101-shadow-sm);
    transition: var(--ce101-transition);
}

.ce101-swatch:hover .ce101-swatch-dot { transform: scale(1.05); }

/* v4.4.1: outlined swatch ring — dot keeps its color, ring shows selection */
.ce101-swatch-selected .ce101-swatch-dot {
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px var(--ce101-primary);
}

.ce101-swatch-label {
    font-size: 11px;
    color: var(--ce101-text);
    text-align: center;
    line-height: 1.2;
}

.ce101-swatch-selected .ce101-swatch-label {
    color: var(--ce101-primary);
    font-weight: 600;
}

.ce101-swatch-count {
    color: var(--ce101-text-muted);
    font-size: 10px;
}

/* Size pills */
.ce101-filter-size-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ce101-size-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 44px;
    padding: 8px 14px;
    border: 1.5px solid var(--ce101-primary);
    border-radius: var(--ce101-radius-sm);
    background: transparent;
    color: var(--ce101-primary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    justify-content: center;
    transition: var(--ce101-transition);
}

.ce101-size-pill:hover {
    background: var(--ce101-primary-light);
    text-decoration: none;
    color: var(--ce101-primary);
}

/* v4.4.1: filled size pill with white text — readable + clearly selected */
.ce101-size-pill-selected {
    background: var(--ce101-primary) !important;
    color: #ffffff !important;
    border: 2px solid var(--ce101-primary) !important;
    font-weight: 600 !important;
}
.ce101-size-pill-selected .ce101-size-pill-label,
.ce101-size-pill-selected .ce101-size-pill-count {
    color: #ffffff !important;
}
.ce101-size-pill-selected:hover {
    background: var(--ce101-primary-hover, #058f73) !important;
    color: #ffffff !important;
}

.ce101-size-pill-count {
    font-size: 11px;
    opacity: 0.7;
}

/* ==========================================================================
   POLISH 1: Price filter — dual-handle range slider
   Hardened against aggressive theme input resets (Motta, etc.) with
   !important on the structural layout rules.
   ========================================================================== */
.ce101-price-slider-form {
    padding: 4px 2px 0;
    display: block !important;
}

.ce101-price-slider {
    position: relative !important;
    height: 18px !important;
    margin: 14px 8px 16px !important;
    display: block !important;
    width: auto !important;
    box-sizing: content-box !important;
}

/* ==========================================================================
   POLISH 1 (v4.4.0 FINAL, take 2): Price slider — thumbs truly centered.

   New strategy: instead of fighting browsers' native thumb positioning
   (which varies between WebKit/Gecko/Blink and gets clipped by
   runnable-track padding), we:

   1. Shrink the container to EXACTLY the thumb height (18px).
   2. Shrink the range input to EXACTLY the thumb height (18px).
   3. Shrink the WebKit runnable-track to 18px — browser centers the
      18px thumb on the 18px track automatically (both have the same
      geometric center y = 9px).
   4. Draw the custom visual track (4px teal line) at top: 50% of the
      18px container — its center is at y = 9px.
   5. Result: thumb center y = 9px, track center y = 9px. Perfectly
      aligned on all browsers, no margin-top hacks needed.

   Margin on .ce101-price-slider compensates for the reduced container
   height so the overall slider block still feels balanced in the sidebar.
   ========================================================================== */

.ce101-price-track,
.ce101-price-track-fill {
    position: absolute !important;
    top: 50% !important;
    height: 4px !important;
    border-radius: 2px !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.ce101-price-track {
    left: 0 !important;
    right: 0 !important;
    background: var(--ce101-border) !important;
    z-index: 1 !important;
}
.ce101-price-track-fill {
    background: var(--ce101-primary) !important;
    left: 0%;
    right: 0%;
    z-index: 2 !important;
}

/* Range inputs — shrunk to exactly thumb height so browser auto-centers */
.ce101-price-slider-input,
.ce101-price-slider input[type="range"] {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    pointer-events: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    display: block !important;
    box-sizing: border-box !important;
    z-index: 3 !important;
    vertical-align: middle !important;
}

/* WebKit runnable-track: same height as thumb → native centering aligns */
.ce101-price-slider-input::-webkit-slider-runnable-track {
    background: transparent !important;
    border: 0 !important;
    height: 18px !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ==========================================================================
   POLISH 1 (v4.4.0 final): Price slider thumb perfectly centered on track.

   Geometry:
   - .ce101-price-slider container: 28px tall
   - Custom track (.ce101-price-track): positioned at top: 50% with
     transform: translateY(-50%), so its vertical center is at y = 14px
   - Thumb: 18px tall, 18px wide

   The range input itself is 28px tall and the WebKit slider renders its
   thumb *relative to the slider-runnable-track*. By forcing the WebKit
   runnable-track to ALSO be 28px with no padding, the thumb's native
   vertical center is y = 14px — exactly on our custom track midline.

   The key fix: we must NOT apply margin-top on the thumb. The previous
   margin-top: 5px was pushing the thumb 5px BELOW center. With a 28px
   runnable-track and 18px thumb, WebKit centers automatically.

   For Firefox, ::-moz-range-thumb is already centered by default because
   ::-moz-range-track reports a real height; we just match geometry.
   ========================================================================== */
/* WebKit thumb: 18px ÷ 18px runnable-track = native center alignment.
   No margin-top needed. Thumb center y = 9px, track center y = 9px. */
.ce101-price-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    pointer-events: auto !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 2px solid var(--ce101-primary) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15) !important;
    cursor: grab;
    transition: transform 0.12s ease;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}
.ce101-price-slider-input::-webkit-slider-thumb:active {
    transform: scale(1.1);
    cursor: grabbing;
}

/* Firefox thumb: give Firefox a 4px track so it centers the 18px thumb
   on the 4px line automatically (standard Firefox behavior). */
.ce101-price-slider-input::-moz-range-thumb {
    pointer-events: auto !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 2px solid var(--ce101-primary) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15) !important;
    cursor: grab;
    box-sizing: border-box !important;
}
.ce101-price-slider-input::-moz-range-track {
    background: transparent !important;
    border: 0 !important;
    height: 4px !important;
    box-sizing: border-box !important;
}

/* Legacy Edge / IE fallback */
.ce101-price-slider-input::-ms-thumb {
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 2px solid var(--ce101-primary) !important;
    margin-top: 0 !important;
    box-sizing: border-box !important;
}
.ce101-price-slider-input::-ms-track {
    background: transparent !important;
    border: 0 !important;
    color: transparent !important;
    height: 4px !important;
}
.ce101-price-slider-input::-ms-fill-lower,
.ce101-price-slider-input::-ms-fill-upper {
    background: transparent !important;
}

/* Numeric input fallback — always rendered, works if slider fails */
.ce101-price-numeric-fallback {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 10px;
}
.ce101-price-numeric-fallback input[type="number"] {
    width: 78px !important;
    padding: 6px 8px !important;
    border: 1px solid var(--ce101-border) !important;
    border-radius: var(--ce101-radius-sm) !important;
    font-size: 12px !important;
    background: #fff !important;
    height: auto !important;
    box-sizing: border-box !important;
}
.ce101-price-numeric-fallback input[type="number"]:focus {
    outline: none !important;
    border-color: var(--ce101-primary) !important;
    box-shadow: 0 0 0 3px var(--ce101-primary-light) !important;
}

.ce101-price-readout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 0 10px;
    font-size: 13px;
    color: var(--ce101-text);
    font-weight: 500;
}
.ce101-price-readout-sep {
    color: var(--ce101-text-muted);
}

/* POLISH 2: Apply button sized correctly — compact, inline, no longer full-width */
.ce101-price-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}

.ce101-price-apply-btn {
    background: var(--ce101-primary);
    color: var(--ce101-secondary);
    border: 0;
    padding: 7px 16px;
    border-radius: var(--ce101-radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--ce101-transition);
    /* Explicit width cap so it never stretches to fill the sidebar */
    width: auto;
    min-width: 72px;
    max-width: 100px;
    line-height: 1.3;
}

.ce101-price-apply-btn:hover {
    background: var(--ce101-primary-hover);
}

.ce101-price-reset {
    color: var(--ce101-text-muted);
    font-size: 12px;
    text-decoration: underline;
}
.ce101-price-reset:hover {
    color: var(--ce101-text);
}

/* ==========================================================================
   CAMPAIGN PAGE
   ========================================================================== */
.ce101-campaign-page {
    background: #fff;
    min-height: 400px;
}

.ce101-campaign-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px 64px;
}

.ce101-breadcrumb {
    font-size: 13px;
    color: var(--ce101-text-muted);
    margin-bottom: 16px;
}
.ce101-breadcrumb a {
    color: var(--ce101-text-muted);
    text-decoration: none;
}
.ce101-breadcrumb a:hover { color: var(--ce101-primary); }
.ce101-breadcrumb-sep { margin: 0 6px; color: var(--ce101-border); }
.ce101-breadcrumb-current { color: var(--ce101-text); font-weight: 500; }

.ce101-campaign-banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: var(--ce101-shadow-md);
}

.ce101-campaign-banner img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 420px;
    object-fit: cover;
}

.ce101-campaign-banner-overlay {
    position: absolute;
    left: 40px;
    bottom: 40px;
    color: var(--ce101-secondary);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    max-width: 50%;
}

.ce101-campaign-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--ce101-secondary);
    margin: 0 0 8px;
    line-height: 1.1;
}

.ce101-campaign-subtitle {
    font-size: 18px;
    color: var(--ce101-secondary);
    margin: 0;
    opacity: 0.95;
    max-width: 580px;
}

@media (max-width: 768px) {
    .ce101-campaign-banner-overlay { left: 20px; bottom: 20px; max-width: 75%; }
    .ce101-campaign-title { font-size: 28px; }
    .ce101-campaign-subtitle { font-size: 15px; }
}

.ce101-campaign-header {
    padding: 24px 0 16px;
    border-bottom: 1px solid var(--ce101-border);
    margin-bottom: 24px;
}
.ce101-campaign-header .ce101-campaign-title {
    color: var(--ce101-text);
    text-shadow: none;
}
.ce101-campaign-header .ce101-campaign-subtitle {
    color: var(--ce101-text-muted);
}

.ce101-campaign-intro {
    max-width: 780px;
    margin: 0 auto 32px;
    padding: 0 12px;
    color: var(--ce101-text-muted);
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

.ce101-campaign-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 36px;
}

@media (max-width: 1024px) {
    .ce101-campaign-layout { grid-template-columns: 220px 1fr; gap: 24px; }
}
@media (max-width: 768px) {
    .ce101-campaign-layout { grid-template-columns: 1fr; gap: 16px; }
    .ce101-campaign-sidebar { order: 2; }
    .ce101-campaign-products { order: 1; }
}

.ce101-campaign-sidebar {
    padding-right: 12px;
}

.ce101-product-count {
    font-size: 14px;
    color: var(--ce101-text-muted);
    margin-bottom: 16px;
}

.ce101-no-results {
    padding: 40px 20px;
    background: var(--ce101-border-light);
    border-radius: var(--ce101-radius-md);
    text-align: center;
    color: var(--ce101-text-muted);
}

/* Pagination */
.ce101-pagination {
    margin-top: 36px;
    display: flex;
    justify-content: center;
}
.ce101-pagination ul {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.ce101-pagination a,
.ce101-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--ce101-border);
    border-radius: var(--ce101-radius-sm);
    color: var(--ce101-text);
    text-decoration: none;
    font-size: 14px;
    transition: var(--ce101-transition);
}
.ce101-pagination a:hover {
    border-color: var(--ce101-primary);
    color: var(--ce101-primary);
}
.ce101-pagination .current {
    background: var(--ce101-primary);
    color: var(--ce101-secondary);
    border-color: var(--ce101-primary);
}

/* ==========================================================================
   HERO CAROUSEL
   ========================================================================== */
.ce101-hero-carousel {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
}

.ce101-hero-slides {
    position: relative;
}

.ce101-hero-slide {
    display: none;
    align-items: center;
    gap: 32px;
    min-height: 380px;
    background: #f3e8d9;
    padding: 40px;
}

.ce101-hero-slide.is-active {
    display: flex;
}

.ce101-hero-content {
    flex: 0 0 42%;
    max-width: 42%;
    z-index: 2;
}

.ce101-hero-eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ce101-accent);
    margin-bottom: 12px;
}

.ce101-hero-heading {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--ce101-text);
    margin: 0 0 12px;
}

.ce101-hero-description {
    font-size: 15px;
    color: var(--ce101-text-muted);
    line-height: 1.5;
    margin: 0 0 20px;
    max-width: 420px;
}

.ce101-hero-cta {
    display: inline-block;
    padding: 12px 24px;
    background: var(--ce101-primary);
    color: var(--ce101-secondary);
    border-radius: var(--ce101-radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--ce101-transition);
}

.ce101-hero-cta:hover {
    filter: brightness(0.92);
    color: var(--ce101-secondary);
    text-decoration: none;
}

.ce101-hero-media {
    flex: 1;
    max-width: 58%;
    display: flex;
    justify-content: flex-end;
}

.ce101-hero-media img {
    max-width: 100%;
    height: auto;
    display: block;
}

.ce101-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ce101-secondary);
    border: 1px solid var(--ce101-border);
    color: var(--ce101-text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    box-shadow: var(--ce101-shadow-sm);
    transition: var(--ce101-transition);
}
.ce101-hero-arrow:hover { background: var(--ce101-primary); color: var(--ce101-secondary); border-color: var(--ce101-primary); }
.ce101-hero-arrow-prev { left: 16px; }
.ce101-hero-arrow-next { right: 16px; }

.ce101-hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}
.ce101-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    background: rgba(33, 35, 34, 0.3);
    cursor: pointer;
    padding: 0;
    transition: var(--ce101-transition);
}
.ce101-hero-dot.is-active {
    background: var(--ce101-primary);
    width: 20px;
    border-radius: 999px;
}

@media (max-width: 768px) {
    .ce101-hero-slide { flex-direction: column; padding: 24px; min-height: auto; gap: 16px; }
    .ce101-hero-content,
    .ce101-hero-media { flex: 1; max-width: 100%; }
    .ce101-hero-heading { font-size: 24px; }
    .ce101-hero-arrow { display: none; }
}

/* ==========================================================================
   PRODUCT GRID (subtle fallbacks for theme compatibility)
   ========================================================================== */
.ce101-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}
@media (max-width: 1024px) { .ce101-product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .ce101-product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ==========================================================================
   v4.4.1.4 — CONSOLIDATED FILTER UI OVERRIDES
   Replaces the layered v4.4.1 / v4.4.1.1 / v4.4.1.2 / v4.4.1.3 patches with
   one normal-specificity block. Goals:
     1. No :focus background persistence on filter options.
     2. No hover-fill on already-selected items (size pills, swatches,
        checkbox rows, subcategory pills) — picked = picked, period.
     3. Checkbox: filled square only, no check mark, no row fill, no label
        recolor.
     4. Color swatch: only the dot ring shows selection. Tile/label neutral.
     5. Mobile action bar: stays inside the drawer (no fixed-to-viewport).
     6. Performance: scoped transitions to specific properties (no `all`),
        no transforms on hover, hover effects gated behind @media (hover:hover)
        so phones / touch devices skip them entirely.
   ========================================================================== */

/* ---- 0. Layout: filters column + scrollable body ---- */
.ce101-smart-filters {
    display: flex;
    flex-direction: column;
    position: relative;
    max-height: calc(100vh - 100px);
}
.ce101-smart-filters .ce101-filters-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-right: 4px;
}

/* ---- 1. Action bar: compact, centered, sticky inside the drawer ---- */
.ce101-smart-filters .ce101-filters-actionbar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin: 4px -7px -7px -7px;
    background: #ffffff;
    border-top: 1px solid #ececec;
    box-sizing: border-box;
    line-height: 1;
}
.ce101-smart-filters .ce101-filters-actionbar button {
    flex: 0 0 auto;
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid transparent;
    border-radius: 6px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    padding: 0 14px;
    margin: 0;
    height: 30px;
    min-height: 30px;
    max-height: 30px;
    box-shadow: none;
    cursor: pointer;
    box-sizing: border-box;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.ce101-smart-filters .ce101-filters-actionbar .ce101-filters-clear-btn {
    background: transparent;
    color: #5d6166;
    border: 1px solid #d6d6d6;
}
/* Enabled / clickable state — explicit !important + higher-specificity
   selector so Motta's anchor/.button rules can't paint this grey. */
.ce101-smart-filters .ce101-filters-actionbar .ce101-filters-apply-btn,
.ce101-smart-filters .ce101-filters-actionbar button.ce101-filters-apply-btn,
html body .ce101-smart-filters .ce101-filters-actionbar .ce101-filters-apply-btn {
    background: var(--ce101-primary, #06B18F) !important;
    color: #ffffff !important;
    border: 1px solid var(--ce101-primary, #06B18F) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}
/* Disabled / unpressable state — must outrank the enabled rule above.
   Selectors are listed last AND with the same !important so source order
   wins when both rules apply. */
.ce101-smart-filters .ce101-filters-actionbar .ce101-filters-apply-btn:disabled,
.ce101-smart-filters .ce101-filters-actionbar .ce101-filters-apply-btn[aria-disabled="true"],
.ce101-smart-filters .ce101-filters-actionbar .ce101-filters-apply-btn.is-zero-results,
.ce101-smart-filters .ce101-filters-actionbar button.ce101-filters-apply-btn:disabled,
.ce101-smart-filters .ce101-filters-actionbar button.ce101-filters-apply-btn[aria-disabled="true"],
html body .ce101-smart-filters .ce101-filters-actionbar .ce101-filters-apply-btn:disabled,
html body .ce101-smart-filters .ce101-filters-actionbar .ce101-filters-apply-btn[aria-disabled="true"],
html body .ce101-smart-filters .ce101-filters-actionbar .ce101-filters-apply-btn.is-zero-results {
    background: #d0d2d4 !important;
    border-color: #d0d2d4 !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
    pointer-events: none !important;
}
@media (hover: hover) and (pointer: fine) {
    .ce101-smart-filters .ce101-filters-actionbar .ce101-filters-apply-btn:hover:not(:disabled):not([aria-disabled="true"]):not(.is-zero-results) {
        background: var(--ce101-primary-hover, #05a07f) !important;
        border-color: var(--ce101-primary-hover, #05a07f) !important;
    }
}
.ce101-smart-filters .ce101-filters-actionbar .ce101-apply-label { font-size: 12px; line-height: 1; color: inherit; }
.ce101-smart-filters .ce101-filters-actionbar .ce101-apply-count { font-size: 11px; line-height: 1; font-weight: 500; opacity: 0.9; color: inherit; }

/* ---- 2. Hover affordance — desktop / pointer devices only ---- */
@media (hover: hover) and (pointer: fine) {
    .ce101-smart-filters .ce101-filters-actionbar .ce101-filters-clear-btn:hover {
        color: #212322;
        border-color: #212322;
        background: #fafafa;
    }
    .ce101-smart-filters .ce101-filters-actionbar .ce101-filters-apply-btn:hover:not(:disabled) {
        background: var(--ce101-primary-hover, #05a07f);
        border-color: var(--ce101-primary-hover, #05a07f);
    }
    .ce101-smart-filters .ce101-size-pill:not(.ce101-size-pill-selected):hover {
        border-color: var(--ce101-primary, #06B18F);
        color: var(--ce101-primary, #06B18F);
        background: #ffffff;
    }
    .ce101-smart-filters .ce101-filter-value:not(.ce101-value-selected):hover .ce101-checkbox-visual {
        border-color: var(--ce101-primary, #06B18F);
    }
}

/* ---- 3. Checkbox: filled square only, no check mark, neutral row ---- */
.ce101-smart-filters .ce101-checkbox-visual {
    width: 16px;
    height: 16px;
    border: 1.5px solid #c8ccd1;
    border-radius: 3px;
    background: #ffffff;
    box-shadow: none;
    transition: background-color .15s ease, border-color .15s ease;
}
.ce101-smart-filters .ce101-value-selected .ce101-checkbox-visual {
    background: var(--ce101-primary, #06B18F);
    border-color: var(--ce101-primary, #06B18F);
}
/* Hide the check-mark glyph entirely — the filled box is the cue */
.ce101-smart-filters .ce101-check-mark {
    display: none !important;
}
/* Neutralize ALL row-level state changes on selected checkbox rows.
   This kills the "fill persists after click until you click elsewhere"
   bug, which was a sticky :focus background on the <a>/button. */
.ce101-smart-filters .ce101-filter-value,
.ce101-smart-filters .ce101-filter-link,
.ce101-smart-filters .ce101-value-selected,
.ce101-smart-filters .ce101-value-selected .ce101-filter-link,
.ce101-smart-filters .ce101-filter-value:focus,
.ce101-smart-filters .ce101-filter-value:focus-within,
.ce101-smart-filters .ce101-filter-link:focus,
.ce101-smart-filters .ce101-filter-link:focus-visible,
.ce101-smart-filters .ce101-filter-link:active,
.ce101-smart-filters .ce101-value-selected:focus,
.ce101-smart-filters .ce101-value-selected:focus-within,
.ce101-smart-filters .ce101-value-selected .ce101-filter-link:focus,
.ce101-smart-filters .ce101-value-selected .ce101-filter-link:focus-visible {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}
.ce101-smart-filters .ce101-value-selected .ce101-value-label,
.ce101-smart-filters .ce101-filter-link:hover .ce101-value-label {
    color: var(--ce101-text, #212322);
    font-weight: 400;
}

/* ---- 4. Size / option pills: solid teal + white text on selection ---- */
.ce101-smart-filters .ce101-size-pill {
    border: 1px solid #d6d6d6;
    color: var(--ce101-text, #212322);
    background: #ffffff;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 6px;
    box-shadow: none;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
/* Selected pill MUST stay teal+white. Motta theme has anchor / .button rules
   that win without !important here — they were the cause of the "pill
   disappears after click" regression in v4.4.1.4. */
.ce101-smart-filters .ce101-size-pill-selected,
.ce101-smart-filters a.ce101-size-pill.ce101-size-pill-selected,
.ce101-smart-filters .ce101-size-pill.ce101-size-pill-selected {
    background: var(--ce101-primary, #06B18F) !important;
    border-color: var(--ce101-primary, #06B18F) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}
.ce101-smart-filters .ce101-size-pill-selected .ce101-size-pill-label,
.ce101-smart-filters .ce101-size-pill-selected .ce101-size-pill-count,
.ce101-smart-filters a.ce101-size-pill-selected .ce101-size-pill-label,
.ce101-smart-filters a.ce101-size-pill-selected .ce101-size-pill-count {
    color: #ffffff !important;
}
/* Selected pill is fully stable: hover, focus, focus-within, active all
   resolve to the SAME teal-fill state. This kills the "white text on
   white background" disappearance and any focus background persistence. */
.ce101-smart-filters .ce101-size-pill-selected:hover,
.ce101-smart-filters .ce101-size-pill-selected:focus,
.ce101-smart-filters .ce101-size-pill-selected:focus-visible,
.ce101-smart-filters .ce101-size-pill-selected:focus-within,
.ce101-smart-filters .ce101-size-pill-selected:active {
    background: var(--ce101-primary, #06B18F) !important;
    border-color: var(--ce101-primary, #06B18F) !important;
    color: #ffffff !important;
    outline: none !important;
    box-shadow: none !important;
    transform: none !important;
}
.ce101-smart-filters .ce101-size-pill-selected:hover .ce101-size-pill-label,
.ce101-smart-filters .ce101-size-pill-selected:hover .ce101-size-pill-count,
.ce101-smart-filters .ce101-size-pill-selected:focus .ce101-size-pill-label,
.ce101-smart-filters .ce101-size-pill-selected:focus .ce101-size-pill-count {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* ---- 5. Color swatches: dot-ring only is the selection cue ---- */
.ce101-smart-filters .ce101-swatch {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 4px 2px;
}
.ce101-smart-filters .ce101-swatch-dot {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: none;
    transition: box-shadow .15s ease;
}
.ce101-smart-filters .ce101-swatch-selected .ce101-swatch-dot {
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px var(--ce101-primary, #06B18F);
}
/* Selected swatch tile/label completely neutral across all states */
.ce101-smart-filters .ce101-swatch,
.ce101-smart-filters .ce101-swatch:focus,
.ce101-smart-filters .ce101-swatch:focus-visible,
.ce101-smart-filters .ce101-swatch:focus-within,
.ce101-smart-filters .ce101-swatch:active,
.ce101-smart-filters .ce101-swatch-selected,
.ce101-smart-filters .ce101-swatch-selected:hover,
.ce101-smart-filters .ce101-swatch-selected:focus,
.ce101-smart-filters .ce101-swatch-selected:focus-visible,
.ce101-smart-filters .ce101-swatch-selected:focus-within,
.ce101-smart-filters .ce101-swatch-selected:active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
.ce101-smart-filters .ce101-swatch-selected .ce101-swatch-label,
.ce101-smart-filters .ce101-swatch-selected .ce101-swatch-count {
    color: var(--ce101-text, #212322);
    font-weight: 400;
}

/* ---- 6. Subcategory pills (top of page): selected pill is stable ---- */
.ce101-pill-active,
.ce101-pill-active:hover,
.ce101-pill-active:focus,
.ce101-pill-active:focus-visible,
.ce101-pill-active:focus-within,
.ce101-pill-active:active {
    background: var(--ce101-primary, #06B18F) !important;
    border-color: var(--ce101-primary, #06B18F) !important;
    color: #ffffff !important;
    outline: none !important;
    box-shadow: none !important;
    transform: none !important;
}

/* ---- 7. Mobile: action bar stays inside the drawer ---- */
@media (max-width: 768px) {
    .ce101-smart-filters {
        max-height: none;
    }
    .ce101-smart-filters .ce101-filters-actionbar {
        position: sticky;
        bottom: 0;
        left: auto;
        right: auto;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0)) 14px;
        gap: 12px;
        justify-content: center;
        box-sizing: border-box;
        background: #ffffff;
        border-top: 1px solid #ececec;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    }
    .ce101-smart-filters .ce101-filters-actionbar button {
        font-size: 13px;
        padding: 0 16px;
        height: 34px;
        min-height: 34px;
        max-height: 34px;
    }
    .ce101-smart-filters .ce101-filters-body {
        padding-bottom: 12px;
    }
}

/* ---- 8. Grid-header chip row (active applied filters above the grid) ---- */
.ce101-grid-chip-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0 0 16px;
}
