/* =========================================================
   THẦN E-COMMERCE — GLOBAL CSS
   Color Palette: #E30613 (Red), #F5B800 (Gold), #0a0a0a (Dark)
   Font: Be Vietnam Pro + Inter
   ========================================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red: #E30613;
  --red-dark: #b00010;
  --red-light: #ff1a2e;
  --gold: #F5B800;
  --gold-dark: #d4a000;
  --dark: #0a0a0a;
  --dark-2: #111111;
  --dark-3: #1a1a1a;
  --gray-1: #f8f9fa;
  --gray-2: #e9ecef;
  --gray-3: #dee2e6;
  --gray-4: #ced4da;
  --gray-5: #adb5bd;
  --gray-6: #6c757d;
  --text: #1a1a2e;
  --text-muted: #666;
  --white: #ffffff;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
  --shadow-red: 0 4px 24px rgba(227,6,19,0.3);
  --shadow-gold: 0 4px 24px rgba(245,184,0,0.4);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--gray-1);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img { max-width: 100%; display: block; }

button { cursor: pointer; border: none; font-family: var(--font); }

input, select, textarea {
  font-family: var(--font);
  outline: none;
  border: none;
}

ul { list-style: none; }

/* ---- CONTAINER ---- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- BUTTONS ---- */
.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: white;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: var(--shadow-red);
  border: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(227,6,19,0.45);
  color: white;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--dark);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: var(--shadow-gold);
  border: none;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(245,184,0,0.55);
}

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: white;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.btn-outline-gold {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-2px);
}

.btn-lg { padding: 15px 36px; font-size: 16px; }

/* ---- BADGES ---- */
.badge {
  background: var(--red);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -4px;
  right: -4px;
}

/* ---- LIVE DOT ---- */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ff2d2d;
  border-radius: 50%;
  animation: pulse-red 1.5s infinite;
}
.live-dot-sm {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #ff2d2d;
  border-radius: 50%;
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(255,45,45,0.6); }
  50% { opacity: 0.8; transform: scale(1.2); box-shadow: 0 0 0 6px rgba(255,45,45,0); }
}

/* ---- NAVBAR ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-icon { width: 40px; height: 40px; }
.logo-icon-sm { width: 30px; height: 30px; }
.logo-text {
  font-size: 22px;
  font-weight: 900;
  color: var(--red);
  letter-spacing: -0.5px;
}

/* Search Bar */
.search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--gray-1);
  border: 2px solid var(--gray-3);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  max-width: 680px;
}
.search-bar:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(227,6,19,0.1);
  background: white;
}

.search-categories {
  padding: 0 12px;
  border-right: 1px solid var(--gray-3);
  flex-shrink: 0;
}
.search-categories select {
  background: transparent;
  border: none;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 0;
}

#searchInput {
  flex: 1;
  padding: 10px 14px;
  font-size: 14px;
  background: transparent;
  color: var(--text);
}
#searchInput::placeholder { color: var(--gray-5); }

.search-btn {
  background: var(--red);
  color: white;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.search-btn:hover { background: var(--red-dark); }

.search-camera-btn {
  background: transparent;
  color: var(--gray-5);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  transition: var(--transition);
}
.search-camera-btn:hover { color: var(--red); }

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.nav-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  position: relative;
  color: var(--text);
  transition: var(--transition);
}
.nav-action:hover { background: var(--gray-1); color: var(--red); }
.nav-label { font-size: 11px; font-weight: 500; white-space: nowrap; }

.live-badge {
  background: linear-gradient(135deg, var(--red), #ff4444);
  color: white !important;
  border-radius: var(--radius-md);
  padding: 6px 12px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1px;
  gap: 4px;
  animation: live-glow 2s infinite;
}
.live-badge:hover { transform: scale(1.05); background: linear-gradient(135deg, var(--red-dark), var(--red)) !important; }

@keyframes live-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(227,6,19,0); }
  50% { box-shadow: 0 0 12px 4px rgba(227,6,19,0.4); }
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-6);
}

/* Sub Nav */
.sub-nav {
  border-top: 1px solid var(--gray-2);
  background: white;
}
.sub-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.sub-nav-inner::-webkit-scrollbar { display: none; }

