/* Font Inter được nạp non-blocking qua <link> trong HTML (xem từng trang).
   Tránh @import vì nó chặn render: trình duyệt phải tải xong style.css rồi mới tải font. */

/* ══════════════════════════════════
   THEME SÁNG — Trắng ấm + Xanh ngọc (Emerald)
   Chiều sâu đến từ hệ bóng đổ mềm nhiều lớp trên nền trắng ấm.
   ══════════════════════════════════ */
:root {
  --bg-primary: #faf9f6;
  --bg-secondary: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f1ec;
  --surface-3: #ece9e2;

  /* "glass" trên nền sáng = lớp phủ tối rất nhạt / viền mảnh */
  --glass: rgba(28, 25, 23, 0.035);
  --glass-strong: rgba(28, 25, 23, 0.06);
  --glass-hover: rgba(28, 25, 23, 0.08);
  --glass-border: rgba(28, 25, 23, 0.09);
  --glass-border-hover: rgba(28, 25, 23, 0.16);
  --glass-shine: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, transparent 45%);
  --liquid-glass: rgba(255, 255, 255, 0.7);
  --liquid-border: rgba(28, 25, 23, 0.1);
  --liquid-highlight: linear-gradient(170deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 35%, transparent 60%);
  --border: rgba(28, 25, 23, 0.08);

  --text-primary: #1c1917;
  --text-secondary: #57534e;
  --text-muted: #a8a29e;

  --accent: #0d9488;
  --accent-strong: #0f766e;
  --accent-soft: #e7f3f1;
  --accent-glow: rgba(13, 148, 136, 0.18);
  --cyan: #0d9488;
  --gradient-accent: linear-gradient(135deg, #14b8a6, #0d9488);
  --gradient-mystic: linear-gradient(135deg, #ffffff 0%, #f3f1ec 100%);

  --green: #059669;
  --danger: #e11d48;

  /* Hệ bóng đổ tạo chiều sâu */
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.04), 0 1px 3px rgba(28, 25, 23, 0.06);
  --shadow-md: 0 2px 6px rgba(28, 25, 23, 0.05), 0 10px 24px rgba(28, 25, 23, 0.07);
  --shadow-lg: 0 6px 16px rgba(28, 25, 23, 0.06), 0 20px 48px rgba(28, 25, 23, 0.12);
  --shadow-accent: 0 8px 24px rgba(13, 148, 136, 0.22);

  --radius: 24px;
  --radius-sm: 16px;
  --radius-xs: 12px;
  --blur: blur(20px);
  --blur-heavy: blur(60px);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --max-width: 1200px;
  --fb-color: #1877f2;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── View Transitions API — mượt mà khi chuyển trang ── */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: vtFadeOut .2s ease forwards;
}

::view-transition-new(root) {
  animation: vtFadeIn .25s ease forwards;
}

@keyframes vtFadeOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.98); }
}

@keyframes vtFadeIn {
  from { opacity: 0; transform: scale(1.01); }
  to { opacity: 1; transform: scale(1); }
}

/* Product grid: fade khi chuyển category */
#productGrid {
  transition: opacity .2s var(--ease);
}

#productGrid.switching {
  opacity: 0;
  transform: translateY(6px);
}

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

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

button {
  cursor: pointer;
  border: none;
  font-family: inherit
}

input,
textarea,
select {
  font-family: inherit
}

/* ── Ambient Light BG — vầng sáng ngọc/ấm rất nhạt tạo chiều sâu ── */
body::before {
  content: '';
  position: fixed;
  top: -25%;
  left: -15%;
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(13, 148, 136, 0.08) 0%, rgba(13, 148, 136, 0.03) 40%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  filter: var(--blur-heavy);
  animation: pulseLight 15s infinite alternate ease-in-out;
}

body::after {
  content: '';
  position: fixed;
  bottom: -20%;
  right: -10%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.06) 0%, rgba(245, 158, 11, 0.02) 40%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  filter: var(--blur-heavy);
  animation: pulseLight 12s infinite alternate-reverse ease-in-out;
}

@keyframes pulseLight {
  0% {
    opacity: 0.7;
    transform: scale(1) translate(0, 0);
  }

  100% {
    opacity: 1;
    transform: scale(1.15) translate(5%, 5%);
  }
}

::-webkit-scrollbar {
  width: 8px
}

::-webkit-scrollbar-track {
  background: transparent
}

::-webkit-scrollbar-thumb {
  background: rgba(28, 25, 23, 0.18);
  border-radius: 10px
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(28, 25, 23, 0.3)
}

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

/* ── Scroll Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease)
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0)
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.96)
  }

  to {
    opacity: 1;
    transform: scale(1)
  }
}

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

  100% {
    background-position: 200px 0
  }
}

/* ── Skeleton Loading ── */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 400px 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-xs)
}

/* ── Page Transition ── */
.page-enter {
  animation: fadeIn .5s var(--ease) forwards
}

