/* ========================================
   الألوان الأساسية للموقع
======================================== */
:root {
    --primary-color: #fd9605;
    --secondary-color: #000096;
    --bg-color: #f8f9fa;
    --text-color: #333333;
    --white: #ffffff;
}

/* ========================================
   الخلفية العامة للموقع
======================================== */
body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text-color);
    direction: rtl;
    text-align: right;
}

/* ========================================
   خلفية Premium للترفيه والكوبونات
======================================== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
}



/* =======================================
   2. أيقونات QR Code خفيفة
======================================= */



/* =======================================
   Responsive
======================================= */
@media (max-width: 768px) {
    .animated-bg .confetti:nth-child(n+6),
    .animated-bg .qr-icon:nth-child(n+12),
    .animated-bg .shape:nth-child(n+16) {
        display: none;
    }
}
/* ========================================
   الأزرار (Buttons)
======================================== */
.custom-btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(253, 150, 5, 0.3);
}

.custom-btn-primary:hover {
    background: #e58504;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(253, 150, 5, 0.4);
}

.custom-btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 150, 0.3);
}

.custom-btn-secondary:hover {
    background: #000075;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 150, 0.4);
}

/* ========================================
   بطاقات (Cards)
======================================== */
.custom-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.custom-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* ========================================
   العناوين (Headings)
======================================== */
.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60%;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* ========================================
   تأثيرات الحركة (Animations)
======================================== */
.fade-in-up {
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Header & Navigation
======================================== */
.custom-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ========================================
   Footer
======================================== */
.custom-footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 50px 0 20px;
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 768px) {
    .section-title {
        font-size: 32px;
    }
    
    .custom-btn-primary,
    .custom-btn-secondary {
        padding: 12px 30px;
        font-size: 16px;
    }
}


/* ==========================================
   PERFORMANCE & SMOOTHNESS OPTIMIZATION
   العروض القيّمة - تحسين الأداء والنعومة
   ========================================== */

/* ==========================================
   1. SMOOTH SCROLLING - سكرول ناعم
   ========================================== */
html {
    scroll-behavior: smooth;
}

/* For browsers that support it */
@supports (scroll-behavior: smooth) {
    html {
        scroll-behavior: smooth;
    }
}

/* Smooth scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #fd9605, #000096);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff8c00, #4169e1);
}

/* ==========================================
   2. GPU ACCELERATION - تسريع الرسوميات
   ========================================== */

/* Force GPU rendering for animated elements */
.vo-hero-wrapper,
.vo-about-wrapper,
.vo-faq-wrapper,
.vo-how-wrapper,
.vo-contact-page,
.vo-faq-page,
.vo-about-page {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
}

/* GPU accelerate all animated elements */
[class*="vo-"] {
    will-change: auto;
}

/* Specific elements that animate frequently */
.vo-hero-bg-shape,
.vo-about-bg-shape,
.vo-faq-bg-shape,
.vo-how-bg-shape,
.vo-hero-confetti,
.vo-floating-icon,
.vo-hero-image,
.vo-hero-deco-circle {
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* ==========================================
   3. OPTIMIZED TRANSITIONS - انتقالات محسّنة
   ========================================== */

/* Use transform and opacity only (GPU friendly) */
* {
    transition-property: transform, opacity, background-color, border-color, color;
}

/* Smooth transitions for interactive elements */
a, button, input, select, textarea,
.vo-faq-item,
.vo-quick-card,
.vo-value-card,
.vo-goal-card,
.vo-feature-item-inline,
.vo-vm-card,
.vo-step-item,
.vo-how-feature-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   4. REDUCED MOTION - للأجهزة الضعيفة
   ========================================== */

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .vo-hero-confetti,
    .vo-hero-bg-shape,
    .vo-about-bg-shape,
    .vo-faq-bg-shape,
    .vo-floating-icon {
        animation: none !important;
    }
}

/* ==========================================
   5. OPTIMIZED ANIMATIONS - أنيميشن خفيفة
   ========================================== */

/* Slower, smoother background animations */
@keyframes float-optimized {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(20px, -20px, 0) rotate(180deg);
    }
}

/* Replace heavy animations with optimized ones */
.vo-hero-bg-shape,
.vo-about-bg-shape,
.vo-faq-bg-shape,
.vo-how-bg-shape {
    animation: float-optimized 30s ease-in-out infinite !important;
    opacity: 0.03 !important;
}

/* Lighter confetti animation */
@keyframes fall-optimized {
    0% {
        transform: translate3d(0, -100%, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translate3d(20px, 100vh, 0) rotate(360deg);
        opacity: 0;
    }
}

.vo-hero-confetti {
    animation: fall-optimized 15s linear infinite !important;
    opacity: 0.4 !important;
}

/* Smoother float for images */
@keyframes float-image-optimized {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -15px, 0);
    }
}

.vo-hero-image {
    animation: float-image-optimized 5s ease-in-out infinite !important;
}

/* ==========================================
   6. REMOVE HEAVY EFFECTS - إزالة التأثيرات الثقيلة
   ========================================== */

