/* ============================================================
   VietShop Premium Design System — High-End Modern E-Commerce
   Typography: Plus Jakarta Sans (Headings) + Inter (Body/Data)
   Palette: Slate-900 / Pure White Surface / Rose-600 Accent / Emerald-600 Price
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  /* Color palette */
  --color-rose-50:    #FFF1F2;
  --color-rose-100:   #FFE4E6;
  --color-rose-500:   #F43F5E;
  --color-rose-600:   #E11D48;
  --color-rose-700:   #BE123C;

  --color-slate-50:   #F8FAFC;
  --color-slate-100:  #F1F5F9;
  --color-slate-200:  #E2E8F0;
  --color-slate-300:  #CBD5E1;
  --color-slate-400:  #94A3B8;
  --color-slate-500:  #64748B;
  --color-slate-600:  #475569;
  --color-slate-700:  #334155;
  --color-slate-800:  #1E293B;
  --color-slate-900:  #0F172A;
  --color-slate-950:  #020617;

  --color-emerald-50:  #ECFDF5;
  --color-emerald-600: #059669;
  --color-emerald-700: #047857;

  --color-amber-400:  #FBBF24;
  --color-amber-500:  #F59E0B;

  --color-white: #FFFFFF;

  /* Semantic tokens */
  --primary:        var(--color-rose-600);
  --primary-dark:   var(--color-rose-700);
  --primary-light:  var(--color-rose-50);
  --on-primary:     var(--color-white);

  --surface:        var(--color-white);
  --surface-raised: var(--color-white);
  --background:     var(--color-slate-50);
  --background-alt: #F1F5F9;

  --text-primary:   var(--color-slate-900);
  --text-secondary: var(--color-slate-600);
  --text-muted:     var(--color-slate-400);

  --border:         var(--color-slate-200);
  --border-focus:   var(--color-rose-600);

  --success:        var(--color-emerald-600);
  --warning:        var(--color-amber-500);
  --error:          var(--color-rose-600);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Type Scale */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.25rem;   /* 20px */
  --text-2xl:  1.5rem;    /* 24px */
  --text-3xl:  1.875rem;  /* 30px */
  --text-4xl:  2.25rem;   /* 36px */

  /* Spacing */
  --space-1:  0.25rem;   /* 4px */
  --space-2:  0.5rem;    /* 8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */

  /* Radius */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   18px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(15,23,42,0.04), 0 1px 2px rgba(15,23,42,0.02);
  --shadow-md:  0 4px 14px rgba(15,23,42,0.06), 0 2px 6px rgba(15,23,42,0.03);
  --shadow-lg:  0 12px 28px rgba(15,23,42,0.1), 0 4px 10px rgba(15,23,42,0.04);
  --shadow-xl:  0 20px 40px rgba(15,23,42,0.15);

  /* Z-index scale */
  --z-base:    0;
  --z-raised:  10;
  --z-dropdown: 20;
  --z-sticky:  40;
  --z-overlay: 100;
  --z-modal:   200;
  --z-toast:   300;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast:   150ms;
  --duration-base:   250ms;
  --duration-slow:   350ms;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Skip Link ────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: var(--z-toast);
  padding: var(--space-3) var(--space-6);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.skip-link:focus-visible {
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  overflow: visible;
  white-space: normal;
  outline: 2px solid white;
  outline-offset: 2px;
}

