/* apps/products/static/add_product/partials/css/featured_slider.css
   تنسيق شريط "المنتجات المميزة" في الصفحة الرئيسية
   (core/templates/core/partials/featured_slider.html) */

.featured-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}

.featured-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.featured-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #1a2035;
    margin: 0;
}

.featured-section-title svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    fill: #f97316;
}

/* ── الشريط الأفقي القابل للسحب ── */
.featured-scroll-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 6px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
}
.featured-scroll-track::-webkit-scrollbar { display: none; }
.featured-scroll-track.is-dragging { cursor: grabbing; scroll-behavior: auto; }

/* ── بطاقة منتج مميز ── */
.fp-card {
    flex: 0 0 auto;
    width: 150px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1.5px solid #e8ecf4;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.fp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,.10);
    border-color: #f97316;
}

.fp-card-img-wrap {
    position: relative;
    width: 100%;
    height: 150px;
    background: #f8fafc;
    overflow: hidden;
}
.fp-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* شارة النجمة — الحجم صريح هنا عمداً لمنع أي SVG بلا width/height من
   التمدد لملء الحاوية (هذا بالضبط ما كان يسبب الانهيار البصري قبل وجود
   هذا الملف: العنصر <svg viewBox="0 0 24 24"> بلا أي تنسيق كان يُعرض
   بحجم افتراضي ضخم غير محدود). */
.fp-star-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f97316;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.fp-star-badge svg {
    width: 12px;
    height: 12px;
    fill: #fff;
}

.fp-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
}
.fp-card-name {
    font-size: .82rem;
    font-weight: 700;
    color: #1a2035;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fp-card-price {
    font-size: .88rem;
    font-weight: 800;
    color: #c92a2a;
}
.fp-card-wilaya {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .72rem;
    color: #8592aa;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fp-card-wilaya svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    fill: #8592aa;
}

/* ── كارت "عرض الكل" في نهاية الشريط ── */
.fp-view-all-card {
    flex: 0 0 auto;
    width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1.5px dashed #d0d8eb;
    border-radius: 12px;
    text-decoration: none;
    color: #4a5578;
    font-size: .78rem;
    font-weight: 700;
    text-align: center;
    transition: border-color .2s ease, color .2s ease;
}
.fp-view-all-card:hover { border-color: #f97316; color: #f97316; }

.fp-all-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff4e6;
    color: #f97316;
}
.fp-all-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* ── زر أسفل الشريط ── */
.featured-bottom-btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}
.featured-bottom-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    background: #fff4e6;
    color: #f97316;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease;
}
.featured-bottom-btn:hover { background: #ffe0bf; }
.featured-bottom-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}
.fp-btn-count {
    background: #f97316;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 20px;
}

.featured-section-divider {
    max-width: 1400px;
    margin: 24px auto 0;
    height: 1px;
    background: #e8ecf4;
}

@media (max-width: 480px) {
    .fp-card { width: 128px; }
    .fp-card-img-wrap { height: 128px; }
    .fp-view-all-card { width: 78px; }
}
