body { font-family: ‘Tajawal’, sans-serif; background-color: #0f1012; color: #fff; }
.glass-panel { background: rgba(30, 30, 36, 0.7); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.08); }
.glass-nav { background: rgba(15, 16, 18, 0.95); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255, 215, 0, 0.1); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f1012; }
::-webkit-scrollbar-thumb { background: #FFD700; border-radius: 4px; }
/* ========= FINAL MARQUEE (PREMIUM & SMOOTH) ========= */
.marquee-container {
overflow: hidden;
position: relative;
width: 100%;
}

.marquee-track {
display: flex;
width: max-content;
animation: scrollMarquee 20s linear infinite;
will-change: transform;
}

.marquee-container:hover .marquee-track {
animation-play-state: paused;
}

@keyframes scrollMarquee {
0% {
transform: translateX(0);
}
100% {
transform: translateX(-50%);
}
}
/* ========= PREMIUM BRAND CARDS (REAL LOGOS) ========= */
.brand-card {
width: 140px;
height: 140px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 24px;
background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
border: 1px solid rgba(255,255,255,0.05);
box-shadow: inset 0 0 20px rgba(0,0,0,0.5), 0 8px 32px rgba(0,0,0,0.3);
transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
cursor: pointer;
}

.brand-icon-mask {
width: 65px;
height: 65px;
background-color: rgba(255, 255, 255, 0.25);
-webkit-mask-size: contain;
mask-size: contain;
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
-webkit-mask-position: center;
mask-position: center;
transition: all 0.5s ease;
}

.brand-card:hover {
transform: translateY(-12px) scale(1.02);
border-color: rgba(255, 215, 0, 0.4);
background: linear-gradient(145deg, rgba(255,215,0,0.05) 0%, rgba(255,255,255,0.01) 100%);
box-shadow: 0 15px 40px rgba(255, 215, 0, 0.15), inset 0 0 20px rgba(255, 215, 0, 0.05);
}

.brand-card:hover .brand-icon-mask {
background-color: #FFD700;
filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8));
transform: scale(1.15);
}

@media (max-width: 768px) {
.brand-card {
width: 100px;
height: 100px;
border-radius: 18px;
}
.brand-icon-mask {
width: 45px;
height: 45px;
}
}

