/* =============================================================
   BRANDS HUB — /brands/         (page-lux-brands.php)
   BRAND ARCHIVE — /brand/{slug}/ (taxonomy-product_brand.php)
   Стиль: NOIR Premium Boutique
   Добавить в: Внешний вид → Настроить → Дополнительный CSS
   или в wp-content/themes/merchant/lux-custom.css
   ============================================================= */

/* ── ОБЩИЕ ── */
.lux-brands-page,
.lux-brand-archive {
    font-family: 'Montserrat', 'Inter', sans-serif;
    background: #fff;
    color: #111;
}

/* ────────────────────────────────────────────────
   СТРАНИЦА /brands/ — ХАБ ВСЕХ БРЕНДОВ
   ──────────────────────────────────────────────── */

/* Hero */
.lux-brands-hero {
    padding: 64px 40px 48px;
    text-align: center;
    border-bottom: 1px solid #ebebeb;
    background: #fafafa;
}
.lux-brands-breadcrumbs {
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 20px;
}
.lux-brands-breadcrumbs a {
    color: #999;
    text-decoration: none;
    transition: color .2s;
}
.lux-brands-breadcrumbs a:hover { color: #111; }
.lux-brands-breadcrumbs .sep { margin: 0 8px; }

.lux-brands-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0 0 16px;
    color: #0a0a0a;
}
.lux-brands-subtitle {
    font-size: 15px;
    color: #666;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Alphabet Nav */
.lux-brands-alphabet {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 24px 40px;
    background: #fff;
    border-bottom: 1px solid #ebebeb;
}
.lux-brands-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all .2s;
}
.lux-brands-letter:hover {
    background: #0a0a0a;
    color: #fff;
    border-color: #0a0a0a;
}

/* Alpha Group */
.lux-brands-alpha-group {
    padding: 40px;
}
.lux-brands-alpha-letter {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #bbb;
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ebebeb;
}

/* Brands Grid */
.lux-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

/* Brand Card */
.lux-brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 24px 16px 16px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: border-color .25s, box-shadow .25s, transform .25s;
    min-height: 130px;
}
.lux-brand-card:hover {
    border-color: #111;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    transform: translateY(-2px);
}
.lux-brand-card__logo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.lux-brand-card__logo img {
    max-width: 140px;
    max-height: 64px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .7;
    transition: filter .3s, opacity .3s;
}
.lux-brand-card:hover .lux-brand-card__logo img {
    filter: grayscale(0);
    opacity: 1;
}
.lux-brand-card__name-text {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    text-align: center;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.lux-brand-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    gap: 8px;
}
.lux-brand-card__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #333;
}
.lux-brand-card__count {
    font-size: 11px;
    color: #aaa;
    white-space: nowrap;
}

/* CTA */
.lux-brands-cta {
    text-align: center;
    padding: 60px 40px;
    background: #0a0a0a;
    color: #fff;
    margin-top: 40px;
}
.lux-brands-cta__text {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 24px;
}

/* ────────────────────────────────────────────────
   СТРАНИЦА /brand/{slug}/ — АРХИВ БРЕНДА
   ──────────────────────────────────────────────── */

/* Hero */
.lux-brand-hero {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0a0a0a;
}
.lux-brand-hero.no-image {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    min-height: 220px;
}
.lux-brand-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(2px) brightness(.35);
    transform: scale(1.05);
    transition: transform 8s ease;
}
.lux-brand-hero:hover .lux-brand-hero__bg { transform: scale(1.0); }
.lux-brand-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.4) 0%, rgba(0,0,0,.7) 100%);
}
.lux-brand-hero__content {
    position: relative;
    z-index: 2;
    padding: 60px 40px;
    max-width: 900px;
}

/* Breadcrumbs in hero */
.lux-brand-breadcrumbs {
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    margin-bottom: 24px;
}
.lux-brand-breadcrumbs a {
    color: rgba(255,255,255,.5);
    text-decoration: none;
    transition: color .2s;
}
.lux-brand-breadcrumbs a:hover { color: rgba(255,255,255,.9); }
.lux-brand-breadcrumbs .sep { margin: 0 8px; }

/* Brand logo in hero */
.lux-brand-hero__logo {
    margin-bottom: 20px;
}
.lux-brand-hero__logo img {
    max-height: 60px;
    max-width: 200px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .9;
}

.lux-brand-hero__title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -.03em;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.1;
}
.lux-brand-hero__title span {
    display: block;
}
.lux-brand-hero__desc {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,.7);
    max-width: 620px;
    margin: 0 0 16px;
}
.lux-brand-hero__meta {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
}

/* Products section */
.lux-brand-products {
    padding: 60px 40px;
    max-width: 1600px;
    margin: 0 auto;
}
.lux-brand-products__header {
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ebebeb;
}
.lux-brand-products__title {
    font-size: 22px;
    font-weight: 600;
    color: #0a0a0a;
    margin: 0;
    letter-spacing: -.01em;
}

/* Back link */
.lux-brand-back {
    padding: 0 40px 60px;
    max-width: 1600px;
    margin: 0 auto;
}
.lux-brand-back__link {
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #888;
    text-decoration: none;
    transition: color .2s;
}
.lux-brand-back__link:hover { color: #0a0a0a; }

/* Empty state */
.lux-brand-empty {
    text-align: center;
    padding: 80px 40px;
    color: #888;
}

/* ── ОБЩИЕ КНОПКИ ── */
.lux-btn-dark {
    display: inline-block;
    padding: 14px 32px;
    background: #fff;
    color: #0a0a0a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid #fff;
    border-radius: 2px;
    transition: all .25s;
}
.lux-brand-empty .lux-btn-dark {
    background: #0a0a0a;
    color: #fff;
    border-color: #0a0a0a;
}
.lux-btn-dark:hover {
    background: transparent;
    color: #fff;
}
.lux-brand-empty .lux-btn-dark:hover {
    background: transparent;
    color: #0a0a0a;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .lux-brands-hero,
    .lux-brands-alpha-group,
    .lux-brand-products,
    .lux-brand-back {
        padding-left: 20px;
        padding-right: 20px;
    }
    .lux-brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    .lux-brand-hero__content {
        padding: 48px 20px;
    }
    .lux-brands-alphabet {
        padding: 16px 20px;
    }
}