/* ============================================
   CEMILAN CIAMIS — Component Styles
   ============================================ */

/* ============================================
   Navbar
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: var(--space-4) 0;
  transition: all var(--transition-base);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 4px 20px rgba(35, 20, 12, 0.06);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(35, 20, 12, 0.05);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--text-inverse);
  letter-spacing: -0.03em;
  transition: color var(--transition-base);
}
.navbar.scrolled .navbar-brand { color: var(--primary-900); }

.navbar-brand img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.navbar-nav a {
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}
.navbar-nav a:hover,
.navbar-nav a.active {
  background: rgba(255,255,255,0.18);
  color: var(--text-inverse);
}
.navbar.scrolled .navbar-nav a { color: var(--text-body); }
.navbar.scrolled .navbar-nav a:hover,
.navbar.scrolled .navbar-nav a.active {
  background: var(--primary-50);
  color: var(--primary-700);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Cart button */
.cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text-inverse);
  transition: all var(--transition-fast);
}
.cart-btn:hover { background: rgba(255,255,255,0.18); }
.navbar.scrolled .cart-btn { color: var(--text-body); }
.navbar.scrolled .cart-btn:hover { background: var(--primary-50); color: var(--primary-700); }

.cart-btn svg { width: 24px; height: 24px; }

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--accent-500);
  color: var(--neutral-900);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  animation: scaleIn 0.3s var(--ease-spring);
}
.cart-badge:empty { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: var(--radius-full);
  color: var(--text-inverse);
}
.navbar.scrolled .hamburger { color: var(--text-body); }

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all var(--transition-base);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .navbar-nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: var(--z-overlay);
  }
  .navbar-nav.active { opacity: 1; visibility: visible; }
  .navbar-nav a {
    font-size: var(--text-xl);
    color: rgba(255,255,255,0.9) !important;
    padding: var(--space-3) var(--space-8);
  }
  .navbar-nav a:hover { background: rgba(255,255,255,0.12) !important; color: white !important; }
}

/* ============================================
   Hero Section — Artisanal Culinary Atmosphere
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding-top: 80px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 75%, rgba(232, 115, 22, 0.25) 0%, transparent 55%),
    radial-gradient(circle at 85% 25%, rgba(234, 179, 8, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(203, 89, 13, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg-body) 0%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.95);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: fadeInDown 0.8s var(--ease-out) both;
}

.hero h1 {
  color: var(--text-inverse);
  margin-bottom: var(--space-5);
  letter-spacing: -0.04em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s var(--ease-out) 0.15s both;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-8);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  font-weight: 400;
  animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease-out) 0.45s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  animation: fadeInUp 0.8s var(--ease-out) 0.6s both;
}
.hero-stat {
  text-align: center;
}
.hero-stat .stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text-inverse);
  letter-spacing: -0.02em;
}
.hero-stat .stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

/* Subtle background motifs */
.hero-decoration {
  position: absolute;
  font-size: 2.5rem;
  opacity: 0.08;
  filter: grayscale(20%);
  pointer-events: none;
  z-index: 0;
}
.hero-decoration:nth-child(1) { top: 18%; left: 10%; animation: float 10s ease-in-out infinite; }
.hero-decoration:nth-child(2) { top: 22%; right: 12%; animation: float 12s ease-in-out 1s infinite; }
.hero-decoration:nth-child(3) { bottom: 25%; left: 14%; animation: float 9s ease-in-out 2s infinite; }
.hero-decoration:nth-child(4) { bottom: 35%; right: 10%; animation: float 11s ease-in-out 0.5s infinite; }
.hero-decoration:nth-child(5) { top: 52%; left: 6%; animation: float 10s ease-in-out 1.5s infinite; }

@media (max-width: 768px) {
  .hero { min-height: 90vh; min-height: 90svh; }
  .hero-stats { gap: var(--space-6); padding-top: var(--space-6); }
  .hero-decoration { font-size: 1.8rem; }
}

