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

:root {
  --primary: #13ec6d;
  --primary-dark: #0ec45b;
  --primary-light: #e6fdf0;
  --dark: #080a0f;
  --dark-lighter: #12141c;
  --dark-card: #151921;
  --dark-border: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --text-muted: #718096;
  --accent: #6366f1;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glow: 0 0 25px rgba(19, 236, 109, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

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

img {
  max-width: 100%;
  border-style: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 15, 20, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dark-border);
  padding: 0 5%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 8px;
  cursor: pointer;
  order: 1;
}

.navbar-brand {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.05em;
  text-transform: uppercase;
  order: 2;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  order: 3;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  order: 4;
}

.mobile-nav {
  display: none; /* Hidden by default */
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background: var(--dark-lighter);
  padding: 2rem;
  border-bottom: 1px solid var(--dark-border);
  flex-direction: column;
  gap: 1.5rem;
  z-index: 999;
}

.footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 0;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .timer-bar {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 1rem;
  }

  .timer-label {
    justify-content: center;
  }

  .section-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

.navbar-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--primary);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: rgba(19, 236, 109, 0.1);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: var(--dark);
  font-size: 0.6rem;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--dark);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--glow);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.98);
}

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

.btn-outline:hover,
.btn-outline.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(19, 236, 109, 0.05);
}

