/*
Theme Name: MYPARIS
Theme URI: https://myparis.vn
Author: MYPARIS Studio
Author URI: https://myparis.vn
Description: Premium Vietnamese luxury fashion e-commerce WordPress theme by MYPARIS. Features Áo Dài, Đầm Kiểu, Set Bộ collections with elegant design, WooCommerce integration, and a sophisticated bilingual shopping experience.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
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: luxe-maison
Tags: e-commerce, fashion, luxury, woocommerce, custom-menu, featured-images, custom-logo, translation-ready
WooCommerce tested up to: 8.5
*/

/* ============================================
   DESIGN TOKENS (CSS Custom Properties)
   ============================================ */
:root {
    /* Colors */
    --color-primary: #000000;
    --color-secondary: #FFFFFF;
    --color-accent: #B8860B;
    --color-accent-light: #D4A843;
    --color-accent-dark: #8B6914;
    --color-cream: #F5F0E8;
    --color-cream-dark: #E8DFD0;
    --color-red: #C62828;
    --color-red-light: #EF5350;
    --color-text: #0A0A0A;
    --color-text-light: #757575;
    --color-text-muted: #999999;
    --color-bg: #FEFEFE;
    --color-bg-dark: #0A0A0A;
    --color-bg-alt: #F5F5F5;
    --color-border: #E5E5E5;
    --color-border-dark: #333333;
    --color-overlay: rgba(0, 0, 0, 0.5);
    --color-overlay-dark: rgba(0, 0, 0, 0.75);
    --color-success: #2D7D46;
    --color-error: #C62828;
    --color-warning: #E65100;

    /* Typography */
    --font-display: 'Baskervville', 'Times New Roman', Times, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Font Sizes */
    --text-xs: 0.6875rem;    /* 11px */
    --text-sm: 0.75rem;      /* 12px */
    --text-base: 0.8125rem;  /* 13px */
    --text-md: 0.875rem;     /* 14px */
    --text-lg: 1rem;         /* 16px */
    --text-xl: 1.125rem;     /* 18px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 2rem;        /* 32px */
    --text-4xl: 2.5rem;      /* 40px */
    --text-5xl: 3.5rem;      /* 56px */
    --text-6xl: 4.5rem;      /* 72px */

    /* Font Weights */
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;

    /* Line Heights */
    --leading-tight: 1.15;
    --leading-snug: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;

    /* Letter Spacing */
    --tracking-tight: -0.02em;
    --tracking-normal: 0;
    --tracking-wide: 0.05em;
    --tracking-wider: 0.1em;
    --tracking-widest: 0.2em;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 32px;
    --space-8: 40px;
    --space-9: 48px;
    --space-10: 56px;
    --space-11: 64px;
    --space-12: 80px;
    --space-13: 96px;
    --space-14: 128px;

    /* Border Radius */
    --radius-none: 0;
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --duration-instant: 150ms;
    --duration-fast: 200ms;
    --duration-normal: 300ms;
    --duration-slow: 450ms;
    --duration-slower: 600ms;
    --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-overlay: 400;
    --z-modal: 500;
    --z-toast: 600;

    /* Container */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1440px;
    --container-padding: 20px;

    /* Header */
    --header-height: 70px;
    --announcement-height: 36px;
}


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

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

body {
    font-family: var(--font-body);
    font-size: var(--text-md);
    font-weight: var(--weight-regular);
    line-height: var(--leading-normal);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--weight-regular);
    line-height: var(--leading-tight);
    overflow-wrap: break-word;
}


/* ============================================
   BASE TYPOGRAPHY
   ============================================ */
h1 {
    font-size: var(--text-5xl);
    letter-spacing: var(--tracking-tight);
}

h2 {
    font-size: var(--text-4xl);
    letter-spacing: var(--tracking-tight);
}

h3 {
    font-size: var(--text-3xl);
}

h4 {
    font-size: var(--text-2xl);
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

p {
    margin-bottom: var(--space-4);
}

strong, b {
    font-weight: var(--weight-semibold);
}

small {
    font-size: var(--text-sm);
}

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}

.text-display {
    font-family: var(--font-display);
}

