/* =============================================================================
   BRANDS PAGE — kategori marka listeleme (JamesEdition tarzı)
   ============================================================================= */

.brands-page {
    background: #fff;
    color: #1a1a1a;
    font-family: 'Inter', 'Helvetica Neue', sans-serif;
}

/* ---------- HERO ---------- */
.brands-hero {
    background: #fff;
    padding: 125px 0 36px;
    border-bottom: 1px solid #ececec;
}

.brands-breadcrumb {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.brands-breadcrumb a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
}
.brands-breadcrumb a:hover { color: #1a1a1a; }
.brands-breadcrumb .sep { color: #ccc; }
.brands-breadcrumb .current { color: #1a1a1a; }

.brands-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #DAB668;
    margin-bottom: 12px;
}
.brands-hero-kicker::before {
    content: '';
    width: 22px;
    height: 1px;
    background: #DAB668;
    display: inline-block;
}

.brands-hero-title {
    font-family: 'Poltawski Nowy', 'Inter', serif;
    font-size: 44px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.1;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.brands-hero-sub {
    font-size: 15px;
    color: #555;
    margin: 0;
    max-width: 680px;
    line-height: 1.55;
}

.brands-hero-meta {
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: #f7f5f0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
}
.brands-hero-meta strong { font-weight: 700; }
.brands-hero-meta i { color: #DAB668; font-size: 12px; }

/* ---------- TOOLBAR (sticky) ---------- */
.brands-toolbar-wrap {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    border-bottom: 1px solid #ececec;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}
.brands-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
}

.brands-search {
    position: relative;
    flex: 0 1 360px;
}
.brands-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 13px;
}
.brands-search input {
    width: 100%;
    padding: 11px 16px 11px 40px;
    border-radius: 999px;
    border: 1px solid #e2e2e2;
    background: #fff;
    color: #1a1a1a;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}
.brands-search input::placeholder { color: #aaa; }
.brands-search input:focus {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.06);
}

.brands-alpha {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    flex: 1 1 auto;
    justify-content: flex-end;
}
.brands-alpha a {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #555;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    border: 1px solid transparent;
}
.brands-alpha a:hover {
    background: #f7f5f0;
    color: #1a1a1a;
}
.brands-alpha a.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* ---------- SECTIONS ---------- */
.brands-section {
    padding: 48px 0 80px;
}

.brands-letter-group {
    margin-bottom: 56px;
    scroll-margin-top: 90px;
}
.brands-letter-group:last-child { margin-bottom: 0; }

.brands-letter-heading {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #ececec;
}
.brands-letter-badge {
    font-family: 'Poltawski Nowy', 'Inter', serif;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.01em;
    line-height: 1;
}
.brands-letter-badge::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: #DAB668;
    margin-left: 12px;
    vertical-align: middle;
}
.brands-letter-count {
    font-size: 12px;
    font-weight: 500;
    color: #888;
    letter-spacing: 0.04em;
}

/* ---------- GRID ---------- */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid #ececec;
    border-left: 1px solid #ececec;
}

.brand-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: #fff;
    border-right: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
    text-decoration: none;
    color: #1a1a1a;
    transition: background 0.2s ease, color 0.2s ease;
    min-height: 64px;
}
.brand-card:hover {
    background: #1a1a1a;
    color: #fff;
}

.brand-card-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    padding-right: 12px;
}

.brand-card-arrow {
    font-size: 13px;
    color: #ccc;
    transition: color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}
.brand-card:hover .brand-card-arrow {
    color: #DAB668;
    transform: translateX(3px);
}

/* ---------- EMPTY / NO-RESULTS ---------- */
.brands-empty,
.brands-no-results {
    text-align: center;
    padding: 72px 20px;
    color: #555;
    border: 1px dashed #e5e5e5;
    border-radius: 8px;
    background: #fafafa;
}
.brands-empty i,
.brands-no-results i {
    font-size: 36px;
    color: #DAB668;
    margin-bottom: 14px;
}
.brands-empty p,
.brands-no-results p {
    font-size: 15px;
    margin: 0 0 18px;
    color: #1a1a1a;
}
.brands-back-btn {
    display: inline-block;
    padding: 10px 22px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background 0.2s ease;
}
.brands-back-btn:hover {
    background: #DAB668;
    color: #1a1a1a;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1199.98px) {
    .brands-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991.98px) {
    .brands-hero { padding: 44px 0 28px; }
    .brands-hero-title { font-size: 34px; }
    .brands-hero-sub { font-size: 14px; }
    .brands-toolbar { padding: 12px 0; gap: 12px; }
    .brands-section { padding: 36px 0 64px; }
    .brands-letter-group { margin-bottom: 44px; scroll-margin-top: 80px; }
    .brands-letter-badge { font-size: 24px; }
    .brand-card { padding: 16px 18px; min-height: 60px; }
}
@media (max-width: 767.98px) {
    .brands-hero { padding: 36px 0 22px; }
    .brands-hero-title { font-size: 26px; }
    .brands-hero-sub { font-size: 13px; }
    .brands-hero-meta { margin-top: 18px; font-size: 12px; padding: 5px 12px; }
    .brands-toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
    .brands-search { flex: 1 1 auto; }
    .brands-alpha { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
    .brands-alpha::-webkit-scrollbar { height: 0; }
    .brands-alpha a { width: 30px; height: 30px; font-size: 12px; flex-shrink: 0; }
    .brands-section { padding: 32px 0 56px; }
    .brands-letter-group { margin-bottom: 36px; }
    .brands-letter-badge { font-size: 22px; }
    .brands-grid { grid-template-columns: repeat(2, 1fr); }
    .brand-card { padding: 14px 14px; min-height: 56px; }
    .brand-card-name { font-size: 13px; padding-right: 8px; }
}
@media (max-width: 419.98px) {
    .brands-grid { grid-template-columns: 1fr; }
}
