/* ============================================
   AmazonSell.in — Premium Bright Theme
   Vibrant Orange + Deep Blue + Clean White
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Nunito:wght@300;400;600;700;800&family=Fira+Code:wght@400;500&display=swap');

:root {
  /* Brand Colors */
  --orange:       #FF6B00;
  --orange-light: #FF8C35;
  --orange-pale:  #FFF0E0;
  --orange-deep:  #E85500;

  --blue:         #0052CC;
  --blue-light:   #1A73E8;
  --blue-pale:    #E8F0FE;
  --blue-deep:    #003A99;

  --yellow:       #FFB800;
  --yellow-pale:  #FFFAE0;

  --green:        #00B87A;
  --green-pale:   #E0FAF1;
  --red:          #E63946;
  --red-pale:     #FFE8E9;
  --purple:       #7B2FBE;

  /* Neutrals */
  --white:        #FFFFFF;
  --bg:           #F4F6FB;
  --bg2:          #EEF1F8;
  --border:       #DDE2EE;
  --text:         #1A1F36;
  --text-muted:   #6B7280;
  --text-light:   #A0AABF;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:  0 4px 20px rgba(0,82,204,0.10);
  --shadow-lg:  0 8px 40px rgba(0,82,204,0.15);
  --shadow-xl:  0 16px 60px rgba(0,0,0,0.12);
  --shadow-orange: 0 6px 24px rgba(255,107,0,0.25);
  --shadow-blue:   0 6px 24px rgba(0,82,204,0.20);

  /* Typography */
  --font-display: 'Baloo 2', cursive;
  --font-body:    'Nunito', sans-serif;
  --font-mono:    'Fira Code', monospace;

  /* Radius */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-full: 9999px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
input, select, textarea, button { font-family: var(--font-body); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: var(--r-full); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 2px solid var(--orange);
  box-shadow: var(--shadow-md);
}
.nav-top {
  background: var(--blue);
  padding: 6px 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: rgba(255,255,255,0.85);
}
.nav-top a { color: rgba(255,255,255,0.85); transition: color .2s; }
.nav-top a:hover { color: var(--white); }
.nav-main {
  max-width: 1320px; margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex; align-items: center; gap: 20px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.75rem; font-weight: 800;
  color: var(--orange);
  white-space: nowrap;
  cursor: pointer;
  display: flex; align-items: center; gap: 4px;
}
.nav-logo span { color: var(--blue); }
.nav-logo small { font-size: 0.55rem; color: var(--text-muted); font-weight: 400; display: block; margin-top: -6px; }

.nav-search {
  flex: 1; display: flex;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--r-full);
  overflow: hidden; max-width: 640px;
  transition: border-color .2s, box-shadow .2s;
}
.nav-search:focus-within {
  border-color: var(--orange);
  box-shadow: var(--shadow-orange);
}
.nav-search input {
  flex: 1; border: none; background: none;
  padding: 10px 18px; font-size: 0.925rem; color: var(--text);
  outline: none;
}
.nav-search-btn {
  background: var(--orange); border: none;
  padding: 0 22px; color: white;
  font-size: 1rem; cursor: pointer;
  transition: background .2s;
}
.nav-search-btn:hover { background: var(--orange-deep); }

.nav-icons { display: flex; align-items: center; gap: 4px; }
.nav-icon-btn {
  position: relative; background: none; border: none;
  padding: 10px; cursor: pointer; color: var(--text);
  font-size: 1.15rem; border-radius: var(--r-md);
  transition: all .2s; display: flex; flex-direction: column;
  align-items: center; font-size: 0.8rem; gap: 2px;
  min-width: 52px;
}
.nav-icon-btn i { font-size: 1.2rem; color: var(--blue); }
.nav-icon-btn:hover { background: var(--blue-pale); color: var(--blue); }
.nav-icon-btn .nav-badge {
  position: absolute; top: 6px; right: 8px;
  background: var(--orange); color: white;
  font-size: 0.6rem; font-weight: 800;
  min-width: 17px; height: 17px; border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white;
}
.nav-account-btn {
  background: var(--orange); color: white;
  border: none; padding: 9px 20px; border-radius: var(--r-full);
  font-weight: 700; font-size: 0.85rem; cursor: pointer;
  transition: all .2s; white-space: nowrap;
}
.nav-account-btn:hover { background: var(--orange-deep); box-shadow: var(--shadow-orange); }

