:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --border-primary: #e2e8f0;
  --brand-primary: #007aff;
  /* Dashboard stat card tints (soft, subtle) */
  --stat-projects: #e8f4fd;
  --stat-products: #f0fdf4;
  --stat-variants: #fefce8;
  --stat-orders: #fce7f6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0f172a;
    --bg-secondary: #020617;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --border-primary: #334155;
    --brand-primary: #3b82f6;
    --stat-projects: #1e3a5f;
    --stat-products: #1a3d2e;
    --stat-variants: #3d3a1a;
    --stat-orders: #3d1f35;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Full-width header bar; inner content constrained like main-container (see .main-header-inner) */
.main-header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-primary);
  padding: 1rem 0;
}

.main-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1rem;
}

.main-header h1 {
  margin: 0;
  font-size: 1.4rem;
}

.main-header-title-link {
  color: inherit;
  text-decoration: none;
}

.main-header-title-link:hover {
  text-decoration: underline;
}

.main-header p,
.main-header .breadcrumb {
  margin: 0.2rem 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

.breadcrumb .breadcrumb-sep {
  margin: 0 0.35em;
  color: var(--text-secondary);
  user-select: none;
  font-size: 0.75em;
  vertical-align: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
  background: var(--bg-primary);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
}

.nav-links a.active {
  background: var(--brand-primary);
  color: #fff;
  border-color: transparent;
}

.nav-links a .nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  margin-left: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: #dc2626;
  border-radius: 999px;
  vertical-align: middle;
}

.nav-links a.active .nav-badge {
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-primary);
}

/* Header nav wrap for mobile dropdown */
.nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Mobile: toggle button (hidden on desktop) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  border-radius: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover {
  background: var(--bg-secondary);
}

.nav-toggle[aria-expanded="true"] {
  background: var(--bg-secondary);
  border-color: var(--text-secondary);
}

.nav-toggle i {
  font-size: 1rem;
}

.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.2s, opacity 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: #2563EB;
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: #1d4ed8;
}

@media (prefers-color-scheme: dark) {
  .btn-primary {
    background: #3b82f6;
  }
  .btn-primary:hover {
    background: #2563eb;
  }
}

.btn-primary:active {
  opacity: 0.9;
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
}

.btn-secondary:hover {
  background: var(--border-primary);
}

.btn-danger {
  background: #dc2626;
  color: #fff;
  border: none;
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
}

.btn-ghost:hover {
  color: var(--brand-primary);
  background: var(--bg-secondary);
}

@media (prefers-color-scheme: dark) {
  .btn-danger {
    background: #dc2626;
  }
  .btn-danger:hover {
    background: #ef4444;
  }
}

.btn-icon {
  min-width: 2rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}
.btn-icon i {
  font-size: 0.875rem;
}

.main-container {
  max-width: 1160px;
  margin: 1.25rem auto;
  padding: 0 1rem 1rem;
}

body.in-iframe {
  background: var(--bg-primary);
}
body.in-iframe .main-container {
  margin-top: 0.5rem;
}

