/* ============================================================
   HOW TO CONNECT:
   Link this file in your HTML <head> like this:
   <link rel="stylesheet" href="style.css">
   Make sure style.css is in the SAME folder as index.html
============================================================ */
/* ===== CSS VARIABLES ===== */
:root {
  --primary: #0052D9;
  --primary-dark: #003BA3;
  --primary-light: #E8F0FE;
  --accent: #FF6B2B;
  --accent-light: #FFF0E8;
  --success: #00B96B;
  --warning: #FAAD14;
  --danger: #FF4D4F;
  --bg: #F5F7FA;
  --bg2: #9aa847;
  --surface: #FFFFFF;
  --border: #E4E7EC;
  --text-primary: #101828;
  --text-secondary: #475467;
  --text-muted: #98A2B3;
  --shadow-sm: 0 1px 3px rgba(16,24,40,0.08), 0 1px 2px rgba(16,24,40,0.04);
  --shadow-md: 0 4px 16px rgba(16,24,40,0.10);
  --shadow-lg: 0 12px 40px rgba(16,24,40,0.13);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text-primary); font-size: 15px; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font-body); }
ul { list-style: none; }

/* ===== PAGE ROUTER ===== */
.page { display: none; }
.page.active { display: block; }

/* ===== TOP ANNOUNCEMENT BAR ===== */
.announcement {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 8px 20px;
  font-size: 13px;
  font-family: var(--font);
  letter-spacing: 0.02em;
}
.announcement span { color: #FFD166; font-weight: 600; }

/* ===== HEADER ===== */
header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.header-top {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 48px;
  max-width: 1440px;
  margin: 0 auto;
}
.logo {
  font-family: var(--font);
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
  white-space: nowrap;
  cursor: pointer;
}
.logo span { color: var(--accent); }

.search-bar {
  flex: 1;
  display: flex;
  border: 2px solid var(--primary);
  border-radius: 10px;
  overflow: hidden;
  max-width: 680px;
}
.search-select {
  background: var(--primary-light);
  border: none;
  padding: 0 14px;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
  outline: none;
  border-right: 1px solid var(--border);
}
.search-input {
  flex: 1;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  color: var(--text-primary);
}
.search-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0 22px;
  font-size: 18px;
  transition: background 0.2s;
}
.search-btn:hover { background: var(--primary-dark); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}
.hdr-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  color: var(--text-secondary);
  gap: 2px;
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
}
.hdr-action:hover { color: var(--primary); }
.hdr-action .icon { font-size: 20px; }
.cart-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.btn-login {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.15s;
}
.btn-login:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ===== NAV BAR ===== */
.nav-bar {
  background: var(--primary);
  padding: 0 48px;
}
.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-categories {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--primary-dark);
  padding: 0 18px;
  height: 44px;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  gap: 8px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-link {
  color: rgba(255,255,255,0.88);
  padding: 0 18px;
  height: 44px;
  display: flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  border-radius: 0;
  cursor: pointer;
}
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,0.12); color: #fff; }
.nav-link.hot { color: #FFD166; font-weight: 600; }
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-sel {
  color: rgba(255,255,255,0.8);
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, #0A1628 0%, #0B2D6E 50%, #0052D9 100%);
  padding: 0 48px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr 320px;
  gap: 24px;
  padding: 24px 0;
  position: relative;
  z-index: 1;
}

/* Sidebar categories */
.hero-sidebar {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.18s;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebar-item:hover { background: rgba(255,255,255,0.1); color: #fff; }
.sidebar-item .si-icon { font-size: 16px; }

/* Hero banner */
.hero-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(120deg, #1a3a8f 0%, #0052D9 60%, #00B4FF 100%);
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  padding: 36px;
}
.hero-banner-img {
  position: absolute;
  right: 0;
  top: 0;
  width: 55%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.hero-banner-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.2);
}
.hero-title {
  font-family: var(--font);
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 8px;
}
.hero-title span { color: #FFD166; }
.hero-sub { color: rgba(255,255,255,0.75); font-size: 14px; margin-bottom: 20px; }
.btn-hero {
  background: #fff;
  color: var(--primary);
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,82,217,0.35); }

/* Hero side panels */
.hero-panels {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-panel {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 16px;
  color: #fff;
  backdrop-filter: blur(8px);
  flex: 1;
}
.panel-title { font-family: var(--font); font-size: 12px; font-weight: 600; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.panel-value { font-family: var(--font); font-size: 28px; font-weight: 800; color: #FFD166; }
.panel-sub { font-size: 12px; opacity: 0.65; margin-top: 2px; }

/* ===== DEALS TIMER ===== */
.deals-section {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 48px;
}
.deals-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}
.deals-label {
  display: flex;
  flex-direction: column;
  min-width: 120px;
}
.deals-label .title { font-family: var(--font); font-size: 16px; font-weight: 700; color: var(--text-primary); }
.deals-label .sub { font-size: 12px; color: var(--text-muted); }
.timer {
  display: flex;
  align-items: center;
  gap: 6px;
}
.timer-block {
  background: var(--primary);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
}
.timer-block .num { font-size: 18px; font-weight: 700; line-height: 1; }
.timer-block .lbl { font-size: 8px; opacity: 0.7; text-transform: uppercase; }
.timer-sep { font-size: 20px; font-weight: 700; color: var(--primary); }
.deal-card {
  min-width: 100px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.deal-card:hover { transform: translateY(-3px); }
.deal-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 auto 6px;
  background: var(--bg);
}
.deal-name { font-size: 12px; color: var(--text-secondary); margin-bottom: 2px; }
.deal-disc {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  color: var(--danger);
}

/* ===== SECTION WRAPPER ===== */
.section {
  padding: 40px 48px;
  max-width: 1440px;
  margin: 0 auto;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-title {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}
.section-title span { color: var(--primary); }
.btn-view-all {
  background: none;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-view-all:hover { background: var(--primary); color: #fff; }

/* ===== CATEGORY GRID ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
}
.cat-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.cat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--primary);
}
.cat-icon { font-size: 32px; margin-bottom: 8px; }
.cat-name { font-size: 12px; font-weight: 600; color: var(--text-primary); font-family: var(--font); }
.cat-count { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.22s, transform 0.22s;
  position: relative;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.product-card:hover .card-actions { opacity: 1; transform: translateY(0); }
.product-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 1;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.product-card:hover .product-img-wrap img { transform: scale(1.07); }
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font);
}
.badge-sale { background: var(--danger); color: #fff; }
.badge-new { background: var(--success); color: #fff; }
.badge-hot { background: var(--accent); color: #fff; }
.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: #fff;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transition: opacity 0.2s;
  cursor: pointer;
}
.product-card:hover .fav-btn { opacity: 1; }
.card-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.96);
  padding: 10px 12px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.22s, transform 0.22s;
}
.btn-cart {
  flex: 1;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  transition: background 0.2s;
}
.btn-cart:hover { background: var(--primary-dark); }
.btn-quick {
  background: var(--accent-light);
  color: var(--accent);
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  transition: background 0.2s;
}
.btn-quick:hover { background: var(--accent); color: #fff; }
.card-body { padding: 14px; }
.card-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font);
}
.card-cat { font-size: 11.5px; color: var(--text-muted); margin-bottom: 8px; }
.card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}
.stars { color: var(--warning); font-size: 13px; }
.rating-val { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.rating-count { font-size: 11px; color: var(--text-muted); }
.card-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.price-new {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
}
.price-old {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-disc {
  font-size: 11px;
  font-weight: 700;
  color: var(--danger);
  background: #fff0f0;
  padding: 1px 5px;
  border-radius: 4px;
}

/* ===== PROMO BANNERS ===== */
.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  padding: 0 48px;
  max-width: 1440px;
  margin: 0 auto 40px;
}
.promo-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  min-height: 140px;
  transition: transform 0.2s;
}
.promo-card:hover { transform: translateY(-3px); }
.promo-card:nth-child(1) { background: linear-gradient(135deg, #0052D9, #00B4FF); }
.promo-card:nth-child(2) { background: linear-gradient(135deg, #FF6B2B, #FFD166); }
.promo-card:nth-child(3) { background: linear-gradient(135deg, #00B96B, #A8FFD4); }
.promo-text h3 { font-family: var(--font); font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.promo-text p { font-size: 13px; color: rgba(255,255,255,0.8); margin-bottom: 14px; }
.btn-promo {
  background: rgba(255,255,255,0.22);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.2s;
}
.btn-promo:hover { background: rgba(255,255,255,0.35); }
.promo-emoji { font-size: 56px; opacity: 0.6; }

/* ===== SUPPLIER SECTION ===== */
.supplier-strip {
  background: var(--primary-dark);
  padding: 32px 48px;
}
.supplier-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 24px;
}
.supplier-feat {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: #fff;
}
.sf-icon { font-size: 32px; flex-shrink: 0; }
.sf-title { font-family: var(--font); font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.sf-desc { font-size: 13px; opacity: 0.7; line-height: 1.5; }

/* ===== REGION SUPPLIERS ===== */
.region-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.region-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.region-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.region-flag { font-size: 22px; margin-bottom: 6px; }
.region-name { font-size: 13px; font-weight: 600; color: var(--text-primary); font-family: var(--font); }
.region-url { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ===== NEWSLETTER ===== */
.newsletter {
  background: linear-gradient(135deg, #0052D9 0%, #003BA3 100%);
  padding: 48px;
  text-align: center;
  margin-top: 40px;
}
.newsletter h2 { font-family: var(--font); font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.newsletter p { color: rgba(255,255,255,0.75); margin-bottom: 24px; }
.newsletter-form { display: flex; justify-content: center; gap: 0; max-width: 500px; margin: 0 auto; }
.newsletter-input {
  flex: 1;
  border: none;
  padding: 14px 20px;
  font-size: 14px;
  font-family: var(--font-body);
  border-radius: 10px 0 0 10px;
  outline: none;
}
.btn-subscribe {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.2s;
}
.btn-subscribe:hover { background: #e55a1c; }

/* ===== FOOTER ===== */
footer {
  background: #0A1628;
  color: rgba(255,255,255,0.75);
  padding: 48px;
}
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
}
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; max-width: 240px; opacity: 0.7; }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.social-btn:hover { background: var(--primary); }
.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer-col h4 {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 13.5px; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1440px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: rgba(255,255,255,0.4);
}

/* ===== PRODUCT LISTING PAGE ===== */
.listing-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 48px;
}
.filter-sidebar {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 100px;
}
.filter-title {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.filter-group { margin-bottom: 20px; }
.filter-group h4 {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  cursor: pointer;
}
.filter-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}
.filter-option label { font-size: 13.5px; cursor: pointer; color: var(--text-secondary); }
.filter-option.active label { color: var(--primary); font-weight: 600; }
.price-range-inputs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.price-range-inputs input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 13px;
  outline: none;
  font-family: var(--font-body);
}
.price-range-inputs input:focus { border-color: var(--primary); }
.btn-apply {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  width: 100%;
  margin-top: 10px;
  cursor: pointer;
  font-family: var(--font);
}
.stars-filter { color: var(--warning); font-size: 14px; }

/* Listing main */
.listing-main {}
.listing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  background: var(--surface);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.listing-count { font-size: 14px; color: var(--text-secondary); }
.listing-count strong { color: var(--text-primary); font-family: var(--font); }
.listing-controls { display: flex; align-items: center; gap: 12px; }
.listing-sort {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
}
.view-toggle { display: flex; gap: 4px; }
.view-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s, border-color 0.2s;
}
.view-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tag-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tag {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
}
.tag .rm { cursor: pointer; font-size: 14px; }
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
/* List view */
.listing-grid.list-view { grid-template-columns: 1fr; }
.listing-grid.list-view .product-card { display: flex; flex-direction: row; }
.listing-grid.list-view .product-img-wrap { width: 200px; flex-shrink: 0; aspect-ratio: auto; height: 200px; }
.listing-grid.list-view .card-body { flex: 1; }
.listing-grid.list-view .card-actions { position: static; opacity: 1; transform: none; background: none; padding: 12px 0 0; }
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}
.page-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13.5px;
  font-family: var(--font);
  cursor: pointer;
  background: var(--surface);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== PRODUCT DETAIL PAGE ===== */
.detail-layout {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 48px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.breadcrumb span { color: var(--text-primary); font-weight: 500; }
.breadcrumb .sep { color: var(--border); }
.detail-top {
  display: grid;
  grid-template-columns: 480px 1fr 280px;
  gap: 32px;
  margin-bottom: 40px;
}

/* Image gallery */
.detail-gallery {}
.main-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 1;
  position: relative;
  margin-bottom: 12px;
  cursor: zoom-in;
}
.main-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.img-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 2px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.thumb.active { border-color: var(--primary); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Product info */
.detail-info {}
.detail-brand { font-size: 13px; color: var(--primary); font-weight: 600; margin-bottom: 8px; font-family: var(--font); }
.detail-name {
  font-family: var(--font);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 14px;
}
.detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.detail-rating { display: flex; align-items: center; gap: 5px; }
.detail-stock { font-size: 13px; color: var(--success); font-weight: 600; }
.detail-sold { font-size: 13px; color: var(--text-muted); }
.detail-price-box {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
}
.price-tiers { display: flex; gap: 0; }
.tier {
  flex: 1;
  text-align: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-right: none;
  background: var(--surface);
  cursor: pointer;
  transition: background 0.2s;
}
.tier:first-child { border-radius: 8px 0 0 8px; }
.tier:last-child { border-right: 1px solid var(--border); border-radius: 0 8px 8px 0; }
.tier:hover, .tier.active { background: var(--primary-light); border-color: var(--primary); }
.tier-range { font-size: 11px; color: var(--text-muted); }
.tier-price { font-family: var(--font); font-size: 18px; font-weight: 700; color: var(--accent); }
.detail-options { margin-bottom: 20px; }
.option-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; font-family: var(--font); }
.option-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-family: var(--font);
}
.chip:hover { border-color: var(--primary); }
.chip.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); font-weight: 600; }
.qty-control { display: flex; align-items: center; gap: 0; }
.qty-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.15s;
}
.qty-btn:first-child { border-radius: 8px 0 0 8px; border-right: none; }
.qty-btn:last-child { border-radius: 0 8px 8px 0; border-left: none; }
.qty-btn:hover { background: var(--bg); }
.qty-input {
  width: 56px;
  height: 38px;
  border: 1px solid var(--border);
  text-align: center;
  font-size: 15px;
  font-family: var(--font);
  font-weight: 600;
  outline: none;
  color: var(--text-primary);
}
.detail-actions { display: flex; gap: 12px; margin-top: 20px; }
.btn-add-cart {
  flex: 1;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-add-cart:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-buy-now {
  flex: 1;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-buy-now:hover { background: #e55a1c; transform: translateY(-1px); }
.btn-wishlist {
  width: 48px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 20px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.btn-wishlist:hover { border-color: var(--danger); color: var(--danger); }
.detail-specs {
  margin-top: 20px;
  font-size: 13.5px;
}
.spec-row {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.spec-row:last-child { border-bottom: none; }
.spec-key { color: var(--text-muted); width: 120px; flex-shrink: 0; }
.spec-val { color: var(--text-primary); font-weight: 500; }

/* Seller card */
.seller-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 100px;
}
.seller-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.seller-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
}
.seller-name { font-family: var(--font); font-size: 14px; font-weight: 700; color: var(--text-primary); }
.seller-verified { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--success); font-weight: 600; }
.seller-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.stat-item { text-align: center; }
.stat-val { font-family: var(--font); font-size: 16px; font-weight: 700; color: var(--text-primary); }
.stat-key { font-size: 11px; color: var(--text-muted); }
.btn-inquiry {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  margin-bottom: 10px;
  transition: background 0.2s;
}
.btn-inquiry:hover { background: var(--primary-dark); }
.btn-save {
  width: 100%;
  background: none;
  border: 1.5px solid var(--border);
  padding: 11px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  color: var(--text-primary);
  transition: border-color 0.2s;
}
.btn-save:hover { border-color: var(--primary); color: var(--primary); }
.ship-info { font-size: 12px; color: var(--text-muted); margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.ship-info span { display: flex; align-items: center; gap: 6px; }

/* Tabs */
.detail-tabs { margin-top: 32px; }
.tab-list { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 28px; }
.tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.desc-text { font-size: 14.5px; line-height: 1.8; color: var(--text-secondary); max-width: 800px; }
.specs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs-table tr:nth-child(even) { background: var(--bg); }
.specs-table td { padding: 12px 16px; border: 1px solid var(--border); }
.specs-table td:first-child { font-weight: 600; color: var(--text-secondary); width: 200px; }

/* ===== CART PAGE ===== */
.cart-layout {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 48px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
}
.cart-items {}
.cart-header-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 40px;
  gap: 16px;
  padding: 12px 16px;
  background: var(--surface);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-family: var(--font);
}
.cart-item-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 40px;
  gap: 16px;
  padding: 18px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  align-items: center;
  transition: background 0.15s;
}
.cart-item-row:last-child { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.cart-item-row:hover { background: var(--bg); }
.cart-product { display: flex; align-items: center; gap: 14px; }
.cart-img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg);
  flex-shrink: 0;
}
.cart-pname { font-size: 14px; font-weight: 600; font-family: var(--font); color: var(--text-primary); margin-bottom: 3px; }
.cart-pmeta { font-size: 12px; color: var(--text-muted); }
.cart-pseller { font-size: 12px; color: var(--primary); margin-top: 2px; }
.cart-price-cell { font-family: var(--font); font-size: 15px; font-weight: 700; color: var(--primary); }
.cart-remove { background: none; border: none; font-size: 20px; color: var(--text-muted); cursor: pointer; transition: color 0.2s; }
.cart-remove:hover { color: var(--danger); }
.cart-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}
.btn-clear { background: none; border: none; color: var(--danger); font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-continue { background: none; border: 1.5px solid var(--border); padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font); transition: border-color 0.2s; }
.btn-continue:hover { border-color: var(--primary); color: var(--primary); }
.coupon-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.coupon-input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
}
.coupon-input:focus { border-color: var(--primary); }
.btn-coupon {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
}
.saved-section { margin-top: 24px; }
.saved-title { font-family: var(--font); font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.saved-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.saved-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.saved-card:hover { box-shadow: var(--shadow-md); }
.saved-img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg); }
.saved-body { padding: 10px; }
.saved-name { font-size: 12px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.saved-price { font-size: 13px; font-weight: 700; color: var(--accent); font-family: var(--font); }
.btn-move { width: 100%; background: var(--primary-light); color: var(--primary); border: none; padding: 8px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: var(--font); transition: background 0.2s; }
.btn-move:hover { background: var(--primary); color: #fff; }

/* Order summary */
.order-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 100px;
}
.summary-title { font-family: var(--font); font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-bottom: 12px;
}
.summary-row .key { color: var(--text-secondary); }
.summary-row .val { font-weight: 600; }
.summary-row.discount .val { color: var(--success); }
.summary-row.tax .val { color: var(--text-muted); }
.summary-divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.btn-checkout {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-bottom: 12px;
}
.btn-checkout:hover { background: #e55a1c; transform: translateY(-1px); }
.secure-badges { display: flex; justify-content: center; gap: 16px; margin-top: 16px; }
.secure-item { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--text-muted); }
.secure-item .si { font-size: 20px; }

/* Inquiry form */
.inquiry-card {
  background: linear-gradient(135deg, #f0f4ff, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 700px;
  margin: 0 auto;
}
.inquiry-title { font-family: var(--font); font-size: 20px; font-weight: 700; margin-bottom: 20px; color: var(--text-primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-secondary); font-family: var(--font); }
.form-group input, .form-group select, .form-group textarea {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 80px; }

/* ===== TRUST BADGES ===== */
.trust-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 24px 48px;
}
.trust-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.trust-icon { font-size: 36px; }
.trust-text h4 { font-family: var(--font); font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.trust-text p { font-size: 12.5px; color: var(--text-muted); }

/* ===== RESPONSIVE HELPERS ===== */
.container { max-width: 1440px; margin: 0 auto; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.4s ease both; }
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.1s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.2s; }

/* Notification toast */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--text-primary);
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateX(120px);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.success { background: var(--success); }

/* Misc */
.divider { border: none; border-top: 1px solid var(--border); }
.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.mt32 { margin-top: 32px; }
