/* ===== LATEST PRODUCTS COMPONENT CSS ===== */
/* قالب أحدث المنتجات - قابل للتوريث */

/* ===== DISCOUNT BADGE STYLES ===== */
/* علامة جديد للمنتجات */
.new-product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    animation: pulse-new 2s 1;
}

.new-product-badge span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.new-product-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: blink 1.5s 1;
}

@keyframes pulse-new {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0.3;
    }
}

/* علامة الخصم للمنتجات */
/* .discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 4px 12px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    animation: pulse-discount 2s 1;
}

.discount-badge span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.discount-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: blink-discount 1.5s 1;
} */

@keyframes pulse-discount {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes blink-discount {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0.3;
    }
}

/* ===== HORIZONTAL SLIDER STYLES ===== */
.products-horizontal-slider-container
 {
    /* position: relative; */
    padding: 0 21px;
    /* margin: 0 -20px; */
    overflow: hidden;
 }

.products-slider-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    scrollbar-width: none;
    scrollbar-color: #97755b4f #f8f9fa;
    -webkit-overflow-scrolling: touch;
}

.products-slider-wrapper::-webkit-scrollbar {
    height: 8px;
}

.products-slider-wrapper::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.products-slider-wrapper::-webkit-scrollbar-thumb {
    background: #97755b4f;
    border-radius: 4px;
}

.products-slider-wrapper::-webkit-scrollbar-thumb:hover {
    background: #97755b;
}

.products-slider-track {
    display: flex;
    gap: 0px;
    transition: transform 0.5s ease;
    padding: 20px 15px;
}

.products-slider-item {
    flex: 0 0 280px;
    min-width: 330px;
    flex-shrink: 0;
    margin: 0 5px;
}

/* ===== LUXURY PRODUCT CARD STYLES ===== */
.luxury-product-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.luxury-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* ===== PRODUCT IMAGE CONTAINER ===== */
.luxury-product-image-container {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.luxury-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    padding: 20px;
}

.luxury-product-card:hover .luxury-product-image {
    transform: scale(1.05);
}

/* ===== PRODUCT IMAGES GALLERY ===== */
.product-images-gallery {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-images-gallery img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-images-gallery img.active {
    opacity: 1;
}

/* ===== GALLERY NAVIGATION ===== */
.product-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
    color: #333;
    font-size: 14px;
}

.product-images-gallery:hover .product-gallery-nav {
    opacity: 1;
}

.product-gallery-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.product-gallery-prev {
    left: 10px;
}

.product-gallery-next {
    right: 10px;
}

/* ===== GALLERY INDICATORS ===== */
.product-gallery-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.gallery-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-indicator.active {
    background: white;
    transform: scale(1.2);
}

/* ===== PRODUCT OVERLAY ===== */
.luxury-product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.luxury-product-card:hover .luxury-product-overlay {
    opacity: 1;
}

/* ===== PRODUCT ACTIONS ===== */
.luxury-product-actions {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 15;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.luxury-product-card:hover .luxury-product-actions {
    opacity: 1;
    transform: translateX(0);
}

.luxury-action-btnn {
    width: 45px;
    height: 45px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.luxury-action-btnn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(151, 117, 91, 0.1), transparent);
    transition: left 0.5s ease;
}

.luxury-action-btnn:hover::before {
    left: 100%;
}

.luxury-action-btnn:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
    transform: scale(1.1);
}

.luxury-favorite-btn.active {
    color: #e91e63;
    background: #fce4ec;
    border-color: #e91e63;
}

/* ===== PRODUCT INFO ===== */
.luxury-product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.luxury-product-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.luxury-product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.luxury-current-price {
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

.luxury-old-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

/* ===== RATING AND CART CONTAINER ===== */
.luxury-rating-cart-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.luxury-product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
}

.rating-star {
    color: #ffc107;
    font-size: 14px;
}

.rating-value {
    font-weight: 600;
    color: #333;
}

.rating-count {
    color: #999;
}

/* ===== CART CONTAINER ===== */
.luxury-cart-container {
    position: relative;
    z-index: 10;
}

.luxury-cart-btn {
    width: 45px;
    height: 45px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.luxury-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(151, 117, 91, 0.1), transparent);
    transition: left 0.5s ease;
}

.luxury-cart-btn:hover::before {
    left: 100%;
}

.luxury-cart-btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
    transform: scale(1.1);
}

