/* ============================================
   BIMZ STORE — Digital Product Store
   Design System & Styles
   ============================================ */

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

/* ---------- Design Tokens ---------- */
:root {
  /* Colors */
  --bg-primary: #07070d;
  --bg-secondary: #0f0f1a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --bg-glass: rgba(15, 15, 30, 0.85);
  --bg-overlay: rgba(0, 0, 0, 0.7);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-purple: #a855f7;
  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --accent-green: #10b981;
  --accent-yellow: #f59e0b;
  --accent-orange: #f97316;

  --gradient-primary: linear-gradient(135deg, #a855f7, #06b6d4);
  --gradient-secondary: linear-gradient(135deg, #ec4899, #a855f7);
  --gradient-hero: linear-gradient(135deg, #a855f7 0%, #06b6d4 50%, #ec4899 100%);
  --gradient-card-border: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(6, 182, 212, 0.3));

  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(168, 85, 247, 0.4);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(168, 85, 247, 0.15);
  --shadow-glow-cyan: 0 0 30px rgba(6, 182, 212, 0.15);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-xs: 0.75rem;
  --font-sm: 0.875rem;
  --font-base: 1rem;
  --font-lg: 1.125rem;
  --font-xl: 1.25rem;
  --font-2xl: 1.5rem;
  --font-3xl: 2rem;
  --font-4xl: 2.5rem;
  --font-5xl: 3.5rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: var(--font-family);
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.5);
}

/* ---------- Utility ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  background: rgba(7, 7, 13, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-base);
}

.navbar.scrolled {
  padding: var(--space-sm) 0;
  background: rgba(7, 7, 13, 0.95);
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.nav-logo {
  font-size: var(--font-xl);
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-lg);
}

.nav-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.nav-search input {
  width: 100%;
  padding: var(--space-sm) var(--space-lg);
  padding-left: 44px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: var(--font-sm);
  font-family: var(--font-family);
  transition: var(--transition-base);
}

.nav-search input::placeholder {
  color: var(--text-muted);
}

.nav-search input:focus {
  border-color: var(--accent-purple);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.nav-search .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: var(--font-base);
  pointer-events: none;
}

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

.cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--font-xl);
  transition: var(--transition-base);
}

.cart-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-purple);
  transform: translateY(-2px);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--gradient-secondary);
  border-radius: var(--radius-full);
  font-size: var(--font-xs);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: var(--transition-spring);
}

.cart-badge.show {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
  animation: float-orb 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
  animation: float-orb 10s ease-in-out infinite reverse;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--radius-full);
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--accent-purple);
  margin-bottom: var(--space-xl);
  animation: fadeInDown 0.6s ease;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-size: var(--font-5xl);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero p {
  font-size: var(--font-lg);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  animation: fadeInUp 0.6s ease 0.3s both;
}

.btn-primary {
  padding: var(--space-md) var(--space-2xl);
  background: var(--gradient-primary);
  color: white;
  font-size: var(--font-base);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: var(--transition-slow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.35);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  padding: var(--space-md) var(--space-2xl);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: var(--font-base);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition-base);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border-color);
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat .stat-number {
  font-size: var(--font-3xl);
  font-weight: 800;
  letter-spacing: -1px;
}

.hero-stat .stat-label {
  font-size: var(--font-sm);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* ============================================
   CATEGORY FILTER
   ============================================ */
.section-products {
  padding: var(--space-3xl) 0 var(--space-4xl);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header h2 {
  font-size: var(--font-3xl);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: var(--space-sm);
}

.section-header p {
  color: var(--text-secondary);
  font-size: var(--font-lg);
}

.category-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
  padding: 0 var(--space-md);
}

.filter-btn {
  padding: var(--space-sm) var(--space-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: var(--font-sm);
  font-weight: 500;
  transition: var(--transition-base);
  white-space: nowrap;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.filter-btn.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

/* ============================================
   PRODUCT GRID
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-base);
  cursor: pointer;
  position: relative;
  animation: fadeInUp 0.5s ease both;
}

.product-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(168, 85, 247, 0.25);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.product-card .card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.product-card .card-image .product-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  background: linear-gradient(135deg, var(--bg-secondary), rgba(168, 85, 247, 0.08));
  transition: var(--transition-base);
}

.product-card:hover .card-image .product-icon {
  transform: scale(1.05);
}

.product-card .card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--font-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-bestseller {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-yellow));
  color: #000;
}

.badge-new {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
  color: #000;
}

.badge-sale {
  background: linear-gradient(135deg, var(--accent-pink), #f43f5e);
  color: white;
}

.product-card .card-category {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  font-size: var(--font-xs);
  color: var(--text-secondary);
  font-weight: 500;
}

.product-card .card-body {
  padding: var(--space-lg);
}

.product-card .card-title {
  font-size: var(--font-base);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .card-desc {
  font-size: var(--font-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.product-card .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card .card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-sm);
}

.card-rating .stars {
  color: var(--accent-yellow);
  font-size: var(--font-sm);
  letter-spacing: 1px;
}

.card-rating .rating-count {
  color: var(--text-muted);
  font-size: var(--font-xs);
}

.product-card .card-price {
  font-size: var(--font-lg);
  font-weight: 800;
  color: var(--accent-cyan);
}

.product-card .card-price .original-price {
  font-size: var(--font-xs);
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-right: 4px;
}

.product-card .card-footer {
  padding: 0 var(--space-lg) var(--space-lg);
}

.add-to-cart-btn {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--radius-md);
  color: var(--accent-purple);
  font-size: var(--font-sm);
  font-weight: 600;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.add-to-cart-btn:hover {
  background: var(--accent-purple);
  color: white;
  border-color: var(--accent-purple);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.add-to-cart-btn.added {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: white;
}

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
}

.empty-state .empty-icon {
  font-size: 64px;
  margin-bottom: var(--space-lg);
  opacity: 0.5;
}

.empty-state h3 {
  font-size: var(--font-xl);
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

.empty-state p {
  color: var(--text-muted);
}

/* ============================================
   PRODUCT DETAIL MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--bg-overlay);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition-spring);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-image {
  width: 100%;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  background: linear-gradient(135deg, var(--bg-primary), rgba(168, 85, 247, 0.08));
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  color: white;
  font-size: var(--font-xl);
  transition: var(--transition-base);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-body {
  padding: var(--space-2xl);
}

.modal-category {
  font-size: var(--font-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-purple);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.modal-title {
  font-size: var(--font-2xl);
  font-weight: 800;
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

.modal-desc {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  font-size: var(--font-sm);
}

.modal-features {
  margin-bottom: var(--space-xl);
}

.modal-features h4 {
  font-size: var(--font-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.modal-features ul li {
  padding: var(--space-sm) 0;
  color: var(--text-secondary);
  font-size: var(--font-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  border-bottom: 1px solid var(--border-color);
}

.modal-features ul li:last-child {
  border-bottom: none;
}

.modal-features ul li::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: 700;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-2xl);
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.modal-price {
  font-size: var(--font-2xl);
  font-weight: 800;
  color: var(--accent-cyan);
}

.modal-price .original-price {
  font-size: var(--font-sm);
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
  display: block;
}

.modal-add-btn {
  padding: var(--space-md) var(--space-2xl);
  background: var(--gradient-primary);
  color: white;
  font-size: var(--font-base);
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.modal-add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.35);
}

/* ============================================
   CART SIDEBAR
   ============================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--bg-overlay);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100%;
  z-index: 3001;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: var(--transition-slow);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
}

.cart-sidebar.active {
  transform: translateX(0);
}

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

.cart-header h3 {
  font-size: var(--font-xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.cart-header .cart-count {
  background: var(--gradient-primary);
  font-size: var(--font-xs);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.cart-close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: var(--font-xl);
  transition: var(--transition-base);
}

.cart-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
}

.cart-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  transition: var(--transition-base);
  animation: slideInRight 0.3s ease;
}

.cart-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.cart-item .item-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(168, 85, 247, 0.1);
  border-radius: var(--radius-sm);
  font-size: 24px;
  flex-shrink: 0;
}

.cart-item .item-info {
  flex: 1;
  min-width: 0;
}

.cart-item .item-name {
  font-size: var(--font-sm);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item .item-price {
  font-size: var(--font-sm);
  color: var(--accent-cyan);
  font-weight: 600;
}

.cart-item .item-remove {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--font-lg);
  border-radius: 50%;
  transition: var(--transition-base);
  flex-shrink: 0;
}

.cart-item .item-remove:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.cart-empty {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  color: var(--text-muted);
}

.cart-empty .empty-cart-icon {
  font-size: 56px;
  margin-bottom: var(--space-md);
  opacity: 0.4;
}

.cart-empty h4 {
  font-size: var(--font-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.cart-footer {
  padding: var(--space-xl);
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.cart-total .total-label {
  font-size: var(--font-base);
  color: var(--text-secondary);
  font-weight: 500;
}

.cart-total .total-price {
  font-size: var(--font-2xl);
  font-weight: 800;
  color: var(--accent-cyan);
}

.checkout-btn {
  width: 100%;
  padding: var(--space-md);
  background: var(--gradient-primary);
  color: white;
  font-size: var(--font-base);
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.35);
}

.checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ============================================
   CHECKOUT OVERLAY
   ============================================ */
.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(7, 7, 13, 0.95);
  backdrop-filter: blur(20px);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}

.checkout-overlay.active {
  opacity: 1;
  visibility: visible;
}

.checkout-container {
  max-width: 520px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl);
  animation: fadeInUp 0.5s ease;
}

.checkout-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.checkout-back-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: var(--font-sm);
  margin-bottom: var(--space-xl);
  transition: var(--transition-base);
}

