/*
 * BluSky Colour Wheel *** Frontend Styles
 * Compatible with: WordPress 6.4+, WooCommerce 8+, Flatsome
 *
 * Design direction: Clean, editorial. Uses CSS custom properties so Flatsome
 * child-theme overrides are simple one-liners.
 */

/* ****** Custom properties ****************************************************************************************************************************************************************** */
:root {
    --bcw-font:          'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --bcw-radius:        14px;
    --bcw-radius-sm:     8px;
    --bcw-radius-card:   12px;
    --bcw-shadow:        0 4px 24px rgba(0,0,0,.08);
    --bcw-shadow-hover:  0 8px 32px rgba(0,0,0,.14);
    --bcw-transition:    all .22s cubic-bezier(.4,0,.2,1);
    --bcw-bg:            #ffffff;
    --bcw-surface:       #f7f7f8;
    --bcw-border:        #e8e8ec;
    --bcw-text:          #1a1a2e;
    --bcw-text-muted:    #6b7280;
    --bcw-accent:        #2f2e78;
    --bcw-accent-hover:  #232260;
    --bcw-ring:          rgba(47,46,120,.25);
    --bcw-card-bg:       #ffffff;
    --bcw-swatch-size:   72px;
    --bcw-grid-cols:     3;           /* overridden by JS from [columns] attr */
    --bcw-gutter:        20px;
}

/* ****** Wrapper ************************************************************************************************************************************************************************************************ */
.bcw-wrapper {
    font-family: var(--bcw-font);
    color: var(--bcw-text);
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px 60px;
}

/* ****** Top panel (wheel + swatch info) ********************************************************************************************************************* */
.bcw-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    padding: 40px 0 48px;
}

/* ****** Wheel container ************************************************************************************************************************************************************************ */
.bcw-wheel-container {
    position: relative;
    flex-shrink: 0;
    cursor: crosshair;
    /* No overflow hidden *** shadow can bleed */
}

.bcw-canvas {
    display: block;
    border-radius: 50%;
    box-shadow: 0 0 0 5px var(--bcw-surface), 0 0 0 6px var(--bcw-border), var(--bcw-shadow);
    transition: box-shadow .3s ease;
    /* Ensure the canvas scales responsively but keeps its square aspect */
    max-width: 100%;
    height: auto;
}

.bcw-canvas:focus-visible {
    box-shadow: 0 0 0 5px var(--bcw-surface), 0 0 0 7px var(--bcw-accent), var(--bcw-shadow-hover);
    outline: none;
}

/* ****** Colour info panel ****************************************************************************************************************************************************************** */
.bcw-colour-info {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* User instructions paragraph */
.bcw-instructions {
    font-size: 13px;
    line-height: 1.65;
    color: var(--bcw-text-muted);
    margin: 0;
    padding: 12px 14px;
    background: var(--bcw-surface);
    border-left: 3px solid var(--bcw-accent);
    border-radius: 0 var(--bcw-radius-sm) var(--bcw-radius-sm) 0;
}

.bcw-swatch-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bcw-swatch-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bcw-swatch {
    width: var(--bcw-swatch-size);
    height: var(--bcw-swatch-size);
    border-radius: var(--bcw-radius);
    background: var(--bcw-surface);
    border: 2px solid var(--bcw-border);
    transition: background-color .3s ease, border-color .3s ease, transform .2s ease;
    flex-shrink: 0;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.06), var(--bcw-shadow);
}

.bcw-swatch:not([style*="background"]) {
    background: repeating-conic-gradient(#e0e0e0 0% 25%, #f4f4f4 0% 50%) 0 0 / 16px 16px;
}

.bcw-swatch-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bcw-label-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--bcw-text-muted);
}

.bcw-value {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--bcw-text);
    font-variant-numeric: tabular-nums;
}

.bcw-value--small {
    font-size: 12px;
    font-weight: 500;
    color: var(--bcw-text-muted);
}

