/* v3 — Modern redesign inspired by classic sim shop layout */
:root {
  --navy: #0c1222;
  --navy-2: #151d32;
  --navy-3: #1e2942;
  --gold: #f59e0b;
  --gold-dark: #d97706;
  --gold-soft: #fef3c7;
  --bg: #eef1f6;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-light: #f1f5f9;
  --text: #1e293b;
  --muted: #64748b;
  --num: #dc2626;
  --num-hover: #b91c1c;
  --viettel: #e11d48;
  --mobi: #059669;
  --vina: #2563eb;
  --zalo: #0068ff;
  --fb: #1877f2;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(12, 18, 34, 0.04), 0 4px 16px rgba(12, 18, 34, 0.06);
  --shadow-hover: 0 8px 24px rgba(12, 18, 34, 0.1);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --sidebar: 220px;
  --rightbar: 260px;
  --header-stack: 110px;
  --ease: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  padding-bottom: 2rem;
  overflow-x: hidden;
}

.container {
  width: min(1280px, 100% - 1.25rem);
  max-width: 100%;
  margin-inline: auto;
}

.main-col {
  min-width: 0;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

.mob-nav { display: none; }

/* ========== TOPBAR ========== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--navy);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  color: #fff;
}

.logo__text {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.logo__text strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.04em;
}

/* —— Modern search —— */
.search-wrap {
  position: relative;
  flex: 1;
  max-width: 460px;
  margin: 0 auto;
  z-index: 210;
}

.search-bar__field {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem 0.28rem 0.2rem 0.15rem;
  background: #fff;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 4px 16px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.search-wrap.is-focus .search-bar__field {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow:
    0 0 0 3px rgba(245, 158, 11, 0.12),
    0 6px 20px rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
}

.search-bar__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: #94a3b8;
}

.search-bar__icon svg {
  width: 17px;
  height: 17px;
}

.search-wrap.is-focus .search-bar__icon { color: var(--gold-dark); }

.search-bar input[type="search"] {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  padding: 0.35rem 0;
}

.search-bar input::placeholder {
  color: #94a3b8;
  font-weight: 400;
  font-size: 0.8rem;
}

.search-bar input::-webkit-search-cancel-button { display: none; }

.search-bar__clear {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--muted);
  background: var(--border-light);
  transition: var(--ease);
}

.search-bar__clear:hover {
  background: #e2e8f0;
  color: var(--text);
}

.search-bar__network {
  flex-shrink: 0;
  max-width: 88px;
  padding: 0.32rem 1.45rem 0.32rem 0.55rem;
  margin-right: 0.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  background: #f1f5f9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.35rem center;
  border: none;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  appearance: none;
  transition: var(--ease);
}

.search-bar__network:hover,
.search-bar__network:focus {
  background-color: #e2e8f0;
  color: var(--text);
}

.search-bar__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 0.42rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3);
  transition: transform var(--ease), box-shadow var(--ease), filter var(--ease);
}

.search-bar__submit svg { display: none; }

.search-bar__submit:hover {
  filter: brightness(1.06);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.45);
}

.search-bar__submit:active { transform: scale(0.97); }

/* Dropdown gợi ý */
.search-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  padding: 0.85rem 1rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(12, 18, 34, 0.14);
  animation: panelIn 0.2s ease;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-panel__label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.search-panel__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.search-tag {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--border-light);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: var(--ease);
}

.search-tag:hover {
  background: var(--gold-soft);
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--gold-dark);
}

.search-panel__hint {
  margin-top: 0.65rem;
  font-size: 0.7rem;
  color: #94a3b8;
}

.topbar__contact {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.85rem;
  border-radius: 12px;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease);
}

.contact-pill:hover { transform: translateY(-1px); }

.contact-pill__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.9;
}

.contact-pill__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  min-width: 0;
}

.contact-pill__label {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
  line-height: 1;
}

.contact-pill strong {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

/* Giỏ — icon tròn + badge */
.contact-pill--cart {
  position: relative;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.contact-pill--cart:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.contact-pill__badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  color: var(--navy);
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  border: 2px solid var(--navy);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.45);
}

.contact-pill--outline {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  backdrop-filter: blur(8px);
}

.contact-pill--outline .contact-pill__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fbbf24;
}

.contact-pill--outline:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.contact-pill--gold {
  padding: 0.5rem 0.95rem;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 45%, #ea580c 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 3px 14px rgba(234, 88, 12, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.contact-pill--gold .contact-pill__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.contact-pill--gold strong { color: #fff; }

.contact-pill--gold .contact-pill__label { color: rgba(255, 255, 255, 0.88); }

.contact-pill--gold:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--ease);
}

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

.btn--gold {
  padding: 0.55rem 1.1rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  font-size: 0.85rem;
  white-space: nowrap;
}

