/* =========================================================
   LAYOUT CONTAINER
========================================================= */

.brand-container {
    max-width: 1400px;
    margin: -50px auto 0px;
    padding: 0 20px;
}

.blw-content-area {
    position: relative;
    padding: 10px 0 40px 0;
}

@media (max-width: 991px) {
    .brand-container {
        margin: 00px auto 0px;
    }
}

/* =========================================================
   BRAND HERO
========================================================= */

.blw-brand-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    width: 100vw;
    margin: 0 calc(50% - 50vw) 60px;
    overflow: hidden;
    background: #a0102b;
}

.blw-brand-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
    min-height: 400px;
    height: 100%;
    padding: 40px 50px 40px 50px;
    color: #fff;
}

.blw-brand-hero-title {
    margin: 0;
    color: #fff;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.blw-brand-hero-line {
    width: 50px;
    height: 3px;
    margin: 10px 0 14px;
    background: #fff;
}

.blw-brand-hero-text {
    font-size: 16px;
    line-height: 1.5;
    max-width: 95%;
}

.blw-brand-hero-text p {
    margin: 0 0 14px;
}

.blw-brand-hero-locations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 28px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.blw-brand-hero-locations li {
    position: relative;
    padding-left: 24px;
    font-size: 34px;
    line-height: 1.2;
}

.blw-brand-hero-locations li::before {
    content: "☑";
    position: absolute;
    left: 0;
    top: -1px;
    color: #fff;
    font-size: 16px;
}

.blw-brand-hero-media {
    position: relative;
    min-width: 0;
    min-height: 400px;
    height: 100%;
    background: linear-gradient(180deg, #59c9e8 0%, #36add0 100%);
    overflow: hidden;
}

.blw-brand-hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1199px) {
    .blw-brand-hero-content { min-height: 350px; }
    .blw-brand-hero-media { min-height: 350px; }
    .blw-brand-hero-title { font-size: 30px; }
    .blw-brand-hero-text { font-size: 16px; }
}

@media (max-width: 991px) {
    .blw-brand-hero {
        display: flex;
        flex-direction: column-reverse;
    }
    .blw-brand-hero-content {
        min-height: 300px;
        padding: 36px 24px;
    }
    .blw-brand-hero-title {
        font-size: 26px;
    }
    .blw-brand-hero-text { font-size: 16px; }
    .blw-brand-hero-media {
        min-height: 300px;
    }
}

@media (max-width: 640px) {
    .blw-brand-hero-locations {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   USP STRIP
========================================================= */

.blw-brand-usp-strip {
    width: 100vw;
    margin: 0 calc(50% - 50vw) 0px;
    background: #1b2355;
    color: #fff;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    align-items: start;
}

.blw-brand-usp-item {
    padding: 60px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 0;
}

.blw-brand-usp-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 18px;
}

.blw-brand-usp-title {
    margin: 0;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 700;
}

@media (max-width: 991px) {
    .blw-brand-usp-strip {
        grid-template-columns: 1fr;
    }
    .blw-brand-usp-item {
        text-align: left;
        padding: 18px 16px;
        min-height: 0;
        flex-direction: row;
        gap: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
    }
    .blw-brand-usp-item:first-child {
        border-top: 0;
    }
    .blw-brand-usp-title {
        font-size: 18px;
    }
}

/* =========================================================
   SEO TEXT SECTION
========================================================= */

.blw-brand-seo-section {
    padding: 40px 0 52px;
}

.blw-brand-seo-content {
    column-count: 2;
    column-gap: 64px;
    color: #121212;
    font-size: 14px;
    line-height: 1.72;
}

.blw-brand-seo-content h1,
.blw-brand-seo-content h2,
.blw-brand-seo-content h3,
.blw-brand-seo-content h4 {
    break-after: avoid;
    break-inside: avoid;
    margin: 0 0 12px;
    color: #121212;
    font-size: 16px;
    line-height: 1.15;
    font-weight: 700;
}

.blw-brand-seo-content p,
.blw-brand-seo-content ul,
.blw-brand-seo-content ol {
    margin: 0 0 18px;
}

.blw-brand-seo-content ul,
.blw-brand-seo-content ol {
    padding-left: 22px;
}

.blw-brand-seo-content > * {
    break-inside: avoid;
}

@media (max-width: 991px) {
    .blw-brand-seo-section {
        padding: 28px 0 36px;
    }
    .blw-brand-seo-content {
        column-count: 1;
        column-gap: 0;
    }
    .blw-brand-seo-content h1,
    .blw-brand-seo-content h2,
    .blw-brand-seo-content h3,
    .blw-brand-seo-content h4 {
        font-size: 16px;
    }
}

/* =========================================================
   PRODUCT GRID
========================================================= */

.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.brand-card {
    background: #fff;
    padding: 20px;
    transition: box-shadow 0.3s ease;
}

.brand-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.brand-image {
    position: relative;
    background: #ffffff;
    text-align: center;
    margin: 0px 0 40px 0;
}

.brand-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    background: transparent;
    border: 1px solid #1b2355;
    color: #1b2355;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.brand-image img {
    max-width: 100%;
    height: auto;
}

