/* ─── Blue Energy – UI Components ────────────────────────────────────────── */

/* ════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  justify-content: center;
  padding: 0.78rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.25;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition-fast),
              border-color var(--transition-fast),
              color var(--transition-fast),
              box-shadow var(--transition-fast),
              transform var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-brand-primary);
  outline-offset: 2px;
}

.btn:active { transform: translateY(1px); }

/* Primary */
.btn-primary {
  background: linear-gradient(180deg, var(--color-brand-hover), var(--color-brand-primary));
  color: var(--color-text-bright);
  border-color: rgba(0, 102, 204, 0.5);
  box-shadow: var(--shadow-glow-blue);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #2E9BFF, var(--color-brand-primary));
  border-color: rgba(0, 102, 204, 0.78);
  color: var(--color-text-bright);
  box-shadow: 0 0 0 1px rgba(0, 102, 204, 0.32), 0 24px 48px rgba(0, 102, 204, 0.20);
}

/* Accent */
.btn-accent {
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.88), rgba(0, 102, 204, 0.88));
  color: var(--color-text-bright);
  border-color: rgba(0, 240, 255, 0.4);
}
.btn-accent:hover {
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.96), rgba(0, 102, 204, 0.96));
  border-color: rgba(0, 240, 255, 0.52);
  color: var(--color-text-bright);
}

/* Outline – LED-Linie ohne Fill */
.btn-outline {
  background-color: rgba(255,255,255,0.02);
  color: var(--color-text-bright);
  border-color: rgba(255,255,255,0.12);
}
.btn-outline:hover {
  background-color: rgba(255,255,255,0.05);
  border-color: var(--color-brand-primary);
  color: var(--color-text-bright);
}

/* Ghost */
.btn-ghost {
  background-color: transparent;
  color: var(--color-text-muted);
  border-color: transparent;
}
.btn-ghost:hover {
  background-color: var(--color-bg-elevated);
  color: var(--color-text-bright);
}

/* Secondary */
.btn-secondary {
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  color: var(--color-text-bright);
  border-color: rgba(255,255,255,0.1);
}
.btn-secondary:hover {
  background-color: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
}

/* Danger */
.btn-danger {
  background-color: var(--color-error);
  color: var(--color-text-bright);
  border-color: var(--color-error);
}
.btn-danger:hover {
  background-color: #E23B3B;
  border-color: #E23B3B;
  color: var(--color-text-bright);
}

/* Sizes */
.btn-sm { padding: 0.6rem 0.9rem; font-size: var(--text-xs); }
.btn-lg { padding: 0.95rem 1.6rem; font-size: var(--text-base); }
.btn-xl { padding: 1.05rem 1.95rem; font-size: var(--text-lg); }

/* Full width */
.btn-block { width: 100%; justify-content: center; }

/* Disabled */
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Icon button */
.btn-icon {
  padding: 0.5rem;
  border-radius: var(--radius-md);
}

/* ════════════════════════════════════════════════════════════
   PRODUCT CARD
   ════════════════════════════════════════════════════════════ */
.product-card {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    var(--color-bg-surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 15, 45, 0.82), rgba(13, 19, 52, 0.76)),
    url('/img/circuit-structure.jpg') center/cover no-repeat;
  opacity: 0.16;
  filter: saturate(0.42) brightness(0.58) contrast(1.04);
  pointer-events: none;
  z-index: 0;
}

.product-card > * {
  position: relative;
  z-index: 1;
}

