/* =======================================
   Brand & Category Slider for Elementor
   ======================================= */

/* الغلاف الخارجي */
.bcs-wrapper {
    position: relative;
    padding: 0 48px;
    direction: rtl;
    box-sizing: border-box;
}

/* منطقة العرض */
.bcs-viewport {
    overflow: hidden;
    width: 100%;
    touch-action: pan-y;
}

/* الشريط الداخلي - يُضبط بـ JS */
.bcs-track {
    display: flex;
    will-change: transform;
    touch-action: pan-y;
}

/* كل عنصر */
.bcs-slide {
    flex-shrink: 0;
    text-align: center;
}

.bcs-slide a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 10px;
    transition: transform 0.25s ease;
}

.bcs-slide a:hover {
    transform: translateY(-4px);
}

/* الصورة */
.bcs-item-image {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border: 2px solid #e0e0e0;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    flex-shrink: 0;
    margin: 0 auto;
    box-sizing: border-box;
}

.bcs-item-image.bcs-shape-circle  { border-radius: 50%; }
.bcs-item-image.bcs-shape-square  { border-radius: 0; }
.bcs-item-image.bcs-shape-rounded { border-radius: 16px; }

.bcs-slide a:hover .bcs-item-image {
    border-color: #c8a96e;
    box-shadow: 0 4px 20px rgba(200,169,110,0.25);
}

.bcs-item-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.3s ease;
    display: block;
}

.bcs-slide a:hover .bcs-item-image img {
    transform: scale(1.05);
}

/* النص */
.bcs-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-align: center;
    transition: color 0.2s ease;
    line-height: 1.4;
    word-break: break-word;
}

.bcs-slide a:hover .bcs-item-title { color: #c8a96e; }

.bcs-item-subtitle {
    font-size: 11px;
    color: #888;
    text-align: center;
    margin-top: -4px;
}

/* أزرار التنقل */
.bcs-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    z-index: 10;
    width: 36px;
    height: 36px;
    background: #fff;
    border: 1.5px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    padding: 0;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    line-height: 1;
}

.bcs-nav-btn:hover {
    background: #c8a96e;
    border-color: #c8a96e;
    color: #fff;
    box-shadow: 0 4px 14px rgba(200,169,110,0.4);
}

/* RTL: السابق على اليمين، التالي على اليسار */
.bcs-btn-prev { right: 4px; }
.bcs-btn-next { left: 4px; }

/* موبايل */
@media (max-width: 767px) {
    .bcs-wrapper {
        padding: 0 38px;
    }
    .bcs-nav-btn {
        width: 30px;
        height: 30px;
    }
    .bcs-item-image {
        width: 90px;
        height: 90px;
    }
    .bcs-item-title {
        font-size: 11px;
    }
}

/* تأثير ظهور */
@keyframes bcsIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.bcs-slide { animation: bcsIn 0.3s ease both; }