/* ── Base Body ────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--space-16) + env(safe-area-inset-bottom, 0px));
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.25;
  text-wrap: balance;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
h4, h5, h6 {
  font-family: var(--font-body);
  line-height: 1.3;
  color: var(--text-primary);
}
p { text-wrap: pretty; line-height: 1.6; }

.tabular {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ── Layout Container ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}
@media (max-width: 480px) {
  .container { padding: 0 var(--space-3); }
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: 56px;
}
@media (min-width: 769px) {
  .header-inner { height: 64px; gap: var(--space-4); }
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-slate-900);
  color: var(--color-white);
  border-radius: var(--radius-md);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.logo-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-slate-900);
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}
@media (min-width: 481px) { .logo-name { max-width: 180px; font-size: 1.2rem; } }
@media (min-width: 769px) { .logo-name { max-width: none; font-size: 1.25rem; } }

/* Search */
.search-form {
  flex: 1;
  min-width: 0;
  max-width: 480px;
  position: relative;
}
.search-input {
  width: 100%;
  height: 40px;
  padding: 0 var(--space-4) 0 40px;
  background: var(--color-slate-100);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-primary);
  transition: all var(--duration-fast) var(--ease-out);
  touch-action: manipulation;
}
@media (min-width: 769px) {
  .search-input { height: 44px; padding-left: 44px; }
}
.search-input:hover { background: var(--color-slate-200); }
.search-input:focus {
  outline: none;
  border-color: var(--border-focus);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(225,29,72,0.1);
}
.search-input::placeholder { color: var(--text-muted); }
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
}
@media (min-width: 769px) { .search-icon { left: 14px; } }

/* Hide text label on mobile, show on desktop */
.hide-mobile { display: none; }
@media (min-width: 640px) { .hide-mobile { display: inline; } }

/* Category Dropdown Button */
.cat-dropdown-wrap {
  position: relative;
  flex-shrink: 0;
}
.cat-dropdown-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 40px;
  padding: 0 var(--space-3);
  background: var(--color-slate-900);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  touch-action: manipulation;
  transition: background var(--duration-fast) var(--ease-out), transform var(--duration-fast);
  min-width: 44px;
  min-height: 44px;
}
@media (min-width: 640px) {
  .cat-dropdown-btn { height: 42px; padding: 0 var(--space-4); }
}
.cat-dropdown-btn:hover { background: var(--color-rose-600); }
.cat-dropdown-btn:active { transform: scale(0.97); }

.cat-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + var(--space-2));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  min-width: 240px;
  max-height: 70dvh;
  overflow-y: auto;
  padding: var(--space-2);
  z-index: var(--z-dropdown);
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 480px) {
  .cat-dropdown-menu {
    right: calc(-1 * var(--space-3));
    min-width: 220px;
    max-width: calc(100vw - var(--space-6));
  }
}
.cat-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background var(--duration-fast), color var(--duration-fast);
  min-height: 44px;
}
.cat-dropdown-item:hover {
  background: var(--color-slate-100);
  color: var(--primary);
}
.cat-dropdown-item.active {
  color: var(--primary);
  font-weight: 700;
  background: var(--primary-light);
}

/* ── Category Chips Bar ───────────────────────────────────── */
.cat-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.cat-bar-inner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  overflow-x: auto;
  overflow-y: hidden;
  padding: var(--space-2) 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
}
.cat-bar-inner::-webkit-scrollbar { display: none; }
.cat-chip {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 var(--space-4);
  background: var(--color-slate-100);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  touch-action: manipulation;
  transition: all var(--duration-fast) var(--ease-out);
  scroll-snap-align: start;
  min-height: 44px;
  align-items: center;
}
.cat-chip:hover {
  background: var(--color-slate-200);
  color: var(--text-primary);
}
.cat-chip.active {
  background: var(--color-slate-900);
  border-color: var(--color-slate-900);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(15,23,42,0.15);
}

/* ── Hero Slider ──────────────────────────────────────────── */
.hero-slider {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: var(--space-4) 0 var(--space-5);
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  aspect-ratio: 16/9;
  box-shadow: var(--shadow-md);
}
@media (min-width: 640px) {
  .hero-slider { aspect-ratio: 21/9; border-radius: var(--radius-2xl); margin: var(--space-5) 0 var(--space-8); }
}
@media (min-width: 1024px) {
  .hero-slider { aspect-ratio: 21/8; }
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out);
}
.slide.active { opacity: 1; }
.slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg,
    rgba(15,23,42,0.85) 0%,
    rgba(15,23,42,0.4) 60%,
    transparent 100%);
}
.slide-body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--space-5);
  max-width: 600px;
  color: var(--color-white);
}
@media (min-width: 640px) {
  .slide-body { padding: 0 var(--space-10); }
}
.slide-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-amber-400);
  margin-bottom: var(--space-2);
}
.slide-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-2);
  color: var(--color-white);
  letter-spacing: -0.03em;
}
@media (min-width: 640px) { .slide-title { font-size: var(--text-2xl); } }
@media (min-width: 1024px) { .slide-title { font-size: var(--text-3xl); } }

