/* ==========================================================================
   Design System & Variables
   ========================================================================== */
:root {
  --bg-base: #071A52;
  --bg-surface: #203A85;
  --bg-surface-elevated: #2a4b9e;
  --bg-dark: #050e30;

  --accent-primary: #F7B33D;
  --accent-hover: #f5a61c;
  --accent-danger: #ef4444;
  --accent-success: #22c55e;
  --accent-info: #3b82f6;

  --text-primary: #ffffff;
  --text-secondary: #b0c0f0;
  --text-muted: #7a8fc0;

  --border-color: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(247, 179, 61, 0.4);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  --glass-bg: rgba(7, 26, 82, 0.8);
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  pointer-events: auto;
  min-width: 280px;
  max-width: 380px;
  animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  backdrop-filter: blur(10px);
}

.toast.hide { animation: toastOut 0.3s ease forwards; }

.toast-icon { font-size: 1.2rem; flex-shrink: 0; }

.toast-success { border-left: 4px solid var(--accent-success); }
.toast-error   { border-left: 4px solid var(--accent-danger); }
.toast-info    { border-left: 4px solid var(--accent-info); }
.toast-warning { border-left: 4px solid var(--accent-primary); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(100%) scale(0.9); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(100%); }
}

/* ==========================================================================
   Skeleton Loaders
   ========================================================================== */
.skeleton {
  background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-surface-elevated) 50%, var(--bg-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
  border-radius: var(--radius-sm);
}

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

.skeleton-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.skeleton-img  { height: 200px; }
.skeleton-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.skeleton-title { height: 20px; width: 70%; }
.skeleton-text  { height: 14px; width: 100%; }
.skeleton-text-sm { height: 14px; width: 50%; }
.skeleton-btn   { height: 40px; width: 100%; margin-top: 0.5rem; border-radius: var(--radius-md); }

/* ==========================================================================
   Header
   ========================================================================== */
.promo-banner {
  background: linear-gradient(90deg, var(--accent-hover), var(--accent-primary));
  color: #000;
  text-align: center;
  padding: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 200;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--glass-border);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  gap: 1rem;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo span { color: var(--accent-primary); }

.search-bar {
  flex: 2;
  min-width: 260px;
  display: flex;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: border-color var(--transition-fast);
}
.search-bar:focus-within { border-color: var(--accent-primary); }
.search-bar input {
  flex: 1;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 0;
  background: var(--bg-surface-elevated);
  color: white;
  font-size: 0.9rem;
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar button {
  padding: 0 1.25rem;
  background: var(--accent-primary);
  color: #000;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background var(--transition-fast);
}
.search-bar button:hover { background: var(--accent-hover); }

/* ==========================================================================
   Categories Nav
   ========================================================================== */
.categories-nav {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-color);
  padding: 0;
  position: sticky;
  top: 72px;
  z-index: 100;
}
.categories-nav .container {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.categories-nav .container::-webkit-scrollbar { display: none; }

.cat-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.cat-link:hover { color: var(--text-primary); }
.cat-link.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.btn-primary {
  background: var(--accent-primary);
  color: #000;
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247,179,61,0.35);
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}
.btn-outline:hover { border-color: var(--accent-primary); color: var(--accent-primary); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
}
.btn-ghost:hover { background: rgba(255,255,255,0.07); color: white; }

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.25); }

.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.w-100 { width: 100%; }

/* Cart Button */
.cart-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  position: relative;
  cursor: pointer;
  padding: 0.55rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.cart-btn:hover { background: rgba(255,255,255,0.12); border-color: var(--accent-primary); }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent-primary);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  height: 20px;
  min-width: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 2rem 5rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(32,58,133,0.9) 0%, transparent 70%);
  z-index: 0;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(247,179,61,0.15);
  border: 1px solid rgba(247,179,61,0.35);
  color: var(--accent-primary);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 30%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 580px;
  margin-inline: auto;
  line-height: 1.8;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(247,179,61,0.08) 0%, transparent 65%);
  z-index: 1;
  pointer-events: none;
}

/* Stats Row */
.hero-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
  position: relative;
  z-index: 2;
}
.stat-item { text-align: center; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--accent-primary); font-family: var(--font-heading); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ==========================================================================
   Catalog / Sort Bar
   ========================================================================== */
.catalog-section { padding: 3rem 2rem 8rem; }

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.catalog-toolbar h3 { font-size: 1.6rem; }

.sort-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sort-group label { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.sort-select {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: white;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}
.sort-select:focus { outline: none; border-color: var(--accent-primary); }
.sort-select option { background: var(--bg-surface-elevated); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

/* ==========================================================================
   Product Card
   ========================================================================== */
.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-smooth), border-color var(--transition-fast), box-shadow var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(247,179,61,0.45);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}

.product-image-container {
  height: 200px;
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}
.product-card:hover .product-image { transform: scale(1.07); }

/* Wishlist Heart Button */
.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(7, 26, 82, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
  z-index: 2;
}
.wishlist-btn:hover { background: rgba(239,68,68,0.2); border-color: #ef4444; color: #ef4444; }
.wishlist-btn.active { background: rgba(239,68,68,0.2); border-color: #ef4444; color: #ef4444; }

/* B2B Badge */
.b2b-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent-primary);
  color: #000;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.7rem;
  z-index: 2;
  letter-spacing: 0.5px;
}