.brand-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.brand-title {
    font-size: 16px;
    margin: 0;
    flex: 1;
    min-width: 0;
}

.brand-title a {
    text-decoration: none;
    color: #222;
}

.brand-title a:hover {
    color: #931926;
}

.brand-price {
    font-weight: 600;
    text-align: right;
    flex-shrink: 0;
}

.brand-price .price {
    color: #931926;
}

.brand-price del {
    color: #999;
    font-weight: 400;
    margin-left: 5px;
}

/* =========================================================
   RESULTS WRAPPER & LOADING OVERLAY
========================================================= */

.blw-results-wrapper {
    position: relative;
    margin-top: 30px;
    margin-bottom: 50px;
}

#brand-results {
    margin-top: 0;
}

.blw-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.82);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    pointer-events: auto;
}

.blw-loading-overlay.blw-loading-active {
    display: flex;
}

/* =========================================================
   FILTER WRAPPER
========================================================= */

#brand-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0 40px;
    align-items: flex-start;
    position: relative;
    z-index: 5;
}

/* =========================================================
   FILTER GROUP BASE
========================================================= */

.filter-group {
    position: relative;
    flex: 0 0 260px;
    max-width: 100%;
    box-sizing: border-box;
    z-index: 150;
}

/* Remove default marker */

.filter-group summary::-webkit-details-marker {
    display: none;
}

/* =========================================================
   FILTER HEADER
========================================================= */

.filter-group summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 18px;
    font-weight: 600;
    font-size: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-group summary::after {
    content: "▾";
    font-size: 13px;
    transition: transform 0.2s ease;
}

.filter-group[open] summary {
    border-color: #bbb;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.filter-group[open] summary::after {
    transform: rotate(180deg);
}

/* =========================================================
   OVERLAY DROPDOWN PANEL
========================================================= */

.filter-group > div {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0;
    padding: 10px 18px 14px;
    max-height: 260px;
    overflow-y: auto;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    z-index: 150;
}

/* Hide panel when closed */

.filter-group:not([open]) > div {
    display: none;
}

/* Scrollbar */

.filter-group > div::-webkit-scrollbar {
    width: 6px;
}

.filter-group > div::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* =========================================================
   CHECKBOX STYLING
========================================================= */

.filter-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    padding: 2px 0;
    cursor: pointer;
    transition: color 0.15s ease;
    min-height: 22px;
}

.filter-group label:hover {
    color: #931926;
}

.filter-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    flex-shrink: 0;
    margin: 0;
    border: 2px solid #bbb;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.filter-group input[type="checkbox"]:focus {
    outline: none;
}

.filter-group input[type="checkbox"]:checked {
    border-color: #931926;
    background-color: #931926;
}

.filter-group input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-group input[type="checkbox"]:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* =========================================================
   ACTIVE FILTER CHIPS