/* ── Section Header ───────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  gap: var(--space-3);
}
@media (min-width: 640px) {
  .section-header { margin-bottom: var(--space-5); }
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}
@media (min-width: 640px) { .section-title { font-size: 1.75rem; } }
.section-count {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 600;
  flex-shrink: 0;
}

/* ── Filter Chips ─────────────────────────────────────────── */
.filter-row {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-1);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;
}
.filter-row::-webkit-scrollbar { display: none; }
@media (min-width: 769px) {
  .filter-row { flex-wrap: wrap; overflow-x: visible; }
}
.filter-label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  margin-right: var(--space-1);
  white-space: nowrap;
  flex-shrink: 0;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  height: 34px;
  min-height: 44px;
  padding: 0 var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  touch-action: manipulation;
  transition: all var(--duration-fast);
  white-space: nowrap;
  flex-shrink: 0;
}
.filter-chip:hover {
  border-color: var(--color-slate-700);
  color: var(--color-slate-900);
}
.filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 2px 8px rgba(225,29,72,0.25);
}

/* Sort dropdown select */
.sort-select {
  height: 36px;
  padding: 0 var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  touch-action: manipulation;
  transition: all var(--duration-fast);
  box-shadow: var(--shadow-sm);
}
.sort-select:hover, .sort-select:focus {
  border-color: var(--color-slate-700);
  background: var(--color-slate-50);
}

/* ── Product Grid ─────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}
@media (min-width: 480px) {
  .product-grid { gap: var(--space-4); }
}
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-5); margin-bottom: var(--space-12); }
}
@media (max-width: 320px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* Product Card */
.product-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              border-color var(--duration-base);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-slate-300);
}
.product-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--color-slate-100);
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-slow) var(--ease-out);
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}
.product-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.badge-set  { background: #FEF3C7; color: #92400E; }
.badge-hot  { background: #FEE2E2; color: #991B1B; }

.product-info {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-2);
}
@media (min-width: 640px) {
  .product-info { padding: var(--space-4); }
}
.product-name {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--duration-fast);
}
.product-name:hover { color: var(--primary); }

