/* css/bank-catalogue.css — testata, ricerca e chip della pagina di una banca /{slug}/strains~{id}
   (pages/catalogue/vendor.php, CatalogueController::vendor). La griglia delle card resta in catalogue.css / strain-card.css.
   Stesso linguaggio di /banks (banks.css); .banks-kicker è ripetuto qui perché banks.css non è caricato. */

.bank-page { max-width: 1240px; }

/* ─── Briciole: Home › Seedbanks › {banca} ─── */
.bank-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin: 0 0 12px;
    color: rgba(232, 240, 255, 0.65);
    font-size: 0.88rem;
}
.bank-crumbs a {
    color: rgba(232, 240, 255, 0.65);
    font-weight: 600;
    text-decoration: none;
}
.bank-crumbs a:hover, .bank-crumbs a:focus-visible { color: #4ade80; }
.bank-crumbs [aria-current] { color: rgba(232, 240, 255, 0.9); overflow-wrap: anywhere; }

/* ─── Testata ─── */
.bank-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0 0 18px;
    padding: 24px 26px;
    border-radius: 18px;
    background:
        radial-gradient(620px 240px at 92% -30%, rgba(46, 204, 113, 0.18), transparent 70%),
        radial-gradient(520px 200px at -5% 130%, rgba(99, 135, 182, 0.18), transparent 70%),
        rgba(8, 14, 28, 0.82);
    border: 1px solid rgba(46, 204, 113, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.bank-hero-logo {
    flex: 0 0 auto;
    width: 180px;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.bank-hero-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.bank-hero-text { min-width: 0; }

.banks-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(46, 204, 113, 0.14);
    color: #4ade80;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bank-hero h1 {
    margin: 10px 0 6px;
    font-size: clamp(1.5rem, 3.6vw, 2.3rem);
    line-height: 1.15;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.01em;
}
/* "Cannabis Strains Catalogue": resta nell'H1 (SEO) ma più discreto del nome */
.bank-hero h1 span {
    display: block;
    margin-top: 2px;
    font-size: 0.5em;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(232, 240, 255, 0.6);
}

.bank-hero-sub {
    margin: 0;
    color: rgba(232, 240, 255, 0.72);
    font-size: 0.98rem;
    line-height: 1.5;
}
.bank-hero-total {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(46, 204, 113, 0.12);
    color: #4ade80;
    font-size: 0.85rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ─── Ricerca + chip tipo ─── */
.bank-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
}

.bank-search {
    position: relative;
    flex: 1 1 260px;
    max-width: 400px;
    margin: 0;
}
.bank-search svg,
.bank-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: rgba(232, 240, 255, 0.6);
    pointer-events: none;
}
.bank-search input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.32);
    color: #fff;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.bank-search input::placeholder { color: rgba(232, 240, 255, 0.45); }
.bank-search input:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.45);
    border-color: rgba(46, 204, 113, 0.6);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.18);
}

.bank-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.bank-chips .filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(232, 240, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.bank-chips .filter-btn svg,
.bank-chips .filter-btn i { flex: 0 0 auto; width: 1em; height: 1em; display: inline-block; }
.bank-chips .filter-btn:hover:not(:disabled) {
    color: #fff;
    border-color: rgba(46, 204, 113, 0.5);
}
.bank-chips .filter-btn.active {
    background: #2ecc71;
    border-color: #2ecc71;
    color: #06210f;
}
.bank-chips .filter-btn.active:hover:not(:disabled) { /* l'hover generico darebbe testo bianco sul verde */
    background: #45e08a;
    border-color: #45e08a;
    color: #06210f;
}
.bank-chips .filter-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.bank-chips .filter-btn:focus-visible { outline: 2px solid #2ecc71; outline-offset: 2px; }

.chip-count {
    flex: 0 0 auto;
    min-width: 1.6em;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    text-align: center;
    line-height: 1.4;
}
.filter-btn.active .chip-count { background: rgba(6, 33, 15, 0.18); }

/* Griglia in aggiornamento (vendor-catalogue.js) */
#vendorStrainsGrid.is-loading { pointer-events: none; }

/* ─── Telefono ─── */
@media (max-width: 767.98px) {
    .bank-hero { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px 16px; border-radius: 14px; }
    .bank-hero-logo { width: 150px; }
    .bank-search { flex-basis: 100%; max-width: none; }
    .bank-toolbar > * { min-width: 0; }
    .bank-hero-text, .bank-hero h1 { max-width: 100%; overflow-wrap: anywhere; }
    /* chip in griglia a 2 colonne: tutti visibili, niente riga che esce dallo schermo */
    .bank-chips {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }
    .bank-chips .filter-btn {
        min-width: 0;
        justify-content: flex-start;
        padding: 8px 10px;
        font-size: 0.82rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .bank-chips .filter-btn .chip-count { margin-left: auto; flex: 0 0 auto; }
}

/* catalogue.css forza le icone duotone in bianco: sul chip attivo (verde) seguono il colore del testo */
.bank-chips .filter-btn.active .fa-primary,
.bank-chips .filter-btn.active .fa-secondary { fill: currentColor !important; }
