/* New Products Section - Luxury Minimalist Design */

.new-products {
    padding: 4rem 0;
    background: #ffffff;
}

.new-products .container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

.new-products .section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.new-products .section-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.new-products .section-subtitle {
    font-size: 1.125rem;
    color: #666;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.new-products .view-all-link {
    display: inline-block;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 2px;
    transition: opacity 0.3s ease;
}

.new-products .view-all-link:hover {
    opacity: 0.7;
}

/* Grid Layout - Static Display */
.new-products .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 1rem 0;
}


/* Product Card */
.new-products .product-card {
    background: transparent;
    border: none;
    text-decoration: none;
    transition: transform 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Ensure all cards take full grid cell height */
}

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

/* Product Image */
.new-products .product-image {
    position: relative;
    aspect-ratio: 4/5;
    background: #f5f5f5;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.new-products .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.new-products .product-card:hover .product-image img {
    transform: scale(1.08);
}

/* Product Badge */
.new-products .product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #8B4513;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    z-index: 2;
}

/* Discount Badge */
.new-products .discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #dc2626;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

/* Product Actions (Wishlist) */
.new-products .product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.new-products .product-card:hover .product-actions {
    opacity: 1;
}

.new-products .action-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.new-products .action-btn:hover {
    background: #1a1a1a;
    color: white;
    transform: scale(1.1);
}

.new-products .action-btn i {
    font-size: 16px;
}

/* Product Info */
.new-products .product-info {
    padding: 0;
    text-align: center;
    flex: 1;
    /* Take remaining space */
    display: flex;
    flex-direction: column;
}

.new-products .product-name {
    margin-bottom: 0.5rem;
    height: 2.4em;
    /* Fixed height for 2 lines */
    overflow: hidden;
}

.new-products .product-name a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: opacity 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2em;
}

.new-products .product-name a:hover {
    opacity: 0.7;
}

/* Product Rating */
.new-products .product-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 0.75rem;
}

.new-products .stars {
    display: flex;
    gap: 2px;
}

.new-products .stars i {
    font-size: 14px;
    color: #fbbf24;
}

.new-products .rating-count {
    font-size: 0.85rem;
    color: #888;
}

/* Product Price */
.new-products .product-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.new-products .current-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
}

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

/* Add to Cart Button */
.new-products .add-to-cart-btn {
    width: 100%;
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 0 0 8px 8px;
    /* Rounded bottom corners only */
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    /* Push to bottom */
}

.new-products .add-to-cart-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Section Footer */
.new-products .section-footer {
    text-align: center;
    margin-top: 3rem;
}

.new-products .section-footer .btn {
    background: transparent;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
    padding: 12px 30px;
    border-radius: 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.new-products .section-footer .btn:hover {
    background: #1a1a1a;
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .new-products .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .new-products {
        padding: 3rem 0;
    }

    .new-products .section-title {
        font-size: 2rem;
    }

    .new-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .new-products .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* 2 products per row */
        padding-left: 1rem;
        padding-right: 1rem;
        gap: 0.75rem;
    }

    .new-products .product-card {
        width: 100%;
        display: flex;
        flex-direction: column;
        height: 100%;
        /* Ensure full height */
    }

    .new-products .product-image {
        margin-bottom: 0.4rem;
        aspect-ratio: 1/1;
        /* Make images square and compact */
    }

    .new-products .product-image img {
        height: 100%;
        object-fit: cover;
    }

    .new-products .product-info {
        flex: 1;
        /* Take remaining space */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        /* Stack content at top */
    }

    .new-products .product-name {
        margin-bottom: 0.25rem;
        height: 2.1em;
        /* Fixed height for consistent alignment */
        overflow: hidden;
        flex-shrink: 0;
    }

    .new-products .product-name a {
        font-size: 0.8rem;
        /* Smaller title */
        line-height: 1.1em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .new-products .current-price {
        font-size: 0.85rem !important;
        /* Smaller price */
        font-weight: 600;
    }

    .new-products .original-price {
        font-size: 0.7rem !important;
    }

    /* Stack prices vertically on mobile */
    .new-products .product-price {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0.4rem;
    }

    .new-products .add-to-cart-btn {
        padding: 6px 8px;
        /* Compact button */
        font-size: 0.7rem;
        width: 100%;
        margin-top: auto;
        /* Push to bottom */
    }

    .new-products .product-rating {
        margin-bottom: 0.25rem;
        gap: 3px;
    }

    .new-products .stars i {
        font-size: 10px;
    }

    .new-products .rating-count {
        font-size: 0.65rem;
    }

    /* Smaller badges */
    .new-products .product-badge,
    .new-products .discount-badge {
        padding: 3px 6px;
        font-size: 0.6rem;
        top: 6px;
    }

    .new-products .product-badge {
        left: 6px;
    }

    .new-products .discount-badge {
        right: 6px;
    }

    .new-products .product-actions {
        top: 6px;
        right: 6px;
    }

    .new-products .action-btn {
        width: 25px;
        height: 25px;
    }

    .new-products .action-btn i {
        font-size: 11px;
    }
}