.btn:active {
  transform: translateY(1px);
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.7rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-primary {
  background: rgba(19, 236, 109, 0.15);
  color: var(--primary);
}

.badge-accent {
  background: rgba(124, 111, 255, 0.15);
  color: var(--accent);
}

.badge-danger {
  background: rgba(255, 71, 87, 0.15);
  color: var(--danger);
}

.badge-warning {
  background: rgba(255, 165, 2, 0.15);
  color: var(--warning);
}

/* ===== CARDS ===== */
.card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(19, 236, 109, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #1e2533;
}

.card-body {
  padding: 1rem;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.card-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.card-price-old {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 0.5rem;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 550px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* ===== SECTION ===== */
.section {
  padding: 4rem 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0d0f14 0%, #131c2b 50%, #0a1a12 100%);
  padding: 6rem 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(19, 236, 109, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(19, 236, 109, 0.1);
  border: 1px solid rgba(19, 236, 109, 0.2);
  color: var(--primary);
  padding: 0.35rem 1rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
}

.hero-title span {
  color: var(--primary);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
}

.hero-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ===== TIMER ===== */
.timer-bar {
  background: linear-gradient(90deg, rgba(124, 111, 255, 0.15), rgba(19, 236, 109, 0.1));
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.timer-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
}

.timer-blocks {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.timer-block {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  text-align: center;
  min-width: 52px;
}

.timer-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.timer-unit {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timer-sep {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 700;
}

/* ===== CATEGORIES ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.category-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

.category-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.category-count {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ===== DEAL CARD ===== */
.deal-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}

.deal-card:hover {
  border-color: rgba(19, 236, 109, 0.3);
  box-shadow: var(--shadow-lg);
}

.deal-card-body {
  padding: 1.25rem;
  flex: 1;
}

.deal-card-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.deal-progress-bar {
  height: 4px;
  background: var(--dark-border);
  border-radius: 99px;
  overflow: hidden;
  margin: 0.75rem 0 0.4rem;
}

.deal-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 99px;
}

.deal-stock-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ===== PRODUCT DETAIL ===== */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: 90px;
}

.product-main-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  margin-bottom: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumbnails {
  display: flex;
  gap: 0.75rem;
}

.product-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: var(--dark-card);
  border: 2px solid var(--dark-border);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s;
}

.product-thumb.active,
.product-thumb:hover {
  border-color: var(--primary);
}

.product-info {
  padding: 0.5rem 0;
}

.product-info-brand {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.product-info-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.stars {
  color: var(--primary);
  font-weight: 700;
}

.rating-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.product-price-current {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
}

.product-price-was {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-discount-pct {
  background: rgba(255, 71, 87, 0.15);
  color: var(--danger);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.product-divider {
  height: 1px;
  background: var(--dark-border);
  margin: 1.5rem 0;
}

.product-option-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.option-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.option-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-primary);
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.option-btn:hover,
.option-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(19, 236, 109, 0.07);
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.qty-btn {
  width: 36px;
  height: 36px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.qty-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.qty-input {
  width: 56px;
  text-align: center;
  background: transparent;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  padding: 0.4rem;
}

.add-to-cart-row {
  display: flex;
  gap: 1rem;
}

.btn-cart {
  flex: 1;
  justify-content: center;
  font-size: 1rem;
  padding: 0.85rem;
}

/* ===== SHOP FILTER SIDEBAR ===== */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.filter-sidebar {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}

.filter-section {
  margin-bottom: 1.75rem;
}

.filter-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--dark-border);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  cursor: pointer;
  transition: color 0.2s;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.filter-option:hover {
  color: var(--primary);
}

.filter-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.price-range-slider {
  width: 100%;
  accent-color: var(--primary);
  margin: 0.5rem 0;
}

/* ===== DASHBOARD ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all 0.3s;
}

.stat-card:hover {
  border-color: rgba(19, 236, 109, 0.3);
  box-shadow: var(--glow);
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.stat-change {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.stat-change.up {
  color: var(--primary);
}

.stat-change.down {
  color: var(--danger);
}

.table-wrap {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  padding: 0.875rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--dark-border);
  text-align: left;
}

.table td {
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: linear-gradient(135deg, rgba(19, 236, 109, 0.08), rgba(124, 111, 255, 0.08));
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-xl);
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.newsletter-subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  background: var(--dark);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  padding: 0.7rem 1.1rem;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-input:focus {
  border-color: var(--primary);
}

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

/* ===== FOOTER ===== */
footer {
  background: #080a0e;
  border-top: 1px solid var(--dark-border);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.breadcrumb li+li::before {
  content: '/';
  margin-right: 0.5rem;
  opacity: 0.4;
}

.breadcrumb a {
  transition: all 0.2s;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.breadcrumb a:hover {
  color: var(--primary);
  background: rgba(19, 236, 109, 0.08);
}

.breadcrumb li:last-child {
  color: var(--text-primary);
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.05), transparent 40%),
              radial-gradient(circle at top right, rgba(19, 236, 109, 0.05), transparent 40%);
  border-bottom: 1px solid var(--dark-border);
  padding: 4rem 0 3rem;
  margin-bottom: 3rem;
}

.page-header-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.3rem;
}

.page-header-sub {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: static;
  }
}


@media (max-width: 900px) {
  .navbar-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }

  .navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .navbar-actions .btn-outline, 
  .navbar-actions .btn-primary,
  .navbar-actions .role-toggle-admin,
  .navbar-actions .role-toggle-client {
    display: none;
  }
}

@media (max-width: 600px) {
  .navbar {
    padding: 0 1.25rem;
  }
  
  .navbar-actions {
    gap: 0.5rem;
  }

  .btn-icon {
    width: 38px;
    height: 38px;
  }
}

.mobile-nav.open {
  display: flex; /* Show when open */
  animation: slideDown 0.3s ease-out;
}

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

.mobile-nav a {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.mobile-nav a.active {
  color: var(--primary);
}

/* Featured Promo Classes */
.promo-card {
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--dark-border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.promo-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.promo-1 { background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(19, 236, 109, 0.05)); }
.promo-2 { background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 95, 70, 0.05)); border-color: rgba(16, 185, 129, 0.2); }
.promo-3 { background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(239, 68, 68, 0.05)); }

