/* Extracted from inline <style> in templates/storefront/brands.html */

/* --- Block 1 --- */

.brands-page{max-width:1200px;margin:0 auto;padding:24px 16px 48px}
.brands-header{margin-bottom:32px}
.brands-header h1{font-size:28px;font-weight:700;color:#1f2937;margin:0 0 8px}
.brands-header p{color:#6b7280;font-size:15px;margin:0}
.brands-nav{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:32px;padding:12px 16px;background:#f9fafb;border-radius:10px;border:1px solid #e5e7eb}
.brands-nav a{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px;font-size:14px;font-weight:600;color:#4b5563;text-decoration:none;transition:all .15s}
.brands-nav a:hover{background:#e5e7eb;color:#1f2937}
.brands-nav a.is-active{background:var(--primary,#2563eb);color:#fff}
.brand-group{margin-bottom:32px}
.brand-group__letter{font-size:24px;font-weight:700;color:var(--primary,#2563eb);padding-bottom:8px;border-bottom:2px solid #e5e7eb;margin-bottom:16px}
.brand-group__list{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px}
.brand-card{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:#fff;border:1px solid #e5e7eb;border-radius:10px;text-decoration:none;color:#1f2937;transition:all .15s}
.brand-card:hover{border-color:var(--primary,#2563eb);box-shadow:0 2px 8px rgba(37,99,235,.1);transform:translateY(-1px)}
.brand-card__name{font-size:14px;font-weight:600}
.brand-card__count{font-size:12px;color:#6b7280;background:#f3f4f6;padding:3px 10px;border-radius:999px;white-space:nowrap}
.brands-stats{display:flex;gap:16px;margin-bottom:24px;flex-wrap:wrap}
.brands-stat{padding:12px 20px;background:#f0f7ff;border:1px solid #d0e4f5;border-radius:10px;font-size:13px;color:#1e3a5f;font-weight:500}
.brands-stat strong{font-size:20px;display:block;margin-bottom:2px}

/* Featured brands */
.brands-featured{margin-bottom:32px}
.brands-featured__title{font-size:18px;font-weight:700;color:#1f2937;margin:0 0 14px;display:flex;align-items:center;gap:8px}
.brands-featured__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.brand-featured-card{position:relative;display:flex;flex-direction:column;justify-content:space-between;padding:20px 16px;min-height:120px;background:linear-gradient(135deg,#eff6ff 0%,#dbeafe 100%);border:1px solid #bfdbfe;border-radius:12px;text-decoration:none;color:inherit;transition:all .2s;overflow:hidden}
.brand-featured-card::before{content:"";position:absolute;top:-40px;right:-40px;width:120px;height:120px;border-radius:50%;background:rgba(37,99,235,.08)}
.brand-featured-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px rgba(37,99,235,.18);border-color:#60a5fa}
.brand-featured-card__name{position:relative;font-size:18px;font-weight:800;color:#1e3a5f;line-height:1.2;z-index:1;margin-bottom:auto}
.brand-featured-card__count{position:relative;display:inline-flex;align-items:center;gap:4px;font-size:13px;color:#2563eb;font-weight:600;z-index:1;margin-top:auto}

/* Quick brand search */
.brands-search{position:relative;margin-bottom:20px}
.brands-search__input{width:100%;padding:12px 16px 12px 44px;border:1px solid #e5e7eb;border-radius:10px;font-size:15px;background:#fff;transition:border-color .15s,box-shadow .15s}
.brands-search__input:focus{outline:none;border-color:var(--primary,#2563eb);box-shadow:0 0 0 3px rgba(37,99,235,.15)}
.brands-search__icon{position:absolute;top:50%;left:14px;transform:translateY(-50%);color:#9ca3af;pointer-events:none}
.brand-card--hidden{display:none !important}
.brand-group--empty{display:none !important}

@media(max-width:640px){
  .brand-group__list{grid-template-columns:1fr}
  .brands-nav a{width:32px;height:32px;font-size:12px}
  .brands-header h1{font-size:22px}
  .brands-featured__grid{grid-template-columns:repeat(2,1fr)}
  .brand-featured-card{padding:14px 12px;min-height:90px}
  .brand-featured-card__name{font-size:15px}
  .brand-featured-card__count{font-size:12px}
}