/* Arrow divider */
.bcw-divider {
    flex-shrink: 0;
    color: var(--bcw-text-muted);
    opacity: .5;
}

.bcw-divider svg {
    width: 22px;
    height: 22px;
}

/* ****** Search button ****************************************************************************************************************************************************************************** */
.bcw-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    font-family: var(--bcw-font);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .02em;
    color: #fff;
    background: var(--bcw-accent);
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--bcw-transition);
    box-shadow: 0 2px 8px rgba(37,99,235,.3);
    align-self: flex-start;
}

.bcw-btn:hover:not(:disabled) {
    background: var(--bcw-accent-hover);
    box-shadow: 0 4px 16px rgba(37,99,235,.4);
    transform: translateY(-1px);
}

.bcw-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--bcw-ring);
}

.bcw-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.bcw-btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Button row: search + clear side by side */
.bcw-btn-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bcw-btn--clear {
    background: transparent;
    color: var(--bcw-text-muted);
    border: 1.5px solid var(--bcw-border);
    box-shadow: none;
    padding: 12px 20px;
}

.bcw-btn--clear:hover:not(:disabled) {
    background: #f3f4f6;
    color: var(--bcw-text);
    border-color: #9ca3af;
    box-shadow: none;
    transform: none;
}

/* Colour family quick-search */
.bcw-family-search {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bcw-family-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--bcw-text-muted);
}

.bcw-family-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bcw-family-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    font-family: var(--bcw-font);
    font-size: 12px;
    font-weight: 600;
    color: #000;
    background: #f7f7f8;
    border: 1.5px solid #e0e0e0;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--bcw-transition);
    line-height: 1;
}

/* Coloured circle dot *** always shows the family colour */
.bcw-family-btn::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--fc, #888);
    border: 1px solid rgba(0,0,0,.12);
    flex-shrink: 0;
}

.bcw-family-btn:hover {
    background: #ebebec;
    border-color: #ccc;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
}

.bcw-family-btn:focus-visible {
    outline: 2px solid var(--bcw-accent);
    outline-offset: 2px;
}

/* Active: pill takes on the family colour, text flips to white (or dark for light colours) */
.bcw-family-btn.is-active {
    background: var(--fc, #888);
    color: var(--fc-text, #fff);
    border-color: rgba(0,0,0,.15);
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    transform: translateY(-1px);
}

/* Active dot becomes white so it's visible on the coloured background */
.bcw-family-btn.is-active::before {
    background: rgba(255,255,255,.5);
    border-color: rgba(255,255,255,.3);
}

/* ****** Results region *************************************************************************************************************************************************************************** */
.bcw-results {
    position: relative;
    min-height: 180px;
}

/* Placeholder state */
.bcw-results-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    text-align: center;
    color: var(--bcw-text-muted);
    font-size: 15px;
    border: 2px dashed var(--bcw-border);
    border-radius: var(--bcw-radius);
}

.bcw-placeholder-icon {
    width: 56px;
    height: 56px;
    opacity: .4;
}

/* Loading state */
.bcw-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    color: var(--bcw-text-muted);
    font-size: 15px;
    border: 2px dashed var(--bcw-border);
    border-radius: var(--bcw-radius);
}

.bcw-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2.5px solid var(--bcw-border);
    border-top-color: var(--bcw-accent);
    border-radius: 50%;
    animation: bcw-spin .7s linear infinite;
    flex-shrink: 0;
}

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

/* ****** Results inner ****************************************************************************************************************************************************************************** */
.bcw-results-inner {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* ****** Section header *************************************************************************************************************************************************************************** */
.bcw-results-section {}

.bcw-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--bcw-border);
}

.bcw-section-dot {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,.5);
    box-shadow: 0 0 0 1px rgba(0,0,0,.1);
    transition: background-color .3s ease;
}

.bcw-section-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    letter-spacing: -.02em !important;
    margin: 0 !important;
    color: var(--bcw-text) !important;
    line-height: 1 !important;
    flex: 1;
}