.nav-cats {
  background: var(--blue);
  border-top: none;
}
.nav-cats ul {
  max-width: 1320px; margin: 0 auto;
  padding: 0 20px;
  display: flex; gap: 0; overflow-x: auto;
  scrollbar-width: none;
}
.nav-cats ul::-webkit-scrollbar { display: none; }
.nav-cats ul li a {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px; color: rgba(255,255,255,0.88);
  font-size: 0.84rem; font-weight: 600;
  white-space: nowrap; transition: all .2s;
  border-bottom: 3px solid transparent;
}
.nav-cats ul li a:hover, .nav-cats ul li a.active {
  color: white;
  border-bottom-color: var(--orange);
  background: rgba(255,255,255,0.08);
}

/* HAMBURGER */
.nav-ham { display: none; background: none; border: none; color: var(--blue); font-size: 1.5rem; cursor: pointer; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--r-full);
  font-weight: 700; font-size: 0.92rem; cursor: pointer;
  border: none; transition: all .25s; white-space: nowrap;
  text-decoration: none; font-family: var(--font-body);
}
.btn-orange {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: white; box-shadow: var(--shadow-orange);
}
.btn-orange:hover { background: linear-gradient(135deg, var(--orange-deep), var(--orange)); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,107,0,.35); }

.btn-blue {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: white; box-shadow: var(--shadow-blue);
}
.btn-blue:hover { background: linear-gradient(135deg, var(--blue-deep), var(--blue)); transform: translateY(-2px); }

.btn-outline-orange {
  background: none; color: var(--orange);
  border: 2px solid var(--orange);
}
.btn-outline-orange:hover { background: var(--orange); color: white; }

.btn-outline-blue {
  background: none; color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline-blue:hover { background: var(--blue); color: white; }

.btn-white {
  background: white; color: var(--orange);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.btn-sm { padding: 7px 18px; font-size: 0.82rem; }
.btn-lg { padding: 15px 36px; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-icon { padding: 10px; width: 42px; height: 42px; }

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}
.card-body { padding: 24px; }
.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700; color: var(--text);
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  overflow: hidden; cursor: pointer;
  transition: all .3s;
  position: relative;
}
.product-card:hover {
  border-color: var(--orange);
  box-shadow: 0 8px 32px rgba(255,107,0,.14);
  transform: translateY(-4px);
}
.product-img-wrap {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #FFF7F0, #F0F4FF);
  height: 200px; display: flex; align-items: center; justify-content: center;
}
.product-emoji { font-size: 5rem; user-select: none; }
.product-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--orange); color: white;
  font-size: 0.65rem; padding: 4px 10px;
  border-radius: var(--r-full); font-weight: 800;
  letter-spacing: .5px; text-transform: uppercase;
}
.badge-new { background: var(--blue); }
.badge-hot { background: var(--red); }
.badge-trending { background: var(--purple); }
.badge-sale { background: var(--green); }

.product-actions {
  position: absolute; top: 10px; right: 10px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; transition: opacity .3s;
}
.product-card:hover .product-actions { opacity: 1; }
.product-action-btn {
  background: white; border: none;
  width: 34px; height: 34px; border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-sm);
  font-size: 0.85rem; color: var(--text-muted);
  transition: all .2s;
}
.product-action-btn:hover { background: var(--orange); color: white; transform: scale(1.1); }

