/*
Theme Name: Emjoy
Theme URI: https://emjoy.vn
Author: Emjoy Team
Author URI: https://emjoy.vn
Description: Theme WooCommerce thời trang cá nhân hóa thêu tên, tối ưu cho thị trường Việt Nam. Hỗ trợ Block Checkout, RTL, i18n và 50+ cài đặt Customizer.
Version: 1.0.56
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: emjoy
Domain Path: /languages
Tags: e-commerce, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, rtl-language-support, woocommerce

Emjoy - Premium WooCommerce Theme for Vietnamese Fashion
Copyright (C) 2026 Emjoy
*/

/*
 * Core styles in assets/css are registered separately in inc/enqueue.php.
 * Do not @import them here: doing so downloads and applies every stylesheet
 * twice (once through style.css and once through wp_enqueue_style()).
 */

/* Customizer color presets. Layout and components live in assets/css sources. */
:root {
    /* Dynamic values are printed by the Customizer when configured. */
}

.color-preset-kraft {
    --em-primary: #0038A0;
    --em-secondary: #F5C518;
    --em-bg: #FAF6EE;
    --em-text: #3A3733;
}

.color-preset-light {
    --em-primary: #1a1a1a;
    --em-secondary: #666666;
    --em-bg: #ffffff;
    --em-text: #333333;
}

.color-preset-dark {
    --em-primary: #ffffff;
    --em-secondary: #cccccc;
    --em-bg: #1a1a1a;
    --em-text: #ffffff;
}

/**
 * Design Tokens
 * Generated from Emjoy Design System
 *
 * @package Emjoy
 * @version 1.0.0
 */

/* ============================================
   COLOR TOKENS
   ============================================ */

:root {
    /* Brand Blue - Primary */
    --em-blue-900: #001F5C;
    --em-blue-800: #00287A;
    --em-blue-700: #0038A0;
    --em-blue-600: #1E4CB4;
    --em-blue-500: #3F6BD0;
    --em-blue-400: #6B8DE0;
    --em-blue-300: #9BB3ED;
    --em-blue-200: #B9C9EE;
    --em-blue-100: #DCE5F8;
    --em-blue-50:  #EEF3FD;

    /* Brand Yellow - Accent */
    --em-yellow-700: #C99A00;
    --em-yellow-600: #E8B818;
    --em-yellow-500: #F5C518;
    --em-yellow-400: #F7CF4A;
    --em-yellow-300: #FBE08A;
    --em-yellow-200: #FCE8A8;
    --em-yellow-100: #FEF4D2;
    --em-yellow-50:  #FFFBEC;

    /* Neutral - Ink */
    --em-ink:        #161513;
    --em-ink-2:      #3A3733;
    --em-ink-3:      #3f3e3c;
    --em-ink-4:      #5f5f5f;

    /* Neutral - Line */
    --em-line:         #E3DDD2;
    --em-line-strong:  #CFC7B8;

    /* Neutral - Paper/Background */
    --em-paper:      #faf9f7;
    --em-paper-2:    #F3EDE1;
    --em-paper-3:    #EBE4D5;
    --em-beige:      #E8DDC8;

    /* Functional Colors */
    --em-success: #10B981;
    --em-success-light: #D1FAE5;
    --em-warning: #F59E0B;
    --em-warning-light: #FEF3C7;
    --em-error: #DC2626;
    --em-error-light: #FEE2E2;
    --em-info: #3B82F6;
    --em-info-light: #DBEAFE;

    /* Overlay */
    --em-overlay: rgba(22, 21, 19, 0.5);
    --em-overlay-light: rgba(22, 21, 19, 0.3);
    --em-overlay-heavy: rgba(22, 21, 19, 0.8);

    /* Current color alias for icons */
    --em-current: currentColor;
}

/* ============================================
   TYPOGRAPHY TOKENS
   ============================================ */

:root {
    /* Font Families */
    --em-font-sans: 'DM Sans', 'Be Vietnam Pro', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --em-font-display: var(--em-font-sans);
    --em-font-body: var(--em-font-sans);

    /* Font Weights */
    --em-font-thin:        100;
    --em-font-extralight: 200;
    --em-font-light:      300;
    --em-font-normal:     400;
    --em-font-medium:     500;
    --em-font-semibold:   600;
    --em-font-bold:       700;
    --em-font-extrabold: 800;
    --em-font-black:      900;

    /* Font Sizes - Fluid Scale */
    --em-fs-micro: 0.625rem;   /* 10px */
    --em-fs-xs:    0.75rem;    /* 12px */
    --em-fs-sm:    0.875rem;   /* 14px */
    --em-fs-base:  1rem;       /* 16px */
    --em-fs-lg:    1.125rem;   /* 18px */
    --em-fs-xl:    1.25rem;    /* 20px */
    --em-fs-2xl:   1.5rem;     /* 24px */
    --em-fs-3xl:   1.875rem;   /* 30px */
    --em-fs-4xl:   2.25rem;    /* 36px */
    --em-fs-5xl:    3rem;       /* 48px */
    --em-fs-6xl:    3.75rem;   /* 60px */
    --em-fs-7xl:    4.5rem;    /* 72px */

    /* Heading Sizes (using clamp for fluid) */
    --em-fs-h1: clamp(1.25rem, 5vw, 2.5rem);
    --em-fs-h2: clamp(1.1rem, 3vw, 1.2rem);
    --em-fs-h3: clamp(0.9rem, 2vw, 1.0rem);
    --em-fs-h4: 1rem;
    --em-fs-h5: 1rem;
    --em-fs-h6: 0.875rem;

    /* Line Heights */
    --em-leading-none:    1;
    --em-leading-tight:   1.25;
    --em-leading-snug:   1.375;
    --em-leading-normal:  1.5;
    --em-leading-relaxed: 1.625;
    --em-leading-loose:   2;

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

    /* Text Decoration */
    --em-decoration-none:      none;
    --em-decoration-underline: underline;
    --em-decoration-line-through: line-through;
}

/* ============================================
   SPACING TOKENS
   ============================================ */

:root {
    /* Base spacing unit: 4px */
    --em-spacing-0:   0;
    --em-spacing-px:   1px;
    --em-spacing-0-5:  0.125rem;  /* 2px */
    --em-spacing-1:    0.25rem;   /* 4px */
    --em-spacing-1-5:  0.375rem;  /* 6px */
    --em-spacing-2:    0.5rem;    /* 8px */
    --em-spacing-2-5:  0.625rem;  /* 10px */
    --em-spacing-3:    0.75rem;   /* 12px */
    --em-spacing-3-5:  0.875rem;  /* 14px */
    --em-spacing-4:    1rem;      /* 16px */
    --em-spacing-5:    1.25rem;   /* 20px */
    --em-spacing-6:    1.5rem;    /* 24px */
    --em-spacing-7:    1.75rem;   /* 28px */
    --em-spacing-8:    2rem;      /* 32px */
    --em-spacing-9:    2.25rem;   /* 36px */
    --em-spacing-10:   2.5rem;    /* 40px */
    --em-spacing-12:   3rem;      /* 48px */
    --em-spacing-14:   3.5rem;    /* 56px */
    --em-spacing-16:   4rem;      /* 64px */
    --em-spacing-20:   5rem;      /* 80px */
    --em-spacing-24:   6rem;      /* 96px */
    --em-spacing-28:   7rem;      /* 112px */
    --em-spacing-32:   8rem;      /* 128px */
    --em-spacing-36:   9rem;      /* 144px */
    --em-spacing-40:   10rem;     /* 160px */

    /* Section spacing (commonly used) */
    --em-section-y: clamp(3rem, 8vw, 6rem);
    --em-section-y-sm: clamp(1.5rem, 4vw, 3rem);
    --em-section-y-lg: clamp(4rem, 10vw, 8rem);

    /* Container */
    --em-container: 1240px;
    --em-container-narrow: 760px;
    --em-container-wide: 1440px;
    --em-gutter: 1.5rem;

    /* Gap */
    --em-gap-xs: 0.25rem;
    --em-gap-sm: 0.5rem;
    --em-gap: 1rem;
    --em-gap-md: 1.5rem;
    --em-gap-lg: 2rem;
    --em-gap-xl: 3rem;
}