.animate-car-engine { animation: car-idle 0.8s infinite linear; }
.loader-wrapper { position: fixed; inset: 0; background: #0f1012; z-index: 9999; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity 0.8s ease, transform 0.8s ease; }
.loader-hidden { opacity: 0; pointer-events: none; transform: translateY(-100%); }
.speedometer { width: 100px; height: 50px; border-radius: 50px 50px 0 0; border: 4px solid #333; border-bottom: none; position: relative; overflow: hidden; }
.needle { width: 40px; height: 4px; background: #FFD700; position: absolute; bottom: 0; left: 50%; transform-origin: left center; animation: rev 2s infinite ease-in-out; }
@keyframes rev { 0% { transform: rotate(0deg); } 50% { transform: rotate(180deg); } 100% { transform: rotate(0deg); } }

/* ─── المودال ─── */
.modal { transition: opacity 0.3s ease, visibility 0.3s ease; opacity: 0; visibility: hidden; }
.modal.active { opacity: 1; visibility: visible; }
.modal-content { transform: scale(0.9); transition: transform 0.3s ease; }
.modal.active .modal-content { transform: scale(1); }

/* ─── بادج الأكثر طلباً ─── */
.best-seller-badge { position: absolute; top: 12px; left: 12px; z-index: 20; background: linear-gradient(45deg, #FFD700, #ffae00); color: black; font-weight: 800; font-family: ‘Changa’; padding: 4px 12px; border-radius: 4px; box-shadow: 0 0 15px rgba(255, 215, 0, 0.6); font-size: 12px; display: flex; align-items: center; gap: 5px; }

/* ─── صور التقييم ─── */
.review-image { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; margin-top: 10px; border: 1px solid rgba(255,255,255,0.1); cursor: pointer; transition: transform 0.3s; }
.review-image:hover { transform: scale(1.02); box-shadow: 0 5px 15px rgba(255,215,0,0.1); }

/* ─── SweetAlert ─── */
.swal2-popup { background: #1e1e24 !important; color: #fff !important; border: 1px solid #333; }
.swal2-input, .swal2-textarea { background: #0f1012 !important; color: white !important; border: 1px solid #333 !important; }
.swal2-input:focus, .swal2-textarea:focus { border-color: #FFD700 !important; box-shadow: 0 0 0 1px #FFD700 !important; }

/* ─── تأثيرات ─── */
details[open] summary ~ * { animation: fadeIn 0.5s ease-in-out; }
@keyframes fadeIn { 0% { opacity: 0; transform: translateY(-10px); } 100% { opacity: 1; transform: translateY(0); } }
.search-wrapper:focus-within { box-shadow: 0 0 20px rgba(255, 215, 0, 0.2); border-color: #FFD700; }
.search-wrapper:focus-within i { color: #FFD700; }

/* ─── النجوم ─── */
.editable-stars { direction: ltr; display: flex; justify-content: center; gap: 5px; margin: 20px 0; }
.editable-star { font-size: 32px; cursor: pointer; color: #666; transition: all 0.2s ease; }
.editable-star.active { color: #FFD700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.8); transform: scale(1.1); }
.editable-star:hover { transform: scale(1.2); }
.rating-text { text-align: center; color: #FFD700; font-size: 14px; margin-top: 5px; font-weight: bold; }
.swal2-popup .editable-star { font-size: 40px; cursor: pointer; transition: all 0.2s; color: #444; }
.swal2-popup .editable-star:hover { transform: scale(1.1); }
.swal2-popup .editable-star.active { color: #FFD700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }

/* ─── الأكثر مبيعاً Swiper ─── */
.topSellingSwiper .swiper-wrapper { transition-timing-function: linear !important; }
.topSellingSwiper img { width: 100%; height: 160px; object-fit: contain; padding: 10px; }

/* ─── بطاقات المنتجات ─── */
.product-card-hover { transition: all 0.3s ease; }
.product-card-hover:hover { transform: translateY(-5px); border-color: rgba(255, 215, 0, 0.5); box-shadow: 0 10px 30px -10px rgba(255, 215, 0, 0.2); }

/* ─── السكرول بار المخصص ─── */
.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(255, 215, 0, 0.3); border-radius: 10px; }

/* ─── رسائل المخزون ─── */
.stock-info { font-size: 13px; padding: 8px 12px; border-radius: 8px; display: inline-block; font-weight: bold; }
.stock-available { background: rgba(34, 197, 94, 0.2); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); }
.stock-low { background: rgba(251, 191, 36, 0.2); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }
.stock-out { background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }

/* ══════════════════════════════════════════════════════ */
/* 🖼️ معرض الصور الكامل */
/* ══════════════════════════════════════════════════════ */
#imageGalleryModal.active .modal-content,
#imageGalleryModal.active > div:last-child { transform: scale(1); }

#galleryMainImg {
transition: opacity 0.15s ease;
user-select: none;
-webkit-user-drag: none;
}

/* ══════════════════════════════════════════════════════ */
/* 🛒 مودال المنتج - التصميم الجديد الكامل               */
/* ══════════════════════════════════════════════════════ */

#productModal .modal-content {
display: flex;
flex-direction: row;
width: 100%;
max-width: 960px;
max-height: 92vh;
overflow: hidden;
border-radius: 24px;
}

#productModal .product-img-section {
width: 44%;
min-width: 280px;
flex-shrink: 0;
display: flex;
flex-direction: column;
background: #0d0d0f;
position: relative;
}

#productModal #modalImg {
width: 100%;
height: 100%;
object-fit: contain;
padding: 16px;
cursor: zoom-in;
transition: transform 0.3s ease;
}
#productModal #modalImg:hover {
transform: scale(1.03);
}

/* ─── الصور المصغرة ─── */
#modalThumbs {
display: flex;
flex-wrap: nowrap;
overflow-x: auto;
gap: 8px;
padding: 10px 12px;
background: rgba(0,0,0,0.4);
border-top: 1px solid rgba(255,255,255,0.06);
scrollbar-width: thin;
scrollbar-color: #FFD700 transparent;
min-height: 68px;
align-items: center;
}
#modalThumbs::-webkit-scrollbar { height: 3px; }
#modalThumbs::-webkit-scrollbar-thumb { background: #FFD700; border-radius: 4px; }

/* ─── قسم التفاصيل (يمين) ─── */
#productModal .product-details-section {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
background: #141416;
position: relative;
}

#productModal .product-details-scroll {
flex: 1;
overflow-y: auto;
padding: 22px 20px 16px 20px;
scrollbar-width: thin;
scrollbar-color: rgba(255,215,0,0.3) transparent;
}
#productModal .product-details-scroll::-webkit-scrollbar { width: 4px; }
#productModal .product-details-scroll::-webkit-scrollbar-thumb {
background: rgba(255,215,0,0.4);
border-radius: 4px;
}

#productModal #modalTitle {
font-family: ‘Changa’, sans-serif;
font-size: clamp(16px, 2.5vw, 22px);
font-weight: 900;
color: #ffffff;
line-height: 1.4;
margin-bottom: 10px;
}

#productModal #modalCat {
display: inline-block;
font-size: 10px;
font-weight: 700;
letter-spacing: 1.5px;
text-transform: uppercase;
color: #FFD700;
background: rgba(255,215,0,0.1);
border: 1px solid rgba(255,215,0,0.25);
border-radius: 4px;
padding: 3px 10px;
margin-bottom: 12px;
}

/* ─── بطاقة الوصف ─── */
.product-desc-card {
background: rgba(255,255,255,0.03);
border: 1px solid rgba(255,255,255,0.07);
border-radius: 14px;
padding: 14px 16px;
margin-bottom: 14px;
position: relative;
}
.product-desc-card .desc-label {
font-size: 10px;
font-weight: 700;
color: #FFD700;
letter-spacing: 1px;
margin-bottom: 8px;
display: flex;
align-items: center;
gap: 6px;
}
.product-desc-card .desc-label::before {
content: ‘’;
display: block;
width: 3px;
height: 12px;
background: #FFD700;
border-radius: 2px;
}
.product-desc-text {
font-size: 13.5px;
color: #c0c0c8;
line-height: 1.8;
white-space: pre-line;
max-height: 140px;
overflow-y: auto;
padding-left: 4px;
scrollbar-width: thin;
scrollbar-color: rgba(255,215,0,0.3) transparent;
}
.product-desc-text::-webkit-scrollbar { width: 3px; }
.product-desc-text::-webkit-scrollbar-thumb { background: rgba(255,215,0,0.3); border-radius: 4px; }

.desc-scroll-hint {
font-size: 10px;
color: rgba(255,215,0,0.5);
display: flex;
align-items: center;
gap: 4px;
margin-top: 6px;
transition: opacity 0.3s;
}

/* ─── بطاقة اختيار النوع ─── */
.product-variant-card {
background: rgba(255,215,0,0.04);
border: 1px solid rgba(255,215,0,0.15);
border-radius: 14px;
padding: 14px 16px;
margin-bottom: 14px;
}
.product-variant-card .variant-label {
font-size: 10px;
font-weight: 700;
color: #FFD700;
letter-spacing: 1px;
margin-bottom: 10px;
display: flex;
align-items: center;
gap: 6px;
}
.product-variant-card .variant-label::before {
content: ‘’;
display: block;
width: 3px;
height: 12px;
background: #FFD700;
border-radius: 2px;
}

#productModal #productOptionSelect {
width: 100%;
background: #0d0d0f;
border: 1.5px solid rgba(255,255,255,0.1);
border-radius: 10px;
padding: 11px 14px;
color: #fff;
font-family: ‘Tajawal’, sans-serif;
font-size: 14px;
outline: none;
transition: border-color 0.2s, box-shadow 0.2s;
cursor: pointer;
appearance: auto;
}
#productModal #productOptionSelect:focus {
border-color: #FFD700;
box-shadow: 0 0 0 3px rgba(255,215,0,0.1);
}
#productModal #stockMessage {
margin-top: 8px;
}