.sub-nav-link {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
}
.sub-nav-link:hover { color: var(--red); border-bottom-color: var(--red); }
.highlight-link { color: var(--red) !important; font-weight: 600; }
.flash-link {
  color: var(--gold-dark) !important;
  font-weight: 700;
  animation: flash-text 1s infinite;
}
@keyframes flash-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ---- SECTIONS ---- */
.section { padding: 48px 0; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}
.see-all-btn {
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.see-all-btn:hover { background: rgba(227,6,19,0.08); }

/* ---- PRODUCT CARD ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.product-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-thumb {
  aspect-ratio: 1;
  background: var(--gray-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  position: relative;
  overflow: hidden;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.05); }

.product-discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--red);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.product-viet-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--gold);
  color: var(--dark);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: var(--radius-sm);
}

.product-wishlist-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
  opacity: 0;
}
.product-card:hover .product-wishlist-btn { opacity: 1; }
.product-wishlist-btn:hover { transform: scale(1.2); }

.product-info { padding: 12px; }
.product-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.product-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.price-current {
  font-size: 16px;
  font-weight: 800;
  color: var(--red);
}
.price-old {
  font-size: 12px;
  color: var(--gray-5);
  text-decoration: line-through;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: var(--gray-5);
}
.product-rating { color: #f5a623; }
.product-sold { }

.product-add-cart {
  width: 100%;
  background: transparent;
  border: 1.5px solid var(--red);
  color: var(--red);
  border-radius: var(--radius-sm);
  padding: 7px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
  transition: var(--transition);
}
.product-add-cart:hover { background: var(--red); color: white; }

/* ---- FLASH SALE ---- */
.flash-section {
  background: linear-gradient(135deg, #1a0000, #3d0000);
  padding: 48px 0;
}
.flash-section .section-title { color: white; }
.flash-header { margin-bottom: 24px; }
.section-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.flash-icon { font-size: 28px; animation: flash-bounce 1s infinite; }
@keyframes flash-bounce {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg) scale(1.1); }
}
.flash-subtitle { color: rgba(255,255,255,0.7); font-size: 13px; }
.countdown {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 6px 16px;
  backdrop-filter: blur(8px);
}
.count-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.count-unit span {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  min-width: 32px;
  text-align: center;
}
.count-unit small { font-size: 9px; color: rgba(255,255,255,0.5); }
.count-sep { font-size: 20px; font-weight: 700; color: var(--gold); margin-bottom: 6px; }

.flash-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.flash-grid .product-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
}
.flash-grid .product-name { color: rgba(255,255,255,0.9); }
.flash-grid .price-old { color: rgba(255,255,255,0.4); }
.flash-grid .product-add-cart { border-color: var(--gold); color: var(--gold); }
.flash-grid .product-add-cart:hover { background: var(--gold); color: var(--dark); }
.flash-grid .product-meta { color: rgba(255,255,255,0.4); }

.flash-progress {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}
.flash-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--red));
  border-radius: 2px;
  transition: width 0.5s ease;
}
.flash-sold-label {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  margin-top: 3px;
}

/* ---- CATEGORIES ---- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.category-card {
  background: var(--cat-bg, var(--gray-1));
  border-radius: var(--radius-md);
  padding: 20px 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-icon { font-size: 36px; }
.cat-name { font-size: 13px; font-weight: 700; color: var(--text); }
.cat-count { font-size: 11px; color: var(--gray-6); }
.new-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--gold);
  color: var(--dark);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  letter-spacing: 0.3px;
}
.craft-card { border: 2px solid var(--gold); }

/* ---- LIVESTREAM BANNER ---- */
.livestream-banner-section { background: var(--dark); padding: 60px 0; }
.livestream-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.ls-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,45,45,0.15);
  color: #ff4444;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,45,45,0.3);
  letter-spacing: 1px;
}
.ls-title {
  font-size: 36px;
  font-weight: 900;
  color: white;
  line-height: 1.2;
  margin-bottom: 14px;
}
.ls-desc { color: rgba(255,255,255,0.6); font-size: 15px; margin-bottom: 24px; line-height: 1.7; }
.ls-stats { display: flex; gap: 32px; margin-bottom: 28px; }
.ls-stat-item { display: flex; flex-direction: column; gap: 2px; }
.ls-num { font-size: 28px; font-weight: 900; color: white; }
.ls-lbl { font-size: 12px; color: rgba(255,255,255,0.5); }

