/* ========================================
   LUMÉA - Minimalist International Fashion
   Clean Design with Modern Typography
   ======================================== */

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

/* ===== Root Variables - Minimalist International Brand Style ===== */
:root {
    /* ========= PRIMARY COLORS ========= */
    --primary-color: #1A1A1A;        /* Main black */
    --background: #FFFFFF;            /* Pure white */
    --secondary-bg: #F8F8F8;         /* Light gray BG */
    
    /* ========= ACCENT COLORS ========= */
    --accent-color: #8B8B8B;         /* Medium gray */
    --accent-dark: #5A5A5A;          /* Dark gray */
    --accent-light: #E5E5E5;         /* Very light gray */
    
    /* ========= NEUTRAL SYSTEM ========= */
    --border-color: #E5E5E5;         /* Borders */
    --divider-color: #F0F0F0;        /* Subtle dividers */
    --light-gray: #FAFAFA;           /* Subtle backgrounds */
    --dark-color: #000000;           /* Pure black */
    --light-color: #FFFFFF;          /* Pure white */
    
    /* ========= TEXT HIERARCHY ========= */
    --text-primary: #1A1A1A;         /* Main text */
    --text-secondary: #666666;       /* Secondary text */
    --text-light: #999999;           /* Light text */
    --text-white: #FFFFFF;           /* On dark backgrounds */
    
    /* ========= STATES ========= */
    --hover-bg: #F5F5F5;             /* Hover background */
    --active-bg: #EEEEEE;            /* Active state */
    --disabled-text: #CCCCCC;        /* Disabled text */
    
    /* ========= FUNCTIONAL ========= */
    --success-color: #2E7D32;        /* Success green */
    --error-color: #C62828;          /* Error red */
    --warning-color: #F57C00;        /* Warning orange */
    --info-color: #0277BD;           /* Info blue */
    
    /* ========= SHADOWS ========= */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    
    /* ========= TRANSITIONS ========= */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.5s ease;
    
    /* ========= BORDER RADIUS ========= */
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --border-radius-lg: 12px;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl;
    font-weight: 400;
}

body.en {
    direction: ltr;
    font-family: 'Jost', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== Smooth Scroll ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #601b1d;
}

h1 { 
    font-size: 2.5rem;
    font-weight: 700;
}

h2 { 
    font-size: 2rem;
    font-weight: 600;
}

h3 { 
    font-size: 1.75rem;
}

h4 { 
    font-size: 1.5rem;
}

h5 { 
    font-size: 1.25rem;
}

h6 { 
    font-size: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

/* ===== Buttons ===== */
.btn {
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover::before {
    width: 400px;
    height: 400px;
}

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

.btn:hover::after {
    left: 100%;
}

.btn-primary {
    background: #e2d9d4;
    color: #601b1d;
    box-shadow: var(--shadow-sm);
    font-weight: 500;
    border: none;
    transition: var(--transition);
}

    .btn-primary:hover {
        background: #c4b5ad;
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    position: relative;
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

.btn-accent {
    background: #601b1d;
    color: #e2d9d4;
    font-weight: 500;
}

    .btn-accent:hover {
        background: #e2d9d4;
        transform: translateY(-2px);
    }

.btn-accent::before {
    background: rgba(255, 255, 255, 0.3);
}

.btn-accent:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(139, 139, 139, 0.4);
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* ===== Cards with 3D Effect ===== */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: var(--shadow-lg);
}

.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-3d:hover {
    transform: translateY(-10px) rotateY(2deg) rotateX(2deg);
}

/* ===== Header / Navigation ===== */
.main-header {
    background: #e2d9d4;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

    .main-header.scrolled {
        box-shadow: var(--shadow-md);
        background: #e2d9d4;
    }

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    transition: var(--transition);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.navbar-brand:hover {
    transform: translateX(-50%) scale(1.05);
}

.nav-link {
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    font-weight: 500;
}

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

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

.nav-link:hover {
    background: rgba(232, 220, 196, 0.2);
    color: var(--accent-color);
}

/* ===== Search Bar ===== */
.search-bar {
    position: relative;
    max-width: 400px;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    transition: var(--transition);
    background: white;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(139, 139, 139, 0.1);
}

.search-bar button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.search-bar button:hover {
    color: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

/* ===== Icons with 3D Effect ===== */
.icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f3f3;
    transition: var(--transition);
    border: unset;
}

.icon-btn:hover {
    background: var(--hover-bg);
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-md);
}

.icon-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    min-width: 20px;
    text-align: center;
}

/* ===== Product Cards ===== */
.product-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    background: white;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 139, 139, 0.3), transparent);
    transition: left 0.8s ease;
    z-index: 1;
}

.product-card:hover::before {
    left: 100%;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 125%; /* 4:5 Aspect Ratio */
    background: linear-gradient(135deg, #F5F3EE 0%, #E5E5E5 100%);
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(1);
}

.product-card:hover .product-image {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(26, 37, 47, 0) 0%, rgba(26, 37, 47, 0.9) 100%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 2rem;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay .btn {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-overlay .btn {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.1s;
}

.product-badge {
    position: absolute;
    top: 1rem;
    margin: 0 1rem;
    float: inline-end;
    background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
}

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

.wishlist-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 42px;
    height: 42px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wishlist-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 6px 20px rgba(139, 139, 139, 0.4);
}

.wishlist-btn.active {
    background: #E74C3C;
    color: white;
    animation: heartBeat 0.8s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.25); }
}