/* In modal: one panel, no nested card */
body.in-iframe .main-container .card {
  border: none;
  border-radius: 0;
  background: transparent;
  margin-bottom: 0;
  padding: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.card {
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 0.9rem;
}

/* Settings accordion (same pattern as Forms/Members) */
.settings-accordion-list {
  border-top: 1px solid var(--border-primary);
  margin-top: 0.5rem;
}
.settings-accordion-item {
  border-bottom: 1px solid var(--border-primary);
  padding: 0.8rem 0;
}
.settings-accordion-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.85rem 0;
}
.settings-accordion-trigger:hover {
  color: var(--text-primary);
}
.settings-accordion-trigger i {
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.settings-accordion-trigger > i {
  transition: transform 0.2s ease;
}
.settings-accordion-item.is-open .settings-accordion-trigger > i {
  transform: rotate(180deg);
}
.settings-accordion-panel {
  margin-top: 0.85rem;
}
.settings-accordion-panel[hidden] {
  display: none !important;
}
.settings-accordion-content {
  border: 1px solid var(--border-primary);
  border-radius: 0.5rem;
  padding: 1rem;
  background: var(--bg-secondary);
}
.settings-accordion-content .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}
.settings-accordion-content .full-width {
  grid-column: 1 / -1;
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.card-header-row h3 {
  margin: 0;
}

.stat-card {
  position: relative;
}

.stat-card-icon {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  opacity: 0.85;
}

.stat-card--projects {
  background: var(--stat-projects);
  border-color: rgba(0, 122, 255, 0.2);
}

.stat-card--products {
  background: var(--stat-products);
  border-color: rgba(34, 197, 94, 0.2);
}

.stat-card--variants {
  background: var(--stat-variants);
  border-color: rgba(202, 138, 4, 0.2);
}

.stat-card--orders {
  background: var(--stat-orders);
  border-color: rgba(219, 39, 119, 0.2);
}

.stat-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card--link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-card--link:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.stat-card h2 {
  margin: 0.25rem 0 0;
}

.stat-card p {
  margin: 0;
  color: var(--text-secondary);
}

/* Stats grid: op mobiel 2×2, compacte tegels (vier tegels ≈ hoogte van één tegel) */
@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.9rem;
  }

  .stats-grid .stat-card {
    padding: 0.5rem 0.6rem;
  }

  .stats-grid .stat-card-icon {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
  }

  .stats-grid .stat-card p {
    font-size: 0.75rem;
    line-height: 1.2;
  }

  .stats-grid .stat-card h2 {
    font-size: 1.1rem;
    margin-top: 0.15rem;
  }
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Project tiles (dashboard) */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.project-tile {
  position: relative;
  border: 1px solid var(--border-primary);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--bg-secondary);
  min-height: 140px;
}

.project-tile-link {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Let clicks pass through from media/body so the link receives them */
}
.project-tile-media,
.project-tile-body {
  pointer-events: none;
}
.project-tile-link {
  pointer-events: auto;
}

.project-tile-link:hover ~ .project-tile-body .project-tile-title,
.project-tile:hover .project-tile-title {
  color: var(--brand-primary);
}

.project-tile-media {
  padding: 1rem 1rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80px;
  position: relative;
  z-index: 0;
}

.project-tile-logo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.project-tile-logo-placeholder {
  background: var(--border-primary);
  border: 2px dashed var(--text-secondary);
  opacity: 0.5;
}

.project-tile-body {
  padding: 0.5rem 1rem 1rem;
  position: relative;
  z-index: 0;
  text-align: center;
}

.project-tile-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.15s ease;
}

.project-tile-settings {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 1;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--bg-primary);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.project-tile-settings:hover {
  color: var(--brand-primary);
  background: var(--bg-secondary);
}

