/* ============================================
   HMAI STORE – SaaS Professional Design System
   Font: Be Vietnam Pro (Vietnamese support)
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    /* Remove tap highlights everywhere on Android */
}

:root {
    /* Colors — Premium Palette */
    --primary: #0f0f12;
    --secondary: #1a1a2e;
    --accent: #1e3a5f;
    --accent-hover: #16304f;
    --accent-light: #2a5a8f;
    --accent-bg: rgba(30, 58, 95, 0.07);
    --gold: #c9a96e;
    --gold-light: #dfc090;
    --gold-dark: #a88a4e;
    --gold-bg: rgba(201, 169, 110, 0.08);
    --text-primary: #1a1a2e;
    --text-secondary: #5a5a6e;
    --text-muted: #8e8e9e;
    --bg-white: #ffffff;
    --bg-gray: #f8f7f4;
    --bg-page: #f5f3ef;
    --bg-cream: #faf8f5;
    --border: #e8e4dc;
    --border-light: #f0ece5;
    --border-gold: rgba(201, 169, 110, 0.25);
    --success: #2d8f6f;
    --success-bg: #eef8f3;
    --success-border: #b0dfc8;
    --warning: #c7922a;
    --warning-bg: #fdf7eb;
    --error: #c0392b;

    /* Shadows — Refined & Layered */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 28px -6px rgba(0, 0, 0, 0.08), 0 6px 12px -4px rgba(0, 0, 0, 0.04);
    --shadow-premium: 0 8px 32px -4px rgba(201, 169, 110, 0.12), 0 4px 16px -4px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 20px rgba(201, 169, 110, 0.15);

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    /* Mobile Design System – Golden Ratio (1 : 1.618), Base = 16px */
    --base: 16px;
    --h1: 26px;
    --h2: 20px;
    --h3: 18px;
    --body: 16px;
    --caption: 14px;
    --btn-height: 48px;
    --btn-radius: 14px;
    --spacing: 4px;
    --spacing-2: 8px;
    --spacing-3: 12px;
    --spacing-4: 16px;
    --spacing-6: 24px;
    --spacing-8: 32px;
}

body {
    font-family: "Be Vietnam Pro", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text-primary);
    background-color: #f5f0e8;
    background-image:
        /* Dot grid pattern — fills empty space */
        radial-gradient(circle, rgba(201, 169, 110, 0.12) 1px, transparent 1px),
        /* Large warm glow — top center */
        radial-gradient(ellipse 80% 50% at 20% 10%, rgba(201, 169, 110, 0.18) 0%, transparent 60%),
        /* Cool blue glow — center right */
        radial-gradient(ellipse 60% 70% at 85% 40%, rgba(30, 58, 95, 0.10) 0%, transparent 55%),
        /* Warm rose glow — bottom left */
        radial-gradient(ellipse 70% 60% at 15% 75%, rgba(180, 130, 100, 0.12) 0%, transparent 55%),
        /* Gold shimmer — bottom right */
        radial-gradient(ellipse 50% 50% at 80% 85%, rgba(201, 169, 110, 0.14) 0%, transparent 50%),
        /* Base animated gradient */
        linear-gradient(300deg, #faf8f5, #f0ece5, #ede4d8, #e8dfd2, #f5efe6, #faf8f5);
    background-size:
        24px 24px,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        300% 300%;
    /* Removed gradientBG animation — background-position cannot be GPU-composited, causes full-page repaint */
    line-height: 1.6;
    overflow-x: hidden;
    overscroll-behavior-y: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    min-height: 100vh;
}

/* Large floating warm blob — top left */
body::before {
    content: '';
    position: fixed;
    top: -60px;
    left: -40px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    /* Softer gradient = no need for filter:blur (saves full GPU layer) */
    background: radial-gradient(circle, rgba(201, 169, 110, 0.06) 0%, rgba(201, 169, 110, 0.02) 35%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: floatBlob1 25s ease-in-out infinite;
    will-change: transform;
    contain: strict;
    transform: translateZ(0);
}

/* Large floating cool blob — bottom right */
body::after {
    content: '';
    position: fixed;
    bottom: -40px;
    right: -40px;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    /* Softer gradient = no filter:blur needed */
    background: radial-gradient(circle, rgba(30, 58, 95, 0.05) 0%, rgba(30, 58, 95, 0.02) 35%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: floatBlob2 28s ease-in-out infinite;
    will-change: transform;
    contain: strict;
    transform: translateZ(0);
}

@keyframes floatBlob1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(100px, 120px) scale(1.15);
    }

    50% {
        transform: translate(60px, 200px) scale(1.05);
    }

    75% {
        transform: translate(-40px, 100px) scale(0.95);
    }
}

@keyframes floatBlob2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(-80px, -100px) scale(1.1);
    }

    50% {
        transform: translate(-120px, -60px) scale(0.95);
    }

    75% {
        transform: translate(50px, -80px) scale(1.05);
    }
}

/* Background decorative overlay — extra blobs + dot pattern */
#bgNoiseOverlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        /* Secondary dot grid — offset for denser pattern */
        radial-gradient(circle, rgba(30, 58, 95, 0.06) 1px, transparent 1px),
        /* Floating accent blob — mid left */
        radial-gradient(ellipse 40% 35% at 10% 50%, rgba(201, 169, 110, 0.15) 0%, transparent 70%),
        /* Floating accent blob — mid right */
        radial-gradient(ellipse 35% 40% at 90% 30%, rgba(30, 58, 95, 0.10) 0%, transparent 70%),
        /* Warm accent — center */
        radial-gradient(ellipse 50% 30% at 50% 60%, rgba(180, 130, 100, 0.08) 0%, transparent 60%);
    background-size:
        24px 24px,
        100% 100%,
        100% 100%,
        100% 100%;
    background-position:
        12px 12px,
        0 0,
        0 0,
        0 0;
}

/* Hide bulky scrollbars globally on mobile/Android while keeping it functional */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
    display: none;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    33% {
        background-position: 50% 100%;
    }

    66% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(245, 243, 239, 0.95);
    /* Removed backdrop-filter — #1 cause of 30fps on scroll */
    z-index: 1000;
    border-bottom: 1px solid rgba(232, 228, 220, 0.6);
    transition: transform 0.3s ease;
    will-change: transform;
    transform: translateZ(0);
}

header.header-hidden {
    transform: translateY(-100%);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.logo {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

/* Navigation Links - Pill Shape */
.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
    background: rgba(250, 248, 245, 0.6);
    padding: 6px;
    border-radius: 30px;
    border: 1px solid var(--border);
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 20px;
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    letter-spacing: -0.01em;
}

.nav-links a:hover {
    background: var(--gold-bg);
    color: var(--gold-dark);
}

.nav-links a.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(15, 15, 18, 0.2);
}

/* Search Container */
.search-container {
    position: relative;
    margin: 0 24px;
}

.search-input {
    width: 280px;
    padding: 10px 16px 10px 44px;
    border: 1.5px solid transparent;
    border-radius: 50px;
    font-size: 14px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f1f5f9;
    color: var(--text-primary);
    font-weight: 500;
}

.search-input:focus {
    outline: none;
    background: white;
    border-color: var(--accent);
    width: 320px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #64748b;
    pointer-events: none;
    opacity: 0.8;
}

/* Logo Enhancement */
.logo-text {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary) 0%, #2a2a4a 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1001;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-result-item:hover {
    background: var(--accent-bg);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.search-result-price {
    font-size: 12px;
    color: var(--text-secondary);
}

.search-no-results {
    padding: 24px;
    text-align: center;
    color: var(--text-secondary);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-primary);
    transition: color 0.3s;
}

.cart-icon:hover {
    color: var(--accent);
}

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

/* SEARCH RESULTS FIX */
.search-results {
    top: 100%;
    width: 100%;
    border-radius: 0 0 12px 12px;
}

.hero {
    margin-top: 100px;
    padding: 60px 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.88);
    /* Removed backdrop-filter — use opaque bg instead */
    border-radius: 32px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-premium);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 {
    font-size: 64px;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 16px;
    color: var(--primary);
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary) 0%, #2a2a4a 100%);
    color: white;
    text-decoration: none;
    border-radius: 980px;
    font-size: 16px;
    font-weight: 500;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
    letter-spacing: 0.02em;
}

.hero-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.zalo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 980px;
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid var(--border);
    transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, color 0.35s ease, border-color 0.35s ease;
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.zalo-button:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    color: var(--gold-dark);
    background: var(--gold-bg);
    box-shadow: 0 10px 24px rgba(201, 169, 110, 0.15);
}

.cta-button:hover {
    background: linear-gradient(135deg, #1a1a2e 0%, #3a3a5a 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(15, 15, 18, 0.2);
}

section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 24px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: -1px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: rgba(255, 255, 255, 0.88);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid var(--border);
    contain: content;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-premium);
    border-color: var(--border-gold);
}

.product-image {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f7f4 0%, #f0ece5 100%);
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.product-image::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, var(--gold-bg) 0%, transparent 70%);
    opacity: 0.4;
    pointer-events: none;
}

.product-image img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    /* Removed filter:drop-shadow — use box-shadow on wrapper instead */
    position: relative;
    z-index: 1;
}

.product-info {
    padding: 24px;
}

/* Đơn giản: chỉ tên + giá + nút */
.product-info-simple {
    padding: var(--space-4);
}

.product-info-simple .product-name {
    font-size: 18px;
    margin-bottom: var(--space-2);
}

.product-info-simple .product-price {
    font-size: var(--body);
    margin-bottom: var(--space-3);
}

.product-info-simple .buy-now-btn {
    padding: 10px 24px;
    font-size: 14px;
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.product-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-price {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.price-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 16px;
}

.price-ctv {
    font-size: 12px;
    font-weight: 600;
    color: #0f766e;
}

.product-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}

/* Delivery Type Badges */
.delivery-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 980px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
}

.badge-instant {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success-border);
}

.badge-preorder {
    background: var(--warning-bg);
    color: #7c6320;
    border: 1px solid #e8d5a0;
}

/* Delivery Info Box on Product Detail - dễ đọc, tương phản rõ */
.delivery-info-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--radius-lg, 12px);
    margin-bottom: var(--space-4, 16px);
    font-size: 14px;
    line-height: 1.5;
}

.delivery-simple {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.delivery-line {
    display: block;
}

.delivery-line.instant {
    color: #15803d;
}

.delivery-line.preorder {
    color: #92400e;
}

.delivery-instant {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
}

.delivery-preorder {
    background: #fefce8;
    border: 1.5px solid #fde047;
}

.delivery-mixed {
    background: linear-gradient(135deg, #f0fdf4 0%, #fefce8 100%);
    border: 1.5px solid #86efac;
}

/* Pre-order Success Instructions */
.conf-preorder-instructions {
    text-align: center;
    padding: var(--space-6, 24px) var(--space-4, 16px);
    background: var(--bg-gray, #f5f5f7);
    border: 1px solid var(--border-light, #e5e5e7);
    border-radius: var(--radius-lg, 12px);
    margin-bottom: var(--space-5, 20px);
}

.conf-preorder-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-3, 12px);
    text-align: left;
    margin: var(--space-4, 16px) auto;
    max-width: 400px;
}

.conf-preorder-step {
    display: flex;
    align-items: center;
    gap: var(--space-3, 12px);
    font-size: 15px;
}

.conf-preorder-icon {
    margin-bottom: 8px;
}

.conf-zalo-btn-lg {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2, 8px);
    padding: var(--space-3, 12px) var(--space-6, 24px);
    background: #0068FF;
    color: white;
    border-radius: var(--radius-lg, 12px);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    margin-top: var(--space-4, 16px);
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
}

.conf-zalo-btn-lg:hover {
    background: #0052cc;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.15));
}

/* Checkout delivery note */
.checkout-delivery-note {
    margin-top: var(--space-3, 12px);
    padding: var(--space-3, 12px) var(--space-4, 16px);
    background: var(--warning-bg, #fef3c7);
    border: 1px solid #fde68a;
    border-radius: var(--radius-md, 8px);
    font-size: 13px;
    color: #92400e;
}

/* Popular Badge (Premium Pill) */
.popular-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary);
    color: white;
    border-radius: 980px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Updated Buy Button - Premium Dark Pill */
.buy-now-btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, #2a2a4a 100%);
    color: white;
    text-decoration: none;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 500;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 4px;
    letter-spacing: 0.02em;
}