.detail-grid {
  animation: slideUp .6s var(--ease) forwards
}

/* ══════════════════════════════════
   NAVBAR — Frosted White
   ══════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  height: 72px
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  transition: .3s var(--ease)
}

.navbar-brand:hover {
  transform: scale(1.02);
}

.navbar-logo {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.navbar-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.navbar-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none
}

/* ══════════════════════════════════
   HERO SLIDER
   ══════════════════════════════════ */
.hero-slider {
  position: relative;
  margin: 72px 0 0;
  height: 380px;
  border-radius: 0;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: none;
  border: none
}

@media (min-width: 768px) {
  .hero-slider {
    margin: 92px auto 0;
    max-width: 1160px;
    height: 420px;
    border-radius: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform .8s cubic-bezier(.4, 0, .2, 1)
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: var(--surface-3)
}

.slide-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  will-change: opacity;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slide-bg-img.active-bg {
  opacity: 1;
}

.slide-bg-blur {
  position: absolute;
  inset: -24px;
  background-size: cover;
  background-position: center;
  filter: blur(26px) brightness(0.82) saturate(1.15);
  z-index: 1;
}

.slide-bg-main {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 2;
  transition: transform 10s ease-out;
  transform: scale(1);
}

.slide-bg-img.active-bg .slide-bg-main {
  transform: scale(1.04);
}

/* Video slide: hide bg poster once video plays */
.slide-video {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.active-slide .slide-video {
  opacity: 1;
}

.active-slide .slide-video ~ .slide-bg-img {
  opacity: 0;
  transition: opacity 1s ease 0.5s;
}

/* Lớp phủ tối ở đáy để chữ trắng nổi trên ảnh — độc lập theme */
.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 24px 28px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.35) 45%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
}

.slide-overlay h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin: 0 0 4px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slide-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  letter-spacing: 0;
  display: inline-block;
  align-self: flex-start;
}

.slide-overlay .badge {
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: .4s var(--ease);
  z-index: 5
}

.slider-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.slider-btn.prev {
  left: 20px
}

.slider-btn.next {
  right: 20px
}

.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5
}

.slider-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  border: none;
  transition: .4s var(--ease);
  cursor: pointer
}

.slider-dots .dot.active {
  background: #fff;
  width: 32px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* ══════════════════════════════════
   CATEGORY TABS — Light Pills
   ══════════════════════════════════ */
.category-bar {
  padding: 16px 0;
  position: sticky;
  top: 72px;
  z-index: 50;
  background: rgba(250, 249, 246, 0.8);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 4px
}

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

.cat-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 100px;
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  background: #fff;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all .3s var(--ease);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
  line-height: 1;
}

.cat-tab:hover {
  color: var(--accent-strong);
  border-color: rgba(13, 148, 136, 0.4);
  box-shadow: var(--shadow-md);
}

.cat-tab.active {
  color: #fff;
  background: var(--gradient-accent);
  border-color: transparent;
  box-shadow: var(--shadow-accent);
}

.cat-tab.active[data-category="phone"] {
  background: #6366f1;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.cat-tab.active[data-category="tablet"] {
  background: #0891b2;
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.35);
}

.cat-tab.active[data-category="laptop"] {
  background: #ea580c;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}

.cat-tab.active[data-category="other"] {
  background: #78716c;
  box-shadow: 0 4px 14px rgba(120, 113, 108, 0.35);
}

/* ══════════════════════════════════
   PRODUCT GRID
   ══════════════════════════════════ */
.products-section {
  padding: 48px 0 100px
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 36px;
  letter-spacing: -0.8px;
  color: var(--text-primary)
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px
}

/* ══════════════════════════════════
   PRODUCT CARD — White + Soft Depth
   ══════════════════════════════════ */
/* Chừa chỗ cho navbar fixed khi cuộn tới khu sản phẩm (deeplink /?cat=...) */
.products-section { scroll-margin-top: 84px; }

/* Nội dung SSR trên trang chi tiết (crawler đọc được; JS render đè khi tải xong) */
.ssr-product { padding: 16px 0; max-width: 720px; }
.ssr-product h1 { font-size: 1.4rem; line-height: 1.3; margin-bottom: 8px; }
.ssr-product ul { padding-left: 20px; margin: 12px 0; color: var(--text-secondary); }
.ssr-product p { color: var(--text-secondary); margin: 8px 0; white-space: pre-line; }

/* Card & slide là thẻ <a> thật để Google crawl được internal link */
a.product-card,
a.slide {
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-md);
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.04) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .5s
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(13, 148, 136, 0.3);
  box-shadow: 0 8px 28px rgba(13, 148, 136, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.product-card:hover::before {
  opacity: 1
}

.product-card:active {
  transform: translateY(-4px) scale(0.99);
  transition-duration: .15s
}

.product-card .card-img {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: var(--radius) var(--radius) 0 0;
}

.product-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease)
}

