/* ==========================================================================
   NOVA MART - PREMIER DROPSHIPPING E-COMMERCE DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

/* 1. ROOT VARIABLES & THEME TOKENS */
:root {
  --bg-dark: #07090e;
  --bg-card: #111622;
  --bg-card-hover: #182030;
  --bg-input: #1a2234;
  --bg-modal: #0f1523;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  
  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-violet: #7c3aed;
  --accent-gold: #fbbf24;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.3);
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.15);
  --transition-fast: all 0.2s ease;
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. BASE RESET & TYPOGRAPHY */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: var(--transition-fast);
}
a:hover {
  color: var(--accent-blue);
}

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: var(--font-body);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden {
  display: none !important;
}

/* 3. ANNOUNCEMENT BAR */
.announcement-bar {
  background: linear-gradient(90deg, #00f2fe 0%, #4facfe 50%, #7c3aed 100%);
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 0;
  position: relative;
  z-index: 100;
}
.announcement-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.announcement-close {
  cursor: pointer;
  font-size: 18px;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.announcement-close:hover {
  opacity: 1;
}

/* 4. HEADER & NAVIGATION */
.site-header {
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 16px 0;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}
.logo-icon {
  color: var(--accent-cyan);
  filter: drop-shadow(0 0 8px var(--accent-cyan));
}
.logo-accent {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Search Box */
.search-box {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 15px;
}
.search-box input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 12px 42px;
  color: #ffffff !important; /* Extremely high contrast */
  font-size: 14px;
  transition: var(--transition-fast);
}
.search-box input::placeholder {
  color: #94a3b8;
}
.search-box input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}
.clear-search-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.currency-badge {
  background: rgba(251, 191, 36, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 9px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
  position: relative;
}
.nav-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  transform: translateY(-1px);
}
.admin-badge-btn {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.5);
  color: #c4b5fd;
}
.admin-badge-btn:hover {
  background: rgba(124, 58, 237, 0.4);
  color: #ffffff;
}

.badge {
  background: linear-gradient(135deg, var(--accent-rose), #e11d48);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* Category Bar */
.category-nav {
  background: #090d17;
  border-bottom: 1px solid var(--border-light);
  padding: 10px 0;
  overflow-x: auto;
  white-space: nowrap;
}
.category-container {
  display: flex;
  gap: 10px;
}
.cat-pill {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}
.cat-pill:hover, .cat-pill.active {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: var(--text-dark);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 242, 254, 0.25);
}

/* 5. MAIN CONTENT & HERO SLIDESHOW */
.main-content {
  flex: 1;
  padding-top: 24px;
  padding-bottom: 60px;
}

.slideshow-section {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 30px;
  border: 1px solid var(--border-light);
  height: 380px;
  background: #0d121f;
}
.slideshow-container {
  height: 100%;
  position: relative;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, transform 0.6s ease;
  display: flex;
  align-items: center;
  padding: 40px 60px;
  background-size: cover;
  background-position: center;
}
.slide.active {
  opacity: 1;
  visibility: visible;
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 9, 14, 0.92) 0%, rgba(7, 9, 14, 0.65) 60%, rgba(7, 9, 14, 0.2) 100%);
  z-index: 1;
}
.slide-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
}
.slide-tag {
  display: inline-block;
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  border: 1px solid var(--border-glow);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.slide-title {
  font-size: 38px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.15;
}
.slide-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 24px;
}
.slide-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-light);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}
.slide-control:hover {
  background: var(--accent-cyan);
  color: var(--text-dark);
}
.prev-slide { left: 16px; }
.next-slide { right: 16px; }

.slide-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition-fast);
}
.dot.active {
  width: 28px;
  border-radius: 10px;
  background: var(--accent-cyan);
}

/* 6. FEATURES GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition-fast);
}
.feature-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}
.feature-icon {
  font-size: 28px;
  color: var(--accent-cyan);
}
.feature-card h4 {
  font-size: 15px;
  margin-bottom: 2px;
}
.feature-card p {
  font-size: 12px;
  color: var(--text-muted);
}

/* 7. CATALOG HEADER & PRODUCT GRID */
.catalog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.section-title {
  font-size: 28px;
  font-weight: 800;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 14px;
}

.sort-filter-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  border-color: rgba(0, 242, 254, 0.4);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  background: #0d121d;
  overflow: hidden;
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img {
  transform: scale(1.06);
}

.discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  z-index: 2;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
}
.badge-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: var(--accent-gold);
  border: 1px solid rgba(251, 191, 36, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.product-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-category {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.product-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 42px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 12px;
}
.stars {
  color: var(--accent-gold);
}
.rating-val {
  color: var(--text-muted);
  font-weight: 600;
}

.product-price-row {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}
.sale-price {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-heading);
}
.original-price-old {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card-actions {
  display: flex;
  gap: 8px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin: 30px 0;
}
.empty-icon {
  font-size: 50px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* 8. BUTTON SYSTEM */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
  text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: var(--text-dark);
  font-weight: 700;
}
.btn-primary:hover {
  opacity: 0.92;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.35);
  transform: translateY(-1px);
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent-violet), #9333ea);
  color: #ffffff;
  font-weight: 700;
}
.btn-accent:hover {
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}
.btn-secondary {
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}
.btn-outline:hover {
  border-color: var(--accent-rose);
  color: var(--accent-rose);
}
.btn-success {
  background: linear-gradient(135deg, var(--accent-emerald), #059669);
  color: #ffffff;
  font-weight: 700;
}
.btn-danger {
  background: linear-gradient(135deg, var(--accent-rose), #dc2626);
  color: #ffffff;
  font-weight: 700;
}
.btn-block {
  width: 100%;
}
.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-md);
}
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* 9. FORM CONTROLS & HIGH CONTRAST INPPUTS (FIXES SIGN IN INVISIBILITY!) */
.form-group {
  margin-bottom: 16px;
  text-align: left;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc !important; /* Pure white crisp label text */
  margin-bottom: 6px;
}