/* ============================================
   SEMANTIC TOKEN ALIASES
   ============================================

   Newer page templates use the semantic names exported by the design file,
   while the original theme tokens above use the --em-* namespace. Keeping
   the aliases here gives every page one source of truth and prevents invalid
   var() declarations from collapsing the Shop grid and filter sidebar.
*/
:root {
    /* Surfaces and text */
    --surface-page: var(--em-paper);
    --surface-card: #fff;
    --surface-brand: var(--em-blue-700);
    --surface-brand-soft: var(--em-blue-50);
    --surface-accent: var(--em-yellow-500);
    --surface-footer: var(--em-blue-900);
    --text-strong: var(--em-ink);
    --text-body: var(--em-ink-2);
    --text-muted: var(--em-ink-3);
    --text-link: var(--em-blue-700);
    --text-inverse: #fff;
    --text-on-brand: #fff;
    --text-on-dark: #fff;
    --text-on-dark-muted: var(--em-blue-100);

    /* Borders and product prices */
    --border-subtle: var(--em-line);
    --border-strong: var(--em-line-strong);
    --border-brand: var(--em-blue-700);
    --border-dark: var(--em-blue-900);
    --border-w: 1px;
    --price-color: var(--em-blue-700);
    --price-compare: var(--em-ink-3);

    /* Typography */
    --font-display: var(--em-font-display);
    --fs-micro: var(--em-fs-micro);
    --fs-caption: var(--em-fs-xs);
    --fs-body-sm: var(--em-fs-sm);
    --fs-body: var(--em-fs-base);
    --fs-body-lg: var(--em-fs-lg);
    --fs-h4: var(--em-fs-h4);
    --fs-h3: var(--em-fs-h3);
    --fs-h2: var(--em-fs-h2);
    --fs-h1: var(--em-fs-h1);
    --fs-display-2: var(--em-fs-5xl);
    --fs-display-1: var(--em-fs-6xl);
    --fw-normal: var(--em-font-normal);
    --fw-medium: var(--em-font-medium);
    --fw-semibold: var(--em-font-semibold);
    --fw-bold: var(--em-font-bold);
    --lh-body: var(--em-leading-normal);
    --lh-loose: var(--em-leading-relaxed);
    --ls-display: var(--em-tracking-tight);
    --ls-heading: var(--em-tracking-tight);
    --ls-eyebrow: var(--em-tracking-widest);

    /* Spacing */
    --sp-1: var(--em-spacing-1);
    --sp-2: var(--em-spacing-2);
    --sp-3: var(--em-spacing-3);
    --sp-4: var(--em-spacing-4);
    --sp-5: var(--em-spacing-5);
    --sp-6: var(--em-spacing-6);
    --sp-7: var(--em-spacing-7);
    --sp-8: var(--em-spacing-8);
    --sp-9: var(--em-spacing-9);
    --sp-10: var(--em-spacing-10);
    --sp-12: var(--em-spacing-12);
    --sp-14: var(--em-spacing-14);
    --sp-16: var(--em-spacing-16);

    /* Radius, shadows and motion */
    --r-sm: var(--em-radius-sm);
    --r-md: var(--em-radius-md);
    --r-lg: var(--em-radius-lg);
    --r-xl: var(--em-radius-xl);
    --r-full: var(--em-radius-full);
    --r-pill: var(--em-radius-full);
    --shadow-xs: var(--em-shadow-xs);
    --shadow-md: var(--em-shadow-md);
    --shadow-lg: var(--em-shadow-lg);
    --shadow-xl: var(--em-shadow-xl);
    --dur-fast: var(--em-dur-150);
    --dur-base: var(--em-dur-300);
    --dur-slow: var(--em-dur-500);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --tap-min: 44px;

    /* Status colors */
    --color-error: var(--em-error);
    --status-error-bg: var(--em-error-light);
    --status-error-text: var(--em-error);
    --status-success-bg: var(--em-success-light);
    --status-success-text: var(--em-success);
    --status-pending-bg: var(--em-warning-light);
    --status-pending-text: var(--em-warning);
    --status-processing-bg: var(--em-info-light);
    --status-processing-text: var(--em-info);
    --status-muted-bg: var(--em-paper-2);
    --status-muted-text: var(--em-ink-3);
    --em-white: #fff;
}

/* ============================================
   BORDER RADIUS TOKENS
   ============================================ */

:root {
    /* Border Radius */
    --em-radius-none: 0;
    --em-radius-sm:    0.125rem;   /* 2px */
    --em-radius:       0.25rem;    /* 4px */
    --em-radius-md:     0.5rem;     /* 8px */
    --em-radius-lg:     1rem;       /* 16px */
    --em-radius-xl:     1.5rem;     /* 24px */
    --em-radius-2xl:    2rem;       /* 32px */
    --em-radius-full:  9999px;

    /* Border Radius Presets */
    --em-radius-xs:    var(--em-radius-sm);
    --em-radius-s:     var(--em-radius);
    --em-radius-m:     var(--em-radius-md);
    --em-radius-l:     var(--em-radius-lg);
    --em-radius-xl:    1.5rem;
    --em-radius-pill:  var(--em-radius-full);
    --em-radius-circle: var(--em-radius-full);
}

/* ============================================
   SHADOW TOKENS
   ============================================ */

:root {
    /* Shadow - Subtle */
    --em-shadow-xs: 0 1px 2px rgba(22, 21, 19, 0.03);
    --em-shadow-sm: 0 2px 8px rgba(22, 21, 19, 0.06);
    --em-shadow:    0 2px 8px rgba(22, 21, 19, 0.08),
                    0 1px 2px rgba(22, 21, 19, 0.04);

    /* Shadow - Medium */
    --em-shadow-md: 0 8px 24px rgba(22, 21, 19, 0.08),
                    0 2px 8px rgba(22, 21, 19, 0.04);
    --em-shadow-lg: 0 18px 48px rgba(22, 21, 19, 0.10),
                    0 4px 12px rgba(22, 21, 19, 0.06);

    /* Shadow - Strong */
    --em-shadow-xl: 0 24px 64px rgba(22, 21, 19, 0.15),
                    0 8px 24px rgba(22, 21, 19, 0.08);
    --em-shadow-2xl: 0 32px 80px rgba(22, 21, 19, 0.20);

    /* Shadow - Brand */
    --em-shadow-brand: 0 4px 16px rgba(0, 56, 160, 0.25);
    --em-shadow-brand-lg: 0 8px 32px rgba(0, 56, 160, 0.30);

    /* Shadow - Focus */
    --em-shadow-focus: 0 0 0 3px rgba(0, 56, 160, 0.25);
    --em-shadow-focus-error: 0 0 0 3px rgba(220, 38, 38, 0.25);

    /* Shadow - Inset */
    --em-shadow-inset-sm: inset 0 1px 2px rgba(22, 21, 19, 0.05);
    --em-shadow-inset: inset 0 2px 4px rgba(22, 21, 19, 0.06);
}

/* ============================================
   MOTION / TRANSITION TOKENS
   ============================================ */

:root {
    /* Duration */
    --em-dur-0:    0ms;
    --em-dur-75:   75ms;
    --em-dur-100:  100ms;
    --em-dur-150:  150ms;
    --em-dur-200:  200ms;
    --em-dur-300:  300ms;
    --em-dur-500:  500ms;
    --em-dur-700:  700ms;
    --em-dur-1000: 1000ms;

    /* Shortcut aliases */
    --em-dur-fast:   var(--em-dur-150);
    --em-dur-normal: var(--em-dur-250);
    --em-dur-slow:   var(--em-dur-500);

    /* Easing */
    --em-ease-linear:  linear;
    --em-ease-in:     cubic-bezier(0.4, 0, 1, 1);
    --em-ease-out:    cubic-bezier(0, 0, 0.2, 1);
    --em-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

    /* Custom easing */
    --em-ease-default:  cubic-bezier(0.16, 0.84, 0.44, 1);
    --em-ease-bounce:    cubic-bezier(0.34, 1.56, 0.64, 1);
    --em-ease-smooth:    cubic-bezier(0.25, 0.1, 0.25, 1);
    --em-ease-spring:    cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Shortcut */
    --em-transition: all var(--em-dur-normal) var(--em-ease-default);
}

/* ============================================
   LAYOUT TOKENS
   ============================================ */

:root {
    /* Header */
    --em-header-height: 72px;
    --em-header-height-mobile: 60px;
    --em-header-sticky-bg: rgba(250, 246, 238, 0.95);
    --em-header-sticky-blur: blur(12px);

    /* Sidebar */
    --em-sidebar-width: 280px;
    --em-sidebar-width-lg: 320px;

    /* Z-index scale */
    --em-z-0:   0;
    --em-z-10:  10;
    --em-z-20:  20;
    --em-z-30:  30;
    --em-z-40:  40;
    --em-z-50:  50;
    --em-z-dropdown: 100;
    --em-z-sticky: 200;
    --em-z-fixed: 300;
    --em-z-modal-backdrop: 400;
    --em-z-modal: 500;
    --em-z-popover: 600;
    --em-z-tooltip: 700;
}

/* ============================================
   BREAKPOINT TOKENS (for reference)
   ============================================ */

/*
 * Usage in media queries:
 * @media (min-width: 480px)  { ... }
 * @media (min-width: 768px)  { ... }
 * @media (min-width: 1024px) { ... }
 * @media (min-width: 1240px) { ... }
 *
 * Or use container queries where supported:
 * @container (min-width: 400px) { ... }
 */

/* ============================================
   Z-INDEX ALIASES
   ============================================ */

:root {
    --em-z-below:     -1;
    --em-z-base:      var(--em-z-0);
    --em-z-above:     1;
    --em-z-skip-link: 9999;
}

/* ============================================
   OBJECT FIT TOKENS
   ============================================ */

:root {
    --em-object-fit-cover:  cover;
    --em-object-fit-contain: contain;
    --em-object-fit-fill:   fill;
    --em-object-fit-none:    none;
    --em-object-fit-scale-down: scale-down;
}

/* ============================================
   ASPECT RATIO TOKENS
   ============================================ */

:root {
    --em-aspect-square: 1 / 1;
    --em-aspect-video:   16 / 9;
    --em-aspect-photo:  4 / 5;
    --em-aspect-portrait: 3 / 4;
    --em-aspect-wide:   21 / 9;
}

/**
 * Base Styles
 * Reset, Typography, and Form defaults
 *
 * @package Emjoy
 * @version 1.0.0
 */

/* ============================================
   CSS RESET
   Based on modern CSS reset
   ============================================ */

/* Box sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margin and padding */
* {
    margin: 0;
    padding: 0;
}

/* Prevent font size inflation */
html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

/* Core typography */
body {
    font-family: var(--em-font-body);
    font-size: var(--em-fs-base);
    font-weight: var(--em-font-normal);
    line-height: var(--em-leading-relaxed);
    color: var(--em-ink-2);
    background-color: var(--em-paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--em-font-display);
    font-weight: var(--em-font-bold);
    line-height: var(--em-leading-tight);
    color: var(--em-ink);
    text-wrap: balance;
}