.product-card:hover .card-img img {
  transform: scale(1.03)
}

.product-card .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  z-index: 2;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  line-height: 1;
}

.product-card .card-body {
  padding: 20px;
  position: relative;
  z-index: 1
}

.product-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.3px;
  color: var(--text-primary)
}

.product-card .card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px
}

.spec-tag {
  padding: 4px 12px;
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 500;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid rgba(13, 148, 136, 0.14);
  transition: all .3s var(--ease);
}

.product-card:hover .spec-tag {
  background: #def0ed;
}

.product-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px
}

.product-card .price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.3px;
}

.product-card .condition {
  font-size: .75rem;
  color: var(--text-secondary);
  font-weight: 400
}

/* ══════════════════════════════════
   DETAIL PAGE
   ══════════════════════════════════ */
.detail-page {
  margin-top: 72px;
  padding: 32px 0 100px
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  background: #fff;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: .82rem;
  font-weight: 600;
  transition: all .3s var(--ease);
  margin-bottom: 16px;
}

.back-btn:hover {
  color: var(--accent-strong);
  border-color: rgba(13, 148, 136, 0.35);
  transform: translateX(-4px);
  box-shadow: var(--shadow-md);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px
}

.gallery-main {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
  margin-bottom: 16px;
  border: 1px solid var(--border);
  position: relative;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main img,
.gallery-main video {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
  transition: opacity .4s var(--ease);
  display: block;
}

/* Ảnh cần lấp đầy container */
.gallery-main img {
  height: 100%;
  object-fit: contain;
}

/* Video-specific: dark background, properly constrained */
.gallery-main video {
  background: #000;
  max-height: 100%;
  object-fit: contain;
}

/* Container cho video wrapper bên trong gallery */
.gallery-main [style*="aspect-ratio"] {
  max-height: 100%;
  width: 100%;
}

.gallery-main img.img-loading {
  opacity: 0
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0
}

.gallery-thumbs::-webkit-scrollbar {
  display: none
}

.gallery-thumb {
  width: 76px;
  height: 56px;
  flex: 0 0 76px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border);
  background: var(--surface-2);
  transition: all .4s var(--ease);
  opacity: .65;
  position: relative;
}

.gallery-thumb.active {
  border-color: var(--accent);
  opacity: 1;
  box-shadow: 0 4px 14px var(--accent-glow);
  transform: scale(1.05);
}

.gallery-thumb:hover {
  border-color: rgba(13, 148, 136, 0.5);
  opacity: .9;
  transform: translateY(-4px)
}

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

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: slideUp .6s var(--ease) .1s both
}

.detail-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--text-primary)
}

.detail-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
  animation: scaleIn .5s var(--ease) .2s both
}

.detail-specs {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all .3s;
}

.detail-specs:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-md);
}

.detail-specs h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  color: var(--text-primary)
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: .95rem
}

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

.spec-row .label {
  color: var(--text-secondary)
}

.spec-row .value {
  font-weight: 600;
  text-align: right;
  color: var(--text-primary);
}

.detail-desc {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.detail-desc:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-md);
}

.detail-desc h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
  color: var(--text-primary)
}

.detail-desc p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  white-space: pre-line
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 32px;
  border-radius: var(--radius-sm);
  background: var(--fb-color);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all .4s var(--ease);
  width: 100%;
  box-shadow: 0 10px 30px rgba(24, 119, 242, 0.28);
}

.contact-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(24, 119, 242, 0.42);
  filter: brightness(1.05);
}

/* ── Copy Config Button ── */
.btn-copy-config {
  background: #fff;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all .3s var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.btn-copy-config:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  box-shadow: 0 4px 16px var(--accent-glow)
}

.btn-copy-config:active {
  transform: scale(0.97);
  transition-duration: .1s
}

.btn-copy-config.copied {
  background: rgba(5, 150, 105, 0.1);
  border-color: var(--green);
  color: var(--green)
}

.btn-copy-config.copied::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(5, 150, 105, 0.12), transparent);
  animation: shimmer .6s ease-out
}

@keyframes copyPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4)
  }

  70% {
    box-shadow: 0 0 0 10px rgba(5, 150, 105, 0)
  }

  100% {
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0)
  }
}

/* ══════════════════════════════════
   FAB FACEBOOK
   ══════════════════════════════════ */
.fab-facebook {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 200;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--fb-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 10px 30px rgba(24, 119, 242, 0.42);
  transition: all .4s var(--ease);
  animation: fabFloat 3s ease-in-out infinite
}

.fab-facebook:hover {
  transform: scale(1.12) rotate(5deg);
  box-shadow: 0 15px 40px rgba(24, 119, 242, 0.55)
}

.fab-facebook:active {
  transform: scale(0.92);
  transition-duration: .1s
}

@keyframes fabFloat {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-8px)
  }
}

/* Footer styles are defined in the POLISH section below */

/* ══════════════════════════════════
   ADMIN — Light Forms
   ══════════════════════════════════ */
