/* ============================================
   تصميم احترافي حديث مع أنيميشن متجاوب
   ============================================ */

:root {
    /* ألوان احترافية حديثة */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #f59e0b;
    --secondary-dark: #d97706;
    --accent-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    /* ألوان النص والخلفية */
    --dark-color: #0f172a;
    --text-color: #1e293b;
    --text-light: #64748b;
    --muted-color: #94a3b8;
    --bg-color: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-bg: #ffffff;
    --card-hover: #f1f5f9;
    
    /* التصميم */
    --radius: 20px;
    --radius-sm: 12px;
    --radius-lg: 28px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    --shadow-primary: 0 8px 24px rgba(99, 102, 241, 0.3);
    
    scroll-behavior: smooth;
    font-size: 16px;
}

/* ============================================
   إعدادات عامة
   ============================================ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', 'Tahoma', 'Segoe UI', sans-serif;
    color: var(--text-color);
    background: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

main {
    position: relative;
    z-index: 1;
    overflow-x: hidden;
}

/* ============================================
   أنيميشن عامة
   ============================================ */

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

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* ============================================
   العناصر العامة
   ============================================ */

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

/* ============================================
   الهيدر
   ============================================ */

header.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem clamp(1rem, 4vw, 2rem);
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.6s ease;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(0);
    gap: 1.5rem;
    flex-wrap: wrap;
}

header.site-header.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

header.site-header.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

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

.site-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: fadeInLeft 0.8s ease;
}

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

.site-brand img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.site-brand img:hover {
    transform: scale(1.1) rotate(5deg);
}

.site-brand h1 {
    margin: 0;
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.main-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.nav-link:hover::after {
    width: 80%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: fadeInRight 0.8s ease;
}

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

.contact-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.85rem;
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.contact-text {
    display: inline;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 32px;
    height: 32px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   القسم الرئيسي (Hero)
   ============================================ */

.hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 3rem);
    align-items: center;
    padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

.hero__content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
    display: flex;
    flex-direction: column;
}

.hero__content h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 0 0 1rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero__content p {
    font-size: clamp(1rem, 1.8vw, 1.1rem);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: var(--shadow-primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
}

.cta-button:active {
    transform: translateY(-1px);
}

.hero__price-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(135deg, var(--primary-color), var(--accent-color));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    animation: scaleIn 1s ease 0.8s both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.hero__price-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.price {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.price__current {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--primary-color);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price__old {
    text-decoration: line-through;
    color: var(--muted-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.price__tagline {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
}

.stock-info,
.shipping-info {
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--success-color);
    border-right: 4px solid var(--success-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.shipping-info {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.05));
    color: var(--primary-color);
    border-right-color: var(--primary-color);
}

.shipping-info strong {
    font-weight: 800;
    color: var(--accent-color);
}

.hero__gallery {
    position: relative;
    z-index: 1;
    animation: fadeInRight 1s ease 0.3s both;
}

.gallery {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    max-width: 450px;
    margin: 0 auto;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(236, 72, 153, 0.03));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
    border-radius: var(--radius-lg);
}

.gallery:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.25);
}

.gallery:hover::before {
    opacity: 1;
}

.gallery__main {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 400px;
    height: 400px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
}

.gallery__main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
    border-radius: var(--radius);
}

.gallery__main:hover::before {
    opacity: 1;
}

.gallery__main img,
.gallery__main video,
.gallery__main iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: var(--radius);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation: imageFadeIn 0.8s ease;
}

@keyframes imageFadeIn {
    from {
        opacity: 0;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery__main img.loaded,
.gallery__main video.loaded,
.gallery__main iframe.loaded {
    animation: imageLoaded 0.8s ease;
}

@keyframes imageLoaded {
    0% {
        opacity: 0;
        transform: scale(1.05);
        filter: blur(3px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

.gallery__main:hover img,
.gallery__main:hover video {
    transform: scale(1.08);
    filter: brightness(1.05) contrast(1.02);
}

.gallery__main::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%) skewX(-15deg);
    transition: transform 0.8s ease;
    pointer-events: none;
    z-index: 2;
    border-radius: var(--radius);
}

.gallery__main:hover::after {
    transform: translateX(200%) skewX(-15deg);
}

.gallery__thumbs {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 1rem;
    scrollbar-width: thin;
}

.gallery__thumbs::-webkit-scrollbar {
    height: 6px;
}

.gallery__thumbs::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 10px;
}

.gallery__thumbs::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.gallery__thumbs button {
    border: none;
    background: transparent;
    padding: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    aspect-ratio: 1 / 1;
    position: relative;
    animation: thumbFadeIn 0.5s ease both;
}

@keyframes thumbFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gallery__thumbs button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(236, 72, 153, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: var(--radius-sm);
}

.gallery__thumbs button:hover::before {
    opacity: 1;
}

.gallery__thumbs button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-sm);
}

