/* ===== 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;
    }
}

/* تحسين علامة جديد للشاشات الصغيرة */
@media (max-width: 768px) {
    .new-product-badge {
        top: 8px;
        right: 8px;
        padding: 3px 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .new-product-badge {
        top: 6px;
        right: 6px;
        padding: 2px 8px;
        font-size: 10px;
    }
}


/* ===== PRODUCT GALLERY STYLES ===== */
/* معرض صور المنتجات */
.product-images-gallery {
    position: relative !important;
    overflow: hidden !important;
    height: 450px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #f8f9fa !important;
    cursor: pointer !important;
    min-height: 200px !important;
    pointer-events: auto !important;
}

/* ضمان ظهور الأسهم حتى مع الصور الصغيرة أو غير الموجودة */
.product-images-gallery:empty .product-gallery-nav,
.product-images-gallery:not(:has(.luxury-product-image)) .product-gallery-nav {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.product-images-gallery .luxury-product-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 20px !important;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out, transform 0.5s ease !important;
    opacity: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1 !important;
    display: none !important;
    pointer-events: auto !important;
    visibility: hidden !important;
}

.product-images-gallery .luxury-product-image.active {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10 !important;
    display: block !important;
}

.product-images-gallery .luxury-product-image.active {
    opacity: 1 !important;
    position: relative !important;
    z-index: 2 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    cursor: pointer !important;
}

/* السماح بالانتقال لصفحة المنتج عند النقر على الصورة */
.luxury-product-card .product-images-gallery {
    pointer-events: auto !important;
}

.luxury-product-card .product-images-gallery .luxury-product-image {
    pointer-events: auto !important;
}

/* ضمان أن النقر على الصورة ينقل لصفحة المنتج */
.luxury-product-card {
    text-decoration: none !important;
    color: inherit !important;
}

.luxury-product-card:hover {
    text-decoration: none !important;
    color: inherit !important;
}

.product-images-gallery:hover .luxury-product-image.active {
    transform: scale(1.05) !important;
}

/* ضمان أن الأسهم لا تتأثر بتكبير الصورة */
.product-images-gallery:hover .product-gallery-nav {
    transform: translateY(-50%) !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.product-images-gallery .product-gallery-nav {
    transform: translateY(-50%) !important;
    /* z-index: 1000 !important; */
    pointer-events: auto !important;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ضمان ظهور الأسهم دائماً */
.product-gallery-nav {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* الأسهم تحت القالب */
.product-gallery-nav-under {
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important;
    margin-top: 10px !important;
    z-index: 1000 !important;
}

.product-gallery-nav-under-btn {
    width: 36px !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 1000 !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.product-gallery-nav-under-btn:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(0, 0, 0, 0.4) !important;
    transform: scale(1.1) !important;
}

.product-gallery-nav-under-btn i {
    color: #333 !important;
    font-size: 16px !important;
    font-weight: bold !important;
}

/* أسهم التنقل */
.product-gallery-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 45px !important;
    height: 60px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid rgba(0, 0, 0, 0.3) !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    z-index: 9999 !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    pointer-events: auto !important;
}

.product-gallery-nav:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(0, 0, 0, 0.5) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5) !important;
    transform: translateY(-50%) scale(1.05) !important;
}

.product-gallery-nav:hover i {
    color: #000 !important;
}

.product-gallery-nav i {
    color: #333 !important;
    font-size: 18px !important;
    font-weight: bold !important;
}

.product-gallery-prev {
    left: 10px !important;
    position: absolute !important;
}

.product-gallery-next {
    right: 10px !important;
    position: absolute !important;
}

/* ضمان أن الأسهم تبقى ثابتة في أطراف القالب */
.product-images-gallery .product-gallery-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    /* z-index: 1000 !important; */
    pointer-events: auto !important;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ضمان ظهور الأسهم حتى مع الصور الصغيرة */
.product-images-gallery .product-gallery-nav {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

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

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

/* مؤشرات الصور */
.product-gallery-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.gallery-indicator {
    width: 10px !important;
    height: 10px !important;
    background: rgba(255, 255, 255, 0.6) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    display: inline-block !important;
    margin: 0 3px !important;
    pointer-events: auto !important;
}

.gallery-indicator.active {
    background: rgba(255, 255, 255, 1) !important;
    transform: scale(1.3) !important;
    border-color: rgba(0, 0, 0, 0.4) !important;
}

.gallery-indicator:hover {
    transform: scale(1.2) !important;
    background: rgba(255, 255, 255, 0.8) !important;
}

.gallery-indicator.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.3);
    border-color: rgba(0, 0, 0, 0.4);
}

/* إظهار الأسهم عند التمرير */
.luxury-product-image-container:hover .product-gallery-nav {
    opacity: 1;
    visibility: visible;
}