/* ─── بطاقة السعر ─── */
.product-price-card {
background: linear-gradient(135deg, rgba(255,215,0,0.07) 0%, rgba(255,215,0,0.02) 100%);
border: 1px solid rgba(255,215,0,0.2);
border-radius: 14px;
padding: 14px 16px;
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 4px;
}
.product-price-label {
font-size: 12px;
color: #888;
font-weight: 600;
}
.product-price-value {
display: flex;
align-items: baseline;
gap: 5px;
}
.product-price-amount {
font-family: ‘Changa’, sans-serif;
font-size: 28px;
font-weight: 900;
color: #FFD700;
line-height: 1;
}
.product-price-currency {
font-size: 11px;
color: rgba(255,215,0,0.6);
font-weight: 700;
letter-spacing: 0.5px;
}

/* ─── شريط الأزرار السفلي ─── */
#productModal .product-actions-bar {
padding: 14px 16px;
background: rgba(15,16,18,0.97);
backdrop-filter: blur(12px);
border-top: 1px solid rgba(255,255,255,0.06);
display: flex;
flex-direction: column;
gap: 10px;
flex-shrink: 0;
}

.qty-control {
display: flex;
align-items: center;
justify-content: center;
background: rgba(255,255,255,0.05);
border: 1px solid rgba(255,255,255,0.1);
border-radius: 50px;
overflow: hidden;
height: 38px;
width: 120px;
}
.qty-btn {
width: 38px;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-size: 16px;
cursor: pointer;
transition: background 0.2s;
border: none;
background: transparent;
}
.qty-btn:hover { background: rgba(255,215,0,0.15); color: #FFD700; }
.qty-display {
flex: 1;
text-align: center;
font-family: ‘Changa’, monospace;
font-weight: 700;
font-size: 15px;
color: #fff;
border-left: 1px solid rgba(255,255,255,0.08);
border-right: 1px solid rgba(255,255,255,0.08);
}

.product-btn-row {
display: flex;
gap: 8px;
align-items: center;
}
.btn-add-cart {
flex: 1;
background: #FFD700;
color: #000;
border: none;
border-radius: 14px;
padding: 13px 20px;
font-family: ‘Changa’, sans-serif;
font-weight: 800;
font-size: 15px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
transition: all 0.2s;
box-shadow: 0 4px 20px rgba(255,215,0,0.2);
}
.btn-add-cart:hover {
background: #fff;
transform: translateY(-1px);
box-shadow: 0 6px 24px rgba(255,215,0,0.3);
}
.btn-add-cart:active { transform: scale(0.97); }

.btn-share {
width: 46px;
height: 46px;
border-radius: 14px;
border: 1.5px solid rgba(255,255,255,0.12);
background: transparent;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s;
font-size: 16px;
flex-shrink: 0;
}
.btn-share:hover {
background: #FFD700;
border-color: #FFD700;
color: #000;
}

/* ── الاستجابة للجوال ── */
@media (max-width: 767px) {
#productModal .modal-content {
flex-direction: column;
height: 88vh;
max-height: 88vh;
border-radius: 24px 24px 0 0;
position: fixed;
bottom: 0;
left: 0;
right: 0;
margin: 0;
max-width: 100%;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}

#productModal .product-img-section {
width: 100%;
height: 30vh;
min-height: 200px;
flex-shrink: 0;
}

