/* START OF FILE css/all-products.css */

body.all-products-page {
    background-image: url('../images/background.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

main > h1 {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

/* Style the category section (can reuse index.css styles or define here) */
.categories {
    padding: 16px 0;
}
.categories h2 {
    font-size: 1.5rem; /* Slightly smaller title for filter */
    font-weight: 600;
    padding: 0; /* Remove padding if container handles it */
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
}
.category-list {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 10px 0; /* Adjust padding */
    flex-wrap: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.category-list::-webkit-scrollbar { display: none; }

.category-button {
    background-color: rgba(0,0,0,0);
    color: var(--text-light);
    padding: 13px 27px; /* ~px-4 py-2 */
    border-radius: 9999px; /* Pill shape */
    border: #fff solid 3px;
    transition: background-color 0.2s ease;
    font-size: 1.4em;
    font-weight: 600; /* Semi-bold */
    flex-shrink: 0; /* Prevent shrinking */
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}
.category-button:hover,
.category-button.active {
    background-color: var(--white);
    color: var(--text-dark);
}


/* Style the main product section */
#all-products-section {
    padding: 24px 0;
}

#all-products-section .section-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color-subtle);
}

#all-products-section h2#all-products-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Override product-grid display for this page */
#all-products-grid {
    display: grid;
    /* Responsive grid: Adjust columns based on screen width */
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* Example */
    gap: 25px; /* Adjust gap */
    padding: 0; /* Remove padding if container handles it */
    /* Remove horizontal scroll specific styles */
    overflow-x: visible;
    flex-wrap: wrap; /* Allow wrapping */
}

/* You might want to bring back the add-to-cart button styling here */


/* Responsive adjustments for the grid */
@media (max-width: 768px) {
    #all-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
     main > h1 { font-size: 1.6rem; }
    #all-products-section h2#all-products-title { font-size: 1.4rem; }
}

@media (max-width: 480px) {
    #all-products-grid {
        /* Switch to 2 columns on very small screens */
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .category-button { padding: 13px 20px; font-size: 1em;}
    #all-products-grid .product-card { padding: 10px; }
    #all-products-grid .product-card h3 { font-size: 1rem; }
}

/* END OF FILE css/all-products.css */