.ls-cards {
  display: flex;
  gap: 14px;
  align-items: center;
}

.ls-card {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex: 1;
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
  cursor: pointer;
}
.ls-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.2); }
.ls-card.featured { transform: scale(1.06); border-color: var(--red); }
.ls-card.featured:hover { transform: scale(1.09) translateY(-4px); }

.ls-card-thumb {
  position: relative;
  padding-bottom: 8px;
  min-height: 100px;
}
.ls-live-indicator {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.5);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
}
.ls-card-viewers {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.5);
  color: white;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}
.ls-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
}
.ls-card-name { font-size: 12px; font-weight: 600; color: white; }
.ls-card-price { font-size: 13px; font-weight: 700; color: var(--gold); }

/* ---- VILLAGE SECTION ---- */
.village-section { background: linear-gradient(135deg, #fdf6e3, #fff9f0); }
.village-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 20px;
}
.village-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.village-title { font-size: 26px; font-weight: 900; color: var(--dark); margin-bottom: 6px; }
.village-desc { font-size: 14px; color: var(--gray-6); }

.villages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.village-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.village-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.village-thumb {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.village-info { padding: 14px; }
.village-info h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.village-info p { font-size: 12px; color: var(--gray-6); margin-bottom: 8px; }
.village-tag {
  display: inline-block;
  background: rgba(245,184,0,0.12);
  color: #8a6500;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
  border: 1px solid rgba(245,184,0,0.3);
}

/* ---- SOCIAL FEED ---- */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.feed-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  aspect-ratio: 3/4;
  background: var(--gray-2);
}
.feed-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feed-card-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}
.feed-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 40px 14px 14px;
}
.feed-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.feed-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
}
.feed-username { font-size: 12px; font-weight: 600; color: white; }
.feed-caption { font-size: 12px; color: rgba(255,255,255,0.85); line-height: 1.4; margin-bottom: 8px; }
.feed-product-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
}
.feed-likes { position: absolute; top: 10px; right: 10px; color: white; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 4px; }

