/* === FINAL PRODUCT GRID FIX - REMOVE ALL WIDTH CONSTRAINTS === */

/* Make sure homepage section doesn't constrain */
.homepage-section {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Override container balance fix constraints */
.homepage-section .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
}

/* Section content area must not constrain */
.section-content-area {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Main wrapper */
.main-content-wrapper {
    max-width: 100% !important;
    width: 100% !important;
}

/* Product grid = 4 equal columns, full width */
.product-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Each card takes full grid cell */
.product-grid .product-card-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.product-grid .product-card {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
}

/* Tablet: 3 columns */
@media (max-width: 1199px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Mobile: 2 columns */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

/* Small mobile: 2 columns (horizontal layout) */
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
}
