:root {
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --primary-light: #a78bfa;
  --secondary: #f59e0b;
  --bg: #0f0f13;
  --bg-card: #1a1a24;
  --bg-hover: #242433;
  --text: #f1f1f4;
  --text-muted: #a1a1b5;
  --border: #2e2e3e;
  --success: #10b981;
  --danger: #ef4444;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(0,0,0,0.4);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
}

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

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

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-success {
  background: var(--success);
  color: white;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 15, 19, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 10px;
  flex-wrap: nowrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo img {
  height: 34px;
  width: auto;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 11px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.88rem;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--bg-hover);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.header-actions .btn {
  flex-shrink: 0;
}

.header-actions .btn-sm {
  padding: 7px 12px;
  font-size: 0.8rem;
  gap: 5px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition);
  flex-shrink: 0;
}

.icon-btn:hover {
  background: var(--bg-hover);
  color: var(--primary-light);
}

.cart-count {
  position: absolute;
  top: -4px;
  left: -4px;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-card);
  border: none;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Search */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}

.search-overlay.active {
  display: flex;
}

.search-box {
  display: flex;
  width: 90%;
  max-width: 600px;
  background: var(--bg-card);
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 18px 24px;
  color: var(--text);
  font-family: inherit;
  font-size: 1.1rem;
  outline: none;
}

.search-box button {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0 24px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(245, 158, 11, 0.15) 0%, transparent 40%),
    linear-gradient(180deg, var(--bg) 0%, #16161f 100%);
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 60px 20px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* Categories */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.2);
}

.category-card i {
  font-size: 2.5rem;
  color: var(--primary-light);
  margin-bottom: 16px;
}

.category-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Products Grid */
.products-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);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.product-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--bg-hover);
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-card:hover .product-img img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--secondary);
  color: #111;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}

.product-body {
  padding: 18px;
}

