/*
 * Blank Page Catalogue – by Bluespider
 * Frontend Stylesheet v1.0.3
 *
 * Scoped to .bpc-* classes. Does NOT reset or override theme global styles.
 * Font, colour, spacing choices are additive, not destructive.
 */

/* ── Design tokens ──────────────────────────────────────────── */

:root {
    --bpc-primary:      #0d8dd4;
    --bpc-primary-dk:   #0a6fa8;
    --bpc-text:         #1a1a2e;
    --bpc-text-muted:   #64748b;
    --bpc-border:       #e2e8f0;
    --bpc-bg:           #ffffff;
    --bpc-bg-alt:       #f8fafc;
    --bpc-success:      #16a34a;
    --bpc-error:        #dc2626;
    --bpc-radius:       6px;
    --bpc-font:         -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --bpc-trans:        0.15s ease;
}

/* ── Box-sizing scope ────────────────────────────────────────── */

.bpc-archive *,
.bpc-catalogue *,
.bpc-single-product *,
.bpc-hero * {
    box-sizing: border-box;
}

/* ─────────────────────────────────────────────────────────────
   CATALOGUE WRAPPER  (used by shortcodes + archive template)
───────────────────────────────────────────────────────────── */

.bpc-catalogue {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
    font-family: var(--bpc-font);
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 0;
}

/* When the filter sidebar is hidden (show_filters="false"), the grid has only
   one child (.bpc-catalogue__main) — without this, CSS Grid auto-places it
   into the first (240px) column instead of letting it use the full width. */
.bpc-catalogue--no-filters {
    grid-template-columns: 1fr;
}

/* Filters sidebar */
.bpc-catalogue__filters-col {}

/* Main content column */
.bpc-catalogue__main {}

/* Archive page wrapper */
.bpc-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px 64px;
    font-family: var(--bpc-font);
}

.bpc-archive__head { margin-bottom: 24px; }

.bpc-archive__title {
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 700;
    color: var(--bpc-text);
    margin: 0 0 8px;
    line-height: 1.2;
}

.bpc-archive__description {
    font-size: 15px;
    color: var(--bpc-text-muted);
    margin: 0;
    max-width: 600px;
}

@media (max-width: 768px) {
    .bpc-catalogue {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ─────────────────────────────────────────────────────────────
   FILTER PANEL
───────────────────────────────────────────────────────────── */

.bpc-filters {
    background: var(--bpc-bg);
    border: 1px solid var(--bpc-border);
    border-radius: var(--bpc-radius);
    overflow: hidden;
    position: sticky;
    top: 24px;
}

.bpc-filters__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--bpc-bg-alt);
    border-bottom: 1px solid var(--bpc-border);
}

.bpc-filters__title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--bpc-text-muted);
}

.bpc-filters__clear {
    font-size: 12px;
    color: var(--bpc-filter-clear-color, var(--bpc-primary));
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: var(--bpc-font);
    white-space: nowrap;
}
.bpc-filters__clear:hover { text-decoration: underline; }

.bpc-filters__header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.bpc-filters__collapse-all {
    font-size: 12px;
    color: var(--bpc-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: var(--bpc-font);
    white-space: nowrap;
    text-align: right;
}
.bpc-filters__collapse-all:hover { color: var(--bpc-filter-clear-color, var(--bpc-primary)); text-decoration: underline; }

.bpc-filter-group { border-bottom: 1px solid var(--bpc-border); }
.bpc-filter-group:last-child { border-bottom: none; }

.bpc-filter-group__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bpc-text);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--bpc-font);
    text-align: left;
}
.bpc-filter-group__toggle:hover { background: var(--bpc-bg-alt); }
.bpc-filter-group__toggle svg { transition: transform var(--bpc-trans); flex-shrink: 0; color: var(--bpc-text-muted); }
.bpc-filter-group__toggle[aria-expanded="false"] svg { transform: rotate(-90deg); }
.bpc-filter-group__toggle[aria-expanded="false"] + .bpc-filter-group__options { display: none; }

.bpc-filter-group__options {
    padding: 2px 0 10px;
    list-style: none;
    margin: 0;
}

