/* ============================================================
   MEKO Saigon Design System — styles.css
   Dark luxury theme with gold accents
   ============================================================ */

/* ----------------------------------------------------------
   1. DESIGN TOKENS
   ---------------------------------------------------------- */
:root {
  /* Colors — Primary (Gold) */
  --primary: #C5A55A;
  --primary-light: #D4B96A;
  --primary-dark: #8B7340;

  /* Colors — Accent (Teal) */
  --accent: #4A9BA5;
  --accent-light: #5FB5BF;

  /* Colors — Background & Surface */
  --bg: #0A0A0A;
  --surface: #1A1A1A;
  --surface-hover: #252525;
  --surface-active: #2F2F2F;

  /* Colors — Border */
  --border: #333333;
  --border-light: #444444;

  /* Colors — Text */
  --text: #F5F0E8;
  --text-muted: #A09880;
  --text-disabled: #555555;

  /* Colors — Semantic */
  --success: #4CAF50;
  --warning: #F5A623;
  --error: #E53935;
  --info: #4A9BA5;

  /* Typography — Families */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Be Vietnam Pro', system-ui, sans-serif;

  /* Typography — Sizes & Weights */
  --text-display: 48px;
  --text-h1: 36px;
  --text-h2: 28px;
  --text-h3: 20px;
  --text-body: 16px;
  --text-body-sm: 14px;
  --text-caption: 12px;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

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

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 24px rgba(197, 165, 90, 0.25);

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1.0);
  --duration: 0.3s;
  --duration-fast: 0.15s;
  --duration-slow: 0.5s;

  /* Z-index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
}


/* ----------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

a:hover {
  color: var(--primary-light);
}

ul, ol {
  list-style: none;
}

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

::selection {
  background: var(--primary);
  color: var(--bg);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-light);
}


/* ----------------------------------------------------------
   3. TYPOGRAPHY
   ---------------------------------------------------------- */
.text-display {
  font-family: var(--font-heading);
  font-size: var(--text-display);
  font-weight: var(--weight-bold);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1, .text-h1 {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  font-weight: var(--weight-bold);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h2, .text-h2 {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: var(--weight-semibold);
  line-height: 1.3;
}

h3, .text-h3 {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--weight-semibold);
  line-height: 1.4;
}

.text-body {
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: 1.6;
}

.text-body-sm {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-regular);
  line-height: 1.5;
}

.text-caption {
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

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

.text-primary {
  color: var(--primary);
}

.text-accent {
  color: var(--accent);
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-uppercase { text-transform: uppercase; }


/* ----------------------------------------------------------
   4. BUTTONS
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  user-select: none;
}

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

/* Primary — Gold filled */
.btn-primary {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-glow);
}

.btn-primary:active {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: none;
}

/* Secondary — Gold outline */
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: rgba(197, 165, 90, 0.1);
  border-color: var(--primary-light);
  color: var(--primary-light);
}

.btn-secondary:active {
  background: rgba(197, 165, 90, 0.15);
}

/* Outline — alias for secondary (used in landing page) */
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: rgba(197, 165, 90, 0.1);
  border-color: var(--primary-light);
  color: var(--primary-light);
}

/* Ghost — No border, subtle hover */
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.btn-ghost:active {
  background: var(--surface-active);
}

/* Pill CTA — Rounded gold */
.btn-pill {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
  border-radius: var(--radius-full);
  padding: var(--sp-3) var(--sp-8);
  font-weight: var(--weight-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: var(--text-caption);
}

.btn-pill:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

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

/* Danger */
.btn-danger {
  background: var(--error);
  color: #fff;
  border-color: var(--error);
}

.btn-danger:hover {
  background: #c62828;
  border-color: #c62828;
}

/* Sizes */
.btn-sm {
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-caption);
}

.btn-lg {
  padding: var(--sp-4) var(--sp-8);
  font-size: var(--text-body);
}

/* Icon button */
.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-sm);
}