========================================================= */

.blw-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.blw-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #931926;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.blw-filter-chip-remove {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0 0 0 4px;
    opacity: 0.9;
}

.blw-filter-chip-remove:focus {
    outline: none;
}

.blw-filter-chip-remove:hover,
.blw-filter-chip-remove:active {
    opacity: 1;
    border: none;
}

/* =========================================================
   PAGINATION
========================================================= */

#blw-pagination-wrapper {
    margin-top: 40px;
}

.blw-pagination-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.blw-pagination-list li {
    margin: 0;
}

.blw-pagination-list a {
    display: inline-block;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #931926;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.blw-pagination-list a:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.blw-pagination-list .blw-pagination-current {
    background: #931926;
    color: #fff;
    border-color: #931926;
    pointer-events: none;
}

.blw-pagination-info {
    padding: 0 12px;
    font-size: 14px;
    color: #666;
}

.blw-pagination-ellipsis {
    padding: 0 6px;
    font-size: 14px;
    color: #666;
}

/* =========================================================
   EMPTY STATES
========================================================= */

.blw-no-results {
    border: 1px solid #e3d7d9;
    background: linear-gradient(135deg, #fff 0%, #faf4f5 100%);
    padding: 28px 24px;
    text-align: center;
    margin: 10px 0 20px;
}

.blw-no-results h3 {
    margin: 0 0 10px;
    color: #931926;
    font-size: 24px;
    line-height: 1.2;
}

.blw-no-results p {
    margin: 0 auto 16px;
    max-width: 620px;
    color: #3a3a3a;
}

.blw-no-results-link {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid #931926;
    color: #931926;
    text-decoration: none;
    font-weight: 600;
}

.blw-no-results-link:hover {
    background: #931926;
    color: #fff;
}

.blw-archive-empty-page {
    min-height: 46vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 12px 36px;
}

.blw-archive-empty-card {
    width: min(760px, 100%);
    border: 1px solid #dcc6cb;
    background: linear-gradient(160deg, #ffffff 0%, #f8eff1 55%, #f4e7ea 100%);
    padding: 34px 28px;
    text-align: center;
}

.blw-archive-empty-eyebrow {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7f5460;
    font-size: 12px;
    font-weight: 700;
}

.blw-archive-empty-card h1 {
    margin: 0 0 12px;
    color: #871b2a;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
}

.blw-archive-empty-card > p {
    margin: 0 auto;
    max-width: 640px;
    color: #333;
}

.blw-archive-empty-actions {
    margin-top: 22px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.blw-archive-empty-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 10px 14px;
    border: 1px solid #931926;
    color: #931926;
    text-decoration: none;
    font-weight: 600;
    background: #fff;
}

.blw-archive-empty-action:hover {
    background: #931926;
    color: #fff;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1024px) {
    .brand-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    #brand-filters {
        flex-direction: column;
        gap: 10px;
    }

    .filter-group {
        width: 100%;
        flex: 0 0 auto;
    }

    .filter-group > div {
        position: relative;
        top: 0;
        margin-top: 6px;
    }

    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .blw-active-filters {
        gap: 8px;
    }

    .blw-filter-chip {
        padding: 6px 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    #brand-filters {
        gap: 8px;
    }

    .brand-container {
        padding: 0 12px;
    }

    .brand-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .filter-group summary {
        padding: 12px 14px;
        font-size: 14px;
    }

    .filter-group > div {
        padding: 12px 14px 14px;
    }

    .blw-active-filters {
        gap: 6px;
        margin-bottom: 16px;
    }

    .blw-filter-chip {
        padding: 6px 10px;
        font-size: 12px;
    }

    .blw-no-results {
        padding: 22px 14px;
    }

    .blw-no-results h3 {
        font-size: 20px;
    }

    .blw-archive-empty-card {
        padding: 24px 16px;
    }

    .blw-archive-empty-action {
        width: 100%;
        min-width: 0;
    }
}
