/* SipsTi Rehvid — Booking Form v2
   Split-panel layout: left summary + right active step
   ──────────────────────────────────────────────────── */

:root {
  --stb-primary: #2563eb;
  --stb-primary-light: #eff6ff;
  --stb-primary-hover: #1d4ed8;
  --stb-primary-ring: rgba(37, 99, 235, 0.15);
  --stb-success: #16a34a;
  --stb-success-light: #f0fdf4;
  --stb-danger: #ef4444;
  --stb-warn: #f59e0b;
  --stb-warn-light: #fffbeb;
  --stb-text: #0f172a;
  --stb-text-secondary: #475569;
  --stb-text-muted: #94a3b8;
  --stb-border: #e2e8f0;
  --stb-bg: #f8fafc;
  --stb-card: #ffffff;
  --stb-radius: 14px;
  --stb-radius-sm: 10px;
  --stb-shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --stb-shadow: 0 4px 20px rgba(0,0,0,0.06);
  --stb-shadow-lg: 0 8px 40px rgba(0,0,0,0.08);
  --stb-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ─── */
.stb {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--stb-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: none !important;
}
.stb *, .stb *::before, .stb *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Layout: Split Panel ─── */
.stb-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 500px;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--stb-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--stb-shadow-lg);
}

@media (min-width: 900px) {
  .stb-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
  }
}

/* ─── Left: Running Summary Sidebar ─── */
.stb-sidebar {
  background: linear-gradient(165deg, #1e293b 0%, #0f172a 100%);
  color: #e2e8f0;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  order: 2;
}

@media (min-width: 900px) {
  .stb-sidebar { order: 0; }
}

.stb-sidebar::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.stb-sidebar-header {
  margin-bottom: 28px;
}

.stb-sidebar-brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
}

.stb-sidebar-title {
  font-size: 20px;
  font-weight: 700;
  color: #f1f5f9;
}

/* ─── Summary Items ─── */
.stb-summary-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stb-summary-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--stb-radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--stb-transition);
  animation: stbSlideIn 0.35s ease-out;
}

.stb-summary-item.empty {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  opacity: 0.4;
}

.stb-summary-item.filled {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.2);
}

.stb-summary-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.stb-summary-item.filled .stb-summary-icon {
  background: rgba(37, 99, 235, 0.2);
}

.stb-summary-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748b;
  margin-bottom: 2px;
}

.stb-summary-value {
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.3;
}

.stb-summary-meta {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.stb-summary-edit {
  margin-left: auto;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 13px;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.15s;
  flex-shrink: 0;
  align-self: center;
}

.stb-summary-edit:hover {
  color: #93c5fd;
  background: rgba(255, 255, 255, 0.06);
}

/* ─── Running Total ─── */
.stb-sidebar-total {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stb-total-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  margin-bottom: 4px;
}

.stb-total-amount {
  font-size: 28px;
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1;
}

.stb-total-amount .stb-currency {
  font-size: 18px;
  font-weight: 600;
  color: #94a3b8;
  margin-left: 2px;
}

.stb-total-breakdown {
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
}

/* ─── Right: Main Content ─── */
.stb-main {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}

/* ─── Progress Steps ─── */
.stb-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
}

.stb-progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--stb-text-muted);
  white-space: nowrap;
  transition: all var(--stb-transition);
}

.stb-progress-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--stb-bg);
  border: 2px solid var(--stb-border);
  transition: all var(--stb-transition);
  flex-shrink: 0;
}

.stb-progress-line {
  flex: 1;
  height: 2px;
  background: var(--stb-border);
  margin: 0 8px;
  transition: background var(--stb-transition);
  min-width: 16px;
}

.stb-progress-step.active .stb-progress-dot {
  background: var(--stb-primary);
  border-color: var(--stb-primary);
  color: #fff;
  box-shadow: 0 0 0 4px var(--stb-primary-ring);
}

.stb-progress-step.active {
  color: var(--stb-primary);
  font-weight: 600;
}

.stb-progress-step.done .stb-progress-dot {
  background: var(--stb-success);
  border-color: var(--stb-success);
  color: #fff;
}

.stb-progress-step.done { color: var(--stb-success); }
.stb-progress-line.done { background: var(--stb-success); }

/* ─── Step Panels ─── */
.stb-panel {
  display: none;
  flex: 1;
  animation: stbFadeUp 0.35s ease-out;
}

.stb-panel.active { display: flex; flex-direction: column; }

@keyframes stbFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes stbSlideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes stbPop {
  0%   { transform: scale(0.95); opacity: 0; }
  60%  { transform: scale(1.02); }
  100% { transform: scale(1); opacity: 1; }
}

