/**
 * Product Grid & Card Styles
 */

.products-grid {
    display: grid;
    gap: 30px;
}

/* Dynamic columns handled by data attributes in JS or standard breakpoints */
[data-cols-desktop="4"] .products-grid { grid-template-columns: repeat(4, 1fr); }
[data-cols-desktop="3"] .products-grid { grid-template-columns: repeat(3, 1fr); }
[data-cols-desktop="2"] .products-grid { grid-template-columns: repeat(2, 1fr); }

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.product-image {
    position: relative;
    padding-top: 100%;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.product-info {
    padding: 15px;
    text-align: center;
    flex: 1;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0057A0;
}

.product-actions {
    padding: 15px;
    border-top: 1px solid #eee;
}

.add-to-cart-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #00A651;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.add-to-cart-btn:hover {
    background: #008a44;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-transform: lowercase;
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #0057A0;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

@media (max-width: 991px) {
    [data-cols-tablet="3"] .products-grid { grid-template-columns: repeat(3, 1fr); }
    [data-cols-tablet="2"] .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 15px; }
    .section-title { font-size: 1.5rem; }
}