.product-info {
    padding: 1.5rem;
    position: relative;
    background: white;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #601b1d;
    margin-bottom: 0rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 1.6rem;
    transition: color 0.3s ease;
}

.product-card:hover .product-title {
    color: var(--accent-color);
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #601b1d;
}

.product-price-old {
    font-size: 1rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-right: 0.5rem;
    opacity: 0.7;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    margin-top: 0rem;
}

.product-rating i {
    color: #F39C12;
    transition: transform 0.3s ease;
}

.product-card:hover .product-rating i {
    transform: scale(1.1);
}

.product-rating i:nth-child(1) { transition-delay: 0s; }
.product-rating i:nth-child(2) { transition-delay: 0.05s; }
.product-rating i:nth-child(3) { transition-delay: 0.1s; }
.product-rating i:nth-child(4) { transition-delay: 0.15s; }
.product-rating i:nth-child(5) { transition-delay: 0.2s; }

/* زر السلة الظاهر دائماً ✨ */
.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.add-to-cart-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background: #e2d9d4;
    color: #601b1d;

    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

    .add-to-cart-btn:hover {
        background: #c4b5ad;
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.add-to-cart-btn:active {
    transform: translateY(0) scale(0.98);
}

.view-details-btn {
    padding: 0.75rem 1rem;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-details-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Animation للمنتج يطير للسلة ✨ محسن! */
.flying-package {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-color) 0%, #8B8B8B 100%);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(139, 139, 139, 0.5);
}

.flying-package i {
    font-size: 3rem;
    color: white;
    animation: packageRotate 0.6s ease-in-out infinite;
}

@keyframes packageRotate {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-10deg) scale(1.1); }
    50% { transform: rotate(10deg) scale(1.2); }
    75% { transform: rotate(-10deg) scale(1.1); }
}

@keyframes flyToCart {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 1;
    }
    30% {
        transform: translate(calc(var(--tx) * 0.3), calc(var(--ty) * 0.3)) scale(1.2) rotate(180deg);
        opacity: 1;
    }
    70% {
        transform: translate(calc(var(--tx) * 0.8), calc(var(--ty) * 0.8)) scale(0.8) rotate(360deg);
        opacity: 0.9;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0.3) rotate(540deg);
        opacity: 0;
    }
}

.fly-animation {
    animation: flyToCart 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Cart Shake Animation - أقوى! */
.cart-shake {
    animation: cartShake 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes cartShake {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px) rotate(-5deg) scale(1.1);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(10px) rotate(5deg) scale(1.15);
    }
}

/* Cart Badge Pop Animation */
.cart-badge-pop {
    animation: cartBadgePop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes cartBadgePop {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.8) rotate(10deg);
    }
    50% {
        transform: scale(1.6) rotate(-10deg);
    }
    75% {
        transform: scale(1.7) rotate(5deg);
    }
    100% {
        transform: scale(1);
    }
}

/* Success Pulse Animation للسلة */
.cart-success-pulse {
    animation: successPulse 0.5s ease;
}

@keyframes successPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(139, 139, 139, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(139, 139, 139, 0);
    }
}

/* Particle Effect */
.particle {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    animation: particleExplosion 0.8s ease-out forwards;
}

@keyframes particleExplosion {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--px), var(--py)) scale(0);
        opacity: 0;
    }
}

/* ===== Hero Section ===== */
/* ===== Hero Section with Slideshow ===== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Hero Slideshow */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero Overlay for Banner Text */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
}

.hero-overlay .hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-overlay .hero-content p {
    font-size: 1.3rem;
    color: white;
    opacity: 0.95;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* Dark overlay on images */
.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%);*/
}

/* Animated Background Shapes */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 139, 139, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
    opacity: 0.3;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 139, 139, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -400px;
    right: -400px;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.2); opacity: 0.25; }
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    opacity: 0.1;
    animation: float 15s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
    top: 20%;
    left: 10%;
    width: 100px;
    height: 100px;
    background: var(--accent-color);
    border-radius: 50%;
    animation-delay: 0s;
}

.floating-shape:nth-child(2) {
    top: 60%;
    right: 15%;
    width: 150px;
    height: 150px;
    background: var(--accent-light);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: 2s;
}

.floating-shape:nth-child(3) {
    bottom: 20%;
    left: 20%;
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 50%;
    animation-delay: 4s;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #FFFFFF 0%, #E5E5E5 50%, #1A1A1A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    animation: shimmer 3s ease-in-out infinite;
    letter-spacing: -1px;
}

@keyframes shimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 0.5px;
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s backwards;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 3;
}