.stb-step-header {
  margin-bottom: 24px;
}

.stb-step-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--stb-text);
  margin-bottom: 4px;
}

.stb-step-subtitle {
  font-size: 14px;
  color: var(--stb-text-secondary);
}

/* ─── Selection Cards (generic) ─── */
.stb-card-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.stb-card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.stb-card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.stb-card-grid--4 { grid-template-columns: repeat(2, 1fr); }

.stb-card {
  position: relative;
  border: 2px solid var(--stb-border);
  border-radius: var(--stb-radius);
  padding: 20px;
  cursor: pointer;
  transition: all var(--stb-transition);
  background: var(--stb-card);
  text-align: center;
}

.stb-card:hover {
  border-color: #93c5fd;
  background: var(--stb-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--stb-shadow);
}

.stb-card.selected {
  border-color: var(--stb-primary);
  background: var(--stb-primary-light);
  box-shadow: 0 0 0 3px var(--stb-primary-ring);
}

.stb-card.selected::after {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--stb-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: stbPop 0.3s ease-out;
}

.stb-card-icon {
  font-size: 36px;
  margin-bottom: 10px;
  display: block;
}

.stb-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--stb-text);
  margin-bottom: 4px;
}

.stb-card-desc {
  font-size: 12px;
  color: var(--stb-text-secondary);
  line-height: 1.4;
}

.stb-card-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--stb-primary);
  margin-top: 8px;
}

.stb-card-meta {
  font-size: 12px;
  color: var(--stb-text-muted);
  margin-top: 4px;
}

/* ─── Card with Background Image ─── */
.stb-card--has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-color: transparent;
  overflow: hidden;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.stb-card--has-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.45) 50%,
    rgba(0, 0, 0, 0.75) 85%,
    rgba(0, 0, 0, 0.88) 100%
  );
  z-index: 1;
  transition: opacity var(--stb-transition);
  border-radius: calc(var(--stb-radius) - 2px);
}

.stb-card--has-bg:hover::before { opacity: 0.85; }

.stb-card--has-bg .stb-card-icon,
.stb-card--has-bg .stb-card-name,
.stb-card--has-bg .stb-card-desc,
.stb-card--has-bg .stb-card-price {
  position: relative;
  z-index: 2;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.stb-card--has-bg .stb-card-desc { color: rgba(255, 255, 255, 0.85); }

.stb-card--has-bg.selected {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.stb-card--has-bg.selected::after { z-index: 3; }

/* ─── Service Row with Background Image ─── */
.stb-service-row--has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-color: transparent;
  overflow: hidden;
  min-height: 80px;
}

.stb-service-row--has-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.80) 0%,
    rgba(0, 0, 0, 0.55) 50%,
    rgba(0, 0, 0, 0.35) 100%
  );
  z-index: 0;
  border-radius: calc(var(--stb-radius) - 2px);
  transition: opacity var(--stb-transition);
}

.stb-service-row--has-bg:hover::after { opacity: 0.85; }

.stb-service-row--has-bg .stb-service-check,
.stb-service-row--has-bg .stb-service-icon,
.stb-service-row--has-bg .stb-service-info,
.stb-service-row--has-bg .stb-service-name,
.stb-service-row--has-bg .stb-service-desc,
.stb-service-row--has-bg .stb-service-duration,
.stb-service-row--has-bg .stb-service-price {
  position: relative;
  z-index: 1;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.stb-service-row--has-bg .stb-service-desc,
.stb-service-row--has-bg .stb-service-duration { color: rgba(255, 255, 255, 0.8); }

.stb-service-row--has-bg.selected {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.stb-service-row--has-bg.selected::before {
  z-index: 2;
}

/* ─── SVG icon styling in cards ─── */
.stb-card-icon .stb-svg,
.stb-service-icon .stb-svg {
  width: 1em;
  height: 1em;
}

/* ─── Service Cards (horizontal) ─── */
.stb-services-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.stb-service-row {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 2px solid var(--stb-border);
  border-radius: var(--stb-radius);
  padding: 16px 20px;
  cursor: pointer;
  transition: all var(--stb-transition);
  background: var(--stb-card);
  position: relative;
}

.stb-service-row:hover {
  border-color: #93c5fd;
  background: var(--stb-primary-light);
}

.stb-service-row.selected {
  border-color: var(--stb-primary);
  background: var(--stb-primary-light);
  box-shadow: 0 0 0 3px var(--stb-primary-ring);
}

.stb-service-row.selected::before {
  content: '✓';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--stb-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: stbPop 0.3s ease-out;
}

.stb-service-icon { font-size: 28px; flex-shrink: 0; }
.stb-service-check { font-size: 20px; flex-shrink: 0; color: var(--stb-text-muted); }
.stb-service-row.selected .stb-service-check { color: var(--stb-primary); }
.stb-service-info { flex: 1; }
.stb-service-name { font-weight: 700; font-size: 15px; color: var(--stb-text); }
.stb-service-desc { font-size: 13px; color: var(--stb-text-muted); margin-top: 2px; line-height: 1.4; }
.stb-service-duration { font-size: 12px; color: var(--stb-text-muted); margin-top: 2px; }
.stb-service-price { font-size: 18px; font-weight: 800; color: var(--stb-primary); flex-shrink: 0; }

/* ─── Tire Type Toggle ─── */
.stb-tire-types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 28px; }

.stb-tire-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--stb-border);
  border-radius: var(--stb-radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: all var(--stb-transition);
  background: var(--stb-card);
  position: relative;
}

