/* ══════════════════════════════════════════
   NEXUS STORE — Design System v2
   Font: Space Grotesk (headings) + Inter (body)
══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* ── DESIGN TOKENS ──────────────────────── */
:root {
  /* ── Nền trang ── */
  --bg:           #F8FAFC;
  --bg-alt:       #FFFFFF;
  --surface:      #F3F4F6;        /* Xám nhạt chủ đạo */
  --surface-2:    #E5E7EB;

  /* ── Màu chữ (thang xám) ── */
  --ink:          #374151;        /* Xám đậm chủ đạo */
  --ink-2:        #4B5563;
  --ink-3:        #6B7280;
  --ink-muted:    #9CA3AF;

  /* ── Màu chủ đạo: Xanh dương ── */
  --accent:       #2563EB;        /* Primary */
  --accent-light: #EFF6FF;
  --accent-dark:  #1D4ED8;        /* Secondary */
  --accent-rgb:   37,99,235;

  /* ── Accent cam — Flash Sale / Sale% / CTA nổi bật ── */
  --warn:         #F59E0B;
  --warn-light:   #FEF3C7;
  --warn-dark:    #D97706;
  --warn-rgb:     245,158,11;

  /* ── Nền tối cho Hero/Navbar overlay ── */
  --dark:         #0F172A;

  /* ── Màu phụ ── */
  --green:        #22C55E;
  --green-light:  #EAF5EF;
  --amber:        #B45309;
  --amber-light:  #FEF3C7;
  --red:          #EF4444;
  --red-light:    #FEE2E2;
  --blue:         #1D4ED8;
  --blue-light:   #EFF6FF;

  /* ── Đường viền ── */
  --border:       #E5E7EB;
  --border-soft:  #F3F4F6;

  /* ── Shadow ── */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 20px 48px rgba(0,0,0,.13);
  --shadow-xl: 0 40px 80px rgba(0,0,0,.16);

  /* ── Bo góc (giữ nguyên) ── */
  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-2xl:  28px;
  --r-full: 9999px;

  /* ── Font: đổi sang Roboto ── */
  --font-display: 'Roboto', -apple-system, sans-serif;
  --font-body:    'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-io:  cubic-bezier(.4,0,.2,1);
  --t: .2s var(--ease-io);

  --nav-h: 68px;
}