.buy-now-btn:hover {
    background: linear-gradient(135deg, #1a1a2e 0%, #3a3a5a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 15, 18, 0.18);
}

.view-details {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, #2a2a4a 100%);
    color: white;
    text-decoration: none;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 500;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-details:hover {
    background: linear-gradient(135deg, #1a1a2e 0%, #3a3a5a 100%);
    box-shadow: 0 6px 16px rgba(15, 15, 18, 0.18);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 36px 28px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.92);
    /* Removed backdrop-filter — use opaque bg instead (saves GPU composite layer) */
    border: 1px solid var(--border);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    contain: content;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-premium);
    border-color: var(--border-gold);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 44px;
    margin-bottom: 16px;
    /* Removed filter:drop-shadow — emoji icons don't need it */
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =============================================
   TESTIMONIALS – Modern Unified Design
   ============================================= */
.testimonials-section {
    margin-bottom: 0;
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    font-size: 15px;
    margin-top: -16px;
    margin-bottom: 32px;
}

/* --- Carousel --- */
.testi-carousel {
    position: relative;
    overflow: hidden;
    margin-bottom: 48px;
}

.testi-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0 16px;
}

.testi-track::-webkit-scrollbar {
    display: none;
}

/* --- Review Card --- */
.testi-card {
    flex: 0 0 340px;
    scroll-snap-align: start;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.testi-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.testi-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testi-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.testi-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.testi-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.testi-service {
    font-size: 13px;
    color: var(--text-secondary);
}

.testi-rating {
    flex-shrink: 0;
}

.testi-stars {
    color: #f59e0b;
    font-size: 14px;
    letter-spacing: 1px;
}

.testi-text {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-primary);
    flex: 1;
}

.testi-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.testi-date {
    font-size: 13px;
    color: var(--text-muted);
}

.testi-badge {
    font-size: 12px;
    font-weight: 500;
    color: var(--success);
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    padding: 3px 10px;
    border-radius: 100px;
}

/* --- Carousel Dots --- */
.testi-dots {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 12px;
}

.testi-dot {
    box-sizing: content-box;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    padding: 10px;
    background-clip: content-box;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.testi-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--accent);
    background-clip: content-box;
}

/* --- Proof Screenshots --- */
.testi-proof {
    margin-top: 0;
    margin-bottom: 24px;
}

.testi-proof-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.testi-proof-title svg {
    color: var(--success);
}

.testi-proof-scroll-wrap {
    position: relative;
}

.testi-proof-scroll-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 48px;
    background: linear-gradient(to right, transparent, var(--bg-page));
    pointer-events: none;
    z-index: 1;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.testi-proof-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
    padding-right: 32px;
}

.testi-proof-scroll::-webkit-scrollbar {
    display: none;
}

.testi-proof-item {
    flex: 0 0 180px;
    scroll-snap-align: start;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
    cursor: pointer;
    aspect-ratio: 3 / 4;
    background: var(--bg-gray);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testi-proof-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testi-proof-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testi-proof-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease;
}

.testi-proof-overlay svg {
    color: #fff;
    opacity: 0;
    transform: scale(0.8);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.testi-proof-item:hover .testi-proof-overlay {
    background: rgba(0, 0, 0, 0.35);
}

.testi-proof-item:hover .testi-proof-overlay svg {
    opacity: 1;
    transform: scale(1);
}

/* --- Lightbox --- */
.testi-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: lbFadeIn 0.25s ease;
}

.testi-lightbox.open {
    display: flex;
}

.testi-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius-lg);
    object-fit: contain;
    animation: lbZoomIn 0.3s ease;
}

.testi-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}

.testi-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes lbFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes lbZoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Desktop: 3 cards visible --- */
@media (min-width: 1024px) {
    .testi-track {
        padding-left: 0;
        padding-right: 0;
    }

    .testi-card {
        flex: 0 0 calc((100% - 40px) / 3);
    }

    .testi-proof-item {
        flex: 0 0 calc((100% - 64px) / 5);
    }
}

/* --- Tablet: 2 cards visible --- */
@media (min-width: 601px) and (max-width: 1023px) {
    .testi-card {
        flex: 0 0 calc((100% - 20px) / 2);
    }

    .testi-proof-item {
        flex: 0 0 150px;
    }
}

/* --- Mobile --- */
@media (max-width: 600px) {
    .hero {
        margin-top: 64px;
        padding: 28px 20px;
        border-radius: 22px;
    }

    .hero p {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .slogan-main {
        font-size: 24px;
    }

    .slogan-sub {
        font-size: 18px;
    }

    .hero-actions {
        width: 100%;
        flex-direction: column;
    }

    .cta-button,
    .zalo-button {
        width: 100%;
        text-align: center;
    }

    .section-desc {
        font-size: 14px;
        margin-top: -12px;
        margin-bottom: 24px;
    }

    .testi-carousel {
        margin-bottom: 36px;
    }

    .testi-card {
        flex: 0 0 calc(100vw - 48px);
        padding: 20px;
    }

    .testi-track {
        padding-left: 0;
        gap: 16px;
    }

    .testi-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .testi-name {
        font-size: 14px;
    }

    .testi-text {
        font-size: 14px;
    }

    .testi-proof-title {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .testi-proof-item {
        flex: 0 0 140px;
    }

    .testi-proof-scroll {
        gap: 12px;
    }

    .testi-lightbox img {
        max-width: 95vw;
        max-height: 80vh;
        border-radius: var(--radius-md);
    }
}

.cta-section {
    text-align: center;
    padding: 80px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, #1a1a2e 50%, #2a2a3e 100%);
    color: white;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(201, 169, 110, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.cta-section h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    position: relative;
}

.cta-section p {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.85;
    position: relative;
}

.cta-section .cta-button {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--primary);
    font-weight: 600;
    position: relative;
}

.cta-section .cta-button:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    box-shadow: 0 10px 30px rgba(201, 169, 110, 0.3);
}

footer {
    background: linear-gradient(180deg, var(--bg-gray) 0%, #ece7de 100%);
    padding: 24px 24px 16px;
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
    opacity: 0.3;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

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

.footer-contact {
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 13px;
}

.footer-contact a {
    color: var(--accent);
    text-decoration: none;
    margin: 0 6px;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 11px;
}

.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 10001;
    transition: right 0.3s;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: none;
    /* Removed backdrop-filter — darkened overlay compensates */
}

.cart-overlay.active {
    display: block;
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 24px;
    font-weight: 600;
}

.close-cart {
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.close-cart:hover {
    color: var(--primary);
}

.cart-items {
    flex: 0 1 auto;
    overflow-y: auto;
    padding: 24px;
}

.cart-empty {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-secondary);
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: var(--bg-gray);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.cart-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-variant {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--gold-dark);
}

.remove-item {
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 20px;
    transition: color 0.3s;
}

.remove-item:hover {
    color: #ff3b30;
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 600;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, #2a2a4a 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkout-btn:hover {
    background: linear-gradient(135deg, #1a1a2e 0%, #3a3a5a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 15, 18, 0.15);
}

.page {
    display: none;
    min-height: 100vh;
    padding-top: 60px;
}

.page.active {
    display: block;
}

.products-container {
    display: flex;
    gap: 32px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
}

.filter-sidebar {
    width: 250px;
    background: var(--bg-gray);
    border-radius: 18px;
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.filter-list {
    list-style: none;
}

.filter-list li {
    padding: 12px 0;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s;
    font-size: 14px;
}

.filter-list li:hover,
.filter-list li.active {
    color: var(--accent);
    font-weight: 500;
}

.products-content {
    flex: 1;
}

.product-detail {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image {
    width: 100%;
    height: 180px;
    background: var(--bg-gray);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    margin-bottom: 8px;
    overflow: hidden;
    box-sizing: border-box;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-details h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.product-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.variant-selector {
    margin-bottom: 32px;
}

.variant-label {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary, #1f2937);
    letter-spacing: -0.02em;
}

.variant-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.variant-option {
    display: flex;
    align-items: flex-start;
    padding: 18px;
    padding-left: 22px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 1);
    position: relative;
    overflow: hidden;
    /* Removed backdrop-filter — opaque bg compensates */
}

/* Visual left border indicator by delivery type */
.variant-option.variant-instant {
    border-left: 4px solid var(--success);
}

.variant-option.variant-preorder {
    border-left: 4px solid var(--warning);
}

.variant-option:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 110, 0.1);
    background: rgba(255, 255, 255, 0.85);
}

.variant-option.selected {
    border-color: var(--gold);
    border-width: 1.5px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 2px rgba(201, 169, 110, 0.15), var(--shadow-premium);
}

.variant-option.selected.variant-instant {
    border-left: 4px solid var(--success);
}

.variant-option.selected.variant-preorder {
    border-left: 4px solid var(--warning);
}

/* Custom Radio Circle */
.variant-select-circle {
    margin-right: 14px;
    display: flex;
    align-items: center;
    height: 24px;
    /* align with header text */
}

.variant-select-circle input {
    margin: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.variant-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.variant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 2px;
}

.variant-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary, #111827);
}

.variant-price-tag {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold-dark);
}

.variant-note {
    font-size: 14px;
    color: var(--text-secondary, #4b5563);
    font-weight: 500;
}

.variant-meta {
    margin-top: 4px;
}

.variant-duration-pill {
    display: inline-block;
    padding: 2px 10px;
    background: var(--bg-cream);
    color: var(--text-secondary);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border);
}

.variant-option.selected .variant-duration-pill {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}



.add-to-cart-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary) 0%, #2a2a4a 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #1a1a2e 0%, #3a3a5a 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15, 15, 18, 0.18);
}

.add-to-cart-btn:disabled {
    background: var(--border);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ====== ORDER INFO SECTION ====== */
.order-info-section {
    background: rgba(255, 255, 255, 1);
    /* Removed backdrop-filter — fully opaque bg */
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-top: 10px;
    border: 1.5px solid var(--border);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.order-info-section:hover {
    border-color: var(--border-gold);
    box-shadow: 0 4px 16px rgba(201, 169, 110, 0.08);
}

.order-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.order-info-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-white);
    transition: border-color 0.3s;
}

.qty-controls:hover {
    border-color: var(--border-gold);
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-white);
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: transform 0.25s, background 0.25s, box-shadow 0.25s, color 0.25s, border-color 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--gold-bg);
    color: var(--accent);
}

.qty-btn:active {
    background: var(--accent-bg);
}

.qty-value {
    min-width: 36px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    border-left: 1.5px solid var(--border);
    border-right: 1.5px solid var(--border);
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Order Info Fields */
.order-info-fields {
    margin-bottom: 16px;
}

.order-info-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.order-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-white);
    color: var(--text-primary);
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

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

.order-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-bg);
}

/* Discount Collapsible */
.detail-discount-wrap {
    margin-bottom: 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-white);
    overflow: hidden;
    transition: border-color 0.3s;
}

.detail-discount-wrap:hover {
    border-color: var(--border-gold);
}

.detail-discount-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s;
}

.detail-discount-toggle:hover {
    color: var(--text-primary);
}

.detail-discount-arrow {
    transition: transform 0.3s;
}

.detail-discount-toggle.open .detail-discount-arrow {
    transform: rotate(180deg);
}

.detail-discount-content {
    padding: 0 16px 14px;
}

/* Price Summary */
.detail-price-summary {
    background: var(--bg-cream);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 14px;
}

.price-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.price-summary-row.discount-row {
    color: var(--success);
    font-weight: 600;
}

.discount-value {
    color: var(--success);
    font-weight: 700;
}

.price-summary-divider {
    border-top: 1.5px dashed var(--border);
    margin: 8px 0;
}

.price-summary-row.total-row {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    padding-top: 6px;
}

