/* --- 1. Variables & Reset --- */
:root {
    --bg-body: #ffffff;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    
    /* Modern Palette */
    --primary: #4338ca;    /* Deep Indigo - Trust */
    --primary-hover: #3730a3;
    --accent: #f43f5e;     /* Coral - Action/Alerts */
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --font-main: 'Outfit', sans-serif;
    --font-ar: 'Tajawal', sans-serif;
    
    --border: #e2e8f0;
    --radius-lg: 20px;
    --radius-sm: 8px;
    --shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 40px -10px rgba(0,0,0,0.15);
    
    --header-h: 74px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Font Setup */
body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* RTL Support via Logical Properties */
html[lang="ar"] { direction: rtl; }
html[lang="ar"] body { font-family: var(--font-ar); }

/* Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 100px 0; }
.bg-light { background-color: var(--bg-light); }
.bg-pattern { 
    background-color: #fff;
    background-image: radial-gradient(#e0e7ff 1px, transparent 1px);
    background-size: 24px 24px;
}
.overflow-hidden { overflow: hidden; }

/* --- 2. Navigation --- */
.header {
    position: fixed;
    top: 0; width: 100%; z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
}

.nav-container {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1280px; margin: 0 auto; padding: 0 24px;
    height: 100%;
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text-main); }
.store-logo { height: 40px; width: auto; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -0.5px; }
.brand-sub { font-size: 10px; color: var(--primary); letter-spacing: 1px; margin-top: 2px; font-weight: 600; }

.nav-menu { display: flex; gap: 32px; list-style: none; }
.nav-link { 
    text-decoration: none; color: var(--text-muted); font-weight: 500; 
    font-size: 15px; transition: color 0.3s; position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--primary); transition: width 0.3s;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Nav Actions */
.nav-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
    background: transparent; border: none; cursor: pointer;
    position: relative; padding: 8px; color: var(--text-main);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: background 0.2s;
}
.icon-btn:hover { background: var(--bg-light); }
.icon-svg { width: 22px; height: 22px; }
.lang-text { font-weight: 700; font-size: 14px; }

.cart-badge {
    position: absolute; top: 2px; right: 2px;
    background: var(--accent); color: white;
    font-size: 10px; min-width: 16px; height: 16px; 
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; font-weight: bold; border: 1px solid white;
}

/* Mobile Menu Toggle */
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.menu-toggle span { width: 24px; height: 2px; background: var(--text-main); transition: 0.3s; }

/* --- 3. Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: space-between;
    padding: calc(var(--header-h) + 40px) 5% 60px;
    position: relative; overflow: hidden;
}

.hero-bg-shape {
    position: absolute; top: -10%; 
    /* Logical Property for RTL support */
    inset-inline-end: -10%; 
    width: 55%; height: 120%;
    background: linear-gradient(135deg, #e0e7ff 0%, #f8fafc 100%);
    border-radius: 50% 0 0 50%;
    z-index: -1;
    transform: rotate(-5deg);
}
html[lang="ar"] .hero-bg-shape { border-radius: 0 50% 50% 0; }

