/* ========================================
   Wahnbuechlein Category Listing — Brand
   ======================================== */

/* --- Light Hero --- */
.hw-cat-hero {
    background: #faf8f5;
    padding: 2.5em 1.5em 2em;
    text-align: center;
    border-bottom: 1px solid #f0ebe4;
}
.hw-cat-hero-inner {
    max-width: 640px;
    margin: 0 auto;
}
.hw-cat-hero h1 {
    font-family: 'Bodoni Moda', 'Georgia', serif;
    font-weight: 400;
    font-style: italic;
    color: #1a1a1a;
    font-size: 1.8rem;
    margin-bottom: 0.3em;
}
.hw-cat-hero h1 strong { font-weight: 400; }
.hw-cat-hero p {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    color: #3a3a3a;
    font-size: 0.85rem;
}
@media (min-width: 48em) {
    .hw-cat-hero { padding: 3.5em 2em 2.5em; }
    .hw-cat-hero h1 { font-size: 2.2rem; }
}

/* --- Pill Filters (collapsible) --- */
.hw-filters {
    padding: 1em 1.5em 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Toggle button */
.hw-filters__toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    -webkit-appearance: none !important;
    appearance: none !important;
    background: transparent !important;
    border: 1px solid #ddd !important;
    border-radius: 20px !important;
    padding: 7px 18px !important;
    font-family: 'Lato', sans-serif !important;
    font-weight: 400 !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: #767676 !important;
    cursor: pointer;
    margin: 0 auto 1em;
    box-shadow: none !important;
    outline: none !important;
    transition: all 0.2s;
}
.hw-filters__toggle::before,
.hw-filters__toggle::after {
    display: none !important;
    content: none !important;
}
.hw-filters__toggle:hover {
    border-color: #ecc3ad !important;
    color: #a06840 !important;
}
.hw-filters__toggle[aria-expanded="true"] {
    background: #ecc3ad !important;
    border-color: #ecc3ad !important;
    color: #fff !important;
}
.hw-filters__toggle-icon {
    font-size: 0.6em;
    transition: transform 0.2s;
}
.hw-filters__toggle[aria-expanded="true"] .hw-filters__toggle-icon {
    transform: rotate(180deg);
}
.hw-filters__active-count {
    display: none;
    background: #ecc3ad;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    padding: 0 5px;
}
.hw-filters__active-count.visible {
    display: inline-block;
}
.hw-filters__toggle[aria-expanded="true"] .hw-filters__active-count {
    background: #fff;
    color: #a06840;
}

/* Filter body — collapsed by default */
.hw-filters__body {
    display: none;
    padding-top: 0.5em;
}
.hw-filters__body.open {
    display: block;
}

/* On desktop (>768px): show toggle inline-left, filters more compact */
@media (min-width: 769px) {
    .hw-filters__toggle { margin: 0 0 1em 0; }
    .hw-filter-group { margin-bottom: 0.75em; }
}

/* If initial filters are active, auto-open */
.hw-filters__body.has-initial {
    display: block;
}

.hw-filter-group { margin-bottom: 0.75em; }
.hw-filter-label {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #737373;
    margin-bottom: 8px;
    display: block;
}
.hw-pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.hw-pill {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: #767676;
    background: transparent;
    border: 1px solid #ddd;
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
button.hw-pill,
button.hw-pill:focus {
    -webkit-appearance: none !important;
    appearance: none !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 1px solid #ddd !important;
    border-radius: 20px !important;
    padding: 5px 14px !important;
    font-family: 'Lato', sans-serif !important;
    font-weight: 400 !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.04em !important;
    color: #767676 !important;
    line-height: normal !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
    margin: 0 !important;
    z-index: auto !important;
    position: relative !important;
}
button.hw-pill::before,
button.hw-pill::after {
    display: none !important;
    content: none !important;
}
.hw-pill:hover,
button.hw-pill:hover { border-color: #ecc3ad !important; color: #a06840 !important; background: transparent !important; }
.hw-pill.active,
button.hw-pill.active { background: #ecc3ad !important; border-color: #ecc3ad !important; color: #fff !important; }
.hw-pill-overview {
    color: #a06840;
    border-color: #a06840;
}
.hw-pill-overview:hover {
    background: #a06840;
    color: #fff;
    border-color: #a06840;
}

/* --- Featured Carousel --- */
.hw-featured-carousel-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5em 1.5em 0;
}
.hw-featured-carousel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 0 1em;
}
.hw-featured-carousel-header span {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a06840;
    white-space: nowrap;
}
.hw-featured-carousel-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #f0ebe4;
}
.hw-featured-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1.5em;
    scrollbar-width: thin;
    scrollbar-color: #e8e0d6 transparent;
}
.hw-featured-carousel::-webkit-scrollbar {
    height: 4px;
}
.hw-featured-carousel::-webkit-scrollbar-track {
    background: transparent;
}
.hw-featured-carousel::-webkit-scrollbar-thumb {
    background: #e8e0d6;
    border-radius: 2px;
}
.hw-featured-carousel .hw-vcard-featured {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

/* --- Desktop / Mobile visibility --- */
.hw-mobile-only { display: block; }
.hw-desktop-only { display: none; }
@media (min-width: 769px) {
    .hw-mobile-only { display: none !important; }
    .hw-desktop-only { display: contents !important; }
}

/* --- Vendor Listing --- */
.hw-vendor-listing {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5em;
}
.hw-vendor-listing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 36em) { .hw-vendor-listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .hw-vendor-listing-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 80em) { .hw-vendor-listing-grid { grid-template-columns: repeat(4, 1fr); } }

/* --- Basis section divider --- */
.hw-basis-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.5em 0 1.5em;
}
.hw-basis-divider span {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #737373;
    white-space: nowrap;
}
.hw-basis-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eee;
}
/* Basis grid: 1 → 2 → 3 → 4 columns */
.hw-basis-grid { grid-template-columns: 1fr !important; }
@media (min-width: 36em) { .hw-basis-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (min-width: 64em) { .hw-basis-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (min-width: 80em) { .hw-basis-grid { grid-template-columns: repeat(4, 1fr) !important; } }
.hw-vendor-listing-basis {
    padding-top: 0;
}

/* --- Footer CTA --- */
.hw-listing-footer-cta {
    text-align: center;
    padding: 3em 1.5em;
    background: #faf8f5;
    border-top: 1px solid #f0ebe4;
}
.hw-listing-footer-cta h2 {
    font-family: 'Bodoni Moda', 'Georgia', serif;
    font-weight: 400;
    font-style: italic;
    color: #1a1a1a;
    font-size: 1.4rem;
    margin-bottom: 0.4em;
}
.hw-listing-footer-cta p {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    color: #3a3a3a;
    font-size: 0.85rem;
    max-width: 480px;
    margin: 0 auto 1.5em;
    line-height: 1.7;
}
.hw-listing-footer-cta .hw-cta-btn {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: #ecc3ad;
    border: 1px solid #ecc3ad;
    padding: 12px 32px;
    text-decoration: none;
    transition: all 0.2s;
}
.hw-listing-footer-cta .hw-cta-btn:hover {
    background: #e0b19a;
    border-color: #e0b19a;
}