/* ============================================
   Category Cards
   ============================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-4);
}
@media (max-width: 480px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
}
.category-card:hover {
  border-color: var(--primary-300);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: var(--primary-50);
}
.category-card.active {
  border-color: var(--primary-500);
  background: var(--primary-100);
  box-shadow: var(--shadow-sm);
}

.category-card .category-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: var(--primary-50);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}
.category-card:hover .category-icon,
.category-card.active .category-icon {
  background: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.category-card .category-name {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.01em;
}

/* ============================================
   Product Card
   ============================================ */
.product-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-200);
  transition: all var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-200);
}

.product-card__image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--neutral-100);
}
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.product-card:hover .product-card__image img {
  transform: scale(1.08);
}

/* Image placeholder */
.product-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
  color: var(--primary-600);
}

.product-card__badges {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  z-index: 1;
}

.product-card__body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__seller {
  font-size: var(--text-xs);
  color: var(--primary-700);
  font-weight: 600;
  margin-bottom: var(--space-1);
  letter-spacing: 0.01em;
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: var(--space-2);
  line-height: 1.35;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__name a:hover { color: var(--primary-600); }

.product-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  margin-top: auto;
}
.product-card__price .price {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--primary-700);
}
.product-card__price .price-original {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.product-card__actions {
  display: flex;
  gap: var(--space-2);
}
.product-card__actions .btn { flex: 1; }

@media (max-width: 520px) {
  .product-card__body { padding: var(--space-3); }
  .product-card__name { font-size: var(--text-sm); }
  .product-card__price .price { font-size: var(--text-base); }
  .product-card__actions { flex-direction: column; }
  .product-card__image-placeholder { font-size: 2.5rem; }
}

/* ============================================
   Badges
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-3);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.badge-promo {
  background: var(--danger-500);
  color: white;
}
.badge-new {
  background: var(--gradient-accent);
  color: var(--neutral-900);
}
.badge-featured {
  background: var(--gradient-primary);
  color: white;
}
.badge-category {
  background: var(--primary-100);
  color: var(--primary-800);
  text-transform: none;
  font-weight: 600;
  box-shadow: none;
}

/* ============================================
   Seller Card
   ============================================ */
.seller-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-200);
  transition: all var(--transition-base);
}
.seller-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-200);
}

.seller-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-4);
  overflow: hidden;
  border: 3px solid var(--primary-200);
  background: var(--primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.seller-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seller-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: var(--space-1);
}

.seller-card__shop {
  font-size: var(--text-sm);
  color: var(--primary-600);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.seller-card__bio {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.seller-card__meta {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--neutral-200);
  margin-bottom: var(--space-4);
}
.seller-card__meta-item {
  text-align: center;
}
.seller-card__meta-item .meta-value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-heading);
}
.seller-card__meta-item .meta-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ============================================
   Search & Filter Bar
   ============================================ */
.search-bar {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}
.search-bar .search-icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-bar .search-icon svg { width: 20px; height: 20px; }

.search-bar input {
  width: 100%;
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-12);
  background: var(--bg-surface);
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-2xl);
  font-size: var(--text-base);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}
.search-bar input:focus {
  outline: none;
  border-color: var(--primary-400);
  box-shadow: 0 0 0 4px rgba(168,85,247,0.1), var(--shadow-md);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: var(--space-4) 0;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-4);
  background: var(--bg-surface);
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--primary-300); color: var(--primary-700); }
.filter-chip.active {
  background: var(--primary-700);
  border-color: var(--primary-700);
  color: var(--text-inverse);
}

.sort-select {
  padding: var(--space-2) var(--space-8) var(--space-2) var(--space-4);
  background: var(--bg-surface);
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23737373' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* ============================================
   Cart Drawer
   ============================================ */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-surface);
  z-index: var(--z-drawer);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,0.1);
}
.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--neutral-200);
}
.cart-drawer__header h3 { font-size: var(--text-lg); }

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4) var(--space-5);
}

