/* Today's Products Section */
.todays-products {
    padding: 40px 0;
    background-color: #f8f9fa;
}

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

.section-header h2 {
    font-size: 2rem;
    margin: 0 0 10px;
    color: #333;
}

.section-underline {
    width: 80px;
    height: 3px;
    background-color: #007bff;
    margin: 0 auto 10px;
}

.section-subtitle {
    display: block;
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 380px; /* Minimum height to ensure consistency */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.product-image-link {
    display: block;
}

.product-image-wrapper {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    overflow: hidden;
    flex-shrink: 0; /* Prevent shrinking */
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-placeholder {
    font-size: 3rem;
    color: #999;
}

.product-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allow content to grow and fill space */
}

.product-title {
    font-size: 1rem;
    margin: 0 0 10px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    flex-grow: 1; /* Push other elements down */
}

.product-title-link {
    color: #333;
    text-decoration: none;
}

.product-title-link:hover {
    text-decoration: underline;
}

.product-price-wrapper,
.product-sales-wrapper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    flex-shrink: 0; /* Prevent shrinking */
}

.price-label,
.discount-label {
    color: #666;
}

.product-price {
    font-weight: bold;
    color: #28a745;
}

.product-sales {
    font-weight: bold;
    color: #dc3545;
}

.product-link {
    display: block;
    text-align: center;
    padding: 10px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-top: auto; /* Push button to bottom */
    transition: background-color 0.2s ease;
    flex-shrink: 0; /* Prevent shrinking */
}

.product-link:hover {
    background-color: #0056b3;
}
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none; /* Add this line */
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.products-load-more {
    text-align: center;
    margin-top: 30px;
}

.load-more-btn {
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.load-more-btn:hover {
    background-color: #0056b3;
}

.no-products {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 400px;
}

.no-products-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-products p {
    font-size: 1.2rem;
    margin: 10px 0;
    color: #333;
}

.no-products-subtitle {
    font-size: 1rem;
    color: #666;
}

/* Media Queries for Responsiveness */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .product-image-wrapper {
        height: 150px;
    }

    .product-card {
        min-height: 320px; /* Adjust min-height for smaller screens */
    }
}