.stb-tire-card input { position: absolute; opacity: 0; pointer-events: none; }

.stb-tire-card:hover {
  border-color: #93c5fd;
  background: var(--stb-primary-light);
}

.stb-tire-card.selected {
  border-color: var(--stb-primary);
  background: var(--stb-primary-light);
  box-shadow: 0 0 0 3px var(--stb-primary-ring);
}

.stb-tire-icon { font-size: 26px; flex-shrink: 0; }
.stb-tire-name { font-weight: 600; font-size: 14px; color: var(--stb-text); }
.stb-tire-desc { font-size: 11px; color: var(--stb-text-muted); }

/* ─── Tire Size Selector ─── */
.stb-tire-size-section {
  margin-bottom: 24px;
  padding: 20px;
  background: var(--stb-bg);
  border: 1.5px solid var(--stb-border);
  border-radius: var(--stb-radius);
}

.stb-tire-size-grid {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.stb-tire-size-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.stb-tire-size-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--stb-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.stb-tire-size-field select {
  width: 100%;
  padding: 12px 32px 12px 14px;
  border: 1.5px solid var(--stb-border);
  border-radius: var(--stb-radius-sm);
  font-size: 16px;
  font-weight: 600;
  color: var(--stb-text);
  background: var(--stb-card);
  cursor: pointer;
  transition: all 0.15s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' fill='none' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.stb-tire-size-field select:focus {
  outline: none;
  border-color: var(--stb-primary);
  box-shadow: 0 0 0 3px var(--stb-primary-ring);
}

.stb-tire-size-field select.filled {
  border-color: var(--stb-primary);
  background-color: var(--stb-primary-light);
}

.stb-tire-size-unit {
  position: absolute;
  right: 28px;
  bottom: 13px;
  font-size: 11px;
  color: var(--stb-text-muted);
  pointer-events: none;
}

.stb-tire-size-sep {
  font-size: 22px;
  font-weight: 700;
  color: var(--stb-text-muted);
  padding-bottom: 10px;
  flex-shrink: 0;
}

.stb-tire-size-preview {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--stb-card);
  border-radius: var(--stb-radius-sm);
  font-size: 13px;
  color: var(--stb-text-secondary);
  text-align: center;
  display: none;
}

.stb-tire-size-preview.visible {
  display: block;
}

.stb-tire-size-preview strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--stb-primary);
  letter-spacing: 0.5px;
}

/* ─── Form Fields ─── */
.stb-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.stb-field { display: flex; flex-direction: column; }
.stb-field.full { grid-column: 1 / -1; }

.stb-field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--stb-text-secondary);
  margin-bottom: 6px;
}

.stb-field-label .req { color: var(--stb-danger); }

.stb-field input,
.stb-field textarea,
.stb-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--stb-border);
  border-radius: var(--stb-radius-sm);
  font-size: 14px;
  color: var(--stb-text);
  background: var(--stb-card);
  transition: all 0.15s;
  font-family: inherit;
}

.stb-field input:focus,
.stb-field textarea:focus,
.stb-field select:focus {
  outline: none;
  border-color: var(--stb-primary);
  box-shadow: 0 0 0 3px var(--stb-primary-ring);
}

.stb-field-hint {
  font-size: 11px;
  color: var(--stb-text-muted);
  margin-top: 4px;
}

/* ─── Products List View ─── */
.stb-product-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.stb-prod-row {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  align-items: center;
  gap: 16px;
  border: 1.5px solid var(--stb-border);
  border-radius: var(--stb-radius);
  padding: 12px 16px;
  background: var(--stb-card);
  transition: all var(--stb-transition);
}

.stb-prod-row:hover {
  box-shadow: var(--stb-shadow);
  border-color: #cbd5e1;
}

