.products-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.products-section-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.products-section-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    background: #f8f8f8;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    /* Lazy loading optimization */
    background-color: #f8f8f8;
    /* Performance optimization */
    will-change: transform;
    transform: translateZ(0);
}

.sale-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4444;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    height: 3.6rem;
    line-height: 1.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: break-word;
    max-width: 100%;
    white-space: normal;
    color: deeppink;
}

.price-info {
    display: flex;
    gap: 10px;
    align-items: center;
}

.product-price {
    color: #007bff;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.product-actions {
    text-align: center;
    color: #007bff;
    font-size: 1rem;
    font-weight: 600;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

.sale-price {
    color: #ff6b35;
    font-weight: 700;
    font-size: 1.1rem;
}

@media (max-width: 1024px) {
    .products-section {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .products-section {
        padding: 0 15px;
    }

    .products-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-info {
        padding: 20px 15px;
    }

    .product-name {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .products-section {
        padding: 0 10px;
    }

    .products-section {
        gap: 10px;
    }

    .product-info {
        padding: 20px 10px;
    }

    .product-name {
        font-size: 14px;
    }
}