.admin-page {
  margin-top: 72px;
  padding: 32px 0 100px
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px
}

.admin-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary)
}

.btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 600;
  transition: all .3s cubic-bezier(0.25, 1, 0.5, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.97);
  transition-duration: .1s;
}

.btn-primary {
  background: var(--gradient-accent);
  border: 1px solid transparent;
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 12px 32px rgba(13, 148, 136, 0.32);
  transform: translateY(-2px);
}

.btn-danger {
  background: rgba(225, 29, 72, 0.07);
  color: var(--danger);
  border: 1px solid rgba(225, 29, 72, 0.22);
}

.btn-danger:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.28);
}

.btn-ghost {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: .8rem
}

.btn-liquid {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-liquid:hover {
  background: var(--surface-2);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-liquid.btn-primary-liquid {
  background: var(--gradient-accent);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.btn-liquid.btn-primary-liquid:hover {
  filter: brightness(1.05);
  box-shadow: 0 12px 32px rgba(13, 148, 136, 0.32);
}

.login-box {
  max-width: 420px;
  margin: 100px auto;
  background: var(--surface);
  border-radius: 28px;
  padding: 48px;
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.login-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-accent);
  pointer-events: none
}

.login-box h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 32px;
  position: relative;
  letter-spacing: -0.8px;
  color: var(--text-primary)
}

.form-group {
  margin-bottom: 18px;
  text-align: left;
  position: relative
}

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  margin-left: 4px
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  font-size: 1rem;
  transition: all .3s var(--ease);
  outline: none;
}

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

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
  background: #fff
}

textarea.form-input {
  resize: vertical;
  min-height: 120px
}

select.form-input {
  cursor: pointer
}

input,
textarea,
select {
  font-size: 16px
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(28, 25, 23, .45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.active {
  display: flex
}

.modal {
  background: var(--surface);
  border-radius: 28px;
  border: 1px solid var(--border);
  width: 100%;
  max-width: 640px;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary)
}

.modal-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--surface-2);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  z-index: 10;
  transition: all .3s
}

.modal-close:hover {
  background: var(--danger);
  color: #fff;
  transform: rotate(90deg)
}

.admin-product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 16px;
}

.admin-product-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all .3s var(--ease);
  cursor: grab
}

.admin-product-item:active {
  cursor: grabbing
}

.admin-product-item.dragging {
  opacity: .5;
  background: var(--surface-2);
  transform: scale(.98);
  z-index: 100;
  position: relative
}

.admin-product-item:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px)
}

.admin-product-item .thumb {
  width: 80px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  flex-shrink: 0;
  position: relative
}

.admin-product-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .4s
}

.admin-product-item .info {
  flex: 1;
  min-width: 0
}

.admin-product-item .info h4 {
  font-size: .95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.3px;
  color: var(--text-primary)
}

.admin-product-item .info span {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 400
}

.admin-product-item .actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
  margin-right: 4px;
  flex-shrink: 0
}

.toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--surface-3);
  transition: .4s var(--ease);
  border-radius: 24px;
  border: 1px solid var(--border)
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: .4s var(--ease);
  border-radius: 50%
}

input:checked+.toggle-slider {
  background-color: var(--green);
  border-color: var(--green)
}

input:checked+.toggle-slider:before {
  transform: translateX(16px);
  background-color: #fff;
}

.toggle-switch.is-loading {
  opacity: .5;
  pointer-events: none
}

.image-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px
}

.image-item {
  display: flex;
  align-items: center;
  gap: 10px
}

.image-item .form-input {
  flex: 1
}

.image-item .remove-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(225, 29, 72, .1);
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all .3s
}

.image-item .remove-img:hover {
  background: var(--danger);
  color: #fff;
  transform: scale(1.1)
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500
}

.empty-state .icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px;
  gap: 12px;
  color: var(--text-muted);
  font-weight: 500
}

.spinner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid var(--surface-3);
  border-top-color: var(--accent);
  animation: spin .8s linear infinite
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.toast-container {
  position: fixed;
  top: 88px;
  right: 24px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.toast {
  padding: 14px 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: .9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastIn .4s var(--spring);
  max-width: 360px;
  color: var(--text-primary);
}

.toast.removing {
  animation: toastOut .4s var(--ease) forwards
}

.toast.success {
  border-left: 4px solid var(--green);
}

.toast.error {
  border-left: 4px solid var(--danger);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(30px) scale(0.9)
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateX(30px) scale(0.9)
  }
}

.sortable-ghost {
  opacity: 0.3;
  background-color: var(--accent-soft) !important;
  border: 2px dashed var(--accent) !important;
}

.sortable-drag {
  opacity: 1 !important;
  box-shadow: var(--shadow-lg) !important;
  transform: scale(1.02) !important;
  cursor: grabbing !important;
  z-index: 1000 !important;
}

