:root {
  --primary: #e11d48;
  --primary-dark: #be123c;
  --primary-soft: #fff1f2;
  --primary-border: #fecdd3;
  --accent: #0d9488;
  --accent-soft: #f0fdfa;
  --accent-border: #99f6e4;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 35px -8px rgba(15, 23, 42, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding-bottom: 96px;
  max-width: 100%;
  overflow-x: clip;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Top Trust Banner */
.top-trust-bar {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  font-size: 12.5px;
  padding: 7px 0;
}

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

.trust-pills {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e2e8f0;
  font-weight: 500;
}

.trust-pill strong {
  color: #fda4af;
}

.search-elder-tip {
  margin-top: 5px;
  padding-left: 12px;
  font-size: 11.6px;
  color: #475569;
  line-height: 1.35;
}

.search-elder-tip strong {
  color: #0f766e;
  font-weight: 700;
}

.quick-tag.elder-highlight {
  background: #f0fdf4;
  border-color: #6ee7b7;
  color: #065f46;
  font-weight: 700;
}

.quick-tag.elder-highlight:hover {
  background: #dcfce7;
  border-color: #34d399;
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, #fb7185 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.28);
}

.brand-text h1 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--primary-dark);
  line-height: 1.2;
}

.brand-text p {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Search Box */
.search-wrapper {
  flex: 1;
  max-width: 580px;
  position: relative;
}

.search-input-group {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 4px 6px 4px 16px;
  transition: all 0.2s ease;
}

.search-input-group:focus-within,
.search-input-group.voice-listening {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12);
}

.search-icon {
  color: var(--text-light);
  font-size: 16px;
  margin-right: 8px;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 14.5px;
  color: var(--text);
  outline: none;
  padding: 7px 0;
  font-family: inherit;
}

.search-clear-btn {
  border: none;
  background: #cbd5e1;
  color: #334155;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  flex-shrink: 0;
}

/* Visual Image/Barcode & Voice Search Circular Studio Buttons */
.visual-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  margin-right: 6px;
  box-shadow: 0 3px 10px rgba(13, 148, 136, 0.3);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.visual-search-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(13, 148, 136, 0.4);
}

.visual-search-btn:active {
  transform: scale(0.93);
}

.visual-cam-svg {
  flex-shrink: 0;
  display: block;
}

.voice-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(225, 29, 72, 0.32);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.voice-search-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(225, 29, 72, 0.42);
}

.voice-search-btn:active {
  transform: scale(0.93);
}

.voice-search-btn.listening {
  background: linear-gradient(135deg, #e11d48 0%, #9f1239 100%);
  animation: voiceRingPulse 1.25s infinite;
}

.voice-mic-svg {
  flex-shrink: 0;
  display: block;
}

@keyframes voiceRingPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.55);
  }
  70% {
    box-shadow: 0 0 0 11px rgba(225, 29, 72, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
  }
}

/* Voice Listening Popup Modal */
.voice-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(5px);
  z-index: 320;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.voice-modal-backdrop.open {
  display: flex;
  animation: voiceFadeIn 0.16s ease-out;
}

.voice-modal-card {
  position: relative;
  width: 100%;
  max-width: 410px;
  background: #ffffff;
  border-radius: 24px;
  padding: 28px 20px 22px;
  text-align: center;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.32);
}

.voice-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.voice-orb-wrap {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-orb-core {
  position: relative;
  z-index: 2;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.38);
}

.voice-orb-wrap.paused .voice-orb-core {
  background: linear-gradient(135deg, #64748b 0%, #334155 100%);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
}

.voice-orb-wrap.success .voice-orb-core {
  background: linear-gradient(135deg, #10b981 0%, #0d9488 100%);
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.35);
}

.voice-orb-ring {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: rgba(225, 29, 72, 0.22);
  z-index: 1;
  opacity: 0;
}

.voice-orb-wrap.listening .ring-1 {
  animation: voiceOrbRipple 1.6s ease-out infinite;
}

.voice-orb-wrap.listening .ring-2 {
  animation: voiceOrbRipple 1.6s ease-out 0.8s infinite;
}

@keyframes voiceOrbRipple {
  0% {
    transform: scale(0.95);
    opacity: 0.75;
  }
  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

.voice-equalizer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 22px;
  margin-bottom: 10px;
}

.voice-equalizer.hidden {
  display: none;
}

.voice-equalizer span {
  display: block;
  width: 4px;
  height: 7px;
  border-radius: 99px;
  background: var(--primary);
  animation: voiceWaveBar 0.8s ease-in-out infinite;
}

.voice-equalizer span:nth-child(2) { animation-delay: 0.12s; }
.voice-equalizer span:nth-child(3) { animation-delay: 0.24s; }
.voice-equalizer span:nth-child(4) { animation-delay: 0.36s; }
.voice-equalizer span:nth-child(5) { animation-delay: 0.48s; }

.voice-modal-title {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.voice-modal-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.voice-transcript-box {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  padding: 12px 14px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.voice-transcript-placeholder {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}

.voice-fallback-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.voice-kb-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 11px 14px;
  background: var(--primary);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.voice-retry-btn {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 9px 14px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.voice-sample-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.voice-sample-label {
  width: 100%;
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 2px;
}

.voice-sample-chip {
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #be123c;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.voice-feedback-bar {
  margin-top: 7px;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12.5px;
  line-height: 1.45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  animation: voiceFadeIn 0.16s ease-out;
}

.voice-feedback-bar.is-result {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  color: #0f766e;
}

.voice-feedback-bar.is-hint {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.voice-feedback-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

@keyframes voiceWaveBar {
  0%, 100% { height: 5px; opacity: 0.5; }
  50% { height: 18px; opacity: 1; }
}

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

.voice-mini-btn {
  border: none;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
  background: rgba(15, 23, 42, 0.08);
  color: inherit;
}

/* Header Cart Button */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
  transition: transform 0.15s ease, background 0.15s ease;
  font-family: inherit;
}

.cart-trigger-inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cart-btn-svg {
  flex-shrink: 0;
  display: block;
}

.cart-trigger-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.cart-badge {
  background: #fff;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

.cart-label-mobile {
  display: none;
}

/* Hero Banner */
.hero-section {
  margin-top: 16px;
}

.hero-card {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 45%, #f0fdfa 100%);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--primary-dark);
  border: 1px solid var(--primary-border);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 8px;
}

.hero-title span {
  color: var(--primary);
}

.hero-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.hero-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  padding: 14px;
}

.step-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.step-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.step-sub {
  font-size: 11.5px;
  color: var(--text-light);
}

/* Quick Search Tags: Điện thoại 1 dòng vuốt ngang cảm ứng • Máy tính tự rớt dòng không khuất chữ */
.quick-tags-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 0 4px;
  scrollbar-width: none;
}

.quick-tags-bar::-webkit-scrollbar {
  display: none;
}

.quick-tag-more-btn {
  display: none;
  border: 1px dashed #fda4af;
  background: #fff1f2;
  color: var(--primary-dark);
  font-size: 12.2px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all 0.15s ease;
}

.quick-tag-more-btn:hover {
  background: #ffe4e6;
  border-color: var(--primary);
}

@media (min-width: 768px) {
  .quick-tags-bar {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 7px;
  }
  .quick-tags-bar:not(.is-expanded) .quick-tag-extra {
    display: none;
  }
  .quick-tag-more-btn {
    display: inline-flex;
    align-items: center;
  }
}

.quick-tag-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.quick-tag {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  font-family: inherit;
}

.quick-tag:hover,
.quick-tag.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

/* Category Tabs */
.filter-section {
  margin-top: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.category-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
  scrollbar-width: none;
}

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

@media (min-width: 768px) {
  .category-tabs {
    flex-wrap: wrap;
    gap: 7px;
    overflow-x: visible;
  }
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  font-family: inherit;
}

.cat-tab:hover {
  background: #f1f5f9;
  color: var(--text);
}

.cat-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.22);
}

.cat-count {
  font-size: 11.5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: inherit;
}

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

/* Sub Filters Bar */
.sub-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

.filter-select {
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.results-summary {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.results-summary strong {
  color: var(--primary-dark);
}

/* Product Grid */
.product-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 272px), 1fr));
  gap: 15px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 11px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

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