.total-value {
    color: var(--accent);
    font-size: 20px;
    font-weight: 800;
}

/* Action Buttons */
.buy-now-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.buy-now-btn {
    flex: 1;
    padding: 13px 18px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.buy-now-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.2);
}

.buy-now-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.add-to-cart-icon-btn {
    width: 50px;
    min-width: 50px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-white);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s, color 0.3s, border-color 0.3s;
}

.add-to-cart-icon-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-bg);
}

.add-to-cart-text-btn {
    flex: 0.55;
    padding: 13px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-white);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.add-to-cart-text-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(30, 58, 95, 0.1);
}

/* ====== Buy Now Modal ====== */
.buy-now-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Removed backdrop-filter — darkened overlay compensates */
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.25s ease-out;
    padding: 20px;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.buy-now-modal {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 440px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.buy-now-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.buy-now-modal-close:hover {
    color: var(--text-primary);
}

.buy-now-modal h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.buy-now-modal-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.buy-now-modal-field {
    margin-bottom: 16px;
}

.buy-now-modal-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.buy-now-modal-field input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.buy-now-modal-field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-bg);
}

.buy-now-modal-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-gray);
    border-radius: 10px;
    margin: 20px 0;
    font-size: 15px;
    color: var(--text-secondary);
}

.buy-now-modal-total {
    font-weight: 800;
    font-size: 18px;
    color: var(--error);
}

.buy-now-modal-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, #16304f 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.buy-now-modal-submit:hover {
    background: linear-gradient(135deg, #16304f 0%, #0d2240 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(30, 58, 95, 0.2);
}

.buy-now-modal-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ====== Variant Meta Row - Redesigned for clarity ====== */
.variant-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}

/* Duration: bold, instantly scannable */
.variant-duration-text {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 8px;
    letter-spacing: 0.03em;
    border: 1.5px solid transparent;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05);
}

/* Duration highlight by unit: YEAR / MONTH / DAY */
.variant-duration-text.duration-badge.duration-year {
    background: #eef8f3;
    color: #1a6b4a;
    border-color: var(--success);
}

.variant-duration-text.duration-badge.duration-month {
    background: rgba(30, 58, 95, 0.06);
    color: var(--accent);
    border-color: var(--accent-light);
}

.variant-duration-text.duration-badge.duration-day {
    background: #fdf7eb;
    color: #7c5a1a;
    border-color: var(--warning);
}

.variant-duration-text.duration-badge.duration-once,
.variant-duration-text.duration-badge.duration-other {
    background: var(--bg-cream);
    color: var(--text-secondary);
    border-color: var(--border);
}

/* Delivery badge - THE visual anchor, instantly recognizable */
.variant-delivery-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Giao liền = green */
.variant-delivery-badge.delivery-instant {
    background: var(--success-bg);
    color: var(--success);
    border: 1.5px solid var(--success-border);
}

/* Giao sau = warm amber */
.variant-delivery-badge.delivery-preorder {
    background: var(--warning-bg);
    color: #7c6320;
    border: 1.5px solid #e8d5a0;
}

.variant-separator {
    width: 1px;
    height: 14px;
    background: var(--border);
    flex-shrink: 0;
}

/* Price - bold and prominent */
.variant-price-text {
    font-size: 16px;
    font-weight: 800;
    color: var(--gold-dark);
    letter-spacing: -0.01em;
}

.variant-option .price-stack {
    margin-bottom: 0;
    align-items: flex-end;
}

.variant-option .price-ctv {
    font-size: 11px;
}

.product-tabs {
    border-top: 1px solid var(--border);
    padding-top: 40px;
}

.tab-buttons {
    display: flex;
    gap: 32px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

.tab-button {
    padding: 12px 0;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s, color 0.3s, border-color 0.3s;
}

.tab-button.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: tabSlideIn 0.4s ease-out;
}

.tab-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.tab-content p,
.tab-content ul {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.tab-content ul {
    padding-left: 20px;
}

.tab-content li {
    margin-bottom: 8px;
}

.checkout-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 24px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

.checkout-form {
    background: var(--bg-gray);
    padding: 32px;
    border-radius: 18px;
}

.form-section {
    margin-bottom: 32px;
}

.form-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s, color 0.3s, border-color 0.3s;
    font-family: inherit;
}

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

.order-summary {
    background: var(--bg-gray);
    padding: 32px;
    border-radius: 18px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.order-summary h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

/* ── Checkout Item Cards ── */
.checkout-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    margin-bottom: 12px;
    position: relative;
    transition: box-shadow 0.2s;
}

.checkout-item:hover {
    box-shadow: var(--shadow-sm);
}

.checkout-item-img {
    width: 72px;
    height: 72px;
    background: var(--bg-cream);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    flex-shrink: 0;
}

.checkout-item-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.checkout-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.checkout-item-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.checkout-item-variant {
    font-size: 13px;
    color: var(--text-secondary);
}

.checkout-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.checkout-item-qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn-sm {
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.qty-btn-sm:hover {
    background: var(--bg-cream);
}

.qty-val-sm {
    min-width: 32px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    border-left: 1.5px solid var(--border);
    border-right: 1.5px solid var(--border);
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-item-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--gold-dark);
}

.checkout-item-remove {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    padding: 4px;
}

.checkout-item-remove:hover {
    color: #ef4444;
}

/* ── Discount Code ── */
.discount-section {
    padding: 14px 0;
    border-top: 1px dashed var(--border);
}

.discount-input-group {
    display: flex;
    gap: 8px;
}

.discount-input-group input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
    background: var(--bg-white);
}

.discount-input-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.discount-input-group input:read-only {
    background: var(--bg-gray);
    color: var(--text-secondary);
}

.discount-apply-btn {
    padding: 10px 18px;
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.discount-apply-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.discount-apply-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.discount-feedback {
    font-size: 13px;
    margin-top: 8px;
    min-height: 0;
}

.discount-feedback.success {
    color: #10b981;
}

.discount-feedback.error {
    color: #ef4444;
}

.summary-discount {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
    color: #10b981;
}

.summary-discount .discount-amount-display {
    font-weight: 600;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 20px;
    font-weight: 600;
    margin-top: 16px;
    border-top: 2px solid var(--border);
}

.place-order-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, #2a2a4a 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 24px;
    letter-spacing: 0.02em;
}

.place-order-btn:hover {
    background: linear-gradient(135deg, #1a1a2e 0%, #3a3a5a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 15, 18, 0.15);
}

/* ============================================
   CONFIRMATION PAGE - SaaS Professional Design
   Stripe/Notion/Apple Support inspired
   ============================================ */

/* Hide header & footer on confirmation page */
.confirmation-page-standalone.active~footer,
body:has(.confirmation-page-standalone.active) header,
body:has(.confirmation-page-standalone.active) footer,
body:has(.confirmation-page-standalone.active) .contact-fab {
    display: none !important;
}

.confirmation-page-standalone {
    min-height: 100vh;
    padding-top: 0 !important;
    background: var(--bg-page);
    background-image: url('../images/payment-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.confirmation-page-standalone.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.confirmation-wrapper {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: var(--space-6);
}

.confirmation-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

/* ── Compact Glassmorphism Layout ── */
.conf-compact {
    padding: 24px 22px 18px;
}

.conf-header-compact {
    margin-bottom: 14px !important;
}

.conf-header-compact .conf-title {
    font-size: 22px;
    margin-bottom: 4px;
}

.conf-header-compact .conf-order-code {
    font-size: 13px;
}

/* Customer Info Section — Frosted Glass */
.conf-customer-info {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.conf-customer-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: 0.02em;
}

.conf-customer-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.conf-customer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.conf-customer-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.conf-customer-item:first-child {
    padding-top: 0;
}

.conf-customer-label {
    font-size: 13px;
    color: var(--text-secondary);
    flex-shrink: 0;
    font-weight: 500;
}

.conf-customer-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60%;
}

/* QR Card — Frosted Glass */
.conf-qr-compact {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.conf-qr-compact .conf-qr-wrapper {
    margin-bottom: 12px;
}

.conf-qr-compact .conf-qr-wrapper img {
    max-width: 400px !important;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.conf-qr-compact .conf-amount-display {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-md);
}

.conf-qr-compact .conf-amount-value {
    font-size: 26px;
}

/* Status & countdown — Glass pills */
.conf-compact .conf-status-indicator {
    padding: 10px 14px;
    margin-bottom: 8px;
    font-size: 13px;
    background: rgba(255, 237, 186, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(253, 230, 138, 0.6);
    border-radius: var(--radius-md);
}

.conf-compact .conf-countdown {
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 13px;
    background: rgba(219, 234, 254, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(147, 197, 253, 0.5);
    border-radius: var(--radius-md);
}

/* Support footer */
.conf-compact .conf-support-footer {
    font-size: 12px;
    padding-top: 4px;
}

/* ── Glassmorphism Mobile Responsive ── */
@media (max-width: 600px) {
    .conf-compact {
        padding: 20px 16px 14px;
    }

    .conf-qr-compact .conf-qr-wrapper img {
        max-width: 260px !important;
    }

    .conf-qr-compact .conf-amount-value {
        font-size: 24px;
    }

    .conf-header-compact .conf-title {
        font-size: 20px;
    }
}

/* Pending Payment Header */
.conf-pending-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.conf-pending-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-bg);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    color: var(--accent);
}

.conf-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    letter-spacing: -0.3px;
}

.conf-order-code {
    font-size: 14px;
    color: var(--text-secondary);
}

.conf-order-code strong {
    color: var(--accent);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-weight: 500;
}

/* QR Code Card */
.conf-qr-card {
    background: var(--bg-gray);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-5);
    text-align: center;
}

.conf-qr-wrapper {
    margin-bottom: var(--space-4);
}

.conf-qr-wrapper img {
    max-width: 320px;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.conf-amount-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-3) var(--space-4);
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.conf-amount-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.conf-amount-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--gold-dark);
    font-family: "JetBrains Mono", ui-monospace, monospace;
}

/* Status Indicator */
.conf-status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--warning-bg);
    border: 1px solid #fde68a;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-5);
    font-size: 14px;
    font-weight: 500;
    color: #92400e;
}

.conf-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #fcd34d;
    border-top-color: #d97706;
    border-radius: 50%;
    animation: conf-spin 1s linear infinite;
}

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

/* Payment Countdown Timer */
.conf-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--accent-bg);
    border: 1px solid rgba(0, 102, 204, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-5);
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
}

.conf-countdown strong {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
}

.conf-countdown-urgent {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
    animation: conf-countdown-pulse 1.5s ease-in-out infinite;
}

.conf-countdown-urgent strong {
    color: #dc2626;
}

.conf-countdown-expired {
    background: #fef2f2;
    border-color: #f87171;
    color: #b91c1c;
    animation: none;
}

@keyframes conf-countdown-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Bank Info Section */
.conf-bank-info {
    background: var(--bg-gray);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-5);
}

.conf-bank-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
    text-align: center;
}

.conf-bank-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.conf-bank-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border-light);
}

.conf-bank-row:last-child {
    border-bottom: none;
}

.conf-bank-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
}

.conf-bank-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.conf-bank-value-wrap {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.conf-mono {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.conf-highlight {
    color: var(--accent);
    font-weight: 600;
}

.conf-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-secondary);
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.conf-copy-btn:hover {
    background: var(--accent-bg);
    border-color: var(--accent);
    color: var(--accent);
}

.conf-copy-btn:active {
    transform: scale(0.95);
}

/* Support Footer */
.conf-support-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: 13px;
    color: var(--text-secondary);
}

.conf-support-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

.conf-support-link:hover {
    color: var(--accent-hover);
}

/* ============================================
   SUCCESS PAGE - After Payment Confirmed
   ============================================ */

.conf-success-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.conf-success-icon {
    width: 64px;
    height: 64px;
    background: var(--success-bg);
    border: 2px solid var(--success-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    color: var(--success);
}

.conf-success-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--success);
    margin-bottom: var(--space-2);
    letter-spacing: -0.5px;
}