.bpc-filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    cursor: pointer;
    font-family: var(--bpc-font);
}
.bpc-filter-option:hover { background: var(--bpc-bg-alt); }
.bpc-filter-option__input {
    /* Hide native checkbox — replaced by custom ::before pseudo-element */
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--bpc-filter-checkbox-color, var(--bpc-primary));
    border-radius: 3px;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
    background: #fff;
    position: relative;
    transition: background 0.12s, border-color 0.12s;
}
.bpc-filter-option__input:checked {
    background: var(--bpc-filter-checkbox-color, var(--bpc-primary));
    border-color: var(--bpc-filter-checkbox-color, var(--bpc-primary));
}
.bpc-filter-option__input:checked::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 0px;
    width: 5px;
    height: 9px;
    border: 2px solid var(--bpc-filter-tick-color, #fff);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}
.bpc-filter-option__label { flex: 1; font-size: 13px; color: var(--bpc-text); }
.bpc-filter-option__count {
    font-size: 11px;
    color: var(--bpc-text-muted);
    background: var(--bpc-bg-alt);
    border: 1px solid var(--bpc-border);
    border-radius: 99px;
    padding: 1px 6px;
    flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────
   GRID HEADER  (count + sort)
───────────────────────────────────────────────────────────── */

.bpc-grid-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.bpc-grid-header__count {
    font-size: 13px;
    color: var(--bpc-text-muted);
    font-family: var(--bpc-font);
}

.bpc-sort-select {
    padding: 7px 30px 7px 10px;
    font-size: 13px;
    border: 1px solid var(--bpc-border);
    border-radius: var(--bpc-radius);
    background-color: var(--bpc-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2394a3b8'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 14px;
    appearance: none;
    color: var(--bpc-text);
    font-family: var(--bpc-font);
    cursor: pointer;
    outline: none;
}
.bpc-sort-select:focus { border-color: var(--bpc-primary); }

/* ─────────────────────────────────────────────────────────────
   PRODUCT GRID
───────────────────────────────────────────────────────────── */

.bpc-grid {
    display: grid;
    gap: 20px;
}
.bpc-grid--3col { grid-template-columns: repeat(3, 1fr); }
.bpc-grid--2col { grid-template-columns: repeat(2, 1fr); }
.bpc-grid--4col { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1100px) {
    .bpc-grid--4col { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
    .bpc-grid--3col,
    .bpc-grid--4col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .bpc-grid--3col,
    .bpc-grid--2col,
    .bpc-grid--4col { grid-template-columns: 1fr; }
}

.bpc-grid-empty {
    grid-column: 1 / -1;
    padding: 40px 16px;
    text-align: center;
    color: var(--bpc-text-muted);
    font-size: 15px;
    font-family: var(--bpc-font);
}

/* ─────────────────────────────────────────────────────────────
   PRODUCT CARD
───────────────────────────────────────────────────────────── */

.bp-product-card {
    background: var(--bpc-bg);
    border: 1px solid var(--bpc-border);
    border-radius: var(--bpc-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow var(--bpc-trans), border-color var(--bpc-trans), transform var(--bpc-trans);
    font-family: var(--bpc-font);
}
.bp-product-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.09);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

/* Full-card clickable overlay */
.bp-product-card__link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
}

.bp-product-card__image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bpc-bg-alt);
    flex-shrink: 0;
}
.bp-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.bp-product-card:hover .bp-product-card__image img { transform: scale(1.04); }

.bp-product-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bpc-bg-alt);
}

.bp-product-card__body {
    padding: 12px 14px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bp-product-card__category {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bpc-primary);
    display: block;
    position: relative;
    z-index: 2;
    font-family: var(--bpc-font);
}
.bp-product-card__category a {
    color: inherit;
    text-decoration: none;
}
.bp-product-card__category a:hover { text-decoration: underline; }

.bp-product-card__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--bpc-text);
    margin: 0;
    line-height: 1.3;
    font-family: var(--bpc-font);
}
.bp-product-card__title a {
    color: inherit;
    text-decoration: none;
    position: relative;
    z-index: 2;
}
.bp-product-card__title a:hover { color: var(--bpc-primary); }

.bp-product-card__sku {
    font-size: 11.5px;
    color: var(--bpc-text-muted);
    margin: 0;
    font-family: var(--bpc-font);
}

.bp-product-card__price {
    font-size: 16px;
    font-weight: 700;
    font-family: var(--bpc-font);
    margin: 4px 0 0;
    color: var(--bpc-card-cat-color, var(--bpc-primary, #0d8dd4));
}
.bp-product-card__price.bpc-product-price-block--sale {
    color: inherit;
}
.bp-product-card__price.bpc-product-price-block--sale .bpc-product-price-block__regular {
    text-decoration: line-through;
    color: #94a3b8;
    font-weight: 500;
}
.bp-product-card__price.bpc-product-price-block--sale .bpc-product-price-block__sale {
    color: #dc2626;
    font-weight: 700;
}

.bp-product-card__footer {
    padding: 0 14px 12px;
    position: relative;
    z-index: 2;
}

/* ─────────────────────────────────────────────────────────────
   PAGINATION
───────────────────────────────────────────────────────────── */

.bpc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--bpc-border);
}
.bpc-pagination__btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border: 1px solid var(--bpc-border);
    border-radius: var(--bpc-radius);
    background: var(--bpc-bg);
    color: var(--bpc-text);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--bpc-font);
    cursor: pointer;
}
.bpc-pagination__btn:hover:not(:disabled) { background: var(--bpc-bg-alt); border-color: #cbd5e1; }
.bpc-pagination__btn:disabled { opacity: 0.4; cursor: not-allowed; }
.bpc-pagination__info { font-size: 13px; color: var(--bpc-text-muted); font-family: var(--bpc-font); }

/* ─────────────────────────────────────────────────────────────
   BREADCRUMBS
───────────────────────────────────────────────────────────── */

.bpc-breadcrumbs { margin-bottom: 20px; }

.bpc-breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: var(--bpc-text-muted);
    font-family: var(--bpc-font);
}
.bpc-breadcrumbs__list li:not(:last-child)::after {
    content: '›';
    margin-left: 4px;
    color: var(--bpc-border);
}
.bpc-breadcrumbs__list a { color: var(--bpc-breadcrumb-color, var(--bpc-text-muted)); text-decoration: none; }
.bpc-breadcrumbs__list a:hover { color: var(--bpc-primary); }
.bpc-breadcrumbs__list li:not(.bpc-breadcrumbs__current) { color: var(--bpc-breadcrumb-color, var(--bpc-text-muted)); }
.bpc-breadcrumbs__list .is-current { color: var(--bpc-text); }

/* ─────────────────────────────────────────────────────────────
   SINGLE PRODUCT WRAPPER
───────────────────────────────────────────────────────────── */

