/**
 * ZIN Fashion - Main Styles
 * Location: /public_html/dev_staging/assets/css/main.css
 * Updated: Added Quick View Modal styles
 */

/* ========================================
   CSS Variables & Theme Configuration
   ======================================== */

:root {
    /* Dark Theme (Default) */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #141414;
    --bg-card: #1a1a1a;
    --bg-hover: #252525;
    
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --text-muted: #888888;
    
    --gold-primary: #d4af37;
    --gold-secondary: #b8941f;
    --gold-light: #f4e5c2;
    --gold-dark: #9b7b0d;
    
    --border-color: #333333;
    --shadow-sm: 0 2px 10px rgba(212, 175, 55, 0.1);
    --shadow-md: 0 5px 20px rgba(212, 175, 55, 0.15);
    --shadow-lg: 0 10px 40px rgba(212, 175, 55, 0.2);
    
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4e5c2 50%, #d4af37 100%);
    --gradient-dark: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

/* Light Theme */
body.theme-light {
    --bg-primary: #faf8f3;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f5f2e8;
    --bg-card: #ffffff;
    --bg-hover: #f0ead6;
    
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #7a7a7a;
    
    --border-color: #e5e5e5;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.16);
}

/* ========================================
   Global Styles
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

a {
    color: var(--gold-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold-secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-gold);
    z-index: -1;
    transition: left 0.3s ease;
}

.btn:hover::before {
    left: 0;
}

.btn-primary {
    background: var(--gold-primary);
    color: var(--bg-primary);
    border-color: var(--gold-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--gold-primary);
}

.btn-outline {
    background: transparent;
    color: var(--gold-primary);
    border-color: var(--gold-primary);
}

.btn-outline:hover {
    background: var(--gold-primary);
    color: var(--bg-primary);
}

.btn-newsletter {
    background: var(--bg-primary);
    color: var(--gold-primary);
    border-color: var(--bg-primary);
    padding: 14px 40px;
}

.btn-newsletter:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--text-primary);
}

/* ========================================
   HEADER WRAPPER - NEW
   ======================================== */

.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--bg-primary);
    transition: all 0.3s ease;
}

.header-wrapper.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

/* ========================================
   Top Banner
   ======================================== */

.top-banner {
    background: var(--gradient-gold);
    padding: 8px 0;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Compact mode when scrolled */
.header-wrapper.scrolled .top-banner {
    padding: 5px 0;
    font-size: 13px;
}

.top-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.top-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-text {
    color: var(--bg-primary);
    font-weight: 500;
}

.banner-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.2);
    color: var(--bg-primary);
    padding: 5px 12px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.lang-current:hover {
    background: rgba(0,0,0,0.3);
}

.flag {
    width: 20px;
    height: 14px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.flag-de { background-image: url('/assets/images/flags/de.svg'); }
.flag-en { background-image: url('/assets/images/flags/en.svg'); }
.flag-ar { background-image: url('/assets/images/flags/ar.svg'); }

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    z-index: 1100;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    color: var(--text-primary);
    transition: background 0.3s ease;
}

.lang-option:hover {
    background: var(--bg-hover);
    color: var(--gold-primary);
}

.lang-option.active {
    color: var(--gold-primary);
    background: var(--bg-hover);
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(0,0,0,0.3);
    transform: rotate(180deg);
}

#themeIconLight { display: none; }
body.theme-light #themeIconLight { display: block; }
body.theme-light #themeIconDark { display: none; }

/* ========================================
   Main Header
   ======================================== */

.main-header {
    background: var(--bg-secondary);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
}