.stb-prod-row--sold { opacity: 0.5; pointer-events: none; }

/* Image column */
.stb-prod-row-img {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
}

.stb-prod-row-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stb-prod-row-img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 28px;
  color: #94a3b8;
  background: #f1f5f9;
}

.stb-prod-discount-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  line-height: 1;
}

/* Info column */
.stb-prod-row-info {
  min-width: 0;
}

.stb-prod-row-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--stb-text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stb-prod-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: var(--stb-text-secondary);
}

.stb-prod-row-spec {
  font-size: 11px;
  color: var(--stb-text-muted);
}

.stb-prod-delivery {
  font-size: 11px;
  color: var(--stb-warn);
  margin-top: 3px;
}

/* Price column */
.stb-prod-row-price {
  text-align: right;
  white-space: nowrap;
  min-width: 90px;
}

.stb-prod-row-price-old {
  font-size: 12px;
  color: var(--stb-text-muted);
  text-decoration: line-through;
}

.stb-prod-row-price-current {
  font-weight: 800;
  font-size: 16px;
  color: var(--stb-primary);
}

.stb-prod-row-price--sale {
  color: #dc2626;
}

.stb-prod-row-price-unit {
  font-size: 11px;
  color: var(--stb-text-muted);
}

/* Stock column */
.stb-prod-row-stock {
  text-align: center;
  min-width: 60px;
}

.stb-prod-row-stock-count {
  font-size: 13px;
  font-weight: 600;
  color: #059669;
}

.stb-prod-row-stock--low { color: #d97706; }
.stb-prod-row-stock--out { color: #dc2626; }

/* Actions column */
.stb-prod-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stb-prod-row-qty-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--stb-border);
  border-radius: 8px;
  overflow: hidden;
}

.stb-prod-row-qty-btn {
  width: 30px;
  height: 34px;
  border: none;
  background: var(--stb-bg);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  color: var(--stb-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.stb-prod-row-qty-btn:hover:not(:disabled) { background: #e2e8f0; }
.stb-prod-row-qty-btn:disabled { opacity: 0.3; cursor: default; }

.stb-prod-row-qty {
  width: 38px;
  height: 34px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--stb-border);
  border-right: 1px solid var(--stb-border);
  font-size: 14px;
  font-weight: 600;
  background: #fff;
  -moz-appearance: textfield;
  appearance: textfield;
}

.stb-prod-row-qty::-webkit-inner-spin-button,
.stb-prod-row-qty::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stb-prod-row-add {
  padding: 8px 14px;
  background: var(--stb-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s;
}

.stb-prod-row-add:hover:not(:disabled) { background: var(--stb-primary-hover); }
.stb-prod-row-add:disabled { opacity: 0.4; cursor: default; }

.stb-badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.stb-badge--summer { background: #fef3c7; color: #92400e; }
.stb-badge--winter { background: #dbeafe; color: #1e40af; }
.stb-badge--all { background: #d1fae5; color: #065f46; }
.stb-badge--stock { background: #d1fae5; color: #065f46; }
.stb-badge--order { background: #fef3c7; color: #92400e; }

/* ─── Product Detail Modal ─── */
.stb-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  padding: 16px;
}

.stb-detail-content {
  background: #fff;
  border-radius: 16px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
}

.stb-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 24px 12px;
  border-bottom: 1px solid var(--stb-border);
}

.stb-detail-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--stb-text);
}

.stb-detail-header-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--stb-text-secondary);
}

/* Tabs */
.stb-detail-tabs {
  display: flex;
  border-bottom: 2px solid var(--stb-border);
  padding: 0 24px;
  gap: 0;
  overflow-x: auto;
}

.stb-detail-tab {
  padding: 10px 16px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--stb-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all 0.15s;
}

.stb-detail-tab:hover { color: var(--stb-text); }
.stb-detail-tab.active {
  color: var(--stb-primary);
  border-bottom-color: var(--stb-primary);
}

/* Tab panes */
.stb-detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.stb-detail-pane { display: none; }
.stb-detail-pane.active { display: block; }

/* Overview tab */
.stb-detail-hero {
  display: flex;
  gap: 24px;
}

.stb-detail-hero-img {
  position: relative;
  width: 220px;
  min-height: 160px;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
}

.stb-detail-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stb-detail-hero-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 48px;
  color: #94a3b8;
}

.stb-detail-discount {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 13px;
  padding: 4px 8px;
}

.stb-detail-hero-info {
  flex: 1;
  min-width: 0;
}

.stb-detail-price-card {
  padding: 14px 16px;
  background: #f0f7ff;
  border-radius: 10px;
  margin-bottom: 16px;
}

.stb-detail-price-old {
  font-size: 13px;
  color: var(--stb-text-muted);
  text-decoration: line-through;
}

.stb-detail-price-main {
  font-size: 26px;
  font-weight: 800;
  color: var(--stb-primary);
}

.stb-detail-price--sale { color: #dc2626; }

.stb-detail-price-per {
  font-size: 14px;
  font-weight: 500;
  color: var(--stb-text-muted);
}

.stb-detail-price-save {
  font-size: 12px;
  color: #059669;
  font-weight: 600;
  margin-top: 4px;
}

.stb-detail-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stb-detail-quick-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stb-detail-quick-label {
  font-size: 11px;
  color: var(--stb-text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.stb-detail-quick-item > span:last-child {
  font-size: 13px;
  font-weight: 600;
  color: var(--stb-text);
}

.stb-detail-stock-ok { color: #059669; }
.stb-detail-stock-order { color: #d97706; }

/* Media links */
.stb-detail-media {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.stb-detail-media-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1.5px solid var(--stb-border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--stb-primary);
  text-decoration: none;
  transition: all 0.15s;
}

.stb-detail-media-item:hover {
  background: #eff6ff;
  border-color: var(--stb-primary);
}

/* Specs tab */
.stb-detail-spec-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stb-detail-spec-section {}

.stb-detail-spec-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--stb-text);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--stb-border);
}

.stb-detail-spec-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
}

.stb-detail-spec-label { color: var(--stb-text-secondary); }
.stb-detail-spec-value { font-weight: 600; color: var(--stb-text); }

/* Warranty & DOT tab */
.stb-detail-warranty {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stb-detail-warranty-card,
.stb-detail-dot-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--stb-bg);
  border-radius: 12px;
  border: 1px solid var(--stb-border);
}

.stb-detail-warranty-icon,
.stb-detail-dot-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.stb-detail-warranty-title,
.stb-detail-dot-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--stb-text);
  margin-bottom: 4px;
}

