/* ============ PRODUCTS CAROUSEL SECTION ============ */
.products-carousel-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 20px;
}

.products-carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.products-carousel-card {
    min-width: 350px;
    width: 350px;
    height: 520px;
    flex-shrink: 0;
    background: rgba(0, 232, 255, 0.08);
    border: 2px solid rgba(0, 232, 255, 0.3);
    border-radius: 20px;
    padding: 0;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    opacity: 0.7;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 43, 91, 0.1);
}

[data-theme="dark"] .products-carousel-card {
    background: rgba(0, 232, 255, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.products-carousel-card.active {
    border-color: var(--accent-neon);
    box-shadow: 0 20px 60px rgba(0, 232, 255, 0.4);
    transform: scale(1.05);
    opacity: 1;
}

[data-theme="dark"] .products-carousel-card.active {
    box-shadow: 0 20px 60px rgba(0, 232, 255, 0.3);
}

.products-carousel-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    display: block;
    flex-shrink: 0;
}

.products-carousel-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.products-carousel-card h3 {
    color: var(--accent-neon);
    margin-bottom: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    height: 50px;
    display: flex;
    align-items: center;
    line-height: 1.3;
}

/* Better color for light mode */
[data-theme="light"] .products-carousel-card h3 {
    color: var(--primary-dark);
}

.products-carousel-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
    min-height: 48px;
    max-height: 48px;
}

.products-carousel-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.products-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 232, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.products-carousel-dot.active {
    background: var(--accent-neon);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(0, 232, 255, 0.5);
}

.products-carousel-dot:hover {
    background: rgba(0, 232, 255, 0.6);
    transform: scale(1.2);
}

/* RTL Support - Force LTR for carousel to work consistently */
.products-carousel-container {
    direction: ltr !important; /* Force LTR for carousel container */
}

.products-carousel-track {
    direction: ltr !important; /* Force LTR for carousel track */
}

/* Responsive */
@media (max-width: 768px) {
    .products-carousel-card {
        min-width: 100%;
        width: 100%;
        max-width: 100%;
    }
    
    .products-carousel-container {
        padding: 0 10px;
    }
}