h1 { font-size: var(--em-fs-h1); }
h2 { font-size: var(--em-fs-h2); }
h3 { font-size: var(--em-fs-h3); }
h4 { font-size: var(--em-fs-h4); }
h5 { font-size: var(--em-fs-h5); }
h6 { font-size: var(--em-fs-h6); }

p {
    text-wrap: pretty;
}

/* Paragraph spacing */
p,
.p {
    margin-bottom: var(--em-gap);
}

p:last-child {
    margin-bottom: 0;
}

/* Links */
a,
.link {
    color: var(--em-blue-700);
    text-decoration: var(--em-decoration-underline);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color var(--em-dur-fast) var(--em-ease-default);
}

a:hover {
    color: var(--em-blue-900);
}

a:focus-visible {
    outline: 2px solid var(--em-yellow-500);
    outline-offset: 2px;
    border-radius: var(--em-radius-sm);
}

/* Lists */
ul, ol {
    padding-left: var(--em-spacing-6);
}

li {
    margin-bottom: var(--em-spacing-1);
}

li > ul,
li > ol {
    margin-top: var(--em-spacing-1);
    margin-bottom: 0;
}

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

img {
    vertical-align: middle;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: var(--em-spacing-3);
    text-align: left;
    border-bottom: 1px solid var(--em-line);
}

th {
    font-weight: var(--em-font-semibold);
    background-color: var(--em-paper-2);
}

/* Blockquote */
blockquote,
.blockquote {
    margin: var(--em-spacing-6) 0;
    padding: var(--em-spacing-4) var(--em-spacing-6);
    border-left: 4px solid var(--em-blue-700);
    background-color: var(--em-paper-2);
    font-style: italic;
}

blockquote p:last-child {
    margin-bottom: 0;
}

blockquote cite {
    display: block;
    margin-top: var(--em-spacing-3);
    font-style: normal;
    font-size: var(--em-fs-sm);
    color: var(--em-ink-3);
}

/* Code */
code,
pre,
.code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.875em;
}

code {
    padding: 0.125em 0.375em;
    background-color: var(--em-paper-2);
    border-radius: var(--em-radius-sm);
    color: var(--em-ink);
}

pre {
    padding: var(--em-spacing-4);
    background-color: var(--em-ink);
    color: var(--em-paper);
    border-radius: var(--em-radius-md);
    overflow-x: auto;
}

pre code {
    padding: 0;
    background: none;
    color: inherit;
}

/* Horizontal rule */
hr,
.divider {
    border: none;
    border-top: 1px solid var(--em-line);
    margin: var(--em-spacing-6) 0;
}

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */

/* Font families */
.font-display { font-family: var(--em-font-display); }
.font-body { font-family: var(--em-font-body); }
.font-mono { font-family: 'SF Mono', Monaco, monospace; }

/* Font sizes */
.text-micro { font-size: var(--em-fs-micro); }
.text-xs { font-size: var(--em-fs-xs); }
.text-sm { font-size: var(--em-fs-sm); }
.text-base { font-size: var(--em-fs-base); }
.text-lg { font-size: var(--em-fs-lg); }
.text-xl { font-size: var(--em-fs-xl); }
.text-2xl { font-size: var(--em-fs-2xl); }
.text-3xl { font-size: var(--em-fs-3xl); }
.text-4xl { font-size: var(--em-fs-4xl); }

/* Font weights */
.font-thin { font-weight: var(--em-font-thin); }
.font-light { font-weight: var(--em-font-light); }
.font-normal { font-weight: var(--em-font-normal); }
.font-medium { font-weight: var(--em-font-medium); }
.font-semibold { font-weight: var(--em-font-semibold); }
.font-bold { font-weight: var(--em-font-bold); }
.font-extrabold { font-weight: var(--em-font-extrabold); }

/* Text colors */
.text-ink { color: var(--em-ink); }
.text-ink-2 { color: var(--em-ink-2); }
.text-ink-3 { color: var(--em-ink-3); }
.text-ink-4 { color: var(--em-ink-4); }
.text-blue { color: var(--em-blue-700); }
.text-yellow { color: var(--em-yellow-500); }
.text-white { color: #fff; }
.text-success { color: var(--em-success); }
.text-error { color: var(--em-error); }

/* Text alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* Text transforms */
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }
.normal-case { text-transform: none; }

/* Text decoration */
.underline { text-decoration: underline; }
.line-through { text-decoration: line-through; }
.no-underline { text-decoration: none; }

/* Line heights */
.leading-none { line-height: var(--em-leading-none); }
.leading-tight { line-height: var(--em-leading-tight); }
.leading-snug { line-height: var(--em-leading-snug); }
.leading-normal { line-height: var(--em-leading-normal); }
.leading-relaxed { line-height: var(--em-leading-relaxed); }
.leading-loose { line-height: var(--em-leading-loose); }

/* Letter spacing */
.tracking-tighter { letter-spacing: var(--em-tracking-tighter); }
.tracking-tight { letter-spacing: var(--em-tracking-tight); }
.tracking-normal { letter-spacing: var(--em-tracking-normal); }
.tracking-wide { letter-spacing: var(--em-tracking-wide); }
.tracking-wider { letter-spacing: var(--em-tracking-wider); }
.tracking-widest { letter-spacing: var(--em-tracking-widest); }

/* ============================================
   FORMS BASE
   ============================================ */

/* Form elements */
input,
textarea,
select,
button,
.button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select {
    display: block;
    width: 100%;
    padding: var(--em-spacing-3) var(--em-spacing-4);
    font-size: var(--em-fs-base);
    color: var(--em-ink);
    background-color: #fff;
    border: 1px solid var(--em-line-strong);
    border-radius: var(--em-radius-md);
    transition: border-color var(--em-dur-fast) var(--em-ease-default),
                box-shadow var(--em-dur-fast) var(--em-ease-default);
    appearance: none;
    -webkit-appearance: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--em-ink-4);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--em-blue-700);
    box-shadow: 0 0 0 3px rgba(0, 56, 160, 0.15);
}

input:disabled,
textarea:disabled,
select:disabled {
    background-color: var(--em-paper-2);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Labels */
label,
.label {
    display: inline-block;
    margin-bottom: var(--em-spacing-1);
    font-size: var(--em-fs-sm);
    font-weight: var(--em-font-medium);
    color: var(--em-ink);
}

label.required::after {
    content: ' *';
    color: var(--em-error);
}

/* Textarea */
textarea {
    min-height: 120px;
    resize: vertical;
}

/* Select */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B655D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--em-spacing-3) center;
    padding-right: var(--em-spacing-10);
}

/* Checkbox & Radio */
input[type="checkbox"],
input[type="radio"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25em;
    height: 1.25em;
    padding: 0;
    border: 1px solid var(--em-line-strong);
    background-color: #fff;
    cursor: pointer;
    transition: all var(--em-dur-fast) var(--em-ease-default);
    appearance: none;
    -webkit-appearance: none;
}

input[type="checkbox"] {
    border-radius: var(--em-radius-sm);
}

input[type="radio"] {
    border-radius: 50%;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background-color: var(--em-blue-700);
    border-color: var(--em-blue-700);
}

input[type="checkbox"]:checked::after {
    content: '';
    display: block;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

input[type="radio"]:checked::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
}

/* Range */
input[type="range"] {
    display: block;
    width: 100%;
    height: 4px;
    padding: 0;
    background: var(--em-line);
    border: none;
    border-radius: var(--em-radius-full);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--em-blue-700);
    border-radius: 50%;
    cursor: pointer;
    transition: transform var(--em-dur-fast) var(--em-ease-bounce);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

/* Form group */
.form-group {
    margin-bottom: var(--em-spacing-4);
}

.form-row {
    display: grid;
    gap: var(--em-spacing-4);
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Error state */
input.error,
textarea.error,
select.error {
    border-color: var(--em-error);
}

input.error:focus,
textarea.error:focus,
select.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.field-error {
    display: block;
    margin-top: var(--em-spacing-1);
    font-size: var(--em-fs-xs);
    color: var(--em-error);
}

/* Success state */
input.success,
textarea.success,
select.success {
    border-color: var(--em-success);
}

/* ============================================
   BUTTONS BASE
   ============================================ */

button,
.button,
.btn,
input[type="submit"],
input[type="button"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--em-spacing-2);
    padding: var(--em-spacing-3) var(--em-spacing-6);
    font-family: inherit;
    font-size: var(--em-fs-sm);
    font-weight: var(--em-font-semibold);
    line-height: 1;
    text-decoration: none;
    color: inherit;
    background-color: transparent;
    border: none;
    border-radius: var(--em-radius-full);
    cursor: pointer;
    transition: all var(--em-dur-normal) var(--em-ease-default);
    appearance: none;
    -webkit-appearance: none;
}

button:focus-visible,
.button:focus-visible {
    outline: 2px solid var(--em-yellow-500);
    outline-offset: 2px;
}

button:disabled,
.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Main content area */
.main-content {
    padding-block: var(--em-section-y);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Screen reader only */
.sr-only,
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--em-z-tooltip);
    padding: var(--em-spacing-3) var(--em-spacing-6);
    background-color: var(--em-blue-700);
    color: #fff;
    font-weight: var(--em-font-semibold);
    text-decoration: none;
    border-radius: var(--em-radius-md);
    transition: top var(--em-dur-fast);
}

.skip-link:focus {
    top: var(--em-spacing-4);
}

/* Focus visible */
:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--em-yellow-500);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background-color: var(--em-yellow-300);
    color: var(--em-ink);
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@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;
    }
}

/**
 * Layout Styles
 * Header, Footer, Container, Grid
 *
 * @package Emjoy
 * @version 1.1.0
 */

/* ============================================
   SITE LAYOUT
   ============================================ */

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
    width: 100%;
}

/* ============================================
   CONTAINER
   ============================================ */