.bcw-section-hex {
    font-size: 13px;
    font-weight: 500;
    color: var(--bcw-text-muted);
    letter-spacing: .02em;
    margin-left: 8px;
}

.bcw-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--bcw-text-muted);
    background: var(--bcw-surface);
    border: 1px solid var(--bcw-border);
    border-radius: 100px;
    padding: 2px 10px;
    white-space: nowrap;
}

/* ****** Product grid ********************************************************************************************************************************************************************************* */
.bcw-grid {
    display: grid;
    grid-template-columns: repeat(var(--bcw-grid-cols), 1fr);
    gap: var(--bcw-gutter);
}

/* ****** Product card ********************************************************************************************************************************************************************************* */
.bcw-card {
    display: flex;
    flex-direction: column;
    background: var(--bcw-card-bg);
    border: 1px solid var(--bcw-border);
    border-radius: var(--bcw-radius-card);
    overflow: hidden;
    text-decoration: none !important;
    color: var(--bcw-text) !important;
    transition: var(--bcw-transition);
    box-shadow: var(--bcw-shadow);
}

.bcw-card:hover {
    box-shadow: var(--bcw-shadow-hover);
    transform: translateY(-3px);
    border-color: transparent;
}

.bcw-card:focus-visible {
    outline: 2px solid var(--bcw-accent);
    outline-offset: 2px;
}

.bcw-card__image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--bcw-surface);
}

.bcw-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.bcw-card:hover .bcw-card__image {
    transform: scale(1.04);
}

/* Colour dot badge *** top-right corner */
.bcw-card__corner-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 4px;
}

.bcw-card__colour-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.85);
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
}

/* Out-of-stock overlay */
.bcw-card__oos-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #666;
    backdrop-filter: blur(2px);
}

.bcw-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
}

/* Brand name above title */
.bcw-brand-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--bcw-text-muted);
}

.bcw-card__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--bcw-text);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0;
}

/* Attribute pills (e.g. "Navy Blue", "Large") */
.bcw-card__attrs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.bcw-attr-pill {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .03em;
    background: var(--bcw-surface);
    border: 1px solid var(--bcw-border);
    border-radius: 100px;
    padding: 2px 9px;
    color: var(--bcw-text-muted);
    white-space: nowrap;
}

/* Meta row: colour tag + stock */
.bcw-card__meta {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    flex-wrap: wrap;
    flex-direction: column;
}

/* Multiple colour tag pills row */
.bcw-card__tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* _bcw_colour_tag badge */
.bcw-tag-pill {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: lowercase;
    border: 1.5px solid currentColor;
    border-radius: 100px;
    padding: 1px 8px;
    color: var(--bcw-text);
    background: transparent;
}

/* Stock badge */
.bcw-stock {
    font-size: 11px;
    font-weight: 600;
    border-radius: 100px;
    padding: 2px 8px;
}

.bcw-stock--in {
    background: #dcfce7;
    color: #166534;
}

.bcw-stock--out {
    background: #fee2e2;
    color: #991b1b;
}

.bcw-card__price {
    margin-top: auto;
    padding-top: 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--bcw-text);
}

.bcw-card__price .woocommerce-Price-amount {
    color: var(--bcw-accent);
}

/* "View Product" CTA */
.bcw-card__cta {
    font-size: 12px;
    font-weight: 600;
    color: var(--bcw-accent);
    letter-spacing: .02em;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .2s ease, transform .2s ease;
}

.bcw-card:hover .bcw-card__cta {
    opacity: 1;
    transform: translateY(0);
}

/* Actions row: View Product link + Order Sample button */
.bcw-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}

/* Order Sample button */
.bcw-sample-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    font-family: var(--bcw-font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--bcw-accent);
    background: transparent;
    border: 1.5px solid var(--bcw-accent);
    border-radius: 100px;
    cursor: pointer;
    transition: var(--bcw-transition);
    line-height: 1;
    white-space: nowrap;
}

