
/* تنسيق وحدة الكاروسيل العامة - خلفية رمادية فاتحة موحدة */
.manufacture-carousel-module {
    width: 100%;
    background-color: #f9fafb;
    border-radius: 24px;
    margin: 40px 0;
    padding: 32px 0;
    box-sizing: border-box;
}
.carousel-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
}
.carousel-header {
    text-align: center;
    margin-bottom: 28px;
}
.carousel-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #222222;
    margin-bottom: 10px;
}
.carousel-subhead {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #555555;
    max-width: 900px;
    margin: 0 auto;
}

/* منطقة الكاروسيل - فرض الاتجاه LTR */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    direction: ltr;                /* ★ إصلاح رئيسي: منع انعكاس الاتجاه في الصفحات RTL */
}
.carousel-track-container {
    overflow: hidden;
    width: 100%;
    border-radius: 20px;
}
.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    gap: 24px;
}
.product-card {
    flex: 0 0 calc((100% - 48px) / 3);
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    direction: rtl;                /* ★ النصوص داخل البطاقة تبقى من اليمين لليسار */
    text-align: right;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.product-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #f5f7fb;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.product-card:hover .product-image img {
    transform: scale(1.02);
}
.product-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: #0047AB;
    margin: 12px 16px 4px 16px;
}
.product-desc {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: #555555;
    margin: 0 16px 10px 16px;
    flex: 1;
}
.product-footer {
    padding: 0 16px 14px 16px;
    margin-top: auto;
}
.product-link {
    display: inline-block;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #0047AB;
    text-decoration: none;
    background: transparent;
    border: 2px solid #0047AB;
    border-radius: 40px;
    padding: 4px 14px;
    transition: all 0.25s ease;
}
.product-link:hover {
    background-color: #0047AB;
    color: white;
    transform: translateY(-2px);
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 32px;
    font-weight: 300;
    color: #0047AB;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.carousel-arrow:hover {
    background-color: #0047AB;
    color: white;
    border-color: #0047AB;
}
.prev { left: -22px; }
.next { right: -22px; }
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #cbd5e1;
    cursor: pointer;
    transition: background 0.2s;
}
.dot.active {
    background-color: #0047AB;
    width: 24px;
    border-radius: 10px;
}
@media (max-width: 900px) {
    .product-card { flex: 0 0 calc((100% - 24px) / 2); }
    .carousel-track { gap: 20px; }
    .carousel-arrow { width: 36px; height: 36px; font-size: 24px; }
    .prev { left: -14px; }
    .next { right: -14px; }
    .carousel-title { font-size: 28px; }
    .carousel-subhead { font-size: 15px; }
    .product-title { font-size: 16px; margin: 10px 14px 3px 14px; }
    .product-desc { font-size: 12px; margin: 0 14px 8px 14px; }
    .product-footer { padding: 0 14px 12px 14px; }
    .product-link { font-size: 11px; padding: 4px 12px; }
}
@media (max-width: 640px) {
    .carousel-container { padding: 0 16px; }
    .product-card { flex: 0 0 100%; }
    .carousel-track { gap: 16px; }
    .carousel-arrow { width: 32px; height: 32px; font-size: 22px; background: rgba(255,255,255,0.9); }
    .prev { left: -8px; }
    .next { right: -8px; }
    .carousel-title { font-size: 26px; }
    .carousel-subhead { font-size: 14px; }
    .product-title { font-size: 16px; margin: 10px 12px 3px 12px; }
    .product-desc { font-size: 12px; margin: 0 12px 8px 12px; }
    .product-footer { padding: 0 12px 12px 12px; }
    .product-link { font-size: 11px; padding: 4px 12px; }
}