.product-info {
  padding: 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-title { font-size: 1rem; margin-bottom: 0.35rem; line-height: 1.35; }
.product-sku { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.5rem; }

.star-rating { display: flex; align-items: center; gap: 0.25rem; margin-bottom: 0.75rem; }
.star-rating .stars { color: var(--accent-primary); font-size: 0.8rem; }
.star-rating .count { font-size: 0.75rem; color: var(--text-muted); }

.product-desc {
  color: var(--text-secondary);
  font-size: 0.825rem;
  flex: 1;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 0.75rem;
}
.product-price { font-size: 1.2rem; font-weight: 700; color: var(--accent-primary); }
.btn-add-cart {
  background: var(--accent-primary);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.btn-add-cart:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-add-cart.added { background: var(--accent-success); color: white; }

/* Loading State */
.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Cart Sidebar
   ========================================================================== */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-smooth);
  box-shadow: -12px 0 40px rgba(0,0,0,0.5);
}
.cart-sidebar.open { right: 0; }

.cart-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface-elevated);
}
.cart-header h4 { font-size: 1.1rem; }

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.close-btn:hover { color: white; background: rgba(255,255,255,0.08); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.empty-cart {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 0;
}
.empty-cart-icon { font-size: 3rem; margin-bottom: 0.75rem; }

.cart-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-base);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: border-color var(--transition-fast);
}
.cart-item:hover { border-color: var(--border-accent); }
.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
}
.cart-item-info h5 { font-size: 0.875rem; margin-bottom: 0.2rem; line-height: 1.3; }
.cart-item-price { color: var(--accent-primary); font-weight: 700; font-size: 0.9rem; }
.cart-qty { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.3rem; }
.qty-btn {
  width: 22px;
  height: 22px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: white;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background var(--transition-fast);
}
.qty-btn:hover { background: var(--accent-primary); color: #000; border-color: var(--accent-primary); }
.qty-value { font-size: 0.85rem; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all var(--transition-fast);
  align-self: start;
}
.cart-item-remove:hover { color: var(--accent-danger); background: rgba(239,68,68,0.1); }

.shipping-section {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
}
.shipping-section label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.form-select {
  width: 100%;
  background: var(--bg-base);
  color: white;
  border: 1px solid var(--border-color);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}
.form-select:focus { outline: none; border-color: var(--accent-primary); }

.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-dark);
}
.cart-subtotal, .cart-shipping-display, .cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.cart-total {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

/* ==========================================================================
   Overlay & Modals
   ========================================================================== */
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}
.overlay.show { opacity: 1; pointer-events: auto; }

.modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -45%);
  width: 92%;
  max-width: 500px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-smooth);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}
.modal.show {
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}
.modal.modal-wide { max-width: 760px; }
.modal.modal-xl { max-width: 900px; }

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface-elevated);
}
.modal-header h4 { font-size: 1.1rem; }

.modal-body { padding: 1.5rem; max-height: 70vh; overflow-y: auto; }
.modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: var(--bg-dark);
}

/* Auth Tab Buttons */
.auth-tabs { display: flex; border-bottom: 1px solid var(--border-color); }
.auth-tab {
  flex: 1;
  padding: 0.85rem;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
}
.auth-tab.active { color: var(--accent-primary); border-bottom-color: var(--accent-primary); }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; margin-bottom: 0.4rem; font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }
.form-input {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--bg-base);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: white;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
}
.form-input:focus { outline: none; border-color: var(--accent-primary); }
.form-input::placeholder { color: var(--text-muted); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Orders & Addresses list */
.order-item {
  background: var(--bg-base);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  transition: border-color var(--transition-fast);
}
.order-item:hover { border-color: var(--border-accent); }
.order-row { display: flex; justify-content: space-between; align-items: center; }
.order-status {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.status-pending { background: rgba(247,179,61,0.15); color: var(--accent-primary); }
.status-completed { background: rgba(34,197,94,0.15); color: var(--accent-success); }
.status-credit { background: rgba(59,130,246,0.15); color: var(--accent-info); }

.address-card {
  background: var(--bg-base);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color var(--transition-fast);
}
.address-card.is-default { border-color: var(--border-accent); }
.address-default-badge {
  font-size: 0.7rem;
  background: rgba(247,179,61,0.15);
  color: var(--accent-primary);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  margin-left: 0.5rem;
}

/* Profile Sections (tabs) */
.profile-tabs { display: flex; border-bottom: 1px solid var(--border-color); margin-bottom: 1.5rem; }
.profile-tab {
  padding: 0.65rem 1.25rem;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}
.profile-tab.active { color: var(--accent-primary); border-bottom-color: var(--accent-primary); }

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  animation: slideUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.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; }

/* Pulse animation */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem;
  margin-top: 4rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.footer-logo { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; color: white; margin-bottom: 0.5rem; }
.footer-logo span { color: var(--accent-primary); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .header-container { height: auto; padding: 0.75rem; flex-wrap: wrap; }
  .search-bar { min-width: 100%; order: 3; }
  .hero-title { font-size: 2.5rem; }
  .hero-stats { gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
  .modal { max-width: 96%; }
  .modal.modal-wide, .modal.modal-xl { max-width: 96%; }
}