.conf-success-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.conf-order-note {
    display: block;
    margin-top: var(--space-2);
    font-size: 12px;
    color: var(--text-muted);
}

/* Credentials Section */
.conf-credentials-section {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-5);
}

.conf-credentials-title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border-light);
}

.conf-credentials-title svg {
    color: var(--accent);
}

.conf-credential-item {
    background: var(--bg-gray);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
}

.conf-credential-item:last-of-type {
    margin-bottom: 0;
}

.conf-credential-field {
    margin-bottom: var(--space-3);
}

.conf-credential-field:last-child {
    margin-bottom: 0;
}

.conf-credential-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-1);
}

.conf-credential-value-wrap {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.conf-credential-value {
    flex: 1;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 14px;
    font-weight: 500;
    background: var(--bg-white);
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    word-break: break-all;
}

.conf-password-blur {
    filter: blur(6px);
    user-select: none;
    transition: filter 0.2s ease;
}

.conf-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: white;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, opacity 0.15s ease;
    flex-shrink: 0;
}

.conf-action-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.conf-action-btn:active {
    transform: scale(0.95);
}

.conf-action-btn.secondary {
    background: var(--bg-white);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.conf-action-btn.secondary:hover {
    background: var(--accent-bg);
    border-color: var(--accent);
    color: var(--accent);
}

.conf-copy-all-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: var(--space-4);
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.conf-copy-all-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.conf-copy-all-btn:active {
    transform: scale(0.98);
}

/* ChatGPT Pro: Hướng dẫn đăng nhập workspace */
.conf-chatgpt-pro-login {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-5);
}

.conf-chatgpt-pro-login-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.conf-chatgpt-pro-login-steps {
    margin: 0 0 var(--space-3);
    padding-left: var(--space-4);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.conf-chatgpt-pro-login-steps li {
    margin-bottom: var(--space-1);
}

.conf-chatgpt-pro-login-warn {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    padding: var(--space-2) var(--space-3);
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
}

/* Next Steps Section */
.conf-steps-section {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-5);
}

.conf-steps-title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 14px;
    font-weight: 600;
    color: #065f46;
    margin-bottom: var(--space-3);
}

.conf-steps-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.conf-steps-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    font-size: 13px;
    color: #047857;
    margin-bottom: var(--space-2);
    line-height: 1.5;
}

.conf-steps-list li:last-child {
    margin-bottom: 0;
}

.conf-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #065f46;
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

/* Security Note */
.conf-security-note {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-5);
    font-size: 12px;
    color: #92400e;
    line-height: 1.5;
}

.conf-security-note svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Support Section */
.conf-support-section {
    text-align: center;
    padding: var(--space-4);
    background: var(--bg-gray);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-5);
}

.conf-support-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.conf-support-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
    line-height: 1.5;
}

.conf-zalo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: #0068ff;
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.conf-zalo-btn:hover {
    background: #0052cc;
    transform: translateY(-1px);
}

.conf-hotline {
    display: block;
    margin-top: var(--space-3);
    font-size: 12px;
    color: var(--text-muted);
}

/* Back Home Link */
.conf-back-home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: var(--space-3);
    transition: color 0.15s;
}

.conf-back-home:hover {
    color: var(--accent-hover);
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .confirmation-wrapper {
        padding: var(--spacing-4);
    }

    .confirmation-card {
        padding: var(--spacing-6);
        border-radius: var(--radius-lg);
    }

    .conf-title {
        font-size: var(--h2);
    }

    .conf-success-title {
        font-size: var(--h1);
    }

    .conf-amount-value {
        font-size: var(--h2);
    }

    .conf-qr-wrapper img {
        max-width: 280px;
    }

    .conf-bank-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-2);
    }

    .conf-bank-value-wrap {
        width: 100%;
        justify-content: space-between;
    }

    .conf-credential-value-wrap {
        flex-wrap: wrap;
    }

    .conf-credential-value {
        width: 100%;
        margin-bottom: var(--spacing-2);
    }

    .conf-action-btn {
        width: 32px;
        height: 32px;
    }
}

/* Legacy styles kept for compatibility */
.success-icon {
    font-size: 80px;
    color: var(--success);
    margin-bottom: 24px;
}

.confirmation-container h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.order-code {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.order-code strong {
    color: var(--accent);
}

.payment-info {
    background: var(--bg-gray);
    padding: 32px;
    border-radius: 18px;
    text-align: left;
    margin-bottom: 32px;
}

.payment-info h3,
.payment-info .payment-info-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.payment-info p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.qr-code-wrapper {
    text-align: center;
    margin: 20px 0;
}

.payment-manual-section {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 20px;
}

.payment-manual-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.payment-info-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.payment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.payment-row:last-child {
    border-bottom: none;
}

.payment-row-highlight {
    background: var(--accent-bg);
}

.payment-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 140px;
}

.payment-value-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
}

.payment-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.payment-value-amount,
.payment-value-content {
    color: var(--accent);
    font-size: 17px;
}

.payment-value-mono {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    letter-spacing: 0.02em;
}

.payment-value-bank {
    font-weight: 600;
}

.copy-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.copy-btn-primary:hover {
    background: #0052a3;
}

.copy-btn-primary:active {
    transform: scale(0.98);
}

.copy-btn-primary .copy-icon {
    font-size: 14px;
}

.payment-note-box {
    display: flex;
    gap: 14px;
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid rgba(0, 102, 204, 0.2);
    border-radius: 14px;
}

.payment-note-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.payment-note-content {
    flex: 1;
}

.payment-note-title {
    display: block;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.payment-note-list {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.75;
}

.payment-note-list li {
    margin-bottom: 6px;
}

.payment-note-list li:last-child {
    margin-bottom: 0;
}

.payment-note-list strong {
    color: var(--accent);
}

.back-home {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 980px;
    font-size: 16px;
    font-weight: 500;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s, color 0.3s, border-color 0.3s;
}

.back-home:hover {
    background: #0077ed;
    transform: translateY(-2px);
}

/* =============================================
   GLOBAL ANIMATION KEYFRAMES
   ============================================= */

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Slide in from left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide in from right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale + fade in (for cards) */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.88) translateY(24px);
    }

    60% {
        transform: scale(1.03) translateY(-4px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Force QR Card to appear at top if wrapped */
.conf-qr-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    order: -1;
    /* Ensure it is at the top */
    width: 100%;
}

/* Floating orb drift */
@keyframes floatOrb1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, -30px) scale(1.08);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

@keyframes floatOrb2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    40% {
        transform: translate(-50px, 30px) scale(1.1);
    }

    70% {
        transform: translate(30px, -40px) scale(0.92);
    }
}

@keyframes floatOrb3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(25px, 45px) scale(1.05);
    }
}

/* Slow spin (decorative ring) */
@keyframes spinSlow {
    to {
        transform: rotate(360deg);
    }
}

/* Pulse glow (CTA button) — uses transform+opacity instead of box-shadow for GPU compositing */
@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.45;
    }

    50% {
        transform: scale(1.35);
        opacity: 0;
    }
}

/* Cart badge bounce */
@keyframes cartBounce {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.6);
    }

    60% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

/* Ripple on button press */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Success checkmark draw */
@keyframes checkDraw {
    0% {
        stroke-dashoffset: 80;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes successCircle {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Confetti fall */
@keyframes confettiFall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* number counter tick */
@keyframes countUp {
    0% {
        transform: translateY(12px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* =============================================
   SCROLL-REVEAL BASE  (JS toggles .visible)
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s cubic-bezier(.22, 1, .36, 1),
        transform 0.7s cubic-bezier(.22, 1, .36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children delay helpers  ─ up to 6 kids */
.stagger>*:nth-child(1) {
    transition-delay: 0s;
}

.stagger>*:nth-child(2) {
    transition-delay: 0.08s;
}

.stagger>*:nth-child(3) {
    transition-delay: 0.16s;
}

.stagger>*:nth-child(4) {
    transition-delay: 0.24s;
}

.stagger>*:nth-child(5) {
    transition-delay: 0.32s;
}

.stagger>*:nth-child(6) {
    transition-delay: 0.40s;
}

/* Each child also needs reveal */
.stagger>* {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.65s cubic-bezier(.22, 1, .36, 1),
        transform 0.65s cubic-bezier(.22, 1, .36, 1);
}

.stagger.visible>* {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   FLOATING BACKGROUND ORBS
   ============================================= */
.orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    /* Removed filter:blur — use softer gradient stops instead (saves 3 GPU layers) */
    will-change: transform;
    contain: strict;
    transform: translateZ(0);
}

.orb--1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0.04) 40%, transparent 65%);
    top: -80px;
    left: -100px;
    animation: floatOrb1 20s ease-in-out infinite;
}

.orb--2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.10) 0%, rgba(168, 85, 247, 0.03) 40%, transparent 65%);
    bottom: -60px;
    right: -80px;
    animation: floatOrb2 24s ease-in-out infinite;
}

.orb--3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.02) 40%, transparent 65%);
    top: 50%;
    left: 60%;
    animation: floatOrb3 18s ease-in-out infinite;
}

/* Orb container wrapper – attach to hero & CTA */
.orb-wrap {
    position: relative;
    overflow: hidden;
}

/* =============================================
   HERO section enhancements
   ============================================= */
.hero {
    position: relative;
    /* orbs need this */
}

.hero>.orb {
    /* orbs inside hero stay behind text */
    z-index: 0;
}

.hero h1,
.hero p,
.hero .cta-button {
    position: relative;
    z-index: 1;
}

/* CTA button persistent pulse */
.cta-button {
    animation: fadeInUp 0.8s ease-out 0.4s backwards, pulseGlow 2.8s ease-in-out 1.6s infinite;
}

/* =============================================
   PRODUCT CARD hover lift is already there,
   add a subtle image zoom
   ============================================= */
.product-card:hover .product-image img {
    transform: scale(1.06);
    transition: transform 0.45s cubic-bezier(.22, 1, .36, 1);
}

.product-image img {
    transition: transform 0.45s cubic-bezier(.22, 1, .36, 1);
}

/* =============================================
   FEATURE CARD icon float on hover
   ============================================= */
.feature-card:hover .feature-icon {
    animation: floatIcon 0.6s ease-out;
}

