/* =============================================================
   PRODUCERS LIST PAGE  –  la-producers.css
   ============================================================= */

/* ── Hero banner (full-bleed, like .la-archive-hero) ── */
.la-producers-hero {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    background: var(--la-dark);
    text-align: center;
    padding: 5rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.la-producers-hero-inner {
    /* no extra wrapping needed */
}
.la-producers-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.1;
}
.la-producers-hero-count {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255,255,255,0.75);
    margin: 0;
}

/* ── Immagine venditore (in cima all'hero, pagina distributore/associazione) ── */
.la-producers-hero-img {
    width: 96px;
    height: 96px;
    border-radius: 9999px;
    overflow: hidden;
    background: rgba(255,255,255,0.1);
    margin: 0 auto;
    border: 2px solid rgba(255,255,255,0.3);
}
.la-producers-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Nome venditore sotto l'immagine ── */
.la-producers-hero-vendor-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff !important;
    margin: 0;
    text-align: center;
}

/* ── Descrizione venditore nell'hero (clamp 2 righe + leggi di più) ── */
.la-producers-hero-desc {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.la-producers-hero-desc-text {
    margin: 0;
    font-size: 0.9375rem;
    color: #ffffff !important;
    line-height: 1.6;
    white-space: pre-line;
}
.la-producers-hero-desc-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.la-producers-hero-desc-toggle {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0;
    background: none;
    border: none;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff !important;
    text-decoration: underline;
    cursor: pointer;
}
.la-producers-hero-desc-toggle:hover {
    text-decoration: none;
}
.la-producers-shop-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    align-self: center;
    margin-top: 0.5rem;
    padding: 0.5rem 1.25rem;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
}
.la-producers-shop-link:hover {
    background-color: #fff;
    color: var(--la-dark);
}

/* ── Barra di ricerca ── */
.la-producers-search-wrap {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}
.la-producers-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border: none;
    border-radius: 9999px;
    padding: 1rem 2rem;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    transition: box-shadow 0.15s;
}
.la-producers-search:focus-within {
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}
.la-producers-search-icon { color: var(--la-muted); flex-shrink: 0; width: 20px; height: 20px; }
.la-producers-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.0625rem;
    color: var(--la-text);
    background: transparent;
    font-family: 'APK Protocol', sans-serif;
}
.la-producers-search-input::placeholder { color: var(--la-muted); }

/* ── Grid ── */
.la-producers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
}
@media (max-width: 1024px) { .la-producers-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .la-producers-grid { grid-template-columns: repeat(2, 1fr); gap: 0.875rem; } }

/* ── Singola card produttore ── */
.la-producer-card {
    display: block;
    text-decoration: none !important;
    background: #fff;
    border: 1.5px solid var(--la-border);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.la-producer-card:hover {
    box-shadow: 0 8px 24px rgba(27,61,47,0.12);
    transform: translateY(-3px);
}
.la-producer-card-img {
    width: 100%;
    aspect-ratio: 1;
    background: var(--la-off-white, #f9fafb);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.la-producer-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
    display: block;
}
.la-producer-card:hover .la-producer-card-img img {
    transform: scale(1.04);
}
.la-producer-card-initials {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--la-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.la-producer-card-body {
    padding: 0.875rem 1rem 1rem;
    border-top: 1px solid var(--la-border);
}
.la-producer-card-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--la-text);
    margin: 0 0 0.2rem;
    line-height: 1.3;
    transition: color 0.15s;
}
.la-producer-card:hover .la-producer-card-name { color: var(--la-dark); }
.la-producer-card-count {
    font-size: 0.75rem;
    color: var(--la-muted);
}
.la-producers-empty {
    padding: 4rem 0;
    text-align: center;
    color: var(--la-muted);
    font-size: 0.9375rem;
}

/* =============================================================
   SINGLE PRODUCER PAGE
   ============================================================= */

/* ── Card produttore (in cima alla colonna prodotti) ── */
/* Layout: [img] | [label + nome] | [descrizione] */
.la-producer-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.75rem;
    border-bottom: 1.5px solid var(--la-border);
}

