/* ===============================
   CONTAINER & BASE
================================ */
.container1 {
    max-width: 1400px;
    margin: auto;
    padding: 40px 20px;
}

.page-title {
    text-align: center;
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 30px;
    color: #2c3e50;
}

/* ===============================
   CATEGORY FILTER
================================ */
.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.category-filter a {
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid #ff6b35;
    text-decoration: none;
    color: #ff6b35;
    font-weight: 600;
    transition: 0.3s;
}

.category-filter a.active,
.category-filter a:hover {
    background: #ff6b35;
    color: #fff;
}

/* ===============================
   SEARCH BAR
================================ */
.product-filter-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 40px;
}

.product-filter-bar form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-filter-bar input {
    padding: 12px;
    width: 260px;
    border-radius: 8px;
    border: 2px solid #ddd;
}

.product-filter-bar button,
.clear-search {
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.product-filter-bar button {
    background: #ff6b35;
    color: #fff;
}

.clear-search {
    border: 2px solid #c0392b;
    color: #c0392b;
    text-decoration: none;
}

/* ===============================
   CATEGORY BLOCK
================================ */
.category-block {
    margin-bottom: 60px;
}

.category-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 20px;
}

/* ===============================
   PRODUCT GRID (DESKTOP)
================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* ===============================
   PRODUCT CARD
================================ */
.product-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-6px);
}

.product-image {
    height: 260px;
    background: #f2f2f2;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 16px;
    text-align: center;
}

.product-info h3 {
    font-size: 15px;
    font-weight: 700;
    min-height: 42px;
}

.price {
    font-size: 18px;
    font-weight: 800;
    color: #ff6b35;
    margin: 10px 0;
}

.add-cart {
    width: 100%;
    padding: 10px;
    border-radius: 22px;
    border: none;
    background: #ff6b35;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

/* ===============================
   TABLET (≤768px)
================================ */
@media (max-width: 768px) {
    .page-title {
        font-size: 30px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-image {
        height: 200px;
    }
}

/* ===============================
   MOBILE (≤576px) → 2 CARDS
================================ */
@media (max-width: 576px) {
    .container1 {
        padding: 20px 12px;
    }

    .product-filter-bar {
        justify-content: center;
    }

    .product-filter-bar form {
        width: 100%;
        flex-direction: column;
    }

    .product-filter-bar input,
    .product-filter-bar button,
    .clear-search {
        width: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-image {
        height: 150px;
    }

    .product-info h3 {
        font-size: 13px;
        min-height: 36px;
    }

    .price {
        font-size: 15px;
    }
}