/* Product tiles (products list – same style as project tiles) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.product-tile {
  position: relative;
  border: 1px solid var(--border-primary);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--bg-secondary);
  min-height: 140px;
}

.product-tile-link {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.product-tile-media,
.product-tile-body {
  pointer-events: none;
}

.product-tile-link {
  pointer-events: auto;
}

.product-tile-link:hover ~ .product-tile-body .product-tile-title,
.product-tile:hover .product-tile-title {
  color: var(--brand-primary);
}

.product-tile-media {
  padding: 1rem 1rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80px;
  position: relative;
  z-index: 0;
}

.product-tile-image {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 0.5rem;
  display: block;
}

.product-tile-image-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 0.5rem;
  background: var(--border-primary);
  border: 2px dashed var(--text-secondary);
  opacity: 0.5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-secondary);
}

.product-tile-body {
  padding: 0.5rem 1rem 1rem;
  position: relative;
  z-index: 0;
  text-align: center;
}

.product-tile-body .status-badge {
  display: inline-block;
  margin-top: 0.25rem;
}

.product-tile-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.15s ease;
}

.product-tile-actions {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 1;
  display: flex;
  gap: 0.25rem;
}

.product-tile-action-btn {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--bg-primary);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.product-tile-action-btn:hover {
  color: var(--brand-primary);
  background: var(--bg-secondary);
}

.product-tile-action-btn.btn-delete-product:hover {
  color: #dc2626;
}

.table-wrap {
  overflow-x: auto;
}

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

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--border-primary);
  padding: 0.6rem 0.4rem;
  font-size: 0.92rem;
}

th {
  color: var(--text-secondary);
  font-weight: 600;
}

.color-dot {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  vertical-align: middle;
  margin-right: 0.35rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.form-grid > .settings-accordion-list {
  grid-column: 1 / -1;
}

.form-grid > .form-actions {
  grid-column: 1 / -1;
  align-self: start;
}

.full-width {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border-primary);
  border-radius: 0.5rem;
  padding: 0.55rem 0.6rem;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.btn-sm {
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
}

.btn-sm + .btn-sm,
.btn-sm + a.btn-sm {
  margin-left: 0.35rem;
}

.status-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-coming_soon {
  background: #fef3c7;
  color: #92400e;
}

.status-available {
  background: #d1fae5;
  color: #065f46;
}

.status-sold_out {
  background: #fee2e2;
  color: #991b1b;
}

@media (prefers-color-scheme: dark) {
  .status-coming_soon {
    background: #451a03;
    color: #fcd34d;
  }
  .status-available {
    background: #064e3b;
    color: #6ee7b7;
  }
  .status-sold_out {
    background: #7f1d1d;
    color: #fca5a5;
  }
}

.status-paid {
  background: #d1fae5;
  color: #065f46;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-failed,
.status-canceled,
.status-expired {
  background: #fee2e2;
  color: #991b1b;
}

@media (prefers-color-scheme: dark) {
  .status-paid {
    background: #064e3b;
    color: #6ee7b7;
  }
  .status-pending {
    background: #451a03;
    color: #fcd34d;
  }
.status-failed,
.status-canceled,
.status-expired {
  background: #7f1d1d;
  color: #fca5a5;
  }
}

/* Fulfillment / order status badges */
.status-unfulfilled {
  background: #fef3c7;
  color: #92400e;
}

.status-ready_for_shipment {
  background: #e9d5ff;
  color: #6b21a8;
}

.status-packed {
  background: #bfdbfe;
  color: #1e40af;
}

.status-shipped {
  background: #d1fae5;
  color: #065f46;
}

@media (prefers-color-scheme: dark) {
  .status-refund-refunded {
    background: #064e3b;
    color: #6ee7b7;
  }
  .status-refund-pending,
  .status-refund-processing,
  .status-refund-queued {
    background: #451a03;
    color: #fcd34d;
  }
  .status-refund-failed,
  .status-refund-canceled {
    background: #7f1d1d;
    color: #fca5a5;
  }
}

@media (prefers-color-scheme: dark) {
  .status-unfulfilled {
    background: #451a03;
    color: #fcd34d;
  }
  .status-ready_for_shipment {
    background: #581c87;
    color: #e9d5ff;
  }
  .status-packed {
    background: #1e3a8a;
    color: #93c5fd;
  }
  .status-shipped {
    background: #064e3b;
    color: #6ee7b7;
  }
}

