/* ============================================================
   MeeTech (meetech.net) — Smart Home & Tech Storefront
   ============================================================ */

:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --text: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;

  --brand-red: #ff1e2d;
  --shopee: #ee4d2d;
  --shopee-hover: #d73211;
  --shopee-soft: #fff1ee;

  --zalo: #0068ff;
  --zalo-hover: #0054d1;
  --zalo-soft: #eef5ff;

  --dark: #111827;
  --dark-hover: #1f2937;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.05);
  --shadow-md: 0 6px 20px rgba(17, 24, 39, 0.07);
  --shadow-lg: 0 18px 44px rgba(17, 24, 39, 0.14);

  --font: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container: 1240px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

.icon-sm {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.icon-md {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================================
   Top Announcement Bar & Zalo Image Buttons
   ============================================================ */
.topbar {
  background: var(--dark);
  color: #e5e7eb;
  font-size: 12.5px;
  padding: 6px 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-badges .dot {
  opacity: 0.5;
}

.zalo-img-link {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.15s ease;
}

.zalo-img-link:hover {
  opacity: 0.88;
}

.zalo-topbar-img {
  height: 22px;
  width: auto;
}

.zalo-img-btn {
  display: inline-flex;
  align-items: center;
  border-radius: 11px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.zalo-img-btn img {
  height: 44px;
  width: auto;
}

.zalo-img-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 104, 255, 0.18);
}

/* ============================================================
   Header
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-wordmark {
  height: 26px;
  width: auto;
  object-fit: contain;
}

.search-wrap {
  position: relative;
  flex: 1;
  max-width: 520px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 42px;
  padding: 0 38px 0 42px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(255, 30, 45, 0.12);
}

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

.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: none;
  background: #e2e8f0;
  color: var(--text-secondary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-clear svg {
  width: 14px;
  height: 14px;
}

.search-clear[hidden] {
  display: none;
}

.header-actions,
.header-product-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13.5px;
  border-radius: 9px;
}

.btn-lg {
  padding: 13px 22px;
  font-size: 15px;
  border-radius: 12px;
}

.btn-block {
  width: 100%;
}

.btn-shopee {
  background: var(--shopee);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(238, 77, 45, 0.24);
}

.btn-shopee:hover {
  background: var(--shopee-hover);
  box-shadow: 0 6px 16px rgba(238, 77, 45, 0.32);
}

.btn-dark {
  background: var(--dark);
  color: #ffffff;
}

.btn-dark:hover {
  background: var(--dark-hover);
}

.btn-zalo-outline {
  background: var(--surface);
  color: var(--zalo);
  border-color: rgba(0, 104, 255, 0.35);
}

.btn-zalo-outline:hover {
  background: var(--zalo-soft);
  border-color: var(--zalo);
}

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

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

.btn-outline-more {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border-strong);
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
}

.btn-outline-more:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
  background: #fff5f5;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  background: radial-gradient(circle at top right, #ffe8ea 0%, #ffffff 48%, #f8fafc 100%);
  border-bottom: 1px solid var(--border);
  padding: 34px 0 38px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 32px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #fff0f1;
  color: var(--brand-red);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 14px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-red);
  box-shadow: 0 0 0 4px rgba(255, 30, 45, 0.16);
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--text);
}

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

.hero-desc {
  margin: 0 0 22px;
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 580px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 21px;
  height: 21px;
}

.stat-icon-orange {
  background: var(--shopee-soft);
  color: var(--shopee);
}

.stat-icon-blue {
  background: var(--zalo-soft);
  color: var(--zalo);
}

.stat-icon-green {
  background: #ecfdf5;
  color: #059669;
}

.stat-card strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.stat-card p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ============================================================
   Category Tabs & Filter Bar
   ============================================================ */
.catalog-nav-wrap {
  padding: 20px 0 8px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 15px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.cat-tab:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.cat-tab.active {
  background: var(--dark);
  border-color: var(--dark);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.cat-count {
  font-size: 11.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-muted);
}

.cat-tab.active .cat-count {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* ============================================================
   Custom Product-Driven Category Banners
   ============================================================ */
.sections-container {
  padding: 12px 0 56px;
}

.sections-container[hidden],
.catalog-section[hidden] {
  display: none;
}

.category-block {
  padding: 18px 0 34px;
}

.category-banner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px 32px;
  border-radius: var(--radius-xl);
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.category-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.18), transparent 55%);
  pointer-events: none;
}

.theme-rose {
  background: linear-gradient(135deg, #be123c 0%, #e11d48 52%, #fb7185 100%);
}

.theme-amber {
  background: linear-gradient(135deg, #78350f 0%, #b45309 55%, #d97706 100%);
}

.theme-emerald {
  background: linear-gradient(135deg, #065f46 0%, #047857 52%, #10b981 100%);
}

.theme-indigo {
  background: linear-gradient(135deg, #312e81 0%, #4338ca 52%, #6366f1 100%);
}

.theme-slate {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #334155 100%);
}

.theme-cyan {
  background: linear-gradient(135deg, #164e63 0%, #0e7490 55%, #06b6d4 100%);
}

.banner-content {
  position: relative;
  z-index: 2;
}

.banner-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  margin-bottom: 10px;
}

.banner-title {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.banner-tagline {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
}

.banner-desc {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.86);
  max-width: 520px;
}

.banner-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.banner-brand-tag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.banner-btn-primary {
  background: #ffffff;
  color: var(--dark);
  padding: 9px 16px;
  font-size: 13.5px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.banner-btn-primary:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

/* Dynamic 3-product collage inside banner */
.banner-collage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: center;
}

.banner-product-tile {
  position: relative;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.85);
  transition: transform 0.2s ease;
}

.banner-product-tile:hover {
  transform: translateY(-5px) scale(1.03);
}

.banner-product-tile.tile-1 {
  transform: translateY(-8px);
}

.banner-product-tile.tile-1:hover {
  transform: translateY(-13px) scale(1.03);
}

.banner-product-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-caption {
  position: absolute;
  left: 6px;
  bottom: 6px;
  background: rgba(17, 24, 39, 0.78);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.category-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

/* ============================================================
   Filtered View & Subfilter Bar
   ============================================================ */
.catalog-section {
  padding: 14px 0 64px;
}

.subfilter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 16px 0 20px;
  flex-wrap: wrap;
}

.brand-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.brand-chip {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.14s ease;
}

.brand-chip:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.brand-chip.active {
  background: #fff0f1;
  border-color: var(--brand-red);
  color: var(--brand-red);
  font-weight: 600;
}

.catalog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.result-count {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.sort-select {
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

/* ============================================================
   Product Grid & Cards
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d1d5db;
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid #f1f5f9;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .card-media img {
  transform: scale(1.04);
}

.card-badges {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 6px;
  pointer-events: none;
}

.card-brand-pill {
  background: rgba(17, 24, 39, 0.78);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.card-var-pill {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.card-body {
  padding: 13px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.42;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.card-title a:hover {
  color: var(--shopee);
}

.card-variants-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 22px;
}

.var-mini-tag {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--surface-muted);
  padding: 2px 7px;
  border-radius: 5px;
  max-width: 115px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-footer {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-cta {
  width: 100%;
  padding: 9px 10px;
  font-size: 12.5px;
  border-radius: 9px;
}

.card-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.14s ease;
}

.card-detail-btn:hover {
  background: var(--surface-muted);
  color: var(--text);
}

/* Skeleton & Empty State */
.skeleton-card {
  height: 360px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, #eceff3 25%, #f5f7fa 50%, #eceff3 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

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

.empty-state {
  text-align: center;
  padding: 56px 20px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

.empty-state[hidden] {
  display: none;
}

.empty-state svg {
  width: 44px;
  height: 44px;
  color: var(--text-muted);
  margin: 0 auto 12px;
}

.empty-state h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.empty-state p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ============================================================
   Product Landing Page (product.html)
   ============================================================ */
.breadcrumb-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb-inner a:hover {
  color: var(--brand-red);
}

.bc-current {
  color: var(--text);
  font-weight: 500;
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-loading {
  padding: 32px 16px;
}

.lp-hero-section {
  padding: 24px 0 16px;
}

.lp-hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 32px;
  box-shadow: var(--shadow-sm);
}

.lp-main-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery-nav:hover {
  background: #ffffff;
}

.gallery-nav svg {
  width: 18px;
  height: 18px;
}

.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

.gallery-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(17, 24, 39, 0.72);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}

.lp-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.lp-thumb {
  width: 66px;
  height: 66px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 2px solid var(--border);
  overflow: hidden;
  padding: 0;
  background: #ffffff;
  cursor: pointer;
}

.lp-thumb.active {
  border-color: var(--brand-red);
}

.lp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.badge-brand {
  background: var(--dark);
  color: #ffffff;
}

.badge-cat {
  background: var(--surface-muted);
  color: var(--text-secondary);
}

.badge-cat:hover {
  background: #e5e7eb;
}

.lp-title {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.015em;
}

.lp-sku {
  margin: -6px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.lp-variations[hidden] {
  display: none;
}

.modal-var-header {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.lp-var-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 185px;
  overflow-y: auto;
}

.var-option-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.14s ease;
}

.var-option-btn:hover {
  border-color: var(--shopee);
}

.var-option-btn.active {
  border-color: var(--shopee);
  background: var(--shopee-soft);
  color: var(--shopee);
  font-weight: 600;
}

.var-option-btn img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
}

.lp-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jump-pill {
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.jump-pill:hover {
  background: #e2e8f0;
  color: var(--text);
}

.jump-pill-accent {
  background: #ecfdf5;
  color: #047857;
}

.jump-pill-accent:hover {
  background: #d1fae5;
}

.modal-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  font-size: 13px;
  color: #92400e;
}

.modal-callout svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.lp-cta-stack {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-secondary-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Landing Page Sections */
.lp-section {
  padding: 16px 0 22px;
}

.lp-two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

.lp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.lp-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-red);
  margin-bottom: 4px;
}

.lp-section-head h2,
.section-header-row h2,
.guide-header h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.lp-highlights-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lp-highlights-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.check-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  font-weight: 800;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.lp-specs-table {
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spec-row {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}

.spec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-row dt {
  color: var(--text-muted);
  font-weight: 500;
}

.spec-row dd {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

/* User Guide Section */
.guide-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1.5px solid #dbeafe;
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.guide-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.guide-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #eff6ff;
  color: var(--zalo);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guide-icon svg {
  width: 24px;
  height: 24px;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.guide-subhead {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.guide-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 15px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--dark);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guide-steps p {
  margin: 2px 0 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.guide-tips-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-lg);
  padding: 20px;
}

.guide-tips {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: #78350f;
}

.guide-support {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #fcd34d;
}

.guide-support p {
  margin: 0 0 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

/* Lookbook Gallery */
.lookbook-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.lookbook-item {
  margin: 0;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #ffffff;
  cursor: pointer;
}

.lookbook-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.lookbook-item:hover img {
  transform: scale(1.05);
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

/* Mobile Sticky Bottom Buy Bar */
.mobile-buy-bar {
  display: none;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-top: 44px;
  margin-top: 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
}

.footer-desc {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  max-width: 360px;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 14.5px;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 13.5px;
  color: var(--text-secondary);
  transition: color 0.14s ease;
}

.footer-col a:hover {
  color: var(--shopee);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   Floating Zalo Image Widget & Back To Top
   ============================================================ */
.zalo-float-img-wrap {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: inline-block;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(0, 104, 255, 0.34);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.zalo-float-img-wrap:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 104, 255, 0.44);
}

.zalo-float-img {
  height: 52px;
  width: auto;
  border-radius: 999px;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 84px;
  z-index: 55;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.back-to-top[hidden] {
  display: none;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ============================================================
   Responsive Breakpoints
   ============================================================ */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-inner,
  .category-banner,
  .lp-hero-card,
  .lp-two-col,
  .guide-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }

  /* Compact single-row topbar */
  .topbar {
    font-size: 11px;
    padding: 5px 0;
  }

  .topbar-inner {
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .topbar-badges {
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar-badges .dot,
  .topbar-badges span:last-child {
    display: none;
  }

  .zalo-topbar-img {
    height: 19px;
  }

  /* Sleek mobile header */
  .header-inner {
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .brand-wordmark {
    height: 21px;
  }

  .header-shopee-btn {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 8px;
  }

  .search-wrap {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }

  .search-input {
    height: 38px;
    font-size: 13.5px;
    padding: 0 34px 0 38px;
  }

  .search-icon {
    left: 12px;
    width: 16px;
    height: 16px;
  }

  /* Compact, above-the-fold Hero */
  .hero {
    padding: 18px 0 20px;
  }

  .hero-inner {
    gap: 16px;
  }

  .hero-pill {
    font-size: 11.5px;
    padding: 4px 10px;
    margin-bottom: 10px;
  }

  .hero-title {
    font-size: 23px;
    margin-bottom: 8px;
  }

  .hero-desc {
    font-size: 13.5px;
    margin-bottom: 14px;
  }

  .hero-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .hero-cta .btn {
    padding: 9px 10px;
    font-size: 12.5px;
    white-space: normal;
    text-align: center;
  }

  .hero-cta .zalo-img-btn {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .hero-cta .zalo-img-btn img {
    height: 38px;
  }

  /* Compact 3-column trust strip on mobile */
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .stat-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 6px;
    gap: 6px;
  }

  .stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .stat-icon svg {
    width: 17px;
    height: 17px;
  }

  .stat-card strong {
    font-size: 11.5px;
    line-height: 1.25;
  }

  .stat-card p {
    display: none;
  }

  /* Category Tabs */
  .catalog-nav-wrap {
    padding: 14px 0 4px;
  }

  .cat-tab {
    padding: 8px 12px;
    font-size: 12.5px;
    border-radius: 10px;
  }

  /* Compact Category Banners on mobile */
  .category-block {
    padding: 12px 0 22px;
  }

  .category-banner {
    padding: 16px 14px;
    gap: 14px;
    border-radius: var(--radius-lg);
    margin-bottom: 14px;
  }

  .banner-eyebrow {
    font-size: 10px;
    padding: 3px 8px;
    margin-bottom: 6px;
  }

  .banner-title {
    font-size: 20px;
    margin-bottom: 4px;
  }

  .banner-tagline {
    font-size: 13.5px;
    margin-bottom: 8px;
  }

  .banner-desc {
    display: none;
  }

  .banner-brands {
    gap: 5px;
    margin-bottom: 12px;
  }

  .banner-brand-tag {
    font-size: 10.5px;
    padding: 2px 8px;
  }

  .banner-btn-primary {
    width: 100%;
    padding: 9px 12px;
    font-size: 13px;
  }

  .banner-collage {
    gap: 8px;
  }

  .banner-product-tile {
    border-radius: 10px;
    border-width: 1.5px;
  }

  .banner-product-tile.tile-1 {
    transform: none;
  }

  .tile-caption {
    font-size: 9.5px;
    padding: 2px 5px;
    left: 4px;
    bottom: 4px;
  }

  /* Subfilter bar on mobile */
  .subfilter-bar {
    gap: 10px;
    margin: 10px 0 14px;
  }

  .brand-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .brand-chips::-webkit-scrollbar {
    display: none;
  }

  .brand-chip {
    white-space: nowrap;
    font-size: 12px;
    padding: 5px 10px;
  }

  .catalog-meta {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  /* 2-column mobile product grid */
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .product-card {
    border-radius: 12px;
  }

  .card-badges {
    bottom: 6px;
    left: 6px;
    right: 6px;
  }

  .card-brand-pill,
  .card-var-pill {
    font-size: 9.5px;
    padding: 2px 6px;
    border-radius: 5px;
  }

  .card-body {
    padding: 8px;
    gap: 6px;
  }

  .card-title {
    font-size: 12.5px;
    line-height: 1.35;
    min-height: 34px;
  }

  .card-variants-preview {
    flex-wrap: nowrap;
    overflow: hidden;
    min-height: 20px;
  }

  .var-mini-tag {
    font-size: 10px;
    padding: 1px 5px;
  }

  .card-footer {
    padding-top: 4px;
    gap: 5px;
  }

  .card-cta {
    font-size: 11px;
    line-height: 1.25;
    padding: 7px 5px;
    white-space: normal;
    text-align: center;
    border-radius: 8px;
  }

  .card-detail-btn {
    font-size: 11px;
    line-height: 1.25;
    padding: 5px 5px;
    white-space: normal;
    text-align: center;
    border-radius: 7px;
  }

  .category-more-wrap {
    margin-top: 14px;
  }

  .btn-outline-more {
    width: 100%;
    font-size: 13px;
    padding: 10px 14px;
    white-space: normal;
    text-align: center;
  }

  /* Product Landing Page mobile optimization */
  .breadcrumb-bar {
    padding: 8px 0;
    font-size: 12px;
  }

  .bc-current {
    max-width: 100%;
  }

  .lp-hero-section {
    padding: 12px 0 8px;
  }

  .lp-hero-card,
  .lp-card,
  .guide-card {
    padding: 14px;
    border-radius: 14px;
    gap: 16px;
  }

  .lp-title {
    font-size: 18px;
  }

  .lp-thumb {
    width: 54px;
    height: 54px;
  }

  .gallery-nav {
    width: 32px;
    height: 32px;
  }

  .lp-section {
    padding: 10px 0 12px;
  }

  .lp-section-head h2,
  .section-header-row h2,
  .guide-header h2 {
    font-size: 17.5px;
  }

  .spec-row {
    grid-template-columns: 100px 1fr;
    font-size: 13px;
  }

  .guide-header {
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .guide-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .guide-steps li {
    padding: 10px 12px;
    gap: 10px;
  }

  .guide-steps p,
  .guide-tips {
    font-size: 13.5px;
  }

  .guide-doc-card {
    padding: 12px;
    gap: 10px;
  }

  .guide-doc-actions {
    width: 100%;
  }

  .guide-doc-actions .btn {
    flex: 1;
  }

  .lp-secondary-row {
    flex-direction: column;
    align-items: stretch;
  }

  .lp-secondary-row .zalo-img-btn {
    justify-content: center;
  }

  .lookbook-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .footer {
    padding-top: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .zalo-float-img-wrap {
    right: 12px;
    bottom: 14px;
  }

  .zalo-float-img {
    height: 44px;
  }

  .back-to-top {
    right: 12px;
    bottom: 66px;
    width: 38px;
    height: 38px;
  }

  .product-page-body {
    padding-bottom: 72px;
  }

  /* Avoid overlapping the sticky mobile buy bar on product pages */
  .product-page-body .zalo-float-img-wrap {
    display: none;
  }

  .mobile-buy-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 65;
    display: flex;
    gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(17, 24, 39, 0.08);
  }

  .mobile-buy-bar[hidden] {
    display: none;
  }

  .mobile-zalo-mini {
    flex-shrink: 0;
    padding: 10px 16px;
  }
}

/* ============================================================
   Long Scrolling Product Description Images & Guide Documents
   ============================================================ */
main,
.lp-main,
.lp-hero-section,
.lp-section {
  max-width: 100%;
  overflow-x: clip;
}

.lp-hero-card > *,
.lp-two-col > *,
.guide-grid > * {
  min-width: 0;
}

.lp-hero-card,
.lp-card,
.lp-detail-card,
.guide-card {
  max-width: 100%;
  overflow-wrap: break-word;
}

.zalo-img-btn {
  max-width: 100%;
}

.zalo-img-btn img {
  max-width: 100%;
  height: auto;
  max-height: 44px;
}

.lp-detail-card {
  padding: 26px;
}

.long-detail-wrap {
  position: relative;
  margin-top: 20px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.long-detail-wrap.is-collapsed {
  max-height: 1100px;
  overflow: hidden;
}

.long-detail-stack {
  width: 100%;
  max-width: min(860px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border);
}

.long-detail-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.long-detail-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 92%);
  pointer-events: none;
}

.long-detail-fade[hidden],
.long-detail-toggle-wrap[hidden],
.guide-docs-wrap[hidden],
.guide-video-wrap[hidden],
.guide-images-wrap[hidden] {
  display: none;
}

.long-detail-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

/* Guide PDF cards */
.guide-docs-wrap {
  margin-bottom: 24px;
  max-width: 100%;
}

.guide-docs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 100%;
}

.guide-doc-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1.5px solid #bfdbfe;
  border-radius: var(--radius-md);
  flex-wrap: wrap;
  max-width: 100%;
  overflow: hidden;
}

.guide-doc-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fee2e2;
  color: #dc2626;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guide-doc-info {
  flex: 1 1 160px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.guide-doc-info strong {
  display: block;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.35;
}

.guide-doc-info span {
  font-size: 12.5px;
  color: var(--text-muted);
}

.guide-doc-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Guide Video */
.guide-video-wrap {
  margin-bottom: 24px;
  max-width: 100%;
}

.video-aspect {
  position: relative;
  width: 100%;
  max-width: min(760px, 100%);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0f172a;
}

.video-aspect iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Guide vertical images */
.guide-images-wrap {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  max-width: 100%;
}

@media (max-width: 768px) {
  .lp-detail-card {
    padding: 14px 10px;
  }

  .long-detail-wrap {
    margin-top: 12px;
  }

  .long-detail-stack {
    border-radius: 10px;
    border-left: none;
    border-right: none;
  }

  .guide-doc-card {
    padding: 12px;
    gap: 10px;
  }

  .guide-doc-icon {
    width: 38px;
    height: 38px;
    font-size: 12px;
  }

  .guide-doc-info {
    flex: 1 1 calc(100% - 54px);
    min-width: 0;
  }

  .guide-doc-info strong {
    font-size: 13.5px;
  }

  .guide-doc-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .guide-doc-actions .btn {
    width: 100%;
    padding: 8px 6px;
    font-size: 12.5px;
    white-space: normal;
    text-align: center;
  }
}
