/* ==========================================================================
   SALE PAGE STYLES — Bonebana  (Figma Match v2)
   ========================================================================== */

/* ──────────────────────────────────────────────────────────────
   1. HARD RESET — neutralise WordPress / WooCommerce / theme
   overrides on the sale page's key containers & cards.
   ────────────────────────────────────────────────────────────── */

/* Force the WP content area to be full-width (no sidebar) */
.page-template-page-sale #primary,
.page-template-page-sale .site-main,
.page-template-page-sale #content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}

/* Remove any flex/grid set by theme on inner wrappers */
.page-template-page-sale .ast-container,
.page-template-page-sale .entry-content,
.page-template-page-sale .post-content {
    display: block !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Reset article (WooCommerce sets width/float on article.product) */
.bb-sale-card {
    width: 100% !important;
    float: none !important;
    clear: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ──────────────────────────────────────────────────────────────
   2. SHARED CONTAINER
   ────────────────────────────────────────────────────────────── */
.bb-sale-container {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
    box-sizing: border-box;
    width: 100%;
}

/* ──────────────────────────────────────────────────────────────
   3. BREADCRUMB
   ────────────────────────────────────────────────────────────── */
.bb-sale-breadcrumb {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--im-color-border);
}
.bb-breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--im-color-muted);
}
.bb-breadcrumb-list a {
    color: var(--im-color-muted);
    text-decoration: none;
}
.bb-breadcrumb-list a:hover { color: var(--im-color-text); }
.bb-breadcrumb-sep { opacity: 0.35; }
.bb-breadcrumb-list [aria-current="page"] { color: var(--im-color-text); }

/* ──────────────────────────────────────────────────────────────
   4. SALE PAGE HEADER (title + filter bar row)
   ────────────────────────────────────────────────────────────── */
.bb-sale-header {
    border-bottom: 1px solid var(--im-color-border);
    padding: 1.25rem 0;
}
.bb-sale-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: nowrap;
}
.bb-sale-title {
    font-family: var(--im-font-heading);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--im-color-text);
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
    flex-shrink: 0;
    line-height: 1;
}

/* ──────────────────────────────────────────────────────────────
   5. FILTER BAR
   ────────────────────────────────────────────────────────────── */
.bb-sale-filterbar {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.bb-filter-divider {
    color: var(--im-color-subtle);
    font-size: 0.9rem;
    padding: 0 0.25rem;
    user-select: none;
    line-height: 1;
}

/* Filter group container */
.bb-filter-group {
    position: relative;
}

/* Filter trigger button */
.bb-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--im-font-body);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--im-color-text);
    padding: 0.5rem 0.6rem;
    white-space: nowrap;
    line-height: 1;
    transition: color 0.2s ease;
}
.bb-filter-btn:hover,
.bb-filter-group.is-open > .bb-filter-btn {
    color: var(--im-color-brand-red);
}

/* Active count badge (orange circle) */
.bb-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--im-color-brand-red);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    line-height: 1;
    margin-left: 1px;
}

/* "+" icon — rotates to "×" when open */
.bb-filter-plus {
    font-size: 0.75rem;
    font-weight: 300;
    line-height: 1;
    display: inline-block;
    transition: transform 0.2s ease;
}
.bb-filter-group.is-open > .bb-filter-btn .bb-filter-plus {
    transform: rotate(45deg);
}

/* ── Dropdown panel ── */
.bb-filter-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid var(--im-color-border);
    box-shadow: 0 8px 28px rgba(28, 27, 24, 0.09);
    min-width: 180px;
    z-index: 500;
    padding: 0.5rem 0;
    display: none;
}
.bb-filter-group.is-open .bb-filter-dropdown {
    display: block;
    animation: bbDropIn 0.15s ease;
}
@keyframes bbDropIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-5px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Sort dropdown — align to right edge */
.bb-filter-dropdown--sort {
    left: auto;
    right: 0;
    transform: none;
}
.bb-filter-group.is-open .bb-filter-dropdown--sort {
    animation: bbDropInRight 0.15s ease;
}
@keyframes bbDropInRight {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}
.bb-filter-dropdown--colors { min-width: 200px; }

/* ── Dropdown options ── */
.bb-filter-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 1rem;
    font-size: 0.77rem;
    font-weight: 400;
    color: var(--im-color-text);
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
    text-transform: none;
    letter-spacing: 0;
}
.bb-filter-option:hover { background: var(--im-color-bg); }
.bb-filter-option input[type="checkbox"],
.bb-filter-option input[type="radio"] {
    accent-color: var(--im-color-brand-red);
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    cursor: pointer;
}
.bb-color-dot {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1px solid rgba(28, 27, 24, 0.15);
    flex-shrink: 0;
}
.bb-filter-empty {
    display: block;
    padding: 0.4rem 1rem;
    font-size: 0.74rem;
    color: var(--im-color-muted);
    font-style: italic;
}