.product-info { padding: 14px 16px 18px; }
.product-cat { font-size: 0.72rem; color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.product-name { font-size: 0.92rem; font-weight: 700; color: var(--text); margin: 4px 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-stars { color: var(--yellow); font-size: 0.75rem; display: flex; align-items: center; gap: 4px; }
.product-stars span { color: var(--text-muted); font-size: 0.72rem; }
.product-price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.product-price { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: var(--orange); }
.product-mrp { font-size: 0.78rem; color: var(--text-light); text-decoration: line-through; }
.product-discount { font-size: 0.72rem; background: var(--green-pale); color: var(--green); font-weight: 700; padding: 2px 7px; border-radius: var(--r-full); }
.add-to-cart-btn {
  background: var(--orange); border: none; color: white;
  width: 36px; height: 36px; border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem; transition: all .2s;
  flex-shrink: 0;
}
.add-to-cart-btn:hover { background: var(--orange-deep); transform: rotate(15deg) scale(1.1); }

/* ===== GRID LAYOUTS ===== */
.container { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.products-grid-5 { grid-template-columns: repeat(5, 1fr); }
.products-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== SECTION HEADERS ===== */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 800; color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: '';
  width: 5px; height: 26px;
  background: linear-gradient(180deg, var(--orange), var(--yellow));
  border-radius: var(--r-full);
}
.section-link { color: var(--blue); font-weight: 700; font-size: 0.875rem; display: flex; align-items: center; gap: 4px; }
.section-link:hover { color: var(--orange); }

/* ===== HERO ===== */
.hero-section {
  background: linear-gradient(135deg, #0039B3 0%, #0052CC 40%, #1A73E8 100%);
  min-height: 420px; position: relative; overflow: hidden;
  display: flex; align-items: center;
  padding: 40px 0;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-blob {
  position: absolute; right: -80px; top: -80px;
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(255,184,0,.15) 0%, transparent 70%);
  border-radius: 50%;
}

/* ===== FORM STYLES ===== */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-weight: 700; font-size: 0.85rem;
  color: var(--text); margin-bottom: 7px;
}
.form-input, .form-select, .form-textarea {
  width: 100%; background: var(--bg);
  border: 2px solid var(--border); border-radius: var(--r-md);
  padding: 11px 16px; font-size: 0.92rem; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  font-family: var(--font-body);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--orange);
  background: white; box-shadow: 0 0 0 3px rgba(255,107,0,.12);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { color: var(--red); font-size: 0.8rem; margin-top: 5px; font-weight: 600; }
.form-hint { color: var(--text-muted); font-size: 0.8rem; margin-top: 5px; }

/* ===== TABLE ===== */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); }
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th {
  padding: 12px 16px; text-align: left;
  background: var(--bg); font-weight: 700;
  font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: .5px; color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.table td { padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.table tbody tr:hover td { background: var(--orange-pale); }
.table tbody tr:last-child td { border-bottom: none; }

/* ===== BADGES / STATUS ===== */
.badge-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: var(--r-full);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.badge-success { background: var(--green-pale); color: var(--green); }
.badge-pending { background: var(--yellow-pale); color: #B07800; }
.badge-danger { background: var(--red-pale); color: var(--red); }
.badge-info { background: var(--blue-pale); color: var(--blue); }
.badge-orange { background: var(--orange-pale); color: var(--orange); }

/* ===== STAT CARDS ===== */
.stat-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
}
.stat-card-icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 6px;
}
.stat-card-icon.orange { background: var(--orange-pale); color: var(--orange); }
.stat-card-icon.blue { background: var(--blue-pale); color: var(--blue); }
.stat-card-icon.green { background: var(--green-pale); color: var(--green); }
.stat-card-icon.purple { background: #F3E8FF; color: var(--purple); }
.stat-card-label { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.stat-card-value { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-card-value.orange { color: var(--orange); }
.stat-card-value.blue { color: var(--blue); }
.stat-card-value.green { color: var(--green); }
.stat-card-change { font-size: 0.78rem; font-weight: 700; }
.stat-card-change.up { color: var(--green); }
.stat-card-change.down { color: var(--red); }

/* ===== DASHBOARD SIDEBAR ===== */
.dash-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; min-height: calc(100vh - 140px); padding: 24px 20px; max-width: 1320px; margin: 0 auto; }
.dash-sidebar {
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 20px 0;
  height: fit-content;
  position: sticky; top: 120px;
}
.dash-sidebar-user {
  padding: 16px 20px 20px;
  border-bottom: 1px solid var(--border);
  text-align: center; margin-bottom: 12px;
}
.dash-sidebar-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 800;
  color: white; margin: 0 auto 10px;
  box-shadow: 0 4px 14px rgba(255,107,0,.3);
}
.dash-sidebar-name { font-weight: 800; font-size: 0.95rem; }
.dash-sidebar-tag { font-size: 0.72rem; color: var(--text-muted); margin-top: 3px; }
.dash-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px; color: var(--text-muted);
  font-weight: 600; font-size: 0.875rem;
  transition: all .2s; position: relative;
  border-radius: 0;
}
.dash-nav a i { width: 20px; text-align: center; font-size: 1rem; }
.dash-nav a:hover { color: var(--orange); background: var(--orange-pale); }
.dash-nav a.active {
  color: var(--orange); background: var(--orange-pale);
  font-weight: 700;
}
.dash-nav a.active::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--orange); border-radius: 0 4px 4px 0;
}
.dash-nav .nav-section-title {
  padding: 12px 20px 6px;
  font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-light); font-weight: 700;
}

