/* ============================================================
   AEVION - Custom CSS (supplements Tailwind)
   Brand: Blue #2563EB, Black #0A0A0A, Gold #D4A853
   ============================================================ */

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

:root {
  --blue-primary:   #1E68C5;
  --blue-light:     #48B8E6;
  --blue-dark:      #0F82E2;
  --blue-gradient:  linear-gradient(135deg, #1E68C5 0%, #0F82E2 50%, #48B8E6 100%);
  --peach-gradient: linear-gradient(135deg, #F5B78A 0%, #E07F81 50%, #C96D9C 100%);
  --gradient-mix:   linear-gradient(135deg, #1E68C5 0%, #0F82E2 25%, #48B8E6 45%, #F5B78A 55%, #E07F81 75%, #C96D9C 100%);
  --gold:           #D4A853;
  --gold-light:     #F0C96A;
  --black:          #0A0A0A;
  --dark:           #0D1B2A;
  --dark-2:         #1a2332;
  --dark-3:         #243040;
  --gray:           #6B7280;
  --gray-light:     #F3F4F6;
  --white:          #FFFFFF;
  --bg-gradient-white: linear-gradient(to bottom, #ffffff 0%, #f0f4f8 100%);
  --border:         #E5E7EB;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:      0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:      0 12px 40px rgba(0,0,0,.18);
  --shadow-blue:    0 8px 30px rgba(30, 104, 197, 0.35);
  --radius:         1rem;
  --radius-sm:      0.5rem;
  --radius-lg:      1.5rem;
  --transition:     all 0.3s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-gradient-white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--blue-primary); border-radius: 99px; }

/* ── Typography ────────────────────────────────────────────── */
.font-serif { font-family: 'Playfair Display', Georgia, serif; }

/* ── Navbar ─────────────────────────────────────────────────── */
#main-navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}
#main-navbar.scrolled {
  background: rgba(10,10,10,0.98);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.5rem;
  background: var(--gradient-mix);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-link {
  position: relative;
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 0;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--blue-gradient);
  border-radius: 1px;
  transition: width 0.3s ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: #fff; }
.nav-link.active::after { width: 100%; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 0.75rem;
  font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
  border: none; text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue-gradient);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(37,99,235,.45);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--blue-primary);
  border: 2px solid var(--blue-primary);
}
.btn-outline:hover {
  background: var(--blue-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--dark);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-dark:hover { background: var(--dark-2); transform: translateY(-2px); }

.btn-gold {
  background: linear-gradient(135deg, #B8862A, #D4A853, #F0C96A);
  color: #0A0A0A;
  font-weight: 700;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(212,168,83,.4); }

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.8rem; border-radius: 0.6rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; border-radius: 1rem; }
.btn-icon { padding: 0.65rem; border-radius: 0.75rem; }

/* ── Hero Section ─────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  background: var(--bg-gradient-white);
  position: relative;
  overflow: hidden;
}
.hero-bg-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(37,99,235,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(29,78,216,0.1) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(59,130,246,0.08) 0%, transparent 40%);
}
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(37,99,235,0.3);
  color: #93C5FD;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 1.5rem;
}
.hero-title .gradient-text {
  background: var(--gradient-mix);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 540px;
  margin-bottom: 2.5rem;
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* ── Product Card ───────────────────────────────────────────── */
.product-card {
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: var(--transition);
  position: relative;
}
.product-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  transform: translateY(-6px);
}
.product-card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #f8fafc;
}
.product-card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-img-wrap img {
  transform: scale(1.06);
}
.product-card-badges {
  position: absolute; top: 0.75rem; left: 0.75rem;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-sale   { background: #EF4444; color: #fff; }
.badge-new    { background: #10B981; color: #fff; }
.badge-hot    { background: var(--gold); color: #0A0A0A; }
.badge-featured { background: var(--blue-primary); color: #fff; }

.product-card-actions {
  position: absolute; top: 0.75rem; right: 0.75rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  opacity: 0; transform: translateX(10px);
  transition: var(--transition);
}
.product-card:hover .product-card-actions {
  opacity: 1; transform: translateX(0);
}
.action-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border: none; border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  color: #374151;
}
.action-btn:hover { background: var(--blue-primary); color: #fff; transform: scale(1.1); }
.action-btn.wishlisted { color: #EF4444; }
.action-btn.wishlisted:hover { background: #EF4444; color: #fff; }

.product-card-body { padding: 1.25rem; }
.product-card-brand {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-primary);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.product-card-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.star-rating { display: flex; align-items: center; gap: 0.25rem; margin-bottom: 0.75rem; }
.star-rating .stars { color: #FBBF24; font-size: 0.85rem; }
.star-rating .count { font-size: 0.78rem; color: #9CA3AF; }
.price-row { display: flex; align-items: center; gap: 0.75rem; }
.price { font-size: 1.15rem; font-weight: 700; color: #111; }
.price-original {
  font-size: 0.88rem; font-weight: 400;
  color: #9CA3AF; text-decoration: line-through;
}
.add-to-cart-btn {
  margin-top: 1rem;
  width: 100%;
  background: var(--blue-gradient);
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  padding: 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.add-to-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

/* ── Section Styles ─────────────────────────────────────────── */
.section-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(37,99,235,0.08);
  color: var(--blue-primary);
  border: 1px solid rgba(37,99,235,0.15);
  padding: 0.35rem 1rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #0A0A0A;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-title .highlight {
  background: var(--gradient-mix);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Category Cards ─────────────────────────────────────────── */
.category-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  transition: var(--transition);
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.category-card:hover img { transform: scale(1.08); }
.category-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.1) 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem;
}

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.4rem;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #E5E7EB;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: #111;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.form-control::placeholder { color: #9CA3AF; }
.form-control.error { border-color: #EF4444; }
.form-error { font-size: 0.78rem; color: #EF4444; margin-top: 0.35rem; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

/* ── Cart Corner Popup ───────────────────────────────────── */
.cart-corner-popup {
  display: none !important;
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  top: auto !important;
  left: auto !important;
  width: 340px;
  max-height: 520px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18), 0 2px 12px rgba(0,0,0,0.08);
  z-index: 99999 !important;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.07);
  overflow: hidden;
}
.cart-corner-popup.open {
  display: flex !important;
  animation: cartPopIn 0.3s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes cartPopIn {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.cart-corner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
}
.cart-corner-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: 0.01em;
}
.cart-corner-count {
  background: #1d1d1f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.cart-corner-close {
  background: #f5f5f7;
  border: none;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #86868b;
  transition: background 0.15s, color 0.15s;
}
.cart-corner-close:hover { background: #e8e8ed; color: #1d1d1f; }
.cart-corner-body {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #e0e0e0 transparent;
}
.cart-corner-body::-webkit-scrollbar { width: 4px; }
.cart-corner-body::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 2px; }
.cart-corner-footer {
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: #fafafa;
  flex-shrink: 0;
}
.cart-corner-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #86868b;
  margin-bottom: 12px;
}
.cart-corner-subtotal-val {
  font-size: 15px;
  font-weight: 700;
  color: #1d1d1f;
}
.cart-corner-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  margin-bottom: 7px;
  box-sizing: border-box;
}
.cart-corner-btn:last-child { margin-bottom: 0; }
.cart-corner-btn-outline {
  background: #fff;
  color: #1d1d1f;
  border: 1.5px solid rgba(0,0,0,0.15);
}
.cart-corner-btn-outline:hover { background: #f5f5f7; }
.cart-corner-btn-primary {
  background: #1d1d1f;
  color: #fff;
  border: none;
}
.cart-corner-btn-primary:hover { background: #000; }
@media (max-width: 480px) {
  .cart-corner-popup { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
}


/* ── Toast ──────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 3rem);
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 1.15rem;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.02);
  border: 1px solid rgba(0, 0, 0, 0.08);
  min-width: 280px;
  max-width: 420px;
  pointer-events: all;
  animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: opacity 0.3s, transform 0.3s;
}
.toast.hiding {
  opacity: 0;
  transform: translateX(30px) scale(0.95);
}
.toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.toast-dot.success { background-color: #34c759; }
.toast-dot.error   { background-color: #ff3b30; }
.toast-dot.warning { background-color: #ff9500; }
.toast-dot.info    { background-color: #0071e3; }

.toast-body {
  flex-grow: 1;
}
.toast-body .toast-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: #1d1d1f;
  line-height: 1.3;
}
.toast-body .toast-msg {
  font-size: 0.78rem;
  color: #6e6e73;
  margin-top: 0.1rem;
  line-height: 1.4;
}
.toast-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: #86868b;
  padding: 0 0 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.toast-close:hover {
  color: #1d1d1f;
}

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

/* ── Skeleton Loader ────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.5rem;
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ── Quantity Input ─────────────────────────────────────────── */
.qty-input {
  display: flex; align-items: center;
  border: 1.5px solid #E5E7EB; border-radius: 0.75rem; overflow: hidden;
}
.qty-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: #F9FAFB; border: none; cursor: pointer;
  font-size: 1.1rem; color: #374151;
  transition: background 0.2s;
}
.qty-btn:hover { background: var(--blue-primary); color: #fff; }
.qty-num {
  width: 48px; text-align: center;
  border: none; font-weight: 600; font-size: 0.9rem;
  outline: none; background: #fff;
}

/* ── Pagination ─────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.page-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.625rem;
  border: 1.5px solid #E5E7EB;
  background: #fff;
  font-size: 0.875rem; font-weight: 500;
  color: #374151; cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.page-btn:hover, .page-btn.active {
  background: var(--blue-primary); border-color: var(--blue-primary); color: #fff;
}
.page-btn.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ── Admin Sidebar ──────────────────────────────────────────── */
.admin-sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--dark);
  min-height: 100vh;
  display: flex; flex-direction: column;
  position: fixed; left: 0; top: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
  transition: transform 0.3s ease;
}
.admin-nav-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.625rem;
  margin: 0.15rem 0.75rem;
  transition: var(--transition);
}
.admin-nav-item:hover, .admin-nav-item.active {
  background: rgba(37,99,235,0.2);
  color: #fff;
}
.admin-nav-item.active { background: var(--blue-primary); }
.admin-content { margin-left: 260px; min-height: 100vh; background: #F1F5F9; }

/* ── Stat Card ──────────────────────────────────────────────── */
.stat-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.stat-card-icon {
  width: 52px; height: 52px;
  border-radius: 0.875rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.stat-card-value { font-size: 2rem; font-weight: 800; color: #111; line-height: 1; margin-bottom: 0.25rem; }
.stat-card-label { font-size: 0.8rem; color: #6B7280; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-card-change { font-size: 0.78rem; font-weight: 600; margin-top: 0.5rem; }
.stat-card-change.up { color: #10B981; }
.stat-card-change.down { color: #EF4444; }

/* ── Table ──────────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6B7280;
  border-bottom: 2px solid #E5E7EB;
  background: #F9FAFB;
}
.data-table td {
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  color: #374151;
  border-bottom: 1px solid #F3F4F6;
  vertical-align: middle;
}
.data-table tr:hover td { background: #F8FAFC; }

/* ── Status Badges ──────────────────────────────────────────── */
.status-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.status-pending    { background: #FEF3C7; color: #92400E; }
.status-processing { background: #EFF6FF; color: #1D4ED8; }
.status-shipped    { background: #EDE9FE; color: #6D28D9; }
.status-delivered  { background: #D1FAE5; color: #065F46; }
.status-cancelled  { background: #FEE2E2; color: #991B1B; }
.status-refunded   { background: #F3F4F6; color: #374151; }

/* ── Modal ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(6px);
  padding: 1rem;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 25px 80px rgba(0,0,0,0.3);
  width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }

/* ── Range Slider ───────────────────────────────────────────── */
input[type=range] {
  -webkit-appearance: none;
  width: 100%; height: 4px;
  border-radius: 99px;
  background: #E5E7EB;
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue-primary);
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-content { margin-left: 0; }
}
@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  #toast-container { left: auto; right: 1rem; top: 1rem; bottom: auto; transform: none; width: calc(100vw - 2rem); max-width: none; }
  .toast { min-width: 0; width: 100%; }
}


/* ── Floating animation ─────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-16px); }
}
.float-anim { animation: float 4s ease-in-out infinite; }

/* ── Fade In ────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.6s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ── Star Rating Input ──────────────────────────────────────── */
.star-input { display: flex; flex-direction: row-reverse; gap: 0.25rem; }
.star-input input { display: none; }
.star-input label {
  font-size: 1.5rem; color: #D1D5DB; cursor: pointer;
  transition: color 0.15s;
}
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label { color: #FBBF24; }

/* ── Image Zoom ─────────────────────────────────────────────── */
.img-zoom-wrap { overflow: hidden; cursor: zoom-in; border-radius: 1rem; }
.img-zoom-wrap img { transition: transform 0.4s ease; }
.img-zoom-wrap:hover img { transform: scale(1.5); }

/* ── Search Suggestions ─────────────────────────────────────── */
.search-suggestions {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff;
  border-radius: 0 0 1rem 1rem;
  box-shadow: var(--shadow-lg);
  z-index: 500;
  max-height: 400px; overflow-y: auto;
  border: 1px solid #E5E7EB;
  border-top: none;
}
.search-suggestion-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer; transition: background 0.15s;
  text-decoration: none; color: inherit;
}
.search-suggestion-item:hover { background: #F8FAFC; }
.search-suggestion-img { width: 40px; height: 40px; object-fit: cover; border-radius: 0.5rem; flex-shrink: 0; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
}
.footer-brand { color: #fff; font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 800; }
.footer-link  { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; font-size: 0.875rem; }
.footer-link:hover { color: var(--blue-light); }
.footer-divider { border-color: rgba(255,255,255,0.08); }
.footer-social {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%; color: rgba(255,255,255,0.7);
  text-decoration: none; transition: var(--transition);
  font-size: 1rem;
}
.footer-social:hover { background: var(--blue-primary); color: #fff; transform: translateY(-3px); }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.breadcrumb-item { font-size: 0.8rem; color: #6B7280; }
.breadcrumb-item a { color: #6B7280; text-decoration: none; transition: color 0.2s; }
.breadcrumb-item a:hover { color: var(--blue-primary); }
.breadcrumb-sep { color: #D1D5DB; }
.breadcrumb-item.active { color: #374151; font-weight: 600; }

/* ── Profile Avatar ─────────────────────────────────────────── */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--blue-primary);
}

/* ── Order Timeline ─────────────────────────────────────────── */
.order-timeline { position: relative; padding-left: 2rem; }
.order-timeline::before {
  content: ''; position: absolute; left: 0.55rem; top: 0; bottom: 0;
  width: 2px; background: #E5E7EB;
}
.timeline-item { position: relative; padding-bottom: 1.5rem; }
.timeline-dot {
  position: absolute; left: -1.5rem; top: 0.2rem;
  width: 18px; height: 18px; border-radius: 50%;
  background: #E5E7EB; border: 3px solid #fff;
  box-shadow: 0 0 0 2px #E5E7EB;
  transition: var(--transition);
}
.timeline-item.done .timeline-dot { background: var(--blue-primary); box-shadow: 0 0 0 2px var(--blue-primary); }
.timeline-item.active .timeline-dot {
  background: var(--blue-primary);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.25);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(37,99,235,0.25); }
  50%       { box-shadow: 0 0 0 8px rgba(37,99,235,0.1); }
}

/* ── Checkbox Custom ────────────────────────────────────────── */
.custom-checkbox { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.custom-checkbox input[type=checkbox] { display: none; }
.custom-checkbox .check-box {
  width: 18px; height: 18px;
  border: 2px solid #D1D5DB; border-radius: 0.35rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); flex-shrink: 0;
}
.custom-checkbox input:checked + .check-box {
  background: var(--blue-primary); border-color: var(--blue-primary);
}
.custom-checkbox input:checked + .check-box::after {
  content: '✓'; color: #fff; font-size: 0.7rem; font-weight: 700;
}

/* ── Mobile Menu ────────────────────────────────────────────── */
#mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(10,10,10,0.98);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
  padding: 5rem 2rem 2rem;
}
#mobile-menu.open { transform: translateX(0); }
.mobile-nav-link {
  display: block; color: rgba(255,255,255,0.85);
  font-size: 1.5rem; font-weight: 600;
  font-family: 'Playfair Display', serif;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-nav-link:hover { color: var(--blue-light); }

/* ── Utility ────────────────────────────────────────────────── */
.text-gradient {
  background: var(--gradient-mix);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bg-gradient-blue { background: var(--blue-gradient); }
.hidden { display: none !important; }
.truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.truncate-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
