/*
 * ===================================================
 *                    Product Single Page Styles
 * ===================================================
*/

/* ===== GENERAL LAYOUT ===== */
.luxury-product {
    padding: 30px 0;
    background: #ffffff;
    width: 100%;
    overflow-x: hidden;
}

.luxury-container {
    max-width: 100%;
    margin: 0;
    padding: 0 13px;
    overflow-x: hidden;
    box-sizing: border-box;
}

.luxury-product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 40px;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* ===== BREADCRUMB ===== */
.luxury-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    padding: 12px 0;
}
.luxury-breadcrumb-item { color: #666; text-decoration: none; font-size: 0.85rem; }
.luxury-breadcrumb-item:hover { color: #333; }
.luxury-breadcrumb-item.active { color: #333; font-weight: 500; }
.luxury-breadcrumb-divider { color: #ccc; font-size: 0.8rem; }

/* ===== MOBILE VIDEO PLAY BUTTON ===== */
.luxury-mobile-video-play-btn {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 73px !important;
    height: 50px !important;
    background: rgba(0, 0, 0, 0.8) !important; /* لون أسود شفاف */
    /* border: 3px solid #ffffff !important; */
    border-radius: 13% !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 5 !important; /* z-index منخفض جداً لعدم التداخل مع الهيدر */
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
}

.luxury-mobile-video-play-btn i {
    color: #ffffff;
    font-size: 2rem;
    margin-left: 4px;
}

.luxury-mobile-video-play-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.luxury-mobile-video-play-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
}

/* إظهار زر الفيديو في الهواتف والأيبادات فقط */
@media (max-width: 1024px) {
    .luxury-mobile-video-play-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 5 !important;
        background: rgba(0, 0, 0, 0.8) !important;
    }
}

/* إخفاء زر الفيديو في الشاشات الكبيرة */
@media (min-width: 1025px) {
    .luxury-mobile-video-play-btn {
        display: none;
    }
}

/* إخفاء قالب الفيديو في الشريط للشاشات الصغيرة - قاعدة أقوى */
@media (max-width: 1024px) {
    .luxury-gallery-container .luxury-video-thumbnail,
    .luxury-video-thumbnail {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
    }
}
.luxury-product-gallery {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #97755b32;
    border-radius: 8px;
    padding: 20px;
}
.luxury-main-image-container {
    position: relative !important;
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}
.luxury-main-image {
    width: 100%;
    height: auto;
    max-height: 507px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

/* أسهم التنقل للصورة الرئيسية */
.luxury-main-image-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(128, 128, 128, 0.8);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.luxury-main-image-nav-btn:hover {
    background: rgba(128, 128, 128, 1);
    transform: translateY(-50%) scale(1.1);
}

.luxury-main-image-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.luxury-main-image-prev {
    left: 15px;
}

.luxury-main-image-next {
    right: 15px;
}
.luxury-gallery-container {
    display: flex;
    gap: 15px;
    align-items: center;
}
.luxury-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
    scrollbar-color: #97755b #f1f1f1;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}
.luxury-thumbnails::-webkit-scrollbar { height: 5px; }
.luxury-thumbnails::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.luxury-thumbnails::-webkit-scrollbar-thumb { background: #666; border-radius: 4px; }

.luxury-thumbnail {
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    position: relative;
}
.luxury-thumbnail img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    display: block;
    padding: 5px;
    background: #ffffff;
    transition: transform 0.3s ease;
}
.luxury-thumbnail.active { border-color: #97755b; }

/* إخفاء الصور الزائدة بعد الصورة الرابعة */
.luxury-thumbnail:nth-child(n+5) {
    display: none;
}

/* إضافة قالب "المزيد" على الصورة الرابعة */
.luxury-thumbnail:nth-child(4)::after {
    content: '+ المزيد';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgb(151 117 91 / 44%) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 2;
    backdrop-filter: blur(2px);
}

.luxury-thumbnail:nth-child(4):hover::after {
    opacity: 1;
}

/* إظهار قالب "المزيد" فقط عندما يكون هناك أكثر من 4 صور */
.luxury-thumbnails:has(.luxury-thumbnail:nth-child(5)) .luxury-thumbnail:nth-child(4)::after {
    opacity: 1;
}

/* تحسين عرض قالب "المزيد" في الشاشات الكبيرة */
@media (min-width: 1025px) {
    .luxury-thumbnail:nth-child(4)::after {
        font-size: 12px;
        font-weight: 700;
    }
}

/* تحسين تصميم قالب "المزيد" */
.luxury-thumbnail:nth-child(4)::after {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.2);
}

/* تأثيرات إضافية لقالب "المزيد" */
.luxury-thumbnail:nth-child(4):hover::after {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgb(151 117 91 / 44%) 100%);
    transform: scale(1.05);
}

.luxury-video-thumbnail {
    flex: 0 0 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: #ffffff;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.luxury-video-thumbnail:hover { border-color: #97755b; }
.luxury-video-preview { width: 100%; height: 100%; object-fit: cover; }
.luxury-video-icon {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 30px; height: 30px;
    background: rgba(151, 117, 91, 0.8);
    border-radius: 50%; display: flex;
    align-items: center; justify-content: center;
    color: white; font-size: 1rem;
}

/* ===== PRODUCT DETAILS ===== */
.luxury-product-details {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    border: 1px solid #97755b1f;
}


.luxury-product-titlee {
    font-size: 2.2rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 15px;
    padding: 0;
    line-height: 1.3;
}
.luxury-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}
.luxury-product-sku { font-size: 0.9rem; color: #6c757d; }

.luxury-current-price { 
    font-size: 26px; 
    font-weight: 700; 
    color: #333; 
}
.luxury-old-price { font-size: 1.2rem; color: #575757; text-decoration: line-through; text-decoration-color: red; }
.luxury-discount {
    background-color: #dc35451c;
    color: #dc3545;
    border: 1px dashed #dc3545;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.luxury-product-description { margin-bottom: 30px; }
.luxury-product-description p { color: #6c757d; line-height: 1.6; margin-bottom: 20px; }
.luxury-features { list-style: none; padding: 0; }
.luxury-features li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #2B2825; }
.luxury-features li i { color: #28a745; font-size: 0.9rem; }

.luxury-product-options { 
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.luxury-option-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    position: relative;
}

.luxury-option-group:not(:last-child)::after {
    /* content: ''; */
    position: absolute;
    bottom: 0;
    right: 0;
    width: calc(100% - 100px);
    height: 1px;
    background: #e0e0e0;
}

.luxury-option-group:not(:last-child)::before {
    /* content: ''; */
    position: absolute;
    bottom: 0;
    right: calc(100% - 100px - 6px);
    width: 0;
    height: 0;
    border-right: 6px solid #e0e0e0;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
}

.luxury-option-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.luxury-option-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333333;
    text-align: right;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.luxury-option-title::before {
    content: '';
    width: 3px;
    height: 14px;
    background: #2563eb;
    border-radius: 1px;
}

.luxury-option-values {
    display: flex
;
    flex-wrap: wrap;
    margin-top: -1%;
    gap: 12px;
    margin-right: 8%;
    flex: 1;
    align-items: center;
}

.luxury-options { 
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap; 
    align-items: center;
}

.luxury-option {
    background-color: rgb(0 123 255 / 0%);
    border: 1px solid #97755b8a;
    border-radius: 6px;
    padding: 8px 16px; 
    cursor: pointer; 
    font-size: 0.9rem; 
    color: #000000;
    font-weight: 500;
    min-width: 70px;
    text-align: center;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.luxury-option:hover { 
    border-color: #97755b;
    background-color: rgb(0 123 255 / 5%);
    color: #000000;
}

.luxury-option.active { 
    border-color: #97755b;
    border-width: 2px;
    background-color: #97755b; 
    color: #ffffff; 
    font-weight: 600;
}

.luxury-option.active::before {
    content: '✓';
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
}

.luxury-option.unavailable {
    background-color: rgb(0 123 255 / 0%);
    border-color: #cccccc;
    color: #999999;
    cursor: not-allowed;
}

.luxury-option.unavailable:hover {
    background-color: rgb(0 123 255 / 0%);
    border-color: #cccccc;
    color: #999999;
}

.luxury-product-actionse { display: flex; align-items: center; gap: 12px; margin-bottom: 25px; flex-wrap: wrap; }

/* ===== VARIANT INFO STYLING ===== */
.luxury-variant-info {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 14px;
    margin-top: 16px;
}

.luxury-variant-details {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.luxury-variant-sku,
.luxury-variant-stock {
    font-size: 0.85rem;
    color: #666666;
    font-weight: 500;
}

/* ===== VARIANT ALERT STYLING ===== */
.luxury-variant-alert {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.luxury-variant-alert i {
    color: #856404;
    font-size: 14px;
}

#variant-alert-text {
    color: #856404;
    font-size: 0.85rem;
    font-weight: 500;
}

#variant-alert-text {
    color: #92400e;
    font-size: 0.9rem;
    font-weight: 500;
}
/* ---- CSS لمؤشر التحميل في أداة التحكم بالكمية ---- */
.luxury-quantity {
    position: relative;
    /* يمكنك تعديل الأبعاد لتناسب تصميمك */
    min-width: 130px; 
    min-height: 48px;
    display: flex;
    align-items: center;
}

/* حالة التحميل */
.luxury-quantity.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;  /* حجم الدائرة */
    height: 24px; /* حجم الدائرة */
    margin-top: -12px;
    margin-left: -12px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #333; /* لون الدائرة */
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 10;
}

/* إخفاء الأزرار والمدخل أثناء التحميل */
.luxury-quantity.loading .luxury-quantity-btn,
.luxury-quantity.loading .luxury-quantity-input {
    opacity: 0;
    pointer-events: none; /* لمنع النقر أثناء التحميل */
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.luxury-quantity-btn { 
    background: #f8f9fa; 
    border: none; 
    width: 40px; 
    height: 40px; 
    cursor: pointer; 
    color: #333; 
    font-size: 1rem;
    font-weight: 600;
}
.luxury-quantity-input { 
    width: 50px; 
    height: 40px; 
    border: none; 
    text-align: center; 
    font-size: 1rem; 
    color: #333; 
    font-weight: 600;
}
.luxury-add-to-cart {
    background-color: #198754;
    color: #fff;
    border: 1px solid #1b8a32;
    padding: 12px 16px; 
    border-radius: 8px; 
    font-weight: 700; 
    font-size: 1.1rem;
    cursor: pointer;
    display: flex; 
    align-items: center; 
    gap: 8px; 
    flex: 1; 
    justify-content: center; 
    transition: all 0.3s ease;
}
/* =========================================== */
/*  Add to Cart Button Loading Animation       */
/* =========================================== */

.luxury-add-to-cart {
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Loader (Spinner) Styles */
.luxury-add-to-cart .btn-loader {
    display: none; /* Hidden by default */
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: auto;
}

/* Loading State */
.luxury-add-to-cart.loading .btn-content {
    visibility: hidden; /* Hide text and icon */
    opacity: 0;
}

.luxury-add-to-cart.loading .btn-loader {
    display: block; /* Show spinner */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Success State */
.luxury-add-to-cart.success {
    background-color: #28a745 !important; /* Green background for success */
    border-color: #28a745 !important;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================== */
/*  Unavailable Variant Option Styles          */
/* =========================================== */

.luxury-option-btn.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    border-color: #dee2e6 !important;
    text-decoration: line-through;
    position: relative;
}

.luxury-option-btn.unavailable .color-preview {
    opacity: 0.4;
}

    .next-step-indicator {
    display: block;
    text-align: right;
    font-size: 13px;
    font-weight: 500;
    color: #c59d5f; /* يمكنك تغيير هذا اللون ليتناسب مع تصميم موقعك */
    margin: -5px 0 12px 0;
    padding: 5px 8px;
    background-color: #fef8f0; /* لون خلفية فاتح جداً */
    border: 1px solid #fce9d0;
    border-radius: 6px;
    animation: fadeInDown 0.4s ease-out;
    width: fit-content; /* يجعل العرض مناسباً للمحتوى */
}

.next-step-indicator i {
    margin-left: 6px; /* لإضافة مسافة يسار الأيقونة */
    vertical-align: middle;
}

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


/* تهيئة الحاوية الأب */
.luxury-option-values {
    position: relative;
}

/* تصميم أيقونة السهم الجديدة (SVG) */
.smooth-arrow-indicator {
    position: absolute;
    width: 24px;  /* حجم أكبر قليلاً */
    height: 24px;
    z-index: 10;
    pointer-events: none; /* لمنع السهم من اعتراض نقرات الماوس */
    
    /* فلتر لإضافة ظل ناعم جداً يعطي عمقاً للأيقونة */
    filter: drop-shadow(0px 2px 2px rgba(0,0,0,0.1));

    /* إخفاء السهم مبدئياً */
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* حالة الظهور: سيتم إضافتها عبر الجافاسكريبت */
.smooth-arrow-indicator.visible {
    opacity: 1;
    transform: translateY(0);
}

/* حركة التنفس اللطيفة */
.smooth-arrow-indicator.visible svg {
    animation: gentlePulse 1.5s infinite ease-in-out;
}

/* تعريف حركة التنفس */
@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15); /* تكبير بسيط في منتصف الحركة */
    }
}

/* تصميم الخط داخل أيقونة SVG */
.smooth-arrow-indicator svg path {
    stroke: #c59d5f; /* لون السهم الذهبي */
    stroke-width: 2.5; /* سماكة الخط */
    stroke-linecap: round; /* يجعل نهايات الخط دائرية */
    stroke-linejoin: round; /* يجعل زوايا الخط دائرية */
    fill: none;
}
/* Optional: add a cross line for better visibility */
.luxury-option-btn.unavailable::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    border-top: 1px solid #adb5bd;
    transform: rotate(-10deg);
}
/* .luxury-add-to-cart:hover { background-color: #0080002a; border-color: #0d5a1f; color: #0d5a1f; } */
.luxury-wishlist {
    background: #fff; 
    border: 1px solid #e0e0e0; 
    color: #333;
    width: 48px; 
    height: 48px; 
    border-radius: 4px; 
    display: flex;
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    transition: all 0.3s ease;
    font-size: 1.1rem;
}
.luxury-wishlist:hover { border-color: #dc3545; color: #dc3545; background-color: #dc35451a; }
.luxury-wishlist.active { background: #dc3545; border-color: #dc3545; color: white; }

.luxury-product-meta-footer { padding-top: 15px; border-top: 1px solid #e0e0e0; }
.luxury-category, .luxury-tags { margin-bottom: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.luxury-category span, .luxury-tags span { font-weight: 500; color: #333; }
.luxury-category a { color: #333; text-decoration: none; font-weight: 500; }
.luxury-category a:hover { text-decoration: underline; }
.luxury-tag {
    background: #f8f9fa; color: #666; padding: 4px 10px;
    border-radius: 4px; text-decoration: none; font-size: 0.8rem; border: 1px solid #e0e0e0;
}
.luxury-tag:hover { background: #e0e0e0; color: #333; }

/* ===== PRODUCT TABS (DESKTOP) ===== */
/* تصميم التبويبات الجديد - بسيط ونظيف */
.luxury-product-tabs {
    background: #fff;
    border-radius: 1px;
    border-top: 7px inset #97755b0d;
    overflow: hidden;
    margin-top: 25px;
    border-bottom: 7px inset #97755b1a;
    margin-bottom: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.luxury-tabs-header { 
    display: flex; 
    background: #fff; 
    padding: 20px 20px 0 20px;
    gap: 12px;
    /* border-bottom: 2px solid #f0f0f0; */
    margin-bottom: 30px;
}
.luxury-tab-btn {
    background: #fff;
    border: 1px solid #97755b7d;
    border-top-right-radius: 8px;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    display: flex
;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 140px;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}
.luxury-tab-btn:hover {
    background: #fff;
    color: #6c757d;
    border-color: #97755b7d;
    text-decoration: none;
}
.luxury-tab-btn.active {
    color: #6c757d;
    background: #2563eb00;
    border-color: #97755b7d;
}

/* عرض جميع التبويبات بشكل متسلسل */
.luxury-tab-pane {
    display: block !important;
    margin-bottom: 40px;
    padding: 0px 29px;
}

.luxury-tab-pane:last-child {
    margin-bottom: 0;
}

.luxury-tab-pane.active {
    display: block !important;
}
.luxury-tab-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    padding: 0;
    margin-bottom: 16px;
}
.luxury-tab-text { color: #666; line-height: 1.6; }

/* ===== DETAILS TABLE (INSIDE TABS) ===== */
/* تصميم جدول المواصفات الجديد */
.luxury-specs-section {
    margin-bottom: 30px;
    margin-right: -16px;
}

.luxury-specs-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 14px;
    padding-bottom: 12px;
    /* border-bottom: 2px solid #f0f0f0; */
}

.luxury-specs-grid
 {
    display: grid
;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: -4px 18px;
}

.luxury-spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    transition: all 0.3s ease;
    position: relative;
}

.luxury-spec-item:nth-child(even) {
    background: #f8f9fa;
}

.luxury-spec-item:last-child,
.luxury-spec-item:nth-last-child(2):nth-child(even) {
    border-bottom: none;
}

.luxury-spec-item:hover {
    background: #f0f0f0;
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.luxury-spec-label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    flex: 1;
    text-align: right;
    padding-left: 15px;
    position: relative;
}

.luxury-spec-value {
    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    margin-right: 20px;
    min-width: 120px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    position: relative;
}

/* خط فاصل بين الخاصية والقيمة */
.luxury-spec-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1px;
    height: 60%;
    background: linear-gradient(to bottom, transparent, #e0e0e0, transparent);
    z-index: 1;
}

/* تصميم عينة اللون */
.color-swatch {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-left: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* تصميم للشاشات الكبيرة - عرض معقول */
@media (min-width: 1200px) {
    .luxury-specs-grid {
        max-width: 900px;
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1400px) {
    .luxury-specs-grid {
        max-width: 1000px;
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1600px) {
    .luxury-specs-grid {
        max-width: 1100px;
        grid-template-columns: 1fr 1fr;
    }
}

/* إذا زادت الخصائص عن 10 - تغيير التخطيط */
.luxury-specs-grid.many-specs {
    grid-template-columns: 1fr;
    max-width: 600px;
}

.luxury-specs-grid.many-specs .luxury-spec-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 15px 20px;
}

.luxury-specs-grid.many-specs .luxury-spec-item::after {
    display: none;
}

.luxury-specs-grid.many-specs .luxury-spec-label {
    text-align: right;
    padding-left: 0;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
    width: 100%;
}

.luxury-specs-grid.many-specs .luxury-spec-value {
    margin-right: 0;
    min-width: auto;
    width: 100%;
    justify-content: flex-start;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

/* تصميم للشاشات الصغيرة */
@media (max-width: 768px) {
    .luxury-specs-grid {
        grid-template-columns: 1fr;
        margin: 0 10px;
        max-width: none;
    }
    
    .luxury-specs-grid.many-specs {
        max-width: none;
        margin: 0 10px;
    }
    
    .luxury-spec-item {
        flex-direction: row;
        align-items: center;
        gap: 0;
        padding: 12px 15px;
    }
    
    .luxury-spec-item::after {
        display: block;
    }
    
    .luxury-spec-value {
        margin-right: 0;
        margin-top: 0;
        min-width: auto;
        text-align: left;
        width: auto;
        padding: 4px 8px;
        font-size: 0.85rem;
    }
    
    .luxury-spec-label {
        font-size: 0.9rem;
        padding-left: 10px;
    }
}

@media (max-width: 576px) {
    .luxury-specs-grid {
        margin: 0 18px;
        border-radius: 6px;
        max-width: none;
    }
    
    .luxury-specs-grid.many-specs {
        max-width: none;
        margin: 0 5px;
    }
    
    .luxury-spec-item {
        padding: 10px 12px;
    }
    
    .luxury-spec-value {
        padding: 3px 6px;
        font-size: 0.8rem;
        min-width: 80px;
    }
    
    .luxury-spec-label {
        font-size: 0.85rem;
        padding-left: 8px;
    }
}

/* ===== REVIEWS SECTION (DESKTOP) ===== */
.luxury-reviews-container {
    display: grid; grid-template-columns: 1fr 350px;
    gap: 30px; margin-bottom: 30px;
}
.luxury-reviews-content {
    background: #fff; border: 1px solid #e0e0e0; border-radius: 12px;
    padding: 24px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.luxury-reviews-title {
    font-size: 1.4rem; font-weight: 700; color: #333;
    margin: 0 0 20px 0; padding-bottom: 15px; border-bottom: 2px solid #f0f0f0;
}
.luxury-customer-reviews { margin-top: 20px; }
.luxury-review {
    background: #f8f9fa; border-radius: 8px; padding: 20px;
    margin-bottom: 16px; border: 1px solid #e0e0e0; transition: all 0.3s ease;
}
.luxury-review:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); transform: translateY(-2px); }
.luxury-review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }

.luxury-right-sidebar { display: flex; flex-direction: column; gap: 20px; }

.luxury-login-required i { font-size: 2rem; color: #dc3545; margin-bottom: 10px; }
.luxury-login-link {
    color: #38AE04; text-decoration: none; font-weight: 600; padding: 8px 16px;
    border: 2px solid #38AE04; border-radius: 20px; display: inline-block; margin-top: 10px;
}

/* ===== REVIEW MODAL (DESKTOP) ===== */
.luxury-review-modal {
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    z-index: 2000; 
    backdrop-filter: blur(5px);
    align-items: center; 
    justify-content: center;
}
.luxury-review-modal.active { 
    display: flex; 
}

/* Mobile override for review modal */
@media (max-width: 991px) {
    .luxury-review-modal {
        align-items: flex-end;
        justify-content: center;
    }
    
    .luxury-review-modal.active {
        display: block;
    }
}

.luxury-review-modal-content {
    background: white; border-radius: 16px; width: 90%; max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.luxury-review-modal-header {
    background: linear-gradient(135deg, #38AE04, #2d8a03); color: white;
    padding: 20px 24px; border-radius: 16px 16px 0 0;
    display: flex; justify-content: space-between; align-items: center;
}
.luxury-review-modal-header h3 { margin: 0; font-size: 1.3rem; }
.luxury-modal-close { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }
.luxury-review-form { padding: 24px; }
.luxury-form-group { margin-bottom: 20px; }
.luxury-form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #333; }
.luxury-review-textarea {
    width: 100%; border: 2px solid #e0e0e0; border-radius: 8px;
    padding: 12px; font-size: 0.95rem; resize: vertical;
}
.luxury-review-textarea:focus { outline: none; border-color: #38AE04; }
.luxury-form-actions { display: flex; gap: 12px; margin-top: 24px; }
.luxury-cancel-btn, .luxury-submit-review {
    border-radius: 8px; padding: 12px 24px; font-size: 0.95rem;
    font-weight: 600; cursor: pointer; flex: 1;
}
.luxury-cancel-btn { background: #f1f1f1; color: #333; border: 1px solid #ddd; }
.luxury-submit-review { background: #38AE04; color: white; border: none; flex: 2; }



/*
 * ===================================================
 *               MOBILE & TABLET STYLES
 * ===================================================
*/

@media (max-width: 991px) {
    .luxury-product-grid {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
        width: 100%;
        overflow-x: hidden;
    }
    
    .luxury-container {
        padding: 0 10px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .luxury-product-details {
        padding-bottom: 100px; /* Space for fixed actions */
        border-radius: 0;
        width: 100%;
        overflow-x: hidden;
    }
    .luxury-product-titlee { 
        font-size: 2rem; 
        font-weight: 700;
        line-height: 1.3;
    }
    .luxury-reviews-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .luxury-right-sidebar { order: -1; }

    /* ===== MOBILE PRODUCT GALLERY ===== */
    .luxury-product-gallery {
        border: none;
        border-radius: 12px;
        padding: 20px;
        background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
        margin-bottom: 0;
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        box-shadow: 0 2px 15px rgba(151, 117, 91, 0.08);
    }
    
    /* أسهم التنقل للصورة الرئيسية في الهواتف */
    .luxury-main-image-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
        border-radius: 10px;
    }
    
    .luxury-main-image-prev {
        left: 10px;
    }
    
    .luxury-main-image-next {
        right: 10px;
    }
    
    .luxury-main-image-container {
        min-height: 280px;
        margin-bottom: 20px;
        background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%);
        border-radius: 12px;
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
        border: 1px solid rgba(151, 117, 91, 0.1);
    }
    
    .luxury-main-image {
        max-height: 420px;
        width: auto;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 8px;
    }
    
    .luxury-gallery-container {
        gap: 12px;
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        padding: 10px 0;
    }
    
    .luxury-thumbnails {
        gap: 10px;
        padding: 8px 4px;
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        box-sizing: border-box;
    }
    
    .luxury-thumbnail {
        flex-shrink: 0;
        width: 65px;
        height: 65px;
        border-radius: 10px;
        border: 2px solid rgba(151, 117, 91, 0.15);
        box-shadow: 0 2px 8px rgba(151, 117, 91, 0.1);
    }
    
    .luxury-video-thumbnail {
        flex-shrink: 0;
        width: 65px;
        height: 65px;
        border-radius: 10px;
        border: 2px solid rgba(151, 117, 91, 0.15);
        box-shadow: 0 2px 8px rgba(151, 117, 91, 0.1);
    }

    /* ===== MOBILE FIXED ACTIONS ===== */
    .luxury-product-actionse {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        border-top: 1px solid #e0e0e0;
        padding: 15px 20px;
        margin-bottom: 0;
        z-index: 999;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
        width: 100%;
        box-sizing: border-box;
    }

    /* ===== MOBILE TABS / BOTTOM SHEETS ===== */
    .luxury-product-tabs { border: none; }
    .luxury-product-tabs .luxury-tabs-header,
    .luxury-product-tabs .luxury-tabs-content {
        display: flex !important; /* إظهار التبويبات في الهواتف */
    }

    /* ===== MOBILE TABS RESPONSIVE DESIGN ===== */
    .luxury-tabs-header {
        flex-wrap: wrap;
        gap: 8px;
        padding: 15px 15px 0 15px;
    }
    
    .luxury-tab-btn {
        min-width: 120px;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .luxury-tab-pane {
        padding: 0px 15px;
        margin-bottom: 30px;
    }
    
    .luxury-tab-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    /* إخفاء التبويبات المحمولة القديمة */
    .luxury-tabs-mobile {
        display: none !important;
    }
    
    /* إخفاء النوافذ المنبثقة */
    .luxury-tabs-mobile-overlay,
    .luxury-tab-mobile-pane {
        display: none !important;
    }

    /* Second level modal (Review Form) - Higher z-index */
    .luxury-review-modal { 
        z-index: 1003; /* Higher than tab pane */
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
    }
    
    .luxury-review-modal.active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: flex-end;
        justify-content: center;
    }
    
    .luxury-review-modal .luxury-review-modal-content {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        margin: 0;
        max-height: 90vh;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        background: #ffffff;
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
        z-index: 1004;
        /* Ensure it's visible on mobile */
        visibility: visible;
        opacity: 1;
    }
    
    .luxury-review-modal.active .luxury-review-modal-content {
        transform: translateY(0);
    }
    
    /* Ensure review form is scrollable on mobile */
    .luxury-review-modal .luxury-review-form {
        overflow-y: auto;
        flex-grow: 1;
        padding: 24px;
        -webkit-overflow-scrolling: touch;
        background: #ffffff;
    }
    
    /* Mobile-specific form styling */
    .luxury-review-modal .luxury-form-actions {
        position: sticky;
        bottom: 0;
        background: #fff;
        padding: 20px 24px;
        border-top: 1px solid #eee;
        margin: 0 -24px -24px -24px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
        z-index: 1004;
    }
    
    /* Ensure the modal header is visible */
    .luxury-review-modal .luxury-review-modal-header {
        background: linear-gradient(135deg, #38AE04, #2d8a03);
        color: white;
        padding: 20px 24px;
        border-radius: 20px 20px 0 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-shrink: 0;
        z-index: 1004;
        position: relative;
    }
    
    .luxury-review-modal .luxury-review-modal-header h3 {
        margin: 0;
        font-size: 1.3rem;
        font-weight: 600;
    }
    
    .luxury-review-modal .luxury-modal-close {
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.3s ease;
        position: relative;
        z-index: 1005;
    }
    
    .luxury-review-modal .luxury-modal-close:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    /* Ensure form elements are properly styled */
    .luxury-review-modal .luxury-form-group {
        margin-bottom: 20px;
        position: relative;
        z-index: 1004;
    }
    
    .luxury-review-modal .luxury-rating-input {
        display: flex;
        gap: 8px;
        justify-content: center;
        position: relative;
        z-index: 1004;
    }
    
    .luxury-review-modal .luxury-rating-input i {
        font-size: 1.8rem;
        color: #e0e0e0;
        cursor: pointer;
        transition: color 0.2s ease;
        position: relative;
        z-index: 1004;
    }
    
    .luxury-review-modal .luxury-rating-input i:hover,
    .luxury-review-modal .luxury-rating-input i.fas {
        color: #FFD700;
    }
    
    .luxury-review-modal .luxury-review-textarea {
        width: 100%;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        padding: 12px;
        font-size: 0.95rem;
        resize: vertical;
        position: relative;
        z-index: 1004;
        box-sizing: border-box;
    }
    
    .luxury-review-modal .luxury-review-textarea:focus {
        outline: none;
        border-color: #38AE04;
    }
    
    /* Additional mobile fixes */
    .luxury-review-modal {
        -webkit-overflow-scrolling: touch;
    }
    
    .luxury-review-modal .luxury-review-modal-content {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    /* Ensure buttons are touch-friendly */
    .luxury-review-modal .luxury-cancel-btn,
    .luxury-review-modal .luxury-submit-review {
        min-height: 44px;
        font-size: 16px;
        touch-action: manipulation;
    }
    
    /* Fix for iOS Safari */
    @supports (-webkit-touch-callout: none) {
        .luxury-review-modal .luxury-review-modal-content {
            -webkit-transform: translateY(100%);
            transform: translateY(100%);
        }
        
        .luxury-review-modal.active .luxury-review-modal-content {
            -webkit-transform: translateY(0);
            transform: translateY(0);
        }
    }
    
    /* Additional mobile fixes for better compatibility */
    .luxury-review-modal .luxury-review-modal-content {
        /* Ensure proper positioning on all mobile devices */
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        /* Smooth animation */
        transition: transform 0.3s ease-out;
    }
    
    /* Ensure modal backdrop is properly styled */
    .luxury-review-modal {
        /* Ensure proper backdrop */
        background: rgba(0, 0, 0, 0.5) !important;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
}

@media (max-width: 768px) {
    .luxury-container { 
        padding: 0 8px; 
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* ===== TABLET TABS RESPONSIVE DESIGN ===== */
    .luxury-tabs-header {
        flex-wrap: wrap;
        gap: 8px;
        padding: 15px 15px 0 15px;
    }
    
    .luxury-tab-btn {
        min-width: 130px;
        padding: 12px 18px;
        font-size: 1rem;
        font-weight: 600;
    }
    
    .luxury-tab-pane {
        padding: 0px 15px;
        margin-bottom: 30px;
    }
    
    .luxury-tab-title {
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: 15px;
    }
    
    .luxury-tab-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* ===== TABLET PRODUCT GALLERY ===== */
    .luxury-product-gallery {
        padding: 18px;
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        border-radius: 10px;
        background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
        box-shadow: 0 1px 12px rgba(151, 117, 91, 0.06);
    }
    
    .luxury-main-image-container {
        min-height: 240px;
        margin-bottom: 18px;
        padding: 12px;
        width: 100%;
        box-sizing: border-box;
        border-radius: 10px;
        background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%);
        border: 1px solid rgba(151, 117, 91, 0.08);
    }
    
    .luxury-main-image { 
        max-height: 380px; 
        max-width: 100%;
        width: auto;
        border-radius: 6px;
    }
    
    .luxury-thumbnail { 
        width: 60px; 
        height: 60px; 
        flex-shrink: 0;
        border-radius: 8px;
        border: 2px solid rgba(151, 117, 91, 0.12);
        box-shadow: 0 1px 6px rgba(151, 117, 91, 0.08);
    }
    
    .luxury-video-thumbnail {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
        border-radius: 8px;
        border: 2px solid rgba(151, 117, 91, 0.12);
        box-shadow: 0 1px 6px rgba(151, 117, 91, 0.08);
    }
    
    .luxury-gallery-container {
        gap: 10px;
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        padding: 8px 0;
    }
    
    .luxury-thumbnails {
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        box-sizing: border-box;
        padding: 6px 0;
    }
    
    .luxury-product-details { 
        padding: 16px; 
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    .luxury-product-titlee { 
        font-size: 1.8rem; 
        font-weight: 700;
        line-height: 1.3;
    }
    .luxury-product-actionse { flex-direction: row; }
    .luxury-add-to-cart, .luxury-quantity, .luxury-wishlist { order: 0; }
    
    /* تكبير أزرار الخصائص في الهواتف */
    .luxury-option-btn {
        padding: 10px 16px;
        font-size: 1rem;
        font-weight: 600;
        min-width: 125px;
        height: 46px;
    }
    
    /* تكبير عناوين الخصائص في الهواتف */
    .luxury-option-title {
        font-size: 24.05px;
        font-weight: 700;
        margin-bottom: 8px;
    }
    
    /* تكبير أزرار المتغيرات في الهواتف */
    .luxury-option {
        padding: 10px 16px;
        font-size: 1rem;
        font-weight: 600;
        min-width: 75px;
        height: 46px;
    }
    
    /* تكبير أزرار التقييمات في الهواتف */
    .luxury-add-review-btn {
        padding: 14px 30px;
        font-size: 1.1rem;
        font-weight: 700;
        max-width: 320px;
    }
    
    /* تكبير نصوص التقييمات في الهواتف */
    .luxury-reviewer-name {
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    .luxury-review-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* تكبير أزرار الكمية في الهواتف */
    .luxury-quantity-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        font-weight: 600;
    }
    
    .luxury-quantity-input {
        width: 52px;
        height: 42px;
        font-size: 1rem;
        font-weight: 600;
    }
    
    /* تكبير زر إضافة للسلة في الهواتف */
    .luxury-add-to-cart {
        padding: 12px 16px;
        font-size: 1.1rem;
        font-weight: 700;
    }
    
    /* تكبير زر المفضلة في الهواتف */
    .luxury-wishlist {
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
    }
    
    /* Ensure proper spacing for mobile tabs */
    .luxury-tabs-mobile { padding: 10px 12px; }
    .luxury-tab-mobile-btn { padding: 8px 14px; font-size: 12px; }
    
    /* Improve mobile pane sizing */
    .luxury-tab-mobile-pane { max-height: 80vh; }
    .mobile-tab-content { padding: 20px; }
    
    /* Better mobile review modal */
    .luxury-review-modal .luxury-review-modal-content { 
        max-height: 85vh; 
        border-radius: 20px 20px 0 0;
    }
    .luxury-review-modal .luxury-review-form { 
        padding: 20px; 
        -webkit-overflow-scrolling: touch;
    }
    .luxury-review-modal .luxury-form-actions { 
        padding: 16px 20px; 
        position: sticky;
        bottom: 0;
        background: #fff;
        border-top: 1px solid #eee;
    }
    
    /* Ensure modal is properly positioned on small screens */
    .luxury-review-modal {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 9999 !important;
    }
    
    .luxury-review-modal.active {
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
    }
}

@media (max-width: 576px) {
    .luxury-option-group {
        gap: 10px;
        padding-bottom: 10px;
    }
    
    .luxury-option-group:not(:last-child)::after {
        width: calc(100% - 70px);
    }
    
    .luxury-option-group:not(:last-child)::before {
        right: calc(100% - 70px - 8px);
    }

    .luxury-option-title {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
}

@media (max-width: 576px) {
    .luxury-container { 
        padding: 0 5px; 
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* أسهم التنقل للصورة الرئيسية في الشاشات الصغيرة */
    .luxury-main-image-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    .luxury-main-image-prev {
        left: 8px;
    }
    
    .luxury-main-image-next {
        right: 8px;
    }
    
    /* ===== SMALL MOBILE PRODUCT GALLERY ===== */
    .luxury-product-gallery {
        padding: 15px;
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        border-radius: 8px;
        background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
        box-shadow: 0 1px 8px rgba(151, 117, 91, 0.05);
    }
    
    .luxury-main-image-container {
        min-height: 200px;
        margin-bottom: 15px;
        padding: 8px;
        border-radius: 8px;
        width: 100%;
        box-sizing: border-box;
        background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%);
        border: 1px solid rgba(151, 117, 91, 0.06);
    }
    
    .luxury-main-image { 
        max-height: 414px; 
        max-width: 100%;
        width: auto;
        border-radius: 6px;
    }
    
    .luxury-thumbnail { 
        width: 55px; 
        height: 55px; 
        flex-shrink: 0;
        border-radius: 8px;
        border: 2px solid rgba(151, 117, 91, 0.1);
        box-shadow: 0 1px 4px rgba(151, 117, 91, 0.06);
    }
    
    .luxury-video-thumbnail {
        width: 55px;
        height: 55px;
        flex-shrink: 0;
        border-radius: 8px;
        border: 2px solid rgba(151, 117, 91, 0.1);
        box-shadow: 0 1px 4px rgba(151, 117, 91, 0.06);
    }
    
    .luxury-gallery-container {
        gap: 8px;
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        padding: 8px 0;
    }
    
    .luxury-thumbnails {
        gap: 6px;
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        box-sizing: border-box;
        padding: 5px 0;
    }
    
    .luxury-product-details {
        padding: 12px;
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .luxury-product-titlee {
        font-size: 1.7rem;
        font-weight: 700;
        padding: 0;
        line-height: 1.3;
    }
    
    .luxury-product-price { 
        flex-direction: row; 
        align-items: center; 
        gap: 8px; 
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    /* تحسين أحجام عناصر السعر في الهواتف */
    .luxury-current-price {
        font-size: 1.7rem;
        flex-shrink: 0;
        font-weight: 700;
    }
    
    .luxury-old-price {
        font-size: 1.3rem;
        flex-shrink: 0;
    }
    
    .luxury-discount {
        font-size: 0.8rem;
        padding: 4px 10px;
        flex-shrink: 0;
    }
    
    /* تكبير أزرار التبويبات في الهواتف الصغيرة */
    .luxury-tab-btn {
        min-width: 120px;
        padding: 10px 16px;
        font-size: 0.95rem;
        font-weight: 600;
    }
    
    /* تكبير عناوين التبويبات في الهواتف الصغيرة */
    .luxury-tab-title {
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 12px;
    }
    
    /* تكبير نصوص التبويبات في الهواتف الصغيرة */
    .luxury-tab-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* تكبير أزرار الخصائص في الهواتف الصغيرة */
    .luxury-option-btn {
        padding: 8px 14px;
        font-size: 0.95rem;
        font-weight: 600;
        min-width: 70px;
        height: 44px;
    }
    
    /* تكبير عناوين الخصائص في الهواتف الصغيرة */
    .luxury-option-title {
        font-size: 24.05px;
        font-weight: 700;
        margin-bottom: 6px;
    }
    
    /* تكبير أزرار المتغيرات في الهواتف الصغيرة */
    .luxury-option {
        padding: 8px 14px;
        font-size: 0.95rem;
        font-weight: 600;
        min-width: 70px;
        height: 44px;
    }
    
    /* تكبير أزرار التقييمات في الهواتف الصغيرة */
    .luxury-add-review-btn {
        padding: 12px 25px;
        font-size: 1rem;
        font-weight: 700;
        max-width: 300px;
    }
    
    /* تكبير نصوص التقييمات في الهواتف الصغيرة */
    .luxury-reviewer-name {
        font-size: 1rem;
        font-weight: 600;
    }
    
    .luxury-review-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* تكبير أزرار الكمية في الهواتف الصغيرة */
    .luxury-quantity-btn {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
        font-weight: 600;
    }
    
    .luxury-quantity-input {
        width: 50px;
        height: 40px;
        font-size: 0.95rem;
        font-weight: 600;
    }
    
    /* تكبير زر إضافة للسلة في الهواتف الصغيرة */
    .luxury-add-to-cart {
        padding: 10px 14px;
        font-size: 1rem;
        font-weight: 700;
    }
    
    /* تكبير زر المفضلة في الهواتف الصغيرة */
    .luxury-wishlist {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .luxury-product-actionse { 
        padding: 8px 10px; 
        gap: 8px; 
        width: 100%;
        box-sizing: border-box;
    }
    .luxury-add-to-cart { flex-grow: 1; }

    /* ===== SMALL MOBILE REVIEW MODAL ===== */
    .luxury-review-modal .luxury-review-modal-content { 
        max-height: 95vh; 
        border-radius: 16px 16px 0 0;
        margin: 0;
        left: 0;
        right: 0;
        width: 100%;
    }
    
    .luxury-review-modal .luxury-review-form { 
        padding: 16px; 
    }
    
    .luxury-review-modal .luxury-review-modal-header {
        padding: 16px 20px;
        border-radius: 16px 16px 0 0;
    }
    
    .luxury-review-modal .luxury-review-modal-header h3 {
        font-size: 1.2rem;
    }
    
    .luxury-review-modal .luxury-modal-close {
        width: 32px;
        height: 32px;
        font-size: 1.3rem;
    }
    
    .luxury-review-modal .luxury-form-actions { 
        padding: 14px 16px; 
        flex-direction: column; 
        gap: 10px;
    }
    
    .luxury-review-modal .luxury-cancel-btn,
    .luxury-review-modal .luxury-submit-review {
        flex: 1;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    /* Ensure proper spacing in reviews tab */
    #mobile-reviews .mobile-tab-content { padding-bottom: 100px; }
    #mobile-reviews .luxury-add-review-section { padding: 16px; }

    /* Optimize mobile tabs for small screens */
    .luxury-tabs-mobile { 
        padding: 12px 15px; 
        gap: 8px; 
    }
    .luxury-tab-mobile-btn { 
        padding: 10px 16px; 
        font-size: 0.85rem; 
        min-width: 100px;
    }

    .luxury-tab-mobile-pane { 
        border-radius: 18px 18px 0 0; 
        max-height: 90vh;
    }
    .luxury-tab-mobile-title { font-size: 16px; }
    .luxury-tab-mobile-close { 
        right: 14px; 
        width: 32px; 
        height: 32px; 
        font-size: 14px;
    }
    .mobile-tab-content { padding: 14px; }
}

/*
 * ===================================================
 *               NOTIFICATIONS STYLES
 * ===================================================
*/

.luxury-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 0;
    width: 90%;
    max-width: 600px;
    z-index: 10000;
    display: none;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Add overlay background */
.luxury-notification::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: -1;
}

.luxury-notification.luxury-notification-error {
    border-left: none;
}

.luxury-notification.luxury-notification-info {
    border-left: none;
}

.luxury-notification-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.luxury-notification-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

.luxury-notification-close {
    background: #f0f0f0;
    border: none;
    color: #666;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.luxury-notification-close:hover {
    background: #e0e0e0;
    color: #333;
}

.luxury-notification-body {
    padding: 24px;
}

.luxury-notification-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.luxury-notification-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.luxury-notification-icon i {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.luxury-notification-text {
    flex: 1;
    min-width: 0;
}

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

.luxury-notification-details {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.luxury-notification-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.luxury-notification-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
}

.luxury-notification-btn-primary {
    background: #dc3545;
    color: white;
}

.luxury-notification-btn-primary:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.luxury-notification-btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e9ecef;
}

.luxury-notification-btn-secondary:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.luxury-notification-btn:active {
    transform: translateY(0);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

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

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

/* Button success state */
.luxury-add-to-cart.success {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
}

/* Mobile notifications - Responsive Design */
@media (max-width: 1200px) {
    .luxury-notification {
        max-width: 550px;
        width: 85%;
    }
}

@media (max-width: 991px) {
    .luxury-notification {
        max-width: 500px;
        width: 90%;
    }
}

@media (max-width: 768px) {
    .luxury-notification {
        width: 95%;
        max-width: none;
        margin: 20px;
        border-radius: 12px;
    }
    
    .luxury-notification-header {
        padding: 16px 20px;
    }
    
    .luxury-notification-body {
        padding: 20px;
    }
    
    .luxury-notification-content {
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .luxury-notification-icon {
        width: 40px;
        height: 40px;
    }
    
    .luxury-notification-icon i {
        font-size: 1.2rem;
    }
    
    .luxury-notification-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .luxury-notification-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .luxury-notification {
        width: 98%;
        margin: 10px;
        border-radius: 10px;
    }
    
    .luxury-notification-header {
        padding: 14px 16px;
    }
    
    .luxury-notification-body {
        padding: 16px;
    }
    
    .luxury-notification-content {
        gap: 10px;
        margin-bottom: 14px;
    }
    
    .luxury-notification-icon {
        width: 36px;
        height: 36px;
    }
    
    .luxury-notification-icon i {
        font-size: 1.1rem;
    }
    
    .luxury-notification-title {
        font-size: 1rem;
    }
    
    .luxury-notification-message {
        font-size: 0.95rem;
    }
    
    .luxury-notification-details {
        font-size: 0.85rem;
    }
    
    .luxury-notification-actions {
        gap: 6px;
    }
    
    .luxury-notification-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .luxury-notification {
        width: 100%;
        margin: 0;
        border-radius: 0;
        height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    .luxury-notification-header {
        padding: 20px;
        border-bottom: 1px solid #e9ecef;
    }
    
    .luxury-notification-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 20px;
    }
    
    .luxury-notification-content {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .luxury-notification-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 20px;
    }
    
    .luxury-notification-icon i {
        font-size: 1.8rem;
    }
    
    .luxury-notification-text {
        text-align: center;
    }
    
    .luxury-notification-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .luxury-notification-message {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .luxury-notification-details {
        font-size: 0.95rem;
    }
    
    .luxury-notification-actions {
        margin-top: auto;
        padding-top: 20px;
    }
    
    .luxury-notification-btn {
        padding: 16px 20px;
        font-size: 1rem;
        border-radius: 10px;
    }
}

/* ===== VIDEO MODAL ===== */
.luxury-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.luxury-video-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: white;
    border-radius: 1px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.luxury-video-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.luxury-video-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.luxury-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* نسبة 16:9 */
    height: 0;
    overflow: hidden;
}

.luxury-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* التصميم للهواتف */
@media (max-width: 768px) {
    .luxury-video-modal {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 9999 !important;
        display: none !important;
    }
    
    .luxury-video-modal[style*="display: flex"] {
        display: flex !important;
    }
    
    .luxury-video-modal-content {
        width: 91%;
        margin: 0px 15px;
    }
    
    .luxury-video-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}

/* ===================================================
 *                    PRODUCT VARIANTS STYLES
 * =================================================== */

/* ===== VARIANTS SECTION ===== */
.luxury-product-variants {
    margin: 25px 0;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.luxury-variants-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* ===== OPTION GROUPS ===== */
.luxury-option-group {
    margin-bottom: 25px;
}

.luxury-option-title {
    font-size: 30.05px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    display: block;
}

.luxury-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* ===== OPTION BUTTONS ===== */
.luxury-option-btn {
    padding: 10px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #ffffff;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    min-width: 125px;
    text-align: center;
    position: relative;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.luxury-option-btn:hover {
    border-color: #999;
}

.luxury-option-btn.selected {
    border-color: #333;
    border-width: 2px;
    background: #ffffff;
    color: #333;
    font-weight: 500;
}

/* ===== COLOR OPTIONS ===== */
.luxury-option-btn[data-color] {
    position: relative;
    min-width: 125px;
    height: 40px;
    border-radius: 6px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    border: 1px solid #97755b7d;
    background: var(--color-value, #ffffff);
    cursor: pointer;
}

.luxury-option-btn[data-color]:hover {
    border-color: #999;
}

.luxury-option-btn[data-color].selected {
    border-color: #252525;
    border-width: 1px;
}

/* تخصيص الألوان الشائعة */
.luxury-option-btn[data-color="red"] { --color-value: #dc3545; }
.luxury-option-btn[data-color="blue"] { --color-value: #007bff; }
.luxury-option-btn[data-color="green"] { --color-value: #28a745; }
.luxury-option-btn[data-color="yellow"] { --color-value: #ffc107; }
.luxury-option-btn[data-color="purple"] { --color-value: #6f42c1; }
.luxury-option-btn[data-color="orange"] { --color-value: #fd7e14; }
.luxury-option-btn[data-color="pink"] { --color-value: #e83e8c; }
.luxury-option-btn[data-color="brown"] { --color-value: #795548; }
.luxury-option-btn[data-color="gray"] { --color-value: #6c757d; }
.luxury-option-btn[data-color="black"] { --color-value: #000000; }
.luxury-option-btn[data-color="white"] { --color-value: #ffffff; border: 3px solid #e0e0e0; }

/* ===== SIZE OPTIONS ===== */
.luxury-option-btn[data-attribute="size"] {
    min-width: 125px;
    height: 40px;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    color: #333;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.luxury-option-btn[data-attribute="size"]:hover {
    border-color: #999;
}

.luxury-option-btn[data-attribute="size"].selected {
    border-color: #333;
    border-width: 2px;
    background: #ffffff;
    color: #333;
    font-weight: 500;
}

/* ===== MEMORY OPTIONS ===== */
.luxury-option-btn[data-attribute="memory"] {
    min-width: 125px;
    height: 40px;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    color: #333;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.luxury-option-btn[data-attribute="memory"]:hover {
    border-color: #999;
}

.luxury-option-btn[data-attribute="memory"].selected {
    border-color: #333;
    border-width: 2px;
    background: #ffffff;
    color: #333;
    font-weight: 500;
}

/* ===== SELECTED VARIANT INFO ===== */
.luxury-selected-variant {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    animation: slideInUp 0.3s ease-out;
}

.luxury-variant-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: center;
}

.luxury-variant-sku,
.luxury-variant-price,
.luxury-variant-stock {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.luxury-variant-price {
    color: #28a745;
    font-weight: 600;
    background: #e8f5e8;
    border-color: #28a745;
}

.luxury-variant-stock {
    color: #28a745;
    font-weight: 600;
    background: #e8f5e8;
    border-color: #28a745;
}

/* ===== VARIANT ALERT ===== */
.luxury-variant-alert {
    margin-top: 20px;
    padding: 15px 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    color: #856404;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInUp 0.3s ease-out;
}

.luxury-variant-alert i {
    color: #f39c12;
    font-size: 1.1rem;
}

/* ===== PRICE RANGE ===== */
.luxury-price-range {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.luxury-price-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.luxury-price-value {
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
}

/* ===== STOCK INFO ===== */
.luxury-stock-info {
    margin: 20px 0;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.luxury-stock-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.luxury-stock-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.luxury-stock-value {
    font-size: 0.9rem;
    color: #28a745;
    font-weight: 600;
    padding: 6px 12px;
    background: #d4edda;
    border-radius: 6px;
    border: 1px solid #28a745;
}

/* ===== ADD TO CART BUTTON STATES ===== */
.luxury-add-to-cart.disabled {
    background: #6c757d !important;
    border-color: #6c757d !important;
    color: #ffffff !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.luxury-add-to-cart.disabled:hover {
    background: #6c757d !important;
    border-color: #6c757d !important;
    transform: none;
    box-shadow: none;
}

/* ===== DYNAMIC PRICE DISPLAY ===== */
.luxury-dynamic-price {
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    text-align: center;
    transition: all 0.3s ease;
}

.luxury-dynamic-price.updated {
    background: #e8f5e8;
    border-color: #28a745;
    color: #28a745;
    animation: priceUpdate 0.5s ease-out;
}

.luxury-price-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.luxury-discount-info {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.luxury-old-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    margin-right: 15px;
}

.luxury-discount {
    font-size: 0.9rem;
    color: #28a745;
    font-weight: 600;
    background: #e8f5e8;
    padding: 4px 8px;
    border-radius: 4px;
}

@keyframes priceUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ===== DYNAMIC STOCK DISPLAY ===== */
.luxury-dynamic-stock {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin: 15px 0;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    text-align: center;
    transition: all 0.3s ease;
}

.luxury-dynamic-stock.in-stock {
    background: #e8f5e8;
    border-color: #28a745;
    color: #28a745;
}

.luxury-dynamic-stock.out-of-stock {
    background: #f8d7da;
    border-color: #dc3545;
    color: #dc3545;
}

/* ===== ANIMATIONS ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .luxury-product-variants {
        padding: 15px;
        margin: 20px 0;
    }
    
    .luxury-option-group {
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .luxury-option-group:not(:last-child)::after {
        width: calc(100% - 100px);
    }
    
    .luxury-option-group:not(:last-child)::before {
        right: calc(100% - 100px - 8px);
    }
    
    .luxury-option-title {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .luxury-options {
        gap: 8px;
    }
    
    .luxury-option {
        padding: 8px 14px;
        font-size: 0.85rem;
        min-width: 70px;
    }
    
    .luxury-option-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
        min-width: 70px;
    }
    
    .luxury-option-btn[data-color] {
        min-width: 45px;
        height: 45px;
    }
    
    .luxury-variant-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .luxury-variant-sku,
    .luxury-variant-price,
    .luxury-variant-stock {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    .luxury-dynamic-price {
        font-size: 1.4rem;
        padding: 12px;
    }
    
    .luxury-price-value {
        font-size: 1.5rem;
    }
    
    .luxury-discount-info {
        margin-top: 8px;
        padding-top: 8px;
    }
    
    .luxury-old-price {
        font-size: 0.9rem;
        margin-right: 10px;
    }
    
    .luxury-discount {
        font-size: 0.8rem;
        padding: 3px 6px;
    }
    
    .luxury-dynamic-stock {
        font-size: 0.9rem;
        padding: 10px 14px;
    }
}

@media (max-width: 480px) {
    .luxury-product-variants {
        padding: 12px;
    }
    
    .luxury-option-group {
        gap: 10px;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .luxury-option-group:not(:last-child)::after {
        width: calc(100% - 80px);
    }
    
    .luxury-option-group:not(:last-child)::before {
        right: calc(100% - 80px - 8px);
    }
    
    .luxury-option-title {
        font-size: 0.9rem;
        margin-right: -5%;
        margin-bottom: 16px;
        text-align: right;
    }
    
    .luxury-variants-title {
        font-size: 1rem;
    }
    
    .luxury-options {
        gap: 6px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .luxury-option {
        padding: 6px 10px;
        font-size: 0.8rem;
        min-width: 60px;
    }
    
    .luxury-option-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        min-width: 60px;
    }
    
    .luxury-option-btn[data-color] {
        min-width: 109px;
        height: 52px;
    }
    
    .luxury-dynamic-price {
        font-size: 1.2rem;
        padding: 10px;
    }
    
    .luxury-price-value {
        font-size: 1.3rem;
    }
    
    .luxury-discount-info {
        margin-top: 6px;
        padding-top: 6px;
    }
    
    .luxury-old-price {
        font-size: 0.8rem;
        margin-right: 8px;
    }
    
    .luxury-discount {
        font-size: 0.75rem;
        padding: 2px 5px;
    }
    
    .luxury-dynamic-stock {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}

/* ===== DESKTOP GALLERY CONTAINER ===== */
@media (min-width: 992px) {
    /* تحسين عرض الخصائص في الشاشات الكبيرة */
    .luxury-option-group {
        gap: 20px;
        margin-bottom: 30px;
        padding-bottom: 25px;
    }
    
    .luxury-option-group:not(:last-child)::after {
        width: calc(100% - 130px);
    }
    
    .luxury-option-group:not(:last-child)::before {
        right: calc(100% - 130px - 8px);
    }
    
    .luxury-option-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .luxury-options {
        gap: 15px;
    }
    
    .luxury-option,
    .luxury-option-btn {
        min-width: 90px;
        font-size: 0.95rem;
        padding: 12px 20px;
    }
    
    .luxury-option-btn[data-color] {
        min-width: 65px;
        height: 45px;
    }
    
    .luxury-option-btn[data-attribute="size"],
    .luxury-option-btn[data-attribute="memory"] {
        height: 45px;
    }
    .luxury-gallery-container {
        display: flex;
        gap: 20px;
        align-items: center;
        justify-content: center;
        padding: 20px 0;
        border-top: 1px solid #f0f0f0;
        margin-top: 25px;
    }
    
    .luxury-thumbnails {
        display: flex;
        gap: 20px;
        padding: 15px 5px;
        scrollbar-width: thin;
        scrollbar-color: #cccccc #f5f5f5;
        justify-content: center;
        align-items: center;
        overflow-x: auto;
        flex: 1;
        width: 100%;
        box-sizing: border-box;
    }
    
    .luxury-thumbnails::-webkit-scrollbar { 
        height: 8px; 
    }
    .luxury-thumbnails::-webkit-scrollbar-track { 
        background: #f5f5f5; 
        border-radius: 4px; 
    }
    .luxury-thumbnails::-webkit-scrollbar-thumb { 
        background: #cccccc; 
        border-radius: 4px; 
    }
    
    .luxury-thumbnail {
        flex: 0 0 140px;
        width: 140px;
        height: 140px;
        border-radius: 8px;
        border: 2px solid #97755b;
        background: #ffffff;
        overflow: hidden;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        flex-shrink: 0;
        position: relative;
    }
    
    .luxury-thumbnail img { 
        width: 100%; 
        height: 100%; 
        object-fit: contain; 
        display: block;
        padding: 8px;
        background: #ffffff;
        transition: transform 0.3s ease;
    }
    
    .luxury-thumbnail.active { 
        border-color: #97755b; 
        border-width: 2px;
        transform: scale(1.05);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }
    
    .luxury-thumbnail:hover {
        border-color: #97755b;
        transform: scale(1.05);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }
    
    .luxury-video-thumbnail {
        flex: 0 0 140px;
        height: 140px;
        border-radius: 8px;
        border: 2px solid #97755b;
        background: #ffffff;
        overflow: hidden;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        flex-shrink: 0;
    }
    
    .luxury-video-preview { 
        width: 100%; 
        height: 100%; 
        object-fit: contain; 
        padding: 8px;
        background: #ffffff;
    }
    
    .luxury-video-icon {
        position: absolute; 
        top: 50%; 
        left: 50%;
        transform: translate(-50%, -50%);
        width: 40px; 
        height: 40px;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 50%; 
        display: flex;
        align-items: center; 
        justify-content: center;
        color: white; 
        font-size: 1.3rem;
    }
}

/* ===== MOBILE VIDEO MODAL ===== */
.luxury-video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.luxury-video-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.luxury-video-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.luxury-video-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.luxury-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* نسبة 16:9 */
    height: 0;
    overflow: hidden;
}

.luxury-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* تحسينات للهواتف */
@media (max-width: 768px) {
    .luxury-video-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .luxury-video-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .luxury-video-modal-content {
        width: 98%;
        margin: 10px;
        border-radius: 8px;
    }
    
    .luxury-video-close {
        top: 8px;
        right: 8px;
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}
/* ===== IMAGE MODAL STYLES ===== */
.luxury-image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgb(255 255 255);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.luxury-image-modal-content {
    position: relative;
    margin: auto;
    padding: 30px;
    width: 92%;
    height: 92%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.luxury-image-close {
    position: absolute;
    top: 54px;
    right: -24px;
    color: #2b2825;
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 50px;
    height: 50px;
    display: flex
;
    align-items: center;
    background: #97755b00;
    justify-content: center;
    border-radius: 26%;
    backdrop-filter: blur(15px);
    /* border: 1px solid #97755b82; */
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); */
}

/* .luxury-image-close:hover,
.luxury-image-close:focus {
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.3) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
} */

.luxury-image-close:active {
    transform: scale(0.95);
}

.luxury-image-wrapper
 {
    width: 85%;
    height: 84%;
    top: -7%;
    display: flex
;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0;
    overflow: hidden;
}

#modal-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 15px 40px #ffffff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1.05) contrast(1.05);
}

#modal-product-image:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    filter: brightness(1.1) contrast(1.1);
}

.luxury-image-navigation
 {
    position: absolute;
    top: 43%;
    transform: translateY(-50%);
    display: flex
;
    gap: 0;
    z-index: 1000;
    width: 113%;
    pointer-events: none;
}

.luxury-image-nav-btn {
    position: absolute;
    background: #00000078;
    border: 1px solid #00000078;
    color: white;
    padding: 15px 18px;
    border-radius: 8%;
    cursor: pointer;
    /* transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); */
    /* backdrop-filter: blur(15px); */
    pointer-events: auto;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); */
    font-size: 18px;
}

/* .luxury-image-nav-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.35) 100%);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
} */

.luxury-image-nav-btn:active {
    transform: scale(0.95);
}

.luxury-image-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.luxury-image-prev {
    left: 30px;
}

.luxury-image-next {
    right: 30px;
}







/* ===== MODAL GALLERY THUMBNAILS ===== */
.luxury-modal-gallery-container {
    position: absolute;
    bottom: -27px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    z-index: 1000;
}

.luxury-modal-thumbnails {
    display: flex
;
    gap: -8px;
    overflow-x: auto;
    /* padding: 25px; */
    height: 142px;
    background: white;
    border-radius: 9px;
    backdrop-filter: blur(20px);
    border: 2px solid #97755b61;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
    /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); */
    /* justify-content: center; */
}

.luxury-modal-thumbnails::-webkit-scrollbar {
    height: 10px;
}

.luxury-modal-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 5px;
}

.luxury-modal-thumbnails::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.7) 100%);
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.luxury-modal-thumbnails::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.9) 100%);
    transform: scale(1.1);
}

.luxury-modal-thumbnail{
    flex: 0 0 120px;
    width: 120px;
    height: 138px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); */
    flex-shrink: 0;
    position: relative;
    background: #ffffff;
    margin: 0 8px;
}

.luxury-modal-thumbnail:first-child {
    margin-left: 0;
}

.luxury-modal-thumbnail:last-child {
    margin-right: 0;
}

.luxury-modal-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.luxury-modal-thumbnail:hover::before {
    opacity: 1;
}

.luxury-modal-thumbnail img {
    /* width: 133%; */
    height: 105%;
    object-fit: contain;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1.1) contrast(1.1);
    padding: 8px;
    background: #ffffff;
}

.luxury-modal-thumbnail:hover img {
    filter: brightness(1.2) contrast(1.2);
}

.luxury-modal-thumbnail.active img {
    filter: brightness(1.3) contrast(1.3);
}

/* .luxury-modal-thumbnail:hover {
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    background: rgba(255, 255, 255, 0.1);
} */

.luxury-modal-thumbnail:hover img {
    transform: scale(1.15);
}

/* .luxury-modal-thumbnail.active {
    border-color: #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 10px 30px rgba(0, 0, 0, 0.6);
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.15);
} */

.luxury-modal-thumbnail.active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #fff, #f0f0f0, #fff);
    border-radius: 14px;
    z-index: -1;
    animation: borderGlow 2s ease-in-out infinite alternate;
}



@keyframes borderGlow {
    0% { 
        opacity: 0.7; 
        transform: scale(1);
    }
    100% { 
        opacity: 1; 
        transform: scale(1.02);
    }
}



/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    .luxury-image-modal-content {
        width: 98%;
        height: 98%;
        padding: 15px;
    }
    
    .luxury-image-close {
        top: -4px;
        right: 2px;
        font-size: 35px;
        width: 45px;
        height: 45px;
    }
    
    .luxury-image-nav-btn {
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .luxury-image-prev {
        left: 15px;
    }
    
    .luxury-image-next {
        right: 15px;
    }
    
    .luxury-modal-gallery-container {
        bottom: 15px;
        width: 95%;
    }
    
    .luxury-modal-thumbnails {
        padding: 14px;
        gap: 12px;
    }
    
    .luxury-modal-thumbnail {
        flex: 0 0 110px;
        width: 110px;
        height: 110px;
    }
    
    .luxury-image-wrapper {
        padding: 0;
    }
    
    /* إظهار الصور المصغرة في الهواتف مع الفيديو */
.luxury-thumbnails {
    display: flex !important;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

.luxury-thumbnails::-webkit-scrollbar {
    display: none;
}

/* الاحتفاظ بالفيديو */
.luxury-video-thumbnail {
    display: block !important;
    margin: 0 auto;
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
    
    /* تحسين عرض الفيديو في الشاشات الصغيرة */
.luxury-gallery-container {
    justify-content: center;
    align-items: center;
    gap: 15px;
}

/* تخصيص الصور المصغرة في الهواتف */
.luxury-thumbnail {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(151, 117, 91, 0.15);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(151, 117, 91, 0.1);
    flex-shrink: 0;
    position: relative;
    background: #ffffff;
}

    .luxury-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        transition: transform 0.3s ease;
        padding: 8px;
        background: #ffffff;
    }

.luxury-thumbnail.active {
    border-color: #97755b;
    border-width: 3px;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(151, 117, 91, 0.25);
}

.luxury-thumbnail:hover {
    border-color: #97755b;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(151, 117, 91, 0.2);
}

/* تحسين التمرير في الهواتف */
.luxury-thumbnails {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
    
    /* إخفاء قالب "المزيد" في الهواتف */
    .luxury-thumbnail:nth-child(4)::after {
        display: none !important;
    }
    
    /* إخفاء شريط التنقل (breadcrumb) في الهواتف */
    .luxury-breadcrumb {
        display: none !important;
    }
}

/* إظهار شريط الصور في الأيبادات مع الفيديو */
@media (max-width: 1024px) {
    .luxury-thumbnails {
        display: flex !important;
        gap: 15px;
        overflow-x: auto;
        padding: 12px 8px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        flex: 1;
        width: 100%;
        box-sizing: border-box;
    }
    
    .luxury-thumbnails::-webkit-scrollbar {
        display: none;
    }
    
    /* الاحتفاظ بالفيديو */
    .luxury-video-thumbnail {
        display: block !important;
        margin: 0 auto;
        flex: 0 0 90px;
        width: 90px;
        height: 90px;
        border-radius: 15px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    
    /* تحسين عرض الفيديو في الشاشات المتوسطة */
    .luxury-gallery-container {
        justify-content: center;
        align-items: center;
        gap: 20px;
    }
    
    /* تخصيص الصور المصغرة في الأيبادات */
    .luxury-thumbnail {
        flex: 0 0 110px;
        width: 110px;
        height: 110px;
        border-radius: 12px;
        overflow: hidden;
        cursor: pointer;
        border: 2px solid #97755b;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(151, 117, 91, 0.1);
        flex-shrink: 0;
        position: relative;
    }
    
    .luxury-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        transition: transform 0.3s ease;
        padding: 8px;
        background: #ffffff;
    }
    
    .luxury-thumbnail.active {
        border-color: #97755b;
        border-width: 2px;
        transform: scale(1.05);
    }
    
    .luxury-thumbnail:hover {
        border-color: #97755b;
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(151, 117, 91, 0.2);
    }
    
    /* إخفاء قالب "المزيد" في الأيبادات */
    .luxury-thumbnail:nth-child(4)::after {
        display: none !important;
    }
    
    /* إخفاء شريط التنقل (breadcrumb) في الأيبادات */
    .luxury-breadcrumb {
        display: none !important;
    }
    
    /* تحسين عرض السعر في الأيبادات */
    .luxury-product-price {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    /* تحسين أحجام عناصر السعر في الأيبادات */
    .luxury-current-price {
        font-size: 1.8rem;
        flex-shrink: 0;
        font-weight: 700;
    }
    
    .luxury-old-price {
        font-size: 1.4rem;
        flex-shrink: 0;
    }
    
    .luxury-discount {
        font-size: 0.9rem;
        padding: 5px 12px;
        flex-shrink: 0;
    }
    
    /* تكبير أزرار التبويبات في الأيبادات */
    .luxury-tab-btn {
        min-width: 140px;
        padding: 14px 20px;
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    /* تكبير عناوين التبويبات */
    .luxury-tab-title {
        font-size: 1.4rem;
        font-weight: 700;
        margin-bottom: 20px;
    }
    
    /* تكبير نصوص التبويبات */
    .luxury-tab-text {
        font-size: 1.1rem;
        line-height: 1.7;
    }
    
    /* تكبير أزرار الخصائص في الأيبادات */
    .luxury-option-btn {
        padding: 12px 20px;
        font-size: 1.1rem;
        font-weight: 600;
        min-width: 80px;
        height: 48px;
    }
    
    /* تكبير عناوين الخصائص في الأيبادات */
    .luxury-option-title {
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 22px;
    }
    
    /* تكبير أزرار المتغيرات في الأيبادات */
    .luxury-option {
        padding: 12px 20px;
        font-size: 1.1rem;
        font-weight: 600;
        min-width: 80px;
        height: 48px;
    }
    
    /* تكبير أزرار التقييمات في الأيبادات */
    .luxury-add-review-btn {
        padding: 16px 35px;
        font-size: 1.2rem;
        font-weight: 700;
        max-width: 350px;
    }
    
    /* تكبير نصوص التقييمات في الأيبادات */
    .luxury-reviewer-name {
        font-size: 1.2rem;
        font-weight: 600;
    }
    
    .luxury-review-content p {
        font-size: 1.1rem;
        line-height: 1.7;
    }
    
    /* تكبير أزرار الكمية في الأيبادات */
    .luxury-quantity-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    .luxury-quantity-input {
        width: 55px;
        height: 44px;
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    /* تكبير زر إضافة للسلة في الأيبادات */
    .luxury-add-to-cart {
        padding: 14px 18px;
        font-size: 18px;
        font-weight: 700;
    }
    
    /* تكبير زر المفضلة في الأيبادات */
    .luxury-wishlist {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
    }
    
    /* تكبير خيارات المنتج في الأيبادات */
    .luxury-product-options {
        padding: 20px;
        margin: 18px 0;
    }
    
    .luxury-option-group {
        margin-bottom: 24px;
    }
    
    .luxury-option-title {
        font-size: 1.05rem;
        margin-bottom: 10px;
    }
    
    .luxury-option {
        padding: 12px 18px;
        font-size: 1rem;
        min-width: 85px;
        height: 46px;
    }
    
    .luxury-option-values {
        gap: 12px;
    }
}

/* ===================================================
 *                    NOTIFICATIONS STYLES
 * ===================================================
*/

.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;
}

.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 {
    color: #155724;
}

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

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

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

/* Mobile responsive */
@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;
    }
}













/* تحسين عرض الخصائص في الشاشات الكبيرة جداً */
@media (min-width: 1200px) {
    .luxury-option-group {
        gap: 2px;
        margin-bottom: 35px;
        padding-bottom: 30px;
    }
    
    .luxury-option-group:not(:last-child)::after {
        width: calc(200% - 200px);
    }
    
    .luxury-option-group:not(:last-child)::before {
        right: calc(100% - 140px - 8px);
    }
    
    .luxury-option-title {
        font-size: 30.05px;
        font-weight: 700;
    margin-bottom: 10px;
        padding: 0 0px;
    }
    
    .luxury-options {
        gap: 18px;
    }
    
    .luxury-option,
    .luxury-option-btn {
        min-width: 125px;
        font-size: 1rem;
        padding: 15px 25px;
    }
    
    .luxury-option-btn[data-color] {
        min-width: 125px;
        height: 50px;
    }
    
    .luxury-option-btn[data-attribute="size"],
    .luxury-option-btn[data-attribute="memory"] {
        height: 55px;
    }
}

@media (min-width: 1400px) {
    .luxury-option-group {
        gap: 30px;
        margin-bottom: 40px;
        padding-bottom: 0px;
    }
    
    .luxury-option-group:not(:last-child)::after {
        width: calc(100% - 150px);
    }
    
    .luxury-option-group:not(:last-child)::before {
        right: calc(100% - 150px - 8px);
    }
    
    .luxury-option-title {
        font-size: 18px;
        margin-bottom: -2px;
    }


    
    .luxury-options {
        gap: 25px;
    }
    
    .luxury-option,
    .luxury-option-btn {
        min-width: 110px;
        font-size: 1.05rem;
        padding: 18px 30px;
    }
    
    .luxury-option-btn[data-color] {
        min-width: 125px;
        height: 55px;
    }
    
    .luxury-option-btn[data-attribute="size"],
    .luxury-option-btn[data-attribute="memory"] {
        height: 60px;
    }
}

/* تحسين عرض الخصائص في الشاشات الكبيرة جداً */
@media (min-width: 1600px) {
    .luxury-option-group {
        gap: 35px;
        margin-bottom: 45px;
        padding-bottom: 40px;
    }
    
    .luxury-option-group:not(:last-child)::after {
        width: calc(100% - 160px);
    }
    
    .luxury-option-group:not(:last-child)::before {
        right: calc(100% - 160px - 8px);
    }
    
    .luxury-option-title {
        font-size: 1.15rem;
        margin-bottom: 15px;
    }
    
    .luxury-options {
        gap: 25px;
    }
    
    .luxury-option,
    .luxury-option-btn {
        min-width: 120px;
        font-size: 1.1rem;
        padding: 20px 35px;
    }
    
    .luxury-option-btn[data-color] {
        min-width: 70px;
        height: 50px;
    }
    
    .luxury-option-btn[data-attribute="size"],
    .luxury-option-btn[data-attribute="memory"] {
        height: 45px;
    }
}

/* ===================================================
 *                    علامة الخصم الجمالية
 * =================================================== */

/* علامة الخصم في قسم meta-footer - تصميم أخضر جمالي */
.luxury-product-meta-footer .discount-badge {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
    animation: pulse-green-discount 3s infinite;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.luxury-product-meta-footer .discount-badge::before {
    content: '🎉';
    font-size: 16px;
    animation: bounce-emoji 2s infinite;
}

.luxury-product-meta-footer .discount-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.luxury-product-meta-footer .discount-badge span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.luxury-product-meta-footer .discount-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.5);
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

/* تأثيرات حركية */
@keyframes pulse-green-discount {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(39, 174, 96, 0.6);
    }
}

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

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* تحسينات للشاشات المتوسطة */
@media (max-width: 1024px) {
    .luxury-product-meta-footer .discount-badge {
        padding: 10px 18px;
        font-size: 14px;
        border-radius: 22px;
    }
    
    .luxury-product-meta-footer .discount-badge::before {
        font-size: 15px;
    }
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .luxury-product-meta-footer .discount-badge {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 20px;
        margin-bottom: 12px;
    }
    
    .luxury-product-meta-footer .discount-badge::before {
        font-size: 14px;
    }
    
    .luxury-product-meta-footer .discount-badge span {
        gap: 4px;
    }
}

/* تحسينات للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .luxury-product-meta-footer .discount-badge {
        padding: 6px 14px;
        font-size: 12px;
        border-radius: 18px;
        margin-bottom: 10px;
        gap: 6px;
    }
    
    .luxury-product-meta-footer .discount-badge::before {
        font-size: 13px;
    }
    
    .luxury-product-meta-footer .discount-badge span {
        gap: 3px;
    }
}

/* تحسينات للشاشات الصغيرة جداً جداً */
@media (max-width: 360px) {
    .luxury-product-meta-footer .discount-badge {
        padding: 5px 12px;
        font-size: 11px;
        border-radius: 16px;
        margin-bottom: 8px;
    }
    
    .luxury-product-meta-footer .discount-badge::before {
        font-size: 12px;
    }
}

/* تحسينات للشاشات الكبيرة */
@media (min-width: 1200px) {
    .luxury-product-meta-footer .discount-badge {
        padding: 14px 24px;
        font-size: 16px;
        border-radius: 28px;
        margin-bottom: 18px;
    }
    
    .luxury-product-meta-footer .discount-badge::before {
        font-size: 18px;
    }
    
    .luxury-product-meta-footer .discount-badge span {
        gap: 8px;
    }
}

/* تحسينات للشاشات الكبيرة جداً */
@media (min-width: 1600px) {
    .luxury-product-meta-footer .discount-badge {
        padding: 16px 28px;
        font-size: 17px;
        border-radius: 30px;
        margin-bottom: 20px;
    }
    
    .luxury-product-meta-footer .discount-badge::before {
        font-size: 19px;
    }
    
    .luxury-product-meta-footer .discount-badge span {
        gap: 10px;
    }
}

/* تحسينات للشاشات الكبيرة جداً جداً */
@media (min-width: 2000px) {
    .luxury-product-meta-footer .discount-badge {
        padding: 18px 32px;
        font-size: 18px;
        border-radius: 32px;
        margin-bottom: 22px;
    }
    
    .luxury-product-meta-footer .discount-badge::before {
        font-size: 20px;
    }
    
    .luxury-product-meta-footer .discount-badge span {
        gap: 12px;
    }
}







/* حاوية الزر وأداة التحكم */
.luxury-add-to-cart-wrapper {
    flex-grow: 1; /* لجعلها تأخذ المساحة المتاحة */
    position: relative;
    height: 50px; /* تأكد من أن الارتفاع مطابق لارتفاع الزر */
}

/* يجب أن يكون كل من الزر وأداة التحكم بنفس الحجم ويحتلان نفس المكان */
.luxury-add-to-cart-wrapper .luxury-add-to-cart,
.luxury-add-to-cart-wrapper .luxury-quantity {
    width: 100%;
    height: 100%;
    border-radius: 8px; /* تأكد من أن الانحناء مطابق للزر */
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

/* تنسيق أداة التحكم بالكمية لتبدو كزر واحد */
.luxury-add-to-cart-wrapper .luxury-quantity {
    background-color: #198754; /* نفس لون الزر */
    color: white;
    padding: 0;
    justify-content: space-between; /* لتوزيع الأزرار والمدخل */
}

/* أزرار الزيادة والنقصان داخل الأداة */
.luxury-add-to-cart-wrapper .luxury-quantity .luxury-quantity-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0 20px;
    height: 100%;
}

/* حقل إدخال الكمية */
.luxury-add-to-cart-wrapper .luxury-quantity .luxury-quantity-input {
    width: 50px; /* عرض مناسب للرقم */
    text-align: center;
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    /* إخفاء الأسهم الافتراضية لحقل الرقم */
    -moz-appearance: textfield;
}

.luxury-add-to-cart-wrapper .luxury-quantity .luxury-quantity-input::-webkit-outer-spin-button,
.luxury-add-to-cart-wrapper .luxury-quantity .luxury-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}



/* ================================================= */
/*  تصميم احترافي ومحسّن لخيارات المنتج (المتغيرات)  */
/* ================================================= */

/* ----- 1. الحاوية والعنوان ----- */
.luxury-option-group {
    margin-bottom: 25px;
}

.luxury-option-title {
    margin-bottom: 15px; /* مسافة واضحة بين العنوان والخيارات */
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.luxury-option-values {
    display: flex;
    flex-wrap: wrap;
    gap: 12px; /* المسافة بين الأزرار */
    align-items: center;
}


/* ----- 2. التصميم الأساسي للزر (لكل الأنواع) ----- */
.luxury-option-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* مسافة بين أيقونة الصح أو عينة اللون والنص */
    padding: 0 20px;
    height: 44px;
    border: 1px solid #dcdcdc;
    border-radius: 22px; /* شكل دائري (capsule shape) */
    background-color: #ffffff;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

/* ----- 3. أيقونة علامة الصح (للأزرار النصية فقط) ----- */
.luxury-option-btn .checkmark-icon {
    margin-right: -4px;
    font-size: 12px;
    color: #fff;
    width: 18%;
    align-content: center;
    border: 1px solid #198754;
    opacity: 0;
    border-radius: 22px;
    transform: scale(0.5);
    transition: all 0.2s 
ease-in-out;
    height: 37%;
    background-color: #198754;
}

/* ----- 4. حالة المرور (Hover) ----- */
.luxury-option-btn:not(.selected):not([disabled]):hover {
    border-color: #97755b;
    color: #97755b;
}

/* ----- 5. الحالة المحددة (Selected) ----- */
.luxury-option-btn.selected {
    background-color: #ffffff;
    border-color: #333;
    color: #000000;
}

/* إظهار أيقونة الصح عند تحديد الأزرار النصية */
.luxury-option-btn.selected:not(.has-color-swatch) .checkmark-icon {
    opacity: 1;
    transform: scale(1);
}

/* ----- 6. تصميم عينة اللون (الدائرة الصغيرة داخل الزر) ----- */
.luxury-option-btn .color-preview {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    /* إطار خفيف لتحسين المظهر */
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
    flex-shrink: 0; /* لمنع الدائرة من الانضغاط */
    transition: box-shadow 0.2s ease;
}

/* ----- 7. تحسينات الحالة المحددة (Selected) لأزرار الألوان ----- */
/* عند التحديد، يصبح النص أبيض، لذا نضيف إطاراً أبيض حول عينة اللون لتبرز */
.luxury-option-btn.selected .color-preview {
    box-shadow: 0 0 0 2px #ffffff;
}

/* لإبراز اللون الأبيض عند التحديد على خلفية داكنة */
.luxury-option-btn[data-color="#ffffff"].selected .color-preview,
.luxury-option-btn[data-color="white"].selected .color-preview {
    box-shadow: 0 0 0 2px #888; /* إطار رمادي بدلاً من الأبيض */
}

/* ----- 8. الحالة غير المتاحة (Unavailable) ----- */
.luxury-option-btn.unavailable {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f5f5f5 !important;
    border-color: #f5f5f5 !important;
    color: #b0b0b0 !important;
    box-shadow: none !important;
}

/* جعل عينة اللون باهتة في الحالة غير المتاحة */
.luxury-option-btn.unavailable .color-preview {
    opacity: 0.5;
}