@keyframes floatIcon {
    0% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* (old testimonial-card styles removed – see new .testi-* classes) */

/* =============================================
   CTA SECTION  – orb container
   ============================================= */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section .orb--1 {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    width: 300px;
    height: 300px;
    top: -60px;
    right: 10%;
}

.cta-section .orb--2 {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    width: 200px;
    height: 200px;
    bottom: -40px;
    left: 5%;
}

.cta-section h2,
.cta-section p,
.cta-section .cta-button {
    position: relative;
    z-index: 1;
}

/* =============================================
   CART badge bounce  (JS adds .bounce)
   ============================================= */
.cart-count.bounce {
    animation: cartBounce 0.45s cubic-bezier(.22, 1, .36, 1);
}

/* =============================================
   RIPPLE button effect  (JS injects .ripple span)
   ============================================= */
.cta-button,
.add-to-cart-btn,
.checkout-btn,
.place-order-btn,
.view-details {
    position: relative;
    overflow: hidden;
}

.ripple-span {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.5s linear;
    pointer-events: none;
}

/* =============================================
   SUCCESS PAGE  – animated check + confetti
   ============================================= */
.success-icon {
    animation: successCircle 0.55s cubic-bezier(.22, 1, .36, 1) both;
}

/* confetti pieces (created by JS) */
.confetti-piece {
    position: fixed;
    top: -20px;
    width: 10px;
    height: 10px;
    z-index: 9990;
    pointer-events: none;
    animation: confettiFall 2.6s linear forwards;
}

/* =============================================
   PAGE TRANSITION  (JS toggles .page-exit / .page-enter)
   ============================================= */
.page.page-exit {
    animation: pageOut 0.28s ease-in forwards;
}

.page.page-enter {
    animation: pageIn 0.38s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes pageOut {
    to {
        opacity: 0;
        transform: translateY(-12px) scale(0.98);
    }
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =============================================
   VARIANT option selected wiggle
   ============================================= */
.variant-option.just-selected {
    animation: variantPick 0.35s cubic-bezier(.22, 1, .36, 1);
}

@keyframes variantPick {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.025);
    }

    100% {
        transform: scale(1);
    }
}

/* =============================================
   FILTER LIST active pill slide-in
   ============================================= */
.filter-list li {
    transition: color 0.3s, background 0.25s, transform 0.25s;
}

.filter-list li.active {
    transform: scale(1.05);
}

/* =============================================
   SEARCH RESULTS dropdown fade
   ============================================= */
.search-results.active {
    animation: popIn 0.28s cubic-bezier(.22, 1, .36, 1) both;
}

/* =============================================
   CART SIDEBAR slide with spring feel
   ============================================= */
.cart-sidebar {
    transition: right 0.38s cubic-bezier(.22, 1, .36, 1);
}

/* Cart overlay fade */
.cart-overlay {
    transition: opacity 0.3s;
    opacity: 0;
}

.cart-overlay.active {
    opacity: 1;
}

/* =============================================
   CART ITEM entrance (JS adds class)
   ============================================= */
.cart-item.item-enter {
    animation: slideInRight 0.3s cubic-bezier(.22, 1, .36, 1) both;
}

/* =============================================
   CHECKOUT form fields slide-up stagger
   (applied on page show via JS)
   ============================================= */
.form-group {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s cubic-bezier(.22, 1, .36, 1),
        transform 0.5s cubic-bezier(.22, 1, .36, 1);
}

.checkout-form.animated .form-group {
    opacity: 1;
    transform: translateY(0);
}

.checkout-form.animated .form-group:nth-child(1) {
    transition-delay: 0.06s;
}

.checkout-form.animated .form-group:nth-child(2) {
    transition-delay: 0.14s;
}

.checkout-form.animated .form-group:nth-child(3) {
    transition-delay: 0.22s;
}

.checkout-form.animated .form-group:nth-child(4) {
    transition-delay: 0.30s;
}

.checkout-form.animated .form-group:nth-child(5) {
    transition-delay: 0.38s;
}

/* =============================================
   SECTION TITLES  – underline draw
   ============================================= */
.section-title {
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #a855f7);
    border-radius: 2px;
    transition: width 0.7s cubic-bezier(.22, 1, .36, 1) 0.2s;
}

.reveal.visible .section-title::after,
section .section-title::after {
    width: 60px;
}

@media (max-width: 768px) {

    /* —— Mobile Design System: spacing 4–8–12–16–24–32 only —— */
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-3);
        align-items: stretch;
        padding-bottom: var(--spacing-8);
    }

    .product-card {
        padding: 0;
        border-radius: var(--btn-radius);
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    .product-image {
        flex: 0 0 auto;
        aspect-ratio: 1;
        width: 100%;
        min-height: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: var(--spacing-3);
        background: var(--bg-gray);
    }

    .product-image img {
        max-width: 88%;
        max-height: 88%;
        object-fit: contain;
    }

    .product-image span {
        font-size: 2.5rem;
    }

    .product-info {
        flex: 1 1 auto;
        min-height: 0;
        padding: var(--spacing-4);
        display: flex;
        flex-direction: column;
        gap: var(--spacing-2);
    }

    .product-name {
        font-size: var(--h3);
    }

    /* Variant Options 2 Columns Grid - Compact Mobile */
    .variant-options {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        /* Reduced gap */
    }

    .variant-option {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
        /* Reduced padding */
        height: 100%;
        gap: 4px;
        /* Tighter spacing */
        min-height: 140px;
        /* Consistent height */
    }

    /* Keep the radio circle hidden on mobile grid to save space, but add a clear checkmark and glow */
    .variant-select-circle {
        display: none;
    }

    .variant-option.selected {
        border-color: var(--gold);
        background: var(--bg-white);
        box-shadow: 0 0 0 1.5px var(--gold), 0 8px 24px rgba(201, 169, 110, 0.25);
    }

    .variant-option.selected::before {
        content: '\2713';
        position: absolute;
        top: 8px;
        right: 8px;
        background: var(--gold);
        color: white;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: bold;
        z-index: 2;
        box-shadow: 0 2px 8px rgba(201, 169, 110, 0.4);
    }

    /* Smaller text for mobile */
    .variant-name {
        font-size: 13px !important;
        line-height: 1.3;
        margin-bottom: 2px;
        /* Allow text to wrap fully instead of truncating at 2 lines */
        height: auto;
    }

    .variant-price-text {
        font-size: 13px !important;
        margin-bottom: 4px;
        font-weight: 600;
    }

    /* Compact Badges */
    .variant-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        margin-top: auto;
        /* Push to bottom */
    }

    .variant-badge {
        font-size: 10px !important;
        padding: 2px 6px !important;
        height: auto !important;
    }

    .variant-info {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .variant-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        width: 100%;
    }

    .variant-separator {
        display: none;
    }

    .variant-price-text {
        font-size: var(--body);
    }

    .product-name {
        margin-bottom: 0;
        line-height: 1.35;
        font-size: var(--h3);
    }

    .product-rating {
        margin-bottom: var(--spacing-2);
        flex-wrap: wrap;
    }

    .product-rating .review-count {
        display: none;
    }

    .product-price {
        font-size: var(--body);
        margin-bottom: var(--spacing-2);
    }

    .hot-deal-badge {
        font-size: var(--caption);
        padding: var(--spacing) var(--spacing-3);
    }

    .buy-now-btn {
        min-height: var(--btn-height);
        padding: var(--spacing-3) var(--spacing-6);
        font-size: var(--body);
        width: 100%;
        text-align: center;
        border-radius: var(--btn-radius);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-2);
    }

    .product-info-simple {
        padding: var(--spacing-4);
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .product-info-simple .product-name {
        font-size: var(--h3);
        margin-bottom: var(--spacing-2);
    }

    .product-info-simple .product-price {
        font-size: var(--body);
        margin-bottom: var(--spacing-2);
    }

    .product-info-simple .buy-now-btn {
        min-height: var(--btn-height);
        padding: var(--spacing-3) var(--spacing-6);
        font-size: var(--body);
        width: 100%;
        border-radius: var(--btn-radius);
        margin-top: auto;
        white-space: nowrap;
    }

    .hero h1 {
        font-size: var(--h1);
        margin-bottom: var(--spacing-6);
    }

    .hero p {
        font-size: var(--h3);
        margin-bottom: var(--spacing-8);
    }

    .products-container {
        flex-direction: column;
        gap: var(--spacing-6);
        margin-top: var(--spacing-4);
        padding-bottom: var(--spacing-8);
    }

    .filter-sidebar {
        width: 100%;
        position: sticky;
        top: 60px;
        z-index: 90;
        overflow-x: auto;
        white-space: nowrap;
        padding: var(--spacing-3) var(--spacing-4);
        margin-bottom: 0;
        background: var(--bg-page);
        -ms-overflow-style: none;
        scrollbar-width: none;
        transition: top 0.3s ease;
    }

    header.header-hidden~main .filter-sidebar,
    header.header-hidden~.page .filter-sidebar,
    body:has(header.header-hidden) .filter-sidebar {
        top: 0;
    }

    .filter-sidebar::-webkit-scrollbar {
        display: none;
    }

    .filter-title {
        display: none;
    }

    .filter-list {
        display: flex;
        gap: var(--spacing-3);
        padding: 0;
    }

    .filter-list li {
        padding: var(--spacing-2) var(--spacing-6);
        background: white;
        border-radius: var(--btn-radius);
        border: 1px solid transparent;
        white-space: nowrap;
        font-size: var(--caption);
        font-weight: 500;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        transition: transform 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
    }

    .filter-list li.active {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
        font-weight: 600;
        box-shadow: 0 4px 12px rgba(15, 15, 18, 0.1);
    }

    .products-content {
        width: 100%;
        display: block !important;
    }

    .products-content .section-title {
        font-size: var(--h2);
        margin-bottom: var(--spacing-4);
        text-align: left;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: var(--spacing-3);
    }

    .product-card {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 0;
        height: 100%;
        border-radius: var(--btn-radius);
        background: white;
    }

    .product-info {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: var(--spacing-4) var(--spacing-4);
        gap: var(--spacing-2);
    }

    .product-name {
        margin-bottom: 0;
        font-size: var(--h3);
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-price {
        margin-top: auto;
        margin-bottom: var(--spacing-2);
        font-size: var(--body);
    }

    .product-layout {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-bottom: var(--spacing-8);
    }

    .product-gallery {
        position: static;
        width: 100%;
        order: 1;
        flex-shrink: 0;
        margin-bottom: var(--spacing-4);
    }

    .main-image {
        height: 220px;
        min-height: 180px;
        padding: var(--spacing-4);
        margin-bottom: 0;
        overflow: hidden;
        box-sizing: border-box;
        border-radius: var(--btn-radius);
        background: var(--bg-gray);
    }

    .main-image img {
        object-fit: contain;
    }

    .product-details {
        width: 100%;
        order: 2;
        display: block !important;
        padding-top: 0;
    }

    .product-details h1 {
        font-size: var(--h1);
        margin-bottom: var(--spacing-3);
        margin-top: 0;
        line-height: 1.3;
    }

    .variant-selector,
    .add-to-cart-btn,
    .order-info-section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .order-info-section {
        padding: 16px;
        margin-top: 16px;
    }

    .qty-btn {
        width: 38px;
        height: 38px;
    }

    .qty-value {
        min-width: 40px;
        height: 38px;
        font-size: 16px;
    }

    .buy-now-btn {
        font-size: 15px;
        padding: 14px 16px;
    }

    .add-to-cart-icon-btn {
        width: 50px;
        min-width: 50px;
    }

    .add-to-cart-text-btn {
        font-size: 14px;
        padding: 14px 14px;
    }

    .total-value {
        font-size: 20px;
    }

    .product-tabs {
        display: block !important;
        padding-top: var(--spacing-6);
    }

    .tab-buttons {
        gap: var(--spacing-3);
        overflow-x: auto;
        padding-bottom: var(--spacing-2);
        justify-content: flex-start;
        flex-wrap: nowrap;
        margin-bottom: var(--spacing-4);
    }

    .tab-button {
        white-space: nowrap;
        font-size: var(--caption);
        flex-shrink: 0;
    }

    /* Cart & Checkout */
    .cart-sidebar {
        width: 100%;
        right: -100%;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .cart-footer {
        padding-bottom: calc(24px + 70px);
    }

    .checkout-grid {
        grid-template-columns: 1fr;
    }

    /* Navigation */
    .nav-links {
        display: none;
    }

    .search-container {
        margin: 0 var(--spacing-3);
        flex: 1;
    }

    .search-input {
        width: 100%;
        padding: var(--spacing-2) var(--spacing-4);
        padding-left: 40px;
        font-size: var(--body);
    }

    .search-input:focus {
        width: 100%;
    }

    nav {
        padding: var(--spacing-3) var(--spacing-4);
        gap: var(--spacing-2);
    }

    .logo {
        font-size: var(--h3);
    }

    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-3);
    }

    .footer-contact {
        font-size: 12px;
        line-height: 1.8;
    }

    .footer-contact a {
        display: inline;
        margin: 0 4px;
    }

    /* Section spacing – Base × 2 */
    section {
        margin: var(--spacing-8) auto;
        padding: 0 var(--spacing-4);
    }

    .section-title {
        font-size: var(--h2);
        margin-bottom: var(--spacing-6);
    }

    .cta-button {
        min-height: var(--btn-height);
        padding: var(--spacing-3) var(--spacing-6);
        font-size: var(--body);
        border-radius: var(--btn-radius);
    }

    .view-details {
        min-height: var(--btn-height);
        padding: var(--spacing-3) var(--spacing-6);
        font-size: var(--body);
        border-radius: var(--btn-radius);
    }

    .checkout-btn,
    .place-order-btn,
    .add-to-cart-btn {
        min-height: var(--btn-height);
        padding: var(--spacing-3) var(--spacing-6);
        font-size: var(--body);
        border-radius: var(--btn-radius);
    }

    .hero {
        margin-top: 80px;
        padding: calc(2 * var(--spacing-6)) var(--spacing-4);
    }

    .cta-section {
        padding: var(--spacing-8) var(--spacing-4);
    }

    .cta-section h2 {
        font-size: var(--h2);
        margin-bottom: var(--spacing-4);
    }

    .cta-section p {
        font-size: var(--body);
        margin-bottom: var(--spacing-8);
    }

    .feature-card {
        padding: var(--spacing-6);
        border-radius: var(--btn-radius);
    }

    .feature-title {
        font-size: var(--h2);
        margin-bottom: var(--spacing-2);
    }

    .feature-desc {
        font-size: var(--caption);
    }

    /* (old testimonial mobile overrides removed – see .testi-* responsive rules) */

    .confirmation-container {
        margin: var(--spacing-8) auto;
        padding: 0 var(--spacing-4);
    }

    .confirmation-container h1 {
        font-size: var(--h2);
    }

    .payment-info {
        padding: var(--spacing-4);
    }

    .payment-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-2);
    }

    .payment-value-wrap {
        width: 100%;
        justify-content: space-between;
    }

    .copy-btn-primary {
        flex-shrink: 0;
    }

    footer {
        padding: var(--spacing-4) var(--spacing-4) var(--spacing-3);
    }

    .footer-links {
        margin-bottom: var(--spacing-3);
    }

    .footer-contact {
        margin-bottom: var(--spacing-3);
    }

    .cart-header {
        padding: var(--spacing-4);
    }

    .cart-header h2 {
        font-size: var(--h2);
    }

    .cart-items {
        padding: var(--spacing-4);
    }

    .cart-footer {
        padding: var(--spacing-4);
    }

    .cart-total {
        font-size: var(--h3);
        margin-bottom: var(--spacing-4);
    }

    .form-group label {
        font-size: var(--caption);
    }

    .form-group input,
    .form-group textarea {
        padding: var(--spacing-3);
        font-size: var(--body);
    }

    .form-section h3 {
        font-size: var(--h3);
        margin-bottom: var(--spacing-4);
    }
}

