/* ===========================
   MOBILE FIRST
   =========================== */

.page-title {
    text-align: center;
    font-size: 26px;
    margin: 20px 0;
}
#headerSpacer {
    height: 30px; /* gleiche Höhe wie dein Header */
}


/* 🔧 FILTER WRAPPER */
.filter-wrapper {
    padding: 10px 15px;
}

.filter-form {
    display: grid;
    gap: 10px;
}

.filter-form select,
.filter-form input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.filter-btn {
    padding: 12px;
    background: #0077cc;
    color: white;
    border-radius: 8px;
    border: none;
}

/* 🛒 PRODUCT GRID */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    padding: 15px;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
}

.badge-offer {
    background: #e63946;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: bold;
    position: absolute;
    top: 12px;
    left: 12px;
}

.product-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.product-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 6px;
}

.product-short {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
    min-height: 30px;
}

.product-price {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
}

.btn-details {
    display: inline-block;
    padding: 10px 14px;
    background: #0077cc;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

/* 📄 PAGINATION */
.pagination {
    margin: 20px 0;
    text-align: center;
}

.page-btn {
    padding: 8px 14px;
    background: #eee;
    margin: 0 4px;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
}

.active-page {
    background: #0077cc;
    color: white;
}

/* ===========================
   DESKTOP OPTIMIERUNG
   =========================== */

@media (min-width: 768px) {

    .page-title {
        font-size: 32px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 30px;
        padding: 20px;
    }

    .product-image {
        height: 180px;
    }

    .filter-form {
        grid-template-columns: repeat(6, 1fr);
        gap: 15px;
        align-items: center;
    }

    .filter-btn {
        grid-column: span 6;
    }
}
