/* ==========================================================================
   CHIAKI.VN PIXEL-PERFECT EXACT CLONE THEME
   Header: #43bfec (Chiaki Cyan-Blue), Clean White / Pastel Layout
   Strict Typography: SVN-Integral CF, SVN-Poppins, SVN-Acta
   ========================================================================== */

/* 1. EMBEDDED STRICT FONTS */
@font-face {
  font-family: 'SVN-Integral CF';
  src: url('https://pub-447bd44dfdac4938912655c855b8631c.r2.dev/fonts/SVN-IntegralCF-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'SVN-Integral CF';
  src: url('https://pub-447bd44dfdac4938912655c855b8631c.r2.dev/fonts/SVN-IntegralCF-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'SVN-Poppins';
  src: url('https://pub-447bd44dfdac4938912655c855b8631c.r2.dev/fonts/SVN-Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'SVN-Poppins';
  src: url('https://pub-447bd44dfdac4938912655c855b8631c.r2.dev/fonts/SVN-Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'SVN-Acta';
  src: url('https://pub-447bd44dfdac4938912655c855b8631c.r2.dev/fonts/SVN-Acta-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

/* 2. VARIABLES */
:root {
  --chiaki-cyan: #43bfec;
  --chiaki-cyan-dark: #22aade;
  --chiaki-blue-btn: #0284c7;
  --chiaki-red: #e11d48;
  --chiaki-red-price: #d70018;
  --chiaki-orange: #ff6f00;
  --chiaki-orange-badge: #f97316;
  --chiaki-gray-bg: #f5f6f8;
  --chiaki-text-dark: #1e293b;
  --chiaki-text-muted: #64748b;
  
  --font-heading: 'SVN-Integral CF', 'Integral CF', sans-serif;
  --font-body: 'SVN-Poppins', 'Poppins', sans-serif;
  --font-quote: 'SVN-Acta', 'Acta', serif;
}

/* 3. RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--chiaki-gray-bg);
  color: var(--chiaki-text-dark);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

.chiaki-wrapper {
  max-width: 480px;
  margin: 0 auto;
  background-color: #ffffff;
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  padding-bottom: 24px;
}

@media (min-width: 680px) {
  .chiaki-wrapper {
    max-width: 540px;
  }
}

/* 4. SMART TOP APP BANNER */
.smart-app-banner {
  background: #fdf4eb;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #fed7aa;
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.banner-close-btn {
  background: transparent;
  border: none;
  color: #78350f;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 4px;
}

.banner-scooter-icon {
  font-size: 22px;
}

.banner-title-box {
  display: flex;
  flex-direction: column;
}

.banner-title-bold {
  font-size: 11px;
  font-weight: 700;
  color: #0284c7;
  text-transform: uppercase;
}

.banner-subtitle {
  font-size: 11px;
  font-weight: 700;
  color: #ea580c;
  text-transform: uppercase;
}

.banner-open-btn {
  background: #f97316;
  border: none;
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.35);
}

/* 5. SIGNATURE CHIAKI HEADER */
.chiaki-header {
  background-color: var(--chiaki-cyan);
  padding: 10px 14px 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(34, 170, 222, 0.2);
}

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.header-left-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-icon-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.chiaki-logo {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  text-decoration: none;
}
.chiaki-logo span {
  font-size: 16px;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-icon-wrapper {
  position: relative;
  cursor: pointer;
}

.cart-badge-red {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ffffff;
}

/* Floating White Search Box */
.header-search-bar {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.header-search-bar:focus-within {
  border-color: #0284c7;
  box-shadow: 0 3px 12px rgba(2, 132, 199, 0.2);
}

.search-input-field {
  flex-grow: 1;
  height: 40px;
  border: none;
  padding: 0 10px 0 14px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 400;
  color: #1e293b;
  outline: none;
}
.search-input-field::placeholder {
  color: #94a3b8;
}

.search-camera-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 0 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.search-camera-btn:hover {
  color: #0284c7;
}

.search-btn-blue {
  background: #0284c7;
  border: none;
  color: #ffffff;
  width: 44px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.search-btn-blue:hover {
  background: #0369a1;
}

.header-keywords-scroll {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  padding-bottom: 2px;
}
.header-keywords-scroll::-webkit-scrollbar {
  display: none;
}

.keyword-chip {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: all 0.15s ease;
}
.keyword-chip:hover, .keyword-chip:active {
  background: #ffffff;
  color: #0284c7;
  font-weight: 600;
  transform: translateY(-1px);
}

/* 6. HERO PROMO BANNER */
.hero-slider-section {
  padding: 12px 14px 6px;
}

.hero-promo-card {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-radius: 12px;
  padding: 16px;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
  text-align: center;
}

.promo-badge-top {
  font-size: 10px;
  font-weight: 700;
  color: #bae6fd;
  text-transform: uppercase;
}

.promo-title-gold {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #fef08a;
  margin: 4px 0;
}

.promo-pills-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 8px 0;
  font-size: 11px;
}

.promo-pill {
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: 999px;
}

.promo-cta-btn {
  background: #fef08a;
  color: #0369a1;
  border: none;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 999px;
  cursor: pointer;
}

/* 7. DANH MỤC NGÀNH HÀNG (CHUẨN 5XU.VN) */
.category-5xu-section {
  padding: 8px 12px 12px;
}

.category-5xu-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #eef2f6;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.category-5xu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 10px;
  border-bottom: 1px solid #f1f5f9;
}

.category-5xu-title {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.cat-title-badge {
  display: inline-block;
  width: 4px;
  height: 15px;
  background: #0284c7;
  border-radius: 2px;
}

.category-5xu-seeall {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  color: #0284c7;
  cursor: pointer;
  transition: opacity 0.15s;
}
.category-5xu-seeall:hover {
  opacity: 0.8;
}

.category-5xu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 10px 8px;
}

@media (min-width: 768px) {
  .category-5xu-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding: 14px 12px;
  }
}

.cat-5xu-tile {
  background: #ffffff;
  border: 1px solid #f8fafc;
  border-radius: 10px;
  padding: 8px 4px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-5xu-tile:hover, .cat-5xu-tile:active {
  background: #f0f9ff;
  border-color: #bae6fd;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
}

.cat-5xu-icon-wrap {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
}

.cat-5xu-icon-wrap img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.cat-5xu-tile:hover .cat-5xu-icon-wrap img {
  transform: scale(1.08);
}

.cat-zap-wrap {
  width: 48px;
  height: 48px;
  background: #fee2e2;
  border-radius: 999px;
  animation: pulse-zap 2s infinite ease-in-out;
}
@keyframes pulse-zap {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

.cat-zap-icon {
  width: 30px;
  height: 30px;
}

.cat-5xu-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: #334155;
  line-height: 1.25;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  word-break: break-word;
}

.cat-label-red {
  color: #ef4444;
  font-weight: 700;
}

/* 8. FLASH SALE SECTION */
.flash-sale-section {
  background: #fef2f2;
  border-top: 1px solid #fee2e2;
  border-bottom: 1px solid #fee2e2;
  padding: 14px 14px 16px;
}

.flash-sale-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.flash-sale-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.flash-sale-logo-text {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #dc2626;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 4px;
}

.flash-timer-box {
  display: flex;
  align-items: center;
  gap: 4px;
}

.timer-digit {
  background: #0f172a;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
}

.flash-see-all-link {
  font-size: 12px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.flash-items-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.flash-items-scroll::-webkit-scrollbar {
  display: none;
}

.flash-item-card {
  background: #ffffff;
  border-radius: 10px;
  width: 140px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid #fecaca;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.flash-img-box {
  position: relative;
  width: 100%;
  height: 140px;
  background: #f8fafc;
}

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

.badge-flash-discount {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #dc2626;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  font-family: var(--font-heading);
}

.badge-banchay {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 2px;
}

.flash-info-box {
  padding: 8px 8px 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.flash-title {
  font-size: 11px;
  color: #334155;
  line-height: 1.3;
  height: 28px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 4px;
}

.flash-price-current {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #dc2626;
}

.flash-price-old {
  font-size: 10px;
  color: #94a3b8;
  text-decoration: line-through;
  margin-bottom: 6px;
}

.fire-progress-bar {
  background: #e2e8f0;
  border-radius: 999px;
  height: 14px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.fire-progress-fill {
  background: linear-gradient(90deg, #f97316 0%, #ef4444 100%);
  height: 100%;
}

.fire-progress-text {
  position: absolute;
  width: 100%;
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* 9. MID PROMO BANNER */
.mid-banner-section {
  padding: 12px 14px 6px;
}

.mid-banner-card {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #7dd3fc;
}

.mid-badge {
  background: #f97316;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 2px;
}

.mid-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #0369a1;
}

.mid-subtitle {
  font-size: 11px;
  color: #0284c7;
}

/* 10. STICKY CATEGORY TABS */
.sticky-cat-tabs {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 14px 0;
  position: sticky;
  top: 96px;
  z-index: 90;
}

.cat-tabs-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.cat-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.cat-tab-item {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  padding-bottom: 8px;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
}

.cat-tab-item.active {
  color: var(--chiaki-cyan-dark);
  border-bottom-color: var(--chiaki-cyan-dark);
}

/* 11. "GỢI Ý HÔM NAY" (2 Columns Grid) */
.goi-y-section {
  padding: 14px;
}

.section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-head-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  text-transform: uppercase;
}

.product-2col-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.chiaki-prod-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.prod-thumb-box {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: #f8fafc;
  cursor: pointer;
}

.prod-thumb-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prod-card-body {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.badge-yeuthich {
  background: #f97316;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  margin-right: 4px;
  display: inline-block;
}

.prod-card-name {
  font-size: 12px;
  color: #1e293b;
  font-weight: 500;
  line-height: 1.35;
  height: 34px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 6px;
  cursor: pointer;
}

.prod-card-pricing {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.prod-price-red {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--chiaki-red-price);
}

.prod-price-strike {
  font-size: 10px;
  color: #94a3b8;
  text-decoration: line-through;
}

.prod-rating-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #64748b;
  margin-bottom: 6px;
}
.prod-rating-star {
  color: #f59e0b;
}

.prod-footer-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prod-location-tag {
  font-size: 10px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 2px;
}

.btn-add-cart-circle {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* 12. FLOATING ACTION BUTTON (Zalo / Chat Bubble) */
.floating-chat-btn {
  position: fixed;
  bottom: 74px; /* above bottom bar on detail */
  right: calc(50% - 240px + 16px);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #0084ff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 132, 255, 0.45);
  cursor: pointer;
  z-index: 150;
  border: 2px solid #ffffff;
}

@media (max-width: 480px) {
  .floating-chat-btn {
    right: 16px;
    bottom: 74px;
  }
}

/* ==========================================================================
   13. FULL SCREEN PRODUCT DETAIL PAGE (EXACT CHIAKI.VN MATCH)
   ========================================================================== */
.chiaki-detail-screen {
  display: none;
  background: #f5f6f8;
  min-height: 100vh;
  padding-bottom: 70px;
}
.chiaki-detail-screen.active {
  display: block;
}

/* Detail Top Header Bar */
.detail-top-bar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 14px;
  position: sticky;
  top: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-back-arrow {
  background: transparent;
  border: none;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
}

.detail-logo-link {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: #0284c7;
  text-decoration: none;
}

.detail-nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #475569;
}

/* Detail Hero Showcase */
.detail-hero-showcase {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: #ffffff;
  overflow: hidden;
}

.detail-gallery-track {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.detail-gallery-track::-webkit-scrollbar {
  display: none;
}

.detail-gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  position: relative;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

/* Thumbnail Strip below Hero */
.detail-thumb-strip {
  display: flex;
  gap: 8px;
  padding: 8px 14px 10px;
  background: #ffffff;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid #f1f5f9;
}
.detail-thumb-strip::-webkit-scrollbar {
  display: none;
}

.thumb-strip-item {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  border: 2px solid transparent;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  background: #f8fafc;
  transition: all 0.15s ease;
}
.thumb-strip-item.active {
  border-color: #0284c7;
  box-shadow: 0 0 0 1px #0284c7;
}
.thumb-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-share-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.detail-badge-pill-viewing {
  position: absolute;
  bottom: 48px;
  left: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.detail-badge-pill-purchased {
  position: absolute;
  bottom: 14px;
  left: 12px;
  background: #ffffff;
  color: #0284c7;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 5px;
}

.detail-fraction-tag {
  position: absolute;
  bottom: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
}

.detail-open-app-pill {
  position: absolute;
  bottom: 48px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

/* Detail Main Info Card */
.detail-info-card {
  background: #ffffff;
  padding: 14px;
  border-bottom: 8px solid #f1f5f9;
}

.detail-rank-row {
  display: none !important;
}

.detail-full-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  margin-bottom: 8px;
}

.detail-price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.detail-big-red-price {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: #d70018;
}

.detail-strike-price {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: line-through;
}

.detail-discount-pill {
  background: #fee2e2;
  color: #dc2626;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
}

.detail-social-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.detail-qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.detail-qty-box {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
}

.detail-qty-btn {
  background: #ffffff;
  border: none;
  width: 32px;
  height: 32px;
  font-size: 16px;
  color: #475569;
  cursor: pointer;
}

.detail-qty-num {
  width: 40px;
  height: 32px;
  border: none;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  color: #1e293b;
  -webkit-appearance: none;
  -moz-appearance: textfield;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}

.detail-stock-avail {
  font-size: 12px;
  color: #64748b;
}

/* Delivery Banner in Detail */
.detail-delivery-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.delivery-text {
  font-size: 12px;
  color: #166534;
  font-weight: 500;
}

.delivery-download-btn {
  background: #ea580c;
  border: none;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.detail-policy-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #334155;
  padding: 8px 0;
  cursor: pointer;
}

/* Reviews Block */
.detail-reviews-card {
  background: #ffffff;
  padding: 14px;
  border-bottom: 8px solid #f1f5f9;
}

.reviews-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.reviews-title-text {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.review-item-box {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}
.review-item-box:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.review-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.review-user-name {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-avatar-tag {
  background: #e2e8f0;
  color: #475569;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 4px;
  border-radius: 4px;
}

.review-date-text {
  font-size: 11px;
  color: #94a3b8;
}

.review-stars-gold {
  color: #f59e0b;
  font-size: 12px;
  margin-bottom: 4px;
}

.review-comment-text {
  font-size: 12px;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 6px;
}

.review-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #64748b;
}

/* Shop Card */
.detail-shop-card {
  background: #ffffff;
  padding: 14px;
  border-bottom: 8px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shop-left-col {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-avatar-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f59e0b;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  position: relative;
}

.shop-yeuthich-badge {
  position: absolute;
  bottom: -4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 8px;
  padding: 1px 4px;
  border-radius: 2px;
  white-space: nowrap;
}

.shop-meta-info {
  display: flex;
  flex-direction: column;
}

.shop-title-text {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.shop-sub-info {
  font-size: 11px;
  color: #64748b;
}

.btn-shop-chat {
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  color: #0284c7;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Specifications Card */
.detail-specs-card {
  background: #ffffff;
  padding: 14px;
  border-bottom: 8px solid #f1f5f9;
}

.specs-title-heading {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
}

.specs-row-item {
  display: flex;
  padding: 6px 0;
  font-size: 12px;
  border-bottom: 1px solid #f8fafc;
}

.specs-item-label {
  width: 140px;
  color: #64748b;
  flex-shrink: 0;
}

.specs-item-value {
  color: #1e293b;
  font-weight: 500;
}

/* Long Story Description Card */
.detail-story-desc-card {
  background: #ffffff;
  padding: 14px;
  border-bottom: 8px solid #f1f5f9;
}

.story-content-text {
  font-size: 13px;
  color: #334155;
  line-height: 1.65;
  max-height: 240px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.3s ease;
}
.story-content-text.expanded {
  max-height: none;
}

.btn-expand-desc {
  background: #ffffff;
  border: 1px solid #0284c7;
  color: #0284c7;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  margin: 12px auto 0;
  display: block;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-expand-desc:hover {
  background: #f0f9ff;
}

/* Chiaki Section & Descriptions */
.chiaki-section {
  margin-top: 14px;
}
.chiaki-section:first-child {
  margin-top: 0;
}
.chiaki-sec-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px 0;
  letter-spacing: 0.2px;
}
.chiaki-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.chiaki-bullet-list li {
  margin-bottom: 6px;
  line-height: 1.6;
  font-size: 13px;
  color: #334155;
}

/* Beautiful Structured Description Layout */
.desc-clean-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.desc-card-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
}

.desc-block-title {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: #0284c7;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px dashed #cbd5e1;
  padding-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.desc-prop-row {
  display: flex;
  padding: 5px 0;
  font-size: 13px;
  line-height: 1.5;
  border-bottom: 1px solid #f1f5f9;
}
.desc-prop-row:last-child {
  border-bottom: none;
}

.desc-prop-label {
  width: 145px;
  color: #64748b;
  font-weight: 600;
  flex-shrink: 0;
}

.desc-prop-value {
  color: #1e293b;
  font-weight: 500;
  flex: 1;
}

.desc-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 0;
  font-size: 13px;
  color: #334155;
  line-height: 1.55;
}

.desc-bullet-dot {
  color: #16a34a;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.6;
  flex-shrink: 0;
}

.desc-normal-p {
  font-size: 13px;
  color: #334155;
  line-height: 1.65;
  margin-bottom: 6px;
}
.desc-normal-p:last-child {
  margin-bottom: 0;
}


/* Sticky Bottom Action Bar */
.detail-sticky-action-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 8px 14px;
  display: flex;
  gap: 10px;
  z-index: 105;
}

@media (min-width: 680px) {
  .detail-sticky-action-bar {
    max-width: 540px;
  }
}

.btn-action-add-cart {
  flex: 1;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  color: #0284c7;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.btn-action-buy-now {
  flex: 1.5;
  background: #d70018;
  border: none;
  color: #ffffff;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(215, 0, 24, 0.3);
}

/* Modals Overlay (Cart & VietQR) */
.chiaki-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.chiaki-modal-overlay.active {
  display: flex;
}

.chiaki-modal-sheet {
  background: #ffffff;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.sheet-head {
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-head-title {
  font-family: var(--font-heading);
  font-size: 14px;
  color: #1e293b;
}

.sheet-close-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  color: #64748b;
  cursor: pointer;
}

.sheet-body {
  padding: 14px 16px;
  overflow-y: auto;
  flex-grow: 1;
}

.sheet-foot {
  padding: 10px 16px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

/* Toast */
.toast-msg-pill {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: #0f172a;
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
}
.toast-msg-pill.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===================================================
   CHIAKI DETAIL RECOMMENDED & RELATED PRODUCTS
   =================================================== */
.detail-section-card {
  background: #ffffff;
  padding: 14px 14px 16px;
  margin-bottom: 8px;
}

.detail-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.detail-sec-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

.detail-sec-link {
  font-size: 12px;
  font-weight: 600;
  color: #0284c7;
  text-decoration: none;
}

/* Horizontal Scroll: Các sản phẩm khác của shop */
.shop-other-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.shop-other-scroll::-webkit-scrollbar {
  display: none;
}

.shop-other-card {
  width: 126px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.shop-other-img-box {
  width: 100%;
  aspect-ratio: 1/1;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.shop-other-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-other-disc-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  z-index: 2;
}

.shop-other-body {
  padding: 6px 8px 8px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.shop-other-name {
  font-size: 11px;
  line-height: 1.35;
  color: #1e293b;
  font-weight: 500;
  height: 30px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 4px;
  cursor: pointer;
}

.shop-other-price-row {
  margin-top: auto;
}

.shop-other-price {
  color: #ef4444;
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font-heading);
}
.shop-other-price sup {
  font-size: 9px;
  text-decoration: underline;
}

.shop-other-old-price {
  color: #94a3b8;
  text-decoration: line-through;
  font-size: 10px;
  margin-left: 2px;
}

.shop-other-meta {
  font-size: 9.5px;
  color: #64748b;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.shop-other-meta .star {
  color: #f59e0b;
}

.shop-other-loc {
  font-size: 9.5px;
  color: #94a3b8;
  margin-top: 2px;
}

.shop-other-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 4px;
}

.btn-mini-cart {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.15s;
}
.btn-mini-cart:hover {
  background: #0284c7;
  color: #ffffff;
}

/* 2-Column Recommended Grid */
.detail-recommend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rec-item-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.rec-img-box {
  width: 100%;
  aspect-ratio: 1/1;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.rec-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rec-disc-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  z-index: 2;
}

.rec-tag-fav {
  position: absolute;
  bottom: 5px;
  left: 5px;
  background: #ef4444;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 2px;
  z-index: 2;
}

.rec-body {
  padding: 8px 8px 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.rec-name {
  font-size: 12px;
  line-height: 1.35;
  color: #1e293b;
  font-weight: 500;
  height: 33px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 6px;
  cursor: pointer;
}

.rec-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.rec-price {
  color: #ef4444;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font-heading);
}
.rec-price sup {
  font-size: 10px;
  text-decoration: underline;
}

.rec-old-price {
  color: #94a3b8;
  text-decoration: line-through;
  font-size: 11px;
}

.rec-meta {
  font-size: 10.5px;
  color: #64748b;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.rec-meta .star {
  color: #f59e0b;
}

.rec-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.rec-freeship-pill {
  font-size: 9px;
  font-weight: 600;
  background: #e0f2fe;
  color: #0284c7;
  padding: 1px 5px;
  border-radius: 3px;
}

/* ===================================================
   APP BOTTOM NAVIGATION BAR (5 TABS CHUẨN CHIAKI APP)
   =================================================== */
.chiaki-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 56px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 120;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #64748b;
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 0;
  transition: all 0.2s;
  position: relative;
}

.bottom-nav-item svg {
  stroke-width: 2;
  transition: transform 0.15s;
}

.bottom-nav-item.active {
  color: #0284c7;
  font-weight: 700;
}

.bottom-nav-item.active svg {
  transform: scale(1.1);
  stroke: #0284c7;
}

.bottom-nav-badge {
  position: absolute;
  top: 2px;
  right: 22%;
  background: #ef4444;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 999px;
  line-height: 1;
}

/* Add padding to views to clear bottom nav */
.has-bottom-nav {
  padding-bottom: 64px !important;
}

/* ===================================================
   SEARCH OVERLAY SCREEN (CHUẨN CHIAKI MOBILE)
   =================================================== */
.search-overlay-view {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 100%;
  background: #ffffff;
  z-index: 250;
  overflow-y: auto;
  display: none;
}

.search-overlay-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  position: sticky;
  top: 0;
  z-index: 10;
}

.btn-back-search {
  background: none;
  border: none;
  color: #1e293b;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-overlay-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #0284c7;
  border-radius: 6px;
  padding: 0 8px;
  height: 40px;
}

.search-overlay-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: #1e293b;
}

.search-overlay-btn {
  background: #43bfec;
  color: #ffffff;
  border: none;
  width: 36px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-trending-tags-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 14px;
  scrollbar-width: none;
  border-bottom: 1px solid #f1f5f9;
}
.search-trending-tags-row::-webkit-scrollbar {
  display: none;
}

.search-trend-chip {
  font-size: 11px;
  color: #0284c7;
  background: #f0f9ff;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
  cursor: pointer;
}

.search-section-block {
  padding: 14px;
  border-bottom: 8px solid #f8fafc;
}

.search-section-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}
.search-section-header .icon-trend {
  color: #ef4444;
}

.search-sugg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.search-sugg-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.search-sugg-item:hover {
  background: #f1f5f9;
}

.search-sugg-img {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  object-fit: cover;
  background: #e2e8f0;
}

.search-sugg-text {
  font-size: 12px;
  color: #334155;
  font-weight: 500;
  line-height: 1.3;
}

.btn-close-search-overlay {
  display: block;
  margin: 18px auto 24px;
  padding: 8px 24px;
  border: 1px solid #0284c7;
  color: #0284c7;
  background: #ffffff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* ===================================================
   TRUNG TÂM TRỢ GIÚP (HELP PORTAL VIEW)
   =================================================== */
.help-portal-view {
  display: none;
  background: #f8fafc;
  min-height: 100vh;
}

.portal-header {
  background: #43bfec;
  color: #ffffff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.portal-header-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
}

.portal-search-box {
  background: #ffffff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
}

.portal-search-input {
  flex: 1;
  height: 38px;
  border: 1px solid #cbd5e1;
  border-right: none;
  border-radius: 4px 0 0 4px;
  padding: 0 10px;
  font-size: 13px;
  outline: none;
}

.portal-search-btn {
  background: #43bfec;
  color: #ffffff;
  border: none;
  height: 38px;
  width: 44px;
  border-radius: 0 4px 4px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.portal-warning-box {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 6px;
  padding: 12px 14px;
  margin: 12px 14px;
  font-size: 12px;
  color: #92400e;
  line-height: 1.5;
}

.portal-section-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin: 16px 14px 10px;
}

.portal-faq-item {
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  padding: 14px 16px;
  cursor: pointer;
}

.portal-faq-q {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portal-faq-a {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.55;
  margin-top: 8px;
  display: none;
}
.portal-faq-item.open .portal-faq-a {
  display: block;
}

/* ===================================================
   MÀN HÌNH TÀI KHOẢN / ĐĂNG NHẬP (ACCOUNT VIEW)
   =================================================== */
.account-view {
  display: none;
  background: #ffffff;
  min-height: 100vh;
}

.account-header {
  background: #43bfec;
  color: #ffffff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-form-body {
  padding: 20px 16px;
}

.form-field-group {
  margin-bottom: 16px;
}

.form-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
}
.form-field-label .req {
  color: #ef4444;
}

.form-field-input {
  width: 100%;
  height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 13px;
  outline: none;
}
.form-field-input:focus {
  border-color: #0284c7;
}

.btn-primary-cyan {
  width: 100%;
  height: 44px;
  background: #43bfec;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-primary-cyan:hover {
  opacity: 0.92;
}

.account-sub-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 12px;
}
.account-sub-actions a {
  color: #0284c7;
  text-decoration: none;
  font-weight: 500;
}

.account-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #94a3b8;
  font-size: 11px;
  margin: 24px 0 16px;
}
.account-divider::before, .account-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}
.account-divider span {
  padding: 0 10px;
}

.social-login-row {
  display: flex;
  gap: 12px;
}

.btn-social {
  flex: 1;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #ffffff;
}
.btn-social.fb {
  background: #1877f2;
  color: #ffffff;
  border-color: #1877f2;
}

/* ===================================================
   MÀN HÌNH ĐƠN HÀNG (ORDERS TRACKING VIEW)
   =================================================== */
.orders-view {
  display: none;
  background: #f8fafc;
  min-height: 100vh;
}

.orders-filter-tabs {
  display: flex;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
  scrollbar-width: none;
}
.orders-filter-tabs::-webkit-scrollbar {
  display: none;
}

.order-filter-tab {
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.order-filter-tab.active {
  color: #0284c7;
  border-bottom-color: #0284c7;
  font-weight: 700;
}
.tab-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.4);
  margin-left: 6px;
  flex-shrink: 0;
}
.tab-count-badge-all {
  background: #ef4444;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.4);
}

/* Order Categories Vertical Dashboard (Phương án 1) */
.order-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.order-vertical-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.order-vertical-row:hover, .order-vertical-row:active {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.order-vertical-row-all {
  background: #f0f9ff;
  border: 1.5px solid #bae6fd;
  margin-top: 6px;
}
.order-vertical-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.order-vertical-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.order-vertical-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
}
.order-vertical-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.order-vertical-arrow {
  color: #94a3b8;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.order-card-box {
  background: #ffffff;
  border-radius: 8px;
  margin: 10px 14px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 8px;
}

.order-id-text {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
}

.order-status-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
}
.order-status-badge.paid {
  background: #dcfce7;
  color: #15803d;
}
.order-status-badge.cod {
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

/* ===================================================
   MÀN HÌNH CHIAKI XU (XU VIEW)
   =================================================== */
.xu-view {
  display: none;
  background: #f8fafc;
  min-height: 100vh;
}

.xu-hero-banner {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  color: #ffffff;
  padding: 24px 16px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.xu-balance-num {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  margin: 6px 0 2px;
  color: #fef08a;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.streak-days-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 14px;
}

.streak-day-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 8px 2px;
  text-align: center;
  font-size: 10px;
}
.streak-day-card.today {
  background: #fef08a;
  color: #854d0e;
  font-weight: 700;
  border-color: #facc15;
}

.btn-checkin-xu {
  background: #f59e0b;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 10px 28px;
  margin-top: 14px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   14. 5XU CHECKOUT & SHIPPING CARRIER SYSTEM
   ========================================================================== */
.smart-addr-box {
  transition: all 0.2s ease;
}
.smart-addr-box:focus-within {
  border-color: #22c55e !important;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15);
}

.shipping-carrier-item {
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  user-select: none;
}
.shipping-carrier-item:hover {
  border-color: #38bdf8 !important;
}
.shipping-carrier-item.active {
  border-color: #0284c7 !important;
  background: #f0f9ff !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.12);
}

#checkoutForm select:focus,
#checkoutForm input:focus {
  border-color: #0284c7 !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

/* ==========================================================================
   15. DYNAMIC SEARCH RESULTS & BOTTOM CATEGORIES (KHI TÌM KIẾM)
   ========================================================================== */
.search-clear-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 0 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}
.search-clear-btn:hover {
  color: #ef4444;
}

.search-results-banner {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 10px 14px;
  margin: 10px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.search-banner-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  color: #0369a1;
}
.search-kw-highlight {
  color: #d70018;
  font-weight: 700;
}
.btn-clear-search-tag {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #64748b;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.btn-clear-search-tag:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

/* KHI Ở CHẾ ĐỘ TÌM KIẾM: ẨN CÁC MỤC PROMO/DANH MỤC TRÊN ĐẦU, HIỆN TẠI ĐÁY */
#homeView.is-search-active .hero-slider-section,
#homeView.is-search-active .category-5xu-section,
#homeView.is-search-active .flash-sale-section,
#homeView.is-search-active .mid-banner-section,
#homeView.is-search-active .sticky-cat-tabs {
  display: none !important;
}

#homeView.is-search-active #bottomCategoriesExplore {
  display: block !important;
}

.bottom-categories-explore {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 14px 18px;
  margin: 20px 0 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.bottom-explore-header {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.bottom-categories-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bottom-cat-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}
.bottom-cat-pill:hover, .bottom-cat-pill:active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: translateY(-1px);
}

/* Nút xóa thùng rác trong Giỏ hàng & Modal Thanh Toán */
.btn-remove-checkout-item,
.btn-remove-cart-item {
  transition: all 0.15s ease-in-out !important;
  user-select: none;
}
.btn-remove-checkout-item:hover,
.btn-remove-cart-item:hover {
  background: #fecaca !important;
  color: #dc2626 !important;
  transform: scale(1.08);
}
.btn-remove-checkout-item:active,
.btn-remove-cart-item:active {
  transform: scale(0.92);
  background: #fca5a5 !important;
}

/* 5XU AUTHENTICATION STYLES */
.btn-5xu-google:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}
.btn-5xu-google:active {
  transform: scale(0.98);
}
#authStep1, #authStep2 {
  animation: fadeInStep 0.2s ease-out;
}
@keyframes fadeInStep {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =======================================================
   SKU & PRODUCT VARIATIONS (PHÂN LOẠI HÀNG CHUẨN 5XU)
   ======================================================= */
.detail-sku-row {
  display: none !important;
}
.detail-sku-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.detail-sku-label {
  color: #64748b;
  font-weight: 500;
}
.detail-sku-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.3px;
}
.btn-copy-sku {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 3px 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: #0284c7;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-copy-sku:hover {
  background: #f0f9ff;
  border-color: #0284c7;
}
.btn-copy-sku:active {
  transform: scale(0.95);
}

.detail-variations-section {
  margin: 12px 0;
  padding: 10px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  font-family: var(--font-body);
}
.detail-var-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.detail-var-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}
.detail-var-selected {
  font-size: 12px;
  font-weight: 600;
  color: #dc2626;
}
.detail-variations-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.variant-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 12px;
  font-family: var(--font-body);
  font-size: 12.5px;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  position: relative;
}
.variant-pill:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.variant-pill.active {
  border-color: #dc2626;
  background: #fef2f2;
  color: #dc2626;
  font-weight: 600;
}
.variant-pill.disabled {
  opacity: 0.45;
  background: #f1f5f9;
  border-style: dashed;
  cursor: not-allowed;
  text-decoration: line-through;
}
.variant-pill-img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
}
.variant-pill-sku-badge {
  font-family: monospace;
  font-size: 10px;
  color: #64748b;
  background: #f1f5f9;
  padding: 1px 4px;
  border-radius: 3px;
}
.variant-pill.active .variant-pill-sku-badge {
  background: #fee2e2;
  color: #dc2626;
}

/* Auto Infinite Scroll Spinner & Indicators */
@keyframes spin-inf {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spin-infinite {
  animation: spin-inf 0.8s linear infinite;
  display: inline-block;
}
.auto-scroll-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  color: #0284c7;
  font-size: 13px;
  font-weight: 500;
}

/* =======================================================
   ADMIN MANAGEMENT PANEL STYLES (CHOGIADUNG.VN)
   ======================================================= */
.admin-view-container {
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

.admin-header-bar {
  background: #0f172a;
  color: #ffffff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.admin-nav-tabs-bar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  overflow-x: auto;
  padding: 0 8px;
  position: sticky;
  top: 52px;
  z-index: 999;
  scrollbar-width: none;
}
.admin-nav-tabs-bar::-webkit-scrollbar {
  display: none;
}

.admin-nav-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.admin-nav-tab-btn.active {
  color: #0284c7;
  border-bottom-color: #0284c7;
}

.admin-dash-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
@media (min-width: 640px) {
  .admin-dash-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}

.admin-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.admin-stat-label {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.admin-stat-value {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}
.admin-stat-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

.admin-form-group {
  margin-bottom: 14px;
}
.admin-form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}
.admin-form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13.5px;
  outline: none;
  background: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.admin-form-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}