/* ===== AFFILIATE LINK BOX ===== */
.aff-link-box {
  background: linear-gradient(135deg, var(--orange-pale), var(--blue-pale));
  border: 2px dashed var(--orange);
  border-radius: var(--r-lg); padding: 18px 20px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.aff-link-text {
  flex: 1; font-family: var(--font-mono); font-size: 0.82rem;
  color: var(--blue); font-weight: 500;
  background: white; border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 8px 14px;
  min-width: 200px;
}

/* ===== TOAST ===== */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--white); border-radius: var(--r-lg);
  padding: 14px 18px; box-shadow: var(--shadow-xl);
  display: flex; align-items: center; gap: 12px;
  min-width: 280px; max-width: 380px;
  border-left: 4px solid var(--orange);
  animation: slideInToast .3s ease;
  font-size: 0.875rem; font-weight: 600;
}
.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red); }
.toast.info { border-left-color: var(--blue); }
.toast i { font-size: 1.1rem; color: var(--orange); }
.toast.success i { color: var(--green); }
.toast.error i { color: var(--red); }
.toast.info i { color: var(--blue); }
@keyframes slideInToast { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; visibility: hidden; transition: all .25s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--white); border-radius: var(--r-xl);
  width: 100%; max-width: 540px;
  box-shadow: var(--shadow-xl);
  transform: scale(.95) translateY(20px); transition: transform .25s;
  overflow: hidden;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; justify-content: space-between;
}
.modal-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; }
.modal-close {
  background: var(--bg); border: none; width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all .2s;
}
.modal-close:hover { background: var(--red-pale); color: var(--red); }
.modal-body { padding: 24px 28px; }
.modal-footer { padding: 16px 28px 24px; display: flex; gap: 12px; justify-content: flex-end; }

/* ===== CART SIDEBAR ===== */
.cart-overlay { position: fixed; inset: 0; z-index: 1500; background: rgba(0,0,0,.45); opacity: 0; visibility: hidden; transition: all .25s; }
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1501;
  width: 100%; max-width: 420px; background: var(--white);
  box-shadow: var(--shadow-xl); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.cart-overlay.open .cart-drawer { transform: translateX(0); }
.cart-drawer-header {
  padding: 20px 24px; border-bottom: 2px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: white;
}
.cart-drawer-header h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-item-img { width: 72px; height: 72px; background: linear-gradient(135deg, #FFF7F0, #F0F4FF); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 700; font-size: 0.88rem; line-height: 1.3; }
.cart-item-price { color: var(--orange); font-family: var(--font-display); font-weight: 800; font-size: 1rem; margin-top: 4px; }
.qty-ctrl { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn { background: var(--bg); border: 2px solid var(--border); width: 28px; height: 28px; border-radius: var(--r-sm); cursor: pointer; font-size: 1rem; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.qty-btn:hover { background: var(--orange); border-color: var(--orange); color: white; }
.qty-val { font-weight: 800; min-width: 24px; text-align: center; }
.cart-footer { padding: 16px; border-top: 2px solid var(--border); background: var(--bg); }

/* ===== MOBILE NAV DRAWER ===== */
.mob-nav-overlay { position: fixed; inset: 0; z-index: 1400; background: rgba(0,0,0,.5); opacity: 0; visibility: hidden; transition: all .25s; }
.mob-nav-overlay.open { opacity: 1; visibility: visible; }
.mob-nav-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 1401;
  width: 290px; background: var(--white);
  transform: translateX(-100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.mob-nav-overlay.open .mob-nav-drawer { transform: translateX(0); }
.mob-nav-head {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  padding: 20px; color: white;
}
.mob-nav-head h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; }
.mob-nav-links a { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--border); font-weight: 600; color: var(--text); font-size: 0.925rem; }
.mob-nav-links a:hover { background: var(--orange-pale); color: var(--orange); }
.mob-nav-links a i { width: 22px; color: var(--orange); }

/* ===== FOOTER ===== */
footer {
  background: var(--blue-deep);
  color: rgba(255,255,255,.85);
  padding: 60px 0 0;
  margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1320px; margin: 0 auto; padding: 0 20px 40px; }
.footer-brand h3 { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--orange); margin-bottom: 10px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.8; color: rgba(255,255,255,.65); max-width: 280px; }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--yellow); margin-bottom: 14px; font-weight: 800; }
.footer-col a { display: block; color: rgba(255,255,255,.65); font-size: 0.875rem; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--orange); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: white; font-size: 0.95rem; transition: all .2s; }
.footer-social a:hover { background: var(--orange); transform: translateY(-3px); }
.footer-bottom { background: rgba(0,0,0,.25); padding: 16px 20px; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,.5); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-payments { display: flex; gap: 8px; align-items: center; }
.pay-badge { background: rgba(255,255,255,.1); color: white; padding: 4px 10px; border-radius: var(--r-sm); font-size: 0.72rem; font-weight: 700; }

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  padding: 24px 0; color: white;
}
.page-header h1 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: rgba(255,255,255,.75); margin-top: 6px; }
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: var(--yellow); }

