/* ==================================================
   BLACK VELVET PREMIUM THEME - FIXED RTL LOOP
   Custom CSS for Zid - Nomo Theme (Marquee Edition)
================================================== */

:root {
    --bv-gold: #C6A15B;
    --bv-gold-dark: #B38B43;
    --bv-dark: #1E1B18;
    --bv-cream: #F8F5F0;
    --bv-text: #2D2D2D;
}

/* GENERAL & FONTS */
body {
    background: var(--bv-cream) !important;
}
h1, h2, h3, h4, h5, h6 {
    color: var(--bv-dark);
}

/* BUTTONS */
.btn, button, input[type="submit"] {
    border-radius: 14px !important;
    transition: all .3s ease;
}
.btn-primary, button[type="submit"] {
    background: var(--bv-gold) !important;
    border-color: var(--bv-gold) !important;
    color: #fff !important;
}
.btn-primary:hover, button[type="submit"]:hover {
    background: var(--bv-gold-dark) !important;
    border-color: var(--bv-gold-dark) !important;
    transform: translateY(-2px);
}

/* CATEGORY SECTION TITLE */
.theme-container h2 {
    text-align: center !important;
    font-size: 34px !important;
    font-weight: 700 !important;
    margin-bottom: 25px !important;
    color: var(--bv-dark) !important;
}

/* INFINITE MARQUEE ROW (الخدعة البرمجية لضمان عدم ظهور فراغ) */
.embla__container:has(a.group) {
    display: flex !important;
    flex-direction: row !important;
    direction: ltr !important; /* توحيد الاتجاه برمجياً لملء الفراغ الأيمن */
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    gap: 0px !important;
    padding: 15px 0 !important;
    animation: bvMarqueeLoop 25s linear infinite !important; /* 25s سرعة انسيابية هادئة */
    will-change: transform;
}

.embla__container:has(a.group):hover {
    animation-play-state: paused !important;
}

@keyframes bvMarqueeLoop {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); } /* حركة مستمرة دون انقطاع */
}

.embla__container:has(a.group) .embla__slide {
    direction: rtl !important; /* إعادة النصوص والكروت للاتجاه العربي الصحيح */
    flex: 0 0 200px !important; 
    padding: 10px !important;
    min-width: 200px !important;
    box-sizing: border-box !important;
}

.embla__container:has(a.group) .embla__slide a.group {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-decoration: none !important;
}

/* CATEGORY CIRCLES */
.embla__container:has(a.group) .embla__slide .overflow-hidden.rounded {
    width: 160px !important;
    height: 160px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    margin: 0 auto 12px auto !important;
    background: #fff !important;
    padding: 4px !important;
    border: 3px solid var(--bv-gold) !important;
    transition: all .3s ease !important;
    box-shadow: 0 8px 25px rgba(0,0,0,.06) !important;
}

.embla__container:has(a.group) .embla__slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

.embla__container:has(a.group) .embla__slide:hover .overflow-hidden.rounded,
.embla__container:has(a.group) .embla__slide.active-category .overflow-hidden.rounded {
    transform: translateY(-6px) scale(1.03) !important;
    border-color: var(--bv-gold-dark) !important;
    box-shadow: 0 15px 35px rgba(198,161,91,.3) !important;
}

.embla__container:has(a.group) .embla__slide h3 {
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--bv-text) !important;
    margin-top: 5px !important;
}

.embla__prev, .embla__next, .embla__progress {
    display: none !important;
}

/* PRODUCT CARDS & FOOTER */
.product-card, .product-item, .card {
    border-radius: 18px !important;
    overflow: hidden;
    transition: .4s ease;
    background: #fff;
}
.product-card:hover, .product-item:hover, .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,.08);
}
header {
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
}
footer {
    background: #111 !important;
    color: #fff !important;
}
footer a { color: #ddd !important; }
footer a:hover { color: var(--bv-gold) !important; }

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
    .embla__container:has(a.group) .embla__slide {
        flex: 0 0 140px !important;
        min-width: 140px !important;
    }
    .embla__container:has(a.group) .embla__slide .overflow-hidden.rounded {
        width: 110px !important;
        height: 110px !important;
    }
    .embla__container:has(a.group) .embla__slide h3 {
        font-size: 14px !important;
    }
    .theme-container h2 {
        font-size: 26px !important;
    }
}