/* V2 UI ELEMENTS */

/* TOAST NOTIFICATIONS */
#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 18px;
    border-radius: 14px;
    background: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
    max-width: 340px;
    animation: toastSlideIn 0.38s cubic-bezier(.22, 1, .36, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

/* progress bar đếm ngược ở đáy toast */
.toast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    animation: toastProgress 3s linear forwards;
}

.toast.success::after {
    background: linear-gradient(90deg, #16a34a, #4ade80);
}

.toast.error::after {
    background: linear-gradient(90deg, #dc2626, #f87171);
}

.toast.info::after {
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

@keyframes toastProgress {
    from {
        width: 100%;
    }

    to {
        width: 0;
    }
}

/* icon circle */
.toast-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    background: #dcfce7;
    color: #16a34a;
}

.toast.error .toast-icon {
    background: #fee2e2;
    color: #dc2626;
}

.toast.info .toast-icon {
    background: #dbeafe;
    color: #2563eb;
}

.toast-message {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastFadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(50px);
    }
}

/* INPUT VALIDATION */
.form-group input.error,
.form-group textarea.error {
    border-color: #ff3b30;
    background: #fff5f5;
}

.error-message {
    color: #ff3b30;
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: fadeIn 0.3s;
}

/* COPY BUTTON */
.copy-btn {
    background: var(--bg-gray);
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-secondary);
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.copy-btn:hover {
    background: var(--accent-bg);
    color: var(--accent);
}

/* INVOICE ICON */
.invoice-btn {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    margin-top: 8px;
}

@keyframes tabSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FLOATING CONTACT - Zalo icon FAB */
@keyframes fabSlideIn {
    from {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* fabPulse — uses transform+opacity instead of box-shadow for GPU compositing */
@keyframes fabPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.55;
    }
}

.contact-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #0068FF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 104, 255, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    animation: fabSlideIn 0.5s ease-out 1s backwards, fabPulse 3s ease-in-out 2s infinite;
}

.contact-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(0, 104, 255, 0.5);
}

.contact-fab svg {
    width: 42px;
    height: 42px;
}

@media (max-width: 768px) {
    .contact-fab {
        width: 40px;
        height: 40px;
        bottom: 68px;
        right: 14px;
        border-radius: 12px;
        opacity: 0.85;
        box-shadow: 0 2px 10px rgba(0, 104, 255, 0.25);
    }

    .contact-fab svg {
        width: 30px;
        height: 30px;
    }
}

/* LOGO UPDATE V3 */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 38px;
    width: 38px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, var(--primary) 0%, #2a2a4a 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* HERO SLOGAN — BALANCED REDESIGN */
.hero-eyebrow {
    display: none;
}

.hero h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
}

.slogan-line1 {
    font-size: 46px;
    font-weight: 600;
    color: #1a1a2e;
    letter-spacing: -1px;
    line-height: 1.2;
    font-style: italic;
    animation: sloganFadeIn 0.7s ease-out both;
}

.slogan-divider {
    display: none;
}

.slogan-line2 {
    font-size: 40px;
    font-weight: 400;
    color: #4b5563;
    letter-spacing: -0.5px;
    line-height: 1.25;
    animation: sloganFadeIn 0.7s 0.15s ease-out both;
}

.slogan-brand {
    font-weight: 700;
    color: #1a1a2e;
    position: relative;
    display: inline;
}

.slogan-brand::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    opacity: 0.6;
}

.slogan-main,
.slogan-sub {
    display: none;
}

.hero-desc {
    font-size: 16px;
    color: #9ca3af;
    letter-spacing: 0.2px;
    margin-bottom: 32px;
    animation: sloganFadeIn 0.7s 0.3s ease-out both;
}

@keyframes sloganFadeIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .slogan-line1 {
        font-size: 28px;
        letter-spacing: -0.5px;
    }

    .slogan-line2 {
        font-size: 24px;
        letter-spacing: -0.3px;
    }

    .hero-desc {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .hero h1 {
        gap: 4px;
        margin-bottom: 18px;
    }

    .hero .cta-button {
        min-height: 52px;
        padding: var(--spacing-4) var(--spacing-8);
        font-size: var(--h3);
    }
}

/* MOBILE FIX FOR PRODUCT GALLERY */
@media (max-width: 768px) {
    .product-layout {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    /* Make gallery's children become direct flex children of product-layout */
    .product-gallery {
        display: contents;
    }

    /* Order: 1=image, 2=product-details(variants), 3=order-info */
    .product-gallery .main-image {
        order: 1;
        margin-bottom: 16px;
        height: 300px;
    }

    .product-details {
        order: 2;
    }

    .product-gallery .order-info-section {
        order: 3;
    }
}

/* Legacy success page styles removed - using new conf-* classes */

/* ============================================
   ORDER LOOKUP PAGE — Premium Redesign
   ============================================ */

/* ── Hero ── */
.lookup-hero {
    position: relative;
    padding: 140px 20px 60px;
    text-align: center;
    overflow: hidden;
}

.lookup-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-page) 30%, rgba(201, 169, 110, 0.1) 60%, var(--bg-cream) 100%);
    z-index: 0;
}

.lookup-hero-bg::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.12) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    animation: lookupFloat 8s ease-in-out infinite;
}

.lookup-hero-bg::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 58, 95, 0.08) 0%, transparent 70%);
    bottom: -100px;
    left: -80px;
    animation: lookupFloat 10s ease-in-out infinite reverse;
}

@keyframes lookupFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(20px, -20px) scale(1.05);
    }
}

.lookup-hero-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.lookup-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.95);
    /* Removed backdrop-filter */
    border: 1px solid var(--border-gold);
    border-radius: 980px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 20px;
}

.lookup-hero-title {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.lookup-gradient-text {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lookup-hero-desc {
    font-size: 16px;
    color: #6b7280;
    max-width: 460px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* ── Search Box ── */
.lookup-search-box {
    max-width: 540px;
    margin: 0 auto 28px;
}

.lookup-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.97);
    /* Removed backdrop-filter */
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 4px 24px rgba(30, 58, 95, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 2px solid var(--border);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.lookup-input-group:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-bg), 0 8px 32px rgba(30, 58, 95, 0.1);
}

.lookup-input-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 4px 6px;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lookup-input-wrap:focus-within {
    border-color: var(--gold);
    background: white;
}

.lookup-search-svg {
    flex-shrink: 0;
    margin: 0 12px;
    color: #9ca3af;
    transition: color 0.3s;
}

.lookup-input-wrap:focus-within .lookup-search-svg {
    color: var(--accent);
}

.lookup-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: inherit;
    padding: 14px 4px;
    background: transparent;
    color: var(--text-primary);
    min-width: 0;
}

.lookup-input::placeholder {
    color: #9ca3af;
}

.lookup-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: var(--accent);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    white-space: nowrap;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.2);
}

.lookup-submit-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.3);
}

.lookup-submit-btn:active {
    transform: translateY(0);
}

.lookup-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.lookup-btn-arrow {
    transition: transform 0.2s;
}

.lookup-submit-btn:hover .lookup-btn-arrow {
    transform: translateX(3px);
}

/* ── Trust Badges ── */
.lookup-trust {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.lookup-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

.lookup-trust-item svg {
    color: var(--gold);
}

/* ── Results Section ── */
.lookup-results-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* ── Guide ── */
.lookup-guide {
    padding: 32px 0;
}

.lookup-guide-title {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.lookup-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.lookup-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
}

.lookup-step:hover {
    border-color: var(--border-gold);
    box-shadow: 0 4px 16px rgba(201, 169, 110, 0.08);
    transform: translateX(4px);
}

.lookup-step-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
}

.lookup-step-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.lookup-step-info p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.lookup-guide-cta {
    text-align: center;
    padding: 24px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

.lookup-guide-cta p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
}

.lookup-zalo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #0068ff;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
}

.lookup-zalo-btn:hover {
    background: #0055d4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 104, 255, 0.3);
}

/* ── Loading State ── */
.lookup-loading {
    text-align: center;
    padding: 48px 24px;
}

.lookup-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: lookupSpin 0.8s linear infinite;
    margin: 0 auto 16px;
}

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

.lookup-loading p {
    color: #6b7280;
    font-size: 14px;
}

/* ── Empty / Error State ── */
.lookup-empty {
    text-align: center;
    padding: 48px 24px;
    background: white;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.lookup-empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.lookup-empty p {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 4px;
}

.lookup-hint {
    font-size: 13px !important;
    color: #9ca3af !important;
}

.lookup-hint a {
    color: var(--accent);
    font-weight: 500;
}

/* ── Result Count ── */
.lookup-count {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 16px;
    padding-left: 4px;
}

/* ── Order Cards ── */
.lookup-order-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 16px;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.lookup-order-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    border-color: #c7d2fe;
    transform: translateY(-2px);
}

.lookup-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.lookup-order-code {
    font-family: 'JetBrains Mono', 'SF Mono', Monaco, monospace;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.lookup-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 980px;
    font-size: 12px;
    font-weight: 600;
}

.lookup-badge.status-fulfilled {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.lookup-badge.status-pending_payment {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.lookup-badge.status-paid {
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #a5b4fc;
}

.lookup-badge.status-failed,
.lookup-badge.status-refunded {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.lookup-order-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f3f4f6;
}

.lookup-total {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 16px;
}

.lookup-discount {
    font-size: 12px;
    color: #059669;
    margin-bottom: 12px;
    padding: 6px 12px;
    background: #ecfdf5;
    border-radius: 8px;
    display: inline-block;
}

/* Items list */
.lookup-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lookup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 13px;
}

.lookup-item-name {
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 12px;
}

.lookup-item-info {
    color: #6b7280;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
}

/* ── Action Buttons ── */
.lookup-action {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
    text-align: center;
}

.lookup-delivery-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.25s, background 0.25s, box-shadow 0.25s, color 0.25s, border-color 0.25s;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.lookup-delivery-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.lookup-pending-note {
    font-size: 13px;
    color: #d97706;
    font-weight: 500;
}

.lookup-paid-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4f46e5;
    font-weight: 500;
}