/* ----------------------------------------------------------
   5. CARDS
   ---------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  transition: all var(--duration) var(--ease);
}

.card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-flat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}

.card-title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--weight-semibold);
}

.card-body {
  color: var(--text-muted);
  font-size: var(--text-body-sm);
}

.card-footer {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}


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

.form-label {
  display: block;
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  height: 48px;
  padding: 0 var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: var(--text-body);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(197, 165, 90, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-disabled);
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-textarea {
  height: auto;
  min-height: 100px;
  padding: var(--sp-3) var(--sp-4);
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%23A09880'%3E%3Cpath d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  padding-right: var(--sp-10);
  cursor: pointer;
}

.form-hint {
  font-size: var(--text-caption);
  color: var(--text-disabled);
  margin-top: var(--sp-1);
}

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

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

.form-input.is-error:focus,
.form-select.is-error:focus,
.form-textarea.is-error:focus {
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.15);
}

/* Checkbox & Radio */
.form-check {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Date picker input */
.form-date {
  position: relative;
}

.form-date input[type="date"] {
  width: 100%;
  height: 48px;
  padding: 0 var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: var(--text-body);
  font-family: var(--font-body);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.form-date input[type="date"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(197, 165, 90, 0.15);
}

.form-date input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7) sepia(1) saturate(2) hue-rotate(10deg);
  cursor: pointer;
}


/* ----------------------------------------------------------
   7. TABLES (Admin)
   ---------------------------------------------------------- */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-body-sm);
}

.table thead {
  background: var(--surface-hover);
}

.table th {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.table tbody tr {
  transition: background-color var(--duration-fast) var(--ease);
}

.table tbody tr:hover {
  background: var(--surface-hover);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table-actions {
  display: flex;
  gap: var(--sp-2);
}


/* ----------------------------------------------------------
   8. STATUS BADGES
   ---------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-pending {
  background: rgba(245, 166, 35, 0.15);
  color: var(--warning);
}

.badge-confirmed {
  background: rgba(197, 165, 90, 0.15);
  color: var(--primary);
}

.badge-in-production {
  background: rgba(74, 155, 165, 0.15);
  color: var(--accent);
}

.badge-ready {
  background: rgba(76, 175, 80, 0.15);
  color: var(--success);
}

.badge-delivered {
  background: rgba(76, 175, 80, 0.25);
  color: var(--success);
}

.badge-completed {
  background: rgba(76, 175, 80, 0.35);
  color: var(--success);
}

.badge-cancelled {
  background: rgba(229, 57, 53, 0.15);
  color: var(--error);
}

/* Payment badges */
.badge-paid {
  background: rgba(76, 175, 80, 0.15);
  color: var(--success);
}

.badge-unpaid {
  background: rgba(245, 166, 35, 0.15);
  color: var(--warning);
}


/* ----------------------------------------------------------
   9. MODALS
   ---------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration) var(--ease), visibility var(--duration) var(--ease);
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: transform var(--duration) var(--ease);
}

.modal-overlay.is-open .modal {
  transform: scale(1) translateY(0);
}

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

.modal-title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--weight-semibold);
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease);
  font-size: 18px;
}

.modal-close:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.modal-body {
  padding: var(--sp-6);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--border);
}


/* ----------------------------------------------------------
   10. TOAST NOTIFICATIONS
   ---------------------------------------------------------- */
.toast-container {
  position: fixed;
  top: var(--sp-6);
  right: var(--sp-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--sp-4) var(--sp-5);
  min-width: 300px;
  max-width: 420px;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  box-shadow: var(--shadow-lg);
  border-left: 3px solid var(--border-light);
}

.toast-success {
  border-left-color: var(--success);
}

.toast-warning {
  border-left-color: var(--warning);
}

.toast-error {
  border-left-color: var(--error);
}

.toast-info {
  border-left-color: var(--info);
}

.toast-message {
  flex: 1;
  font-size: var(--text-body-sm);
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  line-height: 1;
}

.toast-close:hover {
  color: var(--text);
}


/* ----------------------------------------------------------
   11. NAVIGATION — Customer (Top Bar)
   ---------------------------------------------------------- */
.nav-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-8);
  z-index: var(--z-sticky);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--weight-bold);
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.nav-link {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  transition: color var(--duration) var(--ease);
  position: relative;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary);
}

.nav-link.is-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease);
  font-size: 20px;
}

.nav-cart:hover {
  background: var(--surface-hover);
}

.nav-cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--primary);
  color: var(--bg);
  font-size: 10px;
  font-weight: var(--weight-bold);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-cart-badge:empty {
  display: none;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.lang-toggle button {
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  background: transparent;
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease);
}

.lang-toggle button.is-active {
  background: var(--primary);
  color: var(--bg);
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all 200ms;
}

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  padding: var(--sp-8) var(--sp-6);
  z-index: 500;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