.cart-drawer__footer {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--neutral-200);
  background: var(--neutral-50);
}

/* Cart seller group */
.cart-group {
  margin-bottom: var(--space-6);
}
.cart-group__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--neutral-100);
}
.cart-group__seller {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary-700);
}
.cart-group__subtotal {
  display: flex;
  justify-content: space-between;
  padding: var(--space-3) 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
}

/* Cart item */
.cart-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--neutral-100);
}
.cart-item:last-child { border-bottom: none; }

.cart-item__image {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--neutral-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 2px;
}
.cart-item__variant {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}
.cart-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-item__price {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--primary-700);
}
.cart-item__remove {
  color: var(--text-muted);
  font-size: var(--text-xs);
  transition: color var(--transition-fast);
}
.cart-item__remove:hover { color: var(--danger-500); }

.cart-item .qty-selector { transform: scale(0.8); transform-origin: left center; }

/* ============================================
   How to Order Steps
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
  counter-reset: step;
}

.step-card {
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--radius-2xl);
  padding: var(--space-8) var(--space-6) var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all var(--transition-base);
  counter-increment: step;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step-card::before {
  content: counter(step);
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  color: white;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-purple);
}

.step-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
}

.step-card h4 {
  margin-bottom: var(--space-2);
  font-size: var(--text-base);
}

.step-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ============================================
   About / Feature Section
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: var(--space-8); }
}

.about-image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content h2 { margin-bottom: var(--space-4); }
.about-content p { margin-bottom: var(--space-4); color: var(--text-secondary); line-height: 1.8; }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.about-feature .feature-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-100);
  border-radius: var(--radius-lg);
  font-size: 1.2rem;
}
.about-feature .feature-text h5 { font-size: var(--text-sm); margin-bottom: 2px; }
.about-feature .feature-text p { font-size: var(--text-xs); color: var(--text-muted); margin: 0; }

/* ============================================
   Toast Notification
   ============================================ */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
@media (max-width: 480px) {
  .toast-container {
    bottom: var(--space-4);
    left: var(--space-4);
    right: var(--space-4);
  }
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: var(--bg-dark);
  color: var(--text-inverse);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  font-size: var(--text-sm);
  animation: slideInUp 0.4s var(--ease-spring) both;
  min-width: 280px;
}
.toast.toast-success { border-left: 4px solid var(--success-500); }
.toast.toast-error   { border-left: 4px solid var(--danger-500); }
.toast.toast-info    { border-left: 4px solid var(--primary-500); }

.toast-icon { font-size: 1.2rem; flex-shrink: 0; }
.toast-message { flex: 1; }
.toast-close {
  color: rgba(255,255,255,0.5);
  font-size: var(--text-lg);
  transition: color var(--transition-fast);
}
.toast-close:hover { color: white; }

.toast.removing { animation: slideOutRight 0.3s var(--ease-out) forwards; }

/* ============================================
   Floating WhatsApp Button (Global)
   ============================================ */
.fab-whatsapp {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-sticky);
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-wa), 0 0 0 0 rgba(37,211,102,0.4);
  transition: all var(--transition-base);
  animation: pulse 2s ease-in-out infinite;
}
.fab-whatsapp:hover {
  transform: scale(1.1);
  animation: none;
  box-shadow: 0 14px 35px -5px rgba(37,211,102,0.5);
}
.fab-whatsapp svg { width: 28px; height: 28px; }

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--gradient-dark);
  color: var(--text-inverse);
  padding: var(--space-16) 0 var(--space-8);
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand { }
.footer-brand .navbar-brand {
  margin-bottom: var(--space-4);
  font-size: var(--text-xl);
  color: var(--text-inverse);
}
.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 300px;
}

