/* Advanced Store Customization CSS */

/* Hero Section Styles */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0; /* تم تغييرها من 500px إلى 0 للسماح بارتفاعات صغيرة */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    overflow: hidden;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-section .content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section .subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-section .search-box {
    margin-bottom: 2rem;
}

.hero-section .search-box input {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-section .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-section .btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* Categories Grid Styles */
.categories-grid {
    display: grid;
    gap: 2rem;
    margin: 3rem 0;
}

.category-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Advanced Header Customization */
.store-navbar {
    transition: all 0.3s ease;
}

/* Header Opacity Control */
.store-navbar[data-opacity="0.1"] { background-color: rgba(255, 255, 255, 0.1) !important; }
.store-navbar[data-opacity="0.2"] { background-color: rgba(255, 255, 255, 0.2) !important; }
.store-navbar[data-opacity="0.3"] { background-color: rgba(255, 255, 255, 0.3) !important; }
.store-navbar[data-opacity="0.4"] { background-color: rgba(255, 255, 255, 0.4) !important; }
.store-navbar[data-opacity="0.5"] { background-color: rgba(255, 255, 255, 0.5) !important; }
.store-navbar[data-opacity="0.6"] { background-color: rgba(255, 255, 255, 0.6) !important; }
.store-navbar[data-opacity="0.7"] { background-color: rgba(255, 255, 255, 0.7) !important; }
.store-navbar[data-opacity="0.8"] { background-color: rgba(255, 255, 255, 0.8) !important; }
.store-navbar[data-opacity="0.9"] { background-color: rgba(255, 255, 255, 0.9) !important; }
.store-navbar[data-opacity="1.0"] { background-color: rgba(255, 255, 255, 1.0) !important; }

/* Header Border Radius Control */
.store-navbar[data-border-radius="0"] { border-radius: 0 !important; }
.store-navbar[data-border-radius="2"] { border-radius: 2px !important; }
.store-navbar[data-border-radius="4"] { border-radius: 4px !important; }
.store-navbar[data-border-radius="6"] { border-radius: 6px !important; }
.store-navbar[data-border-radius="8"] { border-radius: 8px !important; }
.store-navbar[data-border-radius="10"] { border-radius: 10px !important; }
.store-navbar[data-border-radius="12"] { border-radius: 12px !important; }
.store-navbar[data-border-radius="14"] { border-radius: 14px !important; }
.store-navbar[data-border-radius="16"] { border-radius: 16px !important; }
.store-navbar[data-border-radius="18"] { border-radius: 18px !important; }
.store-navbar[data-border-radius="20"] { border-radius: 20px !important; }
.store-navbar[data-border-radius="22"] { border-radius: 22px !important; }
.store-navbar[data-border-radius="24"] { border-radius: 24px !important; }
.store-navbar[data-border-radius="26"] { border-radius: 26px !important; }
.store-navbar[data-border-radius="28"] { border-radius: 28px !important; }
.store-navbar[data-border-radius="30"] { border-radius: 30px !important; }

/* Header Shadow Control */
.store-navbar[data-shadow="none"] { box-shadow: none !important; }
.store-navbar[data-shadow="light"] { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important; }
.store-navbar[data-shadow="medium"] { box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important; }
.store-navbar[data-shadow="strong"] { box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important; }

/* Header Blur Effect Control */
.store-navbar[data-blur="none"] { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.store-navbar[data-blur="light"] { backdrop-filter: blur(5px) !important; -webkit-backdrop-filter: blur(5px) !important; }
.store-navbar[data-blur="medium"] { backdrop-filter: blur(10px) !important; -webkit-backdrop-filter: blur(10px) !important; }
.store-navbar[data-blur="strong"] { backdrop-filter: blur(20px) !important; -webkit-backdrop-filter: blur(20px) !important; }

/* Header Glass Effect */
.store-navbar[data-glass="true"] {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

/* Advanced Footer Customization */
.store-footer {
    transition: all 0.3s ease;
}

/* Footer Opacity Control */
.store-footer[data-opacity="0.1"] { background-color: rgba(245, 245, 247, 0.1) !important; }
.store-footer[data-opacity="0.2"] { background-color: rgba(245, 245, 247, 0.2) !important; }
.store-footer[data-opacity="0.3"] { background-color: rgba(245, 245, 247, 0.3) !important; }
.store-footer[data-opacity="0.4"] { background-color: rgba(245, 245, 247, 0.4) !important; }
.store-footer[data-opacity="0.5"] { background-color: rgba(245, 245, 247, 0.5) !important; }
.store-footer[data-opacity="0.6"] { background-color: rgba(245, 245, 247, 0.6) !important; }
.store-footer[data-opacity="0.7"] { background-color: rgba(245, 245, 247, 0.7) !important; }
.store-footer[data-opacity="0.8"] { background-color: rgba(245, 245, 247, 0.8) !important; }
.store-footer[data-opacity="0.9"] { background-color: rgba(245, 245, 247, 0.9) !important; }
.store-footer[data-opacity="1.0"] { background-color: rgba(245, 245, 247, 1.0) !important; }

/* Footer Border Radius Control */
.store-footer[data-border-radius="0"] { border-radius: 0 !important; }
.store-footer[data-border-radius="2"] { border-radius: 2px !important; }
.store-footer[data-border-radius="4"] { border-radius: 4px !important; }
.store-footer[data-border-radius="6"] { border-radius: 6px !important; }
.store-footer[data-border-radius="8"] { border-radius: 8px !important; }
.store-footer[data-border-radius="10"] { border-radius: 10px !important; }
.store-footer[data-border-radius="12"] { border-radius: 12px !important; }
.store-footer[data-border-radius="14"] { border-radius: 14px !important; }
.store-footer[data-border-radius="16"] { border-radius: 16px !important; }
.store-footer[data-border-radius="18"] { border-radius: 18px !important; }
.store-footer[data-border-radius="20"] { border-radius: 20px !important; }
.store-footer[data-border-radius="22"] { border-radius: 22px !important; }
.store-footer[data-border-radius="24"] { border-radius: 24px !important; }
.store-footer[data-border-radius="26"] { border-radius: 26px !important; }
.store-footer[data-border-radius="28"] { border-radius: 28px !important; }
.store-footer[data-border-radius="30"] { border-radius: 30px !important; }

/* Footer Shadow Control */
.store-footer[data-shadow="none"] { box-shadow: none !important; }
.store-footer[data-shadow="light"] { box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1) !important; }
.store-footer[data-shadow="medium"] { box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.15) !important; }
.store-footer[data-shadow="strong"] { box-shadow: 0 -8px 16px rgba(0, 0, 0, 0.2) !important; }

/* Footer Glass Effect */
.store-footer[data-glass="true"] {
    background: rgba(245, 245, 247, 0.25) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

/* Footer Separator Styles */
.store-footer[data-separator="line"] {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.store-footer[data-separator="dotted"] {
    border-top: 2px dotted rgba(0, 0, 0, 0.1);
}

.store-footer[data-separator="gradient"] {
    border-top: 2px solid;
    border-image: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.2), transparent) 1;
}

/* Page Transitions */
.page-transition-fade {
    transition: opacity 0.3s ease-in-out;
}

.page-transition-slide {
    transition: transform 0.3s ease-in-out;
}

.page-transition-zoom {
    transition: transform 0.3s ease-in-out;
}

/* Scroll Behavior */
html[data-scroll="smooth"] {
    scroll-behavior: smooth;
}

html[data-scroll="instant"] {
    scroll-behavior: auto;
}

/* Animation Controls */
.animate-disabled * {
    animation: none !important;
    transition: none !important;
}

/* Performance Optimizations */
.lazy-loading img {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy-loading img.loaded {
    opacity: 1;
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .store-navbar[data-border-radius] {
        border-radius: 8px !important;
    }
    
    .store-footer[data-border-radius] {
        border-radius: 6px !important;
    }
}

@media (max-width: 576px) {
    .store-navbar[data-border-radius] {
        border-radius: 4px !important;
    }
    
    .store-footer[data-border-radius] {
        border-radius: 4px !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .store-navbar[data-glass="true"] {
        background: rgba(0, 0, 0, 0.25) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
    }
    
    .store-footer[data-glass="true"] {
        background: rgba(0, 0, 0, 0.25) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .store-navbar[data-opacity] {
        background-color: rgba(255, 255, 255, 0.95) !important;
    }
    
    .store-footer[data-opacity] {
        background-color: rgba(245, 245, 247, 0.95) !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .store-navbar,
    .store-footer,
    .page-transition-fade,
    .page-transition-slide,
    .page-transition-zoom {
        transition: none !important;
        animation: none !important;
    }
}

/* Advanced Footer Effects */
.footer-glass-effect {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

.footer-animation-fade {
    animation: footerFadeIn 0.6s ease-in-out !important;
}

.footer-animation-slide {
    animation: footerSlideUp 0.8s ease-out !important;
}

.footer-animation-bounce {
    animation: footerBounce 1s ease-in-out !important;
}

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

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

@keyframes footerBounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-10px);
    }
    70% {
        transform: translateY(-5px);
    }
    90% {
        transform: translateY(-2px);
    }
}

/* Footer Link Styles */
.footer-links-underline a {
    text-decoration: underline !important;
}

.footer-links-bold a {
    font-weight: bold !important;
}

.footer-links-colored a {
    color: #007AFF !important;
}

.footer-links-hover a:hover {
    transform: translateX(5px) !important;
    transition: transform 0.3s ease !important;
}

/* Footer Gradient Backgrounds */
.footer-gradient-blue {
    background: linear-gradient(135deg, #123524 0%, #3E7B27 100%) !important;
}

.footer-gradient-green {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
}

.footer-gradient-purple {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
}

.footer-gradient-orange {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%) !important;
}

/* Footer Hover Effects */
.store-footer:hover {
    transform: translateY(-2px) !important;
    transition: transform 0.3s ease !important;
}

.store-footer .social-links a:hover {
    transform: scale(1.1) translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Footer Responsive Enhancements */
@media (max-width: 768px) {
    .store-footer[data-animation] {
        animation-duration: 0.5s !important;
    }
    
    .store-footer:hover {
        transform: none !important;
    }
}

/* Footer Loading States */
.footer-loading {
    opacity: 0.7 !important;
    pointer-events: none !important;
}

.footer-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: #007AFF;
    border-radius: 50%;
    animation: footerSpin 1s linear infinite;
}

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