.product-card:hover {
  border-color: rgba(0, 102, 204, 0.32);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.product-card__image {
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at top, rgba(0, 102, 204, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(22, 32, 74, 0.84), rgba(13, 19, 52, 0.95));
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-card__image img,
.product-card__image svg {
  width: 74%;
  height: 74%;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.product-card:hover .product-card__image img,
.product-card:hover .product-card__image svg {
  transform: scale(1.05);
}

.product-card__badge {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  background: rgba(10, 15, 45, 0.74);
  color: var(--color-text-bright);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}

.product-card__badge--material {
  top: var(--sp-3);
  right: var(--sp-3);
  left: auto;
  background: rgba(0, 102, 204, 0.14);
  color: #D6E8FF;
  border: 1px solid rgba(0, 102, 204, 0.25);
}

.product-card__body {
  padding: var(--sp-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__category {
  font-size: var(--text-xs);
  color: var(--color-pro-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-3);
}

.product-card__name {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-bright);
  margin-bottom: var(--sp-2);
  line-height: var(--leading-snug);
}

.product-card__title-link {
  color: inherit;
  text-decoration: none;
}

.product-card__title-link:hover {
  color: inherit;
}

.product-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--sp-4);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.product-card__price {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-bright);
}

.product-card__price-sub {
  font-size: var(--text-xs);
  color: var(--color-text-dimmed);
  font-weight: 400;
}

.product-card__actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ════════════════════════════════════════════════════════════
   FORMS
   ════════════════════════════════════════════════════════════ */
.form-group {
  margin-bottom: var(--sp-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-bright);
  margin-bottom: var(--sp-2);
}

.form-label .required {
  color: var(--color-error);
  margin-left: 2px;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: var(--text-sm);
  font-family: inherit;
  color: var(--color-text-bright);
  background-color: var(--color-bg-base);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-brand-primary);   /* LED-Linie – kein Glow */
  box-shadow: none;
}

.form-control::placeholder { color: var(--color-text-dimmed); }

.form-control--color-error {
  border-color: var(--color-error);
}
.form-control--color-error:focus {
  box-shadow: none;
  border-color: var(--color-error);
}

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

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%239aa3b2' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--color-text-dimmed);
  margin-top: var(--sp-1);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: var(--sp-1);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Checkbox & Radio */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--color-brand-primary);
  cursor: pointer;
  margin-top: 2px;
}

/* Range Slider */
.form-range {
  width: 100%;
  accent-color: var(--color-brand-primary);
  cursor: pointer;
}

.range-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--sp-2);
}

.range-value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-brand-primary);
  background: var(--color-brand-glow);
  border: 1px solid var(--color-border-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  min-width: 48px;
  text-align: center;
}

/* File Upload */
.upload-area {
  border: 1px dashed var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-6);
  background: var(--color-bg-base);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-normal), background-color var(--transition-normal);
}
.upload-area:hover,
.upload-area.drag-over {
  border-color: var(--color-brand-primary);
  background-color: var(--color-brand-glow);
}

/* ════════════════════════════════════════════════════════════
   BADGES & PILLS
   ════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.4rem 0.72rem;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
  border: 1px solid transparent;
}

.badge-blue    { background: var(--color-brand-glow); color: #D6E8FF; border-color: rgba(0, 102, 204, 0.24); }
.badge-green   { background: var(--color-success-bg); color: #A9F5CE; border-color: rgba(52, 217, 139, 0.22); }
.badge-yellow  { background: var(--color-warning-bg); color: #FFE0A3; border-color: rgba(255, 176, 32, 0.22); }
.badge-red     { background: var(--color-error-bg); color: #FFC2C2; border-color: rgba(255, 90, 90, 0.22); }
.badge-gray    { background: rgba(255,255,255,0.04); color: var(--color-text-muted); border-color: rgba(255,255,255,0.06); }
.badge-primary { background: var(--color-brand-primary); color: var(--color-text-bright); border-color: rgba(0, 102, 204, 0.4); }

/* Category pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.7rem 1rem;
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.pill:hover {
  border-color: rgba(255,255,255,0.12);
  color: var(--color-text-bright);
  background: rgba(255,255,255,0.05);
}
.pill.active {
  background: rgba(0, 102, 204, 0.16);
  border-color: var(--color-brand-primary);
  color: #D6E8FF;
}

/* ════════════════════════════════════════════════════════════
   CARDS
   ════════════════════════════════════════════════════════════ */
.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    var(--color-surface-glass);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm), var(--shadow-inner-light);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 15, 45, 0.82), rgba(13, 19, 52, 0.78)),
    url('/img/circuit-structure.jpg') center/cover no-repeat;
  opacity: 0.16;
  filter: saturate(0.42) brightness(0.58) contrast(1.04);
  pointer-events: none;
  z-index: 0;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card--flat {
  box-shadow: none;
}

.card__header {
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--color-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card__title {
  font-size: var(--text-lg);
  font-weight: 600;
}

/* ════════════════════════════════════════════════════════════
   BREADCRUMB
   ════════════════════════════════════════════════════════════ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--color-text-dimmed);
  padding: var(--sp-3) 0;
}

.breadcrumb__item { color: var(--color-text-dimmed); }
.breadcrumb__item a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}
.breadcrumb__item a:hover { color: var(--color-brand-primary); }

.breadcrumb__sep {
  color: var(--color-border-focus);
  font-size: var(--text-xs);
}

.breadcrumb__item.active { color: var(--color-text-bright); font-weight: 500; }

/* ════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ════════════════════════════════════════════════════════════ */
#toast-container {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--color-bg-surface-2);
  color: var(--color-text-bright);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 360px;
  pointer-events: all;
  animation: toast-in 200ms ease forwards;
  font-size: var(--text-sm);
}

