:root {
  color-scheme: dark;
  font-family: 'Inter', system-ui, sans-serif;
  --bg: #050507;
  --surface: #0d1224;
  --surface-soft: #121a2f;
  --surface-strong: #0a0f1d;
  --border: rgba(255, 255, 255, 0.08);
  --text-primary: #eff2ff;
  --text-secondary: #b9c2e0;
  --accent: #9d6dff;
  --accent-strong: #7c3aed;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #f43f5e;
  --shadow: 0 30px 80px rgba(15, 23, 42, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.store-page {
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(157, 109, 255, 0.12), transparent 28%), var(--bg);
  color: var(--text-primary);
}

.navbar {
  z-index: 1050;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 11, 20, 0.96) !important;
}

.navbar-brand {
  color: var(--accent) !important;
  font-size: 1.25rem;
}

.nav-link {
  color: var(--text-secondary) !important;
}

.nav-link.active,
.nav-link:hover {
  color: #f8fafc !important;
}

.btn-cart {
  min-width: 170px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border: none;
}

.btn-cart:hover {
  opacity: 0.95;
}

.page-hero {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(12, 16, 30, 0.92), rgba(7, 10, 18, 0.96));
}

.hero-title {
  font-size: clamp(2.4rem, 3vw, 4rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--text-secondary);
}

.section-title {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.search-group .form-control,
.search-group .input-group-text {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.search-group .input-group-text {
  border-right: 0;
  color: var(--accent);
}

.search-group .form-control {
  border-left: 0;
}

.search-group .form-control::placeholder {
  color: #8b97b8;
}

.form-select,
.form-control,
.input-group-text,
.list-group-item {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.form-select option,
.form-control option {
  color: var(--text-primary);
}

.category-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(157, 109, 255, 0.24);
}

.category-card .card-body {
  padding: 1.75rem 1.5rem 1.5rem;
}

.category-banner {
  display: grid;
  place-items: center;
  min-height: 170px;
}

.category-symbol {
  font-size: 2.25rem;
  color: rgba(255, 255, 255, 0.95);
}

.category-premium {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.9), rgba(168, 85, 247, 0.85));
}

.category-rentals {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(99, 102, 241, 0.85));
}

.category-services {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(34, 197, 94, 0.85));
}

.category-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.category-card p,
.text-muted {
  color: var(--text-secondary) !important;
}

.btn-access {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-access:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.18);
}

.card.bg-white {
  background: var(--surface) !important;
  color: var(--text-primary) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.store-products .card,
.recent-section .card,
.best-section .card,
.offcanvas-body,
.list-group-item,
.card .form-control,
.card .form-select {
  background: var(--surface) !important;
}

.store-products .card:hover,
.recent-section .card:hover,
.best-section .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-card {
  background: rgba(10, 13, 23, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
}

.product-card .card-body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.product-card .badge {
  font-size: 0.8rem;
  padding: 0.55em 0.85em;
  border-radius: 999px;
}

.product-card .product-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.product-card .product-description {
  min-height: 3rem;
  color: var(--text-secondary);
}

.product-card .product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}

.badge-delivery {
  background: rgba(59, 130, 246, 0.12);
  color: #bfdbfe;
}

.badge-popular {
  background: rgba(244, 63, 94, 0.12);
  color: #fecdd3;
}

.product-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
}

.product-actions .btn {
  min-width: 130px;
}

.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
  border: none !important;
}

.btn-primary:hover {
  opacity: 0.95;
}

.btn-outline-secondary {
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.03);
}

.btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.product-modal-image {
  min-height: 320px;
}

.offcanvas {
  width: 420px;
}

.cart-item {
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 1rem;
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 1rem;
}

.cart-item-title {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.cart-quantity .btn {
  min-width: 38px;
}

.cart-summary {
  font-size: 0.95rem;
}

.list-group-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

table {
  color: var(--text-primary);
}

.table th,
.table td {
  border-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 991.98px) {
  .offcanvas {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .page-hero {
    padding: 1.5rem;
  }

  .product-image {
    height: 200px;
  }
}
