/* ==========================================================================
   Thi Lê Beauty — Luxury Minimal Design System
   Fonts: Playfair Display (Headings) + Inter (Body)
   Palette: Cream (#FAF7F2), Dark (#2B2420), Nude (#8B6F5C), Gold (#C9A876)
   ========================================================================== */

/* === Design Tokens === */
:root {
    /* Colors */
    --bg: #FAF7F2;
    --bg-white: #FFFFFF;
    --bg-warm: #F5F0E8;
    
    --text-primary: #2B2420;
    --text-secondary: #5C514A;
    --text-muted: #8B7E76;
    --text-light: #B5AAA2;
    
    --accent-dark: #2B2420;
    --accent-nude: #8B6F5C;
    --accent-gold: #C9A876;
    --accent-gold-light: rgba(201, 168, 118, 0.15);
    
    --border: rgba(43, 36, 32, 0.08);
    --border-medium: rgba(43, 36, 32, 0.15);
    
    --shadow-sm: 0 2px 8px rgba(43, 36, 32, 0.06);
    --shadow-md: 0 8px 24px rgba(43, 36, 32, 0.08);
    --shadow-lg: 0 16px 48px rgba(43, 36, 32, 0.12);
    --shadow-hover: 0 12px 32px rgba(43, 36, 32, 0.14);
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    
    /* Spacing */
    --section-gap: 7rem;
    --container-max: 1200px;
    
    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: 0.3s ease;
    --transition-smooth: 0.5s var(--ease-out);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* === Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; font-size: 16px; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

/* === Layout === */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding { padding: var(--section-gap) 0; }
.text-center { text-align: center; }

/* === Typography === */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.25;
    color: var(--text-primary);
}

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.section-header { margin-bottom: 3.5rem; }

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-dark);
    color: #fff;
    border-color: var(--accent-dark);
}

.btn-primary:hover {
    background: var(--accent-nude);
    border-color: var(--accent-nude);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-medium);
}

.btn-ghost:hover {
    border-color: var(--accent-gold);
    color: var(--accent-nude);
}

.btn-block { width: 100%; }

/* === Header === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    background: rgba(250, 247, 242, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.site-header.scrolled {
    padding: 0.8rem 0;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.logo-accent {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 400;
    font-style: italic;
    color: var(--accent-gold);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active { color: var(--text-primary); }

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Hamburger Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 28px;
    height: 20px;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* === Hero Section === */
.hero {
    padding-top: 7.5rem;
    padding-bottom: 4rem;
    min-height: auto;
    display: flex;
    align-items: center;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--accent-nude);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 480px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-frame {
    position: relative;
    width: 100%;
    max-width: 440px;
}

.hero-photo {
    width: 100%;
    height: 560px;
    object-fit: cover;
    object-position: center 15%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero-accent-line {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 2px solid var(--accent-gold);
    border-radius: var(--radius-lg);
    opacity: 0.4;
    z-index: -1;
}

/* === About Section === */
.about-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 820px;
    margin: 0 auto;
}

.about-visual {
    position: relative;
}

.about-photo {
    width: 100%;
    height: 540px;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.about-accent-box {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent-dark);
    color: #fff;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.accent-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--accent-gold);
    line-height: 1;
}

.accent-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.7);
}

.about-bio {
    margin-bottom: 2.5rem;
}