.bpc-single-product {
    /* max-width, padding and margin are set per-template via inline style from canvas settings.
       Defaults here are conservative — override freely in the template builder. */
    width: 100%;
    font-family: var(--bpc-font);
    box-sizing: border-box;
}

/* ─────────────────────────────────────────────────────────────
   HERO BLOCK  (gallery + info side-by-side)
───────────────────────────────────────────────────────────── */

.bpc-hero {
    display: grid;
    grid-template-columns: 55% 43%;
    gap: 40px;
    align-items: start;
    margin-bottom: 12px;
}

/* Dynamic width from PHP inline style */
.bpc-hero[style*="grid-template-columns"] {}  /* passthrough */

@media (max-width: 860px) {
    .bpc-hero { grid-template-columns: 1fr !important; gap: 24px; }
}

/* ─────────────────────────────────────────────────────────────
   PRODUCT GALLERY
───────────────────────────────────────────────────────────── */

.bpc-product-gallery {}

.bpc-product-gallery__main {
    border-radius: var(--bpc-radius);
    overflow: hidden;
    background: var(--bpc-bg-alt);
    margin-bottom: 10px;
    aspect-ratio: 4 / 3;
    cursor: zoom-in;
}
.bpc-product-gallery__main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}

.bpc-product-gallery__thumbs {
    /* display, gap, flex-wrap, justify-content set via inline style from settings */
}
.bpc-product-gallery__thumb-btn {
    /* width/height set via inline style from settings (default 68px) */
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: none;
    padding: 0;
    flex-shrink: 0;
}
.bpc-product-gallery__thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bpc-product-gallery__thumb-btn.is-active { border-color: var(--bpc-primary); }
.bpc-product-gallery__thumb-btn:hover { border-color: #94a3b8; }

/* Thumbnail slider (when image count exceeds max-per-row) */
.bpc-product-gallery__slider-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}
.bpc-product-gallery--slider .bpc-product-gallery__thumbs {
    flex: 1;
    min-width: 0;
}
.bpc-product-gallery__slider-btn {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--bpc-border, #e2e8f0);
    background: var(--bpc-bg, #fff);
    color: var(--bpc-text, #475569);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
    padding: 0;
}
.bpc-product-gallery__slider-btn:hover {
    background: var(--bpc-primary, #0d8dd4);
    border-color: var(--bpc-primary, #0d8dd4);
    color: #fff;
}
.bpc-product-gallery__slider-btn:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.bpc-product-gallery--empty .bpc-product-gallery__placeholder {
    aspect-ratio: 4 / 3;
    border-radius: var(--bpc-radius);
    background: var(--bpc-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─────────────────────────────────────────────────────────────
   LIGHTBOX
───────────────────────────────────────────────────────────── */

.bpc-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.bpc-lightbox.is-open { display: flex; }

.bpc-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.bpc-lightbox__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 48px 56px;
    box-sizing: border-box;
}

.bpc-lightbox__img-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
}
.bpc-lightbox__img-wrap.is-loading .bpc-lightbox__spinner { display: flex; }
.bpc-lightbox__img-wrap.is-loading .bpc-lightbox__img { opacity: 0; }
.bpc-lightbox__spinner {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
}

.bpc-lightbox__img {
    max-width: 100%;
    max-height: calc(100vh - 120px);
    object-fit: contain;
    border-radius: 6px;
    transition: opacity 0.18s ease;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.bpc-lightbox__close {
    position: fixed;
    top: 14px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s;
    z-index: 2;
}
.bpc-lightbox__close:hover { background: rgba(255,255,255,0.22); }

.bpc-lightbox__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s;
    z-index: 2;
}
.bpc-lightbox__nav:hover { background: rgba(255,255,255,0.22); }
.bpc-lightbox__nav--prev { left: 10px; }
.bpc-lightbox__nav--next { right: 10px; }
.bpc-lightbox__nav[hidden],
.bpc-lightbox__counter[hidden] { display: none; }

.bpc-lightbox__counter {
    position: fixed;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 12.5px;
    font-family: var(--bpc-font, system-ui, sans-serif);
    letter-spacing: 0.04em;
    background: rgba(0,0,0,0.4);
    padding: 4px 12px;
    border-radius: 20px;
}

@media (max-width: 600px) {
    .bpc-lightbox__dialog { padding: 48px 12px 40px; }
    .bpc-lightbox__nav--prev { left: 4px; }
    .bpc-lightbox__nav--next { right: 4px; }
}

/* ─────────────────────────────────────────────────────────────
   PRODUCT INFO SIDEBAR
───────────────────────────────────────────────────────────── */

.bpc-product-info {}

.bpc-product-info__title {
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 700;
    color: var(--bpc-text);
    margin: 0 0 10px;
    line-height: 1.2;
    font-family: var(--bpc-font);
}

.bpc-product-info__sku {
    font-size: 12.5px;
    color: var(--bpc-text-muted);
    margin: 0 0 14px;
    font-family: var(--bpc-font);
}
.bpc-product-info__sku-label { font-weight: 600; }

.bpc-product-info__attrs {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bpc-product-info__attr-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-family: var(--bpc-font);
}
.bpc-product-info__attr-row dt {
    font-size: 12px;
    font-weight: 600;
    color: var(--bpc-text-muted);
    min-width: 72px;
    flex-shrink: 0;
    padding-top: 2px;
}
.bpc-product-info__attr-row dd {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
}

.bpc-product-info__attr-tag {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(13,141,212,0.08);
    color: var(--bpc-primary);
    text-decoration: none;
    font-family: var(--bpc-font);
    transition: background 0.12s;
}
.bpc-product-info__attr-tag:hover {
    background: rgba(13,141,212,0.16);
    color: var(--bpc-primary);
    text-decoration: none;
}

.bpc-product-info__categories {
    font-size: 13px;
    color: var(--bpc-text-muted);
    margin: 0 0 16px;
    font-family: var(--bpc-font);
}
.bpc-product-info__categories a { color: var(--bpc-primary); text-decoration: none; }
.bpc-product-info__categories a:hover { text-decoration: underline; }

.bpc-product-info__forms {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.bpc-product-info__enquiry-cta { margin-top: 8px; }

/* ─────────────────────────────────────────────────────────────
   PRODUCT SECTIONS  (description, specs, features, etc.)
───────────────────────────────────────────────────────────── */

.bpc-single-product__body { display: flex; flex-direction: column; }

.bpc-product-section {
    padding: 28px 0;
    border-top: 1px solid var(--bpc-border);
}
.bpc-product-section:first-child { border-top: none; padding-top: 0; }
/* Remove ALL bottom space from the single-product wrapper and every possible last descendant */
.bpc-single-product {
    padding-bottom: 0 !important;
    margin-bottom:  0 !important;
}
/* Last direct child of wrapper */
.bpc-single-product > *:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
/* Last section's last column's last block */
.bpc-single-product .bpc-section:last-child,
.bpc-single-product .bpc-section:last-child .bpc-section__grid,
.bpc-single-product .bpc-section:last-child .bpc-section__col,
.bpc-single-product .bpc-section:last-child .bpc-section__col > *:last-child,
.bpc-single-product .bpc-block-outer:last-child,
.bpc-single-product .bpc-product-section:last-child {
    margin-bottom:  0 !important;
    padding-bottom: 0 !important;
}

/* Title — single style, used by all section functions */
.bpc-product-section__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--bpc-text);
    margin: 0 0 16px;
    line-height: 1.2;
    font-family: var(--bpc-font);
}

/* Description */
.bpc-product-description {
    font-size: 15px;
    color: var(--bpc-text-muted);
    line-height: 1.7;
    /* No max-width here — control width via the block's Style > Layout > Max-width */
    font-family: var(--bpc-font);
}
.bpc-product-description p { margin: 0 0 1em; }
.bpc-product-description ul,
.bpc-product-description ol { padding-left: 1.5em; margin: 0 0 1em; }
.bpc-product-description li { margin-bottom: 0.3em; }

/* Specifications */
.bpc-specs-table {
    width: 100%;
    border-collapse: collapse;
    max-width: 640px;
    font-family: var(--bpc-font);
}
.bpc-specs-table__row { border-bottom: 1px solid var(--bpc-border); }
.bpc-specs-table__row:last-child { border-bottom: none; }
.bpc-specs-table__label {
    width: 200px;
    padding: 10px 20px 10px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--bpc-text);
    vertical-align: top;
}
.bpc-specs-table__value {
    padding: 10px 0;
    font-size: 13px;
    color: var(--bpc-text-muted);
    vertical-align: top;
}

/* Features */
.bpc-features-section__heading {
    font-size: 15px;
    font-weight: 600;
    color: var(--bpc-text, #1a1a2e);
    font-family: var(--bpc-font);
    margin: 0 0 8px;
}

.bpc-features-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: var(--bpc-font);
    /* max-width removed — controlled per-block via Style tab */
}
/* When two-column grid is applied via inline style, reset flex */
.bpc-features-list[style*="grid-template-columns"] {
    display: grid !important;
    flex-direction: unset;
}
.bpc-features-list__item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 14px;
    color: var(--bpc-text-muted);
    line-height: 1.5;
}
.bpc-features-list__icon {
    flex-shrink: 0;
    color: var(--bpc-primary);
    margin-top: 1px;
}

/* Downloads */
.bpc-downloads-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 640px;
}

