/* ==========================================================================
   Loubanden Frontend Styles
   Matches Extendable theme: #3f5762 bg, #F9F6DE text, Arsenal headings,
   Radio Canada body font.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Overview page ([loubanden_overzicht] shortcode)
   -------------------------------------------------------------------------- */

.loubanden-overzicht {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: #3f5762;
    color: #f7fafc;
    font-family: 'Radio Canada', sans-serif;
    border-radius: 8px;
}

.loubanden-overzicht *,
.loubanden-overzicht *::before,
.loubanden-overzicht *::after {
    box-sizing: border-box;
}

/* --- Filter bar --- */

.loubanden-zoeken {
    background: rgba(249, 246, 222, 0.08);
    border: 1px solid rgba(249, 246, 222, 0.15);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.loubanden-zoeken h2 {
    font-family: 'Arsenal', sans-serif;
    color: #f9f6de;
    font-size: 1.25rem;
    margin: 0 0 1rem;
}

.loubanden-zoeken-velden {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.loubanden-veld {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1 1 140px;
    min-width: 120px;
}

.loubanden-veld label {
    font-family: 'Arsenal', sans-serif;
    font-size: 0.85rem;
    color: rgba(249, 246, 222, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.loubanden-veld select {
    background: #3f5762;
    color: #f9f6de;
    border: 1px solid rgba(249, 246, 222, 0.3);
    border-radius: 4px;
    padding: 0.5rem 0.6rem;
    font-family: 'Radio Canada', sans-serif;
    font-size: 0.95rem;
    appearance: auto;
    cursor: pointer;
}

.loubanden-veld select:focus {
    outline: 2px solid #f9f6de;
    outline-offset: 1px;
}

.loubanden-veld-submit {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: flex-end;
    flex: 0 0 auto;
}

.loubanden-zoek-btn {
    background: #f9f6de;
    color: #3f5762;
    border: none;
    border-radius: 4px;
    padding: 0.55rem 1.5rem;
    font-family: 'Arsenal', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.loubanden-zoek-btn:hover {
    opacity: 0.85;
}

.loubanden-reset-btn {
    color: rgba(249, 246, 222, 0.6);
    font-family: 'Radio Canada', sans-serif;
    font-size: 0.9rem;
    text-decoration: underline;
    padding: 0.55rem 0.5rem;
    white-space: nowrap;
}

.loubanden-reset-btn:hover {
    color: #f9f6de;
}

/* --- Results info --- */

.loubanden-resultaten-info {
    margin-bottom: 1rem;
}

.loubanden-resultaten-info p {
    color: rgba(249, 246, 222, 0.6);
    font-family: 'Radio Canada', sans-serif;
    font-size: 0.9rem;
    margin: 0;
}

/* --- Tire list (image left, info right) --- */

.loubanden-lijst {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.loubanden-item {
    display: flex;
    gap: 1.25rem;
    background: rgba(249, 246, 222, 0.05);
    border: 1px solid rgba(249, 246, 222, 0.1);
    border-radius: 8px;
    padding: 1rem;
    text-decoration: none;
    color: #f9f6de;
    transition: background 0.2s, border-color 0.2s;
}

.loubanden-item:hover {
    background: rgba(249, 246, 222, 0.1);
    border-color: rgba(249, 246, 222, 0.25);
}

.loubanden-item-img {
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

.loubanden-item-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.loubanden-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
}

.loubanden-item-info h3 {
    font-family: 'Arsenal', sans-serif;
    color: #f9f6de;
    font-size: 1.15rem;
    margin: 0;
}

.loubanden-item-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.loubanden-tag {
    display: inline-block;
    background: rgba(249, 246, 222, 0.12);
    color: rgba(249, 246, 222, 0.85);
    padding: 0.15rem 0.6rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-family: 'Radio Canada', sans-serif;
}

.loubanden-item-details {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.25rem;
}

.loubanden-prijs {
    font-family: 'Arsenal', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #f9f6de;
}

.loubanden-voorraad {
    font-family: 'Radio Canada', sans-serif;
    font-size: 0.9rem;
    color: rgba(249, 246, 222, 0.6);
}

/* --- Pagination --- */

.loubanden-paginatie {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 2rem;
}

.loubanden-pagina {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(249, 246, 222, 0.3);
    border-radius: 4px;
    color: #f9f6de;
    text-decoration: none;
    font-family: 'Radio Canada', sans-serif;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
}

.loubanden-pagina:hover {
    background: rgba(249, 246, 222, 0.15);
}

.loubanden-pagina.active {
    background: #f9f6de;
    color: #3f5762;
    border-color: #f9f6de;
    font-weight: 700;
}

/* --- Responsive --- */

@media (max-width: 640px) {
    .loubanden-zoeken-velden {
        flex-direction: column;
    }

    .loubanden-veld {
        flex: 1 1 100%;
    }

    .loubanden-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .loubanden-item-img {
        flex: 0 0 100px;
        width: 100px;
        height: 100px;
    }

    .loubanden-item-meta {
        justify-content: center;
    }

    .loubanden-item-details {
        justify-content: center;
    }
}

/* --------------------------------------------------------------------------
   Single tire detail page
   -------------------------------------------------------------------------- */

.loubanden-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: #3f5762;
    color: #f7fafc;
    font-family: 'Radio Canada', sans-serif;
    border-radius: 8px;
}

.loubanden-single h1 {
    font-family: 'Arsenal', sans-serif;
    color: #f9f6de;
}

.loubanden-single-image {
    margin: 1.5rem 0;
}

.loubanden-single-image img {
    max-width: 100%;
    height: auto;
}

.loubanden-detail-tabel {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.loubanden-detail-tabel th {
    text-align: left;
    padding: 0.75rem;
    width: 30%;
    color: #f9f6de;
    border-bottom: 1px solid rgba(249, 246, 222, 0.2);
    font-family: 'Arsenal', sans-serif;
}

.loubanden-detail-tabel td {
    padding: 0.75rem;
    color: #f9f6de;
    border-bottom: 1px solid rgba(249, 246, 222, 0.2);
}

/* Back link button */
.loubanden-back {
    display: inline-block;
    margin-top: 1.5rem;
    color: #f9f6de;
    text-decoration: none;
    border: 1px solid #f9f6de;
    padding: 0.5rem 1rem;
    font-family: 'Radio Canada', sans-serif;
    transition: background 0.2s, color 0.2s;
}

.loubanden-back:hover {
    background: #f9f6de;
    color: #3f5762;
}