.toast.leaving { animation: toast-out 200ms ease forwards; }

.toast--color-success { background: linear-gradient(180deg, rgba(52, 217, 139, 0.18), rgba(13, 19, 52, 0.98)); border-color: rgba(52, 217, 139, 0.24); }
.toast--color-error   { background: linear-gradient(180deg, rgba(255, 90, 90, 0.18), rgba(13, 19, 52, 0.98)); border-color: rgba(255, 90, 90, 0.24); }
.toast--color-info    { background: linear-gradient(180deg, rgba(0, 102, 204, 0.22), rgba(13, 19, 52, 0.98)); border-color: rgba(0, 102, 204, 0.28); }

.toast__icon { font-size: 1.1em; flex-shrink: 0; margin-top: 1px; }
.toast__text { flex: 1; }
.toast__close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 0;
  font-size: var(--text-lg);
  line-height: 1;
  flex-shrink: 0;
}
.toast__close:hover { color: var(--color-text-bright); }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(20px); }
}

/* ════════════════════════════════════════════════════════════
   MODAL
   ════════════════════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 19, 52, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  animation: fade-in 150ms ease;
}

.modal {
  background: var(--color-bg-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: modal-in 200ms ease;
}

.modal__header {
  padding: var(--sp-6);
  border-bottom: 1px solid var(--color-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal__title { font-size: var(--text-xl); font-weight: 700; }

.modal__close {
  background: var(--color-bg-base);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  transition: background-color var(--transition-fast);
}
.modal__close:hover { background: var(--color-border-subtle); }

.modal__body {
  padding: var(--sp-6);
  overflow-y: auto;
  flex: 1;
}

.modal__footer {
  padding: var(--sp-5) var(--sp-6);
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-3);
}

@keyframes fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: scale(0.96) translateY(8px); } to { opacity: 1; transform: none; } }

/* ════════════════════════════════════════════════════════════
   STEP INDICATOR
   ════════════════════════════════════════════════════════════ */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--sp-8);
}

.step {
  display: flex;
  align-items: center;
  flex: 1;
}

.step__circle {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  border: 2px solid var(--color-border-subtle);
  background: var(--color-bg-surface);
  color: var(--color-text-dimmed);
  transition: all var(--transition-normal);
  position: relative;
  z-index: 1;
}

.step.active   .step__circle { border-color: var(--color-brand-primary); background: var(--color-brand-primary); color: var(--color-text-bright); }
.step.complete .step__circle { border-color: var(--color-success); background: var(--color-success); color: var(--color-text-bright); }

.step__label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-dimmed);
  margin-top: var(--sp-2);
  white-space: nowrap;
}
.step.active   .step__label { color: var(--color-brand-primary); font-weight: 600; }
.step.complete .step__label { color: var(--color-success); }

.step__line {
  flex: 1;
  height: 2px;
  background: var(--color-border-subtle);
  margin: 0 var(--sp-2);
  position: relative;
  top: -10px;
}
.step.complete + .step .step__line,
.step.complete .step__line { background: var(--color-success); }

.steps-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.steps-labels {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

/* ════════════════════════════════════════════════════════════
   TABLE
   ════════════════════════════════════════════════════════════ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.data-table th,
.data-table td {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border-subtle);
  white-space: nowrap;
}

.data-table th {
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-dimmed);
  background: var(--color-bg-base);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background-color var(--transition-fast); }
.data-table tbody tr:hover { background: var(--color-bg-elevated); }

.data-table td.wrap { white-space: normal; }

/* ════════════════════════════════════════════════════════════
   QUANTITY STEPPER
   ════════════════════════════════════════════════════════════ */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.qty-stepper__btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-surface);
  border: none;
  cursor: pointer;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.qty-stepper__btn:hover {
  background: var(--color-brand-glow);
  color: var(--color-brand-primary);
}

.qty-stepper__value {
  width: 44px;
  text-align: center;
  font-weight: 600;
  font-size: var(--text-sm);
  border: none;
  border-left: 1px solid var(--color-border-subtle);
  border-right: 1px solid var(--color-border-subtle);
  background: var(--color-bg-base);
  color: var(--color-text-bright);
  padding: 0;
  height: 36px;
  line-height: 36px;
}
.qty-stepper__value:focus { outline: none; }

/* ════════════════════════════════════════════════════════════
   CART SIDEBAR
   ════════════════════════════════════════════════════════════ */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: var(--color-bg-surface);
  border-left: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-lg);
  z-index: 900;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
}