.about-bio p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.highlight-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.highlight-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: var(--accent-gold-light);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.highlight-item h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.highlight-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Achievements */
.about-achievements {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.achievements-title {
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-body);
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.achievements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: var(--bg-white);
    border: 1px dashed var(--border-medium);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.achievement-item i {
    color: var(--accent-gold);
    font-size: 1rem;
    min-width: 20px;
    text-align: center;
}

/* ============================================================
   LOGO MARQUEE SECTION — Cream Background Infinite Carousel
   ============================================================ */
.logo-marquee-section {
    padding: 2.8rem 0;
    background: #FFFDFB;
    border-top: 1px solid rgba(197, 139, 115, 0.15);
    border-bottom: 1px solid rgba(197, 139, 115, 0.15);
    overflow: hidden;
    position: relative;
}

.logo-marquee-title {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 2.2px;
    color: #C58B73;
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-family: var(--font-body);
}

.logo-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.logo-marquee-track {
    display: flex;
    align-items: center;
    gap: 3.6rem;
    width: max-content;
    animation: seamless-logo-scroll 28s linear infinite;
}

.logo-marquee-wrapper:hover .logo-marquee-track,
.logo-marquee-section:hover .logo-marquee-track,
.logo-marquee-track:hover {
    animation-play-state: paused !important;
}

@keyframes seamless-logo-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.logo-marquee-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    min-width: 0;
    opacity: 0.85;
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo-marquee-item:hover {
    opacity: 1;
    transform: scale(1.08);
}

.brand-logo-img {
    height: 40px;
    max-height: 44px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
    transition: all 0.3s ease;
}

.logo-marquee-item:hover .brand-logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(197, 139, 115, 0.25));
}

.brand-logotype {
    color: #4A3E3C;
    display: inline-block;
    transition: color 0.3s ease;
}

.logo-marquee-item:hover .brand-logotype {
    color: #C58B73;
}

.fau-logo { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.6rem; letter-spacing: 5px; text-transform: uppercase; }
.orgahue-logo { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1.45rem; letter-spacing: 5px; text-transform: uppercase; }
.rilastil-logo { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.75rem; letter-spacing: 4px; text-transform: uppercase; }
.ekseption-logo { font-family: 'Inter', sans-serif; font-weight: 300; font-size: 1.4rem; letter-spacing: 6px; text-transform: lowercase; }
.fusion-logo { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.5rem; letter-spacing: 2px; text-transform: uppercase; }
.fusion-logo .logo-sub { font-weight: 300; opacity: 0.75; margin-left: 4px; font-size: 1.25rem; }
.wellmaxx-logo { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.5rem; letter-spacing: 4px; text-transform: uppercase; }
.skinceuticals-logo { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1.3rem; letter-spacing: 3px; text-transform: uppercase; }

/* === Brands Section === */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.brand-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition-smooth);
}

.brand-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-gold);
}

.brand-card-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.brand-card-origin {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 0.8rem;
}

.brand-card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* === Products Section & Filter === */
.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 2rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-medium);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.55rem 1.3rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-dark);
    color: #fff;
    border-color: var(--accent-dark);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

/* Product Card — Clean, informational, no commerce elements */
.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition-smooth);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(201, 168, 118, 0.3);
}

.product-card-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-warm);
    position: relative;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-badge {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: var(--accent-dark);
    color: var(--accent-gold);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    z-index: 2;
}

.product-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-brand {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 0.4rem;
}

.product-card-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.product-card-benefit {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
}

.product-card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-card-category {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.product-card-more {
    font-size: 0.78rem;
    color: var(--accent-nude);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition);
}

.product-card:hover .product-card-more {
    color: var(--accent-gold);
}

/* === Contact Section === */
.contact-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