/* ══════════════════════════════════
   RESPONSIVE — Base overrides
   ══════════════════════════════════ */
@media(max-width:768px) {
  .navbar .container {
    height: 64px
  }

  .navbar-brand {
    font-size: 1.2rem;
    gap: 6px
  }

  .navbar-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: .9rem
  }

  .detail-title {
    font-size: 1.5rem
  }

  .detail-price {
    font-size: 1.8rem
  }

  .admin-product-item .info h4 {
    white-space: normal;
  }

  .admin-product-list {
    grid-template-columns: 1fr;
  }

  .admin-header {
    margin-bottom: 20px;
  }

  .admin-header h1 {
    font-size: 1.4rem;
  }

  .container {
    padding: 0 14px;
  }

  .modal {
    padding: 24px;
    border-radius: 24px;
  }

  .modal-overlay {
    padding: 20px 10px;
  }

  .login-box {
    padding: 36px 24px;
    margin: 60px auto;
  }

  .toast-container {
    top: auto;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    right: 12px;
    left: 12px;
  }

  .toast {
    max-width: none;
  }
}
}

/* ══════════════════════════════════
   PAGE LOADER
   ══════════════════════════════════ */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease, visibility .5s ease
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--surface-3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px
}

.loader-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: pulseText 2s infinite alternate
}

@keyframes pulseText {
  from {
    opacity: 0.5;
  }

  to {
    opacity: 1;
  }
}

/* ══════════════════════════════════
   FILEPOND LIGHT THEME
   ══════════════════════════════════ */
.filepond--root {
  font-family: inherit
}

.filepond--panel-root {
  background-color: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 16px
}

.filepond--drop-label {
  color: var(--text-secondary)
}

.filepond--label-action {
  text-decoration-color: var(--accent)
}

.filepond--item-panel {
  background-color: var(--surface-3)
}

.filepond--file-action-button {
  background-color: rgba(28, 25, 23, 0.5);
  color: #fff
}

/* ══════════════════════════════════
   POLISH — tagline, skeleton, badge giảm giá
   ══════════════════════════════════ */

/* Dòng tin cậy bên phải navbar (chỉ hiện trên desktop để lấp khoảng trống) */
.navbar-tagline {
  margin-left: auto;
  display: none;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.navbar-tagline svg {
  color: var(--accent);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .navbar-tagline {
    display: inline-flex;
  }
}

/* Skeleton card — hiển thị khi đang tải (mượt hơn spinner) */
.skeleton-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.skeleton-card .sk-img {
  height: 240px;
}

.skeleton-card .sk-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-card .sk-line {
  height: 14px;
  border-radius: 6px;
}

.skeleton-card .sk-line.short {
  width: 55%;
}

.skeleton-card .sk-line.price {
  width: 42%;
  height: 20px;
  margin-top: 6px;
}

/* Skeleton mobile styles are defined in the mobile optimization section below */

/* Badge giảm giá trên ảnh sản phẩm */
.product-card .discount-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--danger);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 8px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.3);
  letter-spacing: 0.3px;
  line-height: 1;
}

/* Pill giảm giá ở trang chi tiết */
.discount-pill {
  display: inline-flex;
  align-items: center;
  background: var(--danger);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 100px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.28);
}

/* Footer styles consolidated in new footer section below */

/* ══════════════════════════════════
   CATEGORY BADGES — Solid on images, tinted in content
   ══════════════════════════════════ */

/* On card images & slider: solid colored badges with white text */
.product-card .badge-phone,
.slide-overlay .badge-phone {
  background: #6366f1 !important;
  color: #fff !important;
  border: none !important;
}

.product-card .badge-tablet,
.slide-overlay .badge-tablet {
  background: #0891b2 !important;
  color: #fff !important;
  border: none !important;
}

.product-card .badge-laptop,
.slide-overlay .badge-laptop {
  background: #ea580c !important;
  color: #fff !important;
  border: none !important;
}

.product-card .badge-other,
.slide-overlay .badge-other {
  background: #78716c !important;
  color: #fff !important;
  border: none !important;
}

/* In detail page: light tinted badges */
.detail-info .badge-phone {
  background: rgba(99, 102, 241, 0.12) !important;
  color: #6366f1 !important;
}

.detail-info .badge-tablet {
  background: rgba(6, 182, 212, 0.12) !important;
  color: #0891b2 !important;
}

.detail-info .badge-laptop {
  background: rgba(249, 115, 22, 0.12) !important;
  color: #ea580c !important;
}

.detail-info .badge-other {
  background: rgba(168, 162, 158, 0.15) !important;
  color: #78716c !important;
}

/* ══════════════════════════════════
   SOLD CARD — Class-based styling
   ══════════════════════════════════ */
.product-card.sold-card {
  opacity: 0.7;
}

.product-card.sold-card .card-img::after {
  content: 'ĐÃ THANH LÝ';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 20px;
  border-radius: 8px;
  letter-spacing: 1.2px;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.45);
  z-index: 3;
  pointer-events: none;
  white-space: nowrap;
}