/* ===== TABS ===== */
.tabs-wrap { border-bottom: 2px solid var(--border); margin-bottom: 24px; display: flex; gap: 0; overflow-x: auto; }
.tab-btn { padding: 12px 20px; background: none; border: none; cursor: pointer; font-weight: 700; font-size: 0.875rem; color: var(--text-muted); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; transition: all .2s; }
.tab-btn.active { color: var(--orange); border-bottom-color: var(--orange); }
.tab-btn:hover { color: var(--text); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ===== ALERT ===== */
.alert { padding: 14px 18px; border-radius: var(--r-md); font-size: 0.875rem; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; }
.alert-success { background: var(--green-pale); color: var(--green); border-left: 4px solid var(--green); }
.alert-error { background: var(--red-pale); color: var(--red); border-left: 4px solid var(--red); }
.alert-info { background: var(--blue-pale); color: var(--blue); border-left: 4px solid var(--blue); }
.alert-warning { background: var(--yellow-pale); color: #8A6000; border-left: 4px solid var(--yellow); }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 6px; justify-content: center; align-items: center; margin-top: 32px; }
.page-btn { width: 38px; height: 38px; border-radius: var(--r-sm); border: 2px solid var(--border); background: white; display: flex; align-items: center; justify-content: center; cursor: pointer; font-weight: 700; font-size: 0.875rem; transition: all .2s; }
.page-btn:hover { border-color: var(--orange); color: var(--orange); }
.page-btn.active { background: var(--orange); border-color: var(--orange); color: white; }

/* ===== LOADING SPINNER ===== */
.spinner { display: inline-block; width: 20px; height: 20px; border: 3px solid var(--border); border-top-color: var(--orange); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 3rem; color: var(--text-light); margin-bottom: 16px; display: block; }
.empty-state h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--text-muted); margin-bottom: 8px; }
.empty-state p { color: var(--text-light); font-size: 0.875rem; }

/* ===== CHART BARS ===== */
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 140px; }
.bar-chart-bar { flex: 1; background: var(--orange-pale); border-radius: var(--r-sm) var(--r-sm) 0 0; position: relative; cursor: pointer; transition: background .2s; min-width: 0; }
.bar-chart-bar:hover { background: var(--orange-light); }
.bar-chart-fill { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(180deg, var(--orange), var(--orange-light)); border-radius: var(--r-sm) var(--r-sm) 0 0; }
.bar-chart-labels { display: flex; gap: 8px; }
.bar-chart-labels span { flex: 1; text-align: center; font-size: 0.68rem; color: var(--text-muted); font-weight: 600; min-width: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) { .products-grid-5 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1024px) {
  .products-grid-5, .products-grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; }
}
@media (max-width: 768px) {
  .nav-search { display: none; }
  .nav-cats { display: none; }
  .nav-ham { display: flex; }
  .nav-top { display: none; }
  .products-grid, .products-grid-5, .products-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-section { min-height: 300px; padding: 30px 0; }
}
@media (max-width: 480px) {
  .products-grid, .products-grid-5, .products-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-img-wrap { height: 140px; }
  .product-emoji { font-size: 3.5rem; }
  .container { padding: 0 12px; }
  .card-body { padding: 16px; }
}

/* ===== NAV HEIGHT SPACER ===== */
.nav-spacer { height: 120px; }
@media (max-width: 768px) { .nav-spacer { height: 90px; } }