.stb-detail-warranty-text {
  font-size: 13px;
  color: var(--stb-text-secondary);
  line-height: 1.5;
}

.stb-detail-dot-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--stb-primary);
  font-family: monospace;
  margin: 4px 0;
}

.stb-detail-dot-explain {
  font-size: 12px;
  color: var(--stb-text-muted);
  line-height: 1.4;
}

/* Description tab */
.stb-detail-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--stb-text-secondary);
  white-space: pre-wrap;
}

/* Detail footer */
.stb-detail-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-top: 1.5px solid var(--stb-border);
  background: var(--stb-bg);
}

.stb-detail-footer-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.stb-detail-footer-price-old {
  font-size: 13px;
  color: var(--stb-text-muted);
  text-decoration: line-through;
}

.stb-detail-footer-price-main {
  font-size: 18px;
  font-weight: 800;
  color: var(--stb-primary);
}

.stb-detail-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stb-detail-add {
  padding: 10px 20px;
  background: var(--stb-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.stb-detail-add:hover:not(:disabled) { background: var(--stb-primary-hover); }
.stb-detail-add:disabled { opacity: 0.4; cursor: default; }

/* ─── Responsive: product list → stacked on mobile ─── */
@media (max-width: 768px) {
  .stb-prod-row {
    grid-template-columns: 64px 1fr;
    gap: 10px;
    padding: 12px;
  }
  .stb-prod-row-img { width: 64px; height: 64px; }
  .stb-prod-row-price,
  .stb-prod-row-stock,
  .stb-prod-row-actions {
    grid-column: 1 / -1;
  }
  .stb-prod-row-price {
    display: flex;
    gap: 8px;
    align-items: baseline;
    text-align: left;
  }
  .stb-prod-row-stock { text-align: left; }
  .stb-prod-row-actions { justify-content: flex-end; }
  .stb-detail-hero { flex-direction: column; }
  .stb-detail-hero-img { width: 100%; max-height: 200px; }
  .stb-detail-content { max-height: 95vh; border-radius: 12px; }
  .stb-detail-tab { padding: 8px 12px; font-size: 12px; }
}

/* ─── Cart Mini ─── */
.stb-cart {
  background: var(--stb-bg);
  border: 1.5px solid var(--stb-border);
  border-radius: var(--stb-radius);
  padding: 16px;
  margin-bottom: 16px;
}

.stb-cart-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stb-cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--stb-border);
  font-size: 13px;
}

.stb-cart-item:last-of-type { border-bottom: none; }

.stb-cart-remove {
  background: none;
  border: none;
  color: var(--stb-danger);
  cursor: pointer;
  font-size: 16px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.15s;
}