/* Fulfillment dropdown: options and trigger show status as colored pills/tags only */
#order-support-section .custom-dropdown[data-dropdown-type="fulfillment"] .custom-dropdown-trigger-pill,
#order-support-section .custom-dropdown[data-dropdown-type="fulfillment"] .custom-dropdown-option-pill {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
}
#order-support-section .custom-dropdown[data-dropdown-type="fulfillment"] .custom-dropdown-trigger-pill[data-value="unfulfilled"],
#order-support-section .custom-dropdown[data-dropdown-type="fulfillment"] .custom-dropdown-option-pill[data-value="unfulfilled"] {
  background: #fef3c7;
  color: #92400e;
}
#order-support-section .custom-dropdown[data-dropdown-type="fulfillment"] .custom-dropdown-trigger-pill[data-value="ready_for_shipment"],
#order-support-section .custom-dropdown[data-dropdown-type="fulfillment"] .custom-dropdown-option-pill[data-value="ready_for_shipment"] {
  background: #e9d5ff;
  color: #6b21a8;
}
#order-support-section .custom-dropdown[data-dropdown-type="fulfillment"] .custom-dropdown-trigger-pill[data-value="packed"],
#order-support-section .custom-dropdown[data-dropdown-type="fulfillment"] .custom-dropdown-option-pill[data-value="packed"] {
  background: #bfdbfe;
  color: #1e40af;
}
#order-support-section .custom-dropdown[data-dropdown-type="fulfillment"] .custom-dropdown-trigger-pill[data-value="shipped"],
#order-support-section .custom-dropdown[data-dropdown-type="fulfillment"] .custom-dropdown-option-pill[data-value="shipped"] {
  background: #d1fae5;
  color: #065f46;
}
@media (prefers-color-scheme: dark) {
  #order-support-section .custom-dropdown[data-dropdown-type="fulfillment"] .custom-dropdown-trigger-pill[data-value="unfulfilled"],
  #order-support-section .custom-dropdown[data-dropdown-type="fulfillment"] .custom-dropdown-option-pill[data-value="unfulfilled"] {
    background: #451a03;
    color: #fcd34d;
  }
  #order-support-section .custom-dropdown[data-dropdown-type="fulfillment"] .custom-dropdown-trigger-pill[data-value="ready_for_shipment"],
  #order-support-section .custom-dropdown[data-dropdown-type="fulfillment"] .custom-dropdown-option-pill[data-value="ready_for_shipment"] {
    background: #581c87;
    color: #e9d5ff;
  }
  #order-support-section .custom-dropdown[data-dropdown-type="fulfillment"] .custom-dropdown-trigger-pill[data-value="packed"],
  #order-support-section .custom-dropdown[data-dropdown-type="fulfillment"] .custom-dropdown-option-pill[data-value="packed"] {
    background: #1e3a8a;
    color: #93c5fd;
  }
  #order-support-section .custom-dropdown[data-dropdown-type="fulfillment"] .custom-dropdown-trigger-pill[data-value="shipped"],
  #order-support-section .custom-dropdown[data-dropdown-type="fulfillment"] .custom-dropdown-option-pill[data-value="shipped"] {
    background: #064e3b;
    color: #6ee7b7;
  }
}

.alert {
  border-radius: 0.5rem;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.8rem;
}