.nav-mobile-menu.is-open {
  display: flex;
}

.nav-mobile-menu a,
.nav-mobile-menu button {
  display: block;
  width: 100%;
  text-align: left;
}

.nav-mobile-menu .nav-link {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}

.nav-mobile-menu .nav-link:hover {
  color: var(--primary);
}

.nav-mobile-menu .lang-toggle {
  margin-top: var(--sp-6);
}

.nav-mobile-menu .btn-primary {
  margin-top: var(--sp-4);
  text-align: center;
}


/* ----------------------------------------------------------
   12. NAVIGATION — Admin (Sidebar)
   ---------------------------------------------------------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: var(--z-sticky);
  overflow-y: auto;
}

.sidebar-header {
  padding: var(--sp-6);
  border-bottom: 1px solid var(--border);
}

.sidebar-logo {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--weight-bold);
  color: var(--primary);
}

.sidebar-label {
  font-size: var(--text-caption);
  color: var(--text-disabled);
  margin-top: var(--sp-1);
}

.sidebar-nav {
  flex: 1;
  padding: var(--sp-4) var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease);
}

.sidebar-link:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.sidebar-link.is-active {
  background: rgba(197, 165, 90, 0.1);
  color: var(--primary);
}

.sidebar-link .icon {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.sidebar-footer {
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--border);
  font-size: var(--text-caption);
  color: var(--text-disabled);
}

/* Admin header bar */
.admin-header {
  height: 72px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-8);
}

.admin-header-title {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: var(--weight-semibold);
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}


/* ----------------------------------------------------------
   13. COLOR SWATCHES
   ---------------------------------------------------------- */
.color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* Monochrome — circle */
.color-swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  position: relative;
}

.color-swatch:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

.color-swatch.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(197, 165, 90, 0.3);
}

.color-swatch-name {
  font-size: var(--text-caption);
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--sp-1);
  max-width: 56px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Ombre — pill */
.color-swatch-ombre {
  width: 64px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.color-swatch-ombre:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-md);
}

.color-swatch-ombre.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(197, 165, 90, 0.3);
}

/* Color group containers */
.color-group {
  margin-bottom: var(--sp-6);
}

.color-group-title {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: var(--text-caption);
}


/* ----------------------------------------------------------
   14. SHAPE CARDS
   ---------------------------------------------------------- */
.shape-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--sp-4);
}

.shape-card {
  width: 100%;
  max-width: 200px;
  height: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-align: center;
}

.shape-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.shape-card.is-selected {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.shape-icon {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
  color: var(--text-muted);
  font-size: 48px;
}

.shape-card.is-selected .shape-icon {
  color: var(--primary);
}

.shape-name {
  font-family: var(--font-heading);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--text);
  margin-bottom: var(--sp-1);
}

.shape-dimensions {
  font-size: var(--text-caption);
  color: var(--text-muted);
}

.shape-type-badge {
  font-size: 10px;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-top: var(--sp-2);
}


/* ----------------------------------------------------------
   15. FLAVOR CARDS
   ---------------------------------------------------------- */
.flavor-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.flavor-card {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.flavor-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-md);
}

.flavor-card.is-selected {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.flavor-image {
  width: 120px;
  min-height: 100px;
  background: var(--surface-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  flex-shrink: 0;
}

.flavor-info {
  flex: 1;
  padding: var(--sp-4) var(--sp-5);
}

.flavor-name-vi {
  font-family: var(--font-heading);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--text);
  margin-bottom: var(--sp-1);
}

.flavor-name-en {
  font-size: var(--text-body-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
}

.flavor-description {
  font-size: var(--text-caption);
  color: var(--text-disabled);
  margin-bottom: var(--sp-3);
  line-height: 1.5;
}

.flavor-price {
  font-size: var(--text-body);
  font-weight: var(--weight-bold);
  color: var(--primary);
}


/* ----------------------------------------------------------
   16. CONFIGURATOR STEPPER
   ---------------------------------------------------------- */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-8);
}

.stepper-step {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.stepper-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-body-sm);
  font-weight: var(--weight-bold);
  border: 2px solid var(--border);
  color: var(--text-disabled);
  background: transparent;
  transition: all var(--duration) var(--ease);
}

.stepper-step.is-active .stepper-circle {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--bg);
}

.stepper-step.is-done .stepper-circle {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--bg);
}