/* Dual Price Block */
.price-block {
  margin-top: auto;
  padding-top: var(--space-2);
}
.price-twd-large {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--success);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
@media (min-width: 640px) { .price-twd-large { font-size: 1.25rem; } }
.price-vnd-sub {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.price-vnd-large {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
@media (min-width: 640px) { .price-vnd-large { font-size: 1.125rem; } }

.card-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.btn-detail {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-height: 44px;
  padding: 0 var(--space-2);
  background: var(--color-slate-100);
  color: var(--color-slate-800);
  border: none;
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background var(--duration-fast), transform var(--duration-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 640px) {
  .btn-detail { height: 38px; font-size: var(--text-xs); padding: 0 var(--space-3); }
}
.btn-detail:hover { background: var(--color-slate-200); }
.btn-zalo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-height: 44px;
  padding: 0 var(--space-3);
  background: #0068FF;
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background var(--duration-fast), transform var(--duration-fast);
  flex-shrink: 0;
}
.btn-zalo:hover { background: #0050C8; }
.btn-detail:active, .btn-zalo:active { transform: scale(0.96); }

/* ── Empty State ──────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-8);
  background: var(--surface);
  border-radius: var(--radius-2xl);
  border: 1px dashed var(--border);
  margin-bottom: var(--space-12);
}
.empty-state h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
  font-weight: 700;
}
.empty-state p {
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 46px;
  padding: 0 var(--space-6);
  background: var(--color-slate-900);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background var(--duration-fast), transform var(--duration-fast);
}
.btn-primary:hover { background: var(--primary); }
.btn-primary:active { transform: scale(0.97); }

/* ── Floating Contacts ────────────────────────────────────── */
.floating-contacts {
  position: fixed;
  bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  right: var(--space-4);
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
@media (min-width: 640px) {
  .floating-contacts { bottom: var(--space-6); right: var(--space-5); }
}
.float-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  font-weight: 800;
  box-shadow: var(--shadow-lg);
  position: relative;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform var(--duration-fast) var(--ease-out);
}
@media (min-width: 640px) {
  .float-btn { width: 52px; height: 52px; }
}
.float-btn:hover { transform: scale(1.08); }
.float-btn:active { transform: scale(0.95); }
.float-zalo { background: #0068FF; }
.float-messenger { background: linear-gradient(135deg, #0084FF 0%, #00C6FF 100%); box-shadow: 0 4px 14px rgba(0, 132, 255, 0.4); }
.float-back-top {
  background: var(--color-slate-900);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22);
}

.btn-order-messenger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 48px;
  background: linear-gradient(135deg, #0084FF 0%, #00C6FF 100%);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: opacity var(--duration-fast), transform var(--duration-fast);
  box-shadow: 0 4px 12px rgba(0, 132, 255, 0.25);
}
.btn-order-messenger:hover { opacity: 0.92; }
.btn-order-messenger:active { transform: scale(0.98); }

.btn-order-taobao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 44px;
  background: #FFF5F0;
  color: #FF5000;
  border: 1.5px solid #FF5000;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: all var(--duration-fast);
}
.btn-order-taobao:hover { background: #FF5000; color: white; }
.btn-order-taobao:active { transform: scale(0.98); }

/* ── AlertDialog (Baseline UI) ────────────────────────────── */
.alert-dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-out);
}
.alert-dialog-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.alert-dialog {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  max-width: 440px;
  width: 90%;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  transform: scale(0.95);
  transition: transform var(--duration-base) var(--ease-out);
}
.alert-dialog-backdrop.active .alert-dialog {
  transform: scale(1);
}
.alert-dialog-title {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}
.alert-dialog-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-5);
}
.alert-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}
.btn-ghost {
  height: 40px;
  padding: 0 var(--space-4);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  touch-action: manipulation;
}
.btn-ghost:hover { background: var(--color-slate-100); }
.btn-danger {
  height: 40px;
  padding: 0 var(--space-4);
  background: var(--error);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}
.btn-danger:hover { background: #DC2626; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--color-slate-950);
  color: var(--color-slate-400);
  padding: var(--space-12) 0 var(--space-6);
  margin-top: var(--space-12);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--space-2);
}
.footer-desc {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-slate-400);
}
.footer-heading {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-3);
}
.footer-link {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-slate-400);
  text-decoration: none;
  margin-bottom: var(--space-2);
  transition: color var(--duration-fast);
}
.footer-link:hover { color: var(--color-white); }
.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-slate-800);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-slate-500);
}

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .container { padding: 0 var(--space-3); }
  .header-inner { height: 56px; }
  .search-form { max-width: none; }
  .floating-contacts { bottom: var(--space-4); right: var(--space-3); }
  .float-btn { width: 46px; height: 46px; }
}

/* ── Infinite Scroll / Lazy Load UI ───────────────────────── */
.product-card.fade-in {
  animation: cardFadeIn 350ms var(--ease-out) forwards;
}
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.infinite-scroll-status {
  text-align: center;
  padding: var(--space-4) 0 var(--space-8);
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}
.infinite-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: infiniteSpin 0.6s linear infinite;
  flex-shrink: 0;
}
@keyframes infiniteSpin {
  to { transform: rotate(360deg); }
}