.contact-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-channel {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.contact-channel:hover {
    border-color: var(--accent-gold);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.channel-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
}

.channel-icon.zalo { background: #0068FF; }
.channel-icon.facebook { background: #1877F2; }
.channel-icon.shopee { background: #EE4D2D; }

.contact-channel strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.1rem;
}

.contact-channel span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Contact Form */
.contact-form-wrap {
    background: var(--bg);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.form-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px var(--accent-gold-light);
}

.form-input::placeholder { color: var(--text-light); }

/* === Footer === */
.site-footer {
    background: var(--accent-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 3.5rem 0 1.5rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    max-width: 300px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-brand .logo-main {
    color: #fff;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links a:hover { color: var(--accent-gold); }

.footer-socials {
    display: flex;
    gap: 0.8rem;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--accent-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* === Product Detail Modal === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(43, 36, 32, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: var(--transition-smooth);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-primary);
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--accent-dark);
    color: #fff;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
}

.modal-image {
    background: var(--bg-warm);
}

.modal-image img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
}

.modal-info {
    padding: 2rem;
}

.modal-brand {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent-gold);
    margin-bottom: 0.4rem;
    display: block;
}

.modal-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.modal-category {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-section h4 i {
    color: var(--accent-gold);
    font-size: 0.9rem;
}

.modal-section p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.ingredient-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ingredient-tag {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent-nude);
    background: var(--accent-gold-light);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}

.modal-cta {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.modal-cta .btn {
    font-size: 0.85rem;
    padding: 0.75rem 1.5rem;
}

/* === Toast === */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent-dark);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
}

.toast.show { opacity: 1; visibility: visible; transform: translateY(0); }
.toast i { color: var(--accent-gold); font-size: 1.1rem; }

/* === Fade-in Animation === */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-desc { margin: 0 auto 2.5rem; }
    .hero-cta { justify-content: center; }
    
    .hero-visual { order: -1; }
    .hero-photo { height: 400px; max-width: 360px; margin: 0 auto; }
    .hero-accent-line { display: none; }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-photo { height: 360px; }
    .about-accent-box { bottom: -15px; right: 15px; }

    .products-grid { grid-template-columns: repeat(2, 1fr); }

    .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .contact-card { padding: 2.5rem; }

    .modal-body { grid-template-columns: 1fr; }
    .modal-image img { min-height: 250px; max-height: 300px; }
}

@media (max-width: 768px) {
    :root { --section-gap: 5rem; }
    
    .container { padding: 0 1.2rem; }

    .menu-toggle { display: flex; }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition-smooth);
        z-index: 999;
    }

    .main-nav.active { right: 0; }

    .main-nav .nav-link {
        font-size: 1.1rem;
    }

    .hero {
        padding-top: 6.5rem;
        min-height: auto;
    }

    .hero-title { font-size: 2.5rem; }
    .hero-photo { height: 320px; }

    .products-grid { grid-template-columns: 1fr; }

    .brands-grid { grid-template-columns: 1fr 1fr; }

    .achievements-grid { grid-template-columns: 1fr; }

    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
    .footer-brand p { margin: 0.5rem auto 0; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }
    
    .contact-card { padding: 1.5rem; }
    .contact-form-wrap { padding: 1.5rem; }
    
    .brands-grid { grid-template-columns: 1fr; }
    
    .filter-tabs { gap: 0.4rem; }
    .filter-btn { padding: 0.45rem 1rem; font-size: 0.78rem; }
}