.text-body {
    font-family: var(--font-body);
}

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


/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-2xl);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.container--narrow {
    max-width: var(--container-lg);
}

.container--wide {
    max-width: 1600px;
}

.section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
}

.section--large {
    padding-top: var(--space-14);
    padding-bottom: var(--space-14);
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

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

.hidden { display: none; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-default);
    position: relative;
    overflow: hidden;
}

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

.btn--primary:hover {
    background-color: #222;
    border-color: #222;
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

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

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

.btn--white:hover {
    background-color: transparent;
    color: var(--color-secondary);
}

.btn--ghost {
    background-color: transparent;
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.btn--ghost:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.btn--gold {
    background-color: var(--color-accent);
    color: var(--color-secondary);
    border-color: var(--color-accent);
}

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

.btn--sm {
    padding: 10px 20px;
    font-size: var(--text-xs);
}

.btn--lg {
    padding: 18px 48px;
    font-size: var(--text-md);
}

.btn--full {
    width: 100%;
}

.btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.btn:disabled,
.btn.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn.is-loading {
    color: transparent;
}

.btn.is-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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


/* ============================================
   LINKS & INTERACTIVE
   ============================================ */
.link {
    position: relative;
    display: inline-block;
    transition: color var(--duration-fast) var(--ease-default);
}

.link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width var(--duration-normal) var(--ease-default);
}

.link:hover::after {
    width: 100%;
}

.link--underline::after {
    width: 100%;
}

.link--underline:hover::after {
    width: 0;
}


/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    margin-bottom: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: var(--text-md);
    border: 1px solid var(--color-border);
    background-color: var(--color-secondary);
    transition: border-color var(--duration-fast) var(--ease-default);
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: -2px;
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

.form-input.is-error {
    border-color: var(--color-error);
}

.form-error {
    font-size: var(--text-sm);
    color: var(--color-error);
    margin-top: var(--space-1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 1px solid var(--color-border);
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--color-primary);
}


/* ============================================
   FOCUS MANAGEMENT
   ============================================ */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-3) var(--space-6);
    background: var(--color-primary);
    color: var(--color-secondary);
    z-index: var(--z-toast);
    transition: top var(--duration-fast);
}

.skip-link:focus {
    top: var(--space-2);
}


/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

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

.animate-fade-in { animation: fadeIn var(--duration-slow) var(--ease-out) both; }
.animate-fade-in-up { animation: fadeInUp var(--duration-slow) var(--ease-out) both; }
.animate-fade-in-down { animation: fadeInDown var(--duration-slow) var(--ease-out) both; }
.animate-slide-left { animation: slideInLeft var(--duration-slow) var(--ease-out) both; }
.animate-slide-right { animation: slideInRight var(--duration-slow) var(--ease-out) both; }

/* Elementor compatibility */
.elementor-page-content,
.site-main--elementor .entry-content,
.site-main--elementor-canvas .entry-content {
    width: 100%;
}

.page-content--elementor .entry-content,
.site-main--elementor .entry-content,
.site-main--elementor-canvas .entry-content {
    margin: 0;
}

.elementor-page-content .entry-content > .elementor,
.site-main--elementor .entry-content > .elementor,
.site-main--elementor-canvas .entry-content > .elementor {
    width: 100%;
}

/* Scroll-triggered animation classes */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade"] {
    transform: none;
}

[data-animate="slide-left"] {
    transform: translateX(-30px);
}

[data-animate="slide-left"].is-visible {
    transform: translateX(0);
}

[data-animate="slide-right"] {
    transform: translateX(30px);
}

[data-animate="slide-right"].is-visible {
    transform: translateX(0);
}

[data-animate="scale"] {
    transform: scale(0.95);
}

[data-animate="scale"].is-visible {
    transform: scale(1);
}

/* Stagger delays */
[data-delay="1"] { transition-delay: 100ms; }
[data-delay="2"] { transition-delay: 200ms; }
[data-delay="3"] { transition-delay: 300ms; }
[data-delay="4"] { transition-delay: 400ms; }
[data-delay="5"] { transition-delay: 500ms; }
[data-delay="6"] { transition-delay: 600ms; }