.product-cat {
  font-size: 0.8rem;
  color: var(--primary-light);
  margin-bottom: 6px;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-seller {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
}

.product-price small {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

.add-cart-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.add-cart-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.add-cart-btn:disabled {
  background: #4b4b5a;
  cursor: not-allowed;
  opacity: .6;
  transform: none;
}
.add-cart-btn:disabled:hover {
  background: #4b4b5a;
  transform: none;
}

.out-of-stock-badge {
  background: #4b4b5a !important;
  color: #fff !important;
}

.product-card.is-out-of-stock .product-img img {
  opacity: .55;
  filter: grayscale(.4);
}

/* About */
.about {
  background: var(--bg-card);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat {
  text-align: center;
  padding: 24px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-light);
  margin-bottom: 4px;
}

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

/* Contact */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  padding: 16px 28px;
  border-radius: 50px;
  border: 1px solid var(--border);
}

.contact-item i {
  color: var(--primary-light);
  font-size: 1.2rem;
}

/* Footer */
.footer {
  background: #0a0a0e;
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

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

.footer-brand span {
  font-size: 1.3rem;
  font-weight: 800;
}

.footer-brand p {
  color: var(--text-muted);
  margin: 8px 0 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  left: -400px;
  width: 380px;
  max-width: 100%;
  height: 100vh;
  background: var(--bg-card);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-right: 1px solid var(--border);
}

.cart-sidebar.open {
  left: 0;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.cart-header h3 {
  font-size: 1.2rem;
}

.cart-header button {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.cart-item-info .price {
  color: var(--secondary);
  font-weight: 600;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.cart-item-qty button {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2500;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.75);
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.product-modal-img {
  height: 400px;
  background: var(--bg-hover);
}

.product-modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-modal-info {
  padding: 32px;
}

.product-modal-info h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.product-modal-info .price {
  font-size: 1.5rem;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 16px;
}

.product-modal-info .desc {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Forms (shared) */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--primary);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

select.form-control {
  cursor: pointer;
}

/* Login pages */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(124, 58, 237, 0.2) 0%, transparent 50%),
    var(--bg);
  padding: 20px;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}

.login-card h1 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.login-card .subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.login-card .error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  text-align: center;
  display: none;
}

.login-card .error.show {
  display: block;
}

/* Dashboard */
.dashboard {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 0 24px 24px;
  font-weight: 800;
  font-size: 1.2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(124, 58, 237, 0.15);
  color: var(--primary-light);
}

.sidebar-nav a i {
  width: 20px;
  text-align: center;
}

.main-content {
  flex: 1;
  padding: 32px;
  overflow-x: auto;
}

.page-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 28px;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.dash-card h3 {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.dash-card .value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-light);
}

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

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

th, td {
  padding: 14px 18px;
  text-align: right;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

tr:hover td {
  background: rgba(255,255,255,0.02);
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.badge-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.action-btn.edit {
  background: rgba(124, 58, 237, 0.2);
  color: var(--primary-light);
}

.action-btn.delete {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.action-btn:hover {
  transform: scale(1.1);
}

/* Settings form in admin */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.settings-card h3 {
  margin-bottom: 20px;
  font-size: 1.15rem;
}

.settings-card.full {
  grid-column: 1 / -1;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* Responsive header: keep one line */
@media (max-width: 1200px) {
  .header-actions #customerAuthLabel {
    display: none;
  }
  .nav-link {
    padding: 6px 9px;
    font-size: 0.82rem;
  }
  .logo {
    font-size: 0.95rem;
  }
}

@media (max-width: 1000px) {
  .nav {
    display: none;
  }
  .header-actions .btn {
    display: none;
  }
  .header-actions .icon-btn {
    display: flex;
  }
  .mobile-menu-btn {
    display: flex !important;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .nav, .header-actions .btn {
    display: none;
  }
  .mobile-menu-btn {
    display: flex !important;
  }
  .about-inner {
    grid-template-columns: 1fr;
  }
  .product-modal-body {
    grid-template-columns: 1fr;
  }
  .product-modal-img {
    height: 280px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .dashboard {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 400px;
  }
  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .product-img {
    height: 160px;
  }
  .cart-sidebar {
    width: 100%;
    left: -100%;
  }
}

/* ===== PREMIUM UPGRADES ===== */
body {
  background: #09090f;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(236, 72, 153, 0.06), transparent);
}

.header {
  background: rgba(9, 9, 15, 0.75);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo span {
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero {
  min-height: 560px;
}

.hero-bg {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(124, 58, 237, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(236, 72, 153, 0.12) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 100%, rgba(245, 158, 11, 0.08) 0%, transparent 40%),
    linear-gradient(180deg, #09090f 0%, #0f0f18 100%);
}

.hero-content h1 {
  background: linear-gradient(135deg, #ffffff 0%, #e9d5ff 40%, #c4b5fd 70%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 50%, var(--primary-dark) 100%);
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.45), inset 0 1px 0 rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.category-card {
  background: linear-gradient(145deg, #14141e 0%, #1a1a28 100%);
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.category-card:hover::before { opacity: 1; }

.category-card i {
  background: linear-gradient(135deg, #a78bfa, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-card {
  background: linear-gradient(160deg, #14141e 0%, #1a1a26 100%);
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.product-card:hover {
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35), 0 0 40px rgba(124, 58, 237, 0.12);
}

.product-img {
  background: linear-gradient(135deg, #1a1a28, #12121a);
}

.product-badge {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.section-header h2 {
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 20%;
  left: 20%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
  border-radius: 2px;
}

.stat {
  background: linear-gradient(145deg, #12121a, #1a1a28);
  border: 1px solid rgba(255,255,255,0.05);
}

.stat-num {
  background: linear-gradient(135deg, #c4b5fd, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-item {
  background: linear-gradient(145deg, #14141e, #1a1a28);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s;
}

.contact-item:hover {
  border-color: rgba(167, 139, 250, 0.4);
  transform: translateY(-3px);
}

.footer {
  background: #06060a;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.cart-sidebar {
  background: linear-gradient(180deg, #14141e, #0f0f16);
  border-right: 1px solid rgba(255,255,255,0.06);
}

.add-cart-btn {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.35);
}

/* Glass morphism cards */
.glass {
  background: rgba(26, 26, 36, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Stagger animation for products */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-card {
  animation: fadeUp 0.5s ease both;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }

.category-card {
  animation: fadeUp 0.4s ease both;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a10; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  border-radius: 4px;
}

/* Selection */
::selection {
  background: rgba(124, 58, 237, 0.4);
  color: white;
}

/* ===== Mobile Nav ===== */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 88vw);
  height: 100vh;
  background: #12121c;
  border-left: 1px solid var(--border);
  z-index: 3000;
  transition: right .3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0,0,0,.5);
}
.mobile-nav.open { right: 0; }
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 1.1rem;
}
.mobile-nav-header button {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 6px;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  overflow-y: auto;
}
.mobile-nav-links a {
  padding: 14px 24px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .2s, color .2s;
}
.mobile-nav-links a:hover {
  background: rgba(124,58,237,.12);
  color: #c4b5fd;
}
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 2990;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s;
}
.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===== Hero animated orbs ===== */
.hero-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .45;
  animation: orbFloat 12s ease-in-out infinite;
}
.orb1 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
  top: -10%; left: 10%;
  animation-delay: 0s;
}
.orb2 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
  bottom: 5%; right: 15%;
  animation-delay: -4s;
  animation-duration: 15s;
}
.orb3 {
  width: 220px; height: 220px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  top: 40%; left: 50%;
  animation-delay: -7s;
  animation-duration: 18s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 20px) scale(.95); }
}

/* ===== Product Reviews ===== */
.reviews-section {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.reviews-section h3 {
  font-size: 1.05rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.review-item {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.review-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.review-author { font-weight: 600; font-size: .9rem; }
.review-stars { color: #fbbf24; font-size: .85rem; letter-spacing: 1px; }
.review-date { font-size: .75rem; color: var(--text-muted); }
.review-text { font-size: .9rem; line-height: 1.7; color: #ccc; }
.review-reply {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(16,185,129,.08);
  border-radius: 8px;
  border: 1px solid rgba(16,185,129,.2);
  font-size: .85rem;
}
.review-form {
  margin-top: 16px;
  padding: 14px;
  background: rgba(124,58,237,.06);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: 12px;
}
.review-form .stars-select {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
  direction: ltr;
  justify-content: flex-end;
}
.review-form .stars-select button {
  background: none;
  border: none;
  color: #4b5563;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 2px;
  transition: color .15s, transform .15s;
}
.review-form .stars-select button.active,
.review-form .stars-select button:hover { color: #fbbf24; transform: scale(1.15); }
.avg-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fbbf24;
  font-size: .95rem;
  margin-bottom: 8px;
}

/* Product modal scroll for reviews */
.product-modal {
  max-height: 90vh;
  overflow-y: auto;
}
.product-modal-body {
  max-height: none;
}

/* Auth modal tabs */
#authModal .tab-btn {
  flex: 1; padding: 10px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text-muted); font-family: inherit; font-weight: 600;
  cursor: pointer;
}
#authModal .tab-btn.active {
  background: rgba(124,58,237,0.2); border-color: #7c3aed; color: #c4b5fd;
}



/* Shipping options in checkout */
.shipping-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.shipping-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  background: rgba(255,255,255,.02);
  transition: border-color .2s, background .2s;
}
.shipping-option:has(input:checked) {
  border-color: #7c3aed;
  background: rgba(124,58,237,.1);
}
.shipping-option input {
  margin-top: 4px;
  accent-color: #7c3aed;
}
.shipping-option-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: .9rem;
}
.shipping-option-body strong {
  color: var(--text);
}
.shipping-option-body span {
  color: var(--text-muted);
  font-size: .85rem;
}
