:root {
  --primary: #685BCB;
  --primary-light: #BCA6DB;
  --background-soft: #D3CEEA;
  --accent: #fff500;
  --white: #FFFFFF;
}

.theme-body {
  background: var(--background-soft);
}

.theme-top-nav {
  background: var(--primary);
  color: var(--white);
  border-color: color-mix(in srgb, var(--white) 25%, var(--primary));
}

.theme-top-nav a,
.theme-top-nav button,
.theme-top-nav svg,
.theme-top-nav span,
.theme-top-nav input {
  color: var(--white);
}

.theme-top-nav a.theme-accent-btn {
  color: #000;
}

.theme-top-nav a.theme-accent-btn:hover {
  color: #000;
}

.theme-top-nav input {
  background: color-mix(in srgb, var(--white) 20%, transparent);
}

.theme-top-nav input::placeholder {
  color: color-mix(in srgb, var(--white) 80%, transparent);
}

.theme-top-nav .theme-nav-hover:hover {
  background: color-mix(in srgb, var(--primary-light) 45%, transparent);
}

.theme-card {
  background: var(--white);
  border-radius: 0.75rem;
  box-shadow: 0 6px 18px rgba(43, 33, 87, 0.08);
}

.theme-primary-btn {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(43, 33, 87, 0.18);
  transition: background-color 0.2s ease, filter 0.2s ease, color 0.2s ease;
}

.theme-primary-btn:hover {
  background: #5a4dc0;
  color: var(--white);
}

.theme-primary-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.theme-accent-btn {
  background: var(--accent);
  color: #000;
  transition: filter 0.2s ease;
}

.theme-accent-btn:hover {
  filter: brightness(0.92);
}

.theme-secondary-btn {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--primary);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(43, 33, 87, 0.1);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.theme-secondary-btn:hover {
  background: var(--primary-light);
  color: var(--white);
}

.theme-danger-btn {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.theme-danger-btn:hover {
  background: #ffe4e6;
  border-color: #fda4af;
  color: #9f1239;
}

.cart-product-media {
  width: 78px;
  height: 78px;
  border-radius: 0.75rem;
  overflow: hidden;
  background: color-mix(in srgb, var(--primary-light) 24%, white);
  border: 1px solid color-mix(in srgb, var(--primary-light) 60%, white);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.theme-filter-sidebar {
  background: var(--primary-light);
}

.theme-filter-sidebar a,
.theme-filter-sidebar .bg-primary-light\/35 {
  transition: all 0.2s ease;
}

.theme-filter-sidebar a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #000000;
  text-decoration: none;
}

.theme-filter-sidebar a:hover {
  background-color: color-mix(in srgb, var(--primary-light) 72%, var(--white));
  color: #000000;
  transition: all 0.2s ease;
}

.theme-filter-sidebar .bg-primary-light\/35 {
  background-color: color-mix(in srgb, var(--primary) 70%, var(--primary-light)) !important;
  color: var(--white) !important;
  border-radius: 8px;
  padding: 10px 12px;
  display: block;
  font-weight: 600;
}

.theme-auth-shell {
  background: linear-gradient(140deg, var(--primary), var(--primary-light));
}

.theme-auth-card {
  background: var(--white);
  border-radius: 0.9rem;
  box-shadow: 0 12px 30px rgba(43, 33, 87, 0.22);
}

/* Global Loader Overlay */
.global-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: not-allowed;
  z-index: 9999;
}

/* Hidden utility */
.hidden {
  display: none;
}

/* Spinner */
.loader-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #e5e7eb;
  border-top: 5px solid #685BCB;
  border-right: 5px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Button Spinner */
.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid white;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