.scroll-indicator i {
    font-size: 2rem;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* ===== Floating Animation ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* ===== Parallax Effect ===== */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ===== Footer ===== */
.main-footer {
    background: #e2d9d4;
    color: #333333;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-title {
    color: #601b1d;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-link {
    color: #555555;
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: #1A1A1A;
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: #333333;
}

.social-icon:hover {
    background: #1A1A1A;
    color: white;
    transform: translateY(-5px) scale(1.1);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== Loading Animation ===== */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-color);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Utility Classes ===== */
.text-accent { color: var(--accent-color); }
.bg-accent { background: var(--accent-color); }
.bg-light-gray { 
    background: linear-gradient(135deg, #F5F3EE 0%, #FAFAFA 100%);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }

/* Section Reveal Animation */
.section-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Decorative Elements */
.section-decoration {
    position: relative;
}

.section-decoration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    border-radius: 2px;
}

/* Categories Hover Effect */
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.category-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(139, 139, 139, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    border-radius: 50%;
    z-index: 1;
}

.category-card:hover::after {
    width: 600px;
    height: 600px;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* Features Section Animation */
.feature-card {
    transition: var(--transition);
    animation: fadeInUp 0.8s ease backwards;
}

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

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-card i {
    transition: all 0.4s ease;
}

.feature-card:hover i {
    transform: scale(1.2) rotate(5deg);
    color: #8B8B8B;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .hero-title { font-size: 3.5rem; }
}

@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.3rem; }
    
    .product-card:hover {
        transform: translateY(-8px);
    }
    
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 80vh;
        min-height: 600px;
    }
    
    .hero-title { 
        font-size: 2.5rem;
        letter-spacing: 0;
    }
    
    .hero-subtitle { font-size: 1.1rem; }
    
    .floating-shape {
        display: none;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .product-card:hover {
        transform: translateY(-5px);
    }
    
    .category-card:hover {
        transform: translateY(-5px);
    }
    
    .feature-card:hover {
        transform: translateY(-5px);
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .search-bar {
        max-width: 100%;
        margin: 10px 0;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-indicator i {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
    }
    
    .product-card {
        margin-bottom: 20px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
}

/* ===== Authentication Modal ===== */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 37, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-modal.show {
    display: flex;
    opacity: 1;
}

.auth-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.auth-modal-header {
    background: #e2d9d4;
    color: #601b1d;
    padding: 2rem;
    text-align: center;
    position: relative;
}

    .auth-modal-header h3 {
        margin: 0;
        font-size: 1.75rem;
        font-weight: 700;
        color: #601b1d;
    }

.auth-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: #601b1d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.auth-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.auth-modal-body {
    padding: 2rem;
}

.auth-form-group {
    margin-bottom: 1.5rem;
}

.auth-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.auth-form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    direction: ltr;
    text-align: left;
}

.auth-form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(139, 139, 139, 0.1);
}

.auth-form-group input::placeholder {
    color: #95A5A6;
}

.auth-btn {
    width: 100%;
    padding: 1rem;
    background: #e2d9d4;
    color: #601b1d;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

    .auth-btn:hover {
        background: #e2d9d4;
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--disabled-text);
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--accent-color);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.otp-inputs {
    direction: ltr;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 1.5rem 0;
}

.otp-input {
    width: 50px;
    height: 55px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
}

.otp-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(139, 139, 139, 0.1);
}

.otp-resend {
    text-align: center;
    margin-top: 1rem;
}

.otp-resend a {
    color: var(--accent-color);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.otp-resend a:hover {
    text-decoration: underline;
}

.alert {
    padding: 0.875rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideDown 0.3s ease;
}

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

.alert-success {
    background: #D5F4E6;
    color: #27AE60;
    border: 1px solid #27AE60;
}

.alert-error {
    background: #FADBD8;
    color: #E74C3C;
    border: 1px solid #E74C3C;
}

.alert i {
    font-size: 1.25rem;
}

/* Responsive Modal */
@media (max-width: 576px) {
    .auth-modal-content {
        max-width: 100%;
        margin: 10px;
        border-radius: 15px;
    }
    
    .auth-modal-header {
        padding: 1.5rem;
    }
    
    .auth-modal-header h3 {
        font-size: 1.5rem;
    }
    
    .auth-modal-body {
        padding: 1.5rem;
    }
    
    .otp-input {
        width: 45px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* ===== Linear Progress Loader ===== */
.linear-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(139, 139, 139, 0.1);
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.linear-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--accent-color) 0%, 
        #8B8B8B 50%, 
        var(--accent-color) 100%);
    background-size: 200% 100%;
    animation: progressAnimation 1.5s ease-in-out infinite;
    box-shadow: 0 2px 10px rgba(139, 139, 139, 0.5);
}

@keyframes progressAnimation {
    0% {
        width: 0%;
        background-position: 0% 0%;
    }
    50% {
        width: 70%;
        background-position: 100% 0%;
    }
    100% {
        width: 100%;
        background-position: 0% 0%;
    }
}

/* ===== Customer Reviews Section ===== */
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

    .testimonial-card::before {
        content: '"';
        position: absolute;
        top: -20px;
        left: 20px;
        font-size: 8rem;
        color: #e2d9d4;
        font-family: Georgia, serif;
        line-height: 1;
    }

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    box-shadow: 0 4px 12px rgba(139, 139, 139, 0.3);
}