.stb-cart-remove:hover { background: #fef2f2; }

.stb-cart-total {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  margin-top: 8px;
  border-top: 2px solid var(--stb-border);
  font-weight: 700;
  font-size: 15px;
}

/* ─── Location Cards ─── */
.stb-locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.stb-location-card {
  border: 2px solid var(--stb-border);
  border-radius: var(--stb-radius);
  padding: 18px;
  cursor: pointer;
  transition: all var(--stb-transition);
  background: var(--stb-card);
}

.stb-location-card:hover { border-color: #93c5fd; background: var(--stb-primary-light); }
.stb-location-card.selected { border-color: var(--stb-primary); background: var(--stb-primary-light); box-shadow: 0 0 0 3px var(--stb-primary-ring); }

.stb-loc-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.stb-loc-address { font-size: 13px; color: var(--stb-text-secondary); }
.stb-loc-contact { font-size: 12px; color: var(--stb-text-muted); margin-top: 6px; }
.stb-loc-default-badge { display: inline-block; padding: 2px 8px; background: #dbeafe; color: #1e40af; font-size: 11px; font-weight: 600; border-radius: 6px; margin-top: 6px; }

/* ─── Calendar ─── */
.stb-calendar { margin-bottom: 24px; }

.stb-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.stb-cal-nav-title { font-weight: 700; font-size: 16px; }

.stb-cal-btn {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--stb-border);
  border-radius: 10px;
  background: var(--stb-card);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  color: var(--stb-text-secondary);
}

.stb-cal-btn:hover { background: var(--stb-bg); border-color: #cbd5e1; }

.stb-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.stb-cal-head {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--stb-text-muted);
  padding: 8px 0;
}

.stb-cal-day {
  text-align: center;
  padding: 10px 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
  color: var(--stb-text);
}

.stb-cal-day:hover:not(.disabled):not(.empty) { background: var(--stb-primary-light); }
.stb-cal-day.selected { background: var(--stb-primary); color: #fff; font-weight: 700; box-shadow: 0 2px 8px rgba(37,99,235,0.3); }
.stb-cal-day.today { border: 2px solid var(--stb-primary); }
.stb-cal-day.disabled { color: #cbd5e1; cursor: not-allowed; }
.stb-cal-day.empty { cursor: default; }

/* ─── Time Slots ─── */
.stb-slots-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; }

.stb-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}

.stb-slot {
  text-align: center;
  padding: 10px;
  border: 1.5px solid var(--stb-border);
  border-radius: var(--stb-radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s;
  background: var(--stb-card);
}

.stb-slot:hover:not(.unavailable) { border-color: #93c5fd; background: var(--stb-primary-light); }
.stb-slot.selected { background: var(--stb-primary); color: #fff; border-color: var(--stb-primary); box-shadow: 0 2px 8px rgba(37,99,235,0.3); }
.stb-slot.unavailable { color: #cbd5e1; background: var(--stb-bg); cursor: not-allowed; text-decoration: line-through; }

/* ─── Payment Methods ─── */
.stb-payments { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }

.stb-payment-card {
  border: 2px solid var(--stb-border);
  border-radius: var(--stb-radius);
  padding: 14px 20px;
  cursor: pointer;
  transition: all var(--stb-transition);
  background: var(--stb-card);
  display: flex;
  align-items: center;
  gap: 10px;
}

.stb-payment-card:hover { border-color: #93c5fd; }
.stb-payment-card.selected { border-color: var(--stb-primary); background: var(--stb-primary-light); box-shadow: 0 0 0 3px var(--stb-primary-ring); }

.stb-pay-icon { font-size: 22px; }
.stb-pay-name { font-weight: 600; font-size: 14px; }

/* ─── Checkbox & Terms ─── */
.stb-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 0;
}

.stb-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--stb-primary);
  flex-shrink: 0;
  cursor: pointer;
}

.stb-link { color: var(--stb-primary); text-decoration: underline; cursor: pointer; }
.stb-link:hover { color: var(--stb-primary-hover); }
.req { color: var(--stb-danger); }

/* ─── Info & Helper Boxes ─── */
.stb-info-box {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--stb-primary-light);
  border: 1px solid #bfdbfe;
  border-radius: var(--stb-radius);
  margin-bottom: 20px;
  align-items: flex-start;
}

.stb-info-box p { margin: 4px 0 0; font-size: 13px; color: var(--stb-text-secondary); }
.stb-info-icon { font-size: 22px; flex-shrink: 0; }

.stb-warning-box {
  padding: 12px 16px;
  background: var(--stb-warn-light);
  border: 1px solid #fde68a;
  border-radius: var(--stb-radius-sm);
  font-size: 13px;
  color: #92400e;
  margin-bottom: 16px;
}

/* ─── Confirmation Page (Full Overview) ─── */
.stb-confirm {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stb-confirm-section {
  background: var(--stb-bg);
  border: 1.5px solid var(--stb-border);
  border-radius: var(--stb-radius);
  padding: 20px;
}

.stb-confirm-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--stb-text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stb-confirm-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--stb-border);
}

.stb-confirm-row:last-child { border-bottom: none; }
.stb-confirm-label { color: var(--stb-text-secondary); }
.stb-confirm-value { font-weight: 600; color: var(--stb-text); text-align: right; }

.stb-confirm-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: var(--stb-radius);
  color: #f1f5f9;
}

.stb-confirm-total-label { font-size: 16px; font-weight: 600; }
.stb-confirm-total-amount { font-size: 28px; font-weight: 800; }

/* ─── Buttons ─── */
.stb-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--stb-border);
}