/* ──────────────────────────────────────────────────────────────
   6. GRID SECTION
   ────────────────────────────────────────────────────────────── */
.bb-sale-grid-section {
    padding: 1.5rem 0 6rem;
}
.bb-sale-result-count {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--im-color-muted);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin: 0 0 1.5rem;
}

/* ──────────────────────────────────────────────────────────────
   7. PRODUCT GRID — 4 equal columns
   ────────────────────────────────────────────────────────────── */
.bb-sale-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2.5rem 1.25rem !important;
    width: 100%;
    box-sizing: border-box;
}

/* ──────────────────────────────────────────────────────────────
   8. PRODUCT CARD
   ────────────────────────────────────────────────────────────── */
.bb-sale-card {
    display: block;
    min-width: 0; /* prevent grid blowout */
    box-sizing: border-box;
}

.bb-sale-card-link {
    display: block;
    text-decoration: none !important;
    color: inherit;
}

/* ── Image container — enforces 3:4 ratio ── */
.bb-sale-card-image-wrap {
    position: relative;
    width: 100%;
    /* Padding-bottom trick as fallback for older browsers */
    padding-bottom: 133.33%; /* 4/3 = 1.333 */
    overflow: hidden;
    background-color: #ECE9E3;
    margin-bottom: 0.75rem;
    display: block;
}

/* Modern browsers: use aspect-ratio directly */
@supports (aspect-ratio: 3/4) {
    .bb-sale-card-image-wrap {
        padding-bottom: 0;
        aspect-ratio: 3 / 4;
        height: auto;
    }
}

.bb-sale-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modern: reset absolute when aspect-ratio is supported */
@supports (aspect-ratio: 3/4) {
    .bb-sale-card-img {
        position: static;
        width: 100%;
        height: 100%;
    }
}

.bb-sale-card-link:hover .bb-sale-card-img {
    transform: scale(1.04);
}

/* ── Discount badge ── */
.bb-sale-badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    background-color: var(--im-color-text);
    color: #fff;
    font-family: var(--im-font-body);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.18rem 0.45rem;
    line-height: 1.5;
    z-index: 2;
    pointer-events: none;
}

/* ── Card info row (below image) ── */
.bb-sale-card-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    min-width: 0;
}

/* Left: title + swatches */
.bb-sale-card-left {
    flex: 1 1 0;
    min-width: 0;
}
.bb-sale-card-title {
    font-family: var(--im-font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--im-color-text);
    margin: 0 0 0.35rem;
    line-height: 1.3;
    /* Allow wrap for long names like Figma */
    white-space: normal;
    text-transform: none;
    letter-spacing: 0;
}

/* Color swatches row */
.bb-sale-swatches {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: nowrap;
    overflow: hidden;
}
.bb-sale-swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(28, 27, 24, 0.18);
    flex-shrink: 0;
}
.bb-sale-swatch-more {
    font-size: 0.62rem;
    color: var(--im-color-muted);
    font-weight: 600;
    white-space: nowrap;
    margin-left: 2px;
}

/* Right: price column */
.bb-sale-card-price {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    text-align: right;
}

/* Regular price — strikethrough */
.bb-price-regular {
    font-family: var(--im-font-heading);
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--im-color-muted);
    line-height: 1.3;
    /* text-decoration on the span itself and its WC children */
    text-decoration: line-through;
}
.bb-price-regular .woocommerce-Price-amount,
.bb-price-regular bdi,
.bb-price-regular span {
    text-decoration: line-through !important;
    color: var(--im-color-muted) !important;
}
/* WC wraps in <del> sometimes */
.bb-price-regular del,
.bb-price-regular del bdi {
    color: var(--im-color-muted) !important;
    text-decoration: line-through !important;
    opacity: 1 !important;
}

/* Sale price */
.bb-price-sale {
    font-family: var(--im-font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--im-color-text);
    line-height: 1.3;
}
.bb-price-sale ins,
.bb-price-sale .woocommerce-Price-amount {
    text-decoration: none !important;
    font-weight: 500;
    color: var(--im-color-text) !important;
}