/* Catalog integration: real product images, one card with size field. */
[hidden] { display: none !important; }
.brand-name-strip { display:flex; flex-wrap:wrap; justify-content:center; gap:2rem; font-weight:600; letter-spacing:2px; }
.catalog-controls { display:grid; grid-template-columns:2fr 1fr; gap:1rem; margin:2rem auto 0; max-width:760px; text-align:left; }
.catalog-controls label { display:flex; flex-direction:column; gap:.5rem; font-size:.85rem; }
.catalog-controls input,.catalog-controls select { width:100%; padding:.85rem 1rem; border:1px solid var(--border-medium); border-radius:8px; background:white; color:var(--text-primary); font:inherit; }
.catalog-count,.catalog-note { margin-top:1rem; font-size:.85rem; color:var(--text-secondary); }
.catalog-empty { grid-column:1/-1; text-align:center; padding:2rem; }
.product-card { text-align:left; font:inherit; color:inherit; width:100%; }
.product-card-image { display:flex; align-items:center; justify-content:center; background:#fff; }
.product-card-image img { object-fit:contain; padding:1rem; }
.product-card-body { width:100%; }
.product-card-name { min-height:3em; }
.product-size { display:flex; flex-direction:column; gap:.3rem; padding:.75rem 1rem; margin-top:.8rem; border:1px solid var(--border-medium); border-radius:8px; background:var(--bg); font-size:.85rem; }
.product-size strong { font-size:.7rem; font-weight:500; color:var(--text-secondary); }
.product-size span { font-weight:600; }
.product-card-footer { gap:.5rem; }
.product-card-category { color:var(--text-secondary); }
.image-placeholder { display:flex; min-height:200px; align-items:center; justify-content:center; text-align:center; padding:2rem; color:var(--text-secondary); font-size:.85rem; }
.modal-image { background:#fff; display:flex; align-items:center; justify-content:center; }
.modal-image img { object-fit:contain; padding:1rem; height:auto; min-height:0; max-height:500px; }
.modal-cta { display:flex; gap:.5rem; flex-wrap:wrap; margin-top:1rem; }
.catalog-source { display:inline-block; margin-top:1rem; text-decoration:underline; font-size:.8rem; }
#modalDescription { margin-top:1rem; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible { outline:3px solid #927346; outline-offset:4px; }
.menu-toggle { z-index:1001; }
@media(max-width:600px) { .catalog-controls {grid-template-columns:1fr;} .modal-overlay {padding:1rem;} .modal-info {padding:1.25rem;} .brand-name-strip {gap:1rem;font-size:.8rem;} }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after {scroll-behavior:auto !important;animation:none !important;transition:none !important;} }


/* === Thi Le Beauty visual refinement === */
.hero-title em{color:var(--accent-nude);font-style:italic}
.hero-tagline{max-width:500px}
.logo-marquee-track{animation-duration:34s}
.brand-logo-postquam{height:42px;width:140px;object-fit:contain}
.brands{display:none}
.about-achievements{display:none!important}
.featured-products-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem;margin:1.5rem 0 1rem}
.catalog-more-btn{display:flex;width:max-content;margin:1rem auto 2rem}
.catalog-preview-cta{margin-top:2.5rem}
.catalog-back{margin-top:3rem;text-align:center}
.catalog-back .btn i{margin-right:.5rem}
@media(max-width:1024px){.featured-products-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.featured-products-grid{grid-template-columns:1fr}.hero-title{font-size:2.35rem}.logo-marquee-track{gap:2.4rem}.logo-marquee-item{min-width:0}}
.featured-products-grid .product-card{display:flex!important}
.products-all-grid{display:none}
.products-all-grid.is-expanded{display:grid}
.featured-products-grid .product-card-image{display:flex}
.about-layout{align-items:center}
.about-bio p+p{margin-top:.85rem}
.about-visual{max-width:470px}
@media(max-width:1024px){.about-visual{margin:0 auto}}
/* === Official brand logo rail === */
.logo-marquee-wrapper{padding:0 2rem;overflow:hidden}
.logo-marquee-track{gap:3.4rem;animation-duration:36s;will-change:transform}
.logo-marquee-item{width:auto;min-width:0;height:60px;padding:0;opacity:.9}
.brand-logo-img{width:auto;height:42px;max-width:none;object-fit:contain}
.logo-marquee-item:hover{opacity:1;transform:scale(1.03)}
@media(max-width:600px){.logo-marquee-wrapper{padding:0 1rem}.logo-marquee-track{gap:2.2rem}.logo-marquee-item{width:auto;min-width:0;padding:0;height:52px}.brand-logo-img{height:34px;max-width:none}}

