/* ============================================
   NEXA BUYER PORTAL — DESIGN SYSTEM
   ============================================ */

:root {
  --primary: #FF6B00;
  --primary-dark: #e05a00;
  --primary-light: #FF8C38;
  --secondary: #0F0F1A;
  --accent: #FFD700;
  --bg: #F7F8FA;
  --bg-dark: #0F0F1A;
  --surface: #FFFFFF;
  --surface-2: #F0F2F5;
  --border: #E5E7EB;
  --text: #111827;
  --text-2: #4B5563;
  --text-3: #9CA3AF;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --font-display: 'Clash Display', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::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);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================
   TOPBAR
   ============================================ */
.topbar {
  background: var(--secondary);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  background: var(--secondary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: var(--transition);
  max-width: 700px;
}

.search-bar:focus-within {
  border-color: var(--primary);
}

.search-category {
  padding: 0 12px;
  height: 46px;
  border: none;
  border-right: 1px solid var(--border);
  background: #f5f5f5;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  outline: none;
  min-width: 100px;
}

.search-input {
  flex: 1;
  height: 46px;
  padding: 0 16px;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
}

.search-btn {
  width: 52px;
  height: 46px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 14px;
  color: #fff;
  border-radius: 8px;
  transition: var(--transition);
  font-size: 11px;
  font-weight: 500;
  position: relative;
}

.action-btn:hover { background: rgba(255,255,255,0.1); }

.cart-btn { position: relative; }

.cart-count {
  position: absolute;
  top: 4px;
  right: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* MAIN NAV */
.main-nav {
  background: #1a1a2e;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar { display: none; }

.nav-all-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  background: var(--primary);
  border-radius: 0;
  white-space: nowrap;
  transition: var(--transition);
}

.nav-all-btn:hover { background: var(--primary-dark); }

.nav-link {
  padding: 12px 14px;
  color: rgba(255,255,255,0.85);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
  border-radius: 4px;
}

.nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }

.sale-link { color: #FFD700 !important; font-weight: 600; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  height: 520px;
}

.hero-slider { height: 100%; position: relative; }

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 80px;
  opacity: 0;
  transition: opacity 0.6s ease;
  gap: 60px;
}

.hero-slide.active { opacity: 1; z-index: 1; }

.hero-content { flex: 1; color: #fff; }

.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

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

.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  max-width: 440px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  flex: 0 0 420px;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: var(--transition);
  cursor: pointer;
}

.dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.hero-arrow:hover { background: var(--primary); }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }

/* ============================================
   FLASH BAR
   ============================================ */
.flash-bar {
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 44px;
}

.flash-label {
  background: #c45200;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.flash-ticker {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.flash-ticker span {
  display: inline-block;
  animation: ticker 30s linear infinite;
  font-size: 13.5px;
  font-weight: 500;
  padding-left: 100%;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 60px 0; }
.section-dark { background: var(--surface-2); }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.see-all {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}

.see-all:hover { color: var(--primary-dark); }

/* ============================================
   CATEGORIES GRID
   ============================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 12px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow);
}

.cat-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--primary);
}

.cat-icon {
  font-size: 36px;
  line-height: 1;
}

/* ============================================
   PRODUCTS GRID
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.product-card:hover .product-actions { opacity: 1; transform: translateY(0); }

.product-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--surface-2);
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrap img { transform: scale(1.06); }

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-badge.new { background: var(--success); }
.product-badge.hot { background: var(--primary); }

.product-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  opacity: 0;
}

.product-card:hover .product-wishlist { opacity: 1; }
.product-wishlist:hover { background: var(--danger); }

.product-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition);
}

.product-actions button {
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  transition: var(--transition);
}

.product-actions button:hover { background: var(--primary-dark); }

.product-info { padding: 14px; }

.product-brand {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.stars { color: var(--accent); font-size: 13px; }

.rating-count {
  font-size: 12px;
  color: var(--text-3);
}

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.price-current {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.price-original {
  font-size: 13px;
  color: var(--text-3);
  text-decoration: line-through;
}

.price-discount {
  font-size: 11px;
  font-weight: 700;
  color: var(--success);
  background: #d1fae5;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ============================================
   FILTER TABS
   ============================================ */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  border: 2px solid var(--border);
  transition: var(--transition);
  font-family: var(--font-body);
}

.tab:hover { border-color: var(--primary); color: var(--primary); }
.tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================
   PROMO BANNERS
   ============================================ */