.stb-btn {
  padding: 13px 32px;
  border: none;
  border-radius: var(--stb-radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stb-btn-next {
  background: var(--stb-primary);
  color: #fff;
  margin-left: auto;
}

.stb-btn-next:hover { background: var(--stb-primary-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,0.3); }
.stb-btn-next:disabled { background: #94a3b8; cursor: not-allowed; transform: none; box-shadow: none; }

.stb-btn-back {
  background: var(--stb-bg);
  color: var(--stb-text-secondary);
  border: 1.5px solid var(--stb-border);
}

.stb-btn-back:hover { background: var(--stb-border); }

.stb-btn-submit {
  background: var(--stb-success);
  color: #fff;
  margin-left: auto;
  padding: 15px 40px;
  font-size: 16px;
}

.stb-btn-submit:hover { background: #15803d; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(22,163,74,0.3); }
.stb-btn-submit:disabled { background: #94a3b8; cursor: not-allowed; transform: none; box-shadow: none; }

/* ─── Success Screen ─── */
.stb-success-screen { text-align: center; padding: 40px 20px; }

.stb-success-anim {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--stb-success-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: stbSuccessPop 0.5s ease-out;
}

@keyframes stbSuccessPop {
  0%   { transform: scale(0); opacity: 0; }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.stb-success-anim span { font-size: 40px; }
.stb-success-screen h3 { font-size: 22px; color: var(--stb-success); margin-bottom: 8px; }
.stb-success-screen p { font-size: 15px; color: var(--stb-text-secondary); }

/* ─── Loading & Errors ─── */
.stb-loading {
  text-align: center;
  padding: 40px;
  color: var(--stb-text-muted);
  font-size: 14px;
}

.stb-loading::after {
  content: '';
  display: block;
  width: 28px;
  height: 28px;
  border: 3px solid var(--stb-border);
  border-top-color: var(--stb-primary);
  border-radius: 50%;
  margin: 12px auto 0;
  animation: stbSpin 0.7s linear infinite;
}

@keyframes stbSpin {
  to { transform: rotate(360deg); }
}

.stb-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: var(--stb-radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  margin-top: 12px;
}

/* ─── Skeleton Loaders ─── */
.stb-skeleton {
  background: linear-gradient(90deg, var(--stb-bg) 25%, #e9eef5 50%, var(--stb-bg) 75%);
  background-size: 200% 100%;
  animation: stbShimmer 1.5s infinite;
  border-radius: var(--stb-radius-sm);
  height: 64px;
}

@keyframes stbShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Modal ─── */
.stb-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: stbFadeIn 0.2s ease-out;
}

@keyframes stbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.stb-modal-content {
  background: var(--stb-card);
  border-radius: 20px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  animation: stbPop 0.3s ease-out;
}

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

.stb-modal-header h3 { font-size: 16px; font-weight: 700; }

.stb-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--stb-text-muted);
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.15s;
}

.stb-modal-close:hover { background: var(--stb-bg); color: var(--stb-text); }
.stb-modal-body { padding: 24px; overflow-y: auto; font-size: 14px; line-height: 1.7; }

/* ─── Own Tires Toggle ─── */
.stb-own-tires-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--stb-bg);
  border: 1.5px solid var(--stb-border);
  border-radius: var(--stb-radius);
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.15s;
}

.stb-own-tires-box:hover { border-color: #93c5fd; }
.stb-own-tires-box.active { background: var(--stb-primary-light); border-color: var(--stb-primary); }

/* ─── Mobile Responsive ─── */
@media (max-width: 899px) {
  .stb-layout {
    max-width: 100%;
    border-radius: 16px;
  }

  .stb-sidebar {
    padding: 20px;
  }

  .stb-sidebar-header { margin-bottom: 12px; }

  .stb-summary-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .stb-summary-item {
    flex: 1;
    min-width: 120px;
    padding: 10px 12px;
  }

  .stb-summary-item.empty { display: none; }

  .stb-sidebar-total {
    margin-top: 16px;
    padding-top: 14px;
  }

  .stb-total-amount { font-size: 22px; }

  .stb-main {
    padding: 24px 20px;
  }

  .stb-progress { margin-bottom: 20px; }
  .stb-progress-step .stb-progress-text { display: none; }
}

@media (max-width: 600px) {
  .stb-layout { border-radius: 12px; }

  .stb-main { padding: 20px 16px; }

  .stb-card-grid--2,
  .stb-card-grid--4 { grid-template-columns: 1fr; }

  .stb-card-grid--3 { grid-template-columns: 1fr; }

  .stb-tire-types { grid-template-columns: 1fr; }
  .stb-form-grid { grid-template-columns: 1fr; }
  .stb-tire-size-grid { gap: 4px; }
  .stb-tire-size-field select { padding: 10px 28px 10px 10px; font-size: 14px; }
  .stb-tire-size-sep { font-size: 18px; padding-bottom: 8px; }
  .stb-tire-size-unit { right: 24px; bottom: 11px; font-size: 10px; }
  .stb-products-grid { grid-template-columns: 1fr; }
  .stb-locations-grid { grid-template-columns: 1fr; }
  .stb-payments { flex-direction: column; }
  .stb-services-list .stb-service-row { flex-wrap: wrap; }
  .stb-btn { padding: 12px 20px; font-size: 14px; }
  .stb-step-title { font-size: 18px; }
  .stb-card { padding: 16px; }
  .stb-summary-item { min-width: 100%; }
}

/* ─── Price Summary (Step 2) ─── */
.stb-price-summary {
  background: var(--stb-surface);
  border: 2px solid var(--stb-primary);
  border-radius: var(--stb-radius);
  padding: 16px 20px;
  margin-top: 20px;
}
.stb-price-summary-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--stb-text);
  margin-bottom: 12px;
}
.stb-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
  color: var(--stb-text);
}
.stb-price-row + .stb-price-row {
  border-top: 1px solid var(--stb-border);
}
.stb-price-row--total {
  font-weight: 800;
  font-size: 16px;
  color: var(--stb-primary);
  padding-top: 10px;
  margin-top: 4px;
  border-top: 2px solid var(--stb-primary) !important;
}
.stb-price-row-name { flex: 1; }
.stb-price-row-value { font-weight: 700; flex-shrink: 0; margin-left: 12px; }