/* WC del/ins fallback when using get_price_html() */
.bb-sale-card-price del {
    color: var(--im-color-muted) !important;
    opacity: 1 !important;
    text-decoration: line-through !important;
    font-size: 0.72rem;
}
.bb-sale-card-price ins {
    text-decoration: none !important;
    font-weight: 500;
    color: var(--im-color-text) !important;
}

/* ── Hidden card (JS filter) ── */
.bb-sale-card.is-hidden {
    display: none !important;
}

/* ──────────────────────────────────────────────────────────────
   9. EMPTY STATE
   ────────────────────────────────────────────────────────────── */
.bb-sale-empty {
    text-align: center;
    padding: 5rem 1rem;
    color: var(--im-color-muted);
}
.bb-sale-empty svg {
    display: block;
    margin: 0 auto 1.5rem;
    opacity: 0.3;
}
.bb-sale-empty p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}
.bb-sale-empty-btn {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    background-color: var(--im-color-text);
    color: #fff;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: background 0.2s ease;
}
.bb-sale-empty-btn:hover { background-color: var(--im-color-brand-red); }

/* ──────────────────────────────────────────────────────────────
   10. PAGINATION
   ────────────────────────────────────────────────────────────── */
/* ── Product List Pagination (Figma Match) ── */
.bb-sale-pagination {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    width: 100%;
}
.bb-sale-pagination ul.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.bb-sale-pagination ul.page-numbers li {
    display: inline-block;
}
.bb-sale-pagination ul.page-numbers .page-numbers {
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--im-color-text, #1C1B18);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}
.bb-sale-pagination ul.page-numbers .page-numbers:hover {
    color: var(--im-color-brand-red, #825d63);
}
.bb-sale-pagination ul.page-numbers .page-numbers.current {
    color: var(--im-color-brand-red, #825d63);
}
.bb-sale-pagination ul.page-numbers .page-numbers.dots {
    color: var(--im-color-muted, #6B6862);
    cursor: default;
}
/* PREV & NEXT buttons with underline */
.bb-sale-pagination ul.page-numbers .prev,
.bb-sale-pagination ul.page-numbers .next {
    border-bottom: 1.5px solid var(--im-color-text, #1C1B18);
    padding: 0.2rem 0;
    font-size: 0.725rem;
    letter-spacing: 0.08em;
}
.bb-sale-pagination ul.page-numbers .prev:hover,
.bb-sale-pagination ul.page-numbers .next:hover {
    border-color: var(--im-color-brand-red, #825d63);
}


/* ──────────────────────────────────────────────────────────────
   11. RESPONSIVE
   ────────────────────────────────────────────────────────────── */

/* Tablet ≤ 1100px: 3 columns */
@media (max-width: 1100px) {
    .bb-sale-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Small tablet ≤ 768px */
@media (max-width: 768px) {
    .bb-sale-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .bb-sale-header-inner {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .bb-sale-filterbar {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        justify-content: flex-start;
    }
    .bb-sale-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem 0.85rem !important;
    }
    .bb-sale-title { font-size: 1.35rem; }
}

/* Phone ≤ 480px */
@media (max-width: 480px) {
    .bb-sale-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.1rem 0.65rem !important;
    }
    .bb-sale-card-title { font-size: 0.78rem; }
    .bb-price-regular   { font-size: 0.65rem; }
    .bb-price-sale      { font-size: 0.78rem; }
}

/* ──────────────────────────────────────────────────────────────
   12. SHOP LANDING PAGE: NEW ARRIVAL HERO & HIGHLIGHT FOR YOU
   ────────────────────────────────────────────────────────────── */
.bb-shop-hero {
    margin-top: 1.5rem;
    padding: 0 4rem; /* Match header container alignment */
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.bb-shop-hero__banner {
    position: relative;
    width: 100%;
    height: 480px;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* New arrival badge text on top-left */
.bb-shop-hero__badge-wrap {
    position: absolute;
    top: 2.5rem;
    left: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.bb-shop-hero__badge-title {
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.25);
}
.bb-shop-hero__badge-line {
    width: 60px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.7);
}

/* Floating Card */
.bb-shop-hero__card {
    background-color: #FAF9F5; /* Matches editorial cream/off-white background */
    width: 460px;
    display: flex;
    padding: 1.5rem;
    gap: 1.5rem;
    text-decoration: none !important;
    color: inherit !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bb-shop-hero__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.bb-shop-hero__card-image {
    width: 160px;
    height: 213px; /* 3:4 aspect ratio */
    overflow: hidden;
    flex-shrink: 0;
}
.bb-shop-hero__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bb-shop-hero__card-details {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.5rem;
    flex: 1;
}
.bb-shop-hero__category {
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--im-color-muted, #9E9B95);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.bb-shop-hero__title {
    font-family: var(--im-font-heading, serif);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--im-color-text, #1C1B18);
    margin: 0;
}

.bb-shop-hero__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.725rem;
    color: var(--im-color-text, #1C1B18);
    font-family: var(--im-font-body, sans-serif);
}
.bb-shop-hero__star {
    color: var(--im-color-text, #1C1B18);
}
.bb-shop-hero__rating-val {
    font-weight: 600;
}

/* Swatches styling inside hero card */
.bb-shop-hero__swatches {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0.25rem 0;
}
.bb-shop-hero__swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(28, 27, 24, 0.15);
}
.bb-shop-hero__swatch-more {
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--im-color-muted, #6B6862);
}

.bb-shop-hero__prices {
    margin-top: auto; /* Push prices to bottom */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--im-font-body, sans-serif);
}
.bb-shop-hero__price-sale {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--im-color-brand-red, #825d63);
}
.bb-shop-hero__price-regular {
    font-size: 0.8rem;
    color: var(--im-color-muted, #9E9B95);
    text-decoration: line-through;
}

/* 4-Column Grid below the banner */
.bb-shop-hero__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
}

/* ── Shop Landing Page: Highlight For You ── */
.bb-shop-highlight {
    margin-top: 5rem;
    margin-bottom: 5rem;
    padding: 5rem 4rem; /* Generous padding top/bottom and align horizontal */
    background-color: #F6F6F6; /* Clean light grey background */
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.bb-shop-highlight__header {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.bb-shop-highlight__title {
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--im-color-text, #1C1B18);
}
.bb-shop-highlight__line {
    width: 60px;
    height: 1px;
    background-color: var(--im-color-text, #1C1B18);
    opacity: 0.8;
}

.bb-shop-highlight__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 4rem !important; /* Larger gap between card columns */
}

.bb-shop-highlight__card {
    background-color: #FFFFFF; /* Clean white frame background */
    padding: 3rem; /* Generous padding inside the card, wrapping the image & details */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-decoration: none !important;
    color: inherit !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bb-shop-highlight__card-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}
.bb-shop-highlight__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.bb-shop-highlight__card:hover .bb-shop-highlight__card-image img {
    transform: scale(1.03);
}

.bb-shop-highlight__card-details {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.bb-shop-highlight__card-title {
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--im-color-text, #1C1B18);
    margin: 0;
}
.bb-shop-highlight__card-prices {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--im-font-body, sans-serif);
}
.bb-shop-highlight__card-price-sale {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--im-color-brand-red, #825d63);
}
.bb-shop-highlight__card-price-regular {
    font-size: 0.75rem;
    color: var(--im-color-muted, #9E9B95);
    text-decoration: line-through;
}

/* Swatches inside highlight cards */
.bb-shop-highlight__card-swatches {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}
.bb-shop-highlight__card-swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(28, 27, 24, 0.15);
}
.bb-shop-highlight__card-swatch-more {
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--im-color-muted, #6B6862);
}

/* Responsive adjustments */
@media (max-width: 1100px) {
    .bb-shop-hero {
        padding: 0 2rem;
    }
    .bb-shop-hero__grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .bb-shop-highlight {
        padding: 0 2rem;
    }
    .bb-shop-highlight__grid {
        gap: 2rem !important;
    }
}
@media (max-width: 768px) {
    .bb-shop-hero {
        padding: 0 1rem;
        gap: 2rem;
    }
    .bb-shop-hero__banner {
        height: 380px;
    }
    .bb-shop-hero__badge-wrap {
        top: 1.5rem;
        left: 1.5rem;
    }
    .bb-shop-hero__card {
        width: calc(100% - 3rem);
        max-width: 380px;
        padding: 1rem;
        gap: 1rem;
    }
    .bb-shop-hero__card-image {
        width: 110px;
        height: 147px;
    }
    .bb-shop-hero__title {
        font-size: 1.05rem;
    }
    .bb-shop-hero__grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.25rem !important;
    }
    .bb-shop-highlight {
        padding: 0 1rem;
        margin-top: 3rem;
    }
    .bb-shop-highlight__grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
}

/* Hide duplicate featured items on page 1 of the main catalog when no filters or custom sorts are active */
#bb-sale-grid.bb-shop-page-1:not(.bb-filters-active) .bb-product-card[data-is-featured="true"] {
    display: none !important;
}