.bcw-sample-btn:hover:not(:disabled) {
    background: var(--bcw-accent);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37,99,235,.25);
}

.bcw-sample-btn:disabled {
    opacity: .6;
    cursor: default;
}

.bcw-sample-btn--added {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.bcw-sample-btn--added:hover:not(:disabled) {
    background: #15803d;
    border-color: #15803d;
}

/* View Cart link that appears after adding */
.bcw-cart-link {
    font-size: 11px;
    font-weight: 600;
    color: #16a34a;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

/* ****** Empty state inside section ************************************************************************************************************************************ */
.bcw-empty {
    text-align: center;
    color: var(--bcw-text-muted);
    font-size: 14px;
    padding: 32px;
    background: var(--bcw-surface);
    border-radius: var(--bcw-radius-sm);
    border: 1px dashed var(--bcw-border);
}

/* ****** Utility *** hidden ********************************************************************************************************************************************************************* */
[hidden] {
    display: none !important;
}

/* ****** Animations *************************************************************************************************************************************************************************************** */
@keyframes bcw-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bcw-card {
    animation: bcw-fade-in .3s ease both;
}

/* Stagger for the first 12 cards */
.bcw-card:nth-child(1)  { animation-delay: .04s; }
.bcw-card:nth-child(2)  { animation-delay: .08s; }
.bcw-card:nth-child(3)  { animation-delay: .12s; }
.bcw-card:nth-child(4)  { animation-delay: .16s; }
.bcw-card:nth-child(5)  { animation-delay: .20s; }
.bcw-card:nth-child(6)  { animation-delay: .24s; }
.bcw-card:nth-child(7)  { animation-delay: .28s; }
.bcw-card:nth-child(8)  { animation-delay: .32s; }
.bcw-card:nth-child(9)  { animation-delay: .36s; }
.bcw-card:nth-child(10) { animation-delay: .40s; }
.bcw-card:nth-child(11) { animation-delay: .44s; }
.bcw-card:nth-child(12) { animation-delay: .48s; }

/* ****** Shade hint label ********************************************************************************************************************************************************************* */
/* Pantone approximate match display under RGB */
.bcw-pantone {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--bcw-text-muted);
    opacity: .8;
}

/* Pantone lookup input */
.bcw-pantone-input-wrap {
    margin-top: 12px;
}

.bcw-pantone-input-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--bcw-text-muted);
    margin-bottom: 6px;
}

.bcw-pantone-input-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bcw-pantone-input-swatch {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1.5px solid var(--bcw-border);
    background: #f3f4f6;
    flex-shrink: 0;
    transition: background .2s;
}

.bcw-pantone-input {
    flex: 1;
    min-width: 0;
    padding: 7px 12px;
    font-family: var(--bcw-font);
    font-size: 13px;
    color: var(--bcw-text);
    background: var(--bcw-card-bg);
    border: 1.5px solid var(--bcw-border);
    border-radius: var(--bcw-radius-sm);
    outline: none;
    transition: border-color .15s;
}

.bcw-pantone-input:focus {
    border-color: var(--bcw-accent);
    box-shadow: 0 0 0 3px var(--bcw-ring);
}

.bcw-pantone-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: var(--bcw-accent);
    color: #fff;
    border: none;
    border-radius: var(--bcw-radius-sm);
    cursor: pointer;
    transition: var(--bcw-transition);
}

.bcw-pantone-go:hover {
    background: var(--bcw-accent-hover);
    transform: translateY(-1px);
}

.bcw-pantone-go:focus-visible {
    outline: 2px solid var(--bcw-accent);
    outline-offset: 2px;
}

.bcw-pantone-input-hint {
    margin: 6px 0 0;
    font-size: 11px;
    line-height: 1.5;
    padding: 5px 10px;
    border-radius: 6px;
}