/* ── Inline Credentials ── */
.lookup-credentials {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.lookup-credentials-title {
    font-size: 14px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lookup-cred-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
}

.lookup-cred-card:last-child {
    margin-bottom: 0;
}

.lookup-cred-field {
    margin-bottom: 8px;
}

.lookup-cred-field:last-child {
    margin-bottom: 0;
}

.lookup-cred-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.lookup-cred-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-family: 'JetBrains Mono', 'SF Mono', Monaco, monospace;
    font-size: 13px;
    word-break: break-all;
    gap: 8px;
}

.lookup-cred-text {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
}

.lookup-cred-text.blurred {
    filter: blur(6px);
    user-select: none;
}

.lookup-cred-copy {
    flex-shrink: 0;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #4f46e5;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s, box-shadow 0.15s, color 0.15s, opacity 0.15s;
    font-family: inherit;
}

.lookup-cred-copy:hover {
    background: #4f46e5;
    color: white;
}

.lookup-cred-reveal {
    flex-shrink: 0;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s, box-shadow 0.15s, color 0.15s, opacity 0.15s;
    font-family: inherit;
}

.lookup-cred-reveal:hover {
    background: #059669;
    color: white;
}

.lookup-email-hint {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    font-size: 13px;
    color: #92400e;
    text-align: center;
    line-height: 1.5;
}

.lookup-email-hint a {
    color: #d97706;
    font-weight: 600;
    text-decoration: underline;
}

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
    .lookup-hero {
        padding: 110px 16px 40px;
    }

    .lookup-hero-title {
        font-size: 28px;
        letter-spacing: -1px;
    }

    .lookup-hero-desc {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .lookup-input-group {
        padding: 10px;
        gap: 8px;
    }

    .lookup-input-wrap {
        padding: 2px 6px;
    }

    .lookup-input {
        padding: 12px 4px;
        font-size: 14px;
    }

    .lookup-submit-btn {
        padding: 14px;
        border-radius: 12px;
    }

    .lookup-trust {
        gap: 12px;
    }

    .lookup-trust-item {
        font-size: 12px;
    }

    .lookup-results-section {
        padding: 0 16px 100px;
    }

    .lookup-order-card {
        padding: 18px;
        border-radius: 16px;
    }

    .lookup-order-code {
        font-size: 14px;
    }

    .lookup-order-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .lookup-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .lookup-step {
        padding: 16px;
    }

    .lookup-hero-bg::before,
    .lookup-hero-bg::after {
        width: 250px;
        height: 250px;
    }

    .lookup-cred-value {
        flex-wrap: wrap;
    }
}

/* ── Mobile Bottom Navigation ── */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    /* Removed backdrop-filter — use opaque bg (always visible during scroll) */
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 9999;
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.05);
}

.mobile-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 480px;
    margin: 0 auto;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: #9ca3af;
    font-size: 10px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 12px;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mobile-nav-item.active {
    color: var(--accent);
}

.mobile-nav-item.active svg {
    stroke-width: 2.2;
}

.mobile-nav-item span {
    font-family: 'Be Vietnam Pro', sans-serif;
}

.mobile-nav-zalo {
    color: #0068FF !important;
}

.mobile-nav-zalo svg {
    stroke: none !important;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }

    /* Extra bottom padding on all pages to prevent content behind nav */
    .page {
        padding-bottom: 80px;
    }

    /* Hide desktop nav links on mobile - will show bottom nav instead */
    .nav-links {
        display: none !important;
    }
}

/* =============================================
   HERO BANNER SLIDER — New Layout
   ============================================= */
.hero-banner {
    margin-top: 80px !important;
    margin-bottom: 24px !important;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 24px 0;
    position: relative;
}

.hero-slider {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 340px;
}

.hero-slide {
    display: none;
    padding: 48px 56px;
    min-height: 340px;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    animation: slideFadeIn 0.6s ease-out;
}

/* Theme: Warm cream (default) */
.hero-slide[data-theme="warm"] {
    background: linear-gradient(135deg, #1e3a5f 0%, #2a4a6f 40%, #1e3a5f 100%);
}

/* Theme: Navy deep */
.hero-slide[data-theme="navy"] {
    background: linear-gradient(135deg, #0d1b2a 0%, #1b2838 40%, #1a2744 100%);
}

/* Theme: Gold warm */
.hero-slide[data-theme="gold"] {
    background: linear-gradient(135deg, #2a1f0f 0%, #3d2e18 40%, #1e3a5f 100%);
}

.hero-slide.active {
    display: flex;
}

@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-slide-content {
    flex: 1;
    min-width: 0;
}

/* Badge variants */
.hero-slide-badge {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 980px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.badge-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #1a1a2e;
}

.badge-deal {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.badge-instant {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #1a1a2e;
}

.badge-new {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.hero-slide-title {
    font-size: 38px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.text-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-slide-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 28px;
    line-height: 1.6;
}

.hero-slide-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-slide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--primary);
    text-decoration: none;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.hero-slide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 169, 110, 0.35);
}

.hero-slide-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: transparent;
    color: white;
    text-decoration: none;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 600;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.hero-slide-btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

.hero-slide-visual {
    flex: 0 0 auto;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide-visual img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 50%;
    /* Removed filter:drop-shadow for GPU performance */
}

/* Floating icons */
.hero-float-icons {
    position: relative;
    width: 180px;
    height: 180px;
}

.float-icon {
    position: absolute;
    font-size: 48px;
    left: var(--x, 0);
    top: var(--y, 0);
    animation: heroFloat 4s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    text-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.float-icon.big {
    font-size: 64px;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

/* Slider dots */
.hero-slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 14px 0 0;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    padding: 0;
}

.hero-dot.active {
    background: var(--gold);
    width: 24px;
    border-radius: 4px;
}

/* Slider arrows */
.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.25);
    /* Removed backdrop-filter */
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    z-index: 2;
}

.hero-slider-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
}

.hero-arrow-prev {
    left: 36px;
}

.hero-arrow-next {
    right: 36px;
}

/* =============================================
   CATEGORY BANNERS
   ============================================= */
.category-banners {
    max-width: 1200px;
    margin: 24px auto 0 !important;
    padding: 0 24px;
}

.category-banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.category-banner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: white;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 110px;
}

.category-banner-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.05);
    opacity: 0;
    transition: opacity 0.3s;
}

.category-banner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.category-banner-card:hover::before {
    opacity: 1;
}

.cat-banner-emoji {
    font-size: 32px;
    margin-bottom: 8px;
    /* Removed filter:drop-shadow for performance */
}

.cat-banner-name {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.cat-banner-count {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 2px;
}

/* =============================================
   PRODUCT CARD — New Layout (matching reference)
   ============================================= */

/* Override: badge inside image area */
.product-image {
    position: relative;
}

.product-image .delivery-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    margin-bottom: 0;
}

/* Rating + sold row */
.product-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.product-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 500;
}

.product-rating-stars .stars {
    color: #f59e0b;
    font-size: 13px;
    letter-spacing: -1px;
}

.product-sold {
    color: var(--text-muted);
    font-size: 12px;
}

/* Price row */
.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.product-price-row .product-price {
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.product-price-row .price-ctv {
    font-size: 11px;
}

/* Buy button icon alignment */
.buy-now-btn svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {

    /* ── Hero banner mobile ── */
    .hero-banner {
        margin-top: 60px;
        padding: 12px 16px 0;
    }

    .hero-slider {
        min-height: 240px;
        border-radius: var(--btn-radius);
    }

    .hero-slide {
        flex-direction: column;
        padding: 28px 24px;
        min-height: 240px;
        gap: 20px;
        text-align: center;
    }

    .hero-slide-title {
        font-size: 22px;
        letter-spacing: -0.5px;
    }

    .hero-slide-desc {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .hero-slide-actions {
        justify-content: center;
    }

    .hero-slide-btn,
    .hero-slide-btn-outline {
        padding: 10px 24px;
        font-size: 13px;
    }

    .hero-slide-visual {
        width: 120px;
        height: 120px;
        display: none;
    }

    .hero-visual-grid {
        font-size: 36px;
        gap: 10px;
    }

    .hero-slider-arrow {
        width: 32px;
        height: 32px;
    }

    .hero-arrow-prev {
        left: 8px;
    }

    .hero-arrow-next {
        right: 8px;
    }

    .hero-slider-dots {
        padding: 12px 0 0;
    }

    /* ── Category banners mobile ── */
    .category-banners {
        padding: 0 16px;
        margin-top: -16px;
    }

    .category-banner-grid {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 4px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .category-banner-grid::-webkit-scrollbar {
        display: none;
    }

    .category-banner-card {
        flex: 0 0 auto;
        min-width: 120px;
        min-height: 90px;
        padding: 16px 14px;
        border-radius: var(--btn-radius);
    }

    .cat-banner-emoji {
        font-size: 24px;
        margin-bottom: 4px;
    }

    .cat-banner-name {
        font-size: 13px;
    }

    .cat-banner-count {
        font-size: 11px;
    }

    /* ── Product card mobile adjustments ── */
    .product-image .delivery-badge {
        top: 8px;
        left: 8px;
        font-size: 10px;
        padding: 2px 8px;
    }

    .product-meta-row {
        font-size: 11px;
        margin-bottom: 4px;
        gap: 4px;
    }

    .product-rating-stars .stars {
        font-size: 11px;
    }

    .product-price-row {
        margin-bottom: 8px;
    }

    .product-price-row .product-price {
        font-size: 14px;
    }

    .buy-now-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* =============================================
   PRODUCTS PAGE V2 — Chip Filters Above Grid
   ============================================= */
.products-container-v2 {
    display: block !important;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
}

.products-header-v2 {
    margin-bottom: 32px;
}

.products-header-v2 .section-title {
    text-align: left;
    font-size: 32px;
    margin-bottom: 20px;
}

.filter-chips-wrap {
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.filter-chips-wrap::-webkit-scrollbar {
    display: none;
}

.filter-chips {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
}

.filter-chips li {
    padding: 8px 22px;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    color: var(--text-primary);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    white-space: nowrap;
    /* Removed backdrop-filter */
}

.filter-chips li:hover {
    background: var(--gold-bg);
    border-color: var(--border-gold);
    color: var(--gold-dark);
}

.filter-chips li.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(15, 15, 18, 0.15);
}

@media (max-width: 768px) {
    .products-container-v2 {
        padding: 0 16px;
        margin-top: 16px;
    }

    .products-header-v2 {
        margin-bottom: 16px;
    }

    .products-header-v2 .section-title {
        font-size: var(--h2);
        margin-bottom: 12px;
    }

    .filter-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .filter-chips::-webkit-scrollbar {
        display: none;
    }

    .filter-chips li {
        padding: 6px 18px;
        font-size: 13px;
    }
}



/* =============================================
   🎬 WELCOME OVERLAY — Premium
   ============================================= */
.welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: linear-gradient(160deg, #070a13 0%, #0d1526 30%, #142240 60%, #0f1c38 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    overflow: hidden;
}

.welcome-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Floating particles container */
.welcome-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.welcome-particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.6) 0%, transparent 70%);
    pointer-events: none;
    animation: welcomeParticleFloat linear infinite;
}

@keyframes welcomeParticleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-20vh) scale(1);
        opacity: 0;
    }
}

/* Card */
.welcome-card {
    text-align: center;
    padding: 48px 40px;
    position: relative;
    z-index: 1;
}

/* Logo ring */
.welcome-logo-ring {
    width: 110px;
    height: 110px;
    margin: 0 auto 24px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--gold) 0%, rgba(201, 169, 110, 0.3) 50%, var(--gold) 100%);
    box-shadow: 0 0 40px rgba(201, 169, 110, 0.15), 0 0 80px rgba(201, 169, 110, 0.05);
    animation: welcomeLogoEntry 1s cubic-bezier(0.4, 0, 0.2, 1) forwards, welcomeRingGlow 3s ease-in-out 1.2s infinite;
    opacity: 0;
    transform: scale(0.7);
}

