/* =============================================
   مستر اير — التوصيات الذكية
   Product Recommendations Styles
   ============================================= */

/* === SECTION === */
.rec-section {
    padding: 2rem 0 1rem;
    border-top: 1px solid #f0f4f8;
}
.rec-section:first-child {
    border-top: 2px solid #e8eef4;
    margin-top: 1rem;
}

/* === HEADER === */
.rec-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    gap: 1rem;
}
.rec-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.rec-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #0077C8, #005fa3);
    color: #fff;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.rec-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a2a3a;
    margin: 0;
    line-height: 1.4;
}

/* === BADGE === */
.rec-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.4;
}
.rec-badge-similar { background: #e0f2fe; color: #0369a1; }
.rec-badge-same_brand { background: #fce7f3; color: #be185d; }
.rec-badge-same_hp { background: #fef3c7; color: #92400e; }
.rec-badge-lower_price { background: #d1fae5; color: #065f46; }
.rec-badge-energy_saving { background: #dcfce7; color: #166534; }
.rec-badge-best_seller { background: #fee2e2; color: #991b1b; }
.rec-badge-top_rated { background: #fef9c3; color: #854d0e; }

/* === VIEW MORE === */
.rec-view-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0077C8;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.25s ease;
    flex-shrink: 0;
}
.rec-view-more:hover {
    background: #e0f2fe;
    color: #005fa3;
    transform: translateX(-3px);
}
.rec-view-more i {
    font-size: 0.7rem;
    transition: transform 0.25s;
}
.rec-view-more:hover i {
    transform: translateX(-4px);
}

/* === SWIPER === */
.rec-swiper {
    position: relative;
    overflow: hidden;
    padding: 0 2px 1rem;
}
.rec-swiper .swiper-slide {
    height: auto;
}
.rec-swiper .product-card {
    height: 100%;
}

/* === NAVIGATION ARROWS === */
.rec-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    transition: all 0.25s ease;
    font-size: 0.8rem;
}
.rec-nav:hover {
    background: #0077C8;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,119,200,0.3);
}
.rec-nav-prev { right: 4px; }
.rec-nav-next { left: 4px; }
.rec-nav.swiper-button-disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .rec-section { padding: 1.5rem 0 0.75rem; }
    .rec-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .rec-title { font-size: 1rem; }
    .rec-icon { width: 30px; height: 30px; font-size: 0.75rem; }
    .rec-badge { font-size: 0.62rem; padding: 2px 8px; }
    .rec-view-more { font-size: 0.78rem; padding: 4px 10px; }
    .rec-nav { display: none; }
}

@media (max-width: 400px) {
    .rec-title { font-size: 0.92rem; }
    .rec-title-wrap { gap: 0.4rem; }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    .rec-view-more,
    .rec-view-more i,
    .rec-nav { transition: none; }
}