.checkout-back-btn:hover {
  color: var(--text-primary);
}

.checkout-header h2 {
  font-size: var(--font-3xl);
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.checkout-header p {
  color: var(--text-secondary);
}

/* Steps Indicator */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.step {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.step-number {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: var(--font-sm);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: var(--transition-base);
}

.step.active .step-number {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
}

.step.done .step-number {
  background: var(--accent-green);
  border-color: transparent;
  color: white;
}

.step-label {
  font-size: var(--font-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.step.active .step-label {
  color: var(--text-primary);
}

.step-divider {
  width: 40px;
  height: 1px;
  background: var(--border-color);
}

/* Order Summary */
.checkout-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.checkout-section h3 {
  font-size: var(--font-base);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-color);
}

.order-item:last-child {
  border-bottom: none;
}

.order-item .order-name {
  font-size: var(--font-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.order-item .order-price {
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--accent-cyan);
  white-space: nowrap;
}

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  margin-top: var(--space-md);
  border-top: 2px solid var(--border-color);
}

.order-total .total-label {
  font-size: var(--font-base);
  font-weight: 700;
}

.order-total .total-amount {
  font-size: var(--font-xl);
  font-weight: 800;
  color: var(--accent-cyan);
}

/* QRIS Section */
.qris-section {
  text-align: center;
}

.qris-image-wrapper {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: inline-block;
  margin: var(--space-lg) 0;
}

.qris-image-wrapper img {
  width: 240px;
  height: 240px;
  object-fit: contain;
}

.qris-instruction {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: var(--space-md);
}

.qris-instruction strong {
  color: var(--accent-yellow);
}

/* WhatsApp Button */
.wa-btn {
  width: 100%;
  padding: var(--space-lg);
  background: #25D366;
  color: white;
  font-size: var(--font-base);
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.wa-btn:hover {
  background: #1fb855;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
}

.wa-btn .wa-icon {
  font-size: var(--font-xl);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .nav-logo {
  margin-bottom: var(--space-md);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: var(--font-sm);
  line-height: 1.6;
}

.footer-links h4 {
  font-size: var(--font-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

.footer-links ul li {
  margin-bottom: var(--space-sm);
}

.footer-links ul li a {
  color: var(--text-muted);
  font-size: var(--font-sm);
  transition: var(--transition-base);
}

.footer-links ul li a:hover {
  color: var(--accent-purple);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: var(--font-sm);
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  padding: var(--space-md) var(--space-xl);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--font-sm);
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.5s forwards;
  backdrop-filter: blur(20px);
}

.toast.success {
  border-color: rgba(16, 185, 129, 0.3);
}

.toast.success::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: 700;
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(30px);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -30px); }
  66% { transform: translate(-20px, 20px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Stagger animations for product cards */
.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.4s; }
.product-card:nth-child(9) { animation-delay: 0.45s; }
.product-card:nth-child(10) { animation-delay: 0.5s; }
.product-card:nth-child(11) { animation-delay: 0.55s; }
.product-card:nth-child(12) { animation-delay: 0.6s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  :root {
    --font-5xl: 2.25rem;
    --font-4xl: 1.75rem;
    --font-3xl: 1.5rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .nav-search {
    display: none;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-stats {
    gap: var(--space-xl);
  }

  .hero-stat .stat-number {
    font-size: var(--font-2xl);
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-md);
  }

  .category-filter {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-sm);
  }

  .category-filter::-webkit-scrollbar {
    display: none;
  }

  .cart-sidebar {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .checkout-steps .step-label {
    display: none;
  }

  .modal-content {
    max-height: 95vh;
    margin: var(--space-sm);
  }

  .modal-footer {
    flex-direction: column;
    gap: var(--space-md);
    align-items: stretch;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.75rem;
    letter-spacing: -1px;
  }

  .hero p {
    font-size: var(--font-base);
  }
}