.container,
.em-container {
    width: 100%;
    max-width: var(--em-container);
    margin-inline: auto;
    padding-inline: var(--em-gutter);
}

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

.container--wide {
    max-width: var(--em-container-wide);
}

.container--full {
    max-width: 100%;
    padding-inline: 0;
}

/* ============================================
   ANNOUNCEMENT BAR (Dark)
   ============================================ */

.em-announcement-bar {
    background-color: var(--em-ink);
    color: var(--em-white);
    font-size: var(--em-fs-xs);
    font-family: var(--em-font-body);
}

.em-announcement-bar__inner {
    max-width: var(--em-container);
    margin: 0 auto;
    padding: 9px var(--em-gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--em-spacing-4);
    flex-wrap: wrap;
}

.em-announcement-bar__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.em-announcement-bar__item a {
    color: var(--em-white);
    text-decoration: none;
    transition: color var(--em-dur-fast);
}

.em-announcement-bar__item a:hover {
    color: var(--em-yellow-500);
}

.em-announcement-bar__contact {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    opacity: 0.85;
}

/* ============================================
   HEADER (Sticky)
   ============================================ */

.em-header {
    position: sticky;
    top: 0;
    z-index: var(--em-z-sticky);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border-bottom: 1px solid var(--em-line);
}

.em-header__inner {
    max-width: var(--em-container);
    margin: 0 auto;
    padding: 14px var(--em-gutter);
    display: flex;
    align-items: center;
    gap: 28px;
}

/* Logo */
.em-header__logo {
    display: inline-flex;
    flex: 0 0 auto;
    text-decoration: none;
}

.em-header__logo-img {
    height: 40px;
    width: auto;
    display: block;
}

/* Navigation */
.em-nav-primary {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: 8px;
}

.em-nav__list {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.em-nav__list > li {
    position: relative;
    margin: 0;
}

.em-nav__list > li > a {
    display: inline-flex;
    align-items: center;
    font-family: var(--em-font-display);
    font-weight: var(--em-font-semibold);
    font-size: 15px;
    text-decoration: none;
    color: var(--em-ink-2);
    padding: 8px 0 5px;
    background-image: linear-gradient(var(--em-yellow-500), var(--em-yellow-500));
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 0 2px;
    transition: color var(--em-dur-fast), background-size var(--em-dur-fast);
}

.em-nav__list > li > a:hover,
.em-nav__list > li > a.active,
.em-nav__list > li.current-menu-item > a,
.em-nav__list > li.current-menu-ancestor > a {
    color: var(--em-blue-700);
    background-size: 100% 2px;
}

/* Hierarchical desktop menu */
@media (min-width: 1024px) {
    .em-nav__list .sub-menu {
        position: absolute;
        top: calc(100% + 14px);
        left: 0;
        z-index: calc(var(--em-z-sticky) + 2);
        display: block;
        min-width: 220px;
        margin: 0;
        padding: 8px;
        list-style: none;
        border: 1px solid var(--em-line);
        border-radius: var(--em-radius-lg);
        background: var(--em-white);
        box-shadow: var(--em-shadow-lg);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(8px);
        transition: opacity var(--em-dur-fast), visibility var(--em-dur-fast), transform var(--em-dur-fast);
    }

    .em-nav__list .sub-menu::before {
        position: absolute;
        right: 0;
        bottom: 100%;
        left: 0;
        height: 15px;
        content: '';
    }

    .em-nav__list li:hover > .sub-menu,
    .em-nav__list li:focus-within > .sub-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .em-nav__list .sub-menu li {
        position: relative;
        margin: 0;
    }

    .em-nav__list .sub-menu a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 12px;
        border-radius: var(--em-radius-md);
        color: var(--em-ink-2);
        font-size: 14px;
        font-weight: var(--em-font-medium);
        line-height: 1.35;
        text-decoration: none;
        white-space: nowrap;
    }

    .em-nav__list .sub-menu a:hover,
    .em-nav__list .sub-menu .current-menu-item > a {
        background: var(--em-blue-50);
        color: var(--em-blue-700);
    }

    .em-nav__list .sub-menu .sub-menu {
        top: -8px;
        left: calc(100% + 8px);
    }

    .em-nav__list .menu-item-has-children > a::after {
        width: 6px;
        height: 6px;
        margin-left: 7px;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        content: '';
        transform: translateY(-2px) rotate(45deg);
    }

    .em-nav__list .sub-menu .menu-item-has-children > a::after {
        margin-left: auto;
        transform: rotate(-45deg);
    }

    /* Three-level menus become a mega menu automatically. */
    .em-nav-primary {
        position: relative;
    }

    .em-nav__list > .menu-item-has-children:has(> .sub-menu > .menu-item-has-children) {
        position: relative;
    }

    .em-nav__list > .menu-item-has-children:has(> .sub-menu > .menu-item-has-children) > .sub-menu {
        --em-mega-columns: 1;
        --em-mega-width: 240px;
        top: calc(100% + 14px);
        left: 50%;
        display: grid;
        grid-template-columns: repeat(var(--em-mega-columns), minmax(0, 1fr));
        gap: 8px 22px;
        width: min(var(--em-mega-width), calc(100vw - 48px));
        padding: 20px;
        transform: translate(-50%, 8px);
    }

    .em-nav__list > .menu-item-has-children:has(> .sub-menu > li:nth-child(2)) > .sub-menu {
        --em-mega-columns: 2;
        --em-mega-width: 500px;
    }

    .em-nav__list > .menu-item-has-children:has(> .sub-menu > li:nth-child(3)) > .sub-menu {
        --em-mega-columns: 3;
        --em-mega-width: 760px;
    }

    .em-nav__list > .menu-item-has-children:has(> .sub-menu > .menu-item-has-children) > .sub-menu::after {
        position: absolute;
        top: -8px;
        left: 50%;
        width: 16px;
        height: 16px;
        border-top: 1px solid var(--em-line);
        border-left: 1px solid var(--em-line);
        background: var(--em-white);
        content: '';
        transform: translateX(-50%) rotate(45deg);
    }

    .em-nav__list > .menu-item-has-children:has(> .sub-menu > .menu-item-has-children):hover > .sub-menu {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate(-50%, 8px);
    }

    .em-nav__list > .menu-item-has-children.is-mega-open:has(> .sub-menu > .menu-item-has-children) > .sub-menu {
        z-index: calc(var(--em-z-sticky) + 3);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate(-50%, 0);
    }

    .em-nav__list > .menu-item-has-children:has(> .sub-menu > .menu-item-has-children) > .sub-menu > li {
        min-width: 0;
    }

    .em-nav__list > .menu-item-has-children:has(> .sub-menu > .menu-item-has-children) > .sub-menu > li > a {
        padding: 8px 8px 11px;
        border-bottom: 1px solid var(--em-line);
        border-radius: 0;
        color: var(--em-blue-900);
        font-size: 15px;
        font-weight: var(--em-font-bold);
    }

    .em-nav__list > .menu-item-has-children:has(> .sub-menu > .menu-item-has-children) > .sub-menu > li > a::after {
        display: none;
    }

    .em-nav__list > .menu-item-has-children:has(> .sub-menu > .menu-item-has-children) > .sub-menu > li > .sub-menu {
        position: static;
        display: grid;
        gap: 2px;
        width: 100%;
        min-width: 0;
        margin-top: 6px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .em-nav__list > .menu-item-has-children.is-mega-open:has(> .sub-menu > .menu-item-has-children) > .sub-menu > li > .sub-menu {
        pointer-events: auto;
    }

    .em-nav__list > .menu-item-has-children:has(> .sub-menu > .menu-item-has-children) > .sub-menu > li > .sub-menu::before {
        display: none;
    }

    .em-nav__list > .menu-item-has-children:has(> .sub-menu > .menu-item-has-children) > .sub-menu > li > .sub-menu::after {
        display: none;
    }

    .em-nav__list > .menu-item-has-children:has(> .sub-menu > .menu-item-has-children) > .sub-menu > li > .sub-menu a {
        padding: 9px 8px;
        white-space: normal;
    }
}

/* Header Actions */
.em-header__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.em-header__action {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--em-ink-2);
    border-radius: var(--em-radius-full);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--em-dur-fast);
    text-decoration: none;
}

.em-header__action:hover {
    background-color: var(--em-paper);
    color: var(--em-ink);
}

.em-header__action--cart {
    position: relative;
}

.em-header__cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: var(--em-font-bold);
    line-height: 18px;
    text-align: center;
    color: #fff;
    background-color: var(--em-yellow-500);
    border-radius: var(--em-radius-full);
}

/* Yellow Button */
.em-btn--yellow {
    background-color: var(--em-yellow-500);
    color: var(--em-ink);
    border: none;
}

.em-btn--yellow:hover {
    background-color: var(--em-yellow-600);
    color: var(--em-ink);
}

.em-header .em-btn--sm {
    padding: 8px 16px;
    font-size: var(--em-fs-sm);
    font-weight: var(--em-font-semibold);
}

/* Mobile Toggle */
.em-header__mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

/* Mobile navigation drawer */
.em-mobile-nav { display: none; }

