.brands-directory { --brand-ink: #20282d; --brand-muted: #606a72; --brand-line: #dce2e3; --brand-surface: #fff; --brand-accent: #17654e; padding: 24px 0 48px; color: var(--brand-ink); scroll-margin-top: 170px; letter-spacing: 0; }
html[data-theme="dark"] .brands-directory { --brand-ink: #f0f2f3; --brand-muted: #b6bec3; --brand-line: #444d50; --brand-surface: #242a2c; --brand-accent: #91d8ba; }
.brands-directory a { color: inherit; text-decoration: none; }
.brands-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--brand-muted); margin-bottom: 28px; }
.brands-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--brand-line); }
.brands-heading h1 { font-size: 30px; line-height: 1.2; margin: 0 0 8px; color: var(--brand-ink); letter-spacing: 0; }
.brands-heading p { margin: 0; font-size: 13px; color: var(--brand-muted); }
.brands-heading p span { margin: 0 10px; }
.brands-search { display: flex; width: 320px; max-width: 100%; height: 44px; border: 1px solid var(--brand-line); border-radius: 4px; background: var(--brand-surface); overflow: hidden; }
.brands-search input { min-width: 0; width: 100%; border: 0; border-radius: 0; background: transparent; color: var(--brand-ink); padding: 0 12px; font-size: 16px; }
.brands-search button { flex: 0 0 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--brand-accent); cursor: pointer; }
.brands-directory :is(a, button, input):focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 3px; }
.brands-search:focus-within { outline: 2px solid var(--brand-accent); outline-offset: 2px; }
.brands-search input:focus-visible { outline: none; }
.brands-search-result { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 20px; font-size: 14px; }
.brands-search-result a { display: inline-flex; gap: 6px; align-items: center; color: var(--brand-accent); }
.brands-directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.brand-directory-item { display: flex; flex-direction: column; min-width: 0; background: var(--brand-surface); border: 1px solid var(--brand-line); border-radius: 6px; overflow: hidden; }
.brand-directory-logo { display: grid; place-items: center; height: 156px; padding: 24px; background: #fff; color: #20282d !important; border-bottom: 1px solid var(--brand-line); }
.brand-directory-logo img { width: 200px; max-width: 100%; height: 100px; object-fit: contain; }
.brand-directory-logo strong { font-size: 26px; overflow-wrap: anywhere; text-align: center; }
.brand-directory-copy { padding: 20px 20px 0; }
.brand-directory-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.brand-directory-title h2 { margin: 0; font-size: 20px; line-height: 1.35; overflow-wrap: anywhere; color: var(--brand-ink); letter-spacing: 0; }
.brand-directory-title > span { color: var(--brand-muted); font-size: 12px; }
.brand-directory-copy p { font-size: 14px; line-height: 1.65; color: var(--brand-muted); margin: 12px 0 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.brand-directory-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 20px; margin-top: auto; }
.brand-directory-products a { min-width: 0; }
.brand-directory-products img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; }
.brand-product-visual { aspect-ratio: 1; background: #fff; }
.brand-directory-products img[hidden] { display: none; }
.brand-product-no-image { display: none; width: 100%; height: 100%; place-items: center; color: #7a858b; }
.brand-directory-products img[hidden] + .brand-product-no-image { display: grid; }
.brand-directory-products span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; color: var(--brand-muted); }
.brand-directory-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 20px; border-top: 1px solid var(--brand-line); color: var(--brand-accent) !important; font-size: 14px; font-weight: 600; }
.brand-directory-link:hover { background: color-mix(in srgb, var(--brand-accent) 8%, var(--brand-surface)); }
.brands-directory-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 24px 0; margin-top: 32px; border-top: 1px solid var(--brand-line); font-size: 14px; color: var(--brand-muted); }
.brands-directory-footer a { display: inline-flex; gap: 10px; align-items: center; color: var(--brand-accent); }
.brands-empty { grid-column: 1 / -1; text-align: center; padding: 56px 16px; color: var(--brand-muted); }
.brands-empty h2 { font-size: 18px; color: var(--brand-ink); }
@media (max-width: 1000px) { .brands-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 600px) { .brands-directory { padding-top: 16px; } .brands-heading { align-items: stretch; flex-direction: column; gap: 20px; } .brands-heading h1 { font-size: 26px; } .brands-search { width: 100%; } .brands-directory-grid { grid-template-columns: minmax(0, 1fr); } .brand-directory-logo { height: 132px; } .brands-breadcrumb { margin-bottom: 20px; } }
.shop-body.brands-directory-page .shop-main { width: min(calc(100% - 2 * var(--storefront-gutter, 24px)), var(--storefront-max-width, 1400px)) !important; margin-inline: auto; padding-inline: 0; }