.testimonial-info h5 {
    margin: 0;
    font-weight: 700;
    color: var(--dark-color);
}

.testimonial-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.testimonial-stars {
    color: #F39C12;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #D5F4E6;
    color: #27AE60;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* ===== Brands Section ===== */
.brands-section {
    background: var(--light-color);
    padding: 3rem 0;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
}

.brand-logo {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    height: 100px;
}

.brand-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.brand-logo img {
    max-width: 100%;
    max-height: 60px;
    filter: grayscale(1);
    opacity: 0.6;
    transition: var(--transition);
}

.brand-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* ===== Stats Section ===== */
.stats-section {
    background: #EEEEEE;
    padding: 5rem 0;
    color: var(--text-primary);
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #000000 0%, #3b3b3b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Counter Animation */
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-number.counting {
    animation: countUp 1s ease;
}

/* ===== Instagram Feed Section ===== */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.instagram-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    padding-top: 100%;
    cursor: pointer;
}

.instagram-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.instagram-item:hover img {
    transform: scale(1.1);
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 139, 139, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.instagram-overlay i {
    font-size: 2rem;
    color: white;
}

/* ===== Scroll to Top Button ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--dark-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.scroll-to-top i {
    font-size: 1.25rem;
}

/* ===== Product Details Page ===== */
.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--light-color);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.main-image-wrapper:hover .main-image {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    z-index: 2;
}

.wishlist-btn-large {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 2;
}

.wishlist-btn-large:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

.zoom-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
}

.zoom-btn:hover {
    background: white;
    transform: scale(1.1);
}

.thumbnails-wrapper {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.thumbnail-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
}

.thumbnail-image:hover {
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.thumbnail-image.active {
    border-color: var(--accent-color);
}

.product-details-info {
    position: sticky;
    top: 100px;
}

.product-name {
    font-size: 2rem;
    font-weight: 800;
    color: #601b1d;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-rating-large {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-rating-large .stars {
    color: #F39C12;
    font-size: 1.25rem;
}

.product-rating-large .rating-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
}

.product-rating-large .review-count {
    color: var(--text-secondary);
}