@media (max-width: 1023px) {
    .em-mobile-nav { position: fixed; inset: 0; z-index: 10050; display: block; visibility: hidden; background: rgba(0, 20, 55, .46); opacity: 0; transition: opacity .25s ease, visibility .25s ease; }
    .em-mobile-nav.active { visibility: visible; opacity: 1; }
    .em-mobile-nav__panel { display: flex; flex-direction: column; width: min(88vw, 390px); height: 100%; height: 100dvh; background: var(--surface-card); box-shadow: 18px 0 50px rgba(0, 20, 55, .18); transform: translateX(-102%); transition: transform .3s cubic-bezier(.22,.8,.25,1); }
    .em-mobile-nav.active .em-mobile-nav__panel { transform: translateX(0); }
    .em-mobile-nav__header { display: flex; align-items: center; justify-content: space-between; flex: none; min-height: 76px; padding: 14px 18px; border-bottom: 1px solid var(--border-subtle); }
    .em-mobile-nav__logo img { display: block; width: auto; height: 42px; }
    .em-mobile-nav__close { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--border-subtle); border-radius: 50%; background: var(--surface-page); color: var(--text-strong); cursor: pointer; }
    .em-mobile-nav__body { flex: 1; overflow-y: auto; padding: 14px 18px 24px; }
    .em-mobile-nav__list, .em-mobile-nav__list .sub-menu { margin: 0; padding: 0; list-style: none; }
    .em-mobile-nav__list > li { position: relative; border-bottom: 1px solid var(--border-subtle); }
    .em-mobile-nav__list a { display: flex; align-items: center; min-height: 52px; padding: 10px 46px 10px 8px; color: var(--text-strong); font-family: var(--font-display); font-size: 16px; font-weight: 650; text-decoration: none; }
    .em-mobile-nav__list .current-menu-item > a, .em-mobile-nav__list .current-menu-ancestor > a { color: var(--surface-brand); }
    .em-mobile-nav__submenu-toggle { position: absolute; top: 7px; right: 2px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: var(--surface-brand-soft); color: var(--surface-brand); cursor: pointer; }
    .em-mobile-nav__submenu-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s ease; }
    .em-mobile-nav__list .sub-menu { display: none; padding: 0 0 10px 14px; }
    .em-mobile-nav__list li.is-open > .sub-menu { display: block; }
    .em-mobile-nav__list li.is-open > .em-mobile-nav__submenu-toggle svg { transform: rotate(180deg); }
    .em-mobile-nav__list .sub-menu li { position: relative; }
    .em-mobile-nav__list .sub-menu a { min-height: 42px; padding-block: 7px; color: var(--text-body); font-size: 14px; font-weight: 500; }
    .em-mobile-nav__quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
    .em-mobile-nav__quick-links a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: var(--r-md); background: var(--surface-brand-soft); color: var(--surface-brand); font-size: 13px; font-weight: 650; text-decoration: none; }
    .em-mobile-nav__cta { display: flex; align-items: center; justify-content: space-between; min-height: 54px; margin-top: 12px; padding: 0 18px; border-radius: var(--r-md); background: var(--em-yellow-500); color: var(--em-blue-900); font-weight: 750; text-decoration: none; }
    .em-mobile-nav__footer { flex: none; display: grid; gap: 5px; padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); background: var(--em-blue-900); color: #fff; }
    .em-mobile-nav__footer span { color: var(--em-blue-100); font-size: 12px; }
    .em-mobile-nav__footer a { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 17px; font-weight: 750; text-decoration: none; }
    .em-mobile-nav__footer small { color: rgba(255,255,255,.7); font-size: 11px; }
}

/* ============================================
   SEARCH OVERLAY
   ============================================ */

.em-search-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20vh;
    z-index: var(--em-z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--em-dur-normal);
}

.em-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.em-search-overlay__inner {
    width: 100%;
    max-width: 600px;
    padding: 0 var(--em-gutter);
    position: relative;
}

.em-search-overlay__close {
    position: absolute;
    top: -60px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
}

.em-search-form {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: var(--em-radius-lg);
    overflow: hidden;
}

.em-search-form__input {
    flex: 1;
    padding: 18px 60px 18px 24px;
    font-size: var(--em-fs-lg);
    background-color: #fff;
    border: none;
    outline: none;
}

.em-search-form__submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--em-blue-700);
    color: #fff;
    border: none;
    border-radius: var(--em-radius-md);
    cursor: pointer;
}

.em-search-form__submit:hover {
    background-color: var(--em-blue-800);
}

/* Header search dropdown */
.em-search-overlay {
    position: fixed;
    top: var(--em-search-panel-top, 96px);
    right: 0;
    bottom: auto;
    left: 0;
    display: block;
    width: 100%;
    padding: 24px 0 28px;
    background: var(--em-white);
    border-top: 1px solid var(--em-line);
    box-shadow: 0 18px 35px rgba(22, 21, 19, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--em-dur-fast), visibility var(--em-dur-fast), transform var(--em-dur-fast);
    z-index: var(--em-z-modal);
}

.em-search-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.em-search-overlay__inner {
    position: relative;
    width: min(100%, var(--em-container));
    max-width: var(--em-container);
    margin: 0 auto;
    padding: 0 var(--em-gutter);
}

.em-search-overlay__close {
    position: absolute;
    top: 1px;
    right: var(--em-gutter);
    width: 48px;
    height: 48px;
    padding: 0;
    color: var(--em-ink-2);
}

.em-search-form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: calc(100% - 60px);
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.em-search-overlay .em-search-form__icon {
    position: absolute;
    left: 18px;
    z-index: 1;
    color: var(--em-ink-4);
    pointer-events: none;
}

.em-search-overlay .em-search-form__input {
    min-width: 0;
    height: 48px;
    padding: 0 16px 0 54px;
    border: 1px solid var(--em-line);
    border-radius: var(--em-radius-md);
    background: var(--em-white);
    font-size: 15px;
}

.em-search-overlay .em-search-form__input:focus {
    border-color: var(--em-blue-700);
    box-shadow: 0 0 0 3px var(--em-blue-50);
}

.em-search-form__submit {
    position: static;
    flex: 0 0 auto;
    width: auto;
    min-width: 118px;
    height: 48px;
    padding: 0 22px;
    transform: none;
    border-radius: var(--em-radius-md);
    font-size: 14px;
    font-weight: 700;
}

.em-search-panel__groups { display: grid; gap: 20px; margin-top: 22px; }
.em-search-panel__group-title { margin: 0 0 11px; color: var(--em-ink-4); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.em-search-panel__tags { display: flex; flex-wrap: wrap; gap: 9px; }
.em-search-panel__tags a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--em-line); border-radius: 999px; background: var(--em-white); color: var(--em-ink-2); font-size: 14px; text-decoration: none; transition: border-color var(--em-dur-fast), color var(--em-dur-fast), background-color var(--em-dur-fast); }
.em-search-panel__tags a:hover { border-color: var(--em-blue-700); background: var(--em-blue-50); color: var(--em-blue-700); }

@media (max-width: 640px) {
    .em-search-overlay { padding: 16px 0 22px; max-height: calc(100vh - 72px); overflow-y: auto; }
    .em-search-overlay__inner { padding-inline: 16px; }
    .em-search-overlay__close { top: 0; right: 12px; width: 42px; height: 42px; }
    .em-search-form { width: calc(100% - 48px); flex-direction: column; align-items: stretch; }
    .em-search-form__icon { top: 15px; }
    .em-search-form__input { width: 100%; }
    .em-search-form__submit { width: 100%; }
    .em-search-panel__groups { margin-top: 18px; }
    .em-search-panel__tags { gap: 7px; }
    .em-search-panel__tags a { min-height: 36px; padding: 7px 12px; font-size: 12.5px; }
}

/* ============================================
   HEADER CART DROPDOWN
   ============================================ */

.em-header__cart-wrap {
    position: relative;
    display: flex;
}

.em-cart-drawer {
    position: absolute;
    top: calc(100% + 18px);
    right: -8px;
    display: block;
    width: 422px;
    max-width: calc(100vw - 24px);
    height: auto;
    max-height: none;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--em-line);
    border-radius: 20px;
    box-shadow: 0 18px 55px rgba(22, 21, 19, 0.16);
    z-index: var(--em-z-modal);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity var(--em-dur-fast), transform var(--em-dur-fast), visibility var(--em-dur-fast);
}

.em-cart-drawer::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-left: 1px solid var(--em-line);
    border-top: 1px solid var(--em-line);
    transform: rotate(45deg);
}

.em-cart-drawer.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.em-cart-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 18px;
}

.em-cart-drawer__header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--em-ink);
}

.em-cart-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: var(--em-ink-3);
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.em-cart-drawer__close:hover {
    color: var(--em-ink);
    background: var(--em-paper-2);
}

.em-cart-drawer__body {
    display: block;
    flex: none;
    height: auto;
    max-height: min(560px, calc(100vh - 170px));
    overflow-y: auto;
}

.em-mini-cart__items {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0 0 18px;
    list-style: none;
    border-bottom: 1px solid var(--em-line);
}

.em-mini-cart__item {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 36px;
    gap: 12px;
    min-height: 64px;
}

.em-mini-cart__thumb,
.em-mini-cart__thumb img {
    display: block;
    width: 56px;
    height: 64px;
    border-radius: 10px;
}

.em-mini-cart__thumb {
    overflow: hidden;
    background: var(--em-paper-2);
}

.em-mini-cart__thumb img {
    object-fit: cover;
}

.em-mini-cart__info {
    min-width: 0;
}

.em-mini-cart__name {
    display: -webkit-box;
    overflow: hidden;
    color: var(--em-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.em-mini-cart__meta,
.em-mini-cart__meta .variation {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 6px;
    margin: 4px 0 0;
    color: var(--em-ink-3);
    font-size: 12px;
    line-height: 1.35;
}

.em-mini-cart__meta .variation dt,
.em-mini-cart__meta .variation dd,
.em-mini-cart__meta .variation p {
    margin: 0;
}

.em-mini-cart__price {
    margin-top: 4px;
    color: var(--em-blue-700);
    font-size: 15px;
    font-weight: 700;
}

.em-mini-cart__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: start;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--em-paper-2);
    color: var(--em-ink-3) !important;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
}

.em-mini-cart__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    color: var(--em-ink-3);
    font-size: 14px;
}

