/* ===========================================
   PRODUSE NOI SLIDER - FIGMA DESIGN
   =========================================== */

.products-slider-section {
    background: #ffffff;
    padding: 10px 0 40px 0;
    margin-top: 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    border-top: none;
}

.products-slider-section::before {
    display: none; /* Remove gradient line */
}

.products-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0;
}

.products-slider-title {
    font-size: 30px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: #2034AD;
    margin: 0;
    position: relative;
    text-transform: none;
    letter-spacing: normal;
}

.products-slider-title::after {
    display: none; /* Remove underline */
}

.slider-controls {
    display: flex;
    gap: 10px;
}

.slider-btn {
    width: 45px;
    height: 45px;
    border: 1px solid #2034AD;
    border-radius: 5px;
    background: white;
    color: #2034AD;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
}

.slider-btn:hover {
    background: #2034AD;
    color: white;
    transform: none;
    box-shadow: none;
}

.slider-btn:disabled {
    background: #f0f0f0;
    border-color: #ccc;
    color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.slider-btn i {
    font-size: 18px;
}

/* Slider Container */
.products-slider-container {
    position: relative;
    padding: 0;
}

.products-slider-wrapper {
    overflow: hidden;
    border-radius: 8px;
}

.products-slider {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

.product-slide {
    min-width: 280px;
    flex-shrink: 0;
}

/* Product Card Styling - Figma Design */
.new-product-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #2034AD;
    box-shadow: none;
    transition: all 0.3s ease;
    height: 399px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.new-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(32, 52, 173, 0.15);
    border-color: #2034AD;
}

.product-image-wrapper {
    position: relative;
    height: 174px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 14px 10px 14px;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.new-product-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.product-availability-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 2px;
}

.product-availability-badge::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2328a745"><circle cx="12" cy="12" r="10"/><path fill="white" d="M10 14.5l-3.5-3.5L5 12.5l5 5 9-9L17.5 7z"/></svg>') center/contain no-repeat;
}

.product-availability-badge.out-of-stock::after {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23dc3545"><circle cx="12" cy="12" r="10"/><path fill="white" d="M8 8l8 8M16 8l-8 8" stroke="white" stroke-width="2"/></svg>') center/contain no-repeat;
}

.product-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #FF0000;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}

/* Product Info */
.product-info {
    padding: 5px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-title {
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    line-height: 1.4;
    letter-spacing: 0.2px;
    margin: 0 0 10px 0;
    min-height: 76px;
    display: flex;
    align-items: flex-start;
}

.product-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #2034AD;
}

.product-price {
    font-size: 23px;
    font-weight: 700;
    color: #FF0000;
    margin: 10px 0 15px;
    text-align: center;
    letter-spacing: 0.2px;
}

.product-price .original-price {
    text-decoration: line-through;
    color: #999999;
    font-size: 18px;
    font-weight: 400;
    margin-right: 8px;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.add-to-cart-btn {
    flex: 1;
    background: #2034AD;
    color: white;
    border: none;
    padding: 7px 10px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 40px;
}

.add-to-cart-btn:hover {
    background: #1a2b8f;
    transform: none;
}

.wishlist-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #2034AD;
    background: white;
    color: #2034AD;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-btn:hover {
    background: #2034AD;
    color: white;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-slide {
        min-width: 260px;
    }
}

@media (max-width: 992px) {
    .products-slider-section {
        padding: 40px 0;
    }
    
    .products-slider-title {
        font-size: 1.5rem;
    }
    
    .product-slide {
        min-width: 240px;
    }
    
    .slider-controls {
        display: none;
    }
}

@media (max-width: 768px) {
    .products-slider-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .products-slider-title {
        font-size: 1.3rem;
    }
    
    .product-slide {
        min-width: 220px;
    }
    
    .products-slider {
        gap: 15px;
    }
    
    .product-info {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .products-slider-section {
        padding: 30px 0;
        border-radius: 0;
    }
    
    .product-slide {
        min-width: 200px;
    }
    
    .product-image-wrapper {
        height: 160px;
        padding: 15px 10px 5px 10px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-title {
        font-size: 0.9rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .add-to-cart-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* Smooth scrolling pentru touch devices */
@media (max-width: 992px) {
    .products-slider-wrapper {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .products-slider-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    .products-slider {
        transition: none;
        scroll-behavior: smooth;
    }
}

/* Loading states */
.product-slide.loading {
    opacity: 0.6;
    pointer-events: none;
}

.product-slide.loading .product-image-wrapper {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
} 