.stepper-label {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  color: var(--text-disabled);
  transition: color var(--duration) var(--ease);
}

.stepper-step.is-active .stepper-label {
  color: var(--primary);
}

.stepper-step.is-done .stepper-label {
  color: var(--text-muted);
}

.stepper-line {
  width: 48px;
  height: 2px;
  background: var(--border);
  transition: background var(--duration) var(--ease);
}

.stepper-step.is-done + .stepper-line {
  background: var(--primary);
}

/* Configurator step panels */
.config-step {
  display: none;
}

.config-step.is-active {
  display: block;
}

.config-actions {
  display: flex;
  justify-content: space-between;
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
}


/* ----------------------------------------------------------
   17. CART
   ---------------------------------------------------------- */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.cart-item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.cart-item-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: var(--surface-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 28px;
}

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

.cart-item-name {
  font-weight: var(--weight-semibold);
  font-size: var(--text-body-sm);
  margin-bottom: var(--sp-1);
}

.cart-item-details {
  font-size: var(--text-caption);
  color: var(--text-muted);
}

.cart-item-price {
  font-weight: var(--weight-bold);
  color: var(--primary);
  font-size: var(--text-body);
  white-space: nowrap;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-disabled);
  cursor: pointer;
  padding: var(--sp-1);
  transition: color var(--duration-fast) var(--ease);
}

.cart-item-remove:hover {
  color: var(--error);
}

.cart-summary {
  margin-top: var(--sp-6);
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-2) 0;
  font-size: var(--text-body-sm);
  color: var(--text-muted);
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-4);
  margin-top: var(--sp-3);
  border-top: 1px solid var(--border);
  font-size: var(--text-h3);
  font-weight: var(--weight-bold);
  color: var(--primary);
}

.cart-empty {
  text-align: center;
  padding: var(--sp-16) var(--sp-6);
  color: var(--text-muted);
}

.cart-empty-icon {
  font-size: 48px;
  margin-bottom: var(--sp-4);
  opacity: 0.4;
}


/* ----------------------------------------------------------
   18. LAYOUT — Customer
   ---------------------------------------------------------- */
.layout-customer {
  padding-top: 72px;
}

.layout-customer .main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--sp-8) var(--sp-6);
}

.page-header {
  margin-bottom: var(--sp-8);
}

.page-title {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  font-weight: var(--weight-bold);
  margin-bottom: var(--sp-2);
}

.page-subtitle {
  font-size: var(--text-body);
  color: var(--text-muted);
}


/* ----------------------------------------------------------
   19. LAYOUT — Admin
   ---------------------------------------------------------- */
.layout-admin {
  display: flex;
  min-height: 100vh;
}

.layout-admin .main-area {
  flex: 1;
  margin-left: 240px;
}

.layout-admin .main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--sp-8);
}

/* Stats cards grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-5);
  margin-bottom: var(--sp-8);
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
}

.stat-label {
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-2);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  font-weight: var(--weight-bold);
  color: var(--text);
}

.stat-change {
  font-size: var(--text-caption);
  color: var(--success);
  margin-top: var(--sp-1);
}


/* ----------------------------------------------------------
   20. LANDING PAGE
   ---------------------------------------------------------- */

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-16) var(--sp-6);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(197, 165, 90, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 80%, rgba(74, 155, 165, 0.06) 0%, transparent 50%),
    var(--bg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: rgba(197, 165, 90, 0.1);
  border: 1px solid rgba(197, 165, 90, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  color: var(--primary);
  margin-bottom: var(--sp-8);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: var(--weight-bold);
  line-height: 1.1;
  margin-bottom: var(--sp-6);
  max-width: 800px;
}

.hero-title .gold {
  color: var(--primary);
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: var(--sp-10);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  justify-content: center;
}

/* Sections */
.section {
  padding: var(--sp-24) var(--sp-6);
  position: relative;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: var(--weight-bold);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--sp-4);
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  font-weight: var(--weight-bold);
  margin-bottom: var(--sp-4);
  line-height: 1.2;
}

.section-desc {
  font-size: var(--text-body);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: var(--sp-10);
}

.section-center {
  text-align: center;
}

.section-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-8);
  transition: all var(--duration) var(--ease);
}

.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: var(--sp-5);
}

.feature-title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--sp-3);
}