.em-mini-cart__summary strong {
    color: var(--em-blue-700);
    font-size: 22px;
}

.em-mini-cart__shipping {
    margin: 12px 0 18px;
    color: var(--em-ink-3);
    font-size: 12px;
}

.em-mini-cart__buttons {
    display: grid;
    gap: 10px;
}

.em-mini-cart__buttons .em-btn {
    min-height: 44px;
    border-radius: var(--em-radius-full);
}

.em-mini-cart__buttons .em-btn--primary,
.em-mini-cart__buttons .em-btn--primary:hover,
.em-mini-cart__buttons .em-btn--primary:focus,
.em-mini-cart__buttons .em-btn--primary:active,
.em-mini-cart__buttons .em-btn--primary:visited {
    color: #fff;
}

.em-mini-cart__buttons .em-btn--primary svg {
    color: currentColor;
}

.em-mini-cart__buttons .em-btn--outline {
    color: var(--em-blue-700);
    background: #fff;
    border: 2px solid var(--em-blue-700);
}

.em-mini-cart__buttons .em-btn--outline:hover {
    color: #fff;
    background: var(--em-blue-700);
}

.em-mini-cart__empty {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 20px 0 4px;
    color: var(--em-ink-3);
    text-align: center;
}

.em-mini-cart__empty p {
    margin: 0;
}

@media (max-width: 640px) {
    .em-header__cart-wrap {
        position: static;
    }

    .em-cart-drawer {
        position: fixed;
        top: 84px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
    }

    .em-cart-drawer::before {
        display: none;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background-color: #001F5C !important;
    color: rgba(255, 255, 255, 0.72);
    margin-top: auto;
}

.em-footer {
    padding: 60px 0 28px;
}

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

.em-footer__col-title {
    font-family: var(--em-font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--em-white);
    margin: 0 0 14px;
}

.em-footer__col-title.em-footer__col-title--subgroup { margin-top: 34px; }
.em-footer__menu { margin: 0; }

.em-footer__about {
    max-width: 360px;
}

.em-footer__logo {
    display: inline-block;
    text-decoration: none;
}

.em-footer__logo-img {
    height: 46px;
    width: auto;
    filter: brightness(0) invert(1);
    display: block;
}

.em-footer__desc {
    font-family: var(--em-font-body);
    font-size: 14.5px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.72);
    margin: 16px 0 0;
    text-wrap: pretty;
}

.em-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 11px;
}

.em-footer__links li {
    margin: 0;
}

.em-footer__links a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    font-family: var(--em-font-body);
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color var(--em-dur-fast);
}

.em-footer__links a:hover {
    color: var(--em-yellow-500);
}

.em-footer__contact {
    font-style: normal;
    font-size: 14.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
    display: grid;
    gap: 18px;
    align-content: start;
    margin: 0;
}

.em-footer__contact p {
    margin: 0;
}

.em-footer__contact strong {
    color: var(--em-white);
    font-weight: 600;
}

.em-footer__contact a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color var(--em-dur-fast);
}

.em-footer__contact a:hover {
    color: var(--em-yellow-500);
}

.em-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 28px;
    margin-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    flex-wrap: wrap;
    gap: var(--em-spacing-4);
}

.em-footer__copyright {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.em-footer__payment {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--em-spacing-2);
}

.em-payment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 48px;
    height: 30px;
    padding: 4px 8px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--em-radius-sm);
    color: #172554;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
}

.em-payment-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.em-payment-icon--visa {
    color: #1434cb;
    font-size: 13px;
    font-style: italic;
    letter-spacing: -0.04em;
}

.em-payment-icon--mastercard { min-width: 48px; }
.em-payment-mastercard { position: relative; display: inline-flex; width: 29px; height: 18px; }
.em-payment-mastercard i { position: absolute; top: 1px; width: 16px; height: 16px; border-radius: 50%; background: #eb001b; }
.em-payment-mastercard i:first-child { left: 0; }
.em-payment-mastercard i:last-child { right: 0; background: #f79e1b; mix-blend-mode: multiply; }
.em-payment-icon--cod,
.em-payment-icon--banking { min-width: 68px; }
.em-payment-icon strong { font: inherit; white-space: nowrap; }
}

/* Social links in footer */
.site-footer .em-social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.site-footer .em-social-link {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--em-radius-full);
    color: var(--em-white);
    text-decoration: none;
    transition: all var(--em-dur-fast);
}

.site-footer .em-social-link:hover {
    background: var(--em-yellow-500);
    color: var(--em-blue-900);
    transform: translateY(-2px);
}

.site-footer .em-social-link .em-icon-svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   FLOATING ELEMENTS
   ============================================ */

.em-back-to-top {
    position: fixed;
    bottom: var(--em-spacing-6);
    right: var(--em-spacing-6);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--em-blue-700);
    color: #fff;
    border: none;
    border-radius: var(--em-radius-full);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--em-dur-normal) var(--em-ease-default);
    z-index: var(--em-z-sticky);
}

.em-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.em-back-to-top .em-icon-svg {
    display: block;
    width: 20px;
    height: 20px;
    max-width: none;
    color: #fff;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
}

.em-back-to-top:hover {
    background-color: var(--em-blue-800);
    transform: translateY(-2px);
}

.em-floating-zalo {
    position: fixed;
    bottom: var(--em-spacing-6);
    left: var(--em-spacing-6);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: var(--em-radius-full);
    box-shadow: none;
    z-index: var(--em-z-sticky);
    transition: transform var(--em-dur-fast) var(--em-ease-bounce);
}

.em-floating-zalo__image {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: block;
    object-fit: contain;
}

.em-floating-zalo:hover {
    transform: scale(1.1);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1023px) {
    .em-nav-primary {
        display: none;
    }

    .em-header__mobile-toggle {
        display: flex;
    }

    .em-footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 767px) {
    .em-header__inner {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
        box-sizing: border-box;
    }

    .em-header__mobile-toggle {
        width: 40px;
        height: 40px;
        min-width: 0;
        padding: 8px;
        align-items: center;
        justify-content: center;
        border-radius: var(--em-radius-full);
    }

    .em-header__logo {
        min-width: 0;
        justify-self: start;
    }

    .em-header__logo-img {
        width: auto;
        max-width: 92px;
        height: 38px;
        object-fit: contain;
    }

    .em-header__actions {
        min-width: 0;
        margin-left: 0;
        gap: 2px;
        justify-self: end;
    }

    /* Mobile header only keeps Search and Cart. */
    .em-header__actions > .em-header__action:not(:first-child),
    .em-header__actions > .em-btn {
        display: none;
    }

    .em-header__action,
    .em-header__action--cart {
        width: 40px;
        height: 40px;
        min-width: 40px;
        padding: 0;
    }

    .em-header__cart-wrap {
        flex: 0 0 40px;
    }

    .em-announcement-bar__inner {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding-inline: 12px;
        box-sizing: border-box;
        justify-content: center;
        overflow: hidden;
    }

    .em-announcement-bar__item {
        min-width: 0;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .em-announcement-bar__contact {
        display: none;
    }

    .em-footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .em-footer__bottom {
        flex-direction: column;
        gap: var(--em-spacing-4);
        text-align: center;
    }

    .em-footer {
        padding: 40px 0 24px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn var(--em-dur-normal) var(--em-ease-out);
}

.animate-fade-in-up {
    animation: fadeInUp var(--em-dur-slow) var(--em-ease-out);
}

/* Reusable animation delays. */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Mobile targets for global navigation controls only. */
@media (max-width: 767px) {
    .em-floating-zalo {
        bottom: var(--em-spacing-4);
        left: var(--em-spacing-4);
        width: 48px;
        height: 48px;
    }

    .em-floating-zalo__image {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .em-header button,
    .em-header a.em-header__action,
    .em-mobile-menu button,
    .em-cart-drawer button {
        min-height: 44px;
    }

    .em-header button,
    .em-header a.em-header__action,
    .em-mobile-menu button,
    .em-cart-drawer__close {
        min-width: 44px;
    }
}

/**
 * Component Styles
 * Buttons, Forms, Cards, Badges
 *
 * @package Emjoy
 * @version 1.0.0
 */

/* ============================================
   BUTTONS
   ============================================ */

.em-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--em-spacing-2);
    padding: var(--em-spacing-3) var(--em-spacing-6);
    font-family: var(--em-font-body);
    font-size: var(--em-fs-sm);
    font-weight: var(--em-font-semibold);
    line-height: 1;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--em-radius-md);
    cursor: pointer;
    transition: all var(--em-dur-fast) var(--em-ease-default);
    white-space: nowrap;
}

.em-btn:focus {
    outline: 2px solid var(--em-blue-700);
    outline-offset: 2px;
}

.em-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Button Sizes */
.em-btn--sm {
    padding: var(--em-spacing-2) var(--em-spacing-4);
    font-size: var(--em-fs-xs);
}

.em-btn--lg {
    padding: var(--em-spacing-4) var(--em-spacing-8);
    font-size: var(--em-fs-base);
}

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

/* Button Variants */
.em-btn--primary {
    background-color: var(--em-blue-700);
    color: #fff;
}

.em-btn--primary:hover {
    background-color: var(--em-blue-800);
    transform: translateY(-1px);
}

.em-btn--secondary {
    background-color: var(--em-ink);
    color: #fff;
}

.em-btn--secondary:hover {
    background-color: var(--em-ink-2);
    transform: translateY(-1px);
}

.em-btn--outline {
    background-color: transparent;
    border-color: var(--em-ink);
    color: var(--em-ink);
}

.em-btn--outline:hover {
    background-color: var(--em-ink);
    color: #fff;
}

.em-btn--outline-primary {
    background-color: transparent;
    border-color: var(--em-blue-700);
    color: var(--em-blue-700);
}