.alert-error {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.login-page,
.status-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.login-wrap {
  width: 100%;
  max-width: 420px;
  padding: 1rem;
}

.heading h1 {
  margin: 0;
}

.heading p {
  margin-top: 0.2rem;
  color: var(--text-secondary);
}

.form-stack {
  display: grid;
  gap: 0.6rem;
}

.status-card {
  max-width: 560px;
}

.form-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.form-section-head label,
.card h3,
.settings-accordion-trigger span {
  font-weight: 700;
}
.form-hint-small {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.stack-list {
  display: grid;
  gap: 0.6rem;
}

.item-row {
  border: 1px solid var(--border-primary);
  border-radius: 0.6rem;
  padding: 0.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.55rem;
  background: var(--bg-secondary);
}

.row-actions {
  display: flex;
  align-items: end;
}

.variant-color-cell .variant-color-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.variant-color-cell .variant-color-picker {
  width: 2rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid var(--border-primary);
  border-radius: 0.35rem;
  cursor: pointer;
  background: transparent;
}
.variant-color-cell .variant-color-picker::-webkit-color-swatch-wrapper { padding: 0; }
.variant-color-cell .variant-color-picker::-webkit-color-swatch { border: none; border-radius: 0.25rem; }
.variant-color-cell input[data-v="color"] {
  flex: 1;
  min-width: 0;
}

/* Toggle (same style as forms app) */
.toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0;
  border-radius: 0.25rem;
}
.toggle-item:hover {
  background: transparent;
}
.toggle-item > label {
  margin: 0;
  font-weight: 500;
  color: var(--text-primary, #111827);
  cursor: pointer;
}
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 25px;
  flex-shrink: 0;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.switch .knob {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 25px;
  transition: all 0.15s;
}
.switch .knob:before {
  content: "";
  position: absolute;
  left: 2.5px;
  top: 2.5px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s;
}
.switch input:checked + .knob {
  background: #2563eb !important;
}
.switch input:checked + .knob:before {
  transform: translateX(19px);
}
.variant-vat-toggle-wrap {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}
.variant-vat-toggle-wrap + .form-hint-small {
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s, visibility 0.2s;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.modal-content {
  position: relative;
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: 0.75rem;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
}

.modal-content-wide {
  max-width: 720px;
}

.modal-content-tall {
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.modal-body-iframe {
  flex: 1;
  min-height: 0;
  padding: 0;
}

.modal-body-iframe iframe {
  width: 100%;
  height: 70vh;
  min-height: 400px;
  border: 0;
  display: block;
}

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

.modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0 0.25rem;
}

.modal-close-floating {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
}
.modal-close-floating:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 1.25rem;
}

.embed-label {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.embed-label code {
  font-size: 0.85em;
  background: var(--bg-secondary);
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
}

.code-block-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.code-block {
  display: block;
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 0.5rem;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  overflow-x: auto;
  white-space: pre;
}

.code-block-wrap .btn-copy {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.filter-bar-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 500;
}

.filter-search {
  min-width: 180px;
  flex: 1;
  max-width: 280px;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border-primary);
  border-radius: 6px;
  font-size: 0.9rem;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.filter-search:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

.filter-number {
  width: 6rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border-primary);
  border-radius: 6px;
  font-size: 0.9rem;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.filter-bar-extra {
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-primary);
}

.filter-bar-extra-inner {
  display: none;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.5rem;
}

.filter-status {
  min-width: 140px;
}

/* Orders: title and search on same row, search right-aligned */
.orders-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.orders-card-header h3 {
  margin: 0;
}
.orders-search-wrap {
  flex-shrink: 0;
}
.orders-search-wrap .filter-search {
  min-width: 200px;
  max-width: 280px;
}
.orders-filter-bar {
  margin-bottom: 1rem;
}

/* Dropdown: panel at least as wide as longest option text */
.custom-dropdown .custom-dropdown-panel {
  min-width: max-content;
  width: max-content;
}
.orders-filter-bar .custom-dropdown .custom-dropdown-trigger {
  min-width: 180px;
}

.form-feedback {
  margin-left: 0.5rem;
  font-size: 0.9rem;
}

.mollie-mode-badge {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.mollie-mode-test { background: #fef3c7; color: #b45309; }
.mollie-mode-live { background: #d1fae5; color: #047857; }
.mollie-mode-none { background: var(--bg-secondary); color: var(--text-secondary); }

.form-hint {
  display: block;
  margin: 0.25rem 0 0.5rem;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.form-group {
  margin: 0.75rem 0;
}
.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
}
.form-group input[type="number"] {
  width: 100%;
  max-width: 12rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-primary);
  border-radius: 0.375rem;
  font-size: 0.9rem;
}
.refund-modal .form-group .form-feedback {
  color: #dc2626;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* Confirm/refund modal overlay – always in CSS so refund modal shows as overlay without needing showConfirm() first */
.st-confirm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.st-confirm-backdrop[hidden] {
  display: none !important;
}
.st-confirm-modal {
  background: var(--bg-primary, #ffffff);
  color: var(--text-primary, #111827);
  min-width: 280px;
  max-width: min(92vw, 420px);
  border-radius: 0.5rem;
  border: 1px solid var(--border-primary, #e5e7eb);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  font-size: 0.875rem;
}
.st-confirm-header {
  padding: 1rem 1.25rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-primary, #e5e7eb);
}
.st-confirm-body {
  padding: 1rem 1.25rem;
}
.st-confirm-actions {
  padding: 0.75rem 1.25rem;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  border-top: 1px solid var(--border-primary, #e5e7eb);
}
.st-confirm-btn {
  border: none;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.875rem;
}
.st-confirm-btn-secondary {
  background: var(--bg-secondary, #f3f4f6);
  color: var(--text-primary, #111827);
}
.st-confirm-btn-primary {
  background: var(--brand-primary, #007aff);
  color: #fff;
}
.st-confirm-btn-danger {
  background: #dc2626;
  color: #fff;
}
.st-confirm-btn:hover {
  opacity: 0.9;
}

/* Refund status badges */
.status-refund-refunded {
  background: #d1fae5;
  color: #065f46;
}
.status-refund-pending,
.status-refund-processing,
.status-refund-queued {
  background: #fef3c7;
  color: #92400e;
}
.status-refund-failed,
.status-refund-canceled {
  background: #fee2e2;
  color: #991b1b;
}

/* Project logo avatar (click to upload) */
.project-logo-upload-wrap {
  margin-bottom: 1rem;
}
.project-logo-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px dashed var(--border-primary);
  background: var(--bg-secondary);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
}
.project-logo-avatar:hover {
  border-color: var(--brand-primary);
  background: var(--bg-primary);
}
.project-logo-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-logo-avatar .fa-image {
  font-size: 1.5rem;
  color: var(--text-secondary);
  opacity: 0.6;
}

/* Upload progress toast */
.upload-progress-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 200px;
}
.upload-progress-toast .progress-bar-wrap {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
}
.upload-progress-toast .progress-bar {
  height: 100%;
  background: currentColor;
  transition: width 0.15s ease;
}

.allowlist-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.allowlist-input-wrap {
  flex: 1;
  min-width: 0;
}

.accent-text {
  margin-top: 0.25rem;
  max-width: 8rem;
}

.key-value-list {
  margin: 0;
  display: grid;
  gap: 0.25rem 1rem;
  grid-template-columns: auto 1fr;
}

.key-value-list dt {
  margin: 0;
  color: var(--text-secondary);
  font-weight: 500;
}

.key-value-list dd {
  margin: 0;
}

.order-item-custom td {
  padding-top: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.product-images-general-wrap {
  margin: 0.5rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
}

.product-image-add-slot {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.product-image-add-slot:hover {
  border-color: var(--text-secondary);
  background: var(--bg-primary);
}
.product-image-add-slot .product-image-file-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}
.product-image-add-slot-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.product-image-add-slot-label i {
  font-size: 1.25rem;
}

.product-images-placeholder {
  min-height: 100px;
  border: 2px dashed var(--border-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 1rem;
  flex: 1;
  min-width: 120px;
}

.product-images-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.5rem 0 1rem;
}

.product-image-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.product-image-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

.product-image-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 0 0.25rem;
}

.product-image-item {
  position: relative;
}

.product-image-item-video-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  background: var(--bg-secondary);
  display: block;
  cursor: pointer;
  overflow: hidden;
  border-radius: 6px;
}

.product-image-item-video-thumb img.product-image-item-video-poster,
.product-image-item-video-thumb video {
  width: 80px;
  height: 80px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 6px;
}

.product-image-item-video-thumb video {
  position: absolute;
  left: 0;
  top: 0;
}

/* When no poster: visible placeholder so thumbnail is never empty (e.g. on mobile where video may not paint) */
.product-image-item-video-placeholder {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, #2a2a2a 100%);
  border-radius: inherit;
}
.product-image-item-video-thumb .product-image-item-video-preview-no-poster {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
}
.product-image-item-video-thumb .product-image-item-video-placeholder {
  z-index: 1;
}

.product-image-item-video-play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.5rem;
  pointer-events: none;
  z-index: 2;
}

/* Floating video popover (product details): no modal chrome, just video with rounded corners */
.product-video-popover-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: transparent;
  display: none;
}
.product-video-popover-backdrop.is-visible {
  display: block;
}
.product-video-popover {
  position: fixed;
  z-index: 9999;
  max-width: 350px;
  max-height: 350px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  background: #000;
  display: none;
}
.product-video-popover.is-visible {
  display: block;
}
.product-video-popover video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  vertical-align: top;
}
.product-video-popover-toggle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 1;
  transition: background 0.15s ease;
}
.product-video-popover-toggle:hover {
  background: rgba(0, 0, 0, 0.85);
}
@media (max-width: 767px) {
  .product-video-popover {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .product-image-item-video-thumb,
  .product-image-item-video-thumb img.product-image-item-video-poster,
  .product-image-item-video-thumb video {
    min-width: 48px;
    min-height: 48px;
  }
  .product-images-list .product-image-item,
  .product-images-inline .product-image-item {
    flex-shrink: 0;
  }
}

.variant-photos .product-image-item-video-thumb,
.variant-photos .product-image-item-video-thumb img.product-image-item-video-poster,
.variant-photos .product-image-item-video-thumb video {
  width: 40px;
  height: 40px;
  border-radius: 4px;
}

.product-images-inline .product-image-item-video-thumb,
.product-images-inline .product-image-item-video-thumb img.product-image-item-video-poster,
.product-images-inline .product-image-item-video-thumb video {
  width: 48px;
  height: 48px;
  border-radius: 5px;
}

.product-image-item .product-image-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.product-image-item .btn-remove-image,
.product-image-item .btn-move-image {
  margin: 0;
  padding: 0.35rem;
  min-width: auto;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
}

.product-image-item .btn-remove-image:hover {
  color: #dc2626;
}

.product-image-item .btn-remove-image.btn-danger {
  background: #dc2626;
  color: #fff;
}
.product-image-item .btn-remove-image.btn-danger:hover {
  background: #b91c1c;
  color: #fff;
}

.product-image-item .btn-move-image:hover {
  color: var(--text-primary);
}

.product-image-item .btn-move-image:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Alleen fotokaarten zijn draggable; voorkom dat andere elementen een ghost tonen */
.product-image-item {
  -webkit-user-drag: element;
  user-drag: element;
}

.product-image-item.product-image-dragging {
  opacity: 0.35;
  pointer-events: none;
  transition: none;
}

/* Custom drag ghost (kloon) – alleen deze wordt als ghost getoond */
.product-image-drag-ghost {
  position: fixed;
  left: -9999px;
  top: 0;
  z-index: 10000;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  opacity: 0.95;
}

/* Dropzone-placeholder: stippellijn waar de kaart terechtkomt */
.product-image-drop-placeholder {
  flex-shrink: 0;
  min-width: 70px;
  min-height: 50px;
  border: 2px dashed var(--border-primary);
  border-radius: 8px;
  background: transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.product-images-inline .product-image-drop-placeholder {
  min-width: 90px;
  min-height: 58px;
}

.variant-photos .product-image-drop-placeholder {
  min-width: 72px;
  min-height: 44px;
}

.product-image-upload {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.product-image-upload .product-image-file-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.variant-photos-cell {
  min-width: 0;
}

.variant-photos-cell label {
  display: block;
  margin-bottom: 0.25rem;
}

.variant-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.variant-photos .product-image-item {
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem;
}

.variant-photos .product-image-item img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
}

.variant-photos .btn-remove-image,
.variant-photos .btn-move-image {
  margin: 0;
  padding: 0.25rem;
}
.variant-photos .btn-remove-image.btn-danger {
  background: #dc2626;
  color: #fff;
}
.variant-photos .btn-remove-image.btn-danger:hover {
  background: #b91c1c;
  color: #fff;
}

.variant-photos-cell .variant-photo-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.product-images-inline .product-image-item {
  flex-direction: row;
  align-items: center;
}

.product-images-inline .product-image-item img {
  width: 48px;
  height: 48px;
  border-radius: 5px;
}

/* General product photos: horizontal row on desktop, vertical stack on mobile */
@media (min-width: 768px) {
  .product-images-general-wrap .product-images-inline {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0;
    flex: 0 0 auto;
  }
  .product-images-general-wrap .product-images-inline .product-image-item {
    flex-shrink: 0;
  }
  /* Chevrons: show as left/right on desktop for horizontal layout */
  .product-images-general-wrap .product-images-inline .btn-move-image[data-dir="up"] i::before {
    content: "\f053"; /* fa-chevron-left */
  }
  .product-images-general-wrap .product-images-inline .btn-move-image[data-dir="down"] i::before {
    content: "\f054"; /* fa-chevron-right */
  }
}

@media (max-width: 767px) {
  .product-images-general-wrap .product-images-inline {
    flex-direction: column;
    flex-wrap: wrap;
  }
}

.product-image-upload select {
  min-width: 160px;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border-primary);
  border-radius: 6px;
}

/* Number inputs without spinner arrows (price, stock) */
input[data-v="price_eur"],
input[data-v="stock"] {
  -moz-appearance: textfield;
}
input[data-v="price_eur"]::-webkit-outer-spin-button,
input[data-v="price_eur"]::-webkit-inner-spin-button,
input[data-v="stock"]::-webkit-outer-spin-button,
input[data-v="stock"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Custom dropdown (replaces native select) */
.custom-dropdown {
  position: relative;
  min-width: 0;
}
.custom-dropdown .custom-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 2.25rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  gap: 0.5rem;
}
.custom-dropdown .custom-dropdown-trigger:hover {
  border-color: var(--text-secondary);
}
.custom-dropdown .custom-dropdown-trigger:focus {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}
.custom-dropdown .custom-dropdown-trigger::after {
  content: "";
  flex-shrink: 0;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: auto;
  opacity: 0.7;
}
.custom-dropdown.is-open .custom-dropdown-trigger::after {
  transform: rotate(-135deg);
}
.custom-dropdown .custom-dropdown-panel {
  position: absolute;
  z-index: 50;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 2px;
  max-height: 12rem;
  overflow-y: auto;
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.custom-dropdown .custom-dropdown-option {
  display: block;
  width: 100%;
  padding: 0.5rem 0.6rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.custom-dropdown .custom-dropdown-option:hover {
  background: var(--bg-secondary);
}
.custom-dropdown .custom-dropdown-option[aria-selected="true"] {
  background: var(--bg-secondary);
  font-weight: 500;
}

/* ----- Mobile header dropdown (like CMS app) ----- */
@media (max-width: 767px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-wrap .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.35rem;
    flex-direction: column;
    align-items: stretch;
    min-width: 12rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    padding: 0.35rem 0;
    display: none;
    z-index: 100;
  }

  .nav-wrap.is-open .nav-links {
    display: flex;
    animation: storeNavDropdownIn 0.2s ease;
  }

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

  .nav-wrap .nav-links a {
    border: none;
    border-radius: 0;
    padding: 0.6rem 1rem;
    text-align: left;
    background: transparent;
    border-bottom: 1px solid var(--border-primary);
  }

  .nav-wrap .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-wrap .nav-links a:hover {
    background: var(--bg-secondary);
  }

  .nav-wrap .nav-links a.active {
    background: transparent;
    color: var(--brand-primary);
    font-weight: 600;
  }

  .nav-wrap .nav-links a.active .nav-badge {
    background: var(--brand-primary);
    color: #fff;
  }
}

/* Desktop: hide toggle, show nav inline */
@media (min-width: 768px) {
  .nav-wrap .nav-links {
    display: flex;
  }
}