.bpc-download-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bpc-bg-alt);
    border: 1px solid var(--bpc-border);
    border-radius: var(--bpc-radius);
    flex-wrap: wrap;
    font-family: var(--bpc-font);
}
.bpc-download-card__info {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1;
}
.bpc-download-card__icon { color: var(--bpc-primary); flex-shrink: 0; }
.bpc-download-card__label { font-size: 13.5px; font-weight: 600; color: var(--bpc-text); }
.bpc-download-card__action {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.bpc-download-card__gate {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 8px;
}
.bpc-download-gate__error   { font-size: 12px; color: var(--bpc-error); margin: 0; width: 100%; }
.bpc-download-gate__success { font-size: 12px; color: var(--bpc-success); margin: 0; width: 100%; }
.bpc-download-gate__code-step { display: flex; gap: 8px; align-items: center; width: 100%; }

/* Enquiry */
.bpc-enquiry-form__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 100%;
    font-family: var(--bpc-font);
}
@media (max-width: 600px) {
    .bpc-enquiry-form__fields { grid-template-columns: 1fr; }
}
.bpc-field--full { grid-column: 1 / -1; }
.bpc-enquiry-form__footer { margin-top: 16px; }
.bpc-enquiry-form__feedback { margin-top: 12px; }
.bpc-enquiry-form__success-msg { color: var(--bpc-success); font-size: 14px; font-weight: 500; margin: 0; }
.bpc-enquiry-form__error-msg   { color: var(--bpc-error);   font-size: 14px; margin: 0; }