.input-wrapper {
  position: relative;
}
.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-cyan);
  font-size: 15px;
}
.input-wrapper .form-control {
  padding-left: 42px;
}

/* CRITICAL FIX FOR SIGN IN & FORM TEXT INVISIBILITY */
.form-control, .form-select {
  width: 100%;
  background: #161e2e !important; /* Deep dark blue background */
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #ffffff !important; /* Extremely high contrast pure white text */
  font-size: 14px !important;
  font-weight: 500;
  transition: var(--transition-fast);
}
.form-control::placeholder {
  color: #94a3b8 !important; /* Crisp visible placeholder */
}
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent-cyan) !important;
  background: #1c273c !important;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.3) !important;
}

.form-notice {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  color: #e2e8f0;
  margin-bottom: 16px;
}
.form-notice code {
  background: rgba(0, 0, 0, 0.4);
  color: var(--accent-cyan);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}

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

/* 10. MODAL & DRAWER SYSTEM */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-card {
  background: var(--bg-modal);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 30px;
  animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 10;
}
.modal-close:hover {
  background: var(--accent-rose);
  color: #ffffff;
}

.modal-medium { max-width: 580px; }
.modal-large { max-width: 880px; }
.modal-full { max-width: 1100px; height: 85vh; }
.auth-modal-card { max-width: 440px; }

/* Auth Modal Tabs */
.auth-header {
  text-align: center;
  margin-bottom: 20px;
}
.auth-header-icon {
  font-size: 36px;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}
.auth-tabs {
  display: flex;
  background: var(--bg-input);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}
.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 10px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.auth-tab.active {
  background: var(--bg-modal);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.auth-error {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fca5a5;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
}

/* 11. CART DRAWER */
.drawer-card {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--bg-modal);
  border-left: 1px solid var(--border-light);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  z-index: 1001;
  animation: drawerSlide 0.3s ease;
}
@keyframes drawerSlide {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.drawer-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--border-light);
  background: #090d16;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  position: relative;
}
.cart-item-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  background: #000;
}
.cart-item-info {
  flex: 1;
}
.cart-item-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #ffffff;
}
.cart-item-price {
  font-size: 14px;
  color: var(--accent-cyan);
  font-weight: 700;
  margin-bottom: 8px;
}
.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-mini-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  cursor: pointer;
}
.remove-cart-item {
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
}
.remove-cart-item:hover { color: var(--accent-rose); }

.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-muted);
}
.total-line {
  border-top: 1px solid var(--border-light);
  padding-top: 10px;
  margin-top: 10px;
  font-size: 18px;
  color: #ffffff;
  font-weight: 800;
}

/* 12. ADMIN PANEL */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.admin-user-tag {
  font-size: 13px;
  color: var(--accent-cyan);
}
.admin-nav-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
  overflow-x: auto;
}
.admin-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
  white-space: nowrap;
}
.admin-tab.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}

.admin-tab-content {
  display: none;
}
.admin-tab-content.active {
  display: block;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}
.admin-table th, .admin-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
.admin-table th {
  background: #141b2b;
  color: var(--accent-cyan);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
.admin-table td {
  font-size: 14px;
}
.table-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
}

/* Base64 & Upload Image Preview Fix */
.image-upload-options {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}
.img-preview-box {
  background: #000;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.preview-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
}
.preview-thumb-wide {
  width: 160px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

/* Receipt & Order Confirmation Modal */
.thank-you-header {
  margin-bottom: 20px;
}
.success-checkmark-circle {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--accent-emerald), #059669);
  color: #fff;
  font-size: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
}
.order-id-badge {
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-top: 8px;
}
.email-sent-alert {
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: #d8b4fe;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.receipt-box {
  background: #080c14;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: left;
  margin-bottom: 24px;
}

/* 13. FOOTER */
.site-footer {
  background: #05070d;
  border-top: 1px solid var(--border-light);
  padding-top: 60px;
  margin-top: auto;
}
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 14px;
}
.footer-col h4 {
  font-size: 16px;
  margin-bottom: 16px;
  color: #ffffff;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
}
.footer-links a:hover { color: var(--accent-cyan); }
.contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-bottom {
  background: #020306;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--text-muted);
}
.payment-methods {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 20px;
}
.cod-tag {
  font-size: 12px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--accent-cyan);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastIn 0.3s ease;
}
@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .header-container { flex-wrap: wrap; }
  .search-box { order: 3; max-width: 100%; width: 100%; margin-top: 10px; }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .slideshow-section { height: 320px; }
}
@media (max-width: 600px) {
  .slideshow-section { height: 340px; }
  .slide { padding: 24px; }
  .slide-title { font-size: 26px; }
  .footer-content { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