.product-card.sold-card .card-img img {
  opacity: 0.45;
  filter: grayscale(0.3);
}

.product-card.sold-card .price {
  text-decoration: line-through;
  opacity: 0.5;
}

/* ── Status badge "Đang bán" ── */
.status-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  z-index: 2;
  line-height: 1;
}

.status-badge.available {
  background: rgba(5, 150, 105, 0.88);
  color: #fff;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
}

.status-badge .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

/* ══════════════════════════════════
   SLIDER PREV/NEXT BUTTONS (thêm vào HTML)
   ══════════════════════════════════ */
.slider-counter {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  z-index: 5;
  letter-spacing: 0.5px;
}

/* ══════════════════════════════════
   SCROLL TO TOP
   ══════════════════════════════════ */
.scroll-top-btn {
  position: fixed;
  bottom: 104px;
  right: 32px;
  z-index: 190;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .4s var(--ease);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--gradient-accent);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-accent);
}

.scroll-top-btn svg {
  width: 16px;
  height: 16px;
}

/* ══════════════════════════════════
   FOOTER — Nâng cấp chuyên nghiệp
   ══════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  text-align: center;
  color: var(--text-secondary);
  font-size: .88rem;
  background: var(--surface);
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-brand .navbar-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 0.7rem;
}

.footer-desc {
  max-width: 560px;
  margin: 0 auto 20px;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--surface-2);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: all .3s var(--ease);
}

.footer-link:hover {
  color: var(--accent-strong);
  border-color: rgba(13, 148, 136, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.footer-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-address {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-address svg {
  color: var(--accent);
  flex-shrink: 0;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════
   MOBILE — Bottom Navigation Bar
   ══════════════════════════════════ */
.bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    /* Apple Liquid Glass — crystal clear like water filter */
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(240, 248, 255, 0.45) 50%,
      rgba(255, 255, 255, 0.6) 100%
    );
    backdrop-filter: blur(40px) saturate(2.2) brightness(1.08);
    -webkit-backdrop-filter: blur(40px) saturate(2.2) brightness(1.08);
    border-top: 0.5px solid rgba(255, 255, 255, 0.7);
    box-shadow:
      0 -1px 0 rgba(0, 0, 0, 0.04),
      0 -8px 32px rgba(0, 0, 0, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 8px 4px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    align-items: center;
    border-radius: 20px 20px 0 0;
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 12px;
    border-radius: 14px;
    color: rgba(60, 60, 67, 0.6);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    min-width: 56px;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
  }

  .bottom-nav-item.active {
    color: var(--accent);
  }

  .bottom-nav-item.active .bnav-icon {
    background: linear-gradient(
      135deg,
      rgba(20, 184, 166, 0.12) 0%,
      rgba(13, 148, 136, 0.18) 100%
    );
    color: var(--accent);
    box-shadow: 0 0 12px rgba(20, 184, 166, 0.15);
  }

  .bnav-icon {
    width: 42px;
    height: 30px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .bnav-icon svg {
    width: 20px;
    height: 20px;
  }

  .bottom-nav-item.chat-item {
    color: #0084ff;
  }

  .bottom-nav-item.chat-item .bnav-icon {
    background: linear-gradient(135deg, #0084ff, #00b2ff);
    color: #fff;
    box-shadow: 0 3px 12px rgba(0, 132, 255, 0.35);
    width: 36px;
    height: 36px;
    border-radius: 50%;
  }

  .bottom-nav-item.chat-item .bnav-icon svg {
    fill: #fff;
  }

  .bottom-nav-item {
    transition: transform .15s var(--ease), color .2s var(--ease);
  }

  .bottom-nav-item:active {
    transform: scale(0.88);
  }

  /* Điều chỉnh khi có bottom nav */
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .footer {
    padding-bottom: calc(32px + 64px + env(safe-area-inset-bottom, 0px));
  }

  /* FAB Messenger ẩn trên mobile (thay bằng bottom nav) */
  .fab-facebook {
    display: none;
  }

  /* Scroll-to-top cũng dịch lên trên bottom nav */
  .scroll-top-btn {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    right: 14px;
    width: 32px;
    height: 32px;
  }

  /* Category bar ẩn trên mobile (thay bằng bottom nav) */
  .category-bar {
    display: none;
  }

  /* Products section sát hơn */
  .products-section {
    padding: 20px 0 40px;
  }

  /* Section title compact */
  .section-title {
    font-size: 1.2rem;
    margin-bottom: 16px;
  }
}

/* ══════════════════════════════════
   MOBILE — Product Card Compact
   ══════════════════════════════════ */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-card {
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
  }

  .product-card .card-img {
    height: 150px;
    border-radius: 16px 16px 0 0;
  }

  .product-card .card-body {
    padding: 10px 12px 12px;
  }

  .product-card .card-title {
    font-size: 0.82rem;
    margin-bottom: 6px;
    -webkit-line-clamp: 2;
    line-height: 1.35;
  }

  .product-card .card-specs {
    display: none;
  }

  .product-card .price {
    font-size: 0.95rem;
    font-weight: 800;
  }

  .product-card .badge {
    padding: 3px 8px;
    font-size: 0.6rem;
    top: 8px;
    left: 8px;
  }

  .product-card .discount-badge {
    padding: 3px 7px;
    font-size: 0.6rem;
    top: 8px;
    right: 8px;
  }

  .status-badge {
    bottom: 8px;
    left: 8px;
    padding: 3px 7px;
    font-size: 0.58rem;
  }

  .product-card.sold-card .card-img::after {
    font-size: 0.62rem;
    padding: 4px 12px;
    letter-spacing: 0.8px;
  }

  /* Skeleton mobile */
  .skeleton-card .sk-img {
    height: 150px;
  }

  .skeleton-card .sk-body {
    padding: 10px 12px;
    gap: 8px;
  }

  .skeleton-card .sk-line {
    height: 12px;
  }

  .skeleton-card .sk-line.price {
    height: 16px;
  }
}