/* Immagine quadrata (o iniziali di fallback se manca l'immagine) */
.la-producer-info-img {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--la-off-white, #f9fafb);
    border: 1.5px solid var(--la-border);
    display: flex;
    align-items: center;
    justify-content: center;
}
.la-producer-info-img .la-producer-card-initials {
    font-size: 2.5rem;
}
.la-producer-info-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Colonna label + nome */
.la-producer-info-name-col {
    flex-shrink: 0;
    min-width: 0;
}
.la-producer-info-label {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--la-muted);
    margin: 0 0 0.25rem;
}
.la-producer-info-name {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--la-dark);
    margin: 0 0 0.75rem;
    line-height: 1.15;
}
.la-producer-info-back {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--la-muted);
    text-decoration: none !important;
    transition: color 0.15s;
}
.la-producer-info-back:hover { color: var(--la-dark); }

/* Descrizione (colonna destra nella card) */
.la-producer-info-desc {
    flex: 1;
    font-size: 0.9375rem;
    color: var(--la-muted);
    line-height: 1.7;
    padding-top: 0.25rem;
}
.la-producer-info-desc-text {
    margin: 0;
    white-space: pre-line;
}
.la-producer-info-desc-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.la-producer-info-desc-toggle {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0;
    background: none;
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--la-dark);
    text-decoration: underline;
    cursor: pointer;
}
.la-producer-info-desc-toggle:hover {
    text-decoration: none;
}

/* =============================================================
   BRAND VIEW PAGE – layout colonne + griglia prodotti
   Selettori multipli per coprire variazioni di body class.
   ============================================================= */

/* ── Due colonne sidebar + main ── */
.shopbrand-brand-view .columns,
.page-products:not(.catalog-category-view) .columns {
    display: flex !important;
    align-items: flex-start;
    gap: 1.75rem;
    padding-top: 2rem;
}
.shopbrand-brand-view .sidebar.sidebar-main,
.shopbrand-brand-view .sidebar-main,
.page-products:not(.catalog-category-view) .sidebar.sidebar-main,
.page-products:not(.catalog-category-view) .sidebar-main {
    width: 220px;
    min-width: 220px;
    flex-shrink: 0;
}
.shopbrand-brand-view .column.main,
.page-products:not(.catalog-category-view) .column.main {
    flex: 1;
    min-width: 0;
}

/* ── Griglia prodotti: 4 colonne ── */
.shopbrand-brand-view .products-grid .product-items,
.shopbrand-brand-view .products-grid ol.products.list.items,
.page-products:not(.catalog-category-view) .products-grid .product-items,
.page-products:not(.catalog-category-view) .products-grid ol.products.list.items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
    .shopbrand-brand-view .products-grid .product-items,
    .shopbrand-brand-view .products-grid ol.products.list.items,
    .page-products:not(.catalog-category-view) .products-grid .product-items,
    .page-products:not(.catalog-category-view) .products-grid ol.products.list.items {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 900px) {
    .shopbrand-brand-view .columns,
    .page-products:not(.catalog-category-view) .columns {
        flex-direction: column;
    }
    .shopbrand-brand-view .sidebar.sidebar-main,
    .shopbrand-brand-view .sidebar-main,
    .page-products:not(.catalog-category-view) .sidebar.sidebar-main,
    .page-products:not(.catalog-category-view) .sidebar-main {
        width: 100%;
        min-width: 0;
    }
    .shopbrand-brand-view .products-grid .product-items,
    .shopbrand-brand-view .products-grid ol.products.list.items,
    .page-products:not(.catalog-category-view) .products-grid .product-items,
    .page-products:not(.catalog-category-view) .products-grid ol.products.list.items {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 767px) {
    .la-producers-hero { padding: 2.5rem 1rem; }
    .la-producer-info-card { flex-wrap: wrap; }
    .la-producer-info-desc { flex-basis: 100%; }
}
