/*
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; }

/* 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);
}

.container-fluid {
    width: 100%;
    padding-left: var(--space-6, 24px);
    padding-right: var(--space-6, 24px);
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
}

/* Lưới chính chia 2 cột bất đối xứng */
.versace-product-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8, 32px);
    margin-top: var(--space-4, 16px);
    margin-bottom: var(--space-12, 48px);
}

@media (min-width: 992px) {
    .versace-product-layout {
        grid-template-columns: 58% 42%;
        gap: var(--space-12, 48px);
    }
}

/* Cột Trái: Trình diễn ảnh dạng thẻ dọc phóng khoáng */
.versace-product-gallery {
    display: flex;
    flex-direction: column;
    gap: var(--space-4, 16px);
}

.versace-gallery__item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Cột Phải: Ghim cố định nội dung thông tin khi cuộn màn hình */
@media (min-width: 992px) {
    .versace-product-info-panel {
        position: relative;
    }
    
    .versace-sticky-content {
        position: -webkit-sticky;
        position: sticky;
        top: 100px; /* Khoảng cách cách mép trên màn hình, chỉnh tùy theo độ cao Header của bạn */
        max-height: calc(100vh - 140px);
        overflow-y: auto; /* Cho phép cuộn nội dung cột phải nếu thông tin quá dài */
        padding-right: var(--space-4, 16px);
    }
    
    /* Ẩn thanh cuộn thô kệch của cột phải để đảm bảo tính thẩm mỹ */
    .versace-sticky-content::-webkit-scrollbar {
        width: 4px;
    }
    .versace-sticky-content::-webkit-scrollbar-thumb {
        background: var(--color-cream-dark, #E8DFD0);
        border-radius: 2px;
    }
}

/* Định dạng Typography tinh tế chuẩn Luxury */
.product-info__label {
    display: block;
    font-size: var(--text-xs, 12px);
    letter-spacing: var(--tracking-widest, 0.15em);
    color: var(--color-text-muted, #707070);
    margin-bottom: var(--space-2, 8px);
}

.product-info__title {
    font-family: var(--font-serif, 'Baskervville', serif);
    font-size: calc(var(--text-xl, 20px) + 4px);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: var(--tracking-wider, 0.05em);
    margin-bottom: var(--space-3, 12px);
    color: var(--color-primary, #000000);
}

.product-info__price-box .price {
    font-size: var(--text-md, 16px);
    font-weight: 500;
    color: var(--color-primary, #000000);
    display: block;
    margin-bottom: var(--space-6, 24px);
}

.product-info__short-desc {
    font-size: var(--text-sm, 14px);
    line-height: 1.6;
    color: var(--color-text, #0A0A0A);
    margin-bottom: var(--space-8, 32px);
}

/* Định dạng lại khối Accordion (Details & Care) bằng thẻ HTML5 nguyên bản */
.versace-accordions {
    margin-top: var(--space-10, 40px);
    border-top: 1px solid var(--color-cream-dark, #E8DFD0);
}

.versace-accordion-item {
    border-bottom: 1px solid var(--color-cream-dark, #E8DFD0);
}

.versace-accordion-header {
    padding: var(--space-4, 16px) 0;
    font-size: var(--text-xs, 12px);
    letter-spacing: var(--tracking-widest, 0.15em);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Ẩn dấu mũi tên mặc định của trình duyệt trên thẻ summary */
.versace-accordion-header::-webkit-details-marker {
    display: none;
}

.versace-accordion-header .accordion-icon::before {
    content: '+';
    font-weight: 300;
    font-size: 16px;
}

.versace-accordion-item[open] .versace-accordion-header .accordion-icon::before {
    content: '—';
}

.versace-accordion-content {
    padding-bottom: var(--space-5, 20px);
    font-size: var(--text-sm, 14px);
    line-height: 1.6;
    color: var(--color-text, #0A0A0A);
}

/* Khu vực share mạng xã hội chân trang thông tin */
.product-info__share-minimal {
    margin-top: var(--space-6, 24px);
    display: flex;
    gap: var(--space-4, 16px);
    font-size: var(--text-xs, 12px);
}

.product-info__share-minimal span {
    color: var(--color-text-muted, #707070);
    letter-spacing: var(--tracking-wider, 0.05em);
}

.product-info__share-minimal a {
    color: var(--color-primary, #000000);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.product-info__share-minimal a:hover {
    color: var(--color-accent, #B8860B);
}

/* Đường phân cách phần sản phẩm liên quan */
.border-top {
    border-top: 1px solid var(--color-cream-dark, #E8DFD0);
    margin-top: var(--space-12, 48px);
    padding-top: var(--space-12, 48px);
}

[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; }

/* ============================================
   TÙY CHỈNH BANNER TRANG CỬA HÀNG
   ============================================ */
.post-type-archive-product .page-hero {
    /* Thay đường dẫn URL bên dưới bằng link ảnh của bạn */
    background-image: url('http://localhost:8888/MYPARIS/wp-content/uploads/2026/05/anh-1.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    /* Tăng độ cao cho banner để thấy rõ ảnh */
    min-height: 350px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Thêm lớp phủ mờ màu đen để chữ trắng nổi bật hơn trên nền ảnh */
.post-type-archive-product .page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.4); /* Độ mờ 40% */
    z-index: 1;
}

/* Đưa chữ lên trên lớp phủ và áp dụng font chữ hiển thị cao cấp */
.post-type-archive-product .page-hero .container {
    position: relative;
    z-index: 2;
}

.post-type-archive-product .page-hero__title {
    /* Gọi font Baskervville thanh lịch từ biến hệ thống của bạn */
    font-family: var(--font-display); 
    font-weight: 400;
    letter-spacing: var(--tracking-widest); /* Tạo khoảng cách chữ rộng, sang trọng */
    color: var(--color-secondary); /* Màu trắng */
    font-size: var(--text-5xl);
}
/* ============================================
   LÀM PHẲNG MENU SẮP XẾP WOOCOMMERCE
   ============================================ */
.woocommerce-ordering select.orderby {
    /* Xóa định dạng 3D mặc định của trình duyệt */
    appearance: none; 
    -webkit-appearance: none;
    -moz-appearance: none;
    
    /* Thiết lập nền và viền phẳng */
    background-color: transparent;
    border: 1px solid var(--color-border);
    border-radius: 0; /* Bo góc bằng 0 để tạo hình chữ nhật vuông vức */
    
    /* Chỉnh font chữ đồng nhất với giao diện */
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    
    /* Tạo khoảng cách và chèn icon mũi tên tự thiết kế */
    padding: 10px 36px 10px 16px;
    cursor: pointer;
    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='%230A0A0A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 10px;
    transition: border-color var(--duration-fast) var(--ease-default);
}

/* Đổi màu viền khi người dùng click vào */
.woocommerce-ordering select.orderby:focus {
    outline: none;
    border-color: var(--color-primary);
}
/* ==========================================================================
   FIX: SINGLE PRODUCT PAGE LAYOUT & OVERLAPS
   ========================================================================== */

/* 1. SỬA LỖI BADGE "NEW" ĐÈ LÊN TIÊU ĐỀ */
.product-info__sticky .product-card__badges {
    position: relative !important; /* Ép buộc hủy bỏ trạng thái trôi nổi */
    top: auto !important;
    left: auto !important;
    right: auto !important;
    display: inline-flex !important;
    margin-bottom: 16px !important; /* Tạo khoảng cách 16px đẩy tiêu đề xuống */
    background: transparent !important;
    width: auto !important;
    transform: none !important;
}

.product-info__sticky .product-card__badges .badge {
    position: relative !important;
    display: inline-block !important;
    padding: 4px 10px !important;
    font-size: 10px !important; /* Thu nhỏ chữ */
    letter-spacing: var(--tracking-widest) !important;
    border-radius: 2px !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

/* 2. SỬA LỖI ẢNH ZOOM TRÀN KHUNG & LÀM MƯỢT HIỆU ỨNG */
.product-gallery__slide,
.versace-gallery__item {
    position: relative;
    overflow: hidden;        /* QUAN TRỌNG: Khóa chặt ảnh không cho tràn ra ngoài khung */
    border-radius: var(--radius-sm);
    z-index: 1;
}

.product-gallery__slide img,
.versace-gallery__item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); /* Hiệu ứng mượt mà chuẩn Luxury */
}

/* Chỉ zoom nhẹ 5% bên trong khung, không làm lấn át trang web */
.product-gallery__slide:hover img,
.versace-gallery__item:hover img {
    transform: scale(1.05);  
}

/* 3. LÀM ĐẸP BỐ CỤC CHỌN BIẾN THỂ & NÚT MUA HÀNG */
.product-info__cart form.cart {
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
}

/* Làm phẳng và căn chỉnh Menu chọn Size/Màu */
.product-info__cart table.variations {
    width: 100%;
    margin-bottom: var(--space-5);
    border-collapse: collapse;
}

.product-info__cart table.variations td.label {
    width: 30%;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    font-weight: var(--weight-medium);
    padding-bottom: var(--space-3);
    vertical-align: middle;
}

.product-info__cart table.variations td.value {
    padding-bottom: var(--space-3);
}

.product-info__cart table.variations select {
    width: 100%;
    appearance: none;
    background-color: transparent;
    border: 1px solid var(--color-border);
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-text);
    border-radius: 0;
    cursor: pointer;
    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='%230A0A0A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.product-info__cart table.variations select:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Đồng bộ khu vực Số lượng và Nút Mua Hàng */
.woocommerce-variation-add-to-cart {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    margin-top: var(--space-4);
}

.product-info__cart .quantity input.qty {
    width: 60px;
    height: 50px;
    text-align: center;
    border: 1px solid var(--color-border);
    font-size: var(--text-md);
    background: transparent;
    border-radius: 0;
}

.product-info__cart button.single_add_to_cart_button {
    flex: 1; /* Giúp nút mua hàng trải dài lấp đầy khoảng trống */
    height: 50px;
    background-color: var(--color-primary);
    color: var(--color-secondary);
    border: none;
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    cursor: pointer;
    transition: background-color var(--duration-fast);
}

.product-info__cart button.single_add_to_cart_button:hover {
    background-color: var(--color-accent); /* Đổi sang màu vàng đồng khi hover */
}
/* ==========================================================================
   TÙY CHỈNH Ô PHÂN LOẠI (SWATCHES) VÀ KHỐI MUA HÀNG
   ========================================================================== */

/* 1. Thiết kế các ô nút bấm phân loại */
.luxe-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.luxe-swatch-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    padding: 8px 16px;
    font-size: var(--text-sm);
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--duration-fast);
    text-transform: uppercase;
}

.luxe-swatch-btn:hover {
    border-color: var(--color-primary);
}

/* Trạng thái khi được chọn */
.luxe-swatch-btn.is-selected {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    border-color: var(--color-primary);
}

/* 2. Căn chỉnh khối Số lượng và Nút mua hàng */
.woocommerce-variation-add-to-cart,
.cart:not(.variations_form) {
    display: flex;
    gap: var(--space-3);
    align-items: stretch; /* Ép tất cả các thành phần có chiều cao bằng nhau */
    margin-top: var(--space-6);
    flex-wrap: wrap;
}

/* Ô nhập số lượng */
.product-info__cart .quantity {
    margin: 0;
}

.product-info__cart .quantity input.qty {
    width: 60px;
    height: 50px;
    text-align: center;
    border: 1px solid var(--color-border);
    font-size: var(--text-md);
    background: transparent;
    border-radius: 0;
    margin: 0;
    padding: 0;
}

/* Định dạng chung cho cả 2 nút */
.product-info__cart button.single_add_to_cart_button,
.product-info__cart button.single_buy_now_button {
    flex: 1; /* Chia đều không gian cho 2 nút */
    height: 50px;
    min-width: 160px;
    border: none;
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    font-size: 11px;
    font-weight: var(--weight-medium);
    cursor: pointer;
    transition: background-color var(--duration-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Nút Thêm vào giỏ hàng (Màu đen) */
.product-info__cart button.single_add_to_cart_button {
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

.product-info__cart button.single_add_to_cart_button:hover {
    background-color: #333333;
}

/* Nút Mua Ngay (Màu vàng đồng Luxury) */
.product-info__cart button.single_buy_now_button {
    background-color: var(--color-accent);
    color: var(--color-secondary);
}

.product-info__cart button.single_buy_now_button:hover {
    background-color: var(--color-accent-dark);
}
/* ==========================================================================
   CĂN CHỈNH THẲNG HÀNG NHÃN "MÀU/SIZE" VÀ CÁC NÚT BẤM (SWATCHES)
   ========================================================================== */

/* 1. Ép hàng của bảng thành một đường thẳng ngang */
.product-info__cart table.variations tbody tr {
    display: flex !important;
    align-items: center !important; /* Căn giữa chính xác theo chiều dọc */
    margin-bottom: 20px !important;
}

/* 2. Xóa bỏ toàn bộ padding/margin của tất cả các ô (Bao gồm cả thẻ th và td) */
.product-info__cart table.variations th,
.product-info__cart table.variations td {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* 3. Xử lý cột Nhãn chữ MÀU/SIZE (WooCommerce dùng thẻ <th>) */
.product-info__cart table.variations th.label,
.product-info__cart table.variations td.label {
    width: 65px !important; 
    padding-right: 15px !important;
    display: flex !important;
    align-items: center !important;
}

/* 4. Khóa chặt thẻ <label> ẩn bên trong để không bị trôi tuột xuống dưới */
.product-info__cart table.variations th.label label,
.product-info__cart table.variations td.label label {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* 5. Cột chứa các Nút bấm Swatches */
.product-info__cart table.variations td.value {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
}

/* 6. Đảm bảo khung bọc nút bấm không tự sinh ra khoảng trống */
.luxe-swatches {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    gap: 8px !important;
}
/* ==========================================================================
   TINH CHỈNH KHOẢNG CÁCH NÚT PHÂN LOẠI & NÚT "XÓA"
   ========================================================================== */

/* 1. Tăng khoảng cách đều nhau giữa các ô nút bấm (Đỏ, Đen, Hồng) */
.luxe-swatches {
    gap: 12px !important; /* Tăng khoảng cách từ 8px lên 12px cho thoáng */
    flex-wrap: wrap !important;
}

/* 2. Đẩy chữ "Xóa" ra xa và định dạng lại cho sang trọng */
.product-info__cart table.variations a.reset_variations {
    margin-left: 16px !important; /* Tạo khoảng cách đều so với khối nút */
    font-size: 11px !important;
    text-transform: uppercase !important;
    color: #707070 !important; /* Màu xám tinh tế */
    text-decoration: underline !important;
    text-underline-offset: 3px !important; /* Hạ đường gạch chân xuống một chút */
    display: inline-flex !important;
    align-items: center !important;
}
/* ==========================================================================
   TÙY CHỈNH NỘI DUNG CHI TIẾT SẢN PHẨM (ACCORDION)
   ========================================================================== */

/* 1. Giảm cỡ chữ tổng thể của cả 3 tab */
.luxe-accordion-text,
.luxe-accordion-text p,
.luxe-accordion-text span {
    font-size: 13px !important; 
    line-height: 1.65 !important;
    color: #555555 !important; /* Xám than tinh tế */
}

/* 2. Tạo khoảng cách giữa các đoạn văn */
.luxe-accordion-text p {
    margin-bottom: 12px;
}
.luxe-accordion-text p:last-child {
    margin-bottom: 0;
}

/* 3. QUAN TRỌNG: Ẩn hoàn toàn chữ "Mô tả" lớn do the_content() sinh ra */
.luxe-accordion-text h1,
.luxe-accordion-text h2,
.luxe-accordion-text h3 {
    display: none !important; 
}

/* 4. Làm nổi bật các từ khóa in đậm (VD: Giao hàng:, Đổi trả:) */
.luxe-accordion-text strong {
    color: #000000 !important;
    font-weight: 500;
}
/* ==========================================================================
   TÙY CHỈNH PHẦN COMPLETE THE LOOK (SẢN PHẨM LIÊN QUAN)
   ========================================================================== */

/* 1. Đảm bảo phần chứa chiếm toàn bộ 100% chiều rộng trang */
.related-products .products-grid {
    display: block !important; 
    width: 100% !important;
}

.related.products {
    width: 100% !important;
}

/* 2. Ẩn tiêu đề "Sản phẩm tương tự" bị lặp thừa */
.related.products > h2 {
    display: none !important;
}

/* 3. Dàn trang các sản phẩm thành 4 cột bằng công cụ CSS Grid */
.related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; /* Chia chính xác làm 4 cột bằng nhau */
    gap: 30px !important; /* Tạo khoảng thở (khoảng cách) 30px giữa các sản phẩm */
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* 4. Định dạng lại thẻ sản phẩm để hình ảnh và chữ to ra */
.related.products ul.products li.product {
    width: 100% !important; /* Ép thẻ sản phẩm lấp đầy cột của nó */
    margin: 0 !important;
    text-align: center; /* Căn giữa chữ để trông gọn gàng hơn */
}

/* Kéo giãn hình ảnh lấp đầy thẻ */
.related.products ul.products li.product img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
    border-radius: 4px; /* Bo góc nhẹ cho hình ảnh */
}

/* 5. Tinh chỉnh lại phông chữ để không bị rớt dòng xấu xí */
.related.products ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px !important;
    margin-top: 15px !important;
    line-height: 1.4 !important;
    color: #000000 !important;
    text-transform: uppercase; /* In hoa tên sản phẩm */
}

.related.products ul.products li.product .price {
    font-size: 13px !important;
    color: #555555 !important;
    margin-top: 5px !important;
}
/* ==========================================================================
   LUXE HERO BANNER TÙY CHỈNH
   ========================================================================== */

.luxe-hero {
    position: relative;
    width: 100%;
    /* Sử dụng biến từ HTML, nếu không có sẽ mặc định là 100vh */
    min-height: var(--hero-height, 100vh); 
    display: flex;
    /* Sử dụng biến để căn chỉnh dọc và ngang */
    align-items: var(--align-vertical, center);
    justify-content: var(--align-horizontal, center);
    overflow: hidden;
}

/* Định dạng Ảnh Nền */
.luxe-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Định dạng Lớp phủ (Giúp chữ trắng dễ đọc trên nền sáng) */
.luxe-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* Tăng giảm 0.2 để chỉnh độ tối */
    z-index: 2;
}

/* Định dạng Khối Nội Dung */
.luxe-hero__content {
    position: relative;
    z-index: 3;
    width: 100%;
    /* Sử dụng biến căn lề chữ */
    text-align: var(--text-align, center);
    padding: 20px;
}

/* Tùy chỉnh Phông chữ */
.luxe-hero__subtitle {
    display: block;
    font-size: 13px;
    letter-spacing: 0.2em;
    color: #ffffff;
    margin-bottom: 15px;
}

.luxe-hero__title {
    font-family: var(--font-display), serif;
    font-size: 60px; /* Có thể điều chỉnh kích thước tiêu đề tại đây */
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 30px;
    font-weight: 400;
}

/* Nút bấm SHOP NOW */
.luxe-hero__btn {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid #ffffff;
    color: #ffffff;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.luxe-hero__btn:hover {
    background-color: #ffffff;
    color: #000000;
}
/* 1. Mặc định: hiện logo trắng, ẩn logo đen */
.site-logo .site-logo__white { display: block !important; }
.site-logo .site-logo__black { display: none !important; }

/* 2. Khi cuộn trang (Header có class is-sticky) */
.site-header.is-sticky .site-logo .site-logo__white { display: none !important; }
.site-header.is-sticky .site-logo .site-logo__black { display: block !important; }

/* 3. Cố định kích thước */
.site-logo img {
    height: 40px !important; 
    width: auto !important;
    display: block !important;
}
/* ==========================================================================
   CẤU HÌNH LOGO THÔNG MINH: ĐỔI MÀU TRÊN TRANG HERO - CỐ ĐỊNH ĐEN TRÊN TRANG THƯỜNG
   ========================================================================== */

/* --- 1. ĐỊNH DẠNG CHO TRANG CÓ TRONG SUỐT (Trang chủ & Trang About) --- */
/* Khi ở đỉnh trang: Hiện logo trắng, ẩn logo đen trên nền ảnh tối */
.home .site-logo .site-logo__white,
.page-template-page-about .site-logo .site-logo__white { 
    display: block !important; 
}
.home .site-logo .site-logo__black,
.page-template-page-about .site-logo .site-logo__black { 
    display: none !important; 
}

/* Khi cuộn chuột xuống (>50px): Ẩn logo trắng, hiện logo đen trên thanh menu sticky trắng */
.home .site-header.is-sticky .site-logo .site-logo__white,
.page-template-page-about .site-header.is-sticky .site-logo .site-logo__white { 
    display: none !important; 
}
.home .site-header.is-sticky .site-logo .site-logo__black,
.page-template-page-about .site-header.is-sticky .site-logo .site-logo__black { 
    display: block !important; 
}


/* --- 2. ĐỊNH DẠNG CHO TẤT CẢ CÁC TRANG CÒN LẠI (Cửa hàng, Sản phẩm, Tin tức...) --- */
/* Sử dụng bộ lọc loại trừ :not() để ép các trang thường luôn luôn cố định ẩn trắng, hiện đen */
body:not(.home):not(.page-template-page-about) .site-logo .site-logo__white {
    display: none !important;
}
body:not(.home):not(.page-template-page-about) .site-logo .site-logo__black {
    display: block !important;
}


/* --- 3. ĐỒNG BỘ KÍCH THƯỚC LOGO HỆ THỐNG --- */
.site-logo img {
    height: 40px !important; 
    width: auto !important;
    display: block !important;
    transition: opacity 0.3s ease !important;
}
/* ==========================================================================
   FIX: MENU CẤP 3 (PHỤ KIỆN) & ĐỒNG BỘ MÀU NỀN MENU THEO HEADER
   ========================================================================== */

/* --- 1. XỬ LÝ MENU CẤP 3 (CHỈ HIỂN THỊ KHI HOVER VÀO PHỤ KIỆN) --- */
/* Đảm bảo mục cha làm điểm neo vị trí */
.mega-menu__dropdown li.menu-item-has-children {
    position: relative !important;
}

/* Ẩn menu con mặc định và định dạng lại thành khối thả xuống */
.mega-menu__dropdown li.menu-item-has-children > ul.sub-menu,
.mega-menu__dropdown li.menu-item-has-children > .mega-menu__sub-list {
    display: none !important;
    position: absolute !important;
    top: 100% !important; /* Đẩy xuống ngay dưới viền chữ Phụ kiện */
    left: 50% !important;
    transform: translateX(-50%) !important;
    min-width: 200px !important;
    padding: 15px 0 !important;
    z-index: 9999 !important;
    list-style: none !important;
}

/* ==========================================================================
   BẢN CHUẨN HOÁ: CẤU TRÚC MENU 3 & LOGIC MÀU SẮC ĐỘC LẬP TỪNG TRANG
   ========================================================================== */

/* --- 1. CẤU TRÚC: ÉP MENU 3 XẾP DỌC TỪ TRÊN XUỐNG --- */
.mega-menu__dropdown li.menu-item-has-children {
    position: relative !important;
}

.mega-menu__dropdown li.menu-item-has-children > .mega-menu__sub-list,
.mega-menu__dropdown li.menu-item-has-children > ul.sub-menu {
    display: none !important; /* Mặc định ẩn */
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 220px !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    z-index: 9999 !important;
}

.mega-menu__dropdown li.menu-item-has-children:hover > .mega-menu__sub-list,
.mega-menu__dropdown li.menu-item-has-children:hover > ul.sub-menu {
    display: block !important; /* Hiện khi hover */
    animation: fadeInDown var(--duration-fast) var(--ease-out) both;
}

/* Xóa bỏ chia cột ngang, ép rớt dòng dọc */
.mega-menu__dropdown li.menu-item-has-children .mega-menu__list > li,
.mega-menu__dropdown li.menu-item-has-children ul.sub-menu > li {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Căn trái thẳng hàng chữ Kính Mắt, Túi... */
.mega-menu__dropdown li.menu-item-has-children .mega-menu__list > li > a,
.mega-menu__dropdown li.menu-item-has-children ul.sub-menu > li > a {
    display: block !important;
    width: 100% !important;
    padding: 12px 24px !important;
    text-align: left !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
}

/* --- 2. LOGIC MÀU SẮC MẶC ĐỊNH (CHO 99% CÁC TRANG CỦA WEBSITE) --- */
/* Các trang Cửa hàng, Sản phẩm, Liên hệ... LUÔN LUÔN dùng Menu nền trắng, chữ đen */
.site-header .mega-menu__dropdown,
.site-header .mega-menu__dropdown .mega-menu__sub-list,
.site-header .mega-menu__dropdown ul.sub-menu {
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--color-border) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
    opacity: 1 !important;
}

.site-header .mega-menu__dropdown a,
.site-header .mega-menu__dropdown li.menu-item-has-children > .mega-menu__sub-list a,
.site-header .mega-menu__dropdown li.menu-item-has-children > ul.sub-menu a {
    color: var(--color-primary) !important; /* Chữ màu Đen */
}

.site-header .mega-menu__dropdown a:hover,
.site-header .mega-menu__dropdown li.menu-item-has-children > .mega-menu__sub-list a:hover,
.site-header .mega-menu__dropdown li.menu-item-has-children > ul.sub-menu a:hover {
    color: var(--color-accent) !important; /* Chữ đổi màu vàng */
    background-color: var(--color-bg-alt) !important;
}


/* --- 3. LOGIC MÀU SẮC NGOẠI LỆ: CHỈ DÀNH RIÊNG CHO TRANG CHỦ --- */
/* Sử dụng class .home để giới hạn: Chỉ làm nền trong suốt khi ở TRANG CHỦ và CHƯA CUỘN TRANG */
.home .site-header:not(.is-sticky) .mega-menu__dropdown,
.home .site-header:not(.is-sticky) .mega-menu__dropdown .mega-menu__sub-list,
.home .site-header:not(.is-sticky) .mega-menu__dropdown ul.sub-menu {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.home .site-header:not(.is-sticky) .mega-menu__dropdown a,
.home .site-header:not(.is-sticky) .mega-menu__dropdown li.menu-item-has-children > .mega-menu__sub-list a,
.home .site-header:not(.is-sticky) .mega-menu__dropdown li.menu-item-has-children > ul.sub-menu a {
    color: #ffffff !important; /* Chữ màu Trắng để nổi trên ảnh Banner */
}

.home .site-header:not(.is-sticky) .mega-menu__dropdown a:hover,
.home .site-header:not(.is-sticky) .mega-menu__dropdown li.menu-item-has-children > .mega-menu__sub-list a:hover,
.home .site-header:not(.is-sticky) .mega-menu__dropdown li.menu-item-has-children > ul.sub-menu a:hover {
    color: var(--color-accent) !important; /* Vẫn giữ chữ vàng khi hover */
    background-color: rgba(255, 255, 255, 0.05) !important;
}