/*
Theme Name: LuxEye Child
Theme URI: https://luxeye.ma
Description: قالب فرعي فاخر لمتجر LuxEye للنظارات الفاخرة - متوافق مع WooCommerce
Author: LuxEye Team
Author URI: https://luxeye.ma
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: luxeye-child
*/

/* ===================================
   Variables & Root Styles
   =================================== */
:root {
    /* Couleurs principales - Burgundy & Gold Luxury */
    --royal-purple: #5c1f33;
    --royal-purple-dark: #3d1422;
    --royal-purple-light: #7d2a47;
    
    --sapphire: #5c1f33;
    --midnight-blue: #4a1a29;
    --royal-blue: #6d2438;
    
    --burgundy: #5c1f33;
    --wine-red: #7d2a47;
    --deep-burgundy: #3d1422;
    
    --bordeaux: #5c1f33;
    --bordeaux-fonce: #3d1422;
    --bordeaux-clair: #7d2a47;
    
    --creme: #f5f0e8;
    --creme-fonce: #e3ddd1;
    
    --or: #d4a574;
    --or-rose: #c89865;
    
    --noir: #0a0504;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background: #f5f0e8;
    color: #3d1422;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* ===================================
   Background Effects
   =================================== */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(212, 165, 116, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(92, 31, 51, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 50% 80%, rgba(212, 165, 116, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(125, 42, 71, 0.06) 0%, transparent 60%);
    pointer-events: none;
    animation: glowMove 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes glowMove {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, 5%); }
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* ===================================
   Header & Navigation Overrides
   =================================== */
.site-header {
    background: rgba(92, 31, 51, 0.98) !important;
    backdrop-filter: blur(20px);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent, var(--or) 20%, var(--bordeaux) 50%, var(--or) 80%, transparent) 1;
    box-shadow: 0 5px 40px rgba(92, 31, 51, 0.3), 0 2px 15px rgba(212, 165, 116, 0.2);
    position: fixed !important;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.site-branding .site-title a,
.site-branding .custom-logo-link {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    background: linear-gradient(135deg, var(--creme) 0%, var(--or) 25%, var(--creme) 50%, var(--or) 75%, var(--creme) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    animation: shimmerLogo 4s linear infinite;
    filter: drop-shadow(0 1px 4px rgba(212, 165, 116, 0.4)) 
            drop-shadow(0 0 8px rgba(245, 240, 232, 0.3));
}

@keyframes shimmerLogo {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.main-navigation a {
    color: var(--creme) !important;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--bordeaux), var(--or), var(--wine-red));
    transition: all 0.4s;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(128, 0, 32, 0.7);
}

.main-navigation a:hover {
    color: var(--or) !important;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.main-navigation a:hover::after {
    width: 100%;
}

/* ===================================
   WooCommerce Product Cards
   =================================== */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 240, 232, 0.9));
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s;
    position: relative;
    border: 2px solid rgba(92, 31, 51, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 25px rgba(92, 31, 51, 0.15);
}

.woocommerce ul.products li.product::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.7s;
}

.woocommerce ul.products li.product:hover::before {
    left: 100%;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 70px rgba(92, 31, 51, 0.3), 0 10px 30px rgba(212, 165, 116, 0.4);
    border-color: #d4a574;
}

.woocommerce ul.products li.product img {
    border-radius: 20px 20px 0 0;
    transition: transform 0.5s;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.1);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #5c1f33 0%, #7d2a47 50%, #5c1f33 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: productNameShimmer 7s linear infinite;
    margin: 1rem 0 0.5rem;
}

@keyframes productNameShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.woocommerce ul.products li.product .price {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #5c1f33, #d4a574, #5c1f33);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(92, 31, 51, 0.2));
}

/* ===================================
   Buttons with Golden Shine
   =================================== */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt {
    background: linear-gradient(135deg, var(--burgundy), var(--wine-red), var(--burgundy)) !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 1rem 2rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 5px 20px rgba(92, 31, 51, 0.5),
                inset 0 1px 0 rgba(212, 165, 116, 0.3),
                0 0 25px rgba(212, 165, 116, 0.15),
                0 0 50px rgba(212, 165, 116, 0.08) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.woocommerce a.button::after,
.woocommerce button.button::after,
.woocommerce input.button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 20%,
        rgba(212, 165, 116, 0.25) 35%,
        rgba(212, 165, 116, 0.7) 50%,
        rgba(212, 165, 116, 0.25) 65%,
        transparent 80%
    );
    filter: blur(8px);
    animation: goldenShine 6s linear infinite;
}

@keyframes goldenShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: linear-gradient(135deg, var(--deep-burgundy), var(--burgundy), var(--deep-burgundy)) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(92, 31, 51, 0.8), 
                0 5px 15px rgba(212, 165, 116, 0.3),
                inset 0 1px 0 rgba(212, 165, 116, 0.5) !important;
}

/* ===================================
   Product Badges
   =================================== */
.woocommerce span.onsale {
    background: linear-gradient(135deg, var(--burgundy), var(--wine-red), var(--burgundy)) !important;
    color: white !important;
    border-radius: 20px !important;
    padding: 0.5rem 1rem !important;
    font-weight: 600;
    letter-spacing: 0.1em;
    box-shadow: 0 5px 20px rgba(92, 31, 51, 0.8), 
                0 2px 10px rgba(92, 31, 51, 0.5),
                inset 0 1px 0 rgba(212, 165, 116, 0.4);
    position: relative;
    overflow: hidden;
}

.woocommerce span.onsale::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        60deg,
        transparent 15%,
        rgba(212, 165, 116, 0.3) 30%,
        rgba(212, 165, 116, 0.8) 50%,
        rgba(212, 165, 116, 0.3) 70%,
        transparent 85%
    );
    filter: blur(6px);
    animation: goldenShine 7s linear infinite;
}

/* ===================================
   Page Titles with Shimmer
   =================================== */
.entry-title,
.woocommerce-products-header__title,
.page-title {
    font-family: 'Playfair Display', serif !important;
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #5c1f33 0%, #d4a574 30%, #5c1f33 50%, #d4a574 70%, #5c1f33 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(92, 31, 51, 0.2));
    animation: sectionTitleShimmer 6s linear infinite;
    margin-bottom: 2rem !important;
}

@keyframes sectionTitleShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===================================
   Footer
   =================================== */
.site-footer {
    background: var(--burgundy) !important;
    padding: 4rem 5% 2rem !important;
    border-top: 2px solid #d4a574;
    box-shadow: 0 -5px 30px rgba(92, 31, 51, 0.2);
    color: var(--creme) !important;
}

.site-footer a {
    color: var(--creme) !important;
    transition: color 0.3s;
}

.site-footer a:hover {
    color: var(--or) !important;
}

.site-footer .widget-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #d4a574 0%, #f5f0e8 50%, #d4a574 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(212, 165, 116, 0.3));
    animation: footerTitleShimmer 7s linear infinite;
}

@keyframes footerTitleShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===================================
   Cart & Checkout
   =================================== */
.woocommerce-cart-form,
.woocommerce-checkout {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 240, 232, 0.9));
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(92, 31, 51, 0.15);
    border: 2px solid rgba(92, 31, 51, 0.2);
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 768px) {
    .site-branding .site-title a {
        font-size: 1.5rem;
        letter-spacing: 0.2em;
    }
    
    .woocommerce ul.products li.product {
        margin-bottom: 2rem;
    }
}

/* ===================================
   Custom Animations
   =================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Montserrat:wght@300;400;500;600;700&display=swap');