.cart-sidebar.open { transform: translateX(0); }

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 24,0.7);
  z-index: 899;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}
.cart-overlay.visible { opacity: 1; pointer-events: all; }

.cart-sidebar__header {
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--color-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-sidebar__title {
  font-size: var(--text-lg);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.cart-sidebar__count {
  background: var(--color-brand-primary);
  color: var(--color-text-bright);
  font-size: var(--text-xs);
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-sidebar__items {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-4) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.cart-item {
  display: flex;
  gap: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--color-border-subtle);
}
.cart-item:last-child { border-bottom: none; }

.cart-item__image {
  width: 64px;
  height: 64px;
  min-width: 64px;
  background: var(--color-bg-surface);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cart-item__info { flex: 1; }
.cart-item__name { font-weight: 600; font-size: var(--text-sm); margin-bottom: 2px; }
.cart-item__meta { font-size: var(--text-xs); color: var(--color-text-dimmed); margin-bottom: var(--sp-2); }

.cart-item__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}

.cart-item__price { font-weight: 700; font-size: var(--text-sm); }

.cart-sidebar__footer {
  padding: var(--sp-5) var(--sp-6);
  border-top: 1px solid var(--color-border-subtle);
  background: var(--color-bg-surface);
}

.cart-totals {
  margin-bottom: var(--sp-5);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  padding: var(--sp-1) 0;
  color: var(--color-text-muted);
}
.cart-total-row.grand-total {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text-bright);
  border-top: 1px solid var(--color-border-subtle);
  padding-top: var(--sp-3);
  margin-top: var(--sp-2);
}

/* ════════════════════════════════════════════════════════════
   PAGINATION
   ════════════════════════════════════════════════════════════ */
.pagination {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  justify-content: center;
  margin-top: var(--sp-8);
}

.pagination__btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border-subtle);
  background: var(--color-bg-surface);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.pagination__btn:hover { border-color: var(--color-brand-primary); color: var(--color-brand-primary); }
.pagination__btn.active {
  background: var(--color-brand-primary);
  border-color: var(--color-brand-primary);
  color: var(--color-text-bright);
}
.pagination__btn:disabled { opacity: 0.4; cursor: default; pointer-events: none; }

/* ════════════════════════════════════════════════════════════
   COLOR SWATCH SELECTOR
   ════════════════════════════════════════════════════════════ */
.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--color-border-subtle);
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  position: relative;
}

.color-swatch:hover { transform: scale(1.15); }
.color-swatch.active { border-color: var(--color-brand-primary); border-width: 3px; }

/* ════════════════════════════════════════════════════════════
   TOOLTIP
   ════════════════════════════════════════════════════════════ */
[data-tooltip] {
  position: relative;
  cursor: help;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 15, 45, 0.94);
  color: var(--color-text-bright);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: var(--text-xs);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 100;
}
[data-tooltip]:hover::after { opacity: 1; }

/* ════════════════════════════════════════════════════════════
   EMPTY STATE
   ════════════════════════════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: var(--sp-16) var(--sp-8);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)),
    var(--color-bg-surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
}

.empty-state__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--sp-6);
  background: linear-gradient(180deg, rgba(0, 102, 204, 0.16), rgba(0, 240, 255, 0.08));
  border: 1px solid rgba(0, 102, 204, 0.28);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.empty-state__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--sp-3);
}

.empty-state__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 400px;
  margin: 0 auto var(--sp-6);
}

/* ════════════════════════════════════════════════════════════
   PRICE DISPLAY
   ════════════════════════════════════════════════════════════ */
.price {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-text-bright);
}
.price--large { font-size: var(--text-3xl); }
.price--accent { color: var(--color-brand-primary); }
.price__vat {
  font-size: var(--text-xs);
  color: var(--color-text-dimmed);
  font-weight: 400;
  margin-left: var(--sp-1);
}

/* ════════════════════════════════════════════════════════════
   ALERTS
   ════════════════════════════════════════════════════════════ */
.alert {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}
.alert-success { background: var(--color-success-bg); color: #A9F5CE; border-left: 3px solid var(--color-success); }
.alert-error   { background: var(--color-error-bg);   color: #FFC2C2; border-left: 3px solid var(--color-error);   }
.alert-warning { background: var(--color-warning-bg); color: #FFE0A3; border-left: 3px solid var(--color-warning); }
.alert-info    { background: var(--color-info-bg);    color: #B8FBFF; border-left: 3px solid var(--color-info);    }