.feature-desc {
  font-size: var(--text-body-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

/* Marquee */
.marquee-section {
  overflow: hidden;
  padding: var(--sp-12) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee-track {
  display: flex;
  gap: var(--sp-12);
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-item {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: var(--weight-bold);
  color: var(--text-disabled);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.marquee-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-dark);
  border-radius: 50%;
}

/* CTA section */
.cta-section {
  text-align: center;
  padding: var(--sp-24) var(--sp-6);
  position: relative;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(197, 165, 90, 0.08) 0%, transparent 60%),
    var(--bg);
}

.cta-title {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  font-weight: var(--weight-bold);
  margin-bottom: var(--sp-4);
}

.cta-desc {
  font-size: var(--text-body);
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto var(--sp-8);
  line-height: 1.6;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(197, 165, 90, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--sp-12) var(--sp-6);
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--weight-bold);
  color: var(--primary);
  margin-bottom: var(--sp-3);
}

.footer-text {
  font-size: var(--text-body-sm);
  color: var(--text-muted);
}


/* ----------------------------------------------------------
   21. LOADING / SKELETON
   ---------------------------------------------------------- */
.skeleton {
  background: var(--surface);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent,
    rgba(197, 165, 90, 0.06),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

.skeleton-text {
  height: 14px;
  margin-bottom: var(--sp-2);
}

.skeleton-heading {
  height: 24px;
  width: 60%;
  margin-bottom: var(--sp-4);
}

.skeleton-image {
  width: 100%;
  height: 200px;
}


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

.w-full { width: 100%; }
.h-full { height: 100%; }

.p-0 { padding: 0; }
.p-2 { padding: var(--sp-2); }
.p-4 { padding: var(--sp-4); }
.p-6 { padding: var(--sp-6); }
.p-8 { padding: var(--sp-8); }

.mt-2 { margin-top: var(--sp-2); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }

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

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--sp-6) 0;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--sp-16) var(--sp-6);
}

.empty-state-icon {
  font-size: 48px;
  color: var(--text-disabled);
  margin-bottom: var(--sp-4);
}

.empty-state-title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--sp-2);
}

.empty-state-desc {
  color: var(--text-muted);
  font-size: var(--text-body-sm);
  margin-bottom: var(--sp-6);
}


/* ----------------------------------------------------------
   23. RESPONSIVE BREAKPOINTS
   ---------------------------------------------------------- */

/* Mobile: 375px */
@media (max-width: 767px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-actions .lang-toggle {
    display: none;
  }

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

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

  .shape-card {
    max-width: 100%;
    height: auto;
    padding: var(--sp-4);
  }

  .shape-icon {
    width: 60px;
    height: 60px;
    font-size: 32px;
  }

  .flavor-card {
    flex-direction: column;
  }

  .flavor-image {
    width: 100%;
    height: 100px;
  }

  .stepper-label {
    display: none;
  }

  .stepper-line {
    width: 24px;
  }

  /* Admin sidebar becomes top drawer on mobile */
  .sidebar {
    transform: translateX(-100%);
    transition: transform var(--duration) var(--ease);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .layout-admin .main-area {
    margin-left: 0;
  }

  .layout-admin .main-content {
    padding: var(--sp-4);
    min-width: 0;
    max-width: 100vw;
  }

  .layout-admin .main-area {
    min-width: 0;
    overflow-x: hidden;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }

  .stat-value {
    font-size: var(--text-h2);
  }

  .hero-title {
    font-size: 32px;
  }

  .section {
    padding: var(--sp-16) var(--sp-4);
  }

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

  .modal {
    width: 95%;
    max-height: 90vh;
  }

  .table-wrapper {
    font-size: var(--text-body-sm);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .toast {
    min-width: auto;
    max-width: calc(100vw - var(--sp-8));
    right: var(--sp-4);
  }

  .toast-container {
    right: var(--sp-4);
    left: var(--sp-4);
  }

  .cart-item-thumb {
    width: 48px;
    height: 48px;
  }
}

/* Tablet: 768px */
@media (min-width: 768px) and (max-width: 1023px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .sidebar {
    width: 200px;
  }

  .layout-admin .main-area {
    margin-left: 200px;
  }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  .nav-hamburger {
    display: none;
  }
}

/* Desktop large: 1280px+ */
@media (min-width: 1280px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ----------------------------------------------------------
   24. CHECKOUT & CART RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 767px) {
  /* Checkout: stack columns on mobile */
  #checkoutGrid {
    grid-template-columns: 1fr !important;
  }

  /* Cart: stack columns on mobile */
  #cartContent > div {
    grid-template-columns: 1fr !important;
  }

  /* Admin grid columns */
  #detailContent > div {
    grid-template-columns: 1fr !important;
  }

  /* Analytics chart grids */
  .analytics-grid {
    grid-template-columns: 1fr !important;
  }

  /* Calendar: horizontal scroll on mobile */
  .cal-grid {
    min-width: 600px;
  }
  .cal-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Checkout 2-col grids */
  .checkout-2col {
    grid-template-columns: 1fr !important;
  }
}


