/* ========================================================================= */
/* todays_products.css - Styles for Today's Products Section */
/* ========================================================================= */

.todays-products {
    padding: 30px 15px;
    background: linear-gradient(135deg, #f0f9f5 0%, #d0f0e0 100%);
    border-radius: 12px;
    margin: 20px auto;
    max-width: 1200px;
    box-shadow: 0 8px 24px rgba(11, 217, 139, 0.1);
    font-family: Arial, sans-serif;
    color: #1a1a1a;
}

.todays-products .section-header {
    text-align: center;
    margin-bottom: 25px;
}

.todays-products .section-header h2 {
    font-size: 2em;
    font-weight: 700;
    color: #0bd98b;
    margin-bottom: 8px;
}

.todays-products .section-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, rgba(11, 217, 139, 1), rgba(11, 217, 139, 0.5));
    margin: 0 auto 6px auto;
    border-radius: 2px;
}

.todays-products .section-subtitle {
    font-size: 1em;
    color: #555;
}

/* Products Grid */
.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: 8px;
    width: 220px;
    box-shadow: 0 6px 18px rgba(11, 217, 139, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(11, 217, 139, 0.2);
}

/* Product Image */
.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-wrapper img.product-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    display: block;
}

.image-placeholder {
    font-size: 2em;
    color: #ccc;
}

/* Product Content */
.product-content {
    padding: 15px;
    text-align: center;
}

.product-title {
    font-size: 1em;
    font-weight: 600;
    margin: 5px 0 10px 0;
}

.product-title-link {
    color: #0bd98b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-title-link:hover {
    color: #0a9e72;
    text-decoration: underline;
}

/* Price & Discount */
.product-price-wrapper,
.product-sales-wrapper {
    margin: 5px 0;
}

.price-label,
.discount-label {
    font-size: 0.85em;
    color: #555;
    margin-right: 4px;
}

.product-price,
.product-sales {
    font-weight: 700;
    color: #0bd98b;
}

/* Add to Cart Button */
.product-link.btn-primary {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(11, 217, 139, 1), rgba(11, 217, 139, 0.8));
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-link.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(11, 217, 139, 0.3);
}

/* Product Overlay (Optional effect) */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

/* Load More Button */
.products-load-more {
    text-align: center;
    margin-top: 20px;
}

.load-more-btn {
    padding: 10px 25px;
    font-size: 1em;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, rgba(11, 217, 139, 1), rgba(11, 217, 139, 0.8));
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(11, 217, 139, 0.3);
}

/* No Products Block */
.no-products {
    text-align: center;
    padding: 40px 20px;
    color: #555;
}

.no-products-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .products-grid {
        gap: 15px;
    }

    .product-card {
        width: 45%;
    }
}

@media (max-width: 480px) {
    .product-card {
        width: 100%;
    }
}



/* Todays Products Section */
.todays-products {
    padding: 40px 20px;
    background: #f9f9f9;
    max-width: 1200px;   /* limit width */
    margin: 0 auto;      /* center the block */
}

.todays-products .section-header {
    text-align: center;
    margin-bottom: 30px;
}

.todays-products .section-header h2 {
    font-size: 2em;
    color: #0bd98b;
    margin-bottom: 8px;
}

.todays-products .section-header .section-subtitle {
    font-size: 1em;
    color: #555;
}

/* Grid container */
.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start; /* align left instead of stretching */
}

/* Product card */
.product-card {
    flex: 0 1 calc(33.333% - 20px); /* 3 per row */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .product-card {
        flex: 0 1 calc(50% - 20px); /* 2 per row */
    }
}

@media (max-width: 640px) {
    .product-card {
        flex: 0 1 100%; /* 1 per row */
    }
}