/* ─── SVG Icons ─── */
.stb-svg {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stb-svg--xs { width: 14px; height: 14px; vertical-align: -2px; }
.stb-svg--sm { width: 16px; height: 16px; vertical-align: -2px; }
.stb-svg--info { color: var(--stb-primary); }
.stb-svg--success { color: var(--stb-success); }
.stb-svg--warn { color: var(--stb-warn); }

/* SVG in info-icon wrapper */
.stb-info-icon .stb-svg { width: 22px; height: 22px; vertical-align: middle; }
.stb-detail-warranty-icon .stb-svg,
.stb-detail-dot-icon .stb-svg { width: 28px; height: 28px; }

/* Sidebar SVG icons */
.stb-sidebar-edit .stb-svg { width: 12px; height: 12px; vertical-align: -1px; }
.stb-sidebar-icon .stb-svg { width: 18px; height: 18px; }

/* Cart title, confirmation section title */
.stb-cart-title .stb-svg,
.stb-confirm-section-title .stb-svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; }

/* Location card icons */
.stb-loc-name .stb-svg,
.stb-loc-contact .stb-svg { width: 16px; height: 16px; vertical-align: -2px; margin-right: 2px; }

/* Detail modal footer button */
.stb-detail-add .stb-svg { width: 16px; height: 16px; vertical-align: -2px; margin-right: 4px; }

/* Spec section title icons */
.stb-detail-spec-title .stb-svg { width: 16px; height: 16px; vertical-align: -2px; margin-right: 4px; }

/* ─── EU Label Badges & Tooltips ─── */
.stb-eu-value {
  display: flex;
  align-items: center;
  gap: 6px;
}
.stb-eu-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.stb-eu-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--stb-border);
  color: var(--stb-text-secondary);
  font-size: 11px;
  font-weight: 700;
  cursor: help;
  position: relative;
  transition: background var(--stb-transition), color var(--stb-transition);
}
.stb-eu-tip:hover {
  background: var(--stb-primary);
  color: #fff;
}