/* ----------------------------------------------------------
   25. PRINT
   ---------------------------------------------------------- */
@media print {
  body {
    background: white;
    color: black;
  }

  .nav-top,
  .sidebar,
  .toast-container,
  .modal-overlay {
    display: none !important;
  }

  .layout-admin .main-area {
    margin-left: 0;
  }

  .card, .stat-card {
    border: 1px solid #ddd;
    box-shadow: none;
  }
}

/* ----------------------------------------------------------
   26. COMPATIBILITY — index.html class mappings
   ---------------------------------------------------------- */

/* Hero extras */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-content {
  position: relative; z-index: 1;
  text-align: center; max-width: 720px; margin: 0 auto;
}
.hero-subtitle {
  font-size: 1.125rem; color: var(--text-muted); max-width: 520px;
  margin: 0 auto var(--space-10); line-height: 1.7;
}

/* Section inner */
.section-inner {
  max-width: 1200px; margin: 0 auto;
}
.section { padding: var(--space-24) var(--space-12); }
.section--dark { background: var(--bg); }

/* Subsection labels */
.subsection-label {
  font-size: 0.9375rem; font-weight: 600; color: var(--text-muted);
  margin-bottom: var(--space-4);
}

/* Steps grid */
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6);
}
.step-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-6);
}
.step-card-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: var(--primary); color: var(--bg);
  border-radius: 50%; font-weight: 700; font-size: 1.125rem; margin-bottom: var(--space-5);
}
.step-card-title {
  font-family: var(--font-heading); font-size: 1.25rem; margin-bottom: var(--space-2);
}
.step-card-subtitle {
  color: var(--text-muted); font-size: 0.875rem; margin-bottom: var(--space-3);
}
.step-card-desc {
  color: var(--text-muted); font-size: 0.875rem; line-height: 1.6;
}

/* Shapes grid */
.shapes-grid { display: grid; gap: var(--space-6); }
.shapes-grid--3 { grid-template-columns: repeat(3, 1fr); }
.shapes-grid--4 { grid-template-columns: repeat(4, 1fr); }
.shape-card-icon {
  width: 120px; height: 120px; margin: 0 auto var(--space-5);
  border: 1px solid var(--primary-dark); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--primary);
}
.shape-card-name {
  font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: var(--space-1);
}
.shape-card-dim {
  color: var(--text-muted); font-size: 0.8125rem;
}

/* Color swatches layout */
.color-swatches {
  display: flex; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-8);
}
.color-swatch-item { text-align: center; }
.color-swatch-label {
  display: block; margin-top: var(--space-2); font-size: 0.6875rem; color: var(--text-muted);
}
.ombre-swatches {
  display: flex; flex-wrap: wrap; gap: var(--space-3);
}
.ombre-swatch {
  width: 64px; height: 44px; border-radius: 22px;
  border: 2px solid transparent; cursor: pointer; transition: all 200ms;
}
.ombre-swatch:hover { border-color: var(--primary); }

/* Flavor extras */
.flavor-card-emoji {
  width: 100px; height: 100px; border-radius: var(--radius-sm);
  background: var(--surface-hover); display: flex; align-items: center;
  justify-content: center; font-size: 2rem; flex-shrink: 0;
}
.flavors-list {
  display: flex; flex-direction: column; gap: var(--space-4);
}
.flavor-card-icon {
  font-size: 2rem; flex-shrink: 0; width: 48px; text-align: center;
}
.flavor-card-body { flex: 1; padding: var(--space-4); }
.flavor-card-name {
  font-family: var(--font-heading); font-size: 1rem; margin-bottom: 2px;
}
.flavor-card-name-en {
  color: var(--primary); font-size: 0.875rem; margin-bottom: var(--space-2);
}
.flavor-card-info { flex: 1; }
.flavor-card-vi { font-size: 1.1rem; margin-bottom: var(--space-1); }
.flavor-card-en { color: var(--primary); font-size: 0.875rem; margin-bottom: var(--space-2); }
.flavor-card-desc { color: var(--text-muted); font-size: 0.875rem; }
.flavor-card-price {
  font-size: 1.25rem; font-weight: 700; color: var(--primary); white-space: nowrap;
}