.hero-content { max-width: 550px; z-index: 2; }
.hero-badge {
    display: inline-block; padding: 6px 16px;
    background: #eef2ff; color: var(--primary);
    border: 1px solid rgba(67, 56, 202, 0.1);
    border-radius: 30px; font-weight: 600; font-size: 12px;
    margin-bottom: 24px; letter-spacing: 0.5px;
}
.hero-title { font-size: clamp(40px, 5vw, 68px); line-height: 1.1; margin-bottom: 24px; color: var(--text-main); }
.highlight-text { 
    color: var(--primary); 
    background: linear-gradient(120deg, var(--primary) 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc { font-size: 18px; color: var(--text-muted); margin-bottom: 32px; max-width: 480px; }
.hero-buttons { display: flex; gap: 16px; }

.btn-primary {
    background: var(--primary); color: white;
    padding: 16px 36px; border-radius: 50px; text-decoration: none;
    font-weight: 600; transition: 0.3s; box-shadow: 0 10px 20px rgba(67, 56, 202, 0.25);
    display: inline-flex; align-items: center; justify-content: center;
}
.btn-primary:hover { transform: translateY(-3px); background: var(--primary-hover); box-shadow: 0 15px 25px rgba(67, 56, 202, 0.35); }

.btn-secondary {
    border: 1px solid var(--border); color: var(--text-main);
    background: white;
    padding: 16px 36px; border-radius: 50px; text-decoration: none;
    font-weight: 600; transition: 0.3s;
}
.btn-secondary:hover { border-color: var(--text-main); background: var(--bg-light); }

.hero-image-container img {
    width: 100%; max-width: 480px;
    border-radius: 24px;
    box-shadow: 20px 20px 0 rgba(226, 232, 240, 0.5);
    transform: rotate(2deg); transition: 0.5s;
}
.hero-image-container:hover img { transform: rotate(0deg) scale(1.02); }

/* --- 4. Bento Grid (Arrivals) --- */
.bento-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.section-subtitle { 
    color: var(--primary); font-weight: 700; text-transform: uppercase; 
    font-size: 12px; letter-spacing: 2px; display: block; margin-bottom: 12px;
}
.section-title { font-size: 42px; line-height: 1.1; margin-bottom: 20px; }
.section-text { color: var(--text-muted); margin-bottom: 30px; font-size: 16px; }
.accent-separator { width: 60px; height: 4px; background: var(--accent); margin-bottom: 20px; border-radius: 2px; }

.features-row { display: flex; gap: 40px; margin-top: 30px; }
.feature-item { display: flex; align-items: center; gap: 12px; }
.f-icon { font-size: 24px; background: white; padding: 10px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.feature-item h4 { font-size: 14px; font-weight: 700; }

.product-showcase-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.product-showcase-card img { width: 100%; display: block; transition: 0.5s; }
.product-showcase-card:hover img { transform: scale(1.05); }
.card-overlay {
    position: absolute; bottom: 20px; left: 20px; right: 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.price-tag { background: white; padding: 8px 16px; border-radius: 30px; font-weight: 700; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.btn-add-hero { 
    background: var(--text-main); color: white; border: none; width: 40px; height: 40px; 
    border-radius: 50%; font-size: 20px; cursor: pointer; transition: 0.3s;
}
.btn-add-hero:hover { background: var(--accent); }

/* --- 5. Shop Grid --- */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; height: 450px; }
.item-large { grid-column: span 2; }
.shop-item {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    background-size: cover; background-position: center;
    display: flex; align-items: flex-end; padding: 30px;
    transition: 0.4s;
}
.shop-item::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    transition: 0.3s;
}
.shop-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.shop-item:hover::before { background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 70%); }

.shop-content { position: relative; z-index: 2; width: 100%; }
.shop-content h3 { color: white; font-size: 28px; margin-bottom: 8px; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.shop-link { color: white; text-decoration: none; font-weight: 600; border-bottom: 2px solid rgba(255,255,255,0.5); padding-bottom: 2px; transition: 0.3s; }
.shop-link:hover { border-color: white; }

/* --- 6. 3D Carousel --- */
.carousel-wrapper { position: relative; max-width: 800px; margin: 0 auto; padding: 40px 0; perspective: 1000px; }
.carousel-3d { 
    position: relative; height: 400px; width: 100%;
    transform-style: preserve-3d; 
}
.carousel-item {
    position: absolute; top: 0; left: 50%;
    width: 280px; height: 380px;
    margin-left: -140px; /* Center perfectly */
    background: white; border-radius: var(--radius-lg);
    box-shadow: var(--shadow); overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid var(--border);
    display: flex; flex-direction: column;
}
html[lang="ar"] .carousel-item { margin-left: 0; margin-right: -140px; right: 50%; left: auto; }

.carousel-item img { width: 100%; height: 220px; object-fit: cover; background: #f1f1f1; }
.p-details { padding: 20px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.p-header h3 { font-size: 16px; margin-bottom: 4px; }
.p-header .p-price { color: var(--primary); font-weight: 700; font-size: 18px; }
.btn-add-cart {
    width: 100%; padding: 10px; background: var(--text-main); color: white;
    border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.3s;
}
.btn-add-cart:hover { background: var(--accent); }

.carousel-controls { display: flex; justify-content: center; gap: 20px; margin-top: 30px; }
.c-btn {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
    background: white; cursor: pointer; font-size: 18px; transition: 0.3s;
    color: var(--text-main); display: flex; align-items: center; justify-content: center; margin-top: 19px;
}
.c-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.swipe-hint { text-align: center; font-size: 12px; color: var(--text-light); margin-top: 10px; opacity: 0.7; }

/* --- 7. Payment --- */
.payment-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px dashed var(--primary);
    border-radius: var(--radius-lg); padding: 40px;
    display: flex; justify-content: space-between; align-items: center; gap: 30px;
}
.badge-secure { background: #dcfce7; color: #15803d; padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 800; display: inline-block; margin-bottom: 10px; }
.payment-methods { display: flex; gap: 15px; margin-top: 15px; font-size: 12px; font-weight: 600; color: var(--text-muted); opacity: 0.8; }
.btn-ziina {
    background: black; color: white; padding: 16px 32px;
    border-radius: 12px; text-decoration: none; font-weight: 600;
    display: inline-flex; align-items: center; gap: 10px;
    transition: 0.3s; box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.btn-ziina:hover { transform: scale(1.02); box-shadow: 0 15px 30px rgba(0,0,0,0.3); }

/* --- 8. Contact --- */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.c-list-item { margin-bottom: 15px; font-size: 16px; }
.contact-form-box { background: white; padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.input-group input, .input-group textarea {
    width: 100%; padding: 14px; margin-bottom: 16px;
    border: 1px solid var(--border); border-radius: 10px; background: var(--bg-light);
    font-family: inherit; transition: 0.3s; outline: none;
}
.input-group input:focus, .input-group textarea:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.1); }
.btn-submit { width: 100%; background: var(--primary); color: white; border: none; padding: 16px; border-radius: 10px; font-weight: 600; cursor: pointer; transition: 0.3s; font-size: 16px; }
.btn-submit:hover { background: var(--primary-hover); }

/* --- 9. Cart Sidebar (Logic Ready) --- */
.cart-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 2000;
    opacity: 0; pointer-events: none; transition: 0.3s;
    backdrop-filter: blur(2px);
}
.cart-sidebar {
    position: fixed; top: 0; 
    right: -400px; /* Hidden */
    width: 100%; max-width: 400px; height: 100%;
    background: white; z-index: 2001; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    display: flex; flex-direction: column;
}
/* Open State */
body.cart-open .cart-overlay { opacity: 1; pointer-events: auto; }
body.cart-open .cart-sidebar { transform: translateX(-400px); }

/* RTL Logic for Sidebar */
html[lang="ar"] .cart-sidebar { right: auto; left: -400px; box-shadow: 10px 0 30px rgba(0,0,0,0.1); }
html[lang="ar"] body.cart-open .cart-sidebar { transform: translateX(400px); }

.cart-header { padding: 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.close-cart { background: none; border: none; font-size: 28px; cursor: pointer; color: var(--text-muted); padding: 5px; }
.cart-items { flex: 1; overflow-y: auto; padding: 20px; }
.empty-msg { text-align: center; color: var(--text-muted); margin-top: 40px; }

/* Cart Item Style */
.cart-item-row { display: flex; gap: 15px; margin-bottom: 20px; animation: fadeIn 0.3s ease; }
.cart-item-img { width: 70px; height: 70px; border-radius: 8px; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cart-item-price { color: var(--primary); font-weight: 700; font-size: 14px; }
.btn-remove { color: var(--accent); background: none; border: none; font-size: 12px; cursor: pointer; text-decoration: underline; margin-top: 5px; }

.cart-footer { padding: 24px; border-top: 1px solid var(--border); background: var(--bg-light); }
.total-row { display: flex; justify-content: space-between; font-weight: 800; font-size: 18px; margin-bottom: 20px; }
.btn-checkout { 
    display: block; width: 100%; text-align: center;
    background: var(--text-main); color: white; padding: 16px; 
    border-radius: 12px; text-decoration: none; font-weight: 600;
}

/* Toast */
.toast {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
    background: var(--text-main); color: white; padding: 12px 24px; border-radius: 30px;
    font-size: 14px; z-index: 3000; opacity: 0; transition: 0.4s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.toast.active { transform: translateX(-50%) translateY(0); opacity: 1; }

/* Loader */
.loader {
    position: fixed; inset: 0; background: white; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.5s;
}
.loader-content { text-align: center; }
.loader-logo { font-size: 40px; font-weight: 800; display: block; margin-bottom: 10px; letter-spacing: -2px; }
.loader-bar { width: 100px; height: 3px; background: var(--bg-light); position: relative; overflow: hidden; border-radius: 2px; }
.loader-bar::after {
    content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 40%;
    background: var(--primary); animation: load 1s infinite ease-in-out;
}
@keyframes load { 0% { left: -40%; } 100% { left: 100%; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Footer */
.footer { background: var(--bg-light); padding: 60px 0; border-top: 1px solid var(--border); text-align: center; font-size: 14px; }
.social-links { margin-top: 24px; display: flex; gap: 12px; justify-content: center; }
.social-btn { 
    padding: 8px 20px; background: white; border: 1px solid var(--border); 
    border-radius: 30px; text-decoration: none; color: var(--text-main); 
    transition: 0.3s; font-weight: 500;
}
.social-btn:hover { border-color: var(--primary); color: var(--primary); }

/* --- 10. Reveal Animation --- */
.reveal, .reveal-text { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.reveal.active, .reveal-text.active { opacity: 1; transform: translateY(0); }
.reveal-delay { transition-delay: 0.1s; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- 11. Responsive --- */
/* --- أضف هذا الكود في نهاية ملف style.css (استبدل قسم Responsive القديم) --- */

/* --- 11. Advanced Responsive Design --- */

/* Tablet & Small Laptops (1024px and down) */
@media (max-width: 1024px) {
    .hero-title { font-size: 50px; }
    .shop-grid { grid-template-columns: repeat(2, 1fr); }
    .item-large { grid-column: span 2; }
    
    /* تحسين الكاروسيل للأجهزة اللوحية */
    .carousel-wrapper { perspective: 800px; }
    .carousel-item { width: 260px; margin-left: -130px; }
    html[lang="ar"] .carousel-item { margin-right: -130px; }
}

/* Mobile Devices (768px and down) */
@media (max-width: 768px) {
    /* Header & Nav */
    .nav-menu {
        position: fixed; top: var(--header-h); 
        left: 0; width: 100%; height: calc(100vh - var(--header-h));
        background: rgba(255, 255, 255, 0.98); /* خلفية أقل شفافية للقراءة */
        flex-direction: column; align-items: center; justify-content: center;
        padding: 40px; transform: translateX(100%); transition: 0.4s;
        border-top: 1px solid var(--border);
        gap: 40px;
    }
    
    html[lang="ar"] .nav-menu { transform: translateX(-100%); }
    .nav-menu.active { transform: translateX(0); }
    .menu-toggle { display: flex; }
    
    /* Hero Section */
    .hero { 
        flex-direction: column; 
        text-align: center; 
        padding-top: 110px; 
        justify-content: flex-start;
        min-height: auto; /* إلغاء الارتفاع الثابت */
        padding-bottom: 60px;
    }
    .hero-bg-shape { 
        width: 140%; height: 70%; 
        top: -15%; inset-inline-end: -20%; 
        border-radius: 0 0 50% 50%; 
        transform: rotate(0); 
    }
    .hero-content { margin-bottom: 50px; width: 100%; }
    .hero-title { font-size: 38px; }
    .hero-buttons { justify-content: center; }
    .hero-image-container { width: 90%; max-width: 350px; margin: 0 auto; }
    
    /* Sections Grid */
    .bento-split { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .features-row { justify-content: center; }
    .accent-separator { margin: 0 auto 20px auto; }
    
    /* Shop Grid */
    .shop-grid { display: flex; flex-direction: column; height: auto; gap: 20px; }
    .shop-item { height: 220px; }
    
    /* 3D Carousel Mobile Optimization */
    .carousel-wrapper { 
        perspective: 600px; /* تقليل العمق للموبايل */
        overflow: hidden; /* منع ظهور السكرول الجانبي */
        padding: 20px 0 60px 0;
    }
    .carousel-3d { height: 420px; }
    .carousel-item { 
        width: 240px; 
        height: 400px; /* تقليل الارتفاع قليلاً للموبايل */
        margin-left: -120px; /* Center alignment logic */
    }
    html[lang="ar"] .carousel-item { margin-right: -120px; }
    
    /* تعديل النصوص داخل الكرت للموبايل */
    .p-desc { -webkit-line-clamp: 2; font-size: 12px; margin: 5px 0; }
    .carousel-item img { height: 200px; }

    /* Payment & Contact */
    .payment-card { flex-direction: column; text-align: center; padding: 25px; gap: 20px; }
    .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
    
    /* Cart Sidebar */
    .cart-sidebar { width: 100%; max-width: 100%; right: -100%; }
    html[lang="ar"] .cart-sidebar { left: -100%; }
    body.cart-open .cart-sidebar { transform: translateX(-100%); }
    html[lang="ar"] body.cart-open .cart-sidebar { transform: translateX(100%); }
    
    /* Image Modal */
    .modal-content { max-width: 95%; }
    .close-modal { top: 10px; right: 20px; }
}

/* Small Mobile (Small Phones < 380px) */
@media (max-width: 380px) {
    .hero-title { font-size: 32px; }
    .btn-primary, .btn-secondary { padding: 12px 24px; font-size: 14px; }
    
    .carousel-item { 
        width: 220px; 
        margin-left: -110px; 
    }
    html[lang="ar"] .carousel-item { margin-right: -110px; }
}
/* 1. زيادة ارتفاع الكرت لاستيعاب الوصف */
.carousel-item {
    /* تم تغيير الارتفاع من 380px إلى 450px */
    height: 450px; 
    /* بقية الخصائص كما هي */
    position: absolute; top: 0; left: 50%;
    width: 280px;
    margin-left: -140px;
    background: white; border-radius: var(--radius-lg);
    box-shadow: var(--shadow); overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid var(--border);
    display: flex; flex-direction: column;
}

/* 2. تنسيق الوصف الجديد (إضافة كلاس جديد) */
.p-desc {
    font-size: 13px;
    color: var(--text-muted); /* لون رمادي هادئ */
    margin: 8px 0 12px 0;
    line-height: 1.5;
    font-weight: 400;
    
    /* خاصية لقص النص الطويل وإظهار ... إذا زاد عن 3 أسطر */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.9;
}

/* تعديل بسيط لعنوان المنتج ليتناسق مع الوصف */
.p-header h3 {
    font-size: 17px;
    margin-bottom: 4px;
    font-weight: 700;
}

/* --- Image Modal (Lightbox) Styles --- */
.image-modal {
    display: none; /* مخفي افتراضياً */
    position: fixed;
    z-index: 5000; /* طبقة عالية جداً فوق كل شيء */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9); /* خلفية سوداء شفافة */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.image-modal.active {
    display: flex; /* يظهر عند إضافة كلاس active */
    animation: fadeIn 0.3s;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh; /* لا تتجاوز 90% من ارتفاع الشاشة */
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    transform: scale(0.8);
    transition: transform 0.3s;
}

.image-modal.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 5001;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
}

/* تعديل مؤشر الماوس على صور الكاروسيل */
.carousel-item img {
    cursor: zoom-in;
}