/* ============================================
   Apex Poly Products - Design System
   Reference: DECILO / IndiaMART style
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---- CSS Variables ---- */
:root {
  --primary: #e84d0e;
  --primary-dark: #c23d09;
  --primary-light: #f06030;
  --primary-glow: rgba(232, 77, 14, 0.12);

  --accent: #f97316;
  --accent2: #1a56db;

  --gradient-primary: linear-gradient(135deg, #e84d0e 0%, #c23d09 100%);
  --gradient-card: linear-gradient(135deg, #fff8f6 0%, #ffffff 100%);
  --gradient-hero: linear-gradient(135deg, #fff8f6 0%, #fff 60%, #fff5f0 100%);
  --shadow-orange: 0 8px 24px rgba(232, 77, 14, 0.18);

  --bg-base: #f2f2f2;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;
  --bg-input: #f9f9f9;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  --font-size-xs: 11px;
  --font-size-sm: 13px;
  --font-size-md: 14px;
  --font-size-xl: 22px;
  --font-size-2xl: 28px;

  --topbar-bg: #222222;
  --navbar-bg: #e84d0e;
  --catbar-bg: #ffffff;
  --footer-bg: #1a1a1a;
  --footer-mid: #242424;

  --border: #e0e0e0;
  --border-light: #f0f0f0;
  --border-accent: rgba(232, 77, 14, 0.3);

  --text-primary: #222222;
  --text-secondary: #555555;
  --text-muted: #999999;
  --text-white: #ffffff;
  --text-orange: #e84d0e;

  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #2563eb;

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.10);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-card: 0 1px 4px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --navbar-h: 56px;
  --topbar-h: 36px;
  --catbar-h: 40px;
  --total-header: 132px;

  --z-dropdown: 100;
  --z-navbar: 200;
  --z-toast: 400;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 14px; }
body {
  font-family: var(--font-family);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.5;
  padding-top: var(--total-header);
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
svg { vertical-align: middle; flex-shrink: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; outline: none; }
ul, ol { list-style: none; }

/* ---- Container ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.container-full { width: 100%; padding: 0 16px; }

/* ============================================
   TOP BAR
   ============================================ */
.topbar {
  background: var(--topbar-bg);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid #333;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: calc(var(--z-navbar) + 10);
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.topbar-left {
  font-size: 11px;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar-left a { color: #ccc; font-size: 11px; }
.topbar-left a:hover { color: white; }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  color: #aaa;
}
.topbar-right a {
  color: #ccc;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.topbar-right a:hover { color: white; }

/* ============================================
   MAIN NAVBAR
   ============================================ */
.navbar {
  background: var(--navbar-bg);
  height: var(--navbar-h);
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  z-index: var(--z-navbar);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 900;
  color: white;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  text-decoration: none;
}
.navbar-logo span { color: #ffe0cc; }
.navbar-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

/* Search Bar */
.navbar-search {
  flex: 1;
  display: flex;
  max-width: 540px;
}
.navbar-search input {
  flex: 1;
  height: 38px;
  padding: 0 14px;
  font-size: 13px;
  border: none;
  border-radius: 4px 0 0 4px;
  background: white;
  color: var(--text-primary);
}
.navbar-search input::placeholder { color: #aaa; }
.navbar-search-btn {
  height: 38px;
  padding: 0 18px;
  background: var(--topbar-bg);
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition-fast);
}
.navbar-search-btn:hover { background: #111; }

/* Navbar Actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.nav-action-btn:hover { background: rgba(255,255,255,0.25); }
.nav-action-btn.cart-btn {
  background: var(--topbar-bg);
  border-color: transparent;
  position: relative;
}
.nav-action-btn.cart-btn:hover { background: #111; }
.cart-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  background: #fff;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   CATEGORY BAR
   ============================================ */
.catbar {
  background: var(--catbar-bg);
  border-bottom: 2px solid var(--primary);
  height: var(--catbar-h);
  position: fixed;
  top: calc(var(--topbar-h) + var(--navbar-h));
  left: 0;
  right: 0;
  z-index: calc(var(--z-navbar) - 1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}
.catbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.catbar-inner::-webkit-scrollbar { display: none; }
.catbar-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  height: 100%;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  text-decoration: none;
}
.catbar-item:hover, .catbar-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.catbar-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  flex-shrink: 0;
}

/* ============================================
   PAGE BODY OFFSET
   ============================================ */
.page-body {
  padding-top: var(--total-header);
}

/* ============================================
   HERO / BANNER — full-bleed image carousel
   ============================================ */
.hero-carousel {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: #111;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,0.82) 0%, rgba(10,10,10,0.55) 40%, rgba(10,10,10,0.2) 68%, rgba(10,10,10,0.05) 100%);
}

.hero-slide-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
}

.hero-text-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(232,77,14,0.18);
  border: 1px solid rgba(232,77,14,0.5);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #ff8a4f;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
  width: fit-content;
}

.hero-title {
  font-size: 44px;
  font-weight: 900;
  color: white;
  line-height: 1.12;
  margin-bottom: 16px;
  letter-spacing: -1px;
  max-width: 620px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.hero-title .accent { color: var(--primary-light); }

.hero-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.btn-outline-light {
  background: rgba(255,255,255,0.08);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.18); border-color: white; }

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md);
  backdrop-filter: blur(6px);
}
.hero-badge-icon {
  width: 30px; height: 30px;
  background: rgba(232,77,14,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  flex-shrink: 0;
}
.hero-badge-text .num { font-size: 14px; font-weight: 800; color: white; line-height: 1.2; }
.hero-badge-text .label { font-size: 10px; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.5px; }

/* Nav arrows */
.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  color: white;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(4px);
}
.hero-nav-btn:hover { background: var(--primary); border-color: var(--primary); }
.hero-nav-prev { left: 20px; }
.hero-nav-next { right: 20px; }

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}
.hero-dot.active { width: 24px; background: var(--primary); }

@media (max-width: 768px) {
  .hero-carousel { height: 480px; }
  .hero-title { font-size: 30px; }
  .hero-badges { display: none; }
  .hero-nav-btn { width: 34px; height: 34px; }
}
@media (max-width: 480px) {
  .hero-carousel { height: 460px; }
  .hero-title { font-size: 24px; }
  .hero-subtitle { font-size: 13px; }
}

/* ============================================
   MARQUEE / TICKER BAR
   ============================================ */
.ticker-bar {
  background: var(--primary);
  color: white;
  padding: 6px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-flex;
  gap: 48px;
  animation: ticker 20s linear infinite;
  font-size: 12px;
  font-weight: 600;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-item { display: inline-flex; align-items: center; gap: 6px; }

/* ============================================
   SECTION
   ============================================ */
.section {
  padding: 28px 0;
}
.section-sm { padding: 16px 0; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}
.section-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  position: relative;
}
.section-title-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}
.section-link {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.section-link:hover { text-decoration: underline; }

/* ============================================
   PRODUCT CARDS
   ============================================ */

/* -- Grid Card -- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}
.product-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-hot { background: #dc2626; color: white; }
.badge-sale { background: var(--primary); color: white; }
.badge-new { background: #16a34a; color: white; }

.product-card-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.05); }
.product-card-body { padding: 12px; border-top: 1px solid var(--border-light); }
.product-card-category {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.product-card-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 35px;
}
.product-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}
.rating-stars { display: inline-flex; gap: 1px; }
.rating-stars svg { width: 11px; height: 11px; fill: #f59e0b; color: #f59e0b; }
.rating-stars svg.empty { fill: none; stroke: #d1d5db; stroke-width: 2; }
.rating-count { font-size: 10px; color: var(--text-muted); }
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.product-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
}
.product-price-original {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 4px;
}

/* Add to cart button */
.add-to-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.add-to-cart-btn:hover { background: var(--primary-dark); transform: scale(1.05); }
.add-to-cart-btn.added { background: var(--success); }

/* -- List Card (Products Page) -- */
.product-list-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 0;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 8px;
}
.product-list-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.product-list-img {
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-right: 1px solid var(--border-light);
  position: relative;
}
.product-list-img img { width: 140px; height: 140px; object-fit: contain; }
.product-list-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.product-list-category {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.product-list-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
}
.product-list-name:hover { color: var(--primary); }
.product-list-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-list-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.spec-tag {
  padding: 2px 8px;
  background: #f5f5f5;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 10.5px;
  color: var(--text-secondary);
}
.product-list-rating { display: flex; align-items: center; gap: 6px; }
.product-list-actions {
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  border-left: 1px solid var(--border-light);
  min-width: 150px;
}
.product-list-price { text-align: right; }
.product-list-price .price { font-size: 20px; font-weight: 900; color: var(--primary); }
.product-list-price .original { font-size: 12px; color: var(--text-muted); text-decoration: line-through; }
.product-list-price .discount { font-size: 11px; font-weight: 700; color: var(--success); }
.stock-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--success);
}
.stock-status::before { content: ''; width: 6px; height: 6px; background: var(--success); border-radius: 50%; }