.product-card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.product-thumb {
  width: 74px;
  height: 74px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  position: relative;
  border: 1px solid rgba(15, 23, 42, 0.07);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.product-thumb:hover {
  transform: scale(1.04);
  border-color: var(--primary-border);
}

.product-thumb:active {
  transform: scale(0.97);
}

.product-thumb.has-photo {
  background: #ffffff !important;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
  background: #ffffff;
  display: block;
}

.thumb-zoom-badge {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 19px;
  height: 19px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.54);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  backdrop-filter: blur(2px);
}

.product-thumb:not(.has-photo) .thumb-zoom-badge {
  display: none;
}

.thumb-cat-sua-bot { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); }
.thumb-cat-sua-pha-san { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); }
.thumb-cat-ta-bim { background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%); }
.thumb-cat-an-dam { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); }
.thumb-cat-do-so-sinh { background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%); }

.rank-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  text-align: center;
  padding: 1px 0;
}

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

.product-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.brand-chip {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 2px 8px;
  border-radius: 6px;
}

.cat-chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 6px;
}

.product-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.36;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
  transition: color 0.14s ease;
}

.product-title:hover {
  color: var(--primary-dark);
}

.product-sku-stock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11.5px;
  min-width: 0;
}

.sku-code {
  color: var(--text-light);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
}

/* 1-Line Product Benefit & Age Summary */
.product-short-desc {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.8px;
  font-weight: 600;
  color: #0f766e;
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  border-radius: 8px;
  padding: 4px 8px;
  line-height: 1.35;
  min-width: 0;
}

.product-short-desc-icon {
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1;
}

.product-short-desc-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

/* Unit Selector */
.unit-selector-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  padding: 8px 10px;
}

.unit-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-shield-tag {
  color: var(--amber);
  font-weight: 700;
  font-size: 10.5px;
}

.unit-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.unit-pill-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.unit-pill-btn.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
}

/* Card Action Row */
.card-action-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
  flex-shrink: 0;
  height: 38px;
}

.qty-btn {
  border: none;
  background: transparent;
  width: 26px;
  height: 38px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.qty-btn:hover {
  background: #e2e8f0;
}

.qty-input {
  width: 26px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  outline: none;
}

.add-cart-btn {
  flex: 1 1 auto;
  min-width: 108px;
  white-space: nowrap;
  border: none;
  background: var(--primary);
  color: #fff;
  height: 38px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  transition: background 0.15s ease;
  font-family: inherit;
}

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

.add-cart-btn.added {
  background: var(--accent);
}

.share-prod-btn {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: all 0.15s ease;
  font-family: inherit;
}

.share-prod-btn .share-btn-text {
  display: none;
}

.share-prod-btn:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.share-prod-btn.shared-ok {
  border-color: #10b981;
  background: #ecfdf5;
  color: #047857;
}

.share-icon-svg {
  flex-shrink: 0;
}

/* Shared Product Deep-Link Highlight (?sp=...) */
.shared-product-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  background: linear-gradient(135deg, #fff1f2 0%, #f0fdfa 100%);
  border: 1.5px solid #fda4af;
  border-radius: 12px;
  padding: 9px 12px;
  width: 100%;
}

.shared-banner-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  min-width: 0;
}

