/* public/css/carousel.css */
/* ===================================================== */
/* أنماط سلايدر البطل وكاروسيل المنتجات */
/* ===================================================== */

/* ===== سلايدر البطل ===== */
.hero-carousel {
    position: relative;
    overflow: hidden;
    background: var(--color-primary);
}

.carousel-wrapper {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}

.slide-content {
    position: absolute;
    bottom: 80px;
    right: 50px;
    max-width: 500px;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.slide-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
}

.slide-subtitle {
    font-size: 18px;
    margin-bottom: 20px;
}

.slide-btn {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    transition: background 0.2s, transform 0.2s;
}
.slide-btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
}

/* أزرار التنقل */
.carousel-btn {
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    background: rgba(0,0,0,0.02);
    color: #333;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
    border: none;
}
.carousel-btn:hover {
    background: rgba(0,0,0,0.08);
}

.carousel-btn-prev { right: 0; }
.carousel-btn-next { left: 0; }

/* المؤشرات */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicators .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-indicators .indicator.active {
    background: #fff;
    transform: scale(1.3);
}

/* التدرج السفلي */
.hero-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bg-light), transparent);
    z-index: 5;
    pointer-events: none;
}

/* ===== كاروسيل المنتجات الأفقي ===== */
.product-carousel-section {
    background: var(--bg-white);
    margin-bottom: 20px;
    padding: 15px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.carousel-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px 10px;
}

.product-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 50px;
}

.product-carousel-track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 5px;
}

.product-carousel-track::-webkit-scrollbar {
    display: none;
}

/* أزرار التنقل */
.product-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 80px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 20px;
    color: #555;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.product-carousel-btn:hover {
    box-shadow: var(--shadow-md);
    color: #000;
}

.pcb-prev { right: 0; }
.pcb-next { left: 0; }

/* عنصر المنتج في الكاروسيل */
.product-carousel-item {
    flex-shrink: 0;
    width: 200px;
}

.pci-link {
    display: block;
    transition: transform 0.2s;
}
.pci-link:hover { transform: translateY(-3px); }

.pci-image {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #fff;
    border-radius: var(--border-radius-sm);
}

.pci-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pci-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--color-price-sale);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
}

.pci-info {
    padding: 8px 5px;
}

.pci-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.pci-name:hover {
    color: var(--color-link-hover);
}

/* التقييم */
.pci-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.stars-rating {
    display: inline-flex;
    gap: 1px;
}

.stars-rating i {
    color: var(--color-star);
    font-size: 12px;
}

.pci-review-count {
    font-size: 11px;
    color: var(--color-link);
}

/* السعر */
.pci-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.price-current {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-price);
}

.price-original {
    font-size: 12px;
    color: var(--color-price-original);
    text-decoration: line-through;
}

.pci-free-shipping {
    display: block;
    font-size: 11px;
    color: var(--color-success);
    margin-top: 3px;
}

/* ===== العروض مع العد التنازلي ===== */
.deals-section {
    background: var(--bg-white);
    padding: 20px var(--content-padding);
    border-radius: var(--border-radius);
}

.deals-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.deals-countdown {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--color-danger);
    font-weight: 600;
}

.countdown-timer {
    display: flex;
    gap: 3px;
    direction: ltr;
}

.countdown-unit {
    background: var(--color-primary);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 800;
    font-family: monospace;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .carousel-slide { height: 250px; }
    .slide-title { font-size: 24px; }
    .slide-content { right: 20px; bottom: 50px; }
    .product-carousel-item { width: 160px; }
    .pci-image { width: 160px; height: 160px; }
    .product-carousel-wrapper { padding: 0 35px; }
}