/* ===== CART WITH QUANTITY ===== */
.luxury-cart-with-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    padding: 4px 8px;
    position: relative;
    overflow: hidden;
}

.luxury-cart-with-quantity::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(151, 117, 91, 0.1), transparent);
    transition: left 0.5s ease;
}

.luxury-cart-with-quantity:hover::before {
    left: 100%;
}

.cart-quantity-display {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    min-width: 20px;
    text-align: center;
}

/* ===== CART QUANTITY CONTROLS ===== */
.luxury-cart-quantity-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.luxury-cart-decrease,
.luxury-cart-increase {
    width: 28px;
    height: 28px;
    background: #007bff;
    border: none;
    border-radius: 4px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.luxury-cart-decrease:hover,
.luxury-cart-increase:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.luxury-cart-quantity {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* ===== SLIDER NAVIGATION ===== */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-nav-btn:hover {
    background: #fff;
    border-color: #007bff;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav-btn i {
    font-size: 18px;
    color: #333;
    transition: color 0.3s ease;
}

.slider-nav-btn:hover i {
    color: #007bff;
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

/* ===== VIEW MORE CARD ===== */
.view-more-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-more-card {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%;
}

.view-more-card:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: #007bff;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
}

.view-more-content {
    text-align: center;
    padding: 20px;
}

.view-more-icon {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.view-more-card:hover .view-more-icon {
    transform: scale(1.1);
}

.view-more-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.view-more-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.view-more-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    color: white;
    text-decoration: none;
}

/* ===== RESPONSIVE DESIGN ===== */

/* الشاشات الكبيرة */
@media (min-width: 1200px) {
    .products-slider-track {
        gap: 5px;
        padding: 25px 20px;
    }
    
    .products-slider-item {
        margin: 0 8px;
    }
}

@media (max-width: 768px) {
    .products-slider-track {
        gap: 0;
        padding: 0;
    }
    
    .products-slider-item {
        flex: 0 0 100%;
        min-width: 100%;
        margin: 0;
        width: 100%;
    }
    
    /* .products-horizontal-slider-container {
        padding: 0 50px;
        margin-right: calc(-50vw + 50%);
    } */
    
    .slider-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .slider-nav-btn i {
        font-size: 16px;
    }
    
    .slider-prev {
        left: 5px;
    }
    
    .slider-next {
        right: 5px;
    }
    
    .view-more-icon {
        font-size: 36px;
    }
    
    .view-more-title {
        font-size: 20px;
    }
    
    /* Product card responsive */
    .products-horizontal-slider-container .luxury-product-image-container {
        height: 350px;
    }
    
    .products-horizontal-slider-container .luxury-product-image {
        padding: 25px;
    }
    
    .products-horizontal-slider-container .luxury-product-actions {
        top: 8px;
        left: 8px;
        gap: 6px;
    }
    
    .products-horizontal-slider-container .luxury-action-btnn {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .products-horizontal-slider-container .luxury-cart-container {
        bottom: 8px;
        left: 8px;
    }
    
    .products-horizontal-slider-container .luxury-cart-container .luxury-cart-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .products-horizontal-slider-container .luxury-cart-with-quantity {
        padding: 3px 6px;
        gap: 6px;
    }
    
    .products-horizontal-slider-container .cart-quantity-display {
        font-size: 12px;
        min-width: 18px;
    }
    
    .products-horizontal-slider-container .luxury-product-rating {
        padding: 5px 10px;
        gap: 6px;
    }
    
    .products-horizontal-slider-container .rating-count {
        font-size: 13px;
    }
    
    .products-horizontal-slider-container .rating-star {
        font-size: 14px;
    }
    
    .products-horizontal-slider-container .rating-value {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .products-slider-track {
        gap: 0;
        padding: 0;
    }
    
    .products-slider-item {
        flex: 0 0 100%;
        min-width: 100%;
        margin: 0;
        width: 100%;
    }
    
    .luxury-product-image-container {
        height: 250px;
    }
    
    .luxury-product-title {
        font-size: 16px;
    }
    
    .luxury-current-price {
        font-size: 18px;
    }
    
    .luxury-old-price {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .products-slider-track {
        gap: 18px;
        padding: 13px 0px 9px 0px;
    }
    
    .products-slider-item {
        flex: 0 0 100%;
        min-width: 100%;
        margin: 0;
        width: 100%;
    }
    
    .luxury-product-image-container {
        height: 220px;
    }
    
    .luxury-product-title {
        font-size: 14px;
    }
    
    .luxury-current-price {
        font-size: 16px;
    }
    
    .luxury-old-price {
        font-size: 12px;
    }
    
    .new-product-badge {
        top: 6px;
        right: 6px;
        padding: 2px 8px;
        font-size: 10px;
    }
}

/* ===== UTILITY CLASSES ===== */
.latest-products-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.latest-products-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.latest-products-section .section-subtitle {
    color: #007bff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.latest-products-section .section-title {
    color: #333;
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

@media (max-width: 768px) {
    .latest-products-section {
        padding: 40px 0;
    }
    
    .latest-products-section .section-title {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .latest-products-section {
        padding: 30px 0;
    }
    
    .latest-products-section .section-title {
        font-size: 24px;
    }
}

/* ===== DYNAMIC FEATURES CSS ===== */

/* Theme Styles */
.theme-dark {
    background: #1a1a1a !important;
    color: white !important;
}

.theme-dark .luxury-product-card {
    background: #2a2a2a !important;
    color: white !important;
}

.theme-dark .luxury-product-title {
    color: white !important;
}

.theme-dark .luxury-current-price {
    color: white !important;
}

.theme-dark .luxury-old-price {
    color: #ccc !important;
}

.theme-dark .section-title {
    color: white !important;
}

.theme-dark .section-subtitle {
    color: #007bff !important;
}

.theme-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

.theme-gradient .luxury-product-card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

.theme-gradient .section-title {
    color: white !important;
}

.theme-gradient .section-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Card Styles */
.card-style-simple .luxury-product-card {
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.card-style-simple .luxury-product-image-container {
    border-radius: 8px 8px 0 0 !important;
}

.card-style-compact .luxury-product-card {
    border-radius: 6px !important;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08) !important;
}

.card-style-compact .luxury-product-image-container {
    border-radius: 6px 6px 0 0 !important;
    height: 250px !important;
}

.card-style-compact .luxury-product-info {
    padding: 15px !important;
}

.card-style-compact .luxury-product-title {
    font-size: 16px !important;
}

.card-style-compact .luxury-current-price {
    font-size: 18px !important;
}

/* Hover Effects */
.hover-effect-scale .luxury-product-card {
    transition: transform 0.3s ease !important;
}

.hover-effect-scale .luxury-product-card:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
}

.hover-effect-glow .luxury-product-card {
    transition: box-shadow 0.3s ease !important;
}

.hover-effect-glow .luxury-product-card:hover {
    transform: none !important;
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.3) !important;
}

.hover-effect-none .luxury-product-card {
    transition: none !important;
}

.hover-effect-none .luxury-product-card:hover {
    transform: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Badge Positions */
.badge-position-top-left .new-product-badge,
.badge-position-top-left .discount-badge {
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
}

.badge-position-bottom-right .new-product-badge,
.badge-position-bottom-right .discount-badge {
    bottom: 10px !important;
    right: 10px !important;
    top: auto !important;
}

.badge-position-bottom-left .new-product-badge,
.badge-position-bottom-left .discount-badge {
    bottom: 10px !important;
    left: 10px !important;
    top: auto !important;
    right: auto !important;
}

/* Animation Types */
.animation-type-fade .products-slider-track {
    transition: opacity 0.5s ease !important;
}

.animation-type-zoom .products-slider-track {
    transition: transform 0.5s ease !important;
}

/* Disabled Features */
.no-badges .new-product-badge,
.no-badges .discount-badge {
    display: none !important;
}

.no-rating .luxury-product-rating {
    display: none !important;
}

.no-cart .luxury-cart-container {
    display: none !important;
}

.no-wishlist .luxury-favorite-btn {
    display: none !important;
}

.no-gallery .product-gallery-nav,
.no-gallery .product-gallery-indicators {
    display: none !important;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .card-style-compact .luxury-product-image-container {
        height: 200px !important;
    }
    
    .card-style-compact .luxury-product-info {
        padding: 12px !important;
    }
    
    .card-style-compact .luxury-product-title {
        font-size: 14px !important;
    }
    
    .card-style-compact .luxury-current-price {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .card-style-compact .luxury-product-image-container {
        height: 180px !important;
    }
    
    .card-style-compact .luxury-product-info {
        padding: 10px !important;
    }
    
    .card-style-compact .luxury-product-title {
        font-size: 13px !important;
    }
    
    .card-style-compact .luxury-current-price {
        font-size: 15px !important;
    }
}