/* Compact mode when scrolled */
.header-wrapper.scrolled .main-header {
    padding: 15px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.header-logo {
    flex-shrink: 0;
}

.logo-img {
    height: 50px;
    width: auto;
    filter: none !important;
    transition: transform 0.3s ease, height 0.3s ease;
}

.header-wrapper.scrolled .logo-img {
    height: 40px;
}

body.theme-light .logo-img {
    filter: none !important;
}

.header-logo:hover .logo-img {
    transform: scale(1.05);
}

/* Search Bar */
.header-search {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-form:focus-within {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.search-form input {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: padding 0.3s ease;
}

.header-wrapper.scrolled .search-form input {
    padding: 10px 18px;
}

.search-form input::placeholder {
    color: var(--text-muted);
}

.search-form button {
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--gold-primary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-form button:hover {
    color: var(--gold-secondary);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-action-item {
    position: relative;
}

.action-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-primary);
    transition: color 0.3s ease;
    position: relative;
}

.action-link:hover {
    color: var(--gold-primary);
}

.action-link i {
    font-size: 20px;
}

.action-text {
    font-size: 12px;
    font-weight: 500;
}

.action-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gold-primary);
    color: var(--bg-primary);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

/* Account Dropdown */
.account-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 1100;
}

.header-action-item:hover .account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-dropdown a {
    display: block;
    padding: 10px 20px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.account-dropdown a:hover {
    background: var(--bg-hover);
    color: var(--gold-primary);
    padding-left: 25px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Navigation Menu
   ======================================== */

.main-navigation {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 15px 20px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

/* Compact navigation when scrolled */
.header-wrapper.scrolled .nav-link {
    padding: 12px 18px;
    font-size: 13px;
}

.nav-link:hover {
    color: var(--gold-primary);
    background: var(--bg-hover);
}

.nav-link i {
    font-size: 10px;
}

/* Sale Link Special Style */
.nav-sale {
    color: #ff4444 !important;
    position: relative;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--gold-primary);
    min-width: 600px;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 1099;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.mega-menu-column h4 {
    color: var(--gold-primary);
    font-size: 16px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mega-menu-column ul {
    list-style: none;
    padding: 0;
}

.mega-menu-column li {
    margin-bottom: 10px;
}

.mega-menu-column a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.mega-menu-column a:hover {
    color: var(--gold-primary);
    transform: translateX(5px);
}

.mega-menu-promo {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.mega-menu-promo img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mega-menu-promo:hover img {
    transform: scale(1.1);
}

.promo-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    color: white;
}

.promo-content h5 {
    color: white;
    margin-bottom: 10px;
}

/* ========================================
   Smooth scroll padding for sticky header
   ======================================== */

html {
    scroll-padding-top: 180px;
}

.header-wrapper.scrolled ~ * {
    scroll-padding-top: 140px;
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.glass-box {
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212,175,55,0.3);
    padding: 50px;
    text-align: center;
    max-width: 600px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    color: var(--gold-primary);
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--gold-primary);
    transform: scale(1.2);
}

/* ========================================
   Sections
   ======================================== */

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--gold-primary);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-footer {
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-gold);
}

/* Categories Section */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 350px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.category-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 30px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.category-card:hover .category-overlay {
    transform: translateY(0);
}

.category-overlay h3 {
    color: var(--gold-primary);
    margin-bottom: 5px;
}

.product-count {
    color: white;
    font-size: 14px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* ========================================
   Product Filters
   ======================================== */
.product-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-gold);
    z-index: -1;
    transition: left 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.filter-btn:hover::before {
    left: 0;
}

.filter-btn.active {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: var(--bg-primary);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.filter-btn i {
    font-size: 14px;
}

/* Filter button specific colors */
.filter-btn[data-filter="new"] i {
    color: #00d4ff;
}

.filter-btn[data-filter="sale"] i {
    color: #ff4444;
}

.filter-btn[data-filter="bestseller"] i {
    color: #ff6b35;
}

.filter-btn.active i {
    color: var(--bg-primary);
}

/* Empty state message */
.empty-filter-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-filter-message i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-filter-message p {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.empty-filter-message .btn {
    margin-top: 10px;
}

/* Light theme adjustments */
body.theme-light .filter-btn {
    border-color: #e5e5e5;
    color: #4a4a4a;
}

body.theme-light .filter-btn:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

body.theme-light .filter-btn.active {
    background: var(--gold-primary);
    color: white;
    border-color: var(--gold-primary);
}

/* Animation for filtered products */
.product-card {
    transition: all 0.3s ease;
    transform-origin: center;
}

.product-card[style*="display: none"] {
    animation: fadeOut 0.3s ease;
}

.product-card[style*="display: block"] {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive adjustments */
@media screen and (max-width: 767px) {
    .product-filters {
        gap: 8px;
        margin-bottom: 30px;
    }
    
    .filter-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .filter-btn i {
        font-size: 12px;
    }
}

@media screen and (max-width: 575px) {
    .product-filters {
        gap: 6px;
    }
    
    .filter-btn {
        padding: 8px 14px;
        font-size: 12px;
        flex: 0 1 calc(50% - 3px);
    }
    
    .filter-btn i {
        display: none;
    }
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-primary);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.badge-new {
    background: var(--gold-primary);
    color: var(--bg-primary);
}

.badge-sale {
    background: #ff4444;
    color: white;
}

.badge-bestseller {
    background: var(--bg-primary);
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
}

.product-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: var(--gold-primary);
    color: var(--bg-primary);
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-category {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.product-name {
    margin-bottom: 10px;
}

.product-name a {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.product-name a:hover {
    color: var(--gold-primary);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price-old {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 14px;
}

.price-current {
    color: var(--gold-primary);
    font-size: 18px;
    font-weight: 600;
}

.btn-add-to-cart {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-to-cart:hover {
    background: var(--gold-primary);
    color: var(--bg-primary);
}

/* Why Choose Section */
.why-choose-section {
    background: var(--bg-tertiary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--bg-primary);
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotate(360deg);
}

.feature-card h3 {
    color: var(--gold-primary);
    margin-bottom: 10px;
    font-size: 20px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Newsletter Section */
.newsletter-section {
    position: relative;
    background: linear-gradient(135deg, #d4af37 0%, #f4e5c2 50%, #d4af37 100%);
    overflow: hidden;
}

/* Keep newsletter section consistent in both themes */
body.theme-light .newsletter-section {
    background: linear-gradient(135deg, #d4af37 0%, #f4e5c2 50%, #d4af37 100%);
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 3s infinite;
}

.newsletter-content {
    position: relative;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    z-index: 1;
}

.newsletter-content h2 {
    color: #000000;
    margin-bottom: 15px;
}

body.theme-light .newsletter-content h2 {
    color: #000000;
}

.newsletter-content p {
    color: #000000;
    margin-bottom: 30px;
    opacity: 0.9;
}

body.theme-light .newsletter-content p {
    color: #000000;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(0,0,0,0.1);
    color: #000000;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

body.theme-light .newsletter-form input {
    background: rgba(255,255,255,0.9);
    color: #000000;
}

.newsletter-form input::placeholder {
    color: rgba(0,0,0,0.5);
}

.newsletter-form input:focus {
    background: rgba(255,255,255,1);
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
}

.newsletter-privacy {
    margin-top: 15px;
    font-size: 12px;
    color: #000000;
    opacity: 0.8;
}

body.theme-light .newsletter-privacy {
    color: #000000;
}

.newsletter-privacy i {
    margin-right: 5px;
    color: #000000;
}

body.theme-light .newsletter-privacy i {
    color: #000000;
}

/* Newsletter button stays consistent */
.btn-newsletter {
    background: #000000;
    color: #d4af37;
    border-color: #000000;
    padding: 14px 40px;
}

body.theme-light .btn-newsletter {
    background: #000000;
    color: #d4af37;
    border-color: #000000;
}

.btn-newsletter:hover {
    background: #9b7b0d;
    border-color: #9b7b0d;
    color: #ffffff;
}

body.theme-light .btn-newsletter:hover {
    background: #9b7b0d;
    border-color: #9b7b0d;
    color: #ffffff;
}

.newsletter-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

.newsletter-message.success {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid #2ecc71;
    display: block;
}

.newsletter-message.error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid #e74c3c;
    display: block;
}

/* ========================================
   Footer
   ======================================== */

.main-footer {
    background: var(--bg-secondary);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: var(--gold-primary);
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    filter: none !important;
}

body.theme-light .footer-logo img {
    filter: none !important;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: var(--bg-primary);
    transform: translateY(-5px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--gold-primary);
    transform: translateX(5px);
}

.contact-info {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 14px;
}

.contact-item i {
    color: var(--gold-primary);
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-item div {
    flex: 1;
}

.contact-item a {
    color: var(--text-secondary);
    display: block;
}

.contact-item a:hover {
    color: var(--gold-primary);
}

.payment-methods h5 {
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.payment-icons img {
    height: 30px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.payment-icons img:hover {
    opacity: 1;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.footer-copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.footer-copyright a {
    color: var(--gold-primary);
}

/* ========================================
   Cart Sidebar
   ======================================== */

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: var(--bg-card);
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
    z-index: 1201;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-sidebar-header h3 {
    color: var(--gold-primary);
    font-size: 20px;
}

.cart-close {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cart-close:hover {
    color: var(--gold-primary);
}

.cart-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.cart-total-amount {
    color: var(--gold-primary);
}

.btn-block {
    width: 100%;
    margin-bottom: 10px;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   QUICK VIEW MODAL STYLES
   ======================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    z-index: 10;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 11;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    transform: rotate(90deg);
}

.modal-close i {
    font-size: 18px;
    color: var(--text-primary);
}

.modal-close:hover i {
    color: var(--bg-primary);
}

/* Quick View Content */
.quick-view-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

.quick-view-images {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-view-images img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 500px;
}

.quick-view-info {
    padding: 10px 0;
    display: flex;
    flex-direction: column;
}

.quick-view-info h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.quick-view-category {
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.quick-view-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.quick-view-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
    flex: 1;
}

.quick-view-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.stock-available {
    color: #2ecc71;
}

.stock-unavailable {
    color: #e74c3c;
}

.quick-view-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.quick-view-actions .btn {
    flex: 1;
}

/* Light theme adjustments for modal */
body.theme-light .modal-content {
    background: var(--bg-card);
    border-color: var(--border-color);
}

body.theme-light .modal-close {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

body.theme-light .quick-view-images {
    background: var(--bg-tertiary);
}

/* Responsive Quick View Modal */
@media screen and (max-width: 767px) {
    .modal-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .quick-view-content {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }
    
    .quick-view-images {
        max-height: 300px;
    }
    
    .quick-view-actions {
        flex-direction: column;
    }
    
    .quick-view-actions .btn {
        width: 100%;
    }
    
    .modal-close {
        width: 35px;
        height: 35px;
        top: 10px;
        right: 10px;
    }
    
    .modal-close i {
        font-size: 16px;
    }
}

@media screen and (max-width: 575px) {
    .quick-view-content {
        padding: 15px;
    }
    
    .quick-view-info h2 {
        font-size: 1.4rem;
    }
    
    .quick-view-price {
        font-size: 1.1rem;
    }
    
    .quick-view-description {
        font-size: 13px;
    }
}

/* ========================================
   Back to Top Button
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gold-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--gold-secondary);
    transform: translateY(-5px);
}

/* ========================================
   Cookie Notice
   ======================================== */

.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-tertiary);
    border-top: 2px solid var(--gold-primary);
    padding: 20px;
    z-index: 1202;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-notice.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 8px 20px;
    font-size: 13px;
}

/* ========================================
   Animations
   ======================================== */

.animate-fade-up {
    animation: fadeInUp 0.8s ease;
}

.animate-fade-up-delay {
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.animate-fade-up-delay-2 {
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Mobile Menu
   ======================================== */

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: var(--bg-card);
    z-index: 1200;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-logo {
    height: 30px;
    width: auto;
    filter: none !important;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu-content {
    padding: 20px;
}

.mobile-search {
    display: flex;
    margin-bottom: 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    overflow: hidden;
}

.mobile-search input {
    flex: 1;
    padding: 10px 15px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.mobile-search button {
    padding: 10px 15px;
    background: transparent;
    border: none;
    color: var(--gold-primary);
    cursor: pointer;
}

.mobile-nav {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.mobile-nav-item {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.mobile-nav-toggle {
    transition: transform 0.3s ease;
}

.mobile-nav-item.active .mobile-nav-toggle {
    transform: rotate(45deg);
}

.mobile-submenu {
    list-style: none;
    padding: 0 0 0 20px;
    display: none;
}

.mobile-nav-item.active .mobile-submenu {
    display: block;
}

.mobile-submenu a {
    display: block;
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.mobile-sale {
    color: #ff4444 !important;
}

.mobile-account {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.mobile-account-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    color: var(--text-primary);
    font-size: 14px;
}

.mobile-account-link i {
    color: var(--gold-primary);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1199;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   LANGUAGE SELECTOR FIX
   ======================================== */

.language-selector {
    position: relative;
    z-index: 1101;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 150px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 99999 !important;
    
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.lang-dropdown.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.language-selector:hover .lang-dropdown {
    /* Do nothing on hover - controlled by JavaScript */
}

.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--bg-primary);
    transition: all 0.3s ease;
}

.top-banner {
    position: relative;
    overflow: visible;
    z-index: 1000;
}

.banner-right {
    position: relative;
    z-index: 1001;
}

/* ========================================
   Utility Classes
   ======================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.pt-20 { padding-top: 20px; }
.pb-20 { padding-bottom: 20px; }

/* ========================================
   LOGO COLOR FIX - IMPORTANT OVERRIDES
   ======================================== */

.logo-img,
.footer-logo img,
.mobile-logo,
.loader-logo img,
img[alt="ZIN Fashion"] {
    filter: none !important;
    -webkit-filter: none !important;
    opacity: 1 !important;
}

body.theme-dark .logo-img,
body.theme-dark .footer-logo img,
body.theme-dark .mobile-logo,
body.theme-light .logo-img,
body.theme-light .footer-logo img,
body.theme-light .mobile-logo,
html[dir="rtl"] .logo-img,
html[dir="rtl"] .footer-logo img,
html[dir="rtl"] .mobile-logo {
    filter: none !important;
    -webkit-filter: none !important;
}