/* ============================================
   CATEGORY SHOWCASE
   ============================================ */
.cat-showcase-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.cat-showcase-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.cat-showcase-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.cat-showcase-icon {
  width: 52px;
  height: 52px;
  background: rgba(232,77,14,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: background var(--transition-fast);
}
.cat-showcase-card:hover .cat-showcase-icon { background: rgba(232,77,14,0.15); }
.cat-showcase-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.3;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-icon {
  width: 44px;
  height: 44px;
  background: rgba(232,77,14,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.stat-text {}
.stat-num { font-size: 22px; font-weight: 900; color: var(--primary); }
.stat-label { font-size: 11px; color: var(--text-muted); }

/* ============================================
   PROMO BANNER
   ============================================ */
.promo-banner {
  background: linear-gradient(135deg, #e84d0e 0%, #c23d09 100%);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.promo-banner::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 240px;
  height: 240px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.promo-banner-text .tag {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.promo-banner-text h2 { font-size: 24px; font-weight: 900; color: white; margin-bottom: 6px; }
.promo-banner-text p { font-size: 13px; color: rgba(255,255,255,0.85); }
.promo-banner-img { text-align: right; }
.promo-banner-img img { max-height: 160px; object-fit: contain; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary {
  background: white;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-secondary:hover { background: rgba(232,77,14,0.05); }
.btn-dark {
  background: var(--topbar-bg);
  color: white;
}
.btn-dark:hover { background: #111; }
.btn-ghost { background: none; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover { background: #f5f5f5; color: var(--text-primary); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 12px 28px; font-size: 14px; }
.btn-full { width: 100%; justify-content: center; }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 9px 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  transition: border-color var(--transition-fast);
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-glow); }
.form-input::placeholder { color: #bbb; }
.form-input.error { border-color: var(--danger); }
.form-error { font-size: 11px; color: var(--danger); margin-top: 4px; display: none; }
.form-error.show { display: block; }

/* ============================================
   TOAST
   ============================================ */
.toast-container {
  position: fixed;
  top: calc(var(--total-header) + 16px);
  right: 16px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-width: 260px;
  max-width: 340px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary);
  animation: slideIn 0.3s ease;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.info { border-left-color: var(--info); }
.toast.warning { border-left-color: var(--warning); }
.toast-icon { flex-shrink: 0; display: flex; }
.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--danger); }
.toast.info .toast-icon { color: var(--info); }
.toast.warning .toast-icon { color: var(--warning); }
.toast-content { flex: 1; }
.toast-title { font-size: 13px; font-weight: 700; }
.toast-msg { font-size: 11px; color: var(--text-muted); }
.toast-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 14px; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ============================================
   QUANTITY SELECTOR
   ============================================ */
.quantity-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: white;
}
.quantity-selector button {
  width: 32px;
  height: 32px;
  background: #f5f5f5;
  border: none;
  color: var(--text-primary);
  font-size: 16px;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.quantity-selector button:hover { background: var(--primary); color: white; }
.quantity-selector input {
  width: 44px;
  height: 32px;
  background: white;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  padding: 12px 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); text-decoration: underline; }
.breadcrumb-sep { color: var(--text-muted); }

/* ============================================
   PAGE HERO STRIP
   ============================================ */
.page-hero-strip {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.page-hero-strip h1 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.page-hero-strip p { font-size: 12px; color: var(--text-muted); }

/* ============================================
   INFO CARD / SIDEBAR
   ============================================ */
.info-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.info-card-head {
  background: var(--primary);
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
}
.info-card-body { padding: 14px; }

/* ============================================
   STAR RATING
   ============================================ */
.stars-display {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  background: var(--success);
  border-radius: 3px;
  color: white;
  font-size: 12px;
  font-weight: 700;
}

/* ============================================
   DIVIDER
   ============================================ */
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--footer-bg);
  padding-top: 40px;
  margin-top: 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #333;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.footer-brand {}
.footer-logo {
  font-size: 20px;
  font-weight: 900;
  color: white;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-logo span { color: #f97316; }
.footer-brand p {
  font-size: 12px;
  color: #888;
  line-height: 1.7;
  max-width: 240px;
  margin-bottom: 16px;
}
.footer-contact { display: flex; flex-direction: column; gap: 6px; }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #aaa;
}
.footer-col {}
.footer-col h4 {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ccc;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
}
.footer-col a {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 7px;
  transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--primary); }

.footer-mid {
  background: var(--footer-mid);
  border-top: 1px solid #333;
  padding: 16px 0;
}
.footer-mid-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-cats a {
  font-size: 11px;
  color: #888;
}
.footer-cats a:hover { color: var(--primary); }
.footer-bottom {
  background: #111;
  padding: 12px 0;
}
.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 11px; color: #666; }
.footer-pay-icons { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #666; }

/* ============================================
   MISC UTILITIES
   ============================================ */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-orange { color: var(--primary); }
.text-success { color: var(--success); }
.text-sm { font-size: 12px; }
.text-xs { font-size: 10px; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

.bg-white { background: white; }
.bg-base { background: var(--bg-base); }
.rounded { border-radius: var(--radius-md); }
.border { border: 1px solid var(--border); }
.shadow { box-shadow: var(--shadow-card); }
.p-16 { padding: 16px; }
.mb-16 { margin-bottom: 16px; }

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-showcase-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-showcase-grid { grid-template-columns: repeat(3, 1fr); }
  .product-list-card { grid-template-columns: 120px 1fr; }
  .product-list-actions { display: none; }
  .navbar-search { max-width: 300px; }
  .footer-top { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .navbar-search { display: none; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate-fade-in-up { animation: fadeInUp 0.5s ease forwards; }