.shared-banner-badge {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.shared-banner-name {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.shared-banner-reset-btn {
  border: 1px solid #be123c;
  background: #fff;
  color: #be123c;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.shared-banner-reset-btn:hover {
  background: #be123c;
  color: #fff;
}

.product-card.is-shared-focus {
  border: 2px solid var(--primary);
  box-shadow: 0 10px 26px -6px rgba(225, 29, 72, 0.22);
  background: linear-gradient(180deg, #fffafb 0%, #ffffff 38%);
}

.shared-card-ribbon {
  background: linear-gradient(90deg, #e11d48 0%, #be123c 100%);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 9px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Floating Share Toast Notification */
.nd-share-toast {
  position: fixed;
  bottom: 68px;
  left: 50%;
  transform: translate(-50%, 24px);
  width: calc(100% - 24px);
  max-width: 430px;
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 13px 15px;
  z-index: 350;
  box-shadow: 0 18px 36px -8px rgba(15, 23, 42, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.nd-share-toast.visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.nd-share-toast-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.nd-share-toast-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #34d399;
}

.nd-share-toast-close {
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nd-share-toast-prod {
  font-size: 12.8px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.35;
}

.nd-share-toast-prod span {
  color: #fda4af;
}

.nd-share-toast-hint {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.42;
  margin-bottom: 10px;
}

.nd-share-toast-hint strong {
  color: #fde047;
}

.nd-share-toast-actions {
  display: flex;
  gap: 8px;
}

.nd-share-toast-btn {
  flex: 1;
  border: none;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12.2px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}

.nd-share-toast-btn.primary {
  background: #0284c7;
  color: #fff;
}

.nd-share-toast-btn.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

/* Load More Button */
.load-more-wrap {
  text-align: center;
  margin: 28px 0 12px;
}

.load-more-btn {
  border: 2px solid var(--primary);
  background: #fff;
  color: var(--primary-dark);
  padding: 11px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.load-more-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* Floating Bottom Cart Bar (Ultra-Slim 1-Line + Scroll Auto-Hide) */
.floating-cart-bar {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translate(-50%, 0);
  width: calc(100% - 24px);
  max-width: 520px;
  height: 46px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 5px 6px 5px 10px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 140;
  box-shadow: 0 12px 26px -6px rgba(15, 23, 42, 0.38);
  cursor: pointer;
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
}

.floating-cart-bar.visible {
  display: flex;
}

.floating-cart-bar.scroll-hidden {
  transform: translate(-50%, calc(100% + 28px));
  opacity: 0;
  pointer-events: none;
}

.floating-cart-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.floating-cart-count {
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 12.5px;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-cart-title {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floating-checkout-btn {
  background: linear-gradient(135deg, var(--primary) 0%, #f43f5e 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
}

/* Cart Drawer Modal */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  z-index: 300;
  display: none;
  justify-content: flex-end;
}

.cart-backdrop.open {
  display: flex;
}

.cart-drawer {
  width: 100%;
  max-width: 500px;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 35px rgba(15, 23, 42, 0.2);
  animation: slideInRight 0.22s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.cart-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff1f2;
}

.cart-header h2 {
  font-size: 15.8px;
  font-weight: 800;
  color: var(--primary-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-close-btn {
  border: none;
  background: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-muted);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.price-shield-banner {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 12.5px;
  color: #115e59;
  margin-bottom: 14px;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.cart-item-row {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
}

.cart-item-main {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.cart-item-sub {
  font-size: 12px;
  color: var(--primary-dark);
  font-weight: 600;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-remove-btn {
  border: none;
  background: #fee2e2;
  color: #b91c1c;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}

/* Order Form */
.order-form-section {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.order-form-section h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.form-control {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.delivery-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.delivery-radio {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  background: #f8fafc;
}

.delivery-radio.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.cart-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.submit-order-btn {
  width: 100%;
  border: none;
  background: linear-gradient(135deg, var(--primary) 0%, #e11d48 100%);
  color: #fff;
  padding: 13px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.25);
}

.submit-zalo-btn {
  width: 100%;
  border: 1.5px solid #0284c7;
  background: #f0f9ff;
  color: #0369a1;
  padding: 11px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

/* Order Success Box */
.order-success-box {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  margin-top: 10px;
}

.order-success-box h4 {
  color: #166534;
  font-size: 16px;
  margin-bottom: 6px;
}

.order-code-pill {
  display: inline-block;
  background: #dcfce7;
  color: #14532d;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 14px;
  margin: 6px 0;
}

.order-zalo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.zalo-reopen-btn {
  border: none;
  background: #0284c7;
  color: #fff;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}

.zalo-recopy-btn {
  border: 1px solid #86efac;
  background: #fff;
  color: #166534;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

/* Footer */
.site-footer {
  margin-top: 48px;
  background: #0f172a;
  color: #cbd5e1;
  padding: 36px 0 28px;
  font-size: 13.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 10px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-addr-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(148, 163, 184, 0.45);
  text-underline-offset: 3px;
  transition: color 0.14s ease, text-decoration-color 0.14s ease;
}

.footer-addr-link:hover {
  color: #5eead4;
  text-decoration-color: #5eead4;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
  max-width: 380px;
}

.footer-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(30, 41, 59, 0.85);
  color: #f8fafc;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

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

.footer-social-pill.zalo {
  background: rgba(0, 104, 255, 0.22);
  border-color: rgba(56, 189, 248, 0.45);
  color: #e0f2fe;
}

.footer-social-pill.zalo:hover {
  background: #0068ff;
  border-color: #0068ff;
  color: #ffffff;
}

.footer-social-pill.messenger {
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(165, 180, 252, 0.45);
  color: #e0e7ff;
}

.footer-social-pill.messenger:hover {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #ffffff;
}

.footer-social-pill.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #ffffff;
}

.footer-social-pill.maps:hover {
  background: #0d9488;
  border-color: #0d9488;
  color: #ffffff;
}

@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }
  .top-trust-bar {
    font-size: 11.5px;
    padding: 5px 0;
  }
  .top-trust-inner {
    justify-content: center;
    gap: 4px;
  }
  .trust-pills .trust-pill:nth-child(n+2),
  #syncStatusBadge {
    display: none;
  }
  .header-main {
    flex-wrap: wrap;
    gap: 7px 8px;
    padding: 8px 0;
  }
  .brand-logo {
    flex: 1;
    min-width: 0;
    gap: 8px;
  }
  .brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 16px;
  }
  .brand-text {
    min-width: 0;
  }
  .brand-text h1 {
    font-size: 15.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-text p {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .header-actions {
    flex-shrink: 0;
  }
  .cart-label-desktop {
    display: none;
  }
  .cart-label-mobile {
    display: inline;
  }
  .cart-trigger-btn {
    padding: 7px 11px;
    font-size: 13px;
    gap: 5px;
    white-space: nowrap;
  }
  .search-wrapper {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .search-input-group {
    padding: 3px 5px 3px 13px;
  }
  .search-input {
    font-size: 16px;
    padding: 5px 0;
  }
  .search-input::placeholder {
    font-size: 13px;
  }
  .visual-search-btn,
  .voice-search-btn {
    width: 35px;
    height: 35px;
  }
  .visual-search-btn {
    margin-right: 5px;
  }
  .hero-section {
    margin-top: 10px;
  }
  .hero-card {
    grid-template-columns: 1fr;
    padding: 14px;
    border-radius: 18px;
    gap: 12px;
  }
  .hero-badge {
    font-size: 11px;
    padding: 3px 10px;
    margin-bottom: 7px;
    line-height: 1.35;
  }
  .hero-title {
    font-size: 18px;
    line-height: 1.32;
    margin-bottom: 6px;
  }
  .hero-desc {
    font-size: 12.8px;
    line-height: 1.45;
    margin-bottom: 0;
  }
  .hero-steps {
    grid-template-columns: 1fr;
    padding: 10px 12px;
    gap: 8px;
  }
  .step-item {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 6px;
  }
  .step-sub {
    width: 100%;
    font-size: 11.5px;
  }
  .quick-tags-bar {
    padding: 9px 0 3px;
    gap: 6px;
  }
  .filter-section {
    margin-top: 10px;
    padding: 12px;
  }
  .cat-tab {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 10px;
  }
  .sub-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 10px;
  }
  .filter-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }
  .filter-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 9px 11px;
    font-size: 13px;
  }
  .results-summary {
    font-size: 12.2px;
    line-height: 1.4;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CHẾ ĐỘ KỆ HÀNG 2 CỘT THÔNG MINH KIỂU BÁCH HÓA XANH & NÚT ĐỔI 1/2 CỘT
   ========================================================================== */
.sub-filters-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.mobile-view-toggle {
  display: none;
}

.card-corner-share-btn,
.thumb-compact-cat,
.compact-stock-dot {
  display: none;
}

.card-prebuy-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.bhx-cart-stepper {
  display: none;
  flex: 1;
  min-width: 0;
  height: 38px;
  align-items: center;
  justify-content: space-between;
  background: #ecfdf5;
  border: 1.5px solid #10b981;
  border-radius: 10px;
  overflow: hidden;
}

.product-card.in-cart-active {
  border-color: #6ee7b7;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 34%);
}

.product-card.in-cart-active .card-prebuy-group {
  display: none;
}

.product-card.in-cart-active .bhx-cart-stepper {
  display: flex;
}

.bhx-step-btn {
  width: 34px;
  height: 100%;
  border: none;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: inherit;
  transition: filter 0.12s ease;
}

.bhx-step-btn[data-bhx-act="dec"] {
  background: #d1fae5;
  color: #065f46;
}

.bhx-step-btn[data-bhx-act="inc"] {
  background: #10b981;
  color: #ffffff;
}

.bhx-step-btn:active {
  filter: brightness(0.93);
}

.bhx-step-label {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 12.2px;
  font-weight: 700;
  color: #065f46;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
}

.bhx-step-label strong {
  font-size: 13.2px;
  font-weight: 800;
}

@media (max-width: 768px) {
  .sub-filters-meta {
    width: 100%;
    gap: 8px;
  }

  .mobile-view-toggle {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 2px;
    flex-shrink: 0;
    margin-left: auto;
  }

  .view-mode-btn {
    border: none;
    background: transparent;
    color: #475569;
    font-size: 11.8px;
    font-weight: 700;
    padding: 5px 9px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: all 0.14s ease;
  }

  .view-mode-btn.elder-view-btn:not(.active) {
    color: #0f766e;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
  }

  .view-mode-btn.active {
    background: #ffffff;
    color: var(--primary-dark);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
  }

  .view-mode-btn.elder-view-btn.active {
    background: #0d9488;
    color: #ffffff;
    border: 1px solid #0f766e;
  }

  /* ----------------------------------------------------------------------
     CHẾ ĐỘ 1: 2 CỘT THÔNG MINH (MẶC ĐỊNH TRÊN ĐIỆN THOẠI)
     ---------------------------------------------------------------------- */
  .product-grid.mobile-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 12px;
  }

  .product-grid.mobile-cols-2 .product-card {
    padding: 10px;
    gap: 7px;
    border-radius: 14px;
  }

  .product-grid.mobile-cols-2 .product-card.is-shared-focus {
    grid-column: 1 / -1;
    padding: 12px;
  }

  .product-grid.mobile-cols-2 .product-card:not(.is-shared-focus) .card-corner-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 3;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.92);
    color: #475569;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.08);
  }

  .product-grid.mobile-cols-2 .card-corner-share-btn.shared-ok {
    background: #ecfdf5;
    border-color: #10b981;
    color: #047857;
    font-size: 12px;
    font-weight: 800;
  }

  .product-grid.mobile-cols-2 .product-card:not(.is-shared-focus) .product-card-top {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
  }

  /* Thẻ CÓ ảnh .webp -> Khung ảnh vuông lớn trên đỉnh thẻ */
  .product-grid.mobile-cols-2 .product-card.has-card-photo:not(.is-shared-focus) .product-thumb {
    width: 100%;
    height: 132px;
    border-radius: 11px;
  }

  .product-grid.mobile-cols-2 .product-card.has-card-photo:not(.is-shared-focus) .product-thumb img {
    padding: 4px;
  }

  /* Thẻ CHƯA CÓ ảnh -> Dải tiêu đề mỏng gọn gàng, không để ô vuông trống */
  .product-grid.mobile-cols-2 .product-card.no-card-photo:not(.is-shared-focus) .product-thumb {
    width: 100%;
    height: 36px;
    border-radius: 9px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 6px;
    padding: 0 30px 0 9px;
    font-size: 17px;
  }

  .product-grid.mobile-cols-2 .product-card.no-card-photo:not(.is-shared-focus) .thumb-compact-cat {
    display: inline;
    font-size: 11px;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-grid.mobile-cols-2 .product-card:not(.is-shared-focus) .cat-chip,
  .product-grid.mobile-cols-2 .product-card:not(.is-shared-focus) .product-sku-stock {
    display: none;
  }

  .product-grid.mobile-cols-2 .product-card:not(.is-shared-focus) .product-meta-row {
    justify-content: space-between;
    gap: 4px;
    margin-bottom: 3px;
  }

  .product-grid.mobile-cols-2 .product-card:not(.is-shared-focus) .brand-chip {
    font-size: 10.2px;
    padding: 2px 6px;
    max-width: 68%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-grid.mobile-cols-2 .product-card:not(.is-shared-focus) .compact-stock-dot {
    display: inline;
    font-size: 10.2px;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
  }

  .product-grid.mobile-cols-2 .product-card:not(.is-shared-focus) .product-title {
    font-size: 12.9px;
    line-height: 1.35;
    -webkit-line-clamp: 3;
    margin-bottom: 0;
  }

  .product-grid.mobile-cols-2 .product-card:not(.is-shared-focus) .product-short-desc {
    font-size: 10.8px;
    padding: 3px 6px;
    border-radius: 6px;
  }

  .product-grid.mobile-cols-2 .product-card:not(.is-shared-focus) .unit-selector-block {
    padding: 5px 6px;
    border-radius: 9px;
  }

  .product-grid.mobile-cols-2 .product-card:not(.is-shared-focus) .unit-label {
    display: none;
  }

  .product-grid.mobile-cols-2 .product-card:not(.is-shared-focus) .unit-pills {
    gap: 4px;
  }

  .product-grid.mobile-cols-2 .product-card:not(.is-shared-focus) .unit-pill-btn {
    font-size: 11px;
    padding: 4px 7px;
    border-radius: 6px;
  }

  .product-grid.mobile-cols-2 .product-card:not(.is-shared-focus) .qty-stepper,
  .product-grid.mobile-cols-2 .product-card:not(.is-shared-focus) .share-prod-btn {
    display: none;
  }

  .product-grid.mobile-cols-2 .product-card:not(.is-shared-focus) .add-cart-btn {
    width: 100%;
    min-width: 0;
    height: 36px;
    font-size: 12.6px;
    padding: 0 8px;
    border-radius: 9px;
  }

  .product-grid.mobile-cols-2 .product-card:not(.is-shared-focus) .bhx-cart-stepper {
    height: 36px;
    border-radius: 9px;
  }

  .product-grid.mobile-cols-2 .product-card:not(.is-shared-focus) .bhx-step-btn {
    width: 31px;
    font-size: 16px;
  }

  .product-grid.mobile-cols-2 .product-card:not(.is-shared-focus) .bhx-step-label {
    font-size: 11.4px;
  }

  /* ----------------------------------------------------------------------
     CHẾ ĐỘ 2: 1 CỘT CHỮ & ẢNH TO DỄ ĐỌC (TỐI ƯU CHO CÔ CHÚ LỚN TUỔI)
     ---------------------------------------------------------------------- */
  .product-grid.mobile-cols-1 {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 12px;
  }

  .product-grid.mobile-cols-1 .product-card {
    padding: 14px;
    gap: 11px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .product-grid.mobile-cols-1 .unit-label {
    flex-wrap: wrap;
    gap: 4px;
    font-size: 13px;
  }

  .product-grid.mobile-cols-1 .product-card-top {
    flex-direction: row;
    align-items: center;
    gap: 13px;
  }

  .product-grid.mobile-cols-1 .product-thumb {
    width: 96px;
    height: 96px;
    border-radius: 14px;
    font-size: 30px;
    flex-shrink: 0;
  }

  .product-grid.mobile-cols-1 .product-title {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 800;
    -webkit-line-clamp: 3;
  }

  .product-grid.mobile-cols-1 .product-short-desc {
    font-size: 13px;
    line-height: 1.42;
    padding: 5px 8px;
  }

  .product-grid.mobile-cols-1 .unit-pill-btn {
    font-size: 13.5px;
    padding: 7px 12px;
  }

  .product-grid.mobile-cols-1 .add-cart-btn,
  .product-grid.mobile-cols-1 .bhx-cart-stepper {
    height: 44px;
    font-size: 14.5px;
  }
}

@media (max-width: 360px) {
  .product-grid.mobile-cols-2 {
    gap: 7px;
  }
  .product-grid.mobile-cols-2 .product-card {
    padding: 8px;
  }
  .product-grid.mobile-cols-2 .product-card.has-card-photo:not(.is-shared-focus) .product-thumb {
    height: 116px;
  }
  .product-grid.mobile-cols-1 .share-prod-btn .share-btn-text {
    display: none;
  }
}


/* ==========================================================================
   TRANG CON CHI TIẾT SẢN PHẨM TỨC THÌ (SPA DETAIL VIEW + LIGHTBOX ZOOM)
   Route: /sp/<slug>-<sku> • Phản hồi < 0.05s • Kiến trúc Price-Shield 100%
   ========================================================================== */

body.pd-modal-open {
  overflow: hidden;
}

.pd-backdrop {
  position: fixed;
  inset: 0;
  z-index: 275;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.pd-backdrop.open {
  display: flex;
  animation: pdBackdropFade 0.12s ease-out;
}

@keyframes pdBackdropFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pd-sheet {
  width: 100%;
  max-width: 680px;
  height: min(90vh, 860px);
  background: #f8fafc;
  border-radius: 22px;
  box-shadow: 0 25px 55px -12px rgba(15, 23, 42, 0.36);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  animation: pdSheetSlideIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pdSheetSlideIn {
  from {
    opacity: 0.85;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Sticky Top Header */
.pd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  z-index: 5;
}

.pd-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
  transition: all 0.14s ease;
}

.pd-back-btn:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.pd-back-arrow {
  font-size: 15px;
  line-height: 1;
}

.pd-header-crumb {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pd-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.pd-cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--primary-border);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 12.5px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

.pd-cart-pill-count {
  background: var(--primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pd-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #334155;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.14s ease;
}

.pd-close-btn:hover {
  background: #e2e8f0;
}

/* Scrollable Detail Body */
.pd-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Case A: Product WITH Real WebP Photo */
.pd-photo-hero {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.pd-photo-stage {
  position: relative;
  width: 100%;
  max-width: 280px;
  height: 250px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 16px;
  cursor: zoom-in;
  user-select: none;
}

.pd-photo-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.pd-photo-stage:hover img {
  transform: scale(1.03);
}

.pd-zoom-pill {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11.2px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}

/* Case B: Product WITHOUT Custom Photo (Compact Header + Request Photo Button) */
.pd-compact-hero {
  background: linear-gradient(135deg, #ffffff 0%, #fffafb 55%, #f0fdfa 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  box-shadow: var(--shadow-sm);
}

.pd-compact-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pd-compact-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.pd-req-photo-btn {
  width: 100%;
  border: 1.5px dashed #0284c7;
  background: #f0f9ff;
  color: #0369a1;
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 12.6px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.pd-req-photo-btn:hover {
  background: #e0f2fe;
  border-style: solid;
}

.pd-req-photo-note {
  display: none;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 12px;
  line-height: 1.45;
}

.pd-req-photo-note.visible {
  display: block;
}

/* Shared Title & Meta inside Hero */
.pd-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.pd-main-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.36;
  letter-spacing: -0.2px;
}

.pd-sku-stock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}

.pd-sku-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.pd-benefit-highlight {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  color: #0f766e;
  border-radius: 12px;
  padding: 9px 11px;
  font-size: 12.8px;
  font-weight: 700;
  line-height: 1.42;
}

/* Detail Section Cards */
.pd-section-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 15px;
  box-shadow: var(--shadow-sm);
}

.pd-section-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Specs Grid */
.pd-specs-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.pd-spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed #f1f5f9;
  font-size: 12.8px;
}

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

.pd-spec-key {
  color: var(--text-light);
  font-weight: 600;
  flex-shrink: 0;
}

.pd-spec-val {
  color: var(--text);
  font-weight: 700;
  text-align: right;
  min-width: 0;
}

.pd-spec-val.shield {
  color: var(--amber);
}

/* Nutrition Deep Knowledge Card */
.pd-nutri-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.pd-nutri-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  padding: 8px 10px;
}

.pd-nutri-pill-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 2px;
}

.pd-nutri-pill-val {
  font-size: 12.3px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.pd-nutri-summary {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 11px;
  padding: 9px 11px;
  font-size: 12.6px;
  color: #881337;
  line-height: 1.48;
  margin-bottom: 8px;
}

.pd-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.6px;
  color: var(--text-muted);
  line-height: 1.46;
}

.pd-bullet-list li {
  position: relative;
  padding-left: 16px;
}

.pd-bullet-list li::before {
  content: "•";
  position: absolute;
  left: 3px;
  color: var(--primary);
  font-weight: 800;
}

/* Diaper Weight-to-Size Comparison Table */
.pd-size-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pd-size-row {
  display: grid;
  grid-template-columns: 84px 96px 1fr;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 12.3px;
}

.pd-size-row.is-active {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border: 1.5px solid var(--primary);
  box-shadow: 0 3px 10px rgba(225, 29, 72, 0.14);
}

.pd-size-code {
  font-weight: 800;
  color: var(--text);
}

.pd-size-row.is-active .pd-size-code {
  color: var(--primary-dark);
}

.pd-size-weight {
  font-weight: 700;
  color: #0f766e;
}

.pd-size-note {
  color: var(--text-muted);
  font-size: 11.8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.pd-size-active-tag {
  background: var(--primary);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.pd-size-tip {
  margin-top: 9px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  color: #115e59;
  line-height: 1.42;
}

/* Related Products Shelf ("Cùng dòng / Kích cỡ khác sẵn tại kho") */
.pd-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pd-rel-card {
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: 12px;
  padding: 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.14s ease;
  min-width: 0;
}

.pd-rel-card:hover {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.pd-rel-thumb {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.pd-rel-thumb.has-photo {
  background: #ffffff !important;
}

.pd-rel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
}

.pd-rel-info {
  flex: 1;
  min-width: 0;
}

.pd-rel-badge {
  display: inline-block;
  font-size: 10.2px;
  font-weight: 800;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 1px 6px;
  border-radius: 5px;
  margin-bottom: 2px;
}

.pd-rel-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sticky Bottom Order & Advisor Bar */
.pd-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 10px 14px calc(11px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.06);
  z-index: 5;
}

.pd-footer-units {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.pd-footer-units::-webkit-scrollbar {
  display: none;
}

.pd-footer-unit-lbl {
  font-size: 11.8px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.pd-unit-pill {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all 0.14s ease;
}

.pd-unit-pill.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.pd-footer-main-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pd-qty-box {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 11px;
  background: #f8fafc;
  height: 42px;
  overflow: hidden;
  flex-shrink: 0;
}

.pd-qty-btn {
  width: 34px;
  height: 42px;
  border: none;
  background: transparent;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.pd-qty-btn:active {
  background: #e2e8f0;
}

.pd-qty-input {
  width: 32px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
  outline: none;
}

.pd-buy-btn {
  flex: 1;
  height: 42px;
  border: none;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  font-size: 14.2px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
  transition: transform 0.12s ease, background 0.15s ease;
}

.pd-buy-btn.added {
  background: linear-gradient(135deg, #10b981 0%, #0d9488 100%);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.28);
}

.pd-footer-sub-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 8px;
}

.pd-advisor-btn {
  height: 36px;
  border: 1px solid #99f6e4;
  background: #f0fdfa;
  color: #0f766e;
  border-radius: 10px;
  font-size: 12.4px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.14s ease;
}

.pd-advisor-btn:hover {
  background: #ccfbf1;
}

.pd-share-btn {
  height: 36px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  border-radius: 10px;
  font-size: 12.4px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.14s ease;
}

.pd-share-btn:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.pd-share-btn.shared-ok {
  border-color: #10b981;
  background: #ecfdf5;
  color: #047857;
}

/* Fullscreen Lightbox / Zoom Modal */
.pd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 340;
  background: rgba(15, 23, 42, 0.95);
  display: none;
  flex-direction: column;
}

.pd-lightbox.open {
  display: flex;
  animation: pdBackdropFade 0.12s ease-out;
}

.pd-lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.pd-lightbox-caption {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pd-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pd-lightbox-zoom-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

.pd-lightbox-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 17px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pd-lightbox-stage {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  touch-action: pinch-zoom pan-x pan-y;
}

.pd-lightbox-stage.is-zoomed {
  align-items: flex-start;
  justify-content: flex-start;
}

.pd-lightbox-img {
  max-width: min(92vw, 560px);
  max-height: 76vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #ffffff;
  border-radius: 16px;
  padding: 12px;
  cursor: zoom-in;
  transition: width 0.18s ease;
}

.pd-lightbox-stage.is-zoomed .pd-lightbox-img {
  max-width: none;
  max-height: none;
  width: 960px;
  margin: 0 auto;
  cursor: zoom-out;
}

.pd-lightbox-hint {
  text-align: center;
  padding: 9px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  font-size: 12px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.85);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .pd-backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .pd-sheet {
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    border: none;
    animation: pdMobileSlideIn 0.14s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes pdMobileSlideIn {
    from {
      transform: translateX(24px);
      opacity: 0.9;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
  .pd-body {
    padding: 12px;
    gap: 10px;
  }
  .pd-photo-stage {
    height: 215px;
    max-width: 240px;
  }
  .pd-main-title {
    font-size: 16.5px;
  }
}

@media (max-width: 480px) {
  .pd-nutri-badges {
    grid-template-columns: 1fr;
  }
  .pd-related-grid {
    grid-template-columns: 1fr;
  }
  .pd-size-row {
    grid-template-columns: 74px 82px 1fr;
    padding: 7px 8px;
    font-size: 11.8px;
  }
  .pd-footer-sub-row {
    grid-template-columns: 1.3fr 0.9fr;
  }
}

/* ==========================================================================
   ĐỊNH VỊ GPS 1 CHẠM & BẢN ĐỒ KÉO GHIM GIAO HÀNG (0-VND • PRICE-SHIELD SAFE)
   ========================================================================== */

.addr-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.addr-label-row label {
  margin-bottom: 0;
}

.pickup-store-map-link {
  font-size: 12px;
  font-weight: 700;
  color: #0f766e;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  padding: 3px 10px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.pickup-store-map-link:hover {
  background: #ccfbf1;
}

.addr-optional-note {
  font-size: 11.8px;
  color: #0f766e;
  background: #f0fdfa;
  border: 1px dashed #99f6e4;
  border-radius: 9px;
  padding: 6px 9px;
  margin-bottom: 8px;
  line-height: 1.38;
}

.addr-input-voice-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.addr-input-voice-row .form-control {
  flex: 1;
  min-width: 0;
}

.addr-voice-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1.5px solid #fda4af;
  background: #fff1f2;
  color: #be123c;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.addr-voice-btn:hover {
  background: #ffe4e6;
}

.addr-voice-btn.listening {
  background: #e11d48;
  border-color: #be123c;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.22);
}

.delivery-loc-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.loc-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  padding: 10px 10px;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
}

.loc-gps-btn {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

.loc-gps-btn:hover {
  background: #dcfce7;
  border-color: #4ade80;
}

.loc-map-btn {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.loc-map-btn:hover {
  background: #dbeafe;
  border-color: #60a5fa;
}

.loc-action-btn:disabled {
  opacity: 0.68;
  cursor: wait;
}

.pinned-loc-badge {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 12.3px;
  color: #065f46;
  line-height: 1.42;
}

.pinned-loc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.pinned-loc-title {
  font-weight: 800;
  color: #047857;
}

.pinned-loc-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pinned-mini-btn {
  border: 1px solid #a7f3d0;
  background: #ffffff;
  color: #065f46;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.pinned-mini-btn.danger {
  border-color: #fecdd3;
  color: #be123c;
  background: #fff1f2;
}

.pinned-loc-sub {
  margin-top: 3px;
  font-size: 11.8px;
  color: #0f766e;
}

.addr-hint-line {
  margin-top: 5px;
  font-size: 11.8px;
  color: #0369a1;
  line-height: 1.38;
}

/* Modal Bản đồ kéo ghim */
.map-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1250;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.map-picker-backdrop.open {
  display: flex;
}

.map-picker-sheet {
  width: 100%;
  max-width: 560px;
  height: min(88vh, 690px);
  height: min(88dvh, 690px);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.map-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  flex-shrink: 0;
}

.map-picker-head-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.map-picker-head-ico {
  font-size: 22px;
  line-height: 1;
}

.map-picker-head-left h3 {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.map-picker-head-left p {
  font-size: 12px;
  color: #64748b;
  margin: 1px 0 0;
}

.map-picker-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.map-modal-notice {
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  color: #92400e;
  font-size: 12px;
  padding: 7px 14px;
  line-height: 1.4;
  flex-shrink: 0;
}

.map-search-bar {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.map-search-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 13.5px;
  font-family: inherit;
  background: #ffffff;
  outline: none;
}

.map-search-input:focus {
  border-color: var(--primary);
}

.map-search-btn {
  border: none;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  background: #0f172a;
  color: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
}

.map-search-results {
  max-height: 165px;
  overflow-y: auto;
  background: #ffffff;
  border-bottom: 1px solid #cbd5e1;
  flex-shrink: 0;
}

.map-search-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  padding: 8px 14px;
  font-size: 12.6px;
  color: #1e293b;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.38;
}

.map-search-item:hover {
  background: #f0f9ff;
}

.map-stage-wrap {
  position: relative;
  flex: 1;
  min-height: 240px;
  background: #e2e8f0;
  overflow: hidden;
}

.nd-leaflet-map {
  width: 100%;
  height: 100%;
  z-index: 1;
  touch-action: none;
}

.nd-leaflet-map .leaflet-control-zoom {
  border: 1.5px solid #94a3b8 !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2) !important;
}

.nd-leaflet-map .leaflet-control-zoom a {
  width: 44px !important;
  height: 44px !important;
  line-height: 42px !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  background: rgba(255, 255, 255, 0.97) !important;
}

.map-loading-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  z-index: 2;
}

.map-layer-switch {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 500;
  display: inline-flex;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 3px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
}

.map-layer-btn {
  border: none;
  background: transparent;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.map-layer-btn.active {
  background: var(--primary);
  color: #ffffff;
}

.map-myloc-fab {
  position: absolute;
  right: 10px;
  bottom: 12px;
  z-index: 500;
  border: 1px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  font-size: 12.2px;
  font-weight: 800;
  font-family: inherit;
  padding: 7px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
  cursor: pointer;
}

.map-center-pin-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -100%);
  z-index: 480;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.14s ease;
}

.map-center-pin-wrap.is-panning {
  transform: translate(-50%, -114%);
}

.map-center-pin-bubble {
  background: #e11d48;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(225, 29, 72, 0.35);
  margin-bottom: 1px;
}

.map-center-pin-head {
  font-size: 32px;
  line-height: 1;
  filter: drop-shadow(0 4px 5px rgba(15, 23, 42, 0.32));
}

.map-center-pin-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid #ffffff;
  margin-top: -3px;
}

.nd-store-map-marker {
  background: #0f766e;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.28);
}

.map-picker-footer {
  padding: 11px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.map-live-summary {
  margin-bottom: 9px;
}

.map-live-dist {
  font-size: 13.3px;
  font-weight: 800;
  color: #047857;
}

.map-live-coord {
  font-size: 11.8px;
  color: #64748b;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-confirm-pin-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14.2px;
  font-weight: 800;
  font-family: inherit;
  background: linear-gradient(135deg, #059669, #0d9488);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.26);
}

@media (max-width: 640px) {
  .map-picker-backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .map-picker-sheet {
    max-width: 100%;
    height: 92vh;
    height: 92dvh;
    border-radius: 20px 20px 0 0;
    border: none;
  }
  .delivery-loc-tools {
    gap: 6px;
  }
  .loc-action-btn {
    padding: 8px 7px;
    font-size: 12.2px;
  }
}

/* ==========================================================================
   NHÓM SẢN PHẨM TƯ VẤN (/tu-van?sp=...&t=...) & CHIA SẺ GIỎ HÀNG 1 CHẠM
   Khớp 100% Shared URL Contract với care.namdung.com • Price-Shield 100%
   ========================================================================== */

body.advisor-mode-active .hero-section,
body.advisor-mode-active .filter-section {
  display: none;
}

.advisor-banner-wrap {
  margin-top: 14px;
  margin-bottom: 4px;
}

.advisor-banner-card {
  background: linear-gradient(135deg, #fff1f2 0%, #ffffff 48%, #f0fdfa 100%);
  border: 2px solid #fda4af;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 10px 26px -8px rgba(225, 29, 72, 0.18);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.advisor-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.advisor-banner-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, #e11d48 0%, #be123c 100%);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}

.advisor-cols-switch {
  display: none;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 2px;
}

.advisor-col-btn {
  border: none;
  background: transparent;
  color: #475569;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
}

.advisor-col-btn.active {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.advisor-banner-title {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.32;
  letter-spacing: -0.2px;
}

.advisor-banner-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 13px;
  color: #334155;
  font-weight: 600;
}

.advisor-stock-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  font-size: 12.2px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}

.advisor-missing-note {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 12.2px;
  line-height: 1.42;
}

.advisor-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.advisor-add-all-btn {
  flex: 1.4 1 250px;
  min-height: 44px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #ffffff;
  font-size: 14.2px;
  font-weight: 800;
  padding: 10px 16px;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.28);
  transition: transform 0.14s ease, filter 0.14s ease;
}

.advisor-add-all-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.advisor-add-all-btn:active {
  transform: scale(0.98);
}

.advisor-add-all-btn.added-ok {
  background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.28);
}

.advisor-exit-btn {
  flex: 1 1 210px;
  min-height: 42px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 14px;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.14s ease;
}

.advisor-exit-btn:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.advisor-card-ribbon {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  color: #0f766e;
  font-size: 11.2px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Khối Chia sẻ danh sách sản phẩm gọn trong Ngăn Giỏ Hàng */
.cart-share-group-wrap {
  margin: -6px 0 16px;
}

.cart-share-toggle-btn {
  width: 100%;
  border: 1px dashed #0d9488;
  background: #f0fdfa;
  color: #0f766e;
  border-radius: 11px;
  padding: 9px 12px;
  font-size: 12.8px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: all 0.15s ease;
}

.cart-share-toggle-btn:hover {
  background: #ccfbf1;
  border-style: solid;
}

.cart-share-panel {
  margin-top: 8px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 13px;
  padding: 12px;
  display: none;
  flex-direction: column;
  gap: 9px;
}

.cart-share-panel.open {
  display: flex;
}

.cart-share-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cart-share-panel-title {
  font-size: 12.8px;
  font-weight: 800;
  color: #0f172a;
}

.cart-share-char-count {
  font-size: 11.2px;
  font-weight: 700;
  color: #64748b;
}

.cart-share-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: 9px;
  padding: 9px 11px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text);
  outline: none;
}

.cart-share-input:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.cart-share-input.has-error {
  border-color: #e11d48;
  background: #fff1f2;
}

.cart-share-hint {
  font-size: 11.6px;
  color: #64748b;
  line-height: 1.4;
}

.cart-share-error {
  display: none;
  background: #fff1f2;
  border: 1px solid #fda4af;
  color: #be123c;
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.cart-share-error.visible {
  display: block;
}

.cart-share-ok {
  display: none;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-all;
}

.cart-share-ok.visible {
  display: block;
}

.cart-share-btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cart-share-copy-btn {
  flex: 1.4 1 170px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #ffffff;
  padding: 10px 12px;
  font-size: 12.8px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cart-share-copy-btn:disabled,
.cart-share-native-btn:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.cart-share-native-btn {
  flex: 1 1 120px;
  border: 1px solid #0284c7;
  border-radius: 10px;
  background: #f0f9ff;
  color: #0369a1;
  padding: 9px 11px;
  font-size: 12.6px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

@media (max-width: 768px) {
  .advisor-banner-wrap {
    margin-top: 10px;
  }
  .advisor-banner-card {
    padding: 13px 14px;
    border-radius: 16px;
    gap: 9px;
  }
  .advisor-cols-switch {
    display: inline-flex;
  }
  .advisor-banner-title {
    font-size: 16.5px;
  }
  .advisor-banner-sub {
    font-size: 12.2px;
  }
  .advisor-banner-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .advisor-add-all-btn,
  .advisor-exit-btn {
    flex: none;
    width: 100%;
  }
  .product-grid.mobile-cols-2 .advisor-card-ribbon {
    font-size: 10.4px;
    padding: 3px 6px;
    padding-right: 28px;
  }
}

.footer-seo-directory {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 12px;
  line-height: 1.5;
}

.footer-seo-label {
  color: #cbd5e1;
  font-weight: 700;
}

.footer-seo-directory a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-seo-directory a:hover {
  color: #f8fafc;
  text-decoration: underline;
}

/* ==========================================================================
   TÌM KIẾM BẰNG HÌNH ẢNH (AI VISION <= 40KB WEBP) & QUÉT MÃ VẠCH EAN-13
   Kiến trúc Price-Shield 100% • Vận hành miễn phí trên Cloudflare Edge
   ========================================================================== */

body.vs-modal-open {
  overflow: hidden;
}

.vs-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.64);
  backdrop-filter: blur(5px);
  z-index: 330;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.vs-modal-backdrop.open {
  display: flex;
  animation: voiceFadeIn 0.16s ease-out;
}

.vs-modal-card {
  width: 100%;
  max-width: 470px;
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 50px -12px rgba(15, 23, 42, 0.36);
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  max-height: 92dvh;
}

.vs-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #f1f5f9;
  background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 65%);
}

.vs-modal-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.vs-modal-head-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  color: #ffffff;
  font-size: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.25);
}

.vs-modal-head-left h3 {
  font-size: 15.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.vs-modal-head-left p {
  font-size: 11.8px;
  color: #475569;
  margin-top: 1px;
}

.vs-modal-close {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vs-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px 14px 4px;
  background: #ffffff;
}

.vs-mode-tab {
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  border-radius: 11px;
  padding: 9px 10px;
  font-size: 13.2px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.14s ease;
}

.vs-mode-tab.active {
  border-color: #0d9488;
  background: #f0fdfa;
  color: #0f766e;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.14);
}

.vs-pane {
  padding: 12px 14px 16px;
  overflow-y: auto;
}

.vs-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.vs-action-grid.is-dragover {
  outline: 2px dashed #0d9488;
  outline-offset: 4px;
  border-radius: 16px;
}

.vs-action-card {
  border-radius: 15px;
  padding: 15px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.vs-action-card:active {
  transform: scale(0.97);
}

.vs-action-card.primary {
  border: 1.5px solid #99f6e4;
  background: linear-gradient(160deg, #f0fdfa 0%, #ccfbf1 100%);
  color: #0f766e;
}

.vs-action-card.secondary {
  border: 1.5px solid #fecdd3;
  background: linear-gradient(160deg, #fff1f2 0%, #ffe4e6 100%);
  color: #be123c;
}

.vs-action-ico {
  font-size: 28px;
  line-height: 1.1;
}

.vs-action-title {
  font-size: 13.6px;
  font-weight: 800;
  color: #0f172a;
}

.vs-action-sub {
  font-size: 11.4px;
  color: #475569;
  line-height: 1.35;
}

/* In-Browser Live Photo Viewfinder (getUserMedia • Zero External Camera OOM) */
.vs-photo-live-wrap {
  margin-bottom: 4px;
}

.vs-photo-stage {
  position: relative;
  width: 100%;
  height: 276px;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
}

.vs-photo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vs-shutter-flash {
  position: absolute;
  inset: 0;
  z-index: 7;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease-out;
}

.vs-shutter-flash.is-flashing {
  opacity: 0.85;
}

.vs-photo-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 46px 14px 10px;
}

.vs-photo-frame-box {
  position: relative;
  width: 82%;
  max-width: 288px;
  flex: 1;
  max-height: 184px;
  border-radius: 16px;
  box-shadow: 0 0 0 999px rgba(15, 23, 42, 0.24);
}

.vs-photo-back-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.vs-photo-shutter-bar {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.vs-photo-side-btn {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 12px;
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
}

.vs-photo-side-btn.subtle {
  color: #475569;
  border-style: dashed;
}

.vs-shutter-snap-btn {
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #ffffff;
  padding: 10px 18px;
  font-size: 14.2px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.34);
  transition: transform 0.12s ease, opacity 0.14s ease;
}

.vs-shutter-snap-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.vs-shutter-snap-btn:disabled {
  opacity: 0.52;
  cursor: wait;
}

.vs-shutter-ring {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.2px solid #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vs-shutter-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
}

.vs-switch-barcode-strip {
  margin-top: 10px;
  width: 100%;
  border: 1px dashed #0d9488;
  background: #f8fafc;
  color: #0f766e;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12.4px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  transition: background 0.14s ease;
}

.vs-switch-barcode-strip:hover {
  background: #f0fdfa;
}

.vs-process-card {
  margin-top: 12px;
  background: #f0fdfa;
  border: 1.5px solid #5eead4;
  border-radius: 14px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.vs-preview-thumb {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #99f6e4;
  background: #ffffff;
  flex-shrink: 0;
}

.vs-process-info {
  flex: 1;
  min-width: 0;
}

.vs-process-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f766e;
  line-height: 1.35;
}

.vs-process-meta {
  font-size: 11.4px;
  color: #475569;
  margin-top: 2px;
}

.vs-shimmer-bar {
  margin-top: 7px;
  height: 5px;
  border-radius: 99px;
  background: #ccfbf1;
  overflow: hidden;
  position: relative;
}

.vs-shimmer-bar span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #14b8a6, #e11d48);
  animation: vsProgressSlide 1.1s ease-in-out infinite alternate;
}

@keyframes vsProgressSlide {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(138%);
  }
}

.vs-modal-error-box {
  margin-top: 12px;
  background: #fffbeb;
  border: 1.5px solid #fcd34d;
  border-radius: 13px;
  padding: 11px 12px;
}

.vs-modal-err-text {
  font-size: 12.6px;
  font-weight: 600;
  color: #92400e;
  line-height: 1.42;
  margin-bottom: 9px;
}

.vs-modal-zalo-btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}

.vs-modal-tip {
  margin-top: 11px;
  font-size: 11.6px;
  color: #64748b;
  line-height: 1.42;
  text-align: center;
}

/* Barcode Live Scanner Stage */
.vs-scanner-stage {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
}

.vs-barcode-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vs-scan-reticle {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: radial-gradient(circle at center, transparent 46%, rgba(15, 23, 42, 0.52) 100%);
}

.vs-reticle-box {
  position: relative;
  width: 78%;
  max-width: 280px;
  height: 126px;
  border-radius: 14px;
  box-shadow: 0 0 0 999px rgba(15, 23, 42, 0.34);
}

.vs-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: #2dd4bf;
  border-style: solid;
}

.vs-corner.tl {
  top: -1px;
  left: -1px;
  border-width: 3.5px 0 0 3.5px;
  border-top-left-radius: 12px;
}

.vs-corner.tr {
  top: -1px;
  right: -1px;
  border-width: 3.5px 3.5px 0 0;
  border-top-right-radius: 12px;
}

.vs-corner.bl {
  bottom: -1px;
  left: -1px;
  border-width: 0 0 3.5px 3.5px;
  border-bottom-left-radius: 12px;
}

.vs-corner.br {
  bottom: -1px;
  right: -1px;
  border-width: 0 3.5px 3.5px 0;
  border-bottom-right-radius: 12px;
}

.vs-laser-line {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2.5px;
  background: linear-gradient(90deg, transparent 0%, #fb7185 20%, #e11d48 50%, #fb7185 80%, transparent 100%);
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.85);
  animation: vsLaserSweep 1.7s ease-in-out infinite alternate;
}

@keyframes vsLaserSweep {
  from {
    top: 14px;
  }
  to {
    top: 108px;
  }
}

.vs-engine-badge {
  position: relative;
  z-index: 2;
  background: rgba(15, 23, 42, 0.78);
  color: #f8fafc;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.vs-torch-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.vs-torch-btn.active {
  background: #f59e0b;
  color: #0f172a;
  border-color: #fde68a;
}

.vs-camera-denied {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: rgba(15, 23, 42, 0.94);
  color: #f8fafc;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 9px;
}

.vs-denied-ico {
  font-size: 30px;
}

.vs-denied-msg {
  font-size: 12.6px;
  line-height: 1.45;
  color: #e2e8f0;
}

.vs-fallback-snap-btn {
  border: none;
  border-radius: 11px;
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  color: #ffffff;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}

.vs-snap-frame-btn {
  margin-top: 9px;
  width: 100%;
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #be123c;
  border-radius: 11px;
  padding: 9px 12px;
  font-size: 12.4px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.vs-manual-code-row {
  margin-top: 9px;
  display: flex;
  gap: 7px;
}

.vs-manual-barcode-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
}

.vs-manual-barcode-input:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.14);
}

.vs-manual-barcode-btn {
  border: none;
  border-radius: 10px;
  background: #0f766e;
  color: #ffffff;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
}

/* Thanh Thông Báo Kết Quả Nhận Diện Hình Ảnh & Mã Vạch (#visualSearchBannerWrap) */
.vs-banner-wrap {
  margin-top: 12px;
  margin-bottom: 4px;
}

.vs-banner-card {
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 8px 22px -8px rgba(15, 23, 42, 0.12);
}

.vs-banner-card.is-matched {
  background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 55%, #fffbeb 100%);
  border: 1.5px solid #5eead4;
}

.vs-banner-card.is-empty {
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 55%, #f0f9ff 100%);
  border: 1.5px solid #fcd34d;
}

.vs-banner-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vs-banner-thumb {
  width: 52px;
  height: 52px;
  border-radius: 11px;
  object-fit: cover;
  border: 1.5px solid #99f6e4;
  background: #ffffff;
  flex-shrink: 0;
}

.vs-banner-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #ccfbf1;
  color: #0f766e;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vs-banner-body {
  flex: 1;
  min-width: 0;
}

.vs-banner-top-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 3px;
}

.vs-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}

.vs-banner-badge.ok {
  background: #0d9488;
  color: #ffffff;
}

.vs-banner-badge.warn {
  background: #d97706;
  color: #ffffff;
}

.vs-banner-tech-pill {
  font-size: 11px;
  font-weight: 700;
  color: #0f766e;
  background: #ccfbf1;
  padding: 2px 8px;
  border-radius: 999px;
}

.vs-banner-text {
  font-size: 13.8px;
  color: #0f172a;
  line-height: 1.42;
}

.vs-relaxed-note {
  font-size: 12.4px;
  color: #475569;
}

.vs-mom-safety-note {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 11px;
  padding: 8px 11px;
  font-size: 12.5px;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.vs-mom-safety-note.is-zalo-guide {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #075985;
}

.vs-safety-ico {
  font-size: 15px;
  line-height: 1.2;
  flex-shrink: 0;
}

.vs-banner-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.vs-banner-btn {
  border-radius: 10px;
  padding: 8px 13px;
  font-size: 12.6px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: filter 0.14s ease, transform 0.14s ease;
}

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

.vs-banner-btn.zalo-primary {
  border: none;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  padding: 10px 16px;
  font-size: 13.5px;
  box-shadow: 0 5px 14px rgba(2, 132, 199, 0.28);
}

.vs-banner-btn.zalo-soft {
  border: 1px solid #7dd3fc;
  background: #f0f9ff;
  color: #0369a1;
}

.vs-banner-btn.secondary {
  border: 1px solid #99f6e4;
  background: #ffffff;
  color: #0f766e;
}

.vs-banner-btn.ghost {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
}

/* Empty Grid 1-Tap Zalo OA Action */
.empty-grid-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.empty-zalo-oa-btn {
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(2, 132, 199, 0.26);
  transition: transform 0.14s ease, filter 0.14s ease;
}

.empty-zalo-oa-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .vs-modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .vs-modal-card {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .vs-scanner-stage {
    height: 215px;
  }
  .vs-photo-stage {
    height: min(44vh, 275px);
    min-height: 220px;
  }
  .vs-photo-side-btn {
    font-size: 11.5px;
    padding: 9px 6px;
  }
  .vs-shutter-snap-btn {
    padding: 10px 15px;
    font-size: 13.8px;
  }
  .vs-banner-card {
    padding: 12px 13px;
  }
  .vs-banner-text {
    font-size: 13px;
  }
  .vs-banner-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .vs-banner-btn {
    width: 100%;
  }
  .empty-grid-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .empty-zalo-oa-btn {
    width: 100%;
  }
}

/* ==========================================================================
   HÌNH ẢNH THỰC TẾ CỬA HÀNG TẠI ĐƯỜNG 30/4, GIỒNG RIỀNG (TRUST SHOWCASE)
   ========================================================================== */
.store-showcase-section {
  background: linear-gradient(180deg, #f8fafc 0%, #fff1f2 100%);
  border-top: 1px solid #e2e8f0;
  padding: 28px 0 32px;
  margin-top: 24px;
}

.store-showcase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.store-showcase-title {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
}

.store-showcase-sub {
  font-size: 13.5px;
  color: #475569;
  margin: 0;
}

.store-showcase-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0d9488;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 15px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.22);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.store-showcase-map-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.store-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.store-photo-card {
  margin: 0;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #fecdd3;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
}

.store-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  display: block;
}

.store-photo-card figcaption {
  padding: 9px 11px 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.store-photo-card figcaption strong {
  font-size: 12.8px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.store-photo-card figcaption span {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .store-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .store-showcase-section {
    padding: 20px 0 24px;
  }
  .store-showcase-title {
    font-size: 16.5px;
  }
  .store-showcase-sub {
    font-size: 12.5px;
  }
  .store-showcase-map-btn {
    width: 100%;
    justify-content: center;
  }
  .store-photo-card figcaption {
    padding: 7px 9px 9px;
  }
  .store-photo-card figcaption strong {
    font-size: 12px;
  }
  .store-photo-card figcaption span {
    font-size: 11px;
  }
}