/* ---- THẦN PAY SECTION ---- */
.thanpay-section {
  background: linear-gradient(135deg, #0a0a2e, #1a1a5e, #0d0d3d);
}
.thanpay-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.thanpay-logo {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--dark);
  font-size: 16px;
  font-weight: 900;
  padding: 8px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.thanpay-content h2 { font-size: 36px; font-weight: 900; color: white; line-height: 1.2; margin-bottom: 20px; }
.thanpay-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.thanpay-features li { font-size: 15px; color: rgba(255,255,255,0.8); }

.card-mockup { perspective: 1000px; }
.card-bg {
  background: linear-gradient(135deg, #1a1a3e, #E30613, #F5B800);
  border-radius: 20px;
  padding: 28px;
  color: white;
  position: relative;
  box-shadow: 0 20px 60px rgba(227,6,19,0.4);
  transform: rotateY(-10deg) rotateX(5deg);
  transition: var(--transition);
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-mockup:hover .card-bg { transform: rotateY(0deg) rotateX(0deg); }
.card-logo { font-size: 20px; font-weight: 900; letter-spacing: 2px; }
.card-chip {
  width: 36px;
  height: 28px;
  background: linear-gradient(135deg, #F5B800, #ffda60);
  border-radius: 6px;
}
.card-number { font-size: 15px; letter-spacing: 3px; opacity: 0.9; font-variant-numeric: tabular-nums; }
.card-info { display: flex; justify-content: space-between; font-size: 12px; opacity: 0.75; }
.card-balance { font-size: 18px; font-weight: 800; color: var(--gold); }

/* ---- SELLER SECTION ---- */
.seller-section { background: white; }
.seller-banner {
  background: linear-gradient(135deg, #f8f9fa, #fff);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  border: 2px solid var(--gray-2);
}
.seller-content h2 { font-size: 28px; font-weight: 900; margin-bottom: 10px; color: var(--text); }
.seller-content p { font-size: 15px; color: var(--gray-6); margin-bottom: 24px; }
.text-gold { color: var(--gold-dark); }
.seller-benefits {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.seller-benefit {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.benefit-icon { font-size: 20px; }

.seller-numbers { display: flex; flex-direction: column; gap: 24px; }
.seller-number-item { text-align: right; }
.sn-num { display: block; font-size: 28px; font-weight: 900; color: var(--red); }
.sn-label { font-size: 12px; color: var(--gray-6); }

/* ---- FOOTER ---- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  color: white;
  margin-bottom: 14px;
}
.footer-brand p { font-size: 13px; line-height: 1.7; margin-bottom: 20px; }
.social-links { display: flex; gap: 8px; margin-bottom: 16px; }
.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}
.social-link:hover { background: var(--red); transform: scale(1.1); }
.app-badges { display: flex; gap: 8px; }
.app-badge {
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.12);
  transition: var(--transition);
}
.app-badge:hover { background: rgba(255,255,255,0.15); }
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; transition: var(--transition); }
.footer-col a:hover { color: var(--red); padding-left: 4px; }
.payment-methods { display: flex; flex-wrap: wrap; gap: 6px; }
.payment-logo {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12px; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 12px; transition: var(--transition); }
.footer-bottom-links a:hover { color: white; }

/* ---- CART SIDEBAR ---- */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100vh;
  background: white;
  z-index: 2000;
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.cart-sidebar.open { right: 0; }
.cart-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-2);
}
.cart-sidebar-header h3 { font-size: 18px; font-weight: 700; }
.close-sidebar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition);
}
.close-sidebar:hover { background: var(--gray-2); }
.cart-items { flex: 1; overflow-y: auto; padding: 20px 24px; }
.empty-cart { text-align: center; padding: 40px 0; color: var(--gray-5); }
.empty-cart p { font-size: 14px; margin-top: 12px; }
.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-2);
}
.cart-item-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: var(--gray-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: 15px; font-weight: 700; color: var(--red); margin-top: 4px; }
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gray-1);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.qty-btn:hover { background: var(--red); color: white; }
.qty-val { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }
.cart-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-2);
}
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 600; }
.cart-total-price { font-size: 22px; color: var(--red); font-weight: 800; }

/* ---- OVERLAY ---- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}
.overlay.visible { opacity: 1; pointer-events: all; }

/* ---- TOAST ---- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: white;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  animation: slideInToast 0.3s ease;
  border-left: 4px solid var(--red);
}
.toast.success { border-left-color: #2ecc71; }
.toast.info { border-left-color: #3498db; }
@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ---- FLOATING ACTIONS ---- */
.floating-actions {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fab-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  border: none;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-red);
  transition: var(--transition);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}
.fab-btn.visible { opacity: 1; pointer-events: all; }
.fab-btn:hover { transform: scale(1.12); }
.fab-chat {
  background: var(--gold);
  color: var(--dark);
  box-shadow: var(--shadow-gold);
  opacity: 1;
  pointer-events: all;
}
.fab-chat:hover { background: var(--gold-dark); }

/* ---- LOAD MORE ---- */
.load-more-wrapper { text-align: center; margin-top: 32px; }
.load-more-btn {
  background: white;
  border: 2px solid var(--gray-3);
  color: var(--text);
  padding: 12px 40px;
  border-radius: var(--radius-xl);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}
.load-more-btn:hover { border-color: var(--red); color: var(--red); }

/* ---- GRADIENT TEXTS ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--gold), #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-gold {
  background: linear-gradient(135deg, var(--gold), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-5); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .villages-grid { grid-template-columns: repeat(2, 1fr); }
  .livestream-banner { grid-template-columns: 1fr; gap: 32px; }
  .thanpay-banner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .navbar-inner { flex-wrap: wrap; }
  .search-bar { order: 3; flex: 0 0 100%; }
  .search-categories { display: none; }
  .nav-label { display: none; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .seller-banner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ls-title { font-size: 26px; }
  .section-title { font-size: 18px; }
  .cart-sidebar { width: 100%; right: -100%; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .villages-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