/* CTA section */
.cta-section {
  text-align: center; padding: var(--space-24) var(--space-12); position: relative;
}
.cta-section h2 {
  font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: var(--space-4);
}
.cta-section p { color: var(--text-muted); max-width: 480px; margin: 0 auto var(--space-8); }
.cta-note { color: var(--warning); font-size: 0.875rem; margin-top: var(--space-4); }

/* Footer */
.footer {
  border-top: 1px solid var(--border); padding: var(--space-12);
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1200px; margin: 0 auto; flex-wrap: wrap; gap: var(--space-6);
}
.footer-links, .footer-social { display: flex; gap: var(--space-6); }
.footer-links a, .footer-social a {
  color: var(--text-muted); text-decoration: none; font-size: 0.875rem;
  transition: color 200ms;
}
.footer-links a:hover, .footer-social a:hover { color: var(--text); }

/* Lang toggle */
.lang-toggle {
  color: var(--text-muted); font-size: 0.8125rem; font-weight: 500;
  cursor: pointer; padding: 4px 8px; border: 1px solid var(--border);
  border-radius: 4px; background: transparent;
}

/* Button size modifier */
.btn-lg { padding: 14px 36px; font-size: 1rem; }

/* Marquee compat */
.marquee {
  overflow: hidden; padding: var(--space-4) 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.marquee .marquee-track {
  display: flex; animation: marquee-scroll 20s linear infinite; width: max-content;
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-content {
  display: inline-block; padding-right: var(--space-12);
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.15em;
  color: var(--text-muted); text-transform: uppercase; white-space: nowrap;
}

/* App nav compat */
.app-nav { display: flex; align-items: center; }
.app-nav-links { display: flex; gap: var(--space-8); }
.app-nav-link {
  color: var(--text-muted); text-decoration: none; font-size: 0.9375rem;
  transition: color 200ms;
}
.app-nav-link:hover, .app-nav-link.active { color: var(--text); }

/* Configurator */
.configurator { max-width: 960px; margin: 0 auto; padding: var(--space-8); }
.configurator-stepper {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-4); margin-bottom: var(--space-10);
}
.configurator-panels { position: relative; }
.configurator-panel { display: none; }
.configurator-panel--active { display: block; }
.configurator-step-title {
  font-family: var(--font-heading); font-size: 1.75rem;
  margin-bottom: var(--space-6);
}

/* Stepper */
.stepper {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: var(--space-10);
}
.stepper-step {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
}
.stepper-circle {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.875rem;
  background: var(--surface); color: var(--text-muted);
  border: 2px solid var(--border); transition: all 300ms;
}
.stepper-step--active .stepper-circle {
  background: var(--primary); color: var(--bg); border-color: var(--primary);
}
.stepper-step--complete .stepper-circle {
  background: var(--primary-dark); color: var(--text); border-color: var(--primary-dark);
}
.stepper-label {
  font-size: 0.75rem; color: var(--text-muted); font-weight: 500;
}
.stepper-step--active .stepper-label { color: var(--primary); }
.stepper-line {
  width: 60px; height: 2px; background: var(--border); margin: 0 var(--space-2);
  margin-bottom: 20px;
}
.stepper-step--complete + .stepper-line,
.stepper-line + .stepper-step--active { background: var(--primary); }

/* Product type toggle */
.product-type-toggle {
  display: flex; gap: var(--space-2); margin-bottom: var(--space-6);
}
.product-type-btn {
  padding: 10px 20px; border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text-muted);
  border: 1px solid var(--border); cursor: pointer;
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 500;
  transition: all 200ms;
}
.product-type-btn.active, .product-type-btn:hover {
  background: var(--primary); color: var(--bg); border-color: var(--primary);
}

/* Step action buttons */
.step-actions {
  display: flex; gap: var(--space-4); margin-top: var(--space-8);
}

/* Ombre selected */
.ombre-swatch--selected, .ombre-swatch.is-selected {
  border-color: var(--primary); box-shadow: var(--shadow-glow);
}