.gallery__thumbs button:hover {
    transform: scale(1.15) translateY(-3px);
    border-color: var(--primary-light);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.gallery__thumbs button:hover img {
    transform: scale(1.1);
}

.gallery__thumbs button.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3), 0 4px 12px rgba(99, 102, 241, 0.2);
    transform: scale(1.1);
    animation: activePulse 2s ease-in-out infinite;
}

@keyframes activePulse {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3), 0 4px 12px rgba(99, 102, 241, 0.2);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.4), 0 6px 16px rgba(99, 102, 241, 0.3);
    }
}

.gallery__thumbs button.active::before {
    opacity: 0.5;
}

/* ============================================
   الأقسام
   ============================================ */

.section {
    padding: clamp(3rem, 4vw, 4rem) clamp(1rem, 4vw, 2rem);
    position: relative;
    z-index: 1;
}

.section:nth-child(even) {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(236, 72, 153, 0.03) 100%);
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    margin: 0 0 2rem;
    font-weight: 800;
    position: relative;
    padding-bottom: 0.75rem;
    animation: fadeInUp 0.8s ease;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* ============================================
   البطاقات (Cards)
   ============================================ */

.benefits-grid,
.trust-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.benefit-card,
.trust-card,
.step-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease both;
}

.benefit-card:nth-child(1) { animation-delay: 0.1s; }
.benefit-card:nth-child(2) { animation-delay: 0.2s; }
.benefit-card:nth-child(3) { animation-delay: 0.3s; }

.trust-card:nth-child(1) { animation-delay: 0.1s; }
.trust-card:nth-child(2) { animation-delay: 0.2s; }
.trust-card:nth-child(3) { animation-delay: 0.3s; }

.benefit-card::before,
.trust-card::before,
.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.benefit-card:hover::before,
.trust-card:hover::before,
.step-card:hover::before {
    transform: scaleX(1);
}

.benefit-card:hover,
.trust-card:hover,
.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.benefit-card span.icon,
.trust-card span.icon,
.step-card span.icon {
    font-size: 2.5rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.benefit-card h3,
.trust-card h3,
.step-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0.25rem 0;
}

.benefit-card p,
.trust-card p,
.step-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   خطوات الطلب
   ============================================ */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
}

.step-card {
    text-align: center;
}

.step-card span.icon {
    margin: 0 auto;
}

/* ============================================
   آراء العملاء
   ============================================ */

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.4s ease;
    border-right: 4px solid var(--primary-color);
    animation: fadeInUp 0.6s ease both;
}

.testimonial:nth-child(1) { animation-delay: 0.1s; }
.testimonial:nth-child(2) { animation-delay: 0.2s; }
.testimonial:nth-child(3) { animation-delay: 0.3s; }
.testimonial:nth-child(4) { animation-delay: 0.4s; }
.testimonial:nth-child(5) { animation-delay: 0.5s; }
.testimonial:nth-child(6) { animation-delay: 0.6s; }

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-right-color: var(--accent-color);
}

.testimonial strong {
    font-size: 1.2rem;
    color: var(--text-color);
}