#productModal .product-details-section {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
}

#productModal .product-details-scroll {
flex: 1;
overflow-y: auto;
padding: 16px 16px 10px 16px;
}

.product-desc-text {
max-height: none !important;
}

#productModal .product-actions-bar {
flex-shrink: 0;
padding: 12px 16px;
padding-bottom: calc(12px + env(safe-area-inset-bottom));
box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
z-index: 10;
}

#productModal #modalTitle {
font-size: 18px;
}

.product-price-amount {
font-size: 24px;
}

#modalThumbs {
min-height: 60px;
padding: 8px 10px;
}
}

@media (max-width: 767px) {
#productModal {
align-items: flex-end;
}
}

#productModal img[onclick] { cursor: zoom-in; }

/* ══════════════════════════════════════════════════════ */
/* باقي الأنماط الأصلية                                  */
/* ══════════════════════════════════════════════════════ */

#modalDesc::-webkit-scrollbar { width: 4px; }
#modalDesc::-webkit-scrollbar-thumb { background: #FFD700; border-radius: 4px; }

/* ══════════════════════════════════════════════════════ */
/* 💳 تنسيق بوابة الدفع (ميسر)                          */
/* ══════════════════════════════════════════════════════ */

.mysr-form {
max-width: 100% !important;
padding: 10px !important;
}

.mysr-form label {
color: #FFD700 !important;
font-family: ‘Tajawal’, sans-serif !important;
font-size: 14px !important;
font-weight: bold !important;
margin-bottom: 8px !important;
display: block !important;
}

.mysr-form input {
background-color: #1a1a1d !important;
border: 1px solid rgba(255, 255, 255, 0.2) !important;
color: #ffffff !important;
border-radius: 12px !important;
padding: 14px !important;
width: 100% !important;
transition: all 0.3s ease !important;
direction: ltr !important;
}

.mysr-form input:focus {
border-color: #FFD700 !important;
box-shadow: 0 0 10px rgba(255, 215, 0, 0.2) !important;
outline: none !important;
}

.mysr-form button {
display: block !important;
width: 100% !important;
background-color: #FFD700 !important;
color: #000 !important;
font-family: ‘Changa’, sans-serif !important;
font-weight: bold !important;
font-size: 16px !important;
padding: 14px !important;
border-radius: 12px !important;
border: none !important;
margin-top: 15px !important;
cursor: pointer !important;
box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2) !important;
}
.mysr-form button:hover {
background-color: #ffffff !important;
color: #000 !important;
}

.mysr-form .error {
color: #ff4d4d !important;
font-size: 12px !important;
margin-top: 5px !important;
}

/* ===== Portfolio (أعمالنا) ===== */
.section-wrap { padding: 28px 16px; max-width: 1100px; margin: 0 auto; }
.section-head { margin-bottom: 14px; }
.section-head h2 { font-size: 22px; margin: 0 0 6px 0; }
.section-head p { margin: 0; opacity: .8; }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.card { border: 1px solid rgba(255,255,255,.08); border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.03); }
.card-img { width: 100%; aspect-ratio: 4/3; background: rgba(255,255,255,.02); }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 12px; }
.card-title { font-weight: 700; }
.card-sub { font-size: 12px; opacity: .75; margin-top: 2px; }
.card-text { font-size: 13px; opacity: .85; margin-top: 8px; line-height: 1.5; }
.muted { opacity: .75; padding: 10px 0; }
