/* ===== Alle Platten — Produktliste ===== */

/* Stats Bar */
.stats-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--color-white, #fff);
    color: var(--color-text, #333);
    box-shadow: var(--shadow-sm);
}

.stat-reserved {
    background: #fff3cd;
    color: #856404;
}

.stat-filtered {
    background: var(--color-beige-dark, #E8D9C5);
    color: var(--color-wood-dark, #3E2712);
}

/* ===== Filter Card ===== */
.filter-card {
    background: var(--color-white, #fff);
    border-radius: var(--radius-lg, 12px);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.filter-section {
    margin-bottom: 1rem;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-wood-dark, #3E2712);
    margin-bottom: 0.5rem;
}

/* Holzart Pills */
.wood-type-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.wood-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border: 2px solid var(--color-beige-dark, #E8D9C5);
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--color-beige, #F5EDE0);
    color: var(--color-text, #333);
    user-select: none;
}

.wood-pill input[type="checkbox"] {
    display: none;
}

.wood-pill:hover {
    border-color: var(--color-wood-light, #8B5E3C);
}

.wood-pill.active,
.wood-pill:has(input:checked) {
    background: var(--color-wood, #5C3A1E);
    color: #fff;
    border-color: var(--color-wood, #5C3A1E);
}

/* Filter Row */
.filter-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.filter-range {
    flex: 1;
    min-width: 200px;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.range-inputs .form-control {
    flex: 1;
}

.range-separator {
    color: #999;
    font-weight: 600;
}

.filter-hint {
    color: #999;
    font-size: 0.78rem;
    margin-top: 0.25rem;
    display: block;
}

/* Toggle Label */
.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    margin: 0;
}

.toggle-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-wood, #5C3A1E);
}

/* Filter Actions */
.filter-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-beige-dark, #E8D9C5);
}

/* ===== Product Grid (ersetzt Tabelle) ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
}

.product-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.product-card {
    background: var(--color-white, #fff);
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.product-card-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-beige-dark, #E8D9C5);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-body {
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.product-card-type {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-wood-dark, #3E2712);
}

.product-card-dims {
    font-size: 0.85rem;
    color: #777;
}

.product-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #fff3cd;
    color: #856404;
    width: fit-content;
}

/* ===== Empty State ===== */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

.empty-state i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

/* ===== Pagination ===== */
.pagination-nav {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.pagination {
    display: flex;
    gap: 0.3rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    height: 2.2rem;
    padding: 0 0.5rem;
    border-radius: var(--radius, 8px);
    border: 1px solid var(--color-beige-dark, #E8D9C5);
    background: var(--color-white, #fff);
    color: var(--color-wood, #5C3A1E);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.page-item .page-link:hover {
    background: var(--color-beige, #F5EDE0);
    border-color: var(--color-wood-light, #8B5E3C);
    text-decoration: none;
}

.page-item.active .page-link {
    background: var(--color-wood, #5C3A1E);
    border-color: var(--color-wood, #5C3A1E);
    color: #fff;
}

.page-item.disabled .page-link {
    border: none;
    background: none;
    color: #999;
}

/* ===== Reservation Search Overrides ===== */
.reservation-search-section {
    background: var(--color-white, #fff);
    border-radius: var(--radius-lg, 12px);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: none;
}

.reservation-search-section .detail-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-wood-dark, #3E2712);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.search-input:focus {
    border-color: var(--color-wood-light, #8B5E3C);
    box-shadow: 0 0 0 3px rgba(92, 58, 30, 0.1);
}

/* Reservation Card Overrides */
.reservation-card {
    background: var(--color-white, #fff);
    border: none;
    border-radius: var(--radius-lg, 12px);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.reservation-actions {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-beige-dark, #E8D9C5);
}

.product-item-link {
    text-decoration: none;
    color: inherit;
}

.product-item-link:hover {
    text-decoration: none;
    color: inherit;
}

.product-item-link .product-item {
    cursor: pointer;
}

.product-item-link .product-item:hover {
    background: var(--color-beige, #F5EDE0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.75rem;
    }

    .product-card-body {
        padding: 0.6rem 0.75rem;
    }

    .product-card-type {
        font-size: 0.9rem;
    }

    .product-card-dims {
        font-size: 0.8rem;
    }

    .filter-actions {
        flex-direction: column;
    }

    .filter-actions .btn {
        width: 100%;
    }

    .stats-bar {
        gap: 0.5rem;
    }

    .stat-pill {
        font-size: 0.78rem;
        padding: 0.3rem 0.65rem;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
}
