/* Our Brands index — /ourBrands */
.ourbrands-page {
    background: #eef1f5;
    padding: 48px 0 64px;
}

.ourbrands-intro {
    max-width: 720px;
    margin: 0 auto 32px;
    text-align: center;
}

.ourbrands-intro h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.ourbrands-intro .heading_dot {
    color: #eb373f;
}

.ourbrands-intro p {
    color: #5c6370;
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.6;
}

.ourbrands-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #cfd6e0;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(26, 26, 46, 0.04);
}

.ourbrands-count-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 8px 14px 8px 10px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fb 100%);
    border: 1px solid #dde3ea;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(26, 26, 46, 0.04);
}

.ourbrands-count-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(235, 55, 63, 0.1);
    color: #eb373f;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.ourbrands-count-icon--muted {
    background: #eef1f5;
    color: #9aa3b2;
}

.ourbrands-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eb373f;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(235, 55, 63, 0.28);
}

.ourbrands-count-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: #3d4654;
    letter-spacing: 0.01em;
}

.ourbrands-count-label--solo {
    padding-right: 4px;
    color: #6b7280;
    font-weight: 500;
}

.ourbrands-search-wrap {
    position: relative;
    flex: 1 1 260px;
    max-width: 360px;
}

.ourbrands-search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa3b2;
    font-size: 0.9rem;
    pointer-events: none;
}

.ourbrands-search {
    width: 100%;
    padding: 11px 14px 11px 40px;
    border: 1px solid #cfd6e0;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #1a1a2e;
    background: #fafbfc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ourbrands-search:focus {
    outline: none;
    border-color: #eb373f;
    box-shadow: 0 0 0 3px rgba(235, 55, 63, 0.12);
    background: #fff;
}

/* Panel wrapping all brand rows */
.ourbrands-rows {
    background: #fff;
    border: 1px solid #cfd6e0;
    border-radius: 16px;
    padding: 28px 24px 8px;
    box-shadow: 0 4px 18px rgba(26, 26, 46, 0.06);
}

.ourbrands-row {
    margin: 0;
}

.ourbrands-row-rule {
    display: block;
    border: none;
    height: 0;
    margin: 28px 0;
    border-top: 2px solid #e2e8f0;
    opacity: 1;
}

.ourbrands-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

@media (min-width: 768px) {
    .ourbrands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 992px) {
    .ourbrands-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 22px;
    }

    .ourbrands-rows {
        padding: 32px 28px 12px;
    }
}

.ourbrands-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 220px;
    background: #fff;
    border: 2px solid #c5cdd8;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    box-shadow: 0 2px 8px rgba(26, 26, 46, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ourbrands-card:hover {
    transform: translateY(-3px);
    border-color: #eb373f;
    box-shadow: 0 10px 24px rgba(235, 55, 63, 0.14);
}

.ourbrands-card:focus-visible {
    outline: 2px solid #eb373f;
    outline-offset: 2px;
}

.ourbrands-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    padding: 18px 20px;
    background: #f3f5f8;
    border-bottom: 2px solid #e8ecf1;
}

.ourbrands-card__logo img {
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

.ourbrands-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 12px 16px;
    text-align: center;
    background: #fff;
    border-top: 1px solid #f0f2f5;
}

.ourbrands-card__name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.35;
    margin: 0 0 8px;
    word-break: break-word;
}

.ourbrands-card:hover .ourbrands-card__name {
    color: #eb373f;
}

.ourbrands-card__cta {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
    padding: 5px 10px;
    border: 1px solid #dde3ea;
    border-radius: 20px;
    background: #f8f9fb;
}

.ourbrands-card:hover .ourbrands-card__cta {
    color: #eb373f;
    border-color: rgba(235, 55, 63, 0.35);
    background: rgba(235, 55, 63, 0.06);
}

.ourbrands-empty {
    text-align: center;
    padding: 48px 24px;
    background: #fafbfc;
    border-radius: 12px;
    border: 2px dashed #c5cdd8;
    color: #5c6370;
}

.ourbrands-empty i {
    font-size: 2rem;
    color: #c5ccd6;
    margin-bottom: 12px;
}

.ourbrands-pagination {
    margin-top: 36px;
    padding: 8px 0 4px;
    text-align: center;
}

.ourbrands-pager {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #cfd6e0;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(26, 26, 46, 0.05);
}

.ourbrands-pager-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0 4px;
}

.ourbrands-pager-list li {
    margin: 0;
    padding: 0;
}

.ourbrands-pager-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #cfd6e0;
    border-radius: 10px;
    background: #fff;
    color: #3d4654;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

a.ourbrands-pager-num:hover {
    border-color: #eb373f;
    color: #eb373f;
    background: rgba(235, 55, 63, 0.06);
}

.ourbrands-pager-num.is-active {
    background: #eb373f;
    border-color: #eb373f;
    color: #fff;
    box-shadow: 0 4px 14px rgba(235, 55, 63, 0.28);
    cursor: default;
}

.ourbrands-pager-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 40px;
    color: #9aa3b2;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    user-select: none;
}

.ourbrands-pager-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: #eb373f;
    color: #fff;
    font-size: 0.85rem;
    text-decoration: none !important;
    box-shadow: 0 3px 10px rgba(235, 55, 63, 0.25);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a.ourbrands-pager-btn:hover {
    background: #d42f37;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(235, 55, 63, 0.32);
}

.ourbrands-pager-btn.is-disabled {
    background: #e8ecf1;
    color: #b0b8c4;
    box-shadow: none;
    cursor: not-allowed;
}

.ourbrands-pager-meta {
    margin: 12px 0 0;
    font-size: 0.82rem;
    color: #6b7280;
    font-weight: 500;
}

.ourbrands-banner .banner_text h1,
.ourbrands-banner .banner_text h2 {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ourbrands-banner .banner_subtitle {
    font-size: 1.05rem;
    opacity: 0.92;
    max-width: 520px;
}

.ourbrands-card.is-hidden {
    display: none;
}

.ourbrands-row.is-row-empty {
    display: none;
}

.ourbrands-row-rule.is-row-rule-hidden {
    display: none;
}

@media (max-width: 575px) {
    .ourbrands-page {
        padding: 32px 0 48px;
    }

    .ourbrands-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .ourbrands-search-wrap {
        max-width: none;
    }

    .ourbrands-rows {
        padding: 20px 14px 4px;
    }

    .ourbrands-grid {
        gap: 14px;
    }

    .ourbrands-card {
        min-height: 190px;
    }

    .ourbrands-card__logo {
        height: 110px;
        padding: 14px 16px;
    }

    .ourbrands-card__logo img {
        max-height: 72px;
    }

    .ourbrands-row-rule {
        margin: 20px 0;
    }

    .ourbrands-pager {
        gap: 6px;
        padding: 10px 12px;
    }

    .ourbrands-pager-num,
    .ourbrands-pager-btn {
        min-width: 36px;
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}