/* Lighter shadows */
.vo-hero-image,
.vo-about-image,
.vo-story-image img,
.vo-quick-card,
.vo-value-card,
.vo-vm-card,
.vo-faq-item {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Remove or lighten backdrop-filter on mobile */
@media (max-width: 992px) {
    .vo-page-hero-badge,
    .vo-contact-hero-badge,
    .vo-faq-hero-badge,
    .vo-vm-icon,
    .vo-working-hours {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

/* ==========================================
   7. FONT OPTIMIZATION - تحسين الخطوط
   ========================================== */

/* Optimize font rendering */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   8. IMAGE OPTIMIZATION - تحسين الصور
   ========================================== */

img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Lazy load images hint */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
    opacity: 1;
}

/* ==========================================
   9. HOVER OPTIMIZATION - تحسين الـ Hover
   ========================================== */

/* Only animate transform, not box-shadow on hover */
.vo-quick-card:hover,
.vo-value-card:hover,
.vo-faq-item:hover,
.vo-goal-card:hover,
.vo-feature-item-inline:hover {
    transform: translateY(-8px) translateZ(0);
}

/* Disable hover effects on touch devices */
@media (hover: none) {
    .vo-quick-card:hover,
    .vo-value-card:hover,
    .vo-faq-item:hover,
    .vo-goal-card:hover,
    .vo-feature-item-inline:hover,
    .vo-step-item:hover .vo-step-number,
    .vo-step-item:hover .vo-step-icon-box {
        transform: none !important;
    }
}

/* ==========================================
   10. REDUCE PAINT AREAS - تقليل إعادة الرسم
   ========================================== */

/* Contain paint to specific areas */
.vo-faq-group,
.vo-about-content,
.vo-story-container,
.vo-values-grid,
.vo-vm-grid,
.vo-goals-grid,
.vo-stats-grid,
.vo-how-steps,
.vo-how-features {
    contain: layout style paint;
}

/* ==========================================
   11. SMOOTH FAQ ACCORDION
   ========================================== */

.vo-faq-answer {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.vo-faq-toggle {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ==========================================
   PRODUCT CATALOG - CLEAN & COMPACT
   ========================================== */

/* Hide Unnecessary */
.woocommerce ul.products li.product .ast-woo-product-category,
.woocommerce ul.products li.product .review-rating,
.woocommerce ul.products li.product .star-rating,
.woocommerce ul.products li.product .ast-on-card-button {
    display: none !important;
}

/* Hide Dollar Sign from ::before */
.woocommerce ul.products li.product .price::before,
ul.products li.product .price::before {
    content: '' !important;
    display: none !important;
}

/* Grid */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Card - Compact Design */
.woocommerce ul.products li.product {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: white !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
}

/* Image Container - Auto Height, No Max */
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap {
    position: relative !important;
    margin: 0 !important;
    padding: 1rem !important;
    background: #fafbfc !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 180px !important;
}

.woocommerce ul.products li.product img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    transition: transform 0.3s ease !important;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.05) !important;
}

/* Content Area - Compact */
.woocommerce ul.products li.product .astra-shop-summary-wrap {
    padding: 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
}

/* Title - Smaller */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #000096 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    min-height: 2.8em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.woocommerce ul.products li.product .ast-loop-product__link {
    text-decoration: none !important;
}

/* Price - Smaller with Riyal Symbol */
.woocommerce ul.products li.product .price {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    color: #fd9605 !important;
    margin: 0 !important;
    padding: 0.5rem 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Add Riyal Symbol After Price */
.woocommerce ul.products li.product .price::after {
    content: '' !important;
    display: inline-block !important;
    width: 0.6em !important;
    height: 0.6em !important;
    background-image: url('https://www.sama.gov.sa/ar-sa/Currency/Documents/Saudi_Riyal_Symbol-2.svg') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    margin-right: 0.3em !important;
}

.woocommerce ul.products li.product .price del {
    font-size: 1rem !important;
    color: #999 !important;
    margin-left: 0.5rem !important;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none !important;
}

/* Hide ALL Currency Symbols */
.woocommerce ul.products li.product .price .woocommerce-Price-currencySymbol,
.woocommerce ul.products li.product .price img,
.woocommerce ul.products li.product .price bdi::after {
    display: none !important;
}

/* Buttons - Smaller & Compact */
.woocommerce ul.products li.product .button {
    width: 100% !important;
    padding: 0.75rem !important;
    margin: 0 !important;
    background: linear-gradient(135deg, #fd9605, #ff8c00) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
}

.woocommerce ul.products li.product .button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(253, 150, 5, 0.35) !important;
}

/* Buy Now Button - Smaller */
.vo-buy-now-btn-loop {
    width: 100% !important;
    padding: 0.75rem !important;
    margin-top: 0.5rem !important;
    background: linear-gradient(135deg, #000096, #4169e1) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    display: block !important;
    text-decoration: none !important;
}

.vo-buy-now-btn-loop:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 150, 0.35) !important;
    color: white !important;
}

/* Responsive */
@media (max-width: 992px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .woocommerce ul.products {
        gap: 1rem !important;
    }
    
    .woocommerce ul.products li.product .astra-shop-thumbnail-wrap {
        min-height: 150px !important;
        padding: 0.75rem !important;
    }
    
    .woocommerce ul.products li.product .astra-shop-summary-wrap {
        padding: 0.75rem !important;
    }
    
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.9rem !important;
    }
    
    .woocommerce ul.products li.product .price {
        font-size: 1.2rem !important;
    }
    
    .woocommerce ul.products li.product .button,
    .vo-buy-now-btn-loop {
        padding: 0.65rem !important;
        font-size: 0.85rem !important;
    }
}