/* Toggle group (configurator) */
.toggle-group {
  display: flex; gap: var(--space-2); margin-bottom: var(--space-6);
}
.toggle-group--sub { margin-bottom: var(--space-4); }
.toggle-btn {
  padding: 10px 20px; border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text-muted);
  border: 1px solid var(--border); cursor: pointer;
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 500;
  transition: all 200ms;
}
.toggle-btn--active, .toggle-btn:hover {
  background: var(--primary); color: var(--bg); border-color: var(--primary);
}

/* Configurator preview */
.configurator-preview {
  display: flex; flex-direction: column; align-items: center;
  margin: var(--space-8) 0;
}
.preview-shape { text-align: center; }
.preview-shape-visual {
  width: 160px; height: 160px; border-radius: 50%;
  background: var(--surface); margin: 0 auto var(--space-4);
  border: 2px solid var(--border); transition: background 300ms;
}
.preview-shape-name {
  font-family: var(--font-heading); font-size: 1rem;
  color: var(--text-muted);
}

/* Color swatches in configurator */
.color-swatches--config {
  display: flex; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-6);
}
.color-swatch-item {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-1);
  cursor: pointer;
}
.color-swatch-label {
  font-size: 0.75rem; color: var(--text-muted);
}
.ombre-swatches--config {
  display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-6);
}
.ombre-swatch {
  width: 60px; height: 32px; border-radius: var(--radius-sm);
  cursor: pointer; border: 2px solid transparent;
  transition: border-color 200ms, box-shadow 200ms;
}
.ombre-swatch:hover { border-color: var(--primary-light); }

/* Flavor cards in configurator */
.flavors-list--config .flavor-card {
  cursor: pointer; transition: border-color 200ms;
}
.flavors-list--config .flavor-card:hover,
.flavors-list--config .flavor-card.is-selected {
  border-color: var(--primary); box-shadow: var(--shadow-glow);
}

/* Modal */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8); display: flex;
  align-items: center; justify-content: center; z-index: 1000;
  backdrop-filter: blur(4px);
}
.modal {
  background: #2a2a2a; border-radius: var(--radius-lg);
  padding: var(--space-8); max-width: 480px; width: 90%;
  border: 1px solid var(--primary); box-shadow: 0 0 40px rgba(0,0,0,0.5);
}
.modal-title {
  font-family: var(--font-heading); font-size: 1.5rem;
  margin-bottom: var(--space-6);
}
.modal-body { margin-bottom: var(--space-6); }
.summary-row {
  display: flex; justify-content: space-between;
  padding: var(--space-3) 0; border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}
.summary-row--total {
  border-bottom: none; font-weight: 700; font-size: 1.125rem;
  color: var(--primary); padding-top: var(--space-4);
}
.summary-label { color: var(--text-muted); }
.modal-actions {
  display: flex; gap: var(--space-4); justify-content: flex-end;
}

/* Toast */
.toast {
  position: fixed; bottom: var(--space-8); left: 50%; transform: translateX(-50%);
  background: var(--primary); color: var(--bg); padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm); font-weight: 600; z-index: 1001;
  display: none; align-items: center; gap: var(--space-2);
}

/* Footer inner fix */
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--space-6); width: 100%;
}
.footer-brand img { border-radius: 4px; }

/* App nav — reuses .nav-top but not fixed */
.nav-top--app {
  position: sticky;
}

/* Responsive extras */
@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; }
  .shapes-grid--3 { grid-template-columns: 1fr 1fr; }
  .shapes-grid--4 { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .toggle-group { flex-wrap: wrap; }
  .stepper { gap: 0; }
  .stepper-line { width: 40px; }
  .configurator-preview { margin: var(--space-6) 0; }
  .preview-shape-visual { width: 120px; height: 120px; }
  .color-swatches--config { justify-content: center; }
  .ombre-swatches--config { justify-content: center; }
  .modal { padding: var(--space-6); }
}
@media (max-width: 480px) {
  .shapes-grid--3, .shapes-grid--4 { grid-template-columns: 1fr; }
  .stepper-line { width: 24px; }
  .stepper-circle { width: 30px; height: 30px; font-size: 0.75rem; }
  .toggle-btn { padding: 8px 14px; font-size: 0.8125rem; }
  .preview-shape-visual { width: 100px; height: 100px; }
  .app-nav { flex-wrap: wrap; gap: var(--space-4); }
  .app-nav-links { gap: var(--space-4); }
}