.footer-section h5 {
  color: var(--text-inverse);
  margin-bottom: var(--space-4);
  font-size: var(--text-base);
}
.footer-section ul { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-section a {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}
.footer-section a:hover {
  color: var(--text-inverse);
  padding-left: var(--space-2);
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: var(--text-sm);
  margin: 0;
}

/* ============================================
   Page Header (non-homepage)
   ============================================ */
.page-header {
  background: var(--gradient-hero);
  padding: calc(80px + var(--space-12)) 0 var(--space-12);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(168,85,247,0.3) 0%, transparent 70%);
}
.page-header h1 { color: var(--text-inverse); position: relative; z-index: 1; margin-bottom: var(--space-2); font-size: var(--text-4xl); }
.page-header p  { color: rgba(255,255,255,0.8); position: relative; z-index: 1; margin: 0; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-4);
  justify-content: center;
  position: relative;
  z-index: 1;
}
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: white; }
.breadcrumb .separator { opacity: 0.4; }

/* ============================================
   Product Detail Page
   ============================================ */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
}
@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; gap: var(--space-6); }
}

.product-gallery {
  position: sticky;
  top: 100px;
}
.product-gallery__main {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--neutral-100);
  margin-bottom: var(--space-3);
}
.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-gallery__thumbs {
  display: flex;
  gap: var(--space-2);
}
.product-gallery__thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}
.product-gallery__thumb.active,
.product-gallery__thumb:hover {
  border-color: var(--primary-500);
}
.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info { }
.product-info__seller {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--primary-50);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--primary-700);
  font-weight: 500;
  margin-bottom: var(--space-3);
}
.product-info h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.product-info__price-block {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: var(--primary-50);
  border-radius: var(--radius-xl);
}
.product-info__price-block .price {
  font-size: var(--text-3xl);
}
.product-info__price-block .price-original {
  font-size: var(--text-lg);
}
.product-info__price-block .badge {
  margin-left: auto;
}

.product-info__description {
  margin-bottom: var(--space-6);
  line-height: 1.8;
  color: var(--text-secondary);
}

/* Variation selector */
.variation-group { margin-bottom: var(--space-5); }
.variation-group__label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--text-heading);
}
.variation-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.variation-option {
  padding: var(--space-2) var(--space-4);
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.variation-option:hover { border-color: var(--primary-300); }
.variation-option.active {
  background: var(--primary-700);
  border-color: var(--primary-700);
  color: white;
}

.product-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.product-actions .btn { flex: 1; }
@media (max-width: 480px) {
  .product-actions { flex-direction: column; }
}

/* Seller mini card in product detail */
.seller-mini-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--neutral-50);
  border-radius: var(--radius-xl);
  margin-top: var(--space-6);
  border: 1px solid var(--neutral-200);
}
.seller-mini-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.seller-mini-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.seller-mini-card__info { flex: 1; }
.seller-mini-card__name { font-family: var(--font-heading); font-weight: 600; font-size: var(--text-sm); }
.seller-mini-card__location { font-size: var(--text-xs); color: var(--text-muted); }
.seller-mini-card .btn { flex-shrink: 0; }

/* ============================================
   Seller Profile Page
   ============================================ */
.seller-profile-header {
  text-align: center;
  padding-bottom: var(--space-8);
  margin-bottom: var(--space-8);
  border-bottom: 1px solid var(--neutral-200);
}
.seller-profile-header .seller-avatar-lg {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-5);
  overflow: hidden;
  border: 4px solid var(--primary-200);
  background: var(--primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: var(--shadow-purple);
}
.seller-profile-header .seller-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================
   Pagination
   ============================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-10);
}
.pagination button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-body);
  background: var(--bg-surface);
  border: 2px solid var(--neutral-200);
  transition: all var(--transition-fast);
}
.pagination button:hover { border-color: var(--primary-300); color: var(--primary-700); }
.pagination button.active {
  background: var(--primary-700);
  border-color: var(--primary-700);
  color: white;
}
.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================
   View Count
   ============================================ */
.view-count {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.view-count svg { width: 14px; height: 14px; }

/* ============================================
   Related Products
   ============================================ */
.related-products {
  margin-top: var(--space-16);
  padding-top: var(--space-10);
  border-top: 1px solid var(--neutral-200);
}