/* ── RESET ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-size: 15px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: var(--font-body); background: none; }
input, select, textarea { font-family: var(--font-body); outline: none; }
ul, ol { list-style: none; }

/* ── SCROLLBAR ──────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* ── LAYOUT ─────────────────────────────── */
.container    { max-width: 1320px; margin: 0 auto; padding: 0 28px; }
.container-sm { max-width: 860px;  margin: 0 auto; padding: 0 28px; }
.container-md { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.section      { padding: 60px 0; }
.section-sm   { padding: 52px 0; }
.pt-nav       { padding-top: var(--nav-h); }

/* ── TYPOGRAPHY ─────────────────────────── */
.display-1 { font-family: var(--font-display); font-size: clamp(36px,5.5vw,72px); font-weight: 700; line-height: 1.06; letter-spacing: -1.5px; }
.display-2 { font-family: var(--font-display); font-size: clamp(26px,4vw,48px);   font-weight: 700; line-height: 1.1;  letter-spacing: -1px; }
.h1 { font-family: var(--font-display); font-size: clamp(20px,3vw,32px); font-weight: 700; line-height: 1.2; letter-spacing: -.4px; }
.h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.3; }
.h3 { font-size: 17px; font-weight: 600; line-height: 1.4; }
.label-xs { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.label-sm { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.body-sm  { font-size: 13px; line-height: 1.6; }
.body-xs  { font-size: 12px; }

/* ── NAVBAR ─────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  background: rgba(15, 23, 42, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: box-shadow var(--t);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }

.navbar__inner {
  height: 100%; max-width: 1320px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; gap: 20px;
}

.navbar__logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: #fff; white-space: nowrap; flex-shrink: 0;
}
.navbar__logo-mark { flex-shrink: 0; }
.navbar__logo-accent { color: var(--warn); }

.navbar__nav {
  display: flex; align-items: center; gap: 4px;
  flex: 1; justify-content: center;
}

.navbar__nav-link {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 13px; border-radius: 0;
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,.7);
  border-bottom: 2px solid transparent;
  transition: var(--t); white-space: nowrap;
}
.navbar__nav-link:hover, .navbar__nav-link.active { color: var(--warn); border-bottom-color: var(--warn); }

.navbar__dropdown { position: relative; }
.navbar__dropdown-menu {
  position: absolute; top: calc(100% + 1px); left: 0;
  min-width: 210px; background: var(--bg-alt);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 6px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .18s var(--ease-out); z-index: 100;
}
.navbar__dropdown:hover .navbar__dropdown-menu { opacity: 1; visibility: visible; transform: none; }

.navbar__dropdown-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: var(--r-xs);
  font-size: 13.5px; color: var(--ink-2); transition: var(--t);
}
.navbar__dropdown-link:hover { background: var(--surface); color: var(--accent); }
.navbar__dropdown-icon { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }

.navbar__search-wrap {
  display: flex; align-items: stretch; gap: 0;
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.14);
  border-radius: var(--r-sm);
  transition: var(--t); width: 240px;
}
.navbar__search-wrap:focus-within { border-color: var(--accent); width: 300px; }
.navbar__search-input { flex: 1; background: none; border: none; font-size: 13.5px; color: #fff; padding: 8px 12px; }
.navbar__search-input::placeholder { color: rgba(255,255,255,.4); }
.navbar__search-btn {
  display: flex; align-items: center; justify-content: center;
  padding: 0 14px; color: #fff; background: var(--accent); border: none; cursor: pointer;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.navbar__search-btn:hover { background: var(--accent-dark); }

.navbar__actions { display: flex; align-items: center; gap: 2px; }
.navbar__action-btn {
  position: relative; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-xs); color: rgba(255,255,255,.85);
  transition: var(--t);
}
.navbar__action-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.navbar__badge {
  position: absolute; top: 3px; right: 3px;
  min-width: 16px; height: 16px; padding: 0 3px;
  border-radius: var(--r-full); background: var(--warn); color: #fff;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--dark);
}

.navbar__user-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px 5px 5px; border-radius: var(--r-xs);
  color: #fff; font-size: 13px; font-weight: 500; transition: var(--t);
}
.navbar__user-btn:hover { background: rgba(255,255,255,.1); }
.navbar__user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}

.navbar__hamburger { display: none; padding: 6px; color: #fff; flex-direction: column; gap: 5px; }
.navbar__hamburger span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: var(--t); }

/* ── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 24px; border-radius: 12px;
  font-size: 14px; font-weight: 600; transition: var(--t);
  white-space: nowrap; cursor: pointer; border: none;
  font-family: var(--font-body);
}
.btn svg { flex-shrink: 0; }
.btn-primary   { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-accent    { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); box-shadow: 0 8px 24px rgba(var(--accent-rgb),.3); transform: translateY(-1px); }
.btn-outline   { border: 1.5px solid var(--border); color: var(--ink-2); background: transparent; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }
.btn-ghost     { background: var(--surface); color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger    { background: var(--red); color: #fff; }
.btn-danger:hover { filter: brightness(1.08); }
.btn-sm  { padding: 7px 16px; font-size: 13px; }
.btn-lg  { padding: 13px 28px; font-size: 15px; }
.btn-xl  { padding: 15px 36px; font-size: 16px; }
.btn-ico { width: 40px; height: 40px; padding: 0; border-radius: var(--r-md); }
.btn-ico-sm { width: 32px; height: 32px; padding: 0; border-radius: var(--r-sm); }
.btn-full { width: 100%; }

/* ── FORM ───────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; margin-bottom: 6px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .05em; color: var(--ink-3);
  text-transform: uppercase;
}
.form-control {
  width: 100%; padding: 10px 14px;
  background: var(--bg-alt); border: 1.5px solid var(--border);
  border-radius: var(--r-md); font-size: 14px; color: var(--ink);
  transition: var(--t);
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.1); }
.form-control::placeholder { color: var(--ink-muted); }
.form-control.is-error { border-color: var(--red); }
select.form-control {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6459' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
textarea.form-control { resize: vertical; min-height: 96px; }
.form-hint  { font-size: 12px; color: var(--ink-muted); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 4px; }
.input-with-icon { position: relative; }
.input-with-icon .form-control { padding-left: 40px; }
.input-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-muted); pointer-events: none; }

/* ── BADGES ─────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 600;
}
.badge-sale    { background: var(--red);    color: #fff; }
.badge-new     { background: var(--green);  color: #fff; }
.badge-hot     { background: var(--accent); color: #fff; }
.badge-best    { background: var(--ink);    color: #fff; }
.badge-success { background: var(--green-light); color: var(--green); }
.badge-warning { background: var(--amber-light); color: var(--amber); }
.badge-danger  { background: var(--red-light);   color: var(--red); }
.badge-info    { background: var(--accent-light); color: var(--accent); }
.badge-outline { border: 1.5px solid var(--border); color: var(--ink-3); }

/* ── STATUS ─────────────────────────────── */
.status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 600;
}
.status::before { content:''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.status-pending   { background: var(--amber-light); color: var(--amber); }
.status-pending::before   { background: var(--amber); }
.status-confirmed { background: var(--accent-light); color: var(--accent); }
.status-confirmed::before { background: var(--accent); }
.status-shipping  { background: var(--blue-light); color: var(--blue); }
.status-shipping::before  { background: var(--blue); }
.status-delivered { background: var(--green-light); color: var(--green); }
.status-delivered::before { background: var(--green); }
.status-cancelled { background: var(--red-light); color: var(--red); }
.status-cancelled::before { background: var(--red); }
.status-awaiting  { background: var(--blue-light); color: var(--blue); }
.status-awaiting::before  { background: var(--blue); }
.status-expired   { background: var(--red-light); color: var(--red); }
.status-expired::before   { background: var(--red); }

/* ── CARDS ──────────────────────────────── */
.card {
  background: var(--bg-alt); border: 1px solid var(--border-soft);
  border-radius: var(--r-xl); overflow: hidden; transition: var(--t);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ── PRODUCT CARD ───────────────────────── */
.product-card {
  background: var(--bg-alt); border: 1px solid var(--border-soft);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  transition: all .25s var(--ease-out); position: relative;
}
.product-card:hover { box-shadow: 0 12px 30px rgba(37,99,235,.18); transform: translateY(-6px); }
.product-card:hover .product-card__actions { opacity: 1; transform: translateY(0); }

.product-card__thumb {
  position: relative; overflow: hidden;
  background: var(--surface); aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
}
.product-card__img {
  width: 100%; height: 100%; object-fit: contain; padding: 24px;
  transition: transform .35s var(--ease-out); color: #C5C3BC;
}
.product-card:hover .product-card__img { transform: scale(1.04); }

.product-card__badges {
  position: absolute; top: 10px; left: 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.product-card__wish {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  transition: var(--t); cursor: pointer; color: var(--ink-muted);
  z-index: 10;
}
.product-card__wish:hover { color: var(--red); border-color: var(--red); background: var(--red-light); }
.product-card__wish.active { color: var(--red); border-color: var(--red); background: var(--red-light); }
.product-card__wish.active svg { fill: var(--red); }

.product-card__actions {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 8px; display: flex; gap: 6px;
  background: linear-gradient(to top, rgba(240,237,232,.96) 40%, transparent);
  opacity: 0; transform: translateY(4px); transition: all .2s var(--ease-out);
  z-index: 5;
}
.product-card__actions .btn { flex: 1; font-size: 12px; height: 34px; padding: 0 10px; border-radius: var(--r-md); }

.product-card__body { padding: 14px 16px 16px; }
.product-card__brand { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.product-card__name { font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }
.product-card__name a:hover { color: var(--accent); }
.product-card__rating { display: flex; align-items: center; gap: 5px; margin-bottom: 8px; }
.product-card__stars { display: flex; gap: 1px; color: #F59E0B; }
.product-card__count { font-size: 12px; color: var(--ink-muted); }
.product-card__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.product-card__price-current { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--ink); }
.product-card__price-old { font-size: 12px; color: var(--ink-muted); text-decoration: line-through; }

/* ── SECTION HEADER ─────────────────────── */
.section-header { margin-bottom: 40px; }
.section-header-center { text-align: center; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}
.section-eyebrow::before, .section-eyebrow::after { content:''; width: 18px; height: 1.5px; background: var(--accent); }
.section-title { font-family: var(--font-display); font-size: clamp(20px,2.5vw,28px); font-weight: 700; color: var(--ink); margin-bottom: 8px; letter-spacing: -.2px; }
.section-sub { font-size: 15px; color: var(--ink-3); max-width: 480px; }

/* ── BREADCRUMB ─────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; }
.breadcrumb a { font-size: 13px; color: var(--ink-muted); transition: var(--t); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { color: var(--border); font-size: 13px; }
.breadcrumb__current { font-size: 13px; color: var(--ink); font-weight: 500; }

/* ── QTY CONTROL ────────────────────────── */
.qty-ctrl { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.qty-ctrl__btn { width: 38px; height: 40px; background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--ink-2); transition: var(--t); border: none; cursor: pointer; }
.qty-ctrl__btn:hover { background: var(--surface-2); color: var(--ink); }
.qty-ctrl__input { width: 48px; height: 40px; text-align: center; border: none; border-left: 1.5px solid var(--border); border-right: 1.5px solid var(--border); font-size: 14px; font-weight: 600; color: var(--ink); font-family: var(--font-body); background: var(--bg-alt); }

/* ── TOAST ───────────────────────────────── */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 12px; pointer-events: all;
  padding: 13px 16px; border-radius: var(--r-lg);
  background: var(--ink); color: #fff;
  box-shadow: var(--shadow-xl); min-width: 270px; max-width: 360px;
  border-left: 3px solid var(--accent);
  animation: toastIn .3s var(--ease-out) both;
}
.toast--success { border-color: var(--green); }
.toast--error   { border-color: var(--red); }
.toast--info    { border-color: #60a5fa; }
.toast__icon { flex-shrink: 0; color: rgba(255,255,255,.7); }
.toast__msg  { flex: 1; font-size: 13.5px; font-weight: 500; }
.toast__close { opacity: .5; cursor: pointer; display: flex; transition: var(--t); }
.toast__close:hover { opacity: 1; }
@keyframes toastIn { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:none; } }

/* ── MODAL ───────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(24,22,20,.5); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: var(--t);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-alt); border-radius: var(--r-2xl);
  width: 100%; max-width: 520px; box-shadow: var(--shadow-xl);
  transform: scale(.97) translateY(10px); transition: transform .25s var(--ease-out); overflow: hidden;
}
.modal-overlay.open .modal { transform: none; }
.modal__head { padding: 22px 24px; border-bottom: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: space-between; }
.modal__title { font-size: 17px; font-weight: 700; }
.modal__close { width: 30px; height: 30px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; background: var(--surface); color: var(--ink-3); transition: var(--t); border: none; cursor: pointer; }
.modal__close:hover { background: var(--red-light); color: var(--red); }
.modal__body { padding: 24px; }

/* ── DIVIDER ─────────────────────────────── */
.divider { height: 1px; background: var(--border-soft); }
.divider-text { display: flex; align-items: center; gap: 12px; color: var(--ink-muted); font-size: 13px; }
.divider-text::before, .divider-text::after { content:''; flex: 1; height: 1px; background: var(--border); }

/* ── GRID ────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }

/* ── FILTER SIDEBAR ─────────────────────── */
.filter-card { background: var(--bg-alt); border: 1px solid var(--border-soft); border-radius: var(--r-xl); padding: 22px; position: sticky; top: calc(var(--nav-h) + 20px); }
.filter-section { margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--border-soft); }
.filter-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.filter-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.filter-title button { font-size: 11px; font-weight: 600; color: var(--accent); cursor: pointer; transition: var(--t); }
.filter-check { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.filter-check label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; color: var(--ink-2); }
.filter-check input { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }
.filter-count { font-size: 11px; color: var(--ink-muted); background: var(--surface); padding: 1px 7px; border-radius: var(--r-full); }

.price-range-wrap { padding: 4px 0; }
.price-display { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 10px; color: var(--ink); }
.range-track { position: relative; height: 3px; background: var(--border); border-radius: 99px; margin: 14px 0; }
.range-fill { position: absolute; height: 100%; background: var(--accent); border-radius: 99px; left: 0%; right: 20%; }
.range-input { position: absolute; width: 100%; height: 3px; top: 0; background: none; pointer-events: none; appearance: none; }
.range-input::-webkit-slider-thumb { width: 17px; height: 17px; border-radius: 50%; background: var(--bg-alt); border: 2px solid var(--accent); pointer-events: all; cursor: pointer; appearance: none; box-shadow: var(--shadow-sm); }

/* ── PROGRESS STEPS ─────────────────────── */
.order-steps { display: flex; align-items: flex-start; }
.order-step { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.order-step + .order-step::before { content:''; position: absolute; top: 16px; right: 50%; left: -50%; height: 2px; background: var(--border-soft); }
.order-step.done + .order-step::before { background: var(--accent); }
.order-step__dot { width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; color: var(--ink-muted); transition: var(--t); }
.order-step.done  .order-step__dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.order-step.active .order-step__dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.order-step__label { font-size: 11px; font-weight: 500; color: var(--ink-muted); margin-top: 6px; }
.order-step.done .order-step__label, .order-step.active .order-step__label { color: var(--ink); font-weight: 600; }

/* ── SKELETON ───────────────────────────── */
.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 400%; animation: shimmer 1.4s ease infinite; border-radius: var(--r-md); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── PAGINATION ─────────────────────────── */
.pagination { display: flex; align-items: center; gap: 4px; justify-content: center; margin-top: 48px; }
.page-btn { width: 36px; height: 36px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; background: var(--bg-alt); border: 1.5px solid var(--border-soft); font-size: 13px; font-weight: 600; color: var(--ink-2); transition: var(--t); cursor: pointer; }
.page-btn:hover { border-color: var(--ink); color: var(--ink); }
.page-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ── AUTH ───────────────────────────────── */
.auth-wrap { min-height: 100vh; display: flex; align-items: stretch; background: var(--bg); }
.auth-side { width: 48%; background: var(--ink); display: flex; flex-direction: column; justify-content: flex-end; padding: 56px; position: relative; overflow: hidden; }
.auth-side__bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 60%, rgba(200,82,42,.25) 0%, transparent 60%); }
.auth-side__content { position: relative; z-index: 1; }
.auth-side__logo { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 48px; }
.auth-side__logo span { color: var(--accent); }
.auth-side__title { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 16px; letter-spacing: -.3px; }
.auth-side__sub { font-size: 15px; color: rgba(255,255,255,.55); line-height: 1.7; }
.auth-form-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 56px; overflow-y: auto; }
.auth-form-inner { width: 100%; max-width: 420px; }
.auth-title { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.auth-sub { font-size: 14px; color: var(--ink-3); margin-bottom: 32px; }

/* ── FOOTER ──────────────────────────────── */
.footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 60px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; margin-bottom: 48px; }
.footer__logo { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer__logo span { color: var(--accent); }
.footer__desc { font-size: 13.5px; line-height: 1.8; margin-bottom: 22px; }
.footer__socials { display: flex; gap: 8px; }
.footer__social { width: 34px; height: 34px; border-radius: var(--r-md); border: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); transition: var(--t); }
.footer__social:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.footer__col-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 16px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__link { font-size: 13.5px; color: rgba(255,255,255,.55); transition: var(--t); }
.footer__link:hover { color: #fff; }
.footer__newsletter p { font-size: 13.5px; margin-bottom: 10px; }
.footer__nl-form { display: flex; gap: 6px; }
.footer__nl-input { flex: 1; padding: 9px 14px; border-radius: var(--r-md); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #fff; font-size: 13px; font-family: var(--font-body); }
.footer__nl-input::placeholder { color: rgba(255,255,255,.3); }
.footer__nl-input:focus { border-color: rgba(255,255,255,.3); outline: none; }
.footer__nl-btn { padding: 9px 16px; background: var(--accent); color: #fff; border-radius: var(--r-md); font-size: 13px; font-weight: 600; cursor: pointer; border: none; transition: var(--t); }
.footer__nl-btn:hover { background: var(--accent-dark); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer__copy { font-size: 12.5px; }
.footer__payments { display: flex; gap: 5px; }
.footer__pay { padding: 3px 9px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 4px; font-size: 10px; font-weight: 700; color: rgba(255,255,255,.7); }

/* ── UTILITY ─────────────────────────────── */
.text-accent   { color: var(--accent); }
.text-muted    { color: var(--ink-muted); }
.text-green    { color: var(--green); }
.text-red      { color: var(--red); }
.text-center   { text-align: center; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.gap-4  { gap: 4px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
@keyframes fadeIn  { from { opacity:0 } to { opacity:1 } }
@keyframes slideUp { from { opacity:0; transform:translateY(16px) } to { opacity:1; transform:none } }

/* ── SHOP LAYOUT ─────────────────────────── */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(3,1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 1024px) {
  .navbar__nav, .navbar__search-wrap { display: none; }
  .navbar__hamburger { display: flex; }
  .shop-layout { grid-template-columns: 1fr; }
  .filter-card { position: static; }
  .auth-side { display: none; }
  .auth-form-wrap { padding: 40px 24px; }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .navbar__inner { padding: 0 16px; }
  .grid-2 { grid-template-columns: repeat(2,1fr); }
}
body.nav-open .navbar__nav {
  display: flex; flex-direction: column; align-items: flex-start;
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--dark); padding: 20px 16px; overflow-y: auto; z-index: 800;
  border-top: 1px solid var(--border-soft); animation: fadeIn .15s ease;
}
body.nav-open .navbar__nav .navbar__nav-link { font-size: 17px; padding: 12px 14px; width: 100%; }

@media(max-width:768px) {
  .banner-grid { grid-template-columns: 1fr !important; }
  footer [style*="grid-template-columns:2fr"] {
    grid-template-columns: 1fr 1fr !important;
  }
}


 /* ── Gợi ý tìm kiếm trực tiếp (autocomplete) ─────────────────────── */
        .navbar__search-suggest {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            right: 0;
            background: #fff;
            border: 1px solid #e8e6e1;
            border-radius: 12px;
            box-shadow: 0 16px 32px rgba(0, 0, 0, .14);
            max-height: 380px;
            overflow-y: auto;
            z-index: 60;
        }

        .navbar__search-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 12px;
            text-decoration: none;
            color: inherit;
        }

        .navbar__search-item:hover,
        .navbar__search-item.is-active {
            background: #f6f5f2;
        }

        .navbar__search-item img {
            width: 38px;
            height: 38px;
            object-fit: contain;
            border-radius: 8px;
            background: #fafaf8;
            flex-shrink: 0;
        }

        .navbar__search-item-name {
            font-size: 13px;
            font-weight: 500;
            line-height: 1.3;
        }

        .navbar__search-item-price {
            font-size: 12px;
            color: #2563EB;
            margin-top: 2px;
        }

        .navbar__search-empty,
        .navbar__search-loading {
            padding: 14px 12px;
            font-size: 13px;
            color: #999;
            text-align: center;
        }

        