.bcw-pantone-input-hint--match {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.bcw-pantone-input-hint--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
    font-size: 12px;
    color: var(--bcw-text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bcw-shade-hint::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 10px;
    border-radius: 100px;
    background: conic-gradient( from 180deg, #fff, #888, #000, #888, #fff );
    opacity: .7;
    flex-shrink: 0;
}

/* ****** Brand filter bar ********************************************************************************************************************************************************************* */
.bcw-brand-filter {
    padding: 18px 20px;
    background: var(--bcw-surface);
    border: 1px solid var(--bcw-border);
    border-radius: var(--bcw-radius);
    margin-bottom: 32px;
}

.bcw-brand-filter__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.bcw-brand-filter__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--bcw-text-muted);
}

/* Clear filter link */
.bcw-brand-clear {
    font-size: 12px;
    font-weight: 500;
    color: var(--bcw-accent);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: var(--bcw-font);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity .15s ease;
}

.bcw-brand-clear:hover {
    opacity: .7;
}

/* ****** Desktop: horizontal scrollable button strip ********************************************************************************* */
.bcw-brand-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bcw-brand-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-family: var(--bcw-font);
    font-size: 13px;
    font-weight: 500;
    color: var(--bcw-text);
    background: var(--bcw-card-bg);
    border: 1.5px solid var(--bcw-border);
    border-radius: 100px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--bcw-transition);
    line-height: 1;
}

.bcw-brand-btn:hover {
    border-color: var(--bcw-accent);
    color: var(--bcw-accent);
    box-shadow: 0 2px 8px rgba(37,99,235,.1);
    transform: translateY(-1px);
}

.bcw-brand-btn:focus-visible {
    outline: 2px solid var(--bcw-accent);
    outline-offset: 2px;
}

.bcw-brand-btn.is-active {
    background: var(--bcw-accent);
    border-color: var(--bcw-accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37,99,235,.25);
}

.bcw-brand-btn.is-active:hover {
    background: var(--bcw-accent-hover);
    border-color: var(--bcw-accent-hover);
    transform: translateY(-1px);
}

/* ****** Mobile: native select *************************************************************************************************************************************************** */
.bcw-brand-select {
    display: none;   /* shown only on mobile via media query */
    width: 100%;
    padding: 10px 14px;
    font-family: var(--bcw-font);
    font-size: 14px;
    font-weight: 500;
    color: var(--bcw-text);
    background: var(--bcw-card-bg);
    border: 1.5px solid var(--bcw-border);
    border-radius: var(--bcw-radius-sm);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.bcw-brand-select:focus {
    outline: none;
    border-color: var(--bcw-accent);
    box-shadow: 0 0 0 3px var(--bcw-ring);
}

/* ****** Filtered-out cards *************************************************************************************************************************************************************** */
.bcw-card[data-brand-slug].bcw-hidden {
    display: none;
}

/* ****** Responsive *************************************************************************************************************************************************************************************** */
@media (max-width: 900px) {
    .bcw-grid {
        --bcw-grid-cols: 2;
    }
}

@media (max-width: 680px) {
    .bcw-panel {
        flex-direction: column;
        gap: 28px;
    }

    .bcw-swatch-group {
        flex-wrap: wrap;
    }

    .bcw-grid {
        --bcw-grid-cols: 1;
    }

    .bcw-wheel-container {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
    }

    /* Brand filter: swap buttons for select on mobile */
    .bcw-brand-buttons {
        display: none;
    }

    .bcw-brand-select {
        display: block;
    }

    .bcw-brand-filter {
        padding: 14px 16px;
    }
}

/* ****** Flatsome-specific overrides ********************************************************************************************************************************* */
/* Prevent Flatsome's shop grid styles from leaking in */
.bcw-grid .product,
.bcw-grid .products {
    all: unset;
}

.bcw-wrapper .bcw-section-title {
    border: none;
    padding: 0;
    background: none;
}