/* إظهار الأسهم دائماً للاختبار */
.product-gallery-nav {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    pointer-events: auto !important;
    z-index: 100 !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 36px !important;
    height: 62px !important;
    background: rgb(4 4 4 / 55%) !important;
    border: 2px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 6% !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

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

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

.product-gallery-nav:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(0, 0, 0, 0.4) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

/* تحسين التفاعل مع الصور */
.product-images-gallery {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.product-images-gallery .luxury-product-image {
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* تحسين المؤشرات */
.gallery-indicator {
    cursor: pointer;
    transition: all 0.3s ease;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    display: inline-block;
    margin: 0 3px;
}

.gallery-indicator:hover {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.8);
}

.gallery-indicator.active {
    background: rgba(255, 255, 255, 1) !important;
    transform: scale(1.3) !important;
    border-color: rgba(0, 0, 0, 0.4) !important;
}

/* تحسين موقع المؤشرات */
.product-gallery-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 6px;
}

/* تحسين الأيقونات في الأسهم */
.product-gallery-nav i {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

/* تحسين التفاعل مع الصور */
.product-images-gallery {
    cursor: pointer;
}

.product-images-gallery .luxury-product-image {
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

/* ===== PRICE STYLES ===== */
/* تمييز الأسعار */
.luxury-current-price {
    color: inherit;
    font-weight: normal;
}

.luxury-old-price {
    text-decoration: line-through;
    opacity: 0.7;
    font-size: 0.9em;
}

/* ===== NOTIFICATIONS STYLES (Consolidated) ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    z-index: 10000;
    max-width: 400px;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--dark);
}

.notification-message {
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: #f0f0f0;
    color: #666;
}

/* Notification Types */
.notification-success {
    border-left: 4px solid #28a745;
    background: linear-gradient(135deg, #ffffff 0%, #f8fff9 100%);
}

.notification-error {
    border-left: 4px solid #dc3545;
    background: linear-gradient(135deg, #ffffff 0%, #fff8f8 100%);
}

.notification-info {
    border-left: 4px solid #17a2b8;
    background: linear-gradient(135deg, #ffffff 0%, #f8fdff 100%);
}

.notification-warning {
    border-left: 4px solid #ffc107;
    background: linear-gradient(135deg, #ffffff 0%, #fffef8 100%);
}

/* Success notification specific styles */
.notification-success .notification-message, .notification-success .notification-content i {
    color: #155724;
}

/* Error notification specific styles */
.notification-error .notification-message {
    color: #721c24;
}

/* Info notification specific styles */
.notification-info .notification-message, .notification-info .notification-content i {
    color: #0c5460;
}

/* Warning notification specific styles */
.notification-warning .notification-message {
    color: #856404;
}

/* Mobile responsive for notifications */
@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    .notification.show {
        transform: translateY(0);
    }
    .notification-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .notification-close {
        align-self: flex-end;
        margin-top: -8px;
        margin-right: -8px;
    }
}

@media (max-width: 480px) {
    .notification {
        top: 5px;
        right: 5px;
        left: 5px;
        padding: 12px 16px;
    }
    .notification-message {
        font-size: 0.9rem;
    }
}


/* Rating and Cart Container - جنباً إلى جنب */
.luxury-rating-cart-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    gap: 10px;
    width: 100%;
}

/* تطبيق نفس تصميم التقييمات على جميع الأقسام */
.luxury-product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 115px;
    background: #ffffff;
    border-radius: 5px;
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    height: 29px;
    flex-shrink: 0;
    order: 1; /* التقييمات في الجانب الأيسر */
}

.luxury-product-rating span {
    color: #2B2825;
    opacity: 0.7;
    font-size: 18px;
}

/* تطبيق نفس تصميم زر السلة على جميع الأقسام */
.luxury-cart-container {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    order: 2; /* زر السلة في الجانب الأيمن */
    margin-left: auto; /* ضمان ظهوره في الجانب الأيمن */
}

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

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

/* تطبيق نفس التصميم على جميع الأقسام للهواتف */
@media (max-width: 768px) {
    .luxury-rating-cart-container {
        gap: 0; /* إزالة الفجوة لضمان المسافة الكاملة */
        justify-content: space-between;
        width: 100%;
    }
    
    .luxury-product-rating {
        width: 100px;
        padding: 4px 8px;
        height: 35px;
        flex-shrink: 0;
        position: absolute; /* فصل التقييمات */
        right: 0; /* تموضع في الطرف الأيمن */
        top: 0; /* محاذاة مع أعلى زر السلة */
        margin: 0; /* إزالة جميع الـ margins */
    }
    
    .luxury-cart-container {
        flex-shrink: 0;
        position: absolute; /* فصل زر السلة */
        left: 0; /* تموضع في الطرف الأيسر */
        top: 0; /* محاذاة مع أعلى التقييمات */
        margin: 0; /* إزالة جميع الـ margins */
    }
    
    .luxury-cart-container .luxury-cart-btn {
        width: 120px;
        height: 42px;
        font-size: 16px;
    }
}

/* تطبيق نفس التصميم على جميع الأقسام للهواتف الصغيرة */
@media (max-width: 480px) {
    .luxury-rating-cart-container {
        gap: 0; /* إزالة الفجوة لضمان المسافة الكاملة */
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    .luxury-product-rating {
        width: auto;
        min-width: 80px;
        justify-content: center;
        padding: 4px 6px;
        height: 30px;
        flex-shrink: 0;
        position: absolute; /* فصل التقييمات */
        right: 0; /* تموضع في الطرف الأيمن */
        top: 0; /* محاذاة مع أعلى زر السلة */
        margin: 0; /* إزالة جميع الـ margins */
    }
    
    .luxury-cart-container {
        flex-shrink: 0;
        position: absolute; /* فصل زر السلة */
        left: 0; /* تموضع في الطرف الأيسر */
        top: 0; /* محاذاة مع أعلى التقييمات */
        margin: 0; /* إزالة جميع الـ margins */
    }
    
    .luxury-cart-container .luxury-cart-btn {
        width: 150px;
        height: 52px;
        font-size: 20px;
    }
}

.luxury-cart-container .luxury-cart-btn.active {
    color: #4caf50;
    background: #e8f5e8;
    border-color: #4caf50;
}

.luxury-cart-container .luxury-cart-btn.in-cart {
    background: #1976d2;
    color: white;
    border-color: #1976d2;
    position: relative;
}

.luxury-cart-container .luxury-cart-btn.in-cart:hover {
    background: #1565c0;
    border-color: #1565c0;
}

/* Show trash icon only on hover when in cart */
.luxury-cart-container .luxury-cart-btn.in-cart .fa-shopping-cart {
    opacity: 1;
}

.luxury-cart-container .luxury-cart-btn.in-cart .fa-trash {
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.luxury-cart-container .luxury-cart-btn.in-cart:hover .fa-shopping-cart {
    opacity: 0;
}

.luxury-cart-container .luxury-cart-btn.in-cart:hover .fa-trash {
    opacity: 1;
}

/* Ensure proper initial state */
.luxury-cart-container .luxury-cart-btn:not(.in-cart) {
    background: white;
    color: #666;
    border-color: #e0e0e0;
}

/* Cart with Quantity */
.luxury-cart-with-quantity {
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

.cart-quantity-display {
    background: #dc3545;
    color: #fff;
    border-radius: 10%;
    width: 22px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
}

/* Quantity Controls */
.luxury-cart-quantity-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1976d2;
    border-radius: 10%;
    padding: 4px;
    gap: 2px;
    min-width: 100px;
    width: 100%;
    height: 100%;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.luxury-cart-quantity-controls .luxury-cart-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    margin-right: -3px;
    border-radius: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

.luxury-cart-quantity-controls .luxury-cart-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.luxury-cart-quantity-controls .luxury-cart-btn:active {
    background: rgba(255, 255, 255, 0.1);
}

.luxury-cart-quantity-controls .luxury-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

/* Cart icon bounce animation */
.luxury-cart-icon.bounce {
    animation: cartBounce 0.6s ease;
}

@keyframes cartBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===== QUANTITY CONTROLS STYLES - Same as products page ===== */
.luxury-cart-quantity {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    min-width: 20px;
    text-align: center;
    padding: 0 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.luxury-cart-decrease,
.luxury-cart-increase {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    padding: 0;
    color: #666;
}

.luxury-cart-decrease:hover,
.luxury-cart-increase:hover {
    background: #f8f9fa;
    border-color: #ccc;
    transform: scale(1.1);
    color: #333;
}

.luxury-cart-decrease:active,
.luxury-cart-increase:active {
    transform: scale(0.95);
}

.luxury-cart-decrease:disabled,
.luxury-cart-increase:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== LOADING DOTS ANIMATION ===== */
.loading-dots {
    display: inline-block;
    position: relative;
    width: 20px;
    height: 20px;
}

.loading-dots::after {
    content: '...';
    animation: loadingDots 1.5s 1;
    font-size: 16px;
    color: inherit;
}

@keyframes loadingDots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}


/********** Template CSS - محدثة لتطابق صفحة show.blade.php **********/
:root {
    --primary: #97755b;
    --secondary: #f8f9fa;
    --light: #ffffff;
    --dark: #333;
    --gray: #666;
    --dark-gray: #333;
    --light-gray: #f8f9fa;
    --border-radius: 8px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* Body styles inherited from style.css */

.fa-sm {
    line-height: .07143em;
    vertical-align: .05357em;
    padding: 18px 11px 0px 6px;
}

.txetraed {
    padding: 7px;
}

h1, h2, h3, h4, h5, h6,
.font-secondary {
    font-family: 'El Messiri', sans-serif;
    font-weight: 700;
    padding: 0px 20px;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

.btn {
    font-family: 'Tajawal', sans-serif;
    font-weight: 600;
    transition: var(--transition);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--light);
}

.btn-outline-primary {
    color: #97755b;
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: #97755b;
    color: var(--light);
}

.btn-lg {
    padding: 0.75rem 1.75rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.section-title h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 3px;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    background-color: var(--primary);
}

.text-white {
    --bs-text-opacity: 1;
    color: #212529 !important;
}
/* Video Play Button Reset */
.btn-play,
.btn-play:hover,
.btn-play:before,
.btn-play:after,
.btn-play span {
    all: unset;
}

.machine{
    border-radius: 25px;
}

/* About Section */
.about-experience {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background-color: rgba(151, 117, 91, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    border-top-left-radius: 50%;
}

.about-experience h2 {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.about-feature {
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.about-feature:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}



.icon-box {
    width: 60px;
    height: 60px;
    transition: var(--transition);
}

.about-feature:hover .icon-box {
    background-color: #97755b !important;
    transform: rotate(45deg);
}

.about-feature:hover .icon-box i {
    transform: rotate(-45deg);
}

.about-feature .icon-box i {
    transition: var(--transition);
}

/* Product Slider */
.product-slider-container {
    position: relative;
    padding: 0 50px;
}

.products-wrapper {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 20px 0;
}

.products-wrapper::-webkit-scrollbar {
    display: none;
}

.products-track {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 1rem;
}

.product-card-slider {
    background-color: var(--light);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: var(--transition);
    scroll-snap-align: start;
    flex: 0 0 300px;
    position: relative;
}

.product-card-slider:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, var(--primary), var(--text-primary));
    color: var(--light);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid #e0e0e0;
    z-index: 1;
}

.product-image {
    width: 180px;
    left: -19%;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    box-shadow: 0 10px 30px rgb(0 0 0 / 0%);
}

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

.product-info {
    padding: 1.25rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.product-description {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1rem;
    min-height: 40px;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.product-price del {
    font-size: 0.9rem;
    color: var(--gray);
    margin-left: 0.5rem;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--light);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    color: var(--dark);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

.product-slider-container:hover .slider-btn {
    opacity: 1;
    visibility: visible;
}

.slider-btn:hover {
    background-color: var(--primary);
    color: var(--light);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    right: 0;
}

.next-btn {
    left: 0;
}

/* ===== MACHINES HORIZONTAL SLIDER STYLES ===== */
.machines-horizontal-slider-container {
    position: relative;
    overflow: hidden;
    padding: 0 26px;
    width: 100vw;
    margin-left: 0;
    margin-right: calc(-50vw + 50%);
}

.machines-slider-wrapper {
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 20px 0;
    width: 100%;
    max-width: 100%;
}

.machines-slider-wrapper::-webkit-scrollbar {
    display: none;
}

.machines-slider-track {
    display: flex;
    gap: 20px;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

.machines-slider-item {
    flex: 0 0 280px;
    min-width: 280px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

/* Machine Card Styles - Match Products Page */
.machines-horizontal-slider-container .machine-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    color: #2B2825;
    position: relative;
    border: 1px solid #E0D7CF;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
}

.machines-horizontal-slider-container .machine-image-container {
    position: relative;
    overflow: hidden;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    width: 100%;
    max-width: 100%;
}

.machines-horizontal-slider-container .machine-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    padding: 20px;
}

.machines-horizontal-slider-container .machine-card:hover .machine-image {
    transform: scale(1.05);
}

.machines-horizontal-slider-container .machine-info {
    padding: 5px 20px 20px 20px;
    border-top: 1px solid #6565653d;
    border-radius: 12px;
    margin-top: 2%;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    background: white;
}

.machines-horizontal-slider-container .machine-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 14px;
    margin-right: -10%;
    color: #53585c;
    text-align: center;
}

/* Coffee Machines - Old Styles (Keep for compatibility) */
.machine-card {
    background-color: var(--light);
    border: 1px solid #e0e0e0;
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.machine-card:hover {
    /* background-color: var(--primary) !important; */
    transform: translateY(-5px);
    border-color: var(--primary);
}

.machine-card:hover h5 {
    color: var(--light);
}

.machine-icon {
    transition: var(--transition);
}

.machine-card:hover .machine-icon {
    background-color: var(--light) !important;
    color: var(--primary) !important;
    transform: scale(1.1);
}

/* Roasting Process */
.roasting-steps {
    padding-right: 0;
    margin-top: 16%;
}

.roasting-step {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    box-shadow: none;
    transition: none;
    cursor: pointer;
}

.roasting-step:hover {
    border-color: #d8d8d8;
    transform: none;
    box-shadow: none;
}

.roasting-step .step-number {
    width: 44px;
    height: 44px;
    background: #fff;
    color: #8b5a2b;
    border: 1px solid;
    box-shadow: none;
}

.roasting-step.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.roasting-step.active h5,
.roasting-step.active p {
    color: #ffffff;
}

.roasting-step.active .step-number {
    background: #ffffff;
    color: var(--primary);
    border-color: #ffffff;
}

@media (max-width: 768px) {
    .roasting-step { border-radius: 14px; }
}

.step-content h5 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.step-content p {
    color: var(--gray);
    margin-bottom: 0;
}

/* Testimonials */
.testimonial-item {
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.testimonial-rating {
    color: #ffc107;
}

.testimonial-carousel .owl-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.testimonial-carousel .owl-dot {
    width: 12px;
    height: 12px;
    background-color: #ddd !important;
    border-radius: 50%;
    margin: 0 5px;
    transition: var(--transition);
}

.testimonial-carousel .owl-dot.active {
    background-color: var(--primary) !important;
    transform: scale(1.3);
}

/* Blog */
.blog-card {
    transition: var(--transition);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    background-color: var(--light);
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

/* Newsletter */
.newsletter-form .form-control {
    height: 50px;
    border-radius: 50px 0 0 50px !important;
    border-right: none;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0 !important;
    padding: 0 25px;
}

/* Footer */
.footer-links h5,
.footer-contact h5 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

.footer-links h5::after,
.footer-contact h5::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
}

.footer-links ul li a {
    display: block;
    padding: 8px 0;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary) !important;
    padding-right: 10px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    margin-top: 5px;
    margin-right: 10px;
    color: var(--primary);
}

.footer-social .btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1rem;
    transition: var(--transition);
}

.footer-social .btn:hover {
    transform: translateY(-5px);
}

.copyright {
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    transition: var(--transition);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide-caption {
    position: absolute;
    bottom: 15%;
    right: 10%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease;
}

.slide.active .slide-caption {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.5s;
}

.slide-caption h3 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 10px;
    font-family: 'El Messiri', sans-serif;
}

.slide-caption p {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 15px;
    line-height: 1.6;
}

.slide-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.slide-tags .tag {
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.slider-dots {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.slider-dots .dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.slider-dots .dot span {
    color: white;
    font-weight: bold;
}

.slider-dots .dot.active {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.slider-dots .dot:hover .dot-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dot-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    color: var(--dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.slider-arrows {
    display: flex;
    gap: 20px;
}

.slider-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.slider-arrow:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* Scroll Down */
.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-decoration: none;
    animation: bounce 2s 1;
}

.scroll-down span {
    margin-top: 10px;
    font-size: 0.9rem;
}

/* Floating Beans */
.floating-bean {
    position: absolute;
    z-index: 5;
    animation: float 8s 1 ease-in-out;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.3));
    max-width: 80px;
}

.bean-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.bean-2 {
    top: 70%;
    left: 80%;
    animation-delay: 2s;
}

.bean-3 {
    top: 40%;
    left: 85%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-20px) translateX(-50%);}
    60% {transform: translateY(-10px) translateX(-50%);}
}

/* Hero Full */
.hero-full {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: scaleBackground 20s 1 alternate;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(51, 51, 51, 0.85) 0%, rgba(51, 51, 51, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 80px;
}

.hero-text {
    max-width: 700px;
    color: #fff;
    text-align: center;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-subtitle {
    display: block;
    font-size: 1.3rem;
    color: #97755b;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    direction: ltr;
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.2;
    color: white;
    margin-bottom: 25px;
    direction: ltr;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.text-primary {
    color: var(--primary);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.9;
    line-height: 1.8;
    direction: ltr;
    color: #ffffff;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    direction: ltr;
    margin-left: -363px;
}

.video-button {
    display: flex;
    align-items: center;
    gap: 15px;
}

.play-text {
    font-weight: 500;
    font-size: 1.1rem;
    color: #97755b;
}

.hero-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

@keyframes scaleBackground {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    70% { transform: scale(1.1); opacity: 0.3; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.product-card {
    background: white;
    border: 2px ridge;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-image-container {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.product-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

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

.image-scroller {
    height: 80px;
    position: relative;
    margin-bottom: 15px;
}

.scroller-inner {
    display: flex;
    gap: 10px;
    width: calc(200% + 30px);
}

.related-item {
    flex: 0 0 80px;
}

.related-item img:hover {
    transform: scale(1.1);
}

.price-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-action .product-price { /* Adjusted selector */
    font-weight: bold;
    color: #E88F2A;
    font-size: 1.2rem;
}

.price-action .product-price del { /* Adjusted selector */
    color: #6c757d;
    font-size: 0.9rem;
    margin-left: 5px;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Luxe Coffee Hero */
.luxe-coffee-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.luxe-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Image Product */
.img-pro {
    width: 65%;
    height: 104%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.lef-mm {
    margin-left: 20px;
    padding-right: 16px;
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991.98px) {
    .section-title h1 {
        font-size: 2rem;
    }
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-description {
        font-size: 1.1rem;
    }
    .hero-buttons {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .product-slider-container {
        padding: 0 20px;
    }
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-full {
        min-height: 700px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .luxe-coffee-hero {
        height: auto;
        min-height: 100vh;
    }
    .image-container {
        position: relative;
        height: 28%;
        min-height: 30vh;
    }
    .luxe-image {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 576px) {
    .section-title h1 {
        font-size: 1.5rem;
    }
    .section-title h2 {
        font-size: 1.2rem;
    }
    .footer-links h5,
    .footer-contact h5 {
        font-size: 1.2rem;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .video-button {
        margin-top: 10px;
    }
    .floating-bean {
        width: 40px;
    }
}

@media (min-width: 2000px) {
    .luxe-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* =============================================== */
/*   Responsive Styles for About Sections */
/* =============================================== */
@media (max-width: 991.98px) {
    .about-img {
        margin-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    .about-img {
        text-align: center;
    }
    .about-experience {
        width: 150px;
        height: 150px;
    }
    .about-experience h2 {
        font-size: 2.5rem;
    }
    .about-experience small {
        font-size: 0.7rem;
    }
    .about-feature {
        margin-bottom: 15px;
    }
}

@media (max-width: 575.98px) {
    .luxe-slider-container {
        height: 40vh;
    }
    .luxe-caption h3 {
        font-size: 1.3rem;
    }
    .about-experience {
        width: 120px;
        height: 120px;
    }
    .about-experience h2 {
        font-size: 2rem;
    }
    .about-experience small {
        font-size: 0.7rem;
    }
}

/* جديد  */
.coffee-master-showcase {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.master-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.master-particles, .master-filter {
    position: absolute;
    width: 100%;
    height: 100%;
}

.master-filter {
    background: rgba(0, 0, 0, 0.3);
}

.master-slider {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.master-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.master-slide.active {
    opacity: 1;
    z-index: 3;
}

.complete-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.master-product-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    width: 90%;
    max-width: 600px;
}

.product-display-card {
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.highlight-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #d4af37;
    margin-bottom: 25px;
}

.coffee-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #d4af37;
    font-weight: 700;
}

.coffee-description {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #f5f5f5;
}

.coffee-tags {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.coffee-tag {
    background: rgba(212, 175, 55, 0.25);
    color: #d4af37;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.mobile-product-display {
    position: relative;
    width: 100%;
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.85);
    z-index: 5;
}

.master-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    z-index: 4;
    display: flex;
    justify-content: center;
}

.control-dots {
    display: flex;
    gap: 15px;
}

.master-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.master-dot.active {
    background: #d4af37;
    transform: scale(1.3);
}

@media (max-width: 767px) {
    .coffee-master-showcase {
        height: 70vh;
    }
    .highlight-image {
        width: 140px;
        height: 140px;
    }
    .coffee-title {
        font-size: 2rem;
    }
    .coffee-description {
        font-size: 1rem;
    }
}

@media (max-height: 600px) {
    .highlight-image {
        width: 120px;
        height: 120px;
    }
    .coffee-title {
        font-size: 1.8rem;
    }
}

/* قصتنا */
.coffee-story-section {
    padding: 5rem 0;
    background-color: #f9f5f0;
    position: relative;
}

.story-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.section-subtitle {
    color: #8b5a2b;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.section-title {
    color: #3a2c1a;
    font-size: 2.5rem;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0;
}

.story-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.story-image-col,
.story-text-col {
    flex: 1;
    min-width: 300px;
}

.story-image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.story-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.story-image-container:hover .story-img {
    transform: scale(1.03);
}

.story-heading {
    color: #3a2c1a;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.story-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #8b5a2b;
    margin-top: 1rem;
}

.story-description {
    color: #5a4a3a;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background: #8b5a2b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon {
    color: white;
    font-size: 1.5rem;
}

.feature-title {
    color: #3a2c1a;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.feature-text {
    color: #5a4a3a;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.story-cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: transparent;
    color: #8b5a2b;
    border: 2px solid #8b5a2b;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.story-cta-button:hover {
    background: #8b5a2b;
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .story-content-wrapper {
        flex-direction: column;
    }
    .story-image-col,
    .story-text-col {
        flex: none;
        width: 100%;
    }
    .section-title {
        font-size: 2rem;
    }
    .experience-badge {
        bottom: 1rem;
        right: 1rem;
        padding: 0.8rem 1.2rem;
    }
    .experience-years {
        font-size: 2rem;
    }
}

/* تصفح منتجاتنا  */
.modern-products {
    padding: 4rem 0;
    background: #fafafa;
}

/* .container {
    max-width: 1200px;
    margin: 2px auto;
    padding: 0 15px;
} */

.modern-products .section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #d4a762;
}

.product-media {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.thumbnail-slider {
    position: relative;
    margin-top: 15px;
    width: 100%;
    height: 99px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 8px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.infinite-slider-container {
    position: relative;
    margin-top: 15px;
    width: 100%;
    height: 99px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 8px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.infinite-slider-track {
    display: flex;
    gap: 8px;
    height: 86px;
    width: max-content;
    will-change: transform;
}

.circular-slider-container {
    position: relative;
    width: 156%;
    height: 200px;
    overflow: hidden;
    margin: 20px -41px;
}

.circular-slider-track {
    display: flex;
    position: absolute;
    left: 0;
    top: -27px;
    background-color: white;
    height: 100%;
    align-items: center;
    animation: circularScroll 30s linear 1;
    will-change: transform;
}

@keyframes circularScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.slider-item {
    flex: 0 0 150px;
    height: 150px;
    margin: 0 15px;
    overflow: hidden;
    border: 4px;
    box-shadow: 0 4px 12px rgb(250 250 250);
    transition: transform 0.3s ease;
}

.slider-item:hover {
    transform: scale(1.1);
}

@keyframes autoScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% + 100vw));
    }
}

.slide {
    flex: 0 0 50px;
    height: 84px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.slide.active {
    border-color: #d4a762;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-item.active {
    border-color: #d4a762;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #d4a762;
    font-size: 12px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.slider-nav:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .circular-slider-container {
        height: 180px;
        margin: 20px -30px;
    }
    .slider-item {
        flex: 0 0 120px;
        height: 120px;
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .circular-slider-container {
        height: 160px;
        margin: 20px -20px;
    }
    .slider-item {
        flex: 0 0 100px;
        height: 100px;
    }
}

.prev {
    right: 5px;
}

.next {
    left: 5px;
}

.thumbnail-slider:hover .slider-nav {
    opacity: 1;
}

.product-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.product-link {
    display: inline-block;
    color: #d4a762;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-link:hover {
    color: #b38a4a;
}

.view-more {
    text-align: center;
    margin-top: 3rem;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.7rem 1.5rem;
    background: #d4a762;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(212,167,98,0.3);
}

.view-all-btn:hover {
    background: #b38a4a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212,167,98,0.4);
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* التحضير  */
.brewing-methods-section {
    padding: 5rem 0;
    background-color: #f9f5f0;
    position: relative;
}

.brewing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-main-title {
    color: #3a2c1a;
    font-size: 2.5rem;
    margin: 0;
    text-transform: uppercase;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #8b5a2b;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}

.method-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.method-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #8b5a2b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.method-card:hover .method-icon-wrapper {
    background: #6b451f;
    transform: scale(1.1);
}

.method-icon {
    color: white;
    font-size: 2rem;
}

.method-name {
    color: #3a2c1a;
    font-size: 1.2rem;
    margin: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.method-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 90, 43, 0.9);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 16px;
}

.method-card:hover .method-overlay {
    opacity: 1;
}

.method-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: center;
}

.method-btn {
    background: transparent;
    color: white;
    border: 1px solid white;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.method-btn:hover {
    background: white;
    color: #8b5a2b;
}

@media (max-width: 768px) {
    .methods-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .section-main-title {
        font-size: 2rem;
    }
    .method-card {
        padding: 1.5rem 1rem;
        min-height: 180px;
    }
    .method-icon-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }
    .method-icon {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .methods-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .section-subtitle {
        font-size: 1.3rem;
    }
    .section-main-title {
        font-size: 1.8rem;
    }
}


/* فن التحميص */
.coffee-roasting-process {
    padding: 5rem 0;
    background-color: #f9f5f0;
    position: relative;
}

.roasting-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.roasting-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.roasting-steps-col,
.roasting-info-col {
    flex: 1;
    min-width: 300px;
    margin-right: -5px;
}

.process-timeline {
    position: relative;
    padding-left: 40px;
}

.process-step {
    position: relative;
    padding-bottom: 2.5rem;
}

.process-step:last-child {
    padding-bottom: 0;
}

.step-marker {
    position: absolute;
    left: -40px;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-line {
    width: 2px;
    height: 100%;
    background: #d4af37;
    position: absolute;
    top: 40px;
    margin-top: 0.5rem;
}

.process-step.active .step-number {
    background: #3a2c1a;
    transform: scale(1.1);
}

.step-details {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.process-step:hover .step-details {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.step-title {
    color: #3a2c1a;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
}

.roasting-header {
    margin-bottom: 2rem;
}

.roasting-subtitle {
    color: #8b5a2b;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.roasting-title {
    color: #3a2c1a;
    font-size: 2.5rem;
    margin: 0;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.roasting-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #8b5a2b;
}

.roasting-text {
    color: #5a4a3a;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.roasting-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.roasting-cta {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #8b5a2b;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #8b5a2b;
}

.roasting-cta:hover {
    background: transparent;
    color: #8b5a2b;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .roasting-content-wrapper {
        flex-direction: column;
    }
    .roasting-steps-col,
    .roasting-info-col {
        width: 100%;
    }
    .roasting-title {
        font-size: 2rem;
    }
    .process-timeline {
        padding-left: 30px;
    }
    .step-marker {
        left: -30px;
    }
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}

/* ازاله الهوامش  */
@media (max-width: 767px) {
    body, html {
        width: 100%;
        overflow-x: hidden;
    }
    .modern-coffee-showcase {
        padding-left: 0;
        padding-right: 0;
    }
    .carousel-slide {
        padding-left: 5px;
        padding-right: 5px;
    }
    .slide-image-container {
        margin-left: 5px;
        margin-top: -175px;
    }
    .mobile-product-container,
    .product-highlight {
        padding-left: 15px;
        padding-right: 15px;
    }
}
.text-uppercasew, .text-whitee {
    color: white !important;
}

/* دعم السلايدر العصري */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #d4af37;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.cursor-outline {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 1px solid #d4af37;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease;
}

.custom-cursor.cursor-hover .cursor-outline {
    width: 40px;
    height: 40px;
    border-color: #8b5a2b;
}

.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

[data-performance="low"] .floating-particles,
[data-performance="low"] .stars-container,
[data-performance="low"] .particle {
    display: none !important;
}

.keyboard-navigation *:focus {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

.category-card.luxury-product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.category-media.luxury-product-image-container {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    height: 374px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    z-index: 1;
}

.main-image-container {
    position: absolute;
    top: -16px;
    left: -36px;
    width: 119%;
    height: 106%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    z-index: 1;
}

.main-image.luxury-product-image {
    width: 90%;
    height: 90%;
    margin: 0;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background: white;
    padding: 8px;
    position: relative;
    z-index: 1;
}

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

.category-info.luxury-product-info {
    padding: 5px;
    border-top: 1px solid #6565653d;
    border-radius: 12px;
    margin-top: -12%;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    position: relative;
    z-index: 2;
}

.category-title.luxury-product-title {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 14px;
    margin-right: -10%;
    color: var(--luxury-dark);
    position: relative;
}

.category-title.luxury-product-title::after {
    content: '';
    position: absolute;
    bottom: 13px;
    right: 31px;
    width: 40px;
    height: 1px;
    background: var(--primary);
    border-radius: 1px;
}
.category-desc {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
    padding-right: 10px;
}

.luxury-product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 88px;
    background: #ffffff;
    border-radius: 8px;
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    margin-top: 10px;
    height: 26px;
    align-self: flex-start;
    position: relative;
}

.luxury-product-rating::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, var(--primary), #d4af37);
    border-radius: 8px;
    z-index: -1;
    opacity: 0.1;
}

.rating-count {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.rating-star {
    color: #4caf50;
    font-size: 16px;
}

.rating-value {
    color: #000;
    font-size: 16px;
    font-weight: 700;
}

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

.luxury-action-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-action-btn:hover::before {
    left: 100%;
}

.luxury-favorite-btn {
    color: #666;
}

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

.circular-slider-container {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    margin: 11px 0;
    border-radius: 16px;
    padding: 8px;
    border: 1px solid #e0e0e0;
}

.slider-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(151, 117, 91, 0.05) 0%, rgba(212, 175, 55, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 16px;
}

.slider-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(151, 117, 91, 0.15);
}

.slider-item:hover::before {
    opacity: 1;
}

.slider-item::after {
    content: '↔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 24px;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 3;
    opacity: 0;
}

.slider-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.view-all-btn.luxury-btn.luxury-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 2rem;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(151, 117, 91, 0.3);
    border: none;
    font-size: 0.95rem;
    min-width: 140px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.view-all-btn.luxury-btn.luxury-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.view-all-btn.luxury-btn.luxury-btn-primary:hover::before {
    left: 100%;
}

.view-all-btn.luxury-btn.luxury-btn-primary:hover {
    background: #7a5a3f;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(151, 117, 91, 0.4);
    color: white;
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    .circular-slider-container {
        height: 100px;
    }
    .slider-item {
        flex: 0 0 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    .modern-categories {
        padding: 3rem 0;
    }
}

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .modern-categories {
        padding: 2.5rem 0;
    }
    .category-media.luxury-product-image-container {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    .category-media.luxury-product-image-container {
        height: 260px;
    }
}

.luxury-cart-btn.in-cart {
    background: #1976d2;
    color: #ffffff7d;
    border-color: #1976d2;
}


@media (min-width: 769px) and (max-width: 1199px) {
    .luxury-video-modal-content {
        max-width: 750px;
    }
}

.mobile-btn-video {
    position: relative;
    z-index: 20;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: pointer;
}

.mobile-slide-actions {
    position: relative;
    z-index: 15;
}

.mobile-text-content {
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .mobile-btn-video {
        z-index: 25;
    }
    .mobile-slide-actions {
        z-index: 20;
    }
    .mobile-text-content {
        z-index: 15;
    }
}

.cart-quantity-display {
    background: #6666666e;
    color: #212529;
    border-radius: 21%;
    width: 24px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* Rating and Cart Container Responsive */
@media (max-width: 768px) {
    /* القوالب المرنة للشاشات المتوسطة */
    .products-slider-item {
        min-height: 350px;
    }
    
    .products-horizontal-slider-container .luxury-rating-cart-container {
        gap: 8px;
    }
    
    .products-horizontal-slider-container .luxury-rating-cart-container.with-countdown {
        margin-bottom: 12px;
    }
    
    .products-horizontal-slider-container .luxury-rating-cart-container:not(.with-countdown) {
        margin-bottom: 0;
    }
    
    .products-horizontal-slider-container .luxury-product-rating {
        width: 100px;
        padding: 4px 8px;
        height: 35px;
    }
    
    .products-horizontal-slider-container .luxury-cart-container .luxury-cart-btn {
        width: 70px;
        height: 32px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    /* القوالب المرنة للشاشات الصغيرة */
    .products-slider-item {
        min-height: 320px;
    }
    
    .products-horizontal-slider-container .luxury-rating-cart-container {
        gap: 6px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .products-horizontal-slider-container .luxury-rating-cart-container.with-countdown {
        margin-bottom: -10px;
        width: 109%;
        margin-right: -3%;
    }
    
    .products-horizontal-slider-container .luxury-rating-cart-container:not(.with-countdown) {
        margin-bottom: 8px;
        width: 309px;
    }
    
    .products-horizontal-slider-container .luxury-product-rating {
        width: auto;
        min-width: 80px;
        justify-content: center;
        padding: 4px 6px;
        height: 29px;
        font-size: 12px;
    }
    
    .products-horizontal-slider-container .luxury-cart-container {
        display: flex;
        justify-content: center;
    }
    
    .products-horizontal-slider-container .luxury-cart-container .luxury-cart-btn {
              width: 118px;
        height: 39px;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    /* القوالب المرنة للشاشات الصغيرة جداً */
    .products-horizontal-slider-container .luxury-rating-cart-container {
        gap: 4px;
        justify-content: space-between;
    }
    
    .products-horizontal-slider-container .luxury-product-rating {
        min-width: 70px;
        padding: 3px 9px;
        height: 30px;
        font-size: 11px;
    }
    
    .products-horizontal-slider-container .luxury-cart-container .luxury-cart-btn {
        width: 104px;
        height: 50px;
        font-size: 20px;
    }
    
    /* أسهم معرض الصور للشاشات الصغيرة جداً */
    .product-gallery-nav {
        width: 30px;
        height: 30px;
    }
    
    .product-gallery-nav i {
        font-size: 12px;
    }
    
    .product-gallery-prev {
        left: 5px;
    }
    
    .product-gallery-next {
        right: 5px;
    }
    
    .gallery-indicator {
        width: 6px;
        height: 6px;
    }
}