/**
 * Balazs Bag Finder - Styles
 *
 * Design tokens sourced from the Blazor app.css:
 *   --primary-color: #3380C9 (blue)
 *   --black:         #000
 *   --white:         #ffffff
 *   --gray:          #E1E3E5
 *   --font-family:   'Roboto', 'Roboto-Condensed'
 *   pill radius:     205-210px
 */

/* =========================================
   Variables
   ========================================= */
:root {
    --bf-primary: #3380C9;
    --bf-black: #000;
    --bf-white: #fff;
    --bf-gray: #E1E3E5;
    --bf-font: 'Roboto', 'Roboto-Condensed', system-ui, sans-serif;
    --bf-pill-radius: 210px;
}

/* =========================================
   Container
   ========================================= */
.bf-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: var(--bf-font);
}

/* =========================================
   Header Row (filters + hero image)
   ========================================= */
.bf-header-row {
    display: flex;
    gap: 2rem;
    padding-top: 2rem;
}

.bf-filters-col {
    flex: 1 1 66%;
}

.bf-hero-col {
    flex: 0 0 33%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.bf-hero-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 991px) {
    .bf-header-row {
        flex-direction: column;
    }
    .bf-hero-col {
        flex: 1 1 auto;
    }
}

/* =========================================
   Title
   ========================================= */
.bf-title-wrap {
    text-align: center;
    padding: 1rem 0;
}

.bf-title {
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
    color: var(--bf-black);
}

/* =========================================
   Filter groups
   ========================================= */
.bf-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 0;
}

.bf-filter-group {
    text-align: center;
    padding: 0 0.5rem;
}

.bf-filter-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--bf-black);
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.bf-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

/* =========================================
   Pills (matches .bb-btn-border-blue)
   ========================================= */
.bf-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bf-white);
    color: var(--bf-black);
    border: 1px solid var(--bf-black);
    border-radius: var(--bf-pill-radius);
    padding: 0.2rem 1rem;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--bf-font);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.bf-pill:hover {
    background: var(--bf-primary);
    color: var(--bf-white);
    border-color: var(--bf-white);
}

/* Active state (matches .bags-btn-selected) */
.bf-pill--active {
    background: var(--bf-black);
    color: var(--bf-white);
    border-color: var(--bf-white);
}

.bf-pill--active:hover {
    background: var(--bf-primary);
}

/* =========================================
   Sections
   ========================================= */
.bf-sections {
    padding-top: 2rem;
}

.bf-section {
    margin-bottom: 3rem;
}

.bf-section-title {
    font-weight: 700;
    font-size: 1.4rem;
    text-align: center;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--bf-black);
}

/* =========================================
   Product Grid
   ========================================= */
.bf-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    justify-items: center;
}

@media (min-width: 768px) {
    .bf-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .bf-product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =========================================
   Product Card (matches MediumImageCard)
   ========================================= */
.bf-product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 260px;
    padding: 0.75rem 0;
}

.bf-product-image-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    margin-bottom: 0.75rem;
}

.bf-product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bf-product-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bf-product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--bf-primary);
    text-decoration: none;
    margin-bottom: 0.4rem;
}

.bf-product-name:hover {
    text-decoration: underline;
}

.bf-product-desc {
    font-size: 13px;
    font-weight: 500;
    color: var(--bf-black);
    margin: 0 0 0.6rem;
    line-height: 1.4;
}

/* "More info" pill (matches .bb-nav-pill .bb-out-border-black) */
.bf-more-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bf-black);
    color: var(--bf-white);
    border: 1px solid var(--bf-black);
    border-radius: var(--bf-pill-radius);
    padding: 0.4rem 1.5rem;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}

.bf-more-info:hover {
    background: var(--bf-primary);
    border-color: var(--bf-primary);
    color: var(--bf-white);
}

/* =========================================
   Responsive tweaks
   ========================================= */
@media (max-width: 576px) {
    .bf-title {
        font-size: 1.5rem;
    }

    .bf-filters {
        flex-direction: column;
        align-items: center;
    }

    .bf-filter-pills {
        flex-direction: row;
    }

    .bf-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bf-product-card {
        max-width: 100%;
        align-items: center;
        text-align: center;
    }

    .bf-product-info {
        align-items: center;
    }
}