.btn--gold:hover { filter: brightness(1.05); box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4); }

.btn--outline {
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-sm);
}

.btn--outline:hover { border-color: var(--gold); color: var(--gold-dark); }

.btn--block { width: 100%; padding: 0.75rem; }

.btn--cart {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: var(--ease);
}

.btn--cart:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(245, 158, 11, 0.4);
}

.btn--cart:hover { background: rgba(255, 255, 255, 0.14); }

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--gold);
  color: var(--navy);
  border-radius: 99px;
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.menu-btn span {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

/* Navbar */
.navbar {
  background: linear-gradient(180deg, var(--navy-2) 0%, #121a2e 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.5rem 0;
}

.navbar__inner::-webkit-scrollbar { display: none; }

.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0.35rem;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-link:hover::after {
  width: 40%;
}

.nav-link.is-active {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(234, 88, 12, 0.35);
}

.nav-link.is-active::after {
  display: none;
}

.nav-link--news {
  color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-link--news:hover {
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--gold);
  background: rgba(245, 158, 11, 0.08);
}

.nav-link--news::after { display: none; }

/* ========== LAYOUT ========== */
.layout {
  padding: 1rem 0;
}

.layout__grid {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr var(--rightbar);
  gap: 1rem;
  align-items: start;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ========== SIDEBAR ========== */
.panel {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.panel__title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  background: linear-gradient(90deg, var(--gold-soft), #fff);
  border-bottom: 1px solid var(--border);
}

.panel__title svg { color: var(--gold-dark); flex-shrink: 0; }

.side-list { padding: 0.35rem 0; }

.side-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  transition: var(--ease);
}

.side-link:hover {
  background: var(--border-light);
  color: var(--gold-dark);
}

.side-link.is-active {
  background: rgba(245, 158, 11, 0.12);
  color: var(--gold-dark);
  font-weight: 600;
  border-right: 3px solid var(--gold);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot--all { background: linear-gradient(135deg, var(--viettel), var(--mobi), var(--vina)); }
.dot--vt { background: var(--viettel); }
.dot--mobi { background: var(--mobi); }
.dot--vina { background: var(--vina); }
.dot--gm { background: #7c3aed; }
.dot--vn { background: #0891b2; }

.panel--banner {
  padding: 0.85rem;
  background: linear-gradient(135deg, var(--navy-3), var(--navy));
  border: none;
  color: #fff;
  text-align: center;
}

.banner-text { font-size: 0.85rem; margin-bottom: 0.5rem; }
.banner-text strong { color: var(--gold); }
.banner-code {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--gold);
  color: var(--navy);
  border-radius: 6px;
}

/* ========== MAIN COLUMN ========== */
.intro {
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

.intro strong { color: var(--text); }

.carriers {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.carrier {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--border);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--border-light);
  transition: var(--ease);
}

.carrier img { width: 36px; height: 36px; object-fit: contain; }

.carrier__fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
}

.carrier__fallback--vt { display: flex; background: var(--viettel); }
.carrier__fallback--mobi { display: flex; background: var(--mobi); }
.carrier__fallback--vina { display: flex; background: var(--vina); }

.carrier__all {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
}

.carrier:hover { border-color: var(--gold); transform: scale(1.05); }

.carrier.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

.type-scroll {
  margin-bottom: 0.75rem;
  padding: 0.5rem;
}

.type-scroll__inner {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 0.15rem;
}

.type-chip {
  flex-shrink: 0;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--border-light);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: var(--ease);
}

.type-chip:hover {
  color: var(--text);
  border-color: var(--border);
}

.type-chip.is-active {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}

.listing-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.listing-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.listing-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.sort-select {
  padding: 0.4rem 0.65rem;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
}

/* SIM Grid — card ngang gọn (ảnh 2) */
.sim-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.sim-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
  min-height: 64px;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
  animation: fadeIn 0.35s ease backwards;
}

.sim-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.sim-card:active {
  transform: scale(0.99);
  background: #fafbfc;
}

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

/* Vòng tròn logo mạng — viền màu, nền trắng */
.sim-card__ring {
  flex-shrink: 0;
  width: auto;
  height: 34px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong, #cbd5e1);
  background: #fff;
  display: grid;
  place-items: center;
  padding: 0 0.4rem;
}

.sim-card__brand {
  font-size: 0.46rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.sim-card__ring--viettel { border-color: var(--viettel); }
.sim-card__ring--mobifone { border-color: var(--mobi); }
.sim-card__ring--vinaphone { border-color: var(--vina); }
.sim-card__ring--gmobile { border-color: #7c3aed; }
.sim-card__ring--vietnamobile { border-color: #0891b2; }

.sim-card__ring--viettel .sim-card__brand { color: var(--viettel); }
.sim-card__ring--mobifone .sim-card__brand { color: var(--mobi); }
.sim-card__ring--vinaphone .sim-card__brand { color: var(--vina); }
.sim-card__ring--gmobile .sim-card__brand { color: #7c3aed; }
.sim-card__ring--vietnamobile .sim-card__brand { color: #0891b2; }

.sim-card__info {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}

.sim-card__number {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e3a8a;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sim-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  margin-top: 0.1rem;
}

.sim-card__price s {
  font-size: 0.65rem;
  font-weight: 400;
  color: #94a3b8;
  text-decoration: line-through;
}

.sim-card__price span {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ea580c;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

.load-wrap { text-align: center; margin-top: 1.25rem; }

/* ========== RIGHT SIDEBAR ========== */
.panel--support .panel__title { background: linear-gradient(90deg, #dbeafe, #fff); }

.support-phones {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem 0;
}

.panel--support .support-phones:last-child {
  padding-bottom: 0.85rem;
}

.phone-tag {
  display: block;
  padding: 0.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--gold-soft);
  color: var(--navy);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 158, 11, 0.3);
  transition: var(--ease);
}

.phone-tag:hover { background: var(--gold); }

.support-btns {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem 0.85rem;
}

.btn--zalo {
  padding: 0.55rem;
  background: var(--zalo);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.btn--fb {
  padding: 0.55rem;
  background: var(--fb);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.news-list { padding: 0.35rem 0; }

.news-item {
  display: flex;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  transition: background var(--ease);
}

.news-item:hover { background: var(--border-light); }

.news-item__thumb {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
}

.news-item__title {
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
}

.panel--bank .bank-info {
  padding: 0.65rem 0.85rem 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

.bank-info strong { color: var(--text); }

.bank-info code {
  font-weight: 700;
  color: var(--navy);
  background: var(--border-light);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.bank-note { font-size: 0.72rem; margin-top: 0.35rem; font-style: italic; }

/* ========== FLOAT CHAT ========== */
.float-chat {
  position: fixed;
  left: 1rem;
  bottom: 1.25rem;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.float-btn {
  padding: 0.5rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-hover);
  transition: transform var(--ease);
}

.float-btn:hover { transform: scale(1.05); }
.float-btn--zalo { background: var(--zalo); }
.float-btn--fb { background: var(--fb); }

/* ========== FOOTER ========== */
.footer {
  margin-top: 2rem;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
}

.footer__main {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem 1.5rem;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  color: #fff;
}

.footer__logo-text {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.25;
}

.footer__logo-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.footer__desc {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  max-width: 280px;
  margin-bottom: 1rem;
}

.footer__social {
  display: flex;
  gap: 0.5rem;
}

.footer__social-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  transition: transform 0.2s, opacity 0.2s;
}

.footer__social-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.footer__social-btn--zalo { background: var(--zalo); }
.footer__social-btn--fb { background: var(--fb); }
.footer__social-btn--tel {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer__title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer__links a {
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s, padding-left 0.2s;
}

.footer__links a:hover {
  color: #fff;
  padding-left: 0.25rem;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.footer__contact-ico {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--gold);
}

.footer__contact-ico svg {
  width: 16px;
  height: 16px;
}

.footer__contact li div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.82rem;
}

.footer__contact strong {
  color: #fff;
  font-weight: 600;
}

.footer__contact span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer__contact a {
  color: inherit;
}

.footer__contact a:hover strong {
  color: var(--gold);
}

.footer__bottom {
  padding: 1rem 0;
  background: rgba(0, 0, 0, 0.2);
}

.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer__copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer__copy strong {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.footer__payments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.footer__pay {
  padding: 0.25rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: span 2;
  }
}

@media (max-width: 540px) {
  .footer__main {
    padding: 1.75rem 0 1.5rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__desc {
    max-width: none;
  }

  .footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========== DRAWER & TOAST ========== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 18, 34, 0.5);
  z-index: 300;
  backdrop-filter: blur(2px);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 100%);
  height: 100%;
  background: var(--surface);
  z-index: 301;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
}

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

.drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--navy);
  color: #fff;
}

.drawer__head h3 { font-size: 1rem; }
.drawer__head button { font-size: 1.5rem; color: rgba(255,255,255,0.7); line-height: 1; }
.drawer__body { flex: 1; overflow-y: auto; padding: 0 1.25rem; }
.drawer__foot { padding: 1rem 1.25rem; border-top: 1px solid var(--border); }
.drawer__total { display: flex; justify-content: space-between; margin-bottom: 0.75rem; }
.drawer__total strong { color: var(--gold-dark); font-size: 1.1rem; }

.cart-line {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
}

.cart-line__num { font-weight: 700; color: var(--num); }
.cart-line__meta { font-size: 0.72rem; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 2rem 0; }

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 0.65rem 1.25rem;
  background: var(--navy);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  z-index: 400;
  box-shadow: var(--shadow-hover);
  transition: transform 0.3s ease;
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .layout__grid {
    grid-template-columns: var(--sidebar) 1fr;
  }
  .sidebar--right { display: none; }
  .sim-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .contact-pill--outline { display: none; }
  .contact-pill--cart,
  .contact-pill--gold { display: inline-flex; }
  .contact-pill--gold {
    padding: 0.4rem 0.7rem;
    gap: 0.4rem;
  }
  .contact-pill--gold .contact-pill__body { display: none; }
  .contact-pill--gold .contact-pill__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .menu-btn { display: flex; }

  /* Header 2 hàng: logo + nút | thanh tìm full width */
  .topbar__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo actions"
      "search search";
    align-items: center;
    gap: 0.55rem 0.65rem;
    padding: 0.55rem 0 0.65rem;
  }

  .logo {
    grid-area: logo;
    min-width: 0;
  }

  .logo__text {
    font-size: 0.88rem;
  }

  .logo__text strong {
    font-size: 0.95rem;
  }

  .topbar__contact {
    grid-area: actions;
    gap: 0.4rem;
  }

  .search-wrap {
    grid-area: search;
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    z-index: 1;
  }

  .search-bar__field {
    padding: 0.15rem 0.2rem 0.15rem 0.08rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .search-wrap.is-focus .search-bar__field {
    transform: none;
  }

  .search-bar__icon {
    width: 34px;
    height: 34px;
  }

  .search-bar__icon svg {
    width: 17px;
    height: 17px;
  }

  .search-bar input[type="search"] {
    font-size: 0.85rem;
    padding: 0.4rem 0;
  }

  .search-bar__network { display: none; }

  .search-bar__submit span { display: none; }
  .search-bar__submit svg { display: block; }
  .search-bar__submit {
    padding: 0.5rem 0.6rem;
    min-width: 40px;
  }

  .search-panel {
    left: 0;
    right: 0;
  }

  .navbar { display: none; }

  .mob-nav {
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.5rem 0.75rem 0.75rem;
    background: var(--navy-2);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .mob-nav.is-open {
    display: flex;
  }

  .mob-nav a {
    padding: 0.65rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-sm);
  }

  .mob-nav a:hover,
  .mob-nav a.is-active {
    color: #fff;
    background: rgba(245, 158, 11, 0.15);
  }

  .mob-nav__tel {
    margin-top: 0.35rem;
    text-align: center;
    color: var(--gold) !important;
    background: rgba(245, 158, 11, 0.1) !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    font-size: 0.85rem !important;
  }

  .container {
    width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .layout {
    padding: 0.75rem 0 1.5rem;
    overflow-x: hidden;
  }

  .layout__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
    width: 100%;
  }

  /* Sidebar mobile: xếp dọc, lọc dạng chip ngang */
  .sidebar--left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
  }

  .sidebar--left .panel {
    margin-bottom: 0;
    min-width: 0;
    width: 100%;
  }

  .sidebar--left .panel--banner {
    order: 10;
  }

  .panel__title {
    font-size: 0.68rem;
    padding: 0.45rem 0.65rem;
  }

  .sidebar--left .side-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    overflow-x: auto;
    padding: 0.5rem 0.65rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .sidebar--left .side-list::-webkit-scrollbar {
    display: none;
  }

  .sidebar--left .side-link {
    flex-shrink: 0;
    width: auto;
    padding: 0.35rem 0.7rem;
    font-size: 0.72rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    white-space: nowrap;
  }

  .sidebar--left .side-link.is-active {
    border-right: none;
    border-color: var(--gold);
  }

  .sidebar--left .dot {
    width: 6px;
    height: 6px;
  }

  .intro {
    padding: 0.65rem 0.85rem;
    font-size: 0.8rem;
  }

  .carriers {
    justify-content: center;
    padding: 0.65rem;
    gap: 0.5rem;
  }

  .carrier {
    width: 44px;
    height: 44px;
  }

  .type-scroll {
    padding: 0.4rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
  }

  .type-scroll__inner {
    padding-bottom: 0.2rem;
  }

  .listing-head {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0;
    margin-bottom: 0.5rem;
  }

  .listing-title {
    font-size: 1rem;
  }

  .listing-meta {
    font-size: 0.72rem;
  }

  .sort-select {
    width: 100%;
    max-width: 100%;
  }

  .sim-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
  }

  .sim-card {
    min-width: 0;
  }

  .float-chat {
    left: auto;
    right: 0.75rem;
    flex-direction: row;
    bottom: 1rem;
  }

  .search-bar input[type="search"]::placeholder {
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .logo__text { font-size: 0.85rem; }

  .sim-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Mobile filter drawer toggle — optional class */
.sidebar--left.is-collapsed { display: none; }