/* ─────────────────────────────────────────────────────────────
   SHARED FORM ELEMENTS
───────────────────────────────────────────────────────────── */

.bpc-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-family: var(--bpc-font);
}

.bpc-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--bpc-text);
}

.bpc-required { color: var(--bpc-error); font-weight: 700; }

.bpc-input {
    width: 100%;
    padding: 9px 11px;
    border: 1.5px solid var(--bpc-border);
    border-radius: var(--bpc-radius);
    font-family: var(--bpc-font);
    font-size: 14px;
    color: var(--bpc-text);
    background: var(--bpc-bg);
    outline: none;
    transition: border-color var(--bpc-trans), box-shadow var(--bpc-trans);
    appearance: none;
}
.bpc-input:focus {
    border-color: var(--bpc-primary);
    box-shadow: 0 0 0 3px rgba(13,141,212,0.12);
}
textarea.bpc-input { min-height: 120px; resize: vertical; }

/* ─────────────────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────────────────── */

.bpc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--bpc-radius);
    font-family: var(--bpc-font);
    font-size: 13.5px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
    transition: background var(--bpc-trans), color var(--bpc-trans), opacity var(--bpc-trans);
}
.bpc-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.bpc-btn--primary   { background: var(--bpc-primary); color: #fff; }
.bpc-btn--primary:hover:not(:disabled) { background: var(--bpc-primary-dk); }
.bpc-btn--secondary { background: #f1f5f9; color: var(--bpc-text); border: 1px solid var(--bpc-border); }
.bpc-btn--secondary:hover:not(:disabled) { background: #e2e8f0; }
.bpc-btn--sm { padding: 6px 13px; font-size: 12.5px; }

/* ─────────────────────────────────────────────────────────────
   SPINNER / UTILS
───────────────────────────────────────────────────────────── */

.bpc-spinner {
    width: 24px;
    height: 24px;
    border: 2.5px solid var(--bpc-border);
    border-top-color: var(--bpc-primary);
    border-radius: 50%;
    animation: bpc-spin 0.65s linear infinite;
    display: inline-block;
}
@keyframes bpc-spin { to { transform: rotate(360deg); } }

.bpc-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ─────────────────────────────────────────────────────────────
   MOBILE
───────────────────────────────────────────────────────────── */

.bpc-filters-mobile-btn {
    display: none;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid var(--bpc-border);
    border-radius: var(--bpc-radius);
    font-size: 13px;
    font-weight: 500;
    color: var(--bpc-text);
    background: var(--bpc-bg);
    cursor: pointer;
    font-family: var(--bpc-font);
    margin-bottom: 14px;
}

@media (max-width: 768px) {
    .bpc-filters-mobile-btn { display: flex; }
    .bpc-single-product { padding: 16px 16px 48px; }
    .bpc-archive { padding: 16px 16px 48px; }
    .bpc-specs-table__label { width: 120px; }
    .bpc-download-card { flex-direction: column; align-items: flex-start; }
    .bpc-catalogue { padding: 16px 0; }
}

/* ─────────────────────────────────────────────────────────────
   BLOCK OUTER WRAPPER  (applied when a block has custom styles)
───────────────────────────────────────────────────────────── */

.bpc-block-outer {
    /* Default spacing matches .bpc-product-section so unstyled blocks look identical */
    position: relative;
    width: 100%; /* prevent block from sizing to content inside flex/grid columns */
    box-sizing: border-box;
}

/* When inside a styled outer wrapper, the inner section resets its own spacing/border
   so the outer wrapper takes full control */
.bpc-block-outer > .bpc-product-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-top: none !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* CSS variable cascade — typography overrides set on .bpc-block-outer
   are picked up by descendant heading and text elements */
.bpc-block-outer .bpc-product-section__title {
    color:       var(--bpc-block-heading-color,  var(--bpc-text));
    font-size:   var(--bpc-block-heading-size,   17px);
    font-weight: var(--bpc-block-heading-weight, 700);
}
.bpc-block-outer .bpc-product-description,
.bpc-block-outer .bpc-product-description p,
.bpc-block-outer .bpc-features-list__item,
.bpc-block-outer .bpc-specs-table__value,
.bpc-block-outer .bpc-specs-table__label,
.bpc-block-outer .bpc-product-section--custom,
.bpc-block-outer .bpc-product-info__sku,
.bpc-block-outer .bpc-product-info__categories,
.bpc-block-outer .bpc-cvs-cats,
.bpc-block-outer p,
.bpc-block-outer li {
    color:     var(--bpc-block-text-color, inherit);
    font-size: var(--bpc-block-text-size,  inherit);
}

/* ─────────────────────────────────────────────────────────────
   SECTION BLOCKS  (PHP-rendered column layouts)
───────────────────────────────────────────────────────────── */

.bpc-section {
    width: 100%;
}

/* The inner grid carries the display:grid + gap + template-columns from inline style */
.bpc-section__grid {
    display: grid; /* also set via inline style; here as safety net */
    align-items: start;
    width: 100%; /* ensure grid fills container regardless of child content sizes */
}

.bpc-section__col {
    min-width: 0; /* prevent grid blowout */
    display: flex;
    flex-direction: column;
}

/* Sections don't add their own padding — child blocks handle their own spacing */
.bpc-section > .bpc-section__grid > .bpc-section__col > .bpc-product-section:first-child {
    border-top: none;
}

/* On mobile, all columns stack */
@media (max-width: 720px) {
    .bpc-section__grid {
        grid-template-columns: 1fr !important;
    }
}

/* ─────────────────────────────────────────────────────────────
   BPB INJECTED HEADER/FOOTER
───────────────────────────────────────────────────────────── */

.bpc-bpb-inject { width: 100%; }

/* ─────────────────────────────────────────────────────────────
   THEME OVERRIDE RESETS  (v1.0.5)
   Many themes set aggressive h2/ul/li styles that bleed into
   the catalogue. These resets ensure consistent rendering.
───────────────────────────────────────────────────────────── */

/* Force heading sizes — themes routinely set h2 to 24-36px */
.bpc-single-product .bpc-product-section__title,
.bpc-single-product h2.bpc-product-section__title {
    font-size:       17px !important;
    font-weight:     700  !important;
    line-height:     1.2  !important;
    margin:          0 0 16px !important;
    padding:         0    !important;
    border:          none !important;
    text-transform:  none !important;
    letter-spacing:  normal !important;
    color:           var(--bpc-text) !important;
    font-family:     var(--bpc-font) !important;
    background:      none !important;
}
.bpc-single-product .bpc-product-info__title {
    font-size:       clamp(18px, 3vw, 26px) !important;
    font-weight:     700 !important;
}

/* Strip inherited list styles from features */
.bpc-features-list,
.bpc-single-product .bpc-features-list {
    list-style:    none !important;
    padding-left:  0    !important;
    margin-left:   0    !important;
}
.bpc-features-list > li::before,
.bpc-features-list > li::marker { content: none !important; display: none !important; }

/* Ensure hero grid applies regardless of theme flex/block */
.bpc-hero {
    display:               grid !important;
    grid-template-columns: 55% 43% !important; /* fallback */
    gap:                   40px;
    align-items:           start;
}
/* The inline style from PHP sets the exact widths; !important on display ensures grid isn't overridden */

@media (max-width: 860px) {
    .bpc-hero { grid-template-columns: 1fr !important; gap: 24px !important; }
}

/* ─────────────────────────────────────────────────────────────
   FULL-WIDTH SECTION  (background bleeds to viewport edges)
───────────────────────────────────────────────────────────── */

.bpc-section--fw {
    /* Reliable full-bleed technique: pull left by the amount the parent is
       offset from the viewport edge, then set width to viewport width.
       Works regardless of parent padding or centering approach. */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Full-width only affects the background — the grid stays at the same width as normal.
   No extra padding is added; the section's existing content width is preserved. */
.bpc-section--fw > .bpc-section__grid {
    width: 100%;
    box-sizing: border-box;
}

/* Individual product field blocks */
.bpc-product-title-block {
    font-size:   clamp(20px, 3vw, 28px);
    font-weight: 700;
    color:       var(--bpc-text);
    line-height: 1.2;
    margin:      0 0 8px;
    font-family: var(--bpc-font);
}
.bpc-product-sku-block {
    font-size:   12.5px;
    color:       var(--bpc-text-muted);
    font-family: var(--bpc-font);
}
.bpc-product-sku-block .bpc-sku-label { font-weight: 600; }
.bpc-product-price-block {
    font-size:   22px;
    font-weight: 700;
    color:       var(--bpc-primary);
    font-family: var(--bpc-font);
    line-height: 1.2;
}
.bpc-product-price-block--sale {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.bpc-product-price-block__regular {
    font-size: 0.7em;
    font-weight: 500;
    opacity: 0.85;
}
.bpc-product-price-block__sale {
    font-weight: 700;
}

/* ─────────────────────────────────────────────────────────────
   CATALOGUE TEMPLATE CSS VARIABLES
   Applied via .bpc-catalogue-{id} wrapper from PHP
───────────────────────────────────────────────────────────── */

[class*="bpc-catalogue-"] {
    --bpc-card-radius:          var(--bpc-radius, 6px);
    --bpc-card-border:          var(--bpc-border, #e2e8f0);
    --bpc-card-bg:              #ffffff;
    --bpc-card-title-color:     var(--bpc-text, #1a1a2e);
    --bpc-card-cat-color:       var(--bpc-primary, #0d8dd4);
    --bpc-card-sku-color:       var(--bpc-text-muted, #64748b);
    --bpc-card-btn-bg:          var(--bpc-primary, #0d8dd4);
    --bpc-card-btn-color:       #ffffff;
    --bpc-card-btn-radius:      var(--bpc-radius, 5px);
    --bpc-filter-bg:            #ffffff;
    --bpc-filter-border:        #e2e8f0;
    --bpc-filter-title-color:   #1a1a2e;
    --bpc-filter-checkbox-color: var(--bpc-primary, #0d8dd4);
    --bpc-filter-tick-color:    #ffffff;
    --bpc-filter-clear-color:   var(--bpc-primary, #0d8dd4);
}

/* Wire variables into card elements */
[class*="bpc-catalogue-"] .bp-product-card,
.bpc-related-products .bp-product-card {
    background:    var(--bpc-card-bg);
    border-color:  var(--bpc-card-border);
    border-radius: var(--bpc-card-radius);
}
[class*="bpc-catalogue-"] .bp-product-card__title a,
.bpc-related-products .bp-product-card__title a  { color: var(--bpc-card-title-color); font-size: 14px !important; }
[class*="bpc-catalogue-"] .bp-product-card__category,
.bpc-related-products .bp-product-card__category { color: var(--bpc-card-cat-color); font-size: 10.5px !important; }
[class*="bpc-catalogue-"] .bp-product-card__sku,
.bpc-related-products .bp-product-card__sku      { color: var(--bpc-card-sku-color); font-size: 11.5px !important; }
[class*="bpc-catalogue-"] .bp-product-card .bpc-btn,
.bpc-related-products .bp-product-card .bpc-btn  {
    background:    var(--bpc-card-btn-bg);
    color:         var(--bpc-card-btn-color);
    border-radius: var(--bpc-card-btn-radius);
    border:        none;
}
[class*="bpc-catalogue-"] .bpc-filters {
    background:    var(--bpc-filter-bg);
    border-color:  var(--bpc-filter-border);
}
[class*="bpc-catalogue-"] .bpc-filters__title { color: var(--bpc-filter-title-color); }

/* ─────────────────────────────────────────────────────────────
   ACCORDION BLOCKS
───────────────────────────────────────────────────────────── */

.bpc-accordion {
    border-top: 1px solid var(--bpc-border);
}
.bpc-accordion + .bpc-accordion { border-top: none; }
.bpc-accordion:first-child { border-top: none; }
.bpc-accordion__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    cursor: pointer;
    list-style: none;
    user-select: none;
    font-family: var(--bpc-font);
}
.bpc-accordion__summary::-webkit-details-marker { display: none; }
.bpc-accordion__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--bpc-text);
    font-family: var(--bpc-font);
    line-height: 1.2;
    letter-spacing: normal;
    text-transform: none;
}
.bpc-accordion__chevron {
    color: var(--bpc-text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.bpc-accordion[open] .bpc-accordion__chevron {
    transform: rotate(180deg);
}
.bpc-accordion__body {
    padding-bottom: 16px;
}
/* Inside accordion, the wrapped section's own heading is hidden (accordion summary is the heading) */
.bpc-accordion__body .bpc-product-section__title { display: none; }

/* Accordion title must match bpc-product-section__title in every context */
.bpc-single-product .bpc-accordion__title {
    font-size:      17px !important;
    font-weight:    700  !important;
    font-family:    var(--bpc-font) !important;
    color:          var(--bpc-text) !important;
    line-height:    1.2  !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}
.bpc-accordion__body .bpc-product-section {
    padding-top: 0;
    border-top: none;
}

/* ─────────────────────────────────────────────────────────────
   INVENTORY BLOCK
───────────────────────────────────────────────────────────── */
.bpc-inventory-block {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--bpc-font);
    font-size: 13.5px;
    font-weight: 600;
}
.bpc-inventory-block__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.bpc-inventory-block__dot--available { background: #16a34a; }
.bpc-inventory-block__dot--sold-out  { background: #dc2626; }
.bpc-inventory-block--available .bpc-inventory-block__label { color: #16a34a; }
.bpc-inventory-block--in-stock  .bpc-inventory-block__label { color: #16a34a; }
.bpc-inventory-block--sold-out  .bpc-inventory-block__label { color: #dc2626; }

/* ─────────────────────────────────────────────────────────────
   DOWNLOAD GATE MODAL
───────────────────────────────────────────────────────────── */

.bpc-gate-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.bpc-gate-overlay[hidden] { display: none !important; }

.bpc-gate-dialog {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.28);
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    font-family: var(--bpc-font);
}
.bpc-gate-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--bpc-border);
    background: var(--bpc-bg-alt);
}
.bpc-gate-dialog__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--bpc-text);
}
.bpc-gate-dialog__close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--bpc-text-muted);
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: color 0.15s, background 0.15s;
}
.bpc-gate-dialog__close:hover { background: var(--bpc-border); color: var(--bpc-text); }

.bpc-gate-dialog__content { padding: 0; }

.bpc-gate-modal__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
}
.bpc-gate-modal__intro {
    font-size: 13.5px;
    color: var(--bpc-text-muted);
    margin: 0;
    line-height: 1.5;
}
.bpc-gate-modal__field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.bpc-gate-modal__field .bpc-label {
    font-size: 12.5px;
    font-weight: 600;
}
.bpc-gate-modal__error {
    font-size: 12.5px;
    color: var(--bpc-error, #dc2626);
    margin: 0;
}
.bpc-gate-modal__error[hidden] { display: none; }
.bpc-gate-modal__success {
    font-size: 12.5px;
    color: var(--bpc-success, #16a34a);
    margin: 0;
}
.bpc-gate-modal__success[hidden] { display: none; }
.bpc-gate-modal__code-step {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bpc-gate-modal__code-step[hidden] { display: none; }

/* Primary action button inside modal inherits Download button colours */
.bpc-gate-dialog .bpc-download-card__btn {
    align-self: flex-start;
}

/* ─────────────────────────────────────────────────────────────
   RELATED PRODUCTS BLOCK
───────────────────────────────────────────────────────────── */
.bpc-related-products {
    margin: 0;
    /* Default CSS vars matching catalogue defaults — overridden by active cat template inline style */
    --bpc-card-radius:      var(--bpc-radius, 6px);
    --bpc-card-border:      var(--bpc-border, #e2e8f0);
    --bpc-card-bg:          #ffffff;
    --bpc-card-title-color: var(--bpc-text, #1a1a2e);
    --bpc-card-cat-color:   var(--bpc-primary, #0d8dd4);
    --bpc-card-sku-color:   var(--bpc-text-muted, #64748b);
    --bpc-card-btn-bg:      var(--bpc-primary, #0d8dd4);
    --bpc-card-btn-color:   #ffffff;
    --bpc-card-btn-radius:  var(--bpc-radius, 5px);
}
/* Equal-height cards in grid mode */
.bpc-related-products .bpc-grid {
    align-items: stretch;
}
.bpc-related-products .bp-product-card {
    height: 100%;
}

/* ─────────────────────────────────────────────────────────────
   RELATED PRODUCTS SLIDER
───────────────────────────────────────────────────────────── */
.bpc-related-products { margin: 0; }
.bpc-related-slider {
    position: relative;
}
.bpc-related-slider__viewport {
    overflow: hidden;
    width: 100%;
}
.bpc-related-slider__track {
    display: flex;
    gap: 16px;
    align-items: stretch;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    will-change: transform;
}
.bpc-related-slider__item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.bpc-related-slider__item .bp-product-card {
    flex: 1;
    height: 100%;
}
.bpc-related-slider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: #fff;
    border: 1px solid var(--bpc-border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--bpc-text);
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: background 0.15s, box-shadow 0.15s;
}
.bpc-related-slider__btn:hover { background: var(--bpc-primary); color: #fff; border-color: var(--bpc-primary); }
.bpc-related-slider__btn--prev { left: -18px; }
.bpc-related-slider__btn--next { right: -18px; }
.bpc-related-slider__btn:disabled { opacity: 0.35; cursor: default; pointer-events: none; }
@media (max-width: 600px) {
    .bpc-related-slider__btn--prev { left: 0; }
    .bpc-related-slider__btn--next { right: 0; }
}

/* ─────────────────────────────────────────────────────────────
   BRANDS — [bp_brands] shortcode + brand archive page
───────────────────────────────────────────────────────────── */
.bpc-brand-grid {
    display: grid;
    gap: 20px;
}
.bpc-brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid var(--bpc-border, #e2e8f0);
    border-radius: 10px;
    padding: 20px;
    min-height: 100px;
    transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
}
.bpc-brand-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    border-color: var(--bpc-primary, #0d8dd4);
}
.bpc-brand-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.bpc-brand-card__media img {
    max-width: 100%;
    width: auto;
    object-fit: contain;
}
.bpc-brand-card__name-fallback {
    font-weight: 700;
    font-family: var(--bpc-font);
    color: var(--bpc-text, #1a1a2e);
    text-align: center;
}

/* Slider mode reuses .bpc-related-slider — only the item content differs */
.bpc-related-slider__item .bpc-brand-card { height: 100%; width: 100%; }

/* Brand archive page header (logo, name, description above the product grid) */
.bpc-brand-page-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 0 8px;
    text-align: center;
    font-family: var(--bpc-font);
}
.bpc-brand-page-header--align-left   { text-align: left; }
.bpc-brand-page-header--align-center { text-align: center; }
.bpc-brand-page-header--align-right  { text-align: right; }

.bpc-brand-page-header__logo {
    display: inline-block;
    margin: 0 auto 16px;
    object-fit: contain;
}
.bpc-brand-page-header--align-left .bpc-brand-page-header__logo  { margin-left: 0; margin-right: auto; }
.bpc-brand-page-header--align-right .bpc-brand-page-header__logo { margin-left: auto; margin-right: 0; }

.bpc-brand-page-header__name {
    font-size: 26px;
    font-weight: 700;
    color: var(--bpc-text, #1a1a2e);
    margin: 0 0 10px;
}
.bpc-brand-page-header__description {
    max-width: 640px;
    margin: 0 auto;
    color: var(--bpc-text-muted, #64748b);
    font-size: 14px;
    line-height: 1.6;
}
.bpc-brand-page-header--align-left .bpc-brand-page-header__description  { margin-left: 0; margin-right: auto; }
.bpc-brand-page-header--align-right .bpc-brand-page-header__description { margin-left: auto; margin-right: 0; }
.bpc-brand-page-header__description p { margin: 0 0 10px; }
.bpc-brand-page-header__description p:last-child { margin-bottom: 0; }

/* ─────────────────────────────────────────────────────────────
   PRICE FILTER — dual-handle range slider
───────────────────────────────────────────────────────────── */
.bpc-price-filter {
    padding: 4px 2px 6px;
}
.bpc-price-filter__values {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--bpc-text);
    font-family: var(--bpc-font);
    margin-bottom: 14px;
}
.bpc-price-filter__track {
    position: relative;
    height: 4px;
    background: var(--bpc-border);
    border-radius: 2px;
    margin: 0 8px;
}
.bpc-price-filter__track-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    background: var(--bpc-filter-checkbox-color, var(--bpc-primary));
    border-radius: 2px;
}
.bpc-price-filter__range {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    top: 50%;
    left: -8px;
    right: -8px;
    width: calc(100% + 16px);
    height: 4px;
    margin: -2px 0 0;
    background: transparent;
    pointer-events: none;
}
.bpc-price-filter__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: auto;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--bpc-filter-checkbox-color, var(--bpc-primary));
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.bpc-price-filter__range::-moz-range-thumb {
    pointer-events: auto;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--bpc-filter-checkbox-color, var(--bpc-primary));
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.bpc-price-filter__range::-webkit-slider-runnable-track { background: transparent; }
.bpc-price-filter__range::-moz-range-track { background: transparent; }
