/*
Theme Name: VLuxury Mall
Theme URI: https://vluxurymall.com
Author: VLuxury Mall
Author URI: https://vluxurymall.com
Description: A premium luxury online shopping mall theme for WordPress + WooCommerce. Features elegant gold and black design, RTL support for Arabic, and full e-commerce functionality. Based in Kuwait.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vluxury
Domain Path: /languages
Tags: e-commerce, woocommerce, luxury, rtl-language-support, custom-logo, custom-menu, featured-images, theme-options, translation-ready

VLuxury Mall WordPress Theme
Copyright 2024 VLuxury Mall, Kuwait
*/

/* ========================================
   CSS VARIABLES
======================================== */
:root {
    --gold: #C9A962;
    --gold-light: #E8D5A3;
    --gold-dark: #B8983F;
    --dark: #1A1A1A;
    --cream: #FAF8F5;
    --white: #FFFFFF;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-400: #A3A3A3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --font-primary: 'Playfair Display', Georgia, serif;
    --font-secondary: 'Montserrat', Arial, sans-serif;
    --transition: all 0.3s ease;
}

/* ========================================
   RESET & BASE
======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .font-playfair {
    font-family: 'Cairo', var(--font-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ========================================
   TYPOGRAPHY
======================================== */
.font-playfair {
    font-family: var(--font-primary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 500;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

.text-gold { color: var(--gold); }
.text-white { color: var(--white); }
.text-dark { color: var(--dark); }

.tracking-widest {
    letter-spacing: 0.2em;
}

/* ========================================
   LAYOUT
======================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--gold);
}

.btn-outline:hover {
    background-color: var(--gold);
    color: var(--dark);
}

.btn-dark {
    background-color: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

.btn-dark:hover {
    background-color: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}

/* ========================================
   HEADER & NAVIGATION
======================================== */
.top-bar {
    background-color: var(--dark);
    color: var(--white);
    font-size: 0.75rem;
    padding: 0.625rem 0;
}

.top-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.top-bar span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.15em;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: transparent;
    transition: var(--transition);
}

.site-header.scrolled {
    background-color: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.site-logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--white);
    letter-spacing: 0.2em;
}

.site-logo span {
    color: var(--gold);
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.main-nav a {
    color: var(--white);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

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

.main-nav a:hover {
    color: var(--gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-actions button,
.header-actions a {
    color: var(--white);
    transition: var(--transition);
}

.header-actions button:hover,
.header-actions a:hover {
    color: var(--gold);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--gold);
    color: var(--dark);
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-size: 0.75rem;
}

.lang-switcher a {
    padding: 0.25rem 0.5rem;
    border: 1px solid transparent;
    transition: var(--transition);
}

.lang-switcher a:hover,
.lang-switcher a.active {
    border-color: var(--gold);
    color: var(--gold);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
}

@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,26,26,0.9) 0%, rgba(26,26,26,0.7) 50%, rgba(26,26,26,0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 1.5rem;
}

.hero-subtitle {
    color: var(--gold);
    font-size: 0.875rem;
    letter-spacing: 0.5em;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1.5rem;
}

.hero-divider {
    width: 6rem;
    height: 1px;
    background-color: var(--gold);
    margin: 0 auto 1.5rem;
}

.hero-text {
    font-size: 1.125rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
}

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

/* ========================================
   PRODUCT CARDS
======================================== */
.product-card {
    position: relative;
    background-color: var(--white);
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    overflow: hidden;
    background-color: var(--gray-100);
}

.product-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--dark);
    color: var(--white);
    font-size: 0.625rem;
    padding: 0.25rem 0.75rem;
    letter-spacing: 0.1em;
}

.product-badge.sale {
    background-color: #DC2626;
}

.product-wishlist {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.product-wishlist:hover {
    background-color: var(--gold);
}

.product-wishlist.active svg {
    fill: var(--gold);
}

.product-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    transform: translateY(100%);
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-actions {
    transform: translateY(0);
    opacity: 1;
}

.product-actions .btn {
    width: 100%;
}

.product-info {
    padding: 1rem 0;
}

.product-brand {
    color: var(--gold);
    font-size: 0.625rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.product-title {
    font-family: var(--font-primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-weight: 500;
}

.product-price .sale-price {
    color: var(--dark);
}

.product-price .original-price {
    color: var(--gray-400);
    text-decoration: line-through;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

/* ========================================
   WOOCOMMERCE OVERRIDES
======================================== */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
}

.woocommerce ul.products li.product {
    margin: 0;
    padding: 0;
    width: 100%;
}

.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background-color: var(--dark) !important;
    color: var(--white) !important;
    border-radius: 0 !important;
    font-family: var(--font-secondary);
    font-size: 0.75rem !important;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1rem 2rem !important;
    transition: var(--transition);
}

.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background-color: var(--gold) !important;
    color: var(--dark) !important;
}

.woocommerce .button.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
    background-color: var(--gold) !important;
    color: var(--dark) !important;
}

.woocommerce .button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
    background-color: var(--dark) !important;
    color: var(--white) !important;
}

/* WooCommerce Cart */
.woocommerce-cart .cart-collaterals,
.woocommerce-cart table.cart {
    background-color: var(--white);
}

.woocommerce table.shop_table {
    border: 1px solid var(--gray-200);
    border-radius: 0;
}

.woocommerce table.shop_table th {
    background-color: var(--gray-100);
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* WooCommerce Checkout */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    border: 1px solid var(--gray-300);
    border-radius: 0;
    padding: 1rem;
    font-family: var(--font-secondary);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: none;
}

/* WooCommerce Messages */
.woocommerce-message,
.woocommerce-info {
    border-top-color: var(--gold) !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: var(--gold) !important;
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}

.footer-logo span {
    color: var(--gold);
}

.footer-description {
    color: var(--gray-400);
    font-size: 0.875rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.footer-heading {
    color: var(--gold);
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.footer-legal a:hover {
    color: var(--gold);
}

/* ========================================
   UTILITIES
======================================== */
.bg-gold { background-color: var(--gold); }
.bg-dark { background-color: var(--dark); }
.bg-cream { background-color: var(--cream); }
.bg-white { background-color: var(--white); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.overflow-hidden { overflow: hidden; }

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 1s ease-out forwards;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

/* RTL Specific Styles */
.rtl .main-nav a::after {
    left: auto;
    right: 0;
}

.rtl .product-badge {
    left: auto;
    right: 1rem;
}

.rtl .product-wishlist {
    right: auto;
    left: 1rem;
}

.rtl .product-price .original-price {
    margin-left: 0;
    margin-right: 0.5rem;
}

.rtl .cart-count {
    right: auto;
    left: -8px;
}