.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.promo-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.promo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px;
  color: #fff;
  transition: var(--transition);
}

.promo-card:hover { transform: scale(1.02); }

.promo-large { min-height: 280px; }
.promo-small { min-height: 120px; }

.promo-content { position: relative; z-index: 1; }

.promo-tag {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.promo-content h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.promo-card img {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
  width: 45%;
  object-fit: cover;
  opacity: 0.6;
}

/* ============================================
   TRUST SECTION
   ============================================ */
.trust-section {
  background: var(--secondary);
  padding: 48px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.trust-item {
  text-align: center;
  color: #fff;
}

.trust-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.trust-item h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.trust-item p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

/* ============================================
   PRODUCTS SCROLL
   ============================================ */
.products-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.products-scroll .product-card {
  flex: 0 0 200px;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary) 0%, #FF8C38 100%);
  padding: 60px 0;
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.newsletter-text h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.newsletter-text p {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
}

.newsletter-form {
  display: flex;
  gap: 0;
  flex: 1;
  max-width: 480px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.newsletter-form input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 14px;
}

.newsletter-form button {
  padding: 16px 28px;
  background: var(--secondary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
  white-space: nowrap;
}

.newsletter-form button:hover { background: #1a1a2e; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin: 16px 0 20px;
  color: rgba(255,255,255,0.6);
}

.social-links { display: flex; gap: 10px; }

.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
}

.social-link:hover { background: var(--primary); }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 13.5px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.5); }

.footer-links { display: flex; gap: 20px; }

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

.footer-links a:hover { color: var(--primary); }

.payment-icons { display: flex; gap: 8px; font-size: 22px; }

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-body);
  transition: var(--transition);
  border: 2px solid var(--primary);
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,107,0,0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  background: transparent;
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  transition: var(--transition);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 36px;
  background: transparent;
  color: var(--primary);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-body);
  transition: var(--transition);
  border: 2px solid var(--primary);
}

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

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-body);
  transition: var(--transition);
}

.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.full-width { width: 100%; }

.load-more-wrap {
  text-align: center;
  margin-top: 40px;
}

/* ============================================
   CART SIDEBAR
   ============================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.cart-overlay.active { opacity: 1; pointer-events: all; }

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100vh;
  background: var(--surface);
  z-index: 2001;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,0.2);
}

.cart-sidebar.active { right: 0; }

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

.cart-header h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

.close-btn:hover { background: var(--danger); color: #fff; }

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

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  color: var(--text-3);
}

.cart-empty span { font-size: 60px; }
.cart-empty p { font-size: 16px; font-weight: 500; }

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-2);
}

.cart-item-info { flex: 1; }

.cart-item-name {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.4;
}

.cart-item-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--surface-2);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

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

.qty-num { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }

.cart-item-remove {
  color: var(--text-3);
  font-size: 18px;
  transition: var(--transition);
  align-self: flex-start;
}

.cart-item-remove:hover { color: var(--danger); }

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 16px;
}

.cart-total strong {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--primary);
}

/* ============================================
   TOAST
   ============================================ */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--secondary);
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
  max-width: 320px;
  border-left: 4px solid var(--primary);
}

.toast.show { transform: translateY(0); opacity: 1; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero { height: auto; }
  .hero-slide { flex-direction: column; padding: 40px 24px; text-align: center; position: relative; }
  .hero-visual { flex: none; width: 100%; height: 220px; }
  .hero-actions { justify-content: center; }
  .hero-sub { margin: 0 auto 24px; }
  .promo-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .search-bar { order: 3; width: 100%; max-width: 100%; }
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-inner { flex-direction: column; }
  .newsletter-form { max-width: 100%; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-sidebar { width: 100%; right: -100%; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.fade-in { animation: fadeIn 0.5s ease forwards; }
.fade-in-up { animation: fadeInUp 0.5s ease forwards; }

/* Stagger children */
.products-grid .product-card:nth-child(1) { animation-delay: 0.05s; }
.products-grid .product-card:nth-child(2) { animation-delay: 0.1s; }
.products-grid .product-card:nth-child(3) { animation-delay: 0.15s; }
.products-grid .product-card:nth-child(4) { animation-delay: 0.2s; }
.products-grid .product-card:nth-child(5) { animation-delay: 0.25s; }
.products-grid .product-card:nth-child(6) { animation-delay: 0.3s; }