/* === Mobile-first product detail polish === */
.detail-intro{font-size:.95rem;line-height:1.7;color:var(--text-secondary);margin:1rem 0 1.15rem}
.detail-section{padding-top:1rem;margin-top:1rem;border-top:1px solid var(--border)}
.detail-section h4{font-family:var(--font-body);font-size:.86rem;font-weight:700;letter-spacing:.3px;margin-bottom:.65rem}
.ingredient-tags{display:flex;flex-wrap:wrap;gap:.45rem}
.ingredient-tag{font-size:.76rem;padding:.38rem .7rem;background:var(--accent-gold-light);border:1px solid rgba(201,168,118,.18);border-radius:999px;color:var(--accent-nude);line-height:1.25}
.benefit-list{margin:0;padding-left:1.15rem;color:var(--text-secondary);font-size:.88rem;line-height:1.65}
.benefit-list li+li{margin-top:.35rem}
.modal-content{max-height:min(88vh,760px)}
@media(max-width:768px){
 body{font-size:15px}
 .site-header{padding:.85rem 0}
 .container{padding-left:1rem;padding-right:1rem}
 .hero{padding-top:6.5rem;padding-bottom:3.5rem}
 .hero-layout{gap:1.6rem}
 .hero-content{text-align:left}
 .hero-title{font-size:clamp(2.35rem,11vw,3.25rem);line-height:1.08;margin-bottom:1rem}
 .hero-tagline{font-size:1rem;line-height:1.5;margin-bottom:1rem}
 .hero-desc{font-size:.9rem;line-height:1.7;margin-bottom:1.5rem}
 .hero-cta{align-items:stretch;gap:.7rem}
 .hero-cta .btn{width:100%;padding:.8rem 1rem}
 .hero-visual{order:-1}
 .hero-photo{height:min(72vw,350px);border-radius:18px}
 .logo-marquee-section{padding:1.8rem 0}
 .logo-marquee-title{font-size:.7rem;letter-spacing:1.5px;margin-bottom:1.2rem}
 .logo-marquee-wrapper{padding:0 .5rem}
 .logo-marquee-item{width:auto;min-width:0;height:56px;padding:0}
 .brand-logo-img{height:32px;max-width:none}
 .about{padding-top:3.5rem;padding-bottom:3.5rem}
 .about-photo{height:330px}
 .about-content .section-title{font-size:1.8rem}
 .highlight-item{gap:.8rem}
 .highlight-icon{width:40px;height:40px;min-width:40px;font-size:.95rem}
 .catalog-controls{margin-top:1.4rem;gap:.7rem}
 .filter-tabs{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;padding-bottom:.35rem;scrollbar-width:none}
 .filter-tabs::-webkit-scrollbar{display:none}
 .filter-btn{flex:0 0 auto;padding:.5rem .9rem;font-size:.76rem}
 .featured-products-grid{gap:1rem}
 .product-card-body{padding:1rem}
 .product-card-name{font-size:1rem;min-height:0}
 .product-card-footer{align-items:flex-start;flex-direction:column;gap:.4rem}
 .products.section-padding{padding-top:3.5rem;padding-bottom:3.5rem}
 .modal-overlay{padding:.6rem;align-items:flex-end}
 .modal-content{max-height:92vh;border-radius:20px 20px 0 0}
 .modal-body{display:block}
 .modal-image img{width:100%;max-height:34vh;padding:.7rem}
 .modal-info{padding:1.1rem 1rem 1.4rem}
 .modal-name{font-size:1.35rem;padding-right:2rem}
 .modal-cta{position:sticky;bottom:0;background:var(--bg-white);padding-top:.8rem}
 .modal-cta .btn{flex:1;min-width:0;padding:.72rem .8rem;font-size:.78rem}
 .modal-close{top:.7rem;right:.7rem}
 .footer-links{gap:1rem}
}
@media(max-width:380px){.modal-cta{flex-direction:column}.modal-cta .btn{width:100%}}

.anti-spam-field{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}

.consent-label{display:flex;align-items:flex-start;gap:.65rem;margin:1rem 0;font-size:.85rem;line-height:1.6}.consent-label input{margin-top:.35rem;flex-shrink:0}

.featured-products-grid[hidden]{display:none!important}


#featuredProductsGrid[hidden]{display:none!important}


/* Direct contact only: no consultation form. */
#contact .contact-layout { display:block; }
#contact .contact-info { max-width:960px; margin:0 auto; }
#contact .contact-desc { max-width:680px; }
#contact .contact-channels { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
#contact .contact-channel { min-width:0; }
#contact .contact-channel span { overflow-wrap:anywhere; }
@media(max-width:700px) { #contact .contact-channels { grid-template-columns:1fr; } }