.em-btn--outline-primary:hover {
    background-color: var(--em-blue-700);
    color: #fff;
}

.em-btn--ghost {
    background-color: transparent;
    color: var(--em-ink-2);
}

.em-btn--ghost:hover {
    background-color: var(--em-paper);
    color: var(--em-ink);
}

.em-btn--danger {
    background-color: var(--em-red);
    color: #fff;
}

.em-btn--danger:hover {
    background-color: var(--em-red-dark);
}

.em-btn--success {
    background-color: var(--em-success);
    color: #fff;
}

.em-btn--success:hover {
    background-color: #2e7d32;
}

/* Button with icon */
.em-btn .em-icon-svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

.em-form-group {
    margin-bottom: var(--em-spacing-4);
}

.em-form-label {
    display: block;
    margin-bottom: var(--em-spacing-2);
    font-size: var(--em-fs-sm);
    font-weight: var(--em-font-medium);
    color: var(--em-ink);
}

.em-form-label--required::after {
    content: ' *';
    color: var(--em-red);
}

.em-form-input,
.em-form-select,
.em-form-textarea {
    width: 100%;
    padding: var(--em-spacing-3) var(--em-spacing-4);
    font-family: var(--em-font-body);
    font-size: var(--em-fs-base);
    color: var(--em-ink);
    background-color: #fff;
    border: 1px solid var(--em-line);
    border-radius: var(--em-radius-md);
    transition: border-color var(--em-dur-fast), box-shadow var(--em-dur-fast);
}

.em-form-input:focus,
.em-form-select:focus,
.em-form-textarea:focus {
    outline: none;
    border-color: var(--em-blue-700);
    box-shadow: 0 0 0 3px rgba(0, 56, 160, 0.1);
}

.em-form-input::placeholder {
    color: var(--em-ink-4);
}

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

.em-form-input--success {
    border-color: var(--em-success);
}

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

.em-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.em-form-hint {
    margin-top: var(--em-spacing-1);
    font-size: var(--em-fs-xs);
    color: var(--em-ink-3);
}

.em-form-error {
    margin-top: var(--em-spacing-1);
    font-size: var(--em-fs-xs);
    color: var(--em-red);
}

/* Checkbox & Radio */
.em-checkbox,
.em-radio {
    display: flex;
    align-items: center;
    gap: var(--em-spacing-2);
    cursor: pointer;
}

.em-checkbox input,
.em-radio input {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--em-blue-700);
}

.em-checkbox__label,
.em-radio__label {
    font-size: var(--em-fs-sm);
    color: var(--em-ink-2);
}

/* Quantity Input */
.em-quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--em-line);
    border-radius: var(--em-radius-md);
    overflow: hidden;
}

.em-quantity__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--em-ink-2);
    cursor: pointer;
    transition: all var(--em-dur-fast);
}

.em-quantity__btn:hover {
    background-color: var(--em-paper);
    color: var(--em-ink);
}

.em-quantity__input {
    width: 48px;
    height: 36px;
    padding: 0;
    font-size: var(--em-fs-sm);
    font-weight: var(--em-font-medium);
    text-align: center;
    border: none;
    border-left: 1px solid var(--em-line);
    border-right: 1px solid var(--em-line);
}

.em-quantity__input:focus {
    outline: none;
}

/* ============================================
   CARDS
   ============================================ */

.em-card {
    background-color: #fff;
    border-radius: var(--em-radius-lg);
    overflow: hidden;
    transition: all var(--em-dur-normal) var(--em-ease-default);
}

.em-card:hover {
    box-shadow: var(--em-shadow-lg);
}

.em-card__image {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.em-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--em-dur-slow) var(--em-ease-default);
}

.em-card:hover .em-card__image img {
    transform: scale(1.05);
}

.em-card__badge {
    position: absolute;
    top: var(--em-spacing-3);
    left: var(--em-spacing-3);
    display: flex;
    flex-direction: column;
    gap: var(--em-spacing-1);
}

.em-card__actions {
    position: absolute;
    top: var(--em-spacing-3);
    right: var(--em-spacing-3);
    display: flex;
    flex-direction: column;
    gap: var(--em-spacing-2);
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--em-dur-normal) var(--em-ease-default);
}

.em-card:hover .em-card__actions {
    opacity: 1;
    transform: translateX(0);
}

.em-card__action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border: none;
    border-radius: var(--em-radius-full);
    box-shadow: var(--em-shadow-md);
    cursor: pointer;
    transition: all var(--em-dur-fast);
}

.em-card__action-btn:hover {
    background-color: var(--em-blue-700);
    color: #fff;
}

.em-card__body {
    padding: var(--em-spacing-4);
}

.em-card__category {
    font-size: var(--em-fs-xs);
    font-weight: var(--em-font-medium);
    color: var(--em-ink-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--em-spacing-1);
}

.em-card__title {
    font-size: var(--em-fs-sm);
    font-weight: var(--em-font-medium);
    color: var(--em-ink);
    margin-bottom: var(--em-spacing-2);
    line-height: var(--em-leading-snug);
}

.em-card__title a {
    color: inherit;
    text-decoration: none;
}

.em-card__title a:hover {
    color: var(--em-blue-700);
}

.em-card__price {
    display: flex;
    align-items: center;
    gap: var(--em-spacing-2);
    font-size: var(--em-fs-base);
    font-weight: var(--em-font-bold);
    color: var(--em-ink);
}

.em-card__price--sale {
    color: var(--em-red);
}

.em-card__price--sale .em-card__price-regular {
    font-size: var(--em-fs-sm);
    font-weight: var(--em-font-normal);
    color: var(--em-ink-4);
    text-decoration: line-through;
}

/* ============================================
   BADGES
   ============================================ */

.em-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--em-spacing-1) var(--em-spacing-3);
    font-size: var(--em-fs-xs);
    font-weight: var(--em-font-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--em-radius-sm);
}

.em-badge--sale {
    background-color: var(--em-red);
    color: #fff;
}

.em-badge--new {
    background-color: var(--em-blue-700);
    color: #fff;
}

.em-badge--bestseller {
    background-color: var(--em-yellow-500);
    color: var(--em-ink);
}

.em-badge--hot {
    background-color: var(--em-orange);
    color: #fff;
}

.em-badge--outline {
    background-color: transparent;
    border: 1px solid currentColor;
}

.em-badge--sm {
    padding: 2px var(--em-spacing-2);
    font-size: 10px;
}

/* ============================================
   SECTION COMPONENTS
   ============================================ */

.em-section {
    padding: var(--em-section-y) 0;
}

.em-section--alt {
    background-color: var(--em-paper);
}

.em-section--dark {
    background-color: var(--em-ink);
    color: #fff;
}

.em-section__header {
    text-align: center;
    margin-bottom: var(--em-spacing-12);
}

.em-section__subtitle {
    font-size: var(--em-fs-sm);
    font-weight: var(--em-font-semibold);
    color: var(--em-blue-700);
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: var(--em-spacing-2);
}

.em-section__title {
    font-size: var(--em-fs-h2);
    font-weight: var(--em-font-bold);
    color: var(--em-ink);
    margin-bottom: var(--em-spacing-3);
}

.em-section--dark .em-section__title {
    color: #fff;
}

.em-section__desc {
    font-size: var(--em-fs-base);
    color: var(--em-ink-3);
    max-width: 600px;
    margin: 0 auto;
}

.em-section--dark .em-section__desc {
    color: var(--em-ink-3);
}

/* Section CTA */
.em-section-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--em-spacing-4);
    margin-top: var(--em-spacing-8);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.em-grid {
    display: grid;
    gap: var(--em-spacing-6);
}

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

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

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

.em-grid--6 {
    grid-template-columns: repeat(6, 1fr);
}

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

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

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

/* ============================================
   TABS
   ============================================ */

.em-tabs {
    border-bottom: 1px solid var(--em-line);
    margin-bottom: var(--em-spacing-6);
}

.em-tabs__list {
    display: flex;
    gap: var(--em-spacing-6);
    list-style: none;
    padding: 0;
    margin: 0;
}

.em-tabs__item {
    margin-bottom: -1px;
}

.em-tabs__link {
    display: block;
    padding: var(--em-spacing-3) 0;
    font-size: var(--em-fs-sm);
    font-weight: var(--em-font-medium);
    color: var(--em-ink-3);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all var(--em-dur-fast);
}

.em-tabs__link:hover,
.em-tabs__link.active {
    color: var(--em-ink);
    border-bottom-color: var(--em-blue-700);
}

.em-tabs__content {
    display: none;
}

.em-tabs__content.active {
    display: block;
}

/* ============================================
   ACCORDION
   ============================================ */

.em-accordion {
    border: 1px solid var(--em-line);
    border-radius: var(--em-radius-lg);
    overflow: hidden;
}

.em-accordion__item {
    border-bottom: 1px solid var(--em-line);
}

.em-accordion__item:last-child {
    border-bottom: none;
}

.em-accordion__header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--em-spacing-4) var(--em-spacing-5);
    font-size: var(--em-fs-base);
    font-weight: var(--em-font-medium);
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color var(--em-dur-fast);
}

.em-accordion__header:hover {
    background-color: var(--em-paper);
}

.em-accordion__icon {
    transition: transform var(--em-dur-fast);
}

.em-accordion__item.active .em-accordion__icon {
    transform: rotate(180deg);
}

.em-accordion__body {
    display: none;
    padding: 0 var(--em-spacing-5) var(--em-spacing-5);
    color: var(--em-ink-3);
}

.em-accordion__item.active .em-accordion__body {
    display: block;
}

/* ============================================
   LOADING STATES
   ============================================ */