.testimonial .rating {
    color: var(--warning-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial p {
    color: var(--text-light);
    line-height: 1.7;
    font-style: italic;
}

/* ============================================
   الأسئلة الشائعة
   ============================================ */

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.faq-item {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    animation: fadeInUp 0.5s ease both;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }

.faq-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.faq-item summary {
    cursor: pointer;
    padding: 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    line-height: 1.8;
    color: var(--text-light);
    animation: fadeIn 0.3s ease;
}

/* ============================================
   نموذج الطلب
   ============================================ */

.order-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    position: relative;
    overflow: hidden;
}

.order-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(99,102,241,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.order-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    max-width: 700px;
    margin: 0 auto;
    padding: clamp(1.5rem, 3vw, 2rem);
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(135deg, var(--primary-color), var(--accent-color));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    animation: scaleIn 0.8s ease;
}

.order-card h3 {
    margin-top: 0;
    text-align: center;
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.order-card > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.order-card form {
    display: grid;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    gap: 1.5rem;
}

.form-row.two-cols {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

label {
    font-weight: 700;
    color: var(--text-color);
    font-size: 1rem;
    display: block;
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 2px solid #e2e8f0;
    background: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: var(--text-color);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.order-summary {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-weight: 600;
    border: 2px solid rgba(99, 102, 241, 0.2);
}

.order-summary span {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
}

.order-summary strong {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 800;
}

.btn-submit {
    border: none;
    border-radius: 999px;
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-primary);
    position: relative;
    overflow: hidden;
    margin-top: 0.5rem;
}

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

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

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.form-status {
    text-align: center;
    font-weight: 600;
    padding: 1rem;
    border-radius: var(--radius-sm);
}

.form-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.form-status.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.free-shipping-notice {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
    padding: 1.2rem;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    animation: pulse 2s infinite;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* ============================================
   الفوتر
   ============================================ */

.footer {
    padding: 3rem clamp(1rem, 4vw, 3rem);
    background: linear-gradient(135deg, var(--dark-color), #1e293b);
    color: #f1f5f9;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.footer strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.footer p {
    color: #cbd5e1;
    margin: 0.5rem 0;
}

.footer a {
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--secondary-dark);
    text-decoration: underline;
}

/* ============================================
   الأزرار العائمة
   ============================================ */

.whatsapp-floating {
    position: fixed;
    left: 20px;
    bottom: 100px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 2000;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.whatsapp-floating:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}

.sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem clamp(1rem, 4vw, 2rem);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    z-index: 1500;
    border-top: 2px solid rgba(99, 102, 241, 0.2);
    animation: slideInUp 0.5s ease;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.sticky-cta span {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-color);
}

.sticky-cta button {
    flex: 1;
    max-width: 300px;
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-primary);
}

.sticky-cta button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

/* ============================================
   صفحة الشكر
   ============================================ */

.thankyou {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.thankyou main {
    flex: 1;
    padding: clamp(2rem, 4vw, 4rem) clamp(1rem, 4vw, 3rem);
    display: grid;
    place-items: center;
}

.thankyou-card {
    background: var(--card-bg);
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 700px;
    width: 100%;
    text-align: center;
    display: grid;
    gap: 1.5rem;
    animation: scaleIn 0.8s ease;
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(135deg, var(--primary-color), var(--accent-color));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.thankyou-card h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.8rem);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.thankyou-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
    text-align: right;
}

.alert-success {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    font-weight: 700;
    margin: 1rem 0;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    animation: pulse 2s infinite;
}

.alert-info {
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius);
    padding: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    border-right: 4px solid var(--primary-color);
}

/* ============================================
   التصميم المتجاوب
   ============================================ */

@media (max-width: 1024px) {
    .main-nav {
        gap: 0.75rem;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }

    .contact-text {
        display: none;
    }

    .whatsapp-btn .btn-text {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero__gallery {
        order: -1;
        position: relative;
        z-index: 1;
    }

    .hero__content {
        order: 2;
        position: relative;
        z-index: 1;
    }

    .hero__price-card {
        margin: 2rem auto 0;
        max-width: 100%;
        position: relative;
        z-index: 1;
    }

    .gallery__thumbs {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    header.site-header {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem;
    }

    .site-brand {
        flex: 1;
        min-width: 0;
    }

    .site-brand img {
        width: 50px;
        height: 50px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card-bg);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        border-top: 2px solid rgba(99, 102, 241, 0.1);
        z-index: 999;
    }

    .main-nav.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: right;
        padding: 0.75rem 1rem;
        border-radius: var(--radius-sm);
    }

    .header-actions {
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .contact-meta {
        display: none;
    }

    .contact-text {
        display: none;
    }

    .whatsapp-btn .btn-text {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        padding: 2rem 1rem;
        gap: 2rem;
    }

    .hero__content {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero__content h2 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 1rem;
    }

    .hero__content p {
        font-size: clamp(1rem, 3vw, 1.2rem);
        margin-bottom: 1rem;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .hero__price-card {
        margin: 0;
        padding: 1.5rem;
        max-width: 100%;
        position: relative;
        z-index: 1;
    }

    .price {
        justify-content: center;
    }

    .price__current {
        font-size: 2.5rem;
    }

    .price__old {
        font-size: 1.3rem;
    }

    .price__tagline {
        font-size: 0.95rem;
        text-align: center;
    }

    .stock-info,
    .shipping-info {
        font-size: 0.9rem;
        text-align: center;
    }

    .gallery {
        padding: 1rem;
        max-width: 350px;
    }

    .gallery__main {
        max-width: 300px;
        height: 300px;
        margin: 0 auto;
    }

    .gallery__main img,
    .gallery__main video,
    .gallery__main iframe {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .gallery__thumbs {
        justify-content: flex-start;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .gallery__thumbs button {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
    }

    .section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
        margin-bottom: 2rem;
    }

    .form-row.two-cols {
        grid-template-columns: 1fr;
    }

    .order-card {
        padding: 1.5rem;
    }

    .sticky-cta {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }

    .sticky-cta span {
        display: none;
    }

    .sticky-cta button {
        max-width: 100%;
        width: 100%;
    }

    .whatsapp-floating {
        left: 15px;
        bottom: 90px;
        width: 56px;
        height: 56px;
        font-size: 1.8rem;
    }

    .benefits-grid,
    .trust-grid,
    .steps,
    .testimonials {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .benefit-card,
    .trust-card,
    .step-card,
    .testimonial {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    header.site-header {
        padding: 0.75rem;
    }

    .site-brand img {
        width: 50px;
        height: 50px;
    }

    .site-brand h1 {
        font-size: 1.3rem;
    }

    .contact-meta {
        font-size: 0.85rem;
    }

    .hero {
        padding: 1.5rem 0.75rem;
        gap: 1.5rem;
    }

    .hero__content h2 {
        font-size: 1.6rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .hero__content p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .cta-button {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    .hero__price-card {
        padding: 1.25rem;
        margin-top: 1rem;
    }

    .price__current {
        font-size: 2rem;
    }

    .price__old {
        font-size: 1.1rem;
    }

    .price__tagline {
        font-size: 0.85rem;
    }

    .stock-info,
    .shipping-info {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }

    .gallery {
        padding: 0.75rem;
        max-width: 320px;
    }

    .gallery__main {
        max-width: 280px;
        height: 280px;
        margin: 0 auto;
    }

    .gallery__main img,
    .gallery__main video,
    .gallery__main iframe {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .gallery__thumbs {
        gap: 0.4rem;
    }

    .gallery__thumbs button {
        width: 60px;
        height: 60px;
    }

    .section {
        padding: 2.5rem 0.75rem;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .order-card {
        padding: 1.25rem;
    }

    .order-card h3 {
        font-size: 1.5rem;
    }

    input[type="text"],
    input[type="tel"],
    input[type="email"],
    input[type="number"],
    textarea,
    select {
        padding: 0.85rem;
        font-size: 16px !important;
    }

    .benefit-card,
    .trust-card,
    .step-card,
    .testimonial {
        padding: 1.25rem;
    }
}

/* ============================================
   تحسينات الأداء
   ============================================ */

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

/* ============================================
   Bottom Navigation (Mobile)
   ============================================ */

.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 0.25rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1500;
    padding: 0.5rem 0;
    border-top: 2px solid rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(10px);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 0;
    position: relative;
}

.bottom-nav-item .icon {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.bottom-nav-item .label {
    font-size: 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.bottom-nav-item:hover,
.bottom-nav-item:active {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.bottom-nav-item:hover .icon,
.bottom-nav-item:active .icon {
    transform: scale(1.2);
}

.bottom-nav-item.active {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.15);
}

.bottom-nav-item.active .icon {
    transform: scale(1.15);
}

.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    transform: translateX(50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 0 0 2px 2px;
}

@media (min-width: 769px) {
    .bottom-nav {
        display: none !important;
    }
}

/* Adjust body padding for bottom nav on mobile */
@media (max-width: 768px) {
    body {
        padding-bottom: 70px;
    }

    .sticky-cta {
        bottom: 70px;
    }

    .whatsapp-floating {
        bottom: 160px;
    }
}

/* ============================================
   تحسينات الطباعة
   ============================================ */

@media print {
    .whatsapp-floating,
    .sticky-cta,
    .bottom-nav {
        display: none;
    }
}
