/*
 * Brands page — page-specific styles.
 * Extracted from DesignV2 pages/brands.html inline <style>.
 */

.brands-vertical-select {
    display: flex; align-items: center; gap: 16px;
    margin: 56px 0 48px;
    flex-wrap: wrap;
}
.brands-vertical-select > .v-label {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem; font-weight: 700; color: #111213;
    white-space: nowrap;
}

.v-dropdown { position: relative; min-width: 260px; }
.v-dropdown-btn {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: #fff; color: #111213;
    border: 1.5px solid rgba(0,0,0,0.12);
    border-radius: 999px;
    padding: 13px 22px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem; font-weight: 600;
    cursor: pointer;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.v-dropdown-btn:hover { border-color: #8dbb44; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.v-dropdown-btn:focus-visible { outline: none; border-color: #0c6478; box-shadow: 0 0 0 3px rgba(12,100,120,0.2); }
.v-dropdown-btn .v-chevron {
    width: 10px; height: 10px;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    transform: translateY(-25%) rotate(45deg);
    transition: transform 0.22s ease;
    flex-shrink: 0;
}
.v-dropdown.open .v-dropdown-btn { border-color: #0c6478; box-shadow: 0 0 0 3px rgba(12,100,120,0.15); background: #f4f8f9; }
.v-dropdown.open .v-chevron { transform: translateY(10%) rotate(-135deg); }

.v-dropdown-panel {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.14);
    padding: 8px;
    z-index: 50;
    max-height: 340px;
    overflow: auto;
    opacity: 0; transform: translateY(-6px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.v-dropdown.open .v-dropdown-panel {
    opacity: 1; transform: translateY(0) scale(1);
    pointer-events: auto;
}
.v-option {
    display: block; width: 100%; text-align: left;
    padding: 10px 16px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.92rem; font-weight: 500; color: #111213;
    background: transparent; border: 0; border-radius: 8px;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}
.v-option:hover, .v-option:focus-visible { background: #eef5e6; color: #5a8422; outline: none; }
.v-option.is-active { background: #8dbb44; color: #fff; font-weight: 600; }

@media (max-width: 560px) {
    .brands-vertical-select { flex-direction: column; align-items: stretch; gap: 8px; margin: 32px 0 40px; }
    .v-dropdown { min-width: 0; }
}

.brands-page-section { border-bottom: none !important; padding-bottom: 24px; margin-bottom: 24px; }

@keyframes brand-wave-pop {
    0%   { transform: translateY(0) scale(1); box-shadow: 0 0 0 rgba(141,187,68,0); border-color: rgba(0,0,0,0.08); }
    50%  { transform: translateY(-3px) scale(1.025); box-shadow: 0 6px 16px rgba(141,187,68,0.18); border-color: rgba(141,187,68,0.6); }
    100% { transform: translateY(0) scale(1); box-shadow: 0 0 0 rgba(141,187,68,0); border-color: rgba(0,0,0,0.08); }
}
@media (min-width: 641px) and (prefers-reduced-motion: no-preference) {
    .brands-page-section.is-waving .brand-page-logo {
        animation: brand-wave-pop 1s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
}

@media (max-width: 640px) {
    .brands-page-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding: 4px 16px 14px;
        margin: 0 -16px;
        grid-template-columns: none;
        scrollbar-width: none;
    }
    .brands-page-grid::-webkit-scrollbar { display: none; }
    .brand-page-logo {
        flex: 0 0 110px;
        width: 110px;
        aspect-ratio: 1;
        padding: 10px;
        scroll-snap-align: start;
    }
    .brand-page-logo img { max-height: 75%; max-width: 80%; }
    .brands-page-section { padding-bottom: 12px; margin-bottom: 16px; }
}