.promo-tag { color: var(--primary); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.promo-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.promo-desc { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1.5rem; }

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.5s ease both;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

/* ===== UTILITIES ===== */
.text-primary-color {
  color: var(--primary);
}

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

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

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-1 {
  gap: 0.5rem;
}

.gap-2 {
  gap: 1rem;
}

.fw-bold {
  font-weight: 700;
}

.fw-extrabold {
  font-weight: 800;
}

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

/* ===== ADMIN ===== */
.role-toggle-admin {
  background: linear-gradient(135deg, #7c6fff, #6055e0);
  color: #fff;
  box-shadow: 0 0 14px rgba(124, 111, 255, 0.35);
}

.role-toggle-admin:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.role-toggle-client {
  background: rgba(124, 111, 255, 0.12);
  border: 1px solid rgba(124, 111, 255, 0.4);
  color: var(--accent);
}

.role-toggle-client:hover {
  background: rgba(124, 111, 255, 0.2);
}

.admin-body {
  background: #0a0c10;
}

.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: #0f1219;
  border-right: 1px solid var(--dark-border);
  display: flex;
  flex-direction: column;
  padding: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-sidebar-header {
  padding: 1.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.admin-logo-badge {
  background: rgba(124, 111, 255, 0.15);
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(124, 111, 255, 0.25);
}

.admin-nav {
  padding: 1.25rem 0.75rem;
  flex: 1;
}

.admin-nav-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 0 0.75rem;
  margin-bottom: 0.5rem;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s;
  margin-bottom: 0.2rem;
  text-decoration: none;
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.admin-nav-item.active {
  background: rgba(19, 236, 109, 0.1);
  color: var(--primary);
  border-left: 3px solid var(--primary);
  padding-left: calc(0.75rem - 3px);
}

.admin-nav-icon {
  font-size: 1rem;
  width: 1.25rem;
  text-align: center;
}

.admin-nav-divider {
  height: 1px;
  background: var(--dark-border);
  margin: 1rem 0.75rem;
}

.admin-nav-exit {
  color: var(--danger);
}

.admin-nav-exit:hover {
  background: rgba(255, 71, 87, 0.08);
  color: var(--danger);
}

.admin-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-topbar {
  background: rgba(10, 12, 16, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dark-border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-page-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-role-pill {
  background: rgba(124, 111, 255, 0.12);
  border: 1px solid rgba(124, 111, 255, 0.3);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
}

.admin-content {
  padding: 2rem;
  flex: 1;
}

.admin-section-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--dark-border);
}

.admin-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.admin-quick-actions {
  display: flex;
  gap: 0.75rem;
}

.admin-form-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  max-width: 800px;
}

.admin-form-row {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.admin-form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.admin-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.admin-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.admin-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(19, 236, 109, 0.12);
}

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

.admin-select {
  cursor: pointer;
}

.admin-select option {
  background: #161b24;
}

.admin-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--dark-border);
  margin-top: 0.5rem;
}

