/* ═══════════════════════════════════════════════════════════════
   Installateur Dashboard Styles
   BKG EnergiePlanner — css/installer.css
   ═══════════════════════════════════════════════════════════════ */

/* ── Layout ─────────────────────────────────────────────────── */
.inst-dash {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ── Header ─────────────────────────────────────────────────── */
.inst-dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.inst-dash-title {
  margin: 0 0 0.25rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.inst-dash-subtitle {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ── GPS button in label ─────────────────────────────────────── */
.inst-gps-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.6rem;
  padding: 0.18rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--accent, #00c2ff);
  background: rgba(0,194,255,0.08);
  border: 1px solid rgba(0,194,255,0.3);
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  vertical-align: middle;
}

.inst-gps-btn:hover:not(:disabled) {
  background: rgba(0,194,255,0.18);
  border-color: rgba(0,194,255,0.55);
}

.inst-gps-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.inst-gps-btn i {
  width: 13px;
  height: 13px;
}

/* ── Empty state ─────────────────────────────────────────────── */
.inst-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  border: 2px dashed var(--border);
  border-radius: 16px;
}

.inst-empty-state i { width: 48px; height: 48px; margin-bottom: 1rem; }
.inst-empty-state p { font-size: 0.95rem; }

/* ── Aanhef + naam inline row ────────────────────────────────── */
.inst-naam-row {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.inst-naam-row:focus-within {
  border-color: var(--accent, #00c2ff);
  box-shadow: 0 0 0 3px rgba(0,194,255,0.15);
}

.inst-naam-row input,
.inst-naam-row select {
  border: none !important;
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: var(--card-bg);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 0.75rem;
}

.inst-aanhef-select {
  width: auto;
  flex-shrink: 0;
  cursor: pointer;
  border-right: 1.5px solid var(--border) !important;
  padding-right: 0.5rem !important;
  background-color: var(--bg-subtle, rgba(0,0,0,0.03));
  appearance: auto;
}

/* ── Search bar ──────────────────────────────────────────────── */
.inst-search-bar {
  margin-bottom: 1.25rem;
}

.inst-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.inst-search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
  flex-shrink: 0;
}

.inst-search-input {
  width: 100%;
  padding: 0.7rem 2.75rem 0.7rem 2.75rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.inst-search-input:focus {
  border-color: var(--accent, #00c2ff);
  box-shadow: 0 0 0 3px rgba(0,194,255,0.15);
}

.inst-search-clear {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 6px;
  color: var(--text-muted);
  display: flex; align-items: center;
  transition: background 0.15s, color 0.15s;
}

.inst-search-clear:hover { background: rgba(0,0,0,0.06); color: var(--text-primary); }
.inst-search-clear i { width: 16px; height: 16px; }

.inst-search-results {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  padding-left: 2px;
}

/* ── Project grid ────────────────────────────────────────────── */
.inst-project-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── Project card ────────────────────────────────────────────── */
.inst-project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.inst-project-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.inst-project-card.is-open {
  border-color: var(--accent, #00c2ff);
  box-shadow: 0 0 0 1px var(--accent, #00c2ff), 0 4px 24px rgba(0,194,255,0.08);
}

.inst-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  min-width: 0;
}

.inst-card-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent, #00c2ff) 0%, #0074a8 100%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.inst-card-icon i { width: 20px; height: 20px; }

.inst-card-info { flex: 1; min-width: 0; overflow: hidden; }

.inst-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inst-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.inst-card-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.inst-card-meta i { width: 12px; height: 12px; }

.inst-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Separator between toggle-button and delete-icon */
.inst-card-actions-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 0.1rem;
}

/* Fixed width so both "Calculaties" and "Inklappen" always fit */
.btn-open-project {
  min-width: 110px;
  justify-content: center;
  white-space: nowrap;
}

/* Ghost toggle button — subtle, coloured text */
.btn.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--accent, #00c2ff);
  font-weight: 600;
  white-space: nowrap;
}

.btn.btn-ghost:hover {
  background: rgba(0,194,255,0.08);
  border-color: rgba(0,194,255,0.25);
}

.btn-delete-project {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 8px;
  color: var(--text-muted);
  display: flex; align-items: center;
  transition: background 0.15s, color 0.15s;
}

.btn-delete-project:hover {
  background: rgba(239,68,68,0.12);
  color: #ef4444;
}

.btn-delete-project i { width: 16px; height: 16px; }

.btn-edit-project {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 8px;
  color: var(--text-muted);
  display: flex; align-items: center;
  transition: background 0.15s, color 0.15s;
}

.btn-edit-project:hover {
  background: rgba(0,194,255,0.12);
  color: var(--accent, #00c2ff);
}

.btn-edit-project i { width: 16px; height: 16px; }

/* Field validation error messages */
.inst-field-error {
  display: block;
  font-size: 0.78rem;
  color: #ef4444;
  margin-top: 0.25rem;
  min-height: 1em;
}

.inst-field-error:empty { display: none; }

/* Highlight invalid fields */
input:user-invalid,
input.is-invalid {
  border-color: #ef4444 !important;
}

/* ── Calculaties panel ───────────────────────────────────────── */
.inst-calc-panel {
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem 1.25rem;
  background: var(--bg-subtle, rgba(0,0,0,0.03));
  border-radius: 0 0 14px 14px;
}

.inst-calc-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.inst-calc-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.inst-calc-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

/* ── Calculatie row ──────────────────────────────────────────── */
.inst-calc-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.inst-calc-row:hover {
  border-color: var(--accent, #00c2ff);
  box-shadow: 0 2px 10px rgba(0,194,255,0.06);
}

.inst-calc-row-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.inst-calc-index {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent, #00c2ff);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.inst-calc-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.inst-calc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  align-items: center;
}

.inst-calc-meta i { width: 11px; height: 11px; }

.calc-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  border-radius: 99px;
  background: rgba(0,194,255,0.1);
  border: 1px solid rgba(0,194,255,0.2);
  font-size: 0.72rem;
  color: var(--accent, #00c2ff);
}

.inst-calc-row-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.btn-rename-calc,
.btn-delete-calc {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 7px;
  color: var(--text-muted);
  display: flex; align-items: center;
  transition: background 0.15s, color 0.15s;
}

.btn-rename-calc i,
.btn-delete-calc i { width: 15px; height: 15px; }

.btn-rename-calc:hover { background: rgba(0,194,255,0.1); color: var(--accent, #00c2ff); }
.btn-delete-calc:hover { background: rgba(239,68,68,0.1); color: #ef4444; }

/* ── Spinner animation ───────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

/* ── Modal overrides for inline usage ────────────────────────── */
.bkg-modal-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
}

.bkg-modal-box {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, rgba(0,0,0,0.1));
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
  font-family: Inter, system-ui, sans-serif;
  color: var(--text-primary);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .inst-dash { padding: 1rem 0.75rem 3rem; }
  .inst-card-header { flex-wrap: wrap; }
  .inst-calc-row { flex-wrap: wrap; }
  .inst-calc-row-actions { width: 100%; justify-content: flex-end; }
}


/* ═══════════════════════════════════════════════════════════════
   SHOP / PRODUCTPRIJSLIJST STYLES
   ═══════════════════════════════════════════════════════════════ */

/* ── Shop layout ─────────────────────────────────────────────── */
.shop-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 960px;
}

.shop-container.has-cart {
  grid-template-columns: 1fr 340px;
}

@media (max-width: 900px) {
  .shop-container.has-cart {
    grid-template-columns: 1fr;
  }
}

/* ── Shop sub-tabs ───────────────────────────────────────────── */
.shop-sub-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--card-border, var(--border));
  margin-bottom: 1.25rem;
}

.shop-sub-tab {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.15s, border-color 0.15s;
  font-family: inherit;
}

.shop-sub-tab:hover { color: var(--text-primary); }

.shop-sub-tab.active {
  color: var(--primary, var(--accent, #00c2ff));
  border-bottom-color: var(--primary, var(--accent, #00c2ff));
}

.shop-sub-tab i { width: 14px; height: 14px; }

.shop-sub-tab .shop-tab-badge {
  background: var(--primary, var(--accent, #00c2ff));
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  min-width: 18px;
  text-align: center;
}

/* ── Shop search ─────────────────────────────────────────────── */
.shop-search-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.shop-search-wrap .inst-search-icon {
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.shop-search {
  width: 100%;
  padding: 0.65rem 2.5rem 0.65rem 2.75rem;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.shop-search:focus {
  border-color: var(--accent, #00c2ff);
  box-shadow: 0 0 0 3px rgba(0,194,255,0.15);
}

/* ── Product group / category accordion ──────────────────────── */
.shop-group {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  transition: box-shadow 0.2s;
}

.shop-group:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.shop-group-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.shop-group-header:hover {
  background: rgba(0,194,255,0.03);
}

.shop-group-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent, #00c2ff) 0%, #0074a8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.shop-group-icon i { width: 18px; height: 18px; }

.shop-group-title {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.shop-group-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(0,0,0,0.04);
  padding: 2px 8px;
  border-radius: 99px;
}

.shop-group-chevron {
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.shop-group-chevron i { width: 18px; height: 18px; }

.shop-group.is-open .shop-group-chevron {
  transform: rotate(180deg);
}

.shop-group-body {
  display: none;
  border-top: 1px solid var(--border);
}

.shop-group.is-open .shop-group-body {
  display: block;
}

/* ── Product row in group ────────────────────────────────────── */
.shop-product-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.15rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}

.shop-product-row:last-child { border-bottom: none; }

.shop-product-row:hover {
  background: rgba(0,194,255,0.025);
}

.shop-product-info {
  flex: 1;
  min-width: 0;
}

.shop-product-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.shop-product-brand {
  font-weight: 700;
  color: var(--text-primary);
}

.shop-product-badges {
  display: inline-flex;
  gap: 0.3rem;
  margin-left: 0.3rem;
}

.shop-badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent, #0ea5e9);
  background: rgba(0,194,255,0.08);
  border: 1px solid rgba(0,194,255,0.18);
  padding: 1px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.shop-product-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* ── Category filter bar ──────────────────────────────────── */
.shop-filter-bar {
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem 1.15rem;
  background: rgba(0,0,0,0.02);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  align-items: flex-end;
}

/* Dropdown styled to match the slider component */
.shop-filter-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 200px;
  flex: 1;
  max-width: 340px;
}

.shop-filter-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted, #64748b);
}

.shop-filter-select {
  width: 100%;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  background: #fff;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  height: 34px;
}

.shop-filter-select:focus {
  border-color: var(--accent, #00aaff);
  box-shadow: 0 0 0 2px rgba(0,194,255,0.12);
}

/* ── Range slider filter ──────────────────────────────────── */
.shop-range-filter {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 200px;
  flex: 1;
  max-width: 340px;
}

.shop-range-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted, #64748b);
}

.shop-range-val {
  font-weight: 700;
  color: var(--accent, #0ea5e9);
}

.shop-range-track-wrap {
  position: relative;
  height: 34px;
}

/* Gray track background — BELOW inputs so it doesn't cut through thumbs */
.shop-range-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 5px;
  border-radius: 5px;
  background: var(--border, #e2e8f0);
  z-index: 1;
  pointer-events: none;
}

/* Blue fill — sibling of track, ABOVE inputs to cover native track line */
.shop-range-fill {
  position: absolute;
  background: var(--accent, #0ea5e9);
  border-radius: 5px;
  z-index: 6;
  pointer-events: none;
}

/* Both inputs: completely invisible except thumbs */
.shop-range-input {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 0;
  margin: 0;
  padding: 0;
  border: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: transparent;
  color: transparent;
  pointer-events: none;
  z-index: 5;
  outline: none;
}

.shop-range-input::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  appearance: none;
  height: 0;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  color: transparent;
}

.shop-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent, #0ea5e9);
  border: none;
  box-shadow: 0 0 0 3px #fff, 0 1px 6px rgba(0,0,0,0.22);
  cursor: pointer;
  pointer-events: all;
  position: relative;
  z-index: 10;
  margin-top: -10px;
  transition: box-shadow 0.15s, transform 0.15s;
}

.shop-range-input::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 3px #fff, 0 2px 10px rgba(14,165,233,0.4);
  transform: scale(1.18);
}

.shop-range-input::-webkit-slider-thumb:active {
  transform: scale(1.25);
  box-shadow: 0 0 0 3px #fff, 0 2px 12px rgba(14,165,233,0.5);
}

/* Firefox */
.shop-range-input::-moz-range-track {
  height: 0;
  background: transparent;
  border: none;
}

.shop-range-input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent, #0ea5e9);
  border: none;
  box-shadow: 0 0 0 3px #fff, 0 1px 6px rgba(0,0,0,0.22);
  cursor: pointer;
  pointer-events: all;
}

.shop-range-input::-moz-range-thumb:hover {
  box-shadow: 0 0 0 3px #fff, 0 2px 10px rgba(14,165,233,0.4);
}

.shop-product-price {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary, var(--accent, #00c2ff));
  white-space: nowrap;
  min-width: 80px;
  text-align: right;
}

.shop-product-unit {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
}

.shop-product-expand-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 6px;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
}

.shop-product-expand-btn:hover {
  background: rgba(0,194,255,0.1);
  color: var(--accent, #00c2ff);
}

.shop-product-expand-btn i { width: 16px; height: 16px; }

.shop-product-chevron {
  transition: transform 0.25s ease;
}

.shop-product-chevron.is-rotated {
  transform: rotate(180deg);
}

/* ── Product detail (expanded) ───────────────────────────────── */
.shop-product-detail {
  display: none;
  background: rgba(0,0,0,0.015);
  border-bottom: 1px solid var(--border);
  animation: shopDetailSlide 0.25s ease;
}

.shop-product-detail.is-open {
  display: block;
}

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

/* ── Add to cart controls ────────────────────────────────────── */
.shop-add-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.shop-qty-input {
  width: 52px;
  padding: 0.3rem 0.35rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  text-align: center;
  background: var(--card-bg);
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.shop-qty-input:focus {
  border-color: var(--accent, #00c2ff);
}

.shop-add-btn {
  background: var(--primary, var(--accent, #00c2ff));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
  font-family: inherit;
}

.shop-add-btn:hover { filter: brightness(1.1); }
.shop-add-btn:active { transform: scale(0.97); }
.shop-add-btn i { width: 14px; height: 14px; }

.shop-add-btn.added {
  background: #22c55e;
  pointer-events: none;
}

/* ── Shopping cart (sidebar) ─────────────────────────────────── */
.shop-cart {
  position: sticky;
  top: 80px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.shop-cart-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.shop-cart-title i { width: 18px; height: 18px; }

.shop-cart-empty {
  text-align: center;
  padding: 1.5rem 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.shop-cart-empty i { width: 32px; height: 32px; margin-bottom: 0.5rem; opacity: 0.4; }

.shop-cart-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.shop-cart-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(0,0,0,0.02);
  border-radius: 8px;
}

.shop-cart-item-info { flex: 1; min-width: 0; }

.shop-cart-item-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-cart-item-meta {
  font-size: 0.73rem;
  color: var(--text-muted);
}

.shop-cart-item-price {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.shop-cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  color: var(--text-muted);
  transition: color 0.15s;
}

.shop-cart-item-remove:hover { color: #ef4444; }
.shop-cart-item-remove i { width: 13px; height: 13px; }

/* ── Cart delivery selection ─────────────────────────────────── */
.shop-delivery-options {
  margin-bottom: 1rem;
}

.shop-delivery-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.shop-delivery-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  margin-bottom: 0.4rem;
  position: relative;
}

.shop-delivery-option:hover {
  border-color: rgba(0,194,255,0.4);
  background: rgba(0,194,255,0.03);
}

.shop-delivery-option.selected {
  border-color: var(--accent, #00c2ff);
  background: rgba(0,194,255,0.06);
  box-shadow: 0 0 0 1px var(--accent, #00c2ff);
}

/* Custom radio indicator */
.shop-delivery-radio {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  border: 2px solid var(--border, #d1d5db);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}

.shop-delivery-radio.checked {
  border-color: var(--accent, #00c2ff);
  background: var(--accent, #00c2ff);
  box-shadow: inset 0 0 0 3px #fff;
}

.shop-delivery-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.shop-delivery-option.selected .shop-delivery-icon {
  color: var(--accent, #00c2ff);
}

.shop-delivery-option-info { flex: 1; }

.shop-delivery-option-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.shop-delivery-option-cost {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.shop-delivery-option.selected .shop-delivery-option-cost {
  color: var(--accent, #00c2ff);
}

/* BKG km info line */
.shop-delivery-km-info {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.shop-delivery-km-info i { flex-shrink: 0; }

.shop-delivery-km-warn {
  color: #f59e0b;
}

/* PostNL info button */
.shop-post-info-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent, #00c2ff);
  padding: 0;
  display: inline-flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.shop-post-info-btn:hover { opacity: 1; }

/* PostNL tooltip */
.shop-post-tooltip {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 100;
  animation: tooltipFade 0.2s ease;
}

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

.shop-post-tooltip-content {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  font-size: 0.78rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.shop-post-tooltip-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
}

.shop-post-tooltip-close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0 0.2rem;
  line-height: 1;
}

.shop-post-tooltip-close:hover { color: var(--text-primary); }

.shop-post-tooltip-content ul {
  margin: 0.4rem 0;
  padding-left: 1.2rem;
}

.shop-post-tooltip-content li { margin-bottom: 0.15rem; }

.shop-post-tooltip-note {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.74rem;
}

/* ── Cart totals ─────────────────────────────────────────────── */
.shop-cart-totals {
  padding: 0.6rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.75rem;
}

.shop-cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.2rem 0;
}

.shop-cart-total-row.grand {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
}

/* ── Reference input ─────────────────────────────────────────── */
.shop-cart-reference {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text-primary);
  background: #fff;
  margin-bottom: 0.5rem;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.shop-cart-reference:focus { border-color: var(--accent, #00c2ff); }
.shop-cart-reference::placeholder { color: var(--text-muted); opacity: 0.6; }

/* ── Cart notes ──────────────────────────────────────────────── */
.shop-cart-notes {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text-primary);
  resize: vertical;
  min-height: 55px;
  margin-bottom: 0.75rem;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.shop-cart-notes:focus { border-color: var(--accent, #00c2ff); }

/* ── Cart actions ────────────────────────────────────────────── */
.shop-cart-actions {
  display: flex;
  gap: 0.5rem;
}

.shop-continue-btn {
  flex: 1;
  padding: 0.6rem;
  background: transparent;
  color: var(--accent, #00c2ff);
  border: 1.5px solid var(--accent, #00c2ff);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}

.shop-continue-btn:hover { background: rgba(0,194,255,0.08); }
.shop-continue-btn i { width: 16px; height: 16px; }

/* ── Place order button ──────────────────────────────────────── */
.shop-order-btn {
  flex: 1;
  padding: 0.6rem;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  transition: opacity 0.15s, transform 0.1s;
  font-family: inherit;
}

.shop-order-btn:hover { opacity: 0.92; }
.shop-order-btn:active { transform: scale(0.98); }
.shop-order-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.shop-order-btn i { width: 16px; height: 16px; }

/* ── Order history ───────────────────────────────────────────── */
.shop-order-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
  transition: box-shadow 0.2s;
}

.shop-order-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.shop-order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.shop-order-number {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Outfit', monospace;
}

.shop-order-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.shop-order-status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
}

.shop-order-status.nieuw       { background: rgba(59,130,246,0.1);  color: #3b82f6; }
.shop-order-status.in_behandeling { background: rgba(245,158,11,0.1); color: #f59e0b; }
.shop-order-status.verwerkt    { background: rgba(139,92,246,0.1);  color: #8b5cf6; }
.shop-order-status.verzonden   { background: rgba(34,197,94,0.1);   color: #22c55e; }
.shop-order-status.afgehaald   { background: rgba(34,197,94,0.1);   color: #22c55e; }
.shop-order-status.geannuleerd { background: rgba(239,68,68,0.1);   color: #ef4444; }

.shop-order-summary {
  display: flex;
  gap: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.shop-order-summary span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.shop-order-summary i { width: 13px; height: 13px; }

.shop-order-total {
  font-weight: 700;
  color: var(--text-primary);
}

.shop-order-ref {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ── Order detail toggle button ─────────────────────────────── */
.shop-order-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.6rem;
  padding: 0.4rem 0.85rem;
  background: rgba(0,194,255,0.06);
  border: 1px solid rgba(0,194,255,0.18);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent, #00aaff);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  font-family: inherit;
}

.shop-order-toggle-btn:hover {
  background: rgba(0,194,255,0.12);
  border-color: rgba(0,194,255,0.35);
}

.shop-order-toggle-btn:active { transform: scale(0.97); }
.shop-order-toggle-btn i { width: 15px; height: 15px; }

/* ── Expanded order card ────────────────────────────────────── */
.shop-order-card.is-expanded {
  border-color: rgba(0,194,255,0.3);
  box-shadow: 0 2px 16px rgba(0,194,255,0.08);
}

/* ── Order items section ────────────────────────────────────── */
.shop-order-items-section {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border, #e2e8f0);
  animation: shopDetailSlide 0.25s ease;
}

/* ── Items table ────────────────────────────────────────────── */
.shop-order-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.shop-order-items-table th {
  padding: 0.45rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1.5px solid var(--border, #e2e8f0);
  text-align: left;
}

.shop-order-items-table th.center { text-align: center; }
.shop-order-items-table th.right { text-align: right; }

.shop-order-items-table td {
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  color: var(--text-primary, #334155);
  vertical-align: middle;
}

.shop-order-items-table td.center { text-align: center; }
.shop-order-items-table td.right { text-align: right; }

.shop-order-item-name {
  font-weight: 500;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Editable qty input in order items ──────────────────────── */
.shop-order-item-qty {
  width: 56px;
  padding: 0.3rem 0.35rem;
  border: 1.5px solid var(--border, #d1d5db);
  border-radius: 8px;
  font-size: 0.82rem;
  text-align: center;
  background: var(--card-bg, #fff);
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.shop-order-item-qty:focus {
  border-color: var(--accent, #00c2ff);
  box-shadow: 0 0 0 2px rgba(0,194,255,0.12);
}

/* ── Remove item button ─────────────────────────────────────── */
.shop-order-item-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 6px;
  color: var(--text-muted, #94a3b8);
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
}

.shop-order-item-remove-btn:hover {
  background: rgba(239,68,68,0.08);
  color: #ef4444;
}

.shop-order-item-remove-btn i { width: 15px; height: 15px; }

/* ── Table footer ───────────────────────────────────────────── */
.shop-order-items-table tfoot td {
  font-size: 0.82rem;
  color: var(--text-muted, #64748b);
  border-bottom: none;
}

.shop-order-items-subtotal td {
  border-top: 1px solid var(--border, #e2e8f0);
  padding-top: 0.6rem;
}

.shop-order-items-total td {
  border-top: 1.5px solid var(--border, #cbd5e1);
  font-size: 0.92rem;
  color: var(--text-primary, #1e293b);
}

/* ── Edit actions ───────────────────────────────────────────── */
.shop-order-edit-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  justify-content: flex-end;
}

.shop-order-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1.1rem;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  font-family: inherit;
}

.shop-order-save-btn:hover { opacity: 0.92; }
.shop-order-save-btn:active { transform: scale(0.97); }
.shop-order-save-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.shop-order-save-btn i { width: 15px; height: 15px; }

/* ── Loading + empty states ─────────────────────────────────── */
.shop-order-items-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  color: var(--text-muted, #64748b);
  font-size: 0.85rem;
}

.shop-order-items-loading i { width: 18px; height: 18px; }

.shop-order-items-empty {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted, #94a3b8);
  font-size: 0.85rem;
}

.shop-order-items-empty i { width: 28px; height: 28px; margin-bottom: 0.4rem; opacity: 0.5; }

/* ── Floating cart button ────────────────────────────────── */
.shop-cart-fab {
  display: flex;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary, var(--accent, #00c2ff));
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  cursor: pointer;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  font-size: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.shop-cart-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(0,0,0,0.3);
}

.shop-cart-fab i { width: 24px; height: 24px; }

.shop-cart-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--card-bg, #fff);
}

@media (max-width: 900px) {
  .shop-cart {
    position: fixed;
    inset: 0;
    z-index: 9999;
    max-height: 100vh;
    border-radius: 0;
    display: none;
  }
  .shop-cart.is-open { display: block; }
}

/* ── No access state ─────────────────────────────────────────── */
.shop-no-access {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.shop-no-access i { width: 48px; height: 48px; margin-bottom: 1rem; opacity: 0.4; }
.shop-no-access p { font-size: 0.95rem; }