@keyframes welcomeLogoEntry {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes welcomeRingGlow {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(201, 169, 110, 0.15), 0 0 80px rgba(201, 169, 110, 0.05);
    }

    50% {
        box-shadow: 0 0 50px rgba(201, 169, 110, 0.25), 0 0 100px rgba(201, 169, 110, 0.1);
    }
}

.welcome-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Title & desc */
.welcome-title {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    opacity: 0;
    transform: translateY(16px);
    animation: welcomeSlideUp 0.7s ease-out 0.3s forwards;
}

.welcome-desc {
    font-size: 16px;
    color: rgba(201, 169, 110, 0.7);
    margin-bottom: 28px;
    font-weight: 400;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(16px);
    animation: welcomeSlideUp 0.7s ease-out 0.45s forwards;
}

@keyframes welcomeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Trust badges */
.welcome-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(16px);
    animation: welcomeSlideUp 0.7s ease-out 0.6s forwards;
}

.welcome-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.12);
    /* Removed backdrop-filter */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 980px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s, color 0.3s, border-color 0.3s;
}

.welcome-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(201, 169, 110, 0.3);
}

.welcome-badge-icon {
    font-size: 14px;
}

/* CTA Button */
.welcome-enter-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 44px;
    background: linear-gradient(135deg, var(--gold) 0%, #b8943d 50%, var(--gold) 100%);
    background-size: 200% 200%;
    color: #0f0f12;
    border: none;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-family: inherit;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 24px rgba(201, 169, 110, 0.3);
    opacity: 0;
    transform: translateY(16px);
    animation: welcomeSlideUp 0.7s ease-out 0.75s forwards, welcomeBtnShimmer 3s ease-in-out 1.5s infinite;
    position: relative;
    overflow: hidden;
}

@keyframes welcomeBtnShimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.welcome-enter-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 36px rgba(201, 169, 110, 0.45);
}

.welcome-enter-btn:active {
    transform: translateY(-1px) !important;
}

/* Music hint */
.welcome-hint {
    margin-top: 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    opacity: 0;
    animation: welcomeSlideUp 0.7s ease-out 0.9s forwards;
}

/* Mobile */
@media (max-width: 480px) {
    .welcome-card {
        padding: 40px 24px;
    }

    .welcome-title {
        font-size: 28px;
    }

    .welcome-badges {
        flex-wrap: wrap;
        gap: 8px;
    }

    .welcome-badge {
        padding: 6px 12px;
        font-size: 12px;
    }

    .welcome-enter-btn {
        padding: 14px 36px;
        font-size: 15px;
    }
}

/* =============================================
   SMOOTH SCROLL
   ============================================= */
html {
    scroll-behavior: smooth;
}

/* =============================================
   PREFERS-REDUCED-MOTION – Accessibility
   ============================================= */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    body {
        animation: none;
        background-size: 100% 100%;
    }

    body::before,
    body::after {
        animation: none;
    }

    .welcome-overlay {
        transition: opacity 0.2s;
    }

    .hero-slider {
        transition: none;
    }

    .page.page-enter,
    .page.page-exit {
        animation: none;
    }
}

/* =============================================
   BACK TO TOP BUTTON
   ============================================= */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    /* Removed backdrop-filter */
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    z-index: 9990;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: white;
}

.back-to-top:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 140px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
}

/* =============================================
   POLICY MODAL
   ============================================= */
.policy-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0, 0, 0, 0.65);
    /* Removed backdrop-filter — darkened overlay compensates */
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: lbFadeIn 0.25s ease;
}

.policy-modal-overlay.open {
    display: flex;
}

.policy-modal {
    background: white;
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
    animation: lbZoomIn 0.3s ease;
}

.policy-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.policy-modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.policy-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    font-size: 22px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
    line-height: 1;
}

.policy-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.policy-modal-body {
    padding: 24px;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.policy-modal-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 20px 0 8px;
}

.policy-modal-body h3:first-child {
    margin-top: 0;
}

.policy-modal-body ul {
    padding-left: 20px;
    margin: 8px 0;
}

.policy-modal-body li {
    margin-bottom: 6px;
}

@media (max-width: 480px) {
    .policy-modal {
        max-height: 90vh;
        border-radius: var(--radius-lg);
    }

    .policy-modal-header {
        padding: 16px 20px;
    }

    .policy-modal-body {
        padding: 20px;
    }
}

/* =============================================
   SKELETON LOADING
   ============================================= */
.skeleton-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border);
}

.skeleton-img {
    height: 200px;
    background: var(--bg-gray);
}

.skeleton-body {
    padding: 20px;
}

.skeleton-text {
    height: 14px;
    margin-bottom: 10px;
    border-radius: 6px;
    background: var(--bg-gray);
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-btn {
    height: 40px;
    border-radius: 980px;
    background: var(--bg-gray);
    margin-top: 12px;
}

.shimmer {
    background: linear-gradient(90deg, #f0ece5 25%, #e8e4dc 50%, #f0ece5 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

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

    100% {
        background-position: -200% 0;
    }
}

/* =============================================
   PRODUCT CARD HOVER — Image Zoom
   ============================================= */
.product-image img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* =============================================
   CART BADGE BOUNCE
   ============================================= */
@keyframes cartBounce {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.5);
    }

    50% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

.cart-count.bounce {
    animation: cartBounce 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   CART ICON — Reset button styles
   ============================================= */
button.cart-icon {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-primary);
    position: relative;
}

/* Close cart — Reset button styles */
button.close-cart {
    background: none;
    border: none;
    padding: 0;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s;
    line-height: 1;
}

button.close-cart:hover {
    color: var(--primary);
}



/* =============================================
   🚀 PERFORMANCE — Mobile GPU Optimizations
   ============================================= */
@media (max-width: 768px) {

    /* Smaller blobs on mobile */
    body::before {
        width: 300px;
        height: 300px;
    }

    body::after {
        width: 250px;
        height: 250px;
    }

    /* Smaller orbs on mobile */
    .orb--1 {
        width: 180px;
        height: 180px;
    }

    .orb--2 {
        width: 140px;
        height: 140px;
    }

    .orb--3 {
        width: 100px;
        height: 100px;
    }

    /* Reduce bgNoiseOverlay complexity on mobile */
    #bgNoiseOverlay {
        background-image:
            radial-gradient(circle, rgba(30, 58, 95, 0.06) 1px, transparent 1px),
            radial-gradient(ellipse 40% 35% at 10% 50%, rgba(201, 169, 110, 0.10) 0%, transparent 70%);
        background-size: 24px 24px, 100% 100%;
        background-position: 12px 12px, 0 0;
    }
}

/* =============================================
   ♿ ACCESSIBILITY — Reduced Motion
   Gentler, slower animations (NOT removed)
   ============================================= */
@media (prefers-reduced-motion: reduce) {

    /* Slow down continuous animations instead of removing */
    body {
        animation-duration: 60s;
    }

    body::before,
    body::after {
        animation-duration: 40s;
    }

    .orb--1,
    .orb--2,
    .orb--3 {
        animation-duration: 30s;
    }

    /* Gentler transitions */
    *,
    *::before,
    *::after {
        transition-duration: 0.15s !important;
        animation-iteration-count: infinite;
    }

    /* Keep scroll-reveal but make it instant */
    .reveal {
        transition-duration: 0.3s !important;
    }
}

/* =============================================
   WELCOME POPUP / DISCLAIMER
   ============================================= */
.welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 15, 18, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 1;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.welcome-overlay.closing {
    opacity: 0;
    pointer-events: none;
}

.welcome-overlay.hidden {
    display: none;
}

.welcome-popup {
    position: relative;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(201, 169, 110, 0.2);
    box-shadow:
        0 32px 64px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 80px rgba(201, 169, 110, 0.08);
    overflow-y: auto;
    overflow-x: hidden;
    animation: popupEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    -webkit-overflow-scrolling: touch;
}

@keyframes popupEnter {
    0% {
        opacity: 0;
        transform: scale(0.88) translateY(30px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.welcome-popup-glow {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(201, 169, 110, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.welcome-popup-content {
    padding: 36px 28px 28px;
    text-align: center;
    position: relative;
}

.welcome-popup-logo {
    margin-bottom: 16px;
}

.welcome-logo-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(201, 169, 110, 0.2);
}

.welcome-popup-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1.3;
    margin-bottom: 6px;
}

.welcome-brand {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-popup-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 400;
}

.welcome-popup-notice {
    text-align: left;
    background: linear-gradient(135deg, rgba(250, 248, 245, 0.9), rgba(240, 236, 229, 0.7));
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 24px;
}

.welcome-notice-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(30, 58, 95, 0.06);
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.welcome-notice-header svg {
    color: var(--accent);
    flex-shrink: 0;
}

.welcome-notice-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.welcome-term {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.welcome-term strong {
    color: var(--text-primary);
    font-weight: 600;
}

.welcome-term-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    margin-top: 1px;
}

.welcome-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.welcome-popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary) 0%, #2a2a4a 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    font-family: inherit;
    letter-spacing: 0.01em;
}

.welcome-popup-btn:hover {
    background: linear-gradient(135deg, #1a1a2e 0%, #3a3a5a 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(15, 15, 18, 0.25);
}

.welcome-popup-btn:active {
    transform: translateY(0);
}

.welcome-popup-btn svg {
    transition: transform 0.2s;
}

.welcome-popup-btn:hover svg {
    transform: translateX(3px);
}

.welcome-zalo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 28px;
    background: transparent;
    color: #0068FF;
    border: 1.5px solid #d0e3ff;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
    font-family: inherit;
    text-decoration: none;
}

.welcome-zalo-btn:hover {
    background: rgba(0, 104, 255, 0.05);
    border-color: #0068FF;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 104, 255, 0.12);
}

.welcome-tele-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 28px;
    background: transparent;
    color: #0088CC;
    border: 1.5px solid #b3dff5;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
    font-family: inherit;
    text-decoration: none;
}

.welcome-tele-btn:hover {
    background: rgba(41, 182, 246, 0.07);
    border-color: #29B6F6;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(41, 182, 246, 0.18);
}

.welcome-popup-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 14px;
    opacity: 0.6;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .welcome-popup-content {
        padding: 24px 18px 18px;
    }

    .welcome-popup-title {
        font-size: 20px;
    }

    .welcome-popup-subtitle {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .welcome-notice-body {
        padding: 12px 14px;
    }

    .welcome-term {
        font-size: 12px;
        gap: 8px;
    }

    .welcome-term-num {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .welcome-logo-img {
        width: 52px;
        height: 52px;
    }

    .welcome-popup-btn {
        font-size: 14px;
        padding: 12px 20px;
    }

    .welcome-zalo-btn {
        font-size: 13px;
        padding: 10px 20px;
    }

    .welcome-tele-btn {
        font-size: 13px;
        padding: 10px 20px;
    }
}

/* Short screen — iPhone SE, older devices */
@media (max-height: 700px) {
    .welcome-popup-content {
        padding: 18px 16px 14px;
    }

    .welcome-popup-logo {
        margin-bottom: 10px;
    }

    .welcome-logo-img {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .welcome-popup-title {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .welcome-popup-subtitle {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .welcome-notice-header {
        padding: 8px 12px;
        font-size: 12px;
    }

    .welcome-notice-body {
        padding: 10px 12px;
        gap: 8px;
    }

    .welcome-term {
        font-size: 11.5px;
        gap: 8px;
        line-height: 1.45;
    }

    .welcome-term-num {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }

    .welcome-popup-actions {
        gap: 8px;
    }

    .welcome-popup-btn {
        padding: 11px 20px;
        font-size: 13px;
        border-radius: 12px;
    }

    .welcome-zalo-btn {
        padding: 9px 20px;
        font-size: 12px;
        border-radius: 12px;
    }

    .welcome-tele-btn {
        padding: 9px 20px;
        font-size: 12px;
        border-radius: 12px;
    }

    .welcome-popup-note {
        margin-top: 8px;
        font-size: 11px;
    }

    .welcome-popup-notice {
        margin-bottom: 16px;
    }
}