.admin-flash {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.admin-flash-success {
  background: rgba(19, 236, 109, 0.1);
  border: 1px solid rgba(19, 236, 109, 0.25);
  color: var(--primary);
}

.admin-flash-error {
  background: rgba(255, 71, 87, 0.1);
  border: 1px solid rgba(255, 71, 87, 0.25);
  color: var(--danger);
}

/* =====================================================
   SMARTSHOP AI CHATBOT
   ===================================================== */

.smartshop-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background: var(--primary);
  color: var(--dark);
  border: none;
  padding: 12px 24px;
  border-radius: 99px;
  font-weight: 800;
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(19, 236, 109, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.smartshop-btn:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 15px 40px rgba(19, 236, 109, 0.4);
}

.smartshop-text {
  font-size: 0.9rem;
  font-weight: 700;
}

.smartshop-window {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 620px;
  height: 520px;
  background: rgba(22, 27, 36, 0.95);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@media (max-width: 680px) {
  .smartshop-window {
    width: calc(100vw - 20px);
    right: 10px;
    height: 80vh;
    bottom: 80px;
  }
}

.smartshop-window.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

.smartshop-header {
  padding: 1.25rem;
  background: rgba(13, 15, 20, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.smartshop-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.smartshop-header-avatar {
  width: 40px;
  height: 40px;
  background: rgba(19, 236, 109, 0.1);
  border: 1px solid rgba(19, 236, 109, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.smartshop-header-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.smartshop-header-status {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}

.smartshop-header-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.smartshop-header-close:hover {
  color: var(--text-primary);
}

.smartshop-messages {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--dark-border) transparent;
}

.smartshop-msg {
  max-width: 85%;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
}

.msg-ai {
  align-self: flex-start;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.msg-user {
  align-self: flex-end;
  background: var(--primary);
  color: var(--dark);
  font-weight: 600;
  border-bottom-right-radius: 4px;
}

/* ── Product Cards ── */
.smartshop-products-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
}

.smartshop-product-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 10px;
  height: auto;
  min-height: 88px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.25s ease;
  cursor: pointer;
}

.smartshop-product-card:hover {
  background: rgba(19, 236, 109, 0.07);
  border-color: var(--primary);
  transform: translateX(3px);
}

.smartshop-product-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.smartshop-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.smartshop-card-view-btn {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  padding: 5px 10px;
  text-decoration: none;
  transition: all 0.2s;
  font-family: 'Manrope', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

.smartshop-card-view-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(19, 236, 109, 0.05);
}

.smartshop-card-add-btn {
  flex: 2;
  background: var(--primary);
  color: var(--dark);
  border: none;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.smartshop-card-add-btn:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: scale(1.02);
}

.smartshop-card-add-btn.added {
  background: rgba(19, 236, 109, 0.15);
  color: var(--primary);
  cursor: default;
  font-weight: 600;
}

.smartshop-card-add-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.smartshop-reco-header {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-style: italic;
  padding: 0.5rem 0.75rem;
  background: rgba(124, 111, 255, 0.08);
  border-color: rgba(124, 111, 255, 0.2);
  color: var(--accent);
}

.smartshop-product-visual {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  /* CRITICAL: clips the image */
  background: #1a2234;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image inside: must fully fill the box — no text leaking */
.smartshop-product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  font-size: 0;
  /* hides broken-image alt text */
}

.no-image-placeholder {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  text-transform: uppercase;
  line-height: 1;
  user-select: none;
}

.smartshop-product-info {
  flex: 1;
  min-width: 0;
  /* enables ellipsis on children */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.smartshop-product-name {
  font-weight: 700;
  font-size: 0.86rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.smartshop-product-brand {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.smartshop-product-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.smartshop-product-price {
  font-weight: 800;
  color: var(--primary);
  font-size: 0.95rem;
}

.smartshop-product-was {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* ── Loading / Input ── */
.smartshop-loading {
  padding: 0 1.25rem 1rem;
  flex-shrink: 0;
}

.hidden {
  display: none;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 10px 15px;
  background: var(--dark-card);
  border-radius: 20px;
  width: fit-content;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

/* ── Payment Modal ──────────────────────────────────────────────────────── */
.payment-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(8, 11, 16, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
.payment-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.payment-modal {
  background: var(--dark-lighter);
  border: 1px solid var(--dark-border);
  border-radius: 20px;
  width: 90%;
  max-width: 440px;
  padding: 2rem;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
}
.payment-modal-overlay.active .payment-modal {
  transform: translateY(0);
}
.payment-modal-close {
  position: absolute;
  top: 15px; right: 15px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.payment-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.payment-form-group {
  margin-bottom: 1.25rem;
}
.payment-form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.payment-form-group input {
  width: 100%;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--dark-border);
  color: var(--light);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-family: inherit;
}
.payment-form-row {
  display: flex;
  gap: 1rem;
}
.payment-form-row > div {
  flex: 1;
}
@keyframes typing {

  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.4;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.smartshop-input-container {
  padding: 1rem;
  background: rgba(13, 15, 20, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.smartshop-input-container input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.smartshop-input-container input:focus {
  border-color: var(--primary);
}

.smartshop-input-container input::placeholder {
  color: var(--text-muted);
}

.smartshop-input-container button {
  background: var(--primary);
  color: var(--dark);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.smartshop-input-container button:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.smartshop-suggestions {
  padding: 8px 1rem 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
  background: rgba(13, 15, 20, 0.4);
}

.suggestion-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--dark-border);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  transition: all 0.2s;
}

.suggestion-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(19, 236, 109, 0.08);
}