.em-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid var(--em-line);
    border-top-color: var(--em-blue-700);
    border-radius: 50%;
    animation: em-spin 0.8s linear infinite;
}

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

.em-skeleton {
    background: linear-gradient(90deg, var(--em-paper) 25%, var(--em-paper-2) 50%, var(--em-paper) 75%);
    background-size: 200% 100%;
    animation: em-skeleton 1.5s ease-in-out infinite;
    border-radius: var(--em-radius-sm);
}

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

.em-loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

/* ============================================
   BREADCRUMB
   ============================================ */

.em-breadcrumb {
    padding: var(--em-spacing-4) 0;
}

.em-breadcrumb__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--em-spacing-2);
    list-style: none;
    padding: 0;
    margin: 0;
}

.em-breadcrumb__item {
    display: flex;
    align-items: center;
    font-size: var(--em-fs-sm);
    color: var(--em-ink-3);
}

.em-breadcrumb__item::after {
    content: '/';
    margin-left: var(--em-spacing-2);
    color: var(--em-ink-4);
}

.em-breadcrumb__item:last-child::after {
    display: none;
}

.em-breadcrumb__item a {
    color: var(--em-ink-3);
    text-decoration: none;
    transition: color var(--em-dur-fast);
}

.em-breadcrumb__item a:hover {
    color: var(--em-blue-700);
}

.em-breadcrumb__item--current {
    color: var(--em-ink);
    font-weight: var(--em-font-medium);
}

/* ============================================
   ALERTS
   ============================================ */

.em-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--em-spacing-3);
    padding: var(--em-spacing-4);
    border-radius: var(--em-radius-md);
    font-size: var(--em-fs-sm);
}

.em-alert__icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.em-alert--success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.em-alert--error {
    background-color: #ffebee;
    color: var(--em-red);
}

.em-alert--warning {
    background-color: #fff3e0;
    color: #e65100;
}

.em-alert--info {
    background-color: #e3f2fd;
    color: #1565c0;
}

/* ============================================
   TOOLTIP
   ============================================ */

.em-tooltip {
    position: relative;
}

.em-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    padding: var(--em-spacing-1) var(--em-spacing-2);
    font-size: var(--em-fs-xs);
    white-space: nowrap;
    background-color: var(--em-ink);
    color: #fff;
    border-radius: var(--em-radius-sm);
    opacity: 0;
    visibility: hidden;
    transition: all var(--em-dur-fast);
}

.em-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
}
/* Keep product-card actions easy to tap without affecting nested controls. */
@media (max-width: 767px) {
    .em-product-card > .em-product-card__actions button,
    .em-product-card > .em-product-card__actions .button {
        min-height: 44px;
    }
}

/**
 * Icon System
 * Based on Lucide Icons (ISC License)
 * Usage: <span class="em-icon em-icon-[name]"></span>
 * or: <svg class="em-icon"><use href="#em-icon-[name]"></use></svg>
 *
 * @package Emjoy
 * @version 1.0.0
 */

/* ============================================
   ICON BASE STYLES
   ============================================ */

[class*="em-icon-"],
.em-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    vertical-align: middle;
}

/* Icon sizes */
.em-icon--xs { width: 12px; height: 12px; }
.em-icon--sm { width: 16px; height: 16px; }
.em-icon--md { width: 20px; height: 20px; }
.em-icon--lg { width: 24px; height: 24px; }
.em-icon--xl { width: 32px; height: 32px; }
.em-icon--2xl { width: 48px; height: 48px; }

/* Icon button helper */
.em-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: var(--em-radius-full);
    cursor: pointer;
    color: var(--em-ink-2);
    transition: all var(--em-dur-fast) var(--em-ease-default);
}

.em-icon-btn:hover {
    background: var(--em-paper-2);
    color: var(--em-ink);
}

.em-icon-btn:focus-visible {
    outline: 2px solid var(--em-yellow-500);
    outline-offset: 2px;
}

.em-icon-btn--sm {
    width: 32px;
    height: 32px;
}

.em-icon-btn--lg {
    width: 48px;
    height: 48px;
}

/* Ghost variant */
.em-icon-btn--ghost {
    background: transparent;
}

.em-icon-btn--ghost:hover {
    background: transparent;
    color: var(--em-blue-700);
}

/* Outline variant */
.em-icon-btn--outline {
    background: transparent;
    border: 1px solid var(--em-line);
}

.em-icon-btn--outline:hover {
    border-color: var(--em-ink-3);
}

/* ============================================
   SVG SPRITE (loaded from sprite.svg)
   ============================================ */

/* When using sprite, icons inherit from parent */
.em-icon-svg {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    vertical-align: middle;
}

/* ============================================
   ICON LIST
   All 36 Lucide icons used in Emjoy
   ============================================ */

/* Navigation */
.em-icon-menu {
    width: 24px;
    height: 24px;
}

.em-icon-x,
.em-icon-close {
    width: 24px;
    height: 24px;
}

.em-icon-chevron-down {
    width: 24px;
    height: 24px;
}

.em-icon-chevron-left {
    width: 24px;
    height: 24px;
}

.em-icon-chevron-right {
    width: 24px;
    height: 24px;
}

.em-icon-chevron-up {
    width: 24px;
    height: 24px;
}

.em-icon-arrow-left {
    width: 24px;
    height: 24px;
}

.em-icon-arrow-right {
    width: 24px;
    height: 24px;
}

.em-icon-arrow-up {
    width: 24px;
    height: 24px;
}

.em-icon-arrow-down {
    width: 24px;
    height: 24px;
}

/* Commerce */
.em-icon-shopping-bag {
    width: 24px;
    height: 24px;
}

.em-icon-cart {
    width: 24px;
    height: 24px;
}

.em-icon-heart {
    width: 24px;
    height: 24px;
}

.em-icon-heart-outline {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
}

.em-icon-truck {
    width: 24px;
    height: 24px;
}

.em-icon-package {
    width: 24px;
    height: 24px;
}

.em-icon-tag {
    width: 24px;
    height: 24px;
}

.em-icon-percent {
    width: 24px;
    height: 24px;
}

.em-icon-gift {
    width: 24px;
    height: 24px;
}

.em-icon-credit-card {
    width: 24px;
    height: 24px;
}

/* Communication */
.em-icon-phone {
    width: 24px;
    height: 24px;
}

.em-icon-mail {
    width: 24px;
    height: 24px;
}

.em-icon-map-pin {
    width: 24px;
    height: 24px;
}

.em-icon-clock {
    width: 24px;
    height: 24px;
}

.em-icon-message-circle {
    width: 24px;
    height: 24px;
}

.em-icon-send {
    width: 24px;
    height: 24px;
}

/* Actions */
.em-icon-search {
    width: 24px;
    height: 24px;
}

.em-icon-user {
    width: 24px;
    height: 24px;
}

.em-icon-users {
    width: 24px;
    height: 24px;
}

.em-icon-settings {
    width: 24px;
    height: 24px;
}

.em-icon-log-out {
    width: 24px;
    height: 24px;
}

.em-icon-log-in {
    width: 24px;
    height: 24px;
}

.em-icon-eye {
    width: 24px;
    height: 24px;
}

.em-icon-eye-off {
    width: 24px;
    height: 24px;
}

.em-icon-edit {
    width: 24px;
    height: 24px;
}

.em-icon-trash-2 {
    width: 24px;
    height: 24px;
}

.em-icon-plus {
    width: 24px;
    height: 24px;
}

.em-icon-minus {
    width: 24px;
    height: 24px;
}

.em-icon-check {
    width: 24px;
    height: 24px;
}

.em-icon-filter {
    width: 24px;
    height: 24px;
}

.em-icon-sliders {
    width: 24px;
    height: 24px;
}

.em-icon-grid {
    width: 24px;
    height: 24px;
}

.em-icon-list {
    width: 24px;
    height: 24px;
}

.em-icon-star {
    width: 24px;
    height: 24px;
}

.em-icon-star-outline {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
}

.em-icon-share {
    width: 24px;
    height: 24px;
}

.em-icon-download {
    width: 24px;
    height: 24px;
}

.em-icon-upload {
    width: 24px;
    height: 24px;
}

.em-icon-external-link {
    width: 24px;
    height: 24px;
}

/* Status */
.em-icon-alert-circle {
    width: 24px;
    height: 24px;
}

.em-icon-alert-triangle {
    width: 24px;
    height: 24px;
}

.em-icon-info {
    width: 24px;
    height: 24px;
}

.em-icon-check-circle {
    width: 24px;
    height: 24px;
}

.em-icon-x-circle {
    width: 24px;
    height: 24px;
}

.em-icon-help-circle {
    width: 24px;
    height: 24px;
}

/* Content */
.em-icon-image {
    width: 24px;
    height: 24px;
}

.em-icon-camera {
    width: 24px;
    height: 24px;
}

.em-icon-play {
    width: 24px;
    height: 24px;
}

.em-icon-pause {
    width: 24px;
    height: 24px;
}

/* ============================================
   BRAND ICONS (Custom)
   ============================================ */

/* Zalo - using actual Zalo logo path */
.em-icon-zalo {
    width: 24px;
    height: 24px;
}

/* Social icons */
.em-icon-facebook {
    width: 24px;
    height: 24px;
}

.em-icon-instagram {
    width: 24px;
    height: 24px;
}

.em-icon-youtube {
    width: 24px;
    height: 24px;
}

.em-icon-tiktok {
    width: 24px;
    height: 24px;
}

/* ============================================
   ANIMATION (optional)
   ============================================ */

@keyframes em-icon-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.em-icon--spinning {
    animation: em-icon-spin 1s linear infinite;
}

@keyframes em-icon-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.em-icon--pulse {
    animation: em-icon-pulse 2s ease-in-out infinite;
}