/* ══════════════════════════════════
   MOBILE — Product Detail Page
   ══════════════════════════════════ */
@media (max-width: 768px) {
  .detail-page {
    margin-top: 64px;
    padding: 16px 0 40px;
  }

  .back-btn {
    font-size: 0.78rem;
    padding: 6px 14px;
    margin-bottom: 12px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .detail-gallery {
    width: calc(100% + 28px);
    margin-left: -14px;
  }

  .gallery-main {
    border-radius: 0;
    border-left: none;
    border-right: none;
    aspect-ratio: 4/3;
    margin-bottom: 8px;
  }

  /* Video mode: giới hạn chiều cao hợp lý, video tự resize bên trong */
  .gallery-main[data-is-video="true"] {
    aspect-ratio: unset;
    height: 55vw;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .gallery-main[data-is-video="true"] video {
    width: 100%;
    height: auto;
    max-height: 55vw;
    object-fit: contain;
    display: block;
  }

  .gallery-main[data-is-video="true"] > div {
    width: 100%;
    max-height: 55vw;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .gallery-main[data-is-video="true"] iframe {
    width: 100%;
    height: 55vw;
  }

  .gallery-thumbs {
    padding: 0 14px;
    gap: 8px;
  }

  .gallery-thumb {
    width: 60px;
    height: 44px;
    flex: 0 0 60px;
    border-radius: 10px;
  }

  /* Sticky Messenger CTA trên product detail */
  .detail-sticky-cta {
    position: fixed;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    left: 0;
    right: 0;
    z-index: 150;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
  }

  .detail-sticky-cta .contact-btn {
    flex: 1;
    padding: 12px;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  .detail-sticky-cta .btn-share {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
  }
}

/* Desktop: ẩn sticky CTA */
.detail-sticky-cta {
  display: none;
}

/* Nút liên hệ nổi trên bottom-nav (mobile) — CTA chính của trang sản phẩm */
@media (max-width: 768px) {
  .detail-sticky-cta {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    z-index: 199;
    gap: 10px;
    animation: ctaSlideUp .5s var(--ease) .2s both;
  }

  .detail-sticky-cta .contact-btn {
    flex: 1;
    padding: 15px 20px;
    font-size: 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #0084ff, #00b2ff);
    box-shadow: 0 8px 24px rgba(0, 132, 255, 0.38);
  }

  .detail-sticky-cta .contact-btn:active {
    transform: scale(0.97);
  }

  .detail-sticky-cta .btn-share {
    width: 52px;
    height: auto;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .detail-sticky-cta .btn-share:active {
    transform: scale(0.94);
  }

  /* Chừa chỗ cuối trang để CTA không che nội dung */
  .detail-page {
    padding-bottom: 150px;
  }
}

@keyframes ctaSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 769px) {
  .detail-sticky-cta {
    display: none !important;
  }
}

/* ══════════════════════════════════
   MOBILE — Hero Slider Adjustments
   ══════════════════════════════════ */
@media (max-width: 768px) {
  .hero-slider {
    margin: 64px 0 0;
    height: auto;
    aspect-ratio: 16/9;
    min-height: 200px;
    max-height: 280px;
    border-radius: 0;
  }

  .slide-overlay {
    padding: 40px 16px 16px;
  }

  .slide-overlay h2 {
    font-size: 1rem;
  }

  .slide-price {
    font-size: 0.95rem;
  }

  .slide-overlay .badge {
    font-size: 0.62rem;
    padding: 4px 10px;
    letter-spacing: 1px;
    margin-bottom: 6px;
  }

  .slider-dots {
    bottom: 12px;
    gap: 6px;
  }

  .slider-dots .dot {
    width: 6px;
    height: 6px;
  }

  .slider-dots .dot.active {
    width: 24px;
  }

  .slider-btn {
    display: none;
  }

  .slider-counter {
    top: 10px;
    right: 10px;
    font-size: 0.68rem;
    padding: 3px 8px;
  }
}

/* ══════════════════════════════════
   TỐI ƯU HIỆU NĂNG MOBILE
   ══════════════════════════════════ */

/* Vầng sáng nền blur nặng GPU → tắt animation trên mobile để cuộn mượt, đỡ hao pin */
@media (max-width: 768px) {

  body::before,
  body::after {
    animation: none;
    filter: blur(70px);
    opacity: 0.6;
  }

  .navbar,
  .category-bar {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  /* Tắt hiệu ứng hover (không cần trên cảm ứng, gây repaint) */
  .product-card:hover {
    transform: none;
  }

  .product-card:hover .card-img img {
    transform: none;
  }
}

/* Tôn trọng người dùng bật "Giảm chuyển động" trong cài đặt hệ thống */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-up {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Ẩn trực quan cho SEO */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ══════════════════════════════════
   SEO SECTIONS ADDITIONS (Intro, Quality, Guarantees, FAQ)
   ══════════════════════════════════ */

/* 1. Introduction Section */
.intro-section {
  padding: 60px 0 40px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
}

.intro-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.intro-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.intro-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.intro-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-card {
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-glow);
}

.stat-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ══════════════════════════════════
   INFO TABS — Compact tabbed section
   ══════════════════════════════════ */
.info-tabs-section {
  padding: 48px 0 40px;
  background: var(--bg-primary);
}

.info-tabs-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.info-tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--bg-primary);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.info-tabs-nav::-webkit-scrollbar {
  display: none;
}

.info-tab {
  flex: 1;
  min-width: 0;
  padding: 15px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
  transition: all .25s var(--ease);
  white-space: nowrap;
  font-family: inherit;
  text-align: center;
  letter-spacing: -0.01em;
}

.info-tab:hover {
  color: var(--text-primary);
  background: rgba(20, 184, 166, 0.04);
}

.info-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(20, 184, 166, 0.06);
}

.info-tab-panels {
  padding: 24px;
}

.info-tab-panel {
  display: none;
  animation: tabFadeIn .3s ease;
}

.info-tab-panel.active {
  display: block;
}

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

/* Buy Steps & Quality Steps */
.buy-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.buy-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.buy-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3);
}

.buy-step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.buy-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Commit Items */
.commit-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.commit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.commit-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.commit-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.commit-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

@media (max-width: 768px) {
  .info-tabs-section {
    padding: 32px 0 24px;
  }
  .info-tab {
    padding: 12px 10px;
    font-size: 0.78rem;
  }
  .info-tab-panels {
    padding: 18px 16px;
  }
}

/* 2. Quality Section (3 Steps) — legacy */
.quality-section {
  padding: 80px 0 60px;
  background: var(--bg-primary);
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 600px;
  margin: -12px auto 48px;
  font-size: 1.05rem;
}

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

.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.quality-card {
  position: relative;
  padding: 40px 30px 30px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.quality-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.quality-icon {
  position: absolute;
  top: -20px;
  left: 30px;
  width: 44px;
  height: 44px;
  background: var(--gradient-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: var(--shadow-accent);
}

.quality-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.quality-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 3. Guarantees Section */
.guarantees-section {
  padding: 60px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.guarantees-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.guarantee-item {
  display: flex;
  gap: 16px;
}

.g-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.guarantee-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.guarantee-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 4. FAQ Section */
.faq-section {
  padding: 80px 0;
  background: var(--bg-primary);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.faq-item.active {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-arrow {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease);
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s var(--ease);
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* high enough limit */
  padding: 0 24px 20px;
  transition: max-height 0.3s cubic-bezier(0.9, 0, 0.1, 1), padding 0.3s var(--ease);
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* Responsive Styles for SEO Sections */
@media (max-width: 992px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .intro-stats {
    order: -1;
  }
  
  .quality-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  
  .quality-card {
    padding-top: 35px;
  }
  
  .guarantees-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .intro-section {
    padding: 40px 0 30px;
  }
  
  .intro-title {
    font-size: 1.8rem;
  }
  
  .intro-text {
    font-size: 0.98rem;
  }
  
  .quality-section,
  .faq-section {
    padding: 50px 0;
  }
  
  .faq-question {
    padding: 16px 20px;
    font-size: 0.98rem;
  }
  
  .faq-item.active .faq-answer {
    padding: 0 20px 16px;
  }
}

/* ══════════════════════════════════
   LIỀN MẠCH — View Transitions giữa các trang
   (trình duyệt chưa hỗ trợ sẽ tự bỏ qua)
   ══════════════════════════════════ */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: vtFadeOut 0.18s ease both;
}

::view-transition-new(root) {
  animation: vtFadeIn 0.22s ease both;
}

@keyframes vtFadeOut {
  to { opacity: 0; }
}

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

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}