.product-price-section {
    padding: 1.5rem;
    background: #e2d9d4;
    border-radius: 15px;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 900;
    background: #601b1d;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.old-price {
    font-size: 1.5rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.product-description {
    line-height: 1.8;
    color: var(--text-color);
}

.attributes-section {
    padding: 0rem;
    background: var(--light-color);
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.attribute-group {
    margin-bottom: 1.5rem;
}

.attribute-label {
    display: block;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.selected-value {
    color: var(--accent-color);
    font-weight: 700;
    margin-left: 0.5rem;
}

.size-options,
.length-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.size-btn,
.length-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.size-btn:hover,
.length-btn:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.size-btn.active,
.length-btn.active {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: white;
}

.color-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.color-btn {
    width: 45px;
    height: 45px;
    border-radius: 20%;
    border: 3px solid transparent;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.color-btn i {
    display: none;
    color: white;
    font-size: 1.25rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.color-btn.active {
    border-color: var(--dark-color);
    transform: scale(1.15);
}

.color-btn.active i {
    display: block;
}

.color-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.color-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.color-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
}

.stock-status {
    padding: 1rem;
    background: #E8F5E9;
    border-left: 4px solid #27AE60;
    border-radius: 8px;
    font-weight: 600;
    color: #27AE60;
}

.action-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.qty-btn {
    width: 45px;
    height: 50px;
    border: none;
    background: white;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.qty-btn:hover {
    background: var(--light-color);
}

.quantity-selector input {
    width: 60px;
    height: 50px;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.btn-add-to-cart {
    flex: 1;
    padding: 1rem 2rem;
    background: #e2d9d4;
    color: #601b1d;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

    .btn-add-to-cart:hover {
        background: #c4b5ad;
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.btn-add-to-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--disabled-text);
}

.product-features {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.feature-item i {
    color: var(--accent-color);
    font-size: 1.25rem;
}

.product-tabs {
    margin-top: 3rem;
}

.product-tabs .nav-tabs {
    border-bottom: 2px solid var(--border-color);
}

.product-tabs .nav-link {
    color: var(--text-color);
    font-weight: 600;
    padding: 1rem 1.5rem;
    border: none;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.product-tabs .nav-link:hover {
    color: var(--accent-color);
}

.product-tabs .nav-link.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    background: transparent;
}

.product-tabs .tab-content {
    background: white;
    border-radius: 0 0 15px 15px;
    box-shadow: var(--shadow-sm);
}

.reviews-list {
    max-height: 600px;
    overflow-y: auto;
}

.review-item {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.review-author {
    font-weight: 700;
    color: var(--dark-color);
}

.review-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.review-stars {
    color: #F39C12;
    font-size: 1rem;
}

.review-text {
    color: var(--text-color);
    line-height: 1.6;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #D5F4E6;
    color: #27AE60;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

@media (max-width: 992px) {
    .product-gallery,
    .product-details-info {
        position: static;
    }
    
    .product-name {
        font-size: 1.75rem;
    }
    
    .current-price {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .action-section {
        flex-direction: column;
    }
    
    .quantity-selector {
        justify-content: center;
    }
    
    .product-features {
        flex-direction: column;
    }
}

/* ===== Mobile Bottom Navigation ===== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: none;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.75rem;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.25rem;
}

.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item.active {
    color: var(--accent-color);
}

/* Mobile Top Bar */
.mobile-top-bar {
    position: fixed;
    top: 10px;
    right: 10px;
    display: none;
    gap: 0.75rem;
    z-index: 999;
}

.mobile-top-bar .top-bar-item {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    color: var(--dark-color);
    text-decoration: none;
}

.mobile-top-bar .top-bar-item .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #E74C3C;
    color: white;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0 5px;
}

.mobile-top-bar .top-bar-item .badge:not(:empty) {
    display: flex; /* Show only when has content */
}

/* Mobile Menu Sidebar */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 1999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-sidebar.show {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #e2d9d4;
    color: #601b1d;
}

.mobile-menu-header h4 {
    margin: 0;
    font-weight: 700;
}

.close-menu {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: #601b1d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-menu:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.mobile-menu-body {
    padding: 1rem 0;
}

.menu-link {
    display: block;
    padding: 1rem 1.5rem;
    color: #601b1d;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}

.menu-link:hover {
    background: var(--light-color);
    color: var(--accent-color);
}

/* Categories Popup */
.categories-popup,
.user-menu-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.categories-popup.show,
.user-menu-popup.show {
    display: flex;
}

.categories-popup-content,
.user-menu-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    position: relative;
    animation: popupSlideUp 0.3s ease;
}

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

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--light-color);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-popup:hover {
    background: var(--accent-color);
    color: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.category-popup-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: var(--light-color);
    border-radius: 15px;
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
    text-align: center;
}

.category-popup-item:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-5px);
}

.category-popup-item i {
    font-size: 2rem;
}

.user-info {
    text-align: center;
    color: var(--dark-color);
}

.user-info h5 {
    margin: 0;
    font-weight: 700;
}

/* Show Mobile Elements on Small Screens */
@media (max-width: 992px) {
    .mobile-bottom-nav,
    .mobile-top-bar {
        display: flex;
    }
    
    body {
        padding-bottom: 70px; /* Space for bottom nav */
    }
    
    .main-header {
        display: none; /* Hide desktop header on mobile */
    }
    
    /* تأكد أن animation السلة يشتغل في الموبايل */
    .flying-package,
    .particle,
    .cart-shake,
    .cart-badge-pop,
    .cart-success-pulse {
        display: block !important;
    }
}

/* RTL Support for Mobile */
.ar .mobile-menu-sidebar {
    right: auto;
    left: -100%;
}

.ar .mobile-menu-sidebar.show {
    left: 0;
}

.ar .mobile-top-bar {
    right: auto;
    left: 10px;
}

/* ===== Mobile Header (Logo + Name) ===== */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #e2d9d4;
    padding: 0.75rem 1rem;
    display: none;
    z-index: 998;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

.mobile-header-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    transition: var(--transition);
}

.mobile-logo span {
    color: var(--text-primary);
}

/* Language Switcher in Mobile Sidebar */
.language-switcher-mobile {
    padding: 0.5rem 0;
}

.menu-label {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.language-switcher-mobile .menu-link {
    padding-left: 3rem;
}

.language-switcher-mobile .menu-link.active {
    background: var(--light-color);
    color: var(--accent-color);
    font-weight: 700;
}

.language-switcher-mobile .menu-link i.invisible {
    visibility: hidden;
}

/* Update Mobile Top Bar Position */
@media (max-width: 992px) {
    .mobile-header {
        display: block;
    }
    
    body {
        padding-top: 60px; /* Space for mobile header */
        padding-bottom: 70px; /* Space for bottom nav */
    }
    
    .mobile-top-bar {
        top: 10px; /* Same level as header - بجوار اللوجو */
        display: flex;
    }
    
    /* Make sure linear loader is visible above mobile header */
    .linear-loader {
        z-index: 99999;
    }
}

/* ===== Shopping Cart Page ===== */
.cart-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--light-color);
    border-bottom: 2px solid var(--border-color);
}

.cart-header h3 {
    margin: 0;
    font-weight: 700;
    color: var(--dark-color);
}

.cart-count {
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
}

.cart-items {
    padding: 1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.cart-item:hover {
    background: var(--light-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.cart-item-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.price-current {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.cart-item-quantity {
    min-width: 120px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.quantity-control .qty-btn {
    width: 35px;
    height: 40px;
    border: none;
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

.quantity-control .qty-btn:hover {
    background: var(--light-color);
}

.quantity-control .qty-input {
    width: 50px;
    height: 40px;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
}

.cart-item-total {
    min-width: 120px;
    text-align: right;
}

.item-total {
    color: var(--dark-color);
    font-size: 1.25rem;
}

.cart-item-remove {
    position: absolute;
    margin-top: 7rem;
    width: 40px;
    height: 40px;
    border: none;
    background: #FEE;
    color: #E74C3C;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.cart-item-remove:hover {
    background: #E74C3C;
    color: white;
    transform: scale(1.1);
}

.cart-footer {
    padding: 1.5rem 2rem;
    background: var(--light-color);
    text-align: center;
}

.btn-clear-cart {
    padding: 0.75rem 2rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-clear-cart:hover {
    background: #E74C3C;
    color: white;
    border-color: #E74C3C;
}

/* Order Summary */
.order-summary {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.sticky-summary {
    position: sticky;
    top: 100px;
}

.summary-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    color: var(--text-color);
}

.summary-item strong {
    color: var(--dark-color);
    font-size: 1.1rem;
}

.free-shipping-notice {
    background: #E8F5E9;
    color: #27AE60;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    font-size: 1.25rem;
}

.summary-total strong {
    color: var(--accent-color);
    font-size: 1.75rem;
    font-weight: 900;
}

.btn-checkout {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #e2d9d4;
    color: #601b1d;
    text-align: center;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 1.1rem;
    margin: 1rem 0;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: none;
}

    .btn-checkout:hover {
        background: #c4b5ad;
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
        color: var(--text-white);
    }

.btn-continue-shopping {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: white;
    color: var(--text-color);
    text-align: center;
    text-decoration: none;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-continue-shopping:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.trust-badges {
    display: flex;
    justify-content: space-around;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.trust-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 5rem 2rem;
}

.empty-cart-icon {
    font-size: 5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    opacity: 0.5;
}

.empty-cart h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.empty-cart p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-shop-now {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, #8B8B8B 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(139, 139, 139, 0.3);
}

.btn-shop-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(139, 139, 139, 0.4);
    color: white;
}

/* Responsive Cart */
@media (max-width: 425px) {
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
    }
    
    .cart-item-quantity,
    .cart-item-total {
        grid-column: 2;
    }
    
    .cart-item-remove {
     /*   position: absolute;
        top: 1rem;
        right: 1rem;*/
    }
    
    .sticky-summary {
        position: static;
    }
}

@media (min-width: 760px) {
    .cart-item {
        display: flex;
    }

    .cart-item-quantity,
    .cart-item-total {
        grid-column: 2;
    }

    .cart-item-remove {
        /*   position: absolute;
        top: 1rem;
        right: 1rem;*/
    }

    .sticky-summary {
        position: static;
    }
}
@media (max-width: 576px) {
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-item-name {
        font-size: 1rem;
    }
    
    .price-current {
        font-size: 1.1rem;
    }
}

/* ===== Animations ===== */
@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

/* ===== Custom Confirmation Dialog ===== */
.custom-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.custom-confirm-dialog {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.custom-confirm-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.custom-confirm-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    animation: pulse 1.5s infinite;
}

.custom-confirm-icon i {
    font-size: 2rem;
    color: white;
}

.custom-confirm-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.custom-confirm-message {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.custom-confirm-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.custom-confirm-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-btn-cancel {
    background: #f0f0f0;
    color: #666;
}

.confirm-btn-cancel:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.confirm-btn-confirm {
    background: var(--accent-color);
    color: white;
}

.confirm-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

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

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

/* ===== Riyal Icon ===== */
.riyal-icon {
    display: inline-block;
    width: 0.85em;
    height: 0.85em;
    vertical-align: baseline;
    margin: 0 0.15em;
}

.riyal-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* ===== Checkout Page ===== */
.checkout-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.checkout-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

    .checkout-header h2 {
        font-size: 1.75rem;
        font-weight: 700;
        margin: 0;
    }

.checkout-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 15px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #601b1d;
    margin-bottom: 1.5rem;
}

.checkout-form .form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.checkout-form .form-control,
.checkout-form .form-select {
    border-radius: 10px;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.checkout-form .form-control:focus,
.checkout-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-method {
    cursor: pointer;
    display: block;
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-method-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.payment-method-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

.payment-method-card strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.payment-method-card p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.payment-method input:checked + .payment-method-card {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 215, 0, 0.1));
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.payment-method-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Checkout Actions */
.checkout-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}
 

/* Order Summary Card */
.order-summary-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.summary-header {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.summary-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.summary-item-row {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-item-row:last-child {
    border-bottom: none;
}

.summary-item-row img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.summary-item-row .item-details {
    flex: 1;
}

.summary-item-row .item-details strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.summary-item-row .item-details small {
    display: block;
    color: #666;
    font-size: 0.85rem;
}

.summary-item-row .item-price {
    font-weight: 700;
    color: var(--primary-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 1rem;
}

.summary-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 1rem 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
}

.summary-total strong {
    color: var(--primary-color);
}

/* ===== Order Confirmation Page ===== */
.order-confirmation-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.success-animation {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #27AE60, #229954);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPulse 1.5s ease-in-out;
}

.success-icon i {
    font-size: 3rem;
    color: white;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-animation h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.success-animation p {
    color: #666;
    font-size: 1.1rem;
}

.order-info-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 215, 0, 0.1));
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.order-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.order-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.order-status-pending {
    background: #FFF3CD;
    color: #856404;
}

.order-status-processing {
    background: #CCE5FF;
    color: #004085;
}

.order-status-shipped {
    background: #D1ECF1;
    color: #0C5460;
}

.order-status-delivered {
    background: #D4EDDA;
    color: #155724;
}

.order-status-cancelled {
    background: #F8D7DA;
    color: #721C24;
}

.order-date {
    color: #666;
    font-size: 0.95rem;
}

.info-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 15px;
}

.info-section h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.info-content p {
    margin-bottom: 0.5rem;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
}

.order-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.order-item .item-info {
    flex: 1;
}

.order-item .item-info strong {
    display: block;
    margin-bottom: 0.5rem;
}

.item-attributes {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0;
    flex-wrap: wrap;
}

.item-attributes span {
    padding: 0.25rem 0.75rem;
    background: #e0e0e0;
    border-radius: 15px;
    font-size: 0.85rem;
}

.order-item .item-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.order-summary-section {
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 15px;
    margin: 2rem 0;
}

.confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 992px) {
    .checkout-actions {
        flex-direction: column;
    }
    
    .btn-checkout {
        max-width: 100%;
    }
    
    .order-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .checkout-card,
    .order-summary-card,
    .order-confirmation-card {
        padding: 1.5rem;
    }
    
    .summary-item-row img {
        width: 50px;
        height: 50px;
    }
    
    .order-item img {
        width: 60px;
        height: 60px;
    }
}

/* ===== Mobile Filters Toggle ===== */
@media (max-width: 767.98px) {
    #filtersSidebar {
        display: none;
    }
    
    #filtersSidebar.show {
        display: block;
    }
}

/* ===== Hero Navigation & Indicators ===== */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: #1A1A1A;
}

.hero-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.hero-prev {
    left: 30px;
}

.hero-next {
    right: 30px;
}

.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-indicator.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

.hero-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ===== Category Card - Always Show Name ===== */
.category-card .product-overlay {
    opacity: 1;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 100%);
}

.category-card .product-overlay h3 {
    margin: 0;
    font-size: 1.5rem;
}

/* ===== Product Option Dropdowns ===== */
.product-option-select {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background-color: white;
    transition: var(--transition);
}

.product-option-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(26, 26, 26, 0.1);
    outline: none;
}

.product-option-select:hover {
    border-color: var(--accent-color);
}

.product-option-select option {
    padding: 0.5rem;
}

/* ===== Product Card Clickable ===== */
.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.product-card-link .btn-wishlist {
    z-index: 10;
}

.product-card-link .product-actions {
    z-index: 10;
}

/* ===== Product Card Image Carousel ===== */
.product-image-carousel {
    position: relative;
    width: 100%;
    height: 450px; /* ✅ Increased from 300px to 380px for taller product images */
    overflow: hidden;
    background: #f8f9fa;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /*height: 100%;*/
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.carousel-image.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.product-card:hover .carousel-nav {
    display: flex;
}

.carousel-prev {
    left: 8px;
}

.carousel-next {
    right: 8px;
}

.carousel-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.carousel-nav i {
    font-size: 0.85rem;
    color: var(--dark-color);
}

.carousel-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 6px;
    z-index: 5;
    background: rgba(0,0,0,0.3);
    padding: 4px 8px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.product-card:hover .carousel-indicators {
    display: flex;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: white;
    width: 18px;
    border-radius: 3px;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Loading placeholder for images */
.carousel-image[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .product-image-carousel {
        height: 560px;
    }
    
    .carousel-nav {
        width: 32px;
        height: 32px;
    }
    
    /* Show navigation on mobile always */
    .carousel-nav {
        display: flex;
    }
    
    .carousel-indicators {
        display: flex;
    }
}

/* ===== Product Details - Thumbnails Carousel ===== */
.thumbnails-wrapper {
    position: relative;
    margin-top: 15px;
}

.thumbnails-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.thumbnails-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.thumbnail-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.thumbnail-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.thumbnail-nav i {
    font-size: 0.8rem;
    color: var(--dark-color);
}

.thumbnail-nav-prev {
    left: -15px;
}

.thumbnail-nav-next {
    right: -15px;
}

.thumbnail-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumbnail-image:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail-image.active {
    border-color: var(--accent-color);
    opacity: 1;
}

/* ===== Image Modal Enhanced ===== */
.modal-image-container {
    position: relative;
    text-align: center;
}

.modal-main-image {
    max-height: 70vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.modal-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.modal-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.modal-thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.modal-thumbnail.active {
    border-color: var(--accent-color);
    opacity: 1;
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.modal-nav-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.modal-nav-prev {
    left: 20px;
}

.modal-nav-next {
    right: 20px;
}

.modal-nav-btn i {
    font-size: 1.2rem;
    color: var(--dark-color);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .modal-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .modal-nav-prev {
        left: 10px;
    }
    
    .modal-nav-next {
        right: 10px;
    }
    
    .thumbnail-image {
        width: 60px;
        height: 60px;
    }
}

/* ===== Main Image Navigation Arrows ===== */
.main-image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0;
}

.main-image-wrapper:hover .main-image-nav {
    opacity: 1;
}

.main-image-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.main-image-nav i {
    font-size: 1.2rem;
    color: var(--dark-color);
}

.main-image-nav-prev {
    left: 15px;
}

.main-image-nav-next {
    right: 15px;
}

@media (max-width: 768px) {
    .main-image-nav {
        opacity: 1;
        width: 35px;
        height: 35px;
    }
    
    .main-image-nav i {
        font-size: 1rem;
    }
    
    .main-image-nav-prev {
        left: 10px;
    }
    
    .main-image-nav-next {
        right: 10px;
    }
}

/* ===== Drift Zoom - Smaller Size ===== */
.drift-zoom-pane {
    width: 400px !important;
    height: 400px !important;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.drift-zoom-small .drift-zoom-pane {
    width: 350px !important;
    height: 350px !important;
}

@media (max-width: 768px) {
    .drift-zoom-pane,
    .drift-zoom-small .drift-zoom-pane {
        width: 250px !important;
        height: 250px !important;
    }
}

/* ===== Drift Zoom - Fixed Positioning ===== */
.drift-zoom-pane {
    border: 2px solid var(--primary-color) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3) !important;
    background: white !important;
}

/* Ensure proper sizing */
.drift-zoom-pane.drift-inline {
    width: 400px !important;
    height: 400px !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .drift-zoom-pane.drift-inline {
        width: 300px !important;
        height: 300px !important;
    }
}

/* Fix positioning glitch */
.drift-zoom-pane img {
    max-width: none !important;
}

/* ===== Simple CSS Zoom (Better for RTL) ===== */
.main-image {
    transition: transform 0.3s ease;
    transform-origin: center center;
}

.main-image:hover {
    /* Will be set dynamically by JS */
}

.main-image-wrapper {
    overflow: hidden;
    position: relative;
}

/* Zoom cursor */
.main-image[style*="cursor: zoom-in"] {
    cursor: zoom-in !important;
}

/* ✅ Riyal Icon Styling */
.riyal-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

.riyal-icon-inline {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    margin: 0 2px;
}

.currency-symbol-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* ✅ Custom Toastr Styling */
#toast-container > div {
    opacity: 1;
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
    border-radius: 8px;
}

#toast-container > .toast-success {
    background-color: #28a745;
}

#toast-container > .toast-error {
    background-color: #dc3545;
}

#toast-container > .toast-warning {
    background-color: #ffc107;
    color: #000;
}

#toast-container > .toast-info {
    background-color: #17a2b8;
}

#toast-container > div:hover {
    box-shadow: 0 0 25px rgba(0,0,0,0.25);
    cursor: pointer;
}

.toast-close-button {
    opacity: 0.8;
    font-weight: bold;
}

.toast-close-button:hover {
    opacity: 1;
}

.toast-progress {
    opacity: 0.8;
}

/* ✅ Riyal Icon Small (for cart items in checkout) */
.riyal-icon-small {
    width: 14px !important;
    height: 14px !important;
    object-fit: contain !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 2px !important;
}

/* ✅ Available Colors Display on Product Card */
.product-colors {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.color-dot {
    width: 30px;
    height: 30px;
    border-radius: 25%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.color-dot:hover {
    transform: scale(1.15);
    border-color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.color-dot.white {
    border-color: #999;
}

/* ✅ LIMITED EDITION Badge */
.limited-edition-badge {
    position: absolute;
    /* top: 25px; */
    /* right: 10px; */
    background: #601b1d;
    color: white;
    padding: 10px 16px;
    border-radius: 20px 0px 0px 20px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    animation: pulse-glow 2s infinite;
}

.limited-edition-badge i {
    margin-left: 4px;
    font-size: 10px;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px #e2d9d4;
    }
    50% {
        box-shadow: 0 4px 25px #e2d9d4;
    }
}
[dir="ltr"] .limited-edition-badge {
    border-radius: 0px 20px 20px 0px;
}
/* RTL Support */
[dir="rtl"] .limited-edition-badge {
}

[dir="rtl"] .limited-edition-badge i {
    margin-left: 0;
    margin-right: 4px;
}

.active > .page-link, .page-link.active {
    color: #601b1d !important;
    background-color: #e2d9d4 !important;
    border-color: #e2d9d4 !important;
}
.page-link {
    color: #601b1d !important;
    background-color: #e2d9d4 !important;
    border: #e2d9d4 !important;
}
/* ===================================
   ✅ Product Tags System
   =================================== */
.product-tag-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, #e2d9d4 0%, #e2d9d4 100%);
    color: #601b1d;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    margin: 0.25rem;
    box-shadow: 0 2px 8px rgb(96 27 29);
    transition: all 0.3s ease;
    z-index: 2;
}

.product-tag-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.product-tag-badge i {
    margin-left: 0.25rem;
    font-size: 0.7rem;
}

/* Multiple Tags Positioning */
.product-tag-badge:nth-child(1) {
    top: 10px;
    right: 10px;
}

.product-tag-badge:nth-child(2) {
    top: 45px;
    right: 10px;
}

.product-tag-badge:nth-child(3) {
    top: 80px;
    right: 10px;
}

