/* ============================================
   Selenny® Konfigurator — styles.css
   Light Mode Only · Compact · Full Width
   ============================================ */

/* ─── CSS Custom Properties ─────────────────── */

:root {
  --primary: #1a7a5e;
  --primary-rgb: 26, 122, 94;
  --primary-hover: #15604a;
  --bg: #f5f5f7;
  --bg-card: #ffffff;
  --bg-input: #f0f0f2;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-muted: #aeaeb2;
  --border: #e8e8ea;
  --border-header: #e0e0e3;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.06);
  --success: #1a7a5e;
  --warning: #f59e0b;
  --danger: #ff3b30;
  --info: #007aff;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --radius-pill: 100px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ─── Reset ──────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.5;
  font-size: 13px;
}

input, select, textarea, button {
  font-family: inherit;
  font-size: 14px !important;
}

img {
  max-width: 100%;
  height: auto;
}

/* ─── Keyframes (minimal) ────────────────────── */

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

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

/* ─── Loading Screen ─────────────────────────── */

.konfig-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 14px;
}

.loader {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ─── Header ─────────────────────────────────── */

.konfig-header {
  background: rgba(255,255,255,0.55);
  backdrop-filter: saturate(200%) blur(40px);
  -webkit-backdrop-filter: saturate(200%) blur(40px);
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.konfig-header.hidden {
  display: none;
}

.konfig-header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.konfig-header-logo-link {
  display: flex;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.konfig-header-logo-link:hover {
  opacity: 0.7;
}
.konfig-header-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.konfig-header h1 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.konfig-header h1 .accent {
  color: var(--primary);
}

.konfig-header-spacer {
  flex: 1;
}

.konfig-header-notice {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #8d6e00;
  white-space: nowrap;
  flex-shrink: 0;
}

.konfig-header-notice-icon {
  font-size: 14px;
  line-height: 1;
}

/* ─── Main Layout ────────────────────────────── */

.konfig-layout {
  padding: 72px 24px 52px 24px;
  padding-right: 368px;
  max-width: 1200px;
  margin: 0 auto;
}

.konfig-steps {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

/* ─── Price Sidebar (desktop: right column) ──── */

.price-sidebar {
  width: 320px;
  position: fixed;
  top: 68px;
  right: max(24px, calc((100vw - 1200px) / 2 + 24px));
  bottom: 40px;
  padding-bottom: 8px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
}

/* ─── Step Cards ─────────────────────────────── */

.konfig-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.konfig-step.completed .konfig-step-num {
  background: var(--primary);
  color: #fff;
}

.konfig-step.completed .konfig-step-num .step-number {
  display: none;
}

.konfig-step.completed .konfig-step-num .check-icon {
  display: flex;
}

/* ─── Step Header ────────────────────────────── */

.konfig-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.konfig-step-header:hover {
  opacity: 0.85;
}

.konfig-step.collapsed .konfig-step-header {
  margin-bottom: 0;
}

/* ─── Step Chevron ───────────────────────────── */

.konfig-step-chevron {
  margin-left: auto;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.konfig-step-chevron svg {
  width: 20px;
  height: 20px;
}

.konfig-step.collapsed .konfig-step-chevron {
  transform: rotate(-90deg);
}

/* ─── Step Body (accordion content) ─────────── */

.konfig-step-body {
  /* expanded by default */
}

.konfig-step-body.collapsed {
  display: none;
}

/* ─── Step Summary (collapsed state) ────────── */

.konfig-step-summary {
  display: none;
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
  margin-top: 4px;
  line-height: 1.4;
}

.konfig-step.collapsed .konfig-step-summary {
  display: block;
}

.konfig-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-input);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.konfig-step-num .step-number {
  display: flex;
}

.konfig-step-num .check-icon {
  display: none;
  width: 14px;
  height: 14px;
}

.konfig-step-num .check-icon svg {
  width: 14px;
  height: 14px;
}

.konfig-step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.konfig-step-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.konfig-step-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(26, 122, 94, 0.08);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  margin-left: auto;
}

/* ─── Step 1: Product Grid ───────────────────── */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.product-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
}

.product-card-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
}

.product-card-check svg {
  width: 10px;
  height: 10px;
}

.product-card.active .product-card-check {
  display: flex;
}

.product-card-icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 6px;
}

.product-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 2px;
}

.product-card-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.3;
  margin-bottom: 4px;
}

.product-card-price {
  font-size: 11px;
  color: var(--primary);
  font-weight: 500;
}

/* ─── Step 2: Length ──────────────────────────── */

.length-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.length-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.length-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  height: 38px;
  gap: 4px;
}

.length-input {
  width: 60px;
  border: none;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  text-align: right;
  outline: none;
}

.length-unit {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.length-validation {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
}

.length-validation.valid {
  color: var(--primary);
}

.length-validation.valid svg {
  width: 12px;
  height: 12px;
}

.length-validation.invalid {
  color: var(--danger);
}

.length-slider-wrapper {
  padding: 0 2px;
}

.length-range {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, var(--primary) 0%, var(--primary) 50%, var(--border) 50%, var(--border) 100%);
  border-radius: 3px;
  outline: none;
}

.length-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.length-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.length-range::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
}

.length-range::-moz-range-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--primary);
}

.length-bounds {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

/* ─── Step 3: Diameter Pills ─────────────────── */

.diameter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.diameter-pill {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.diameter-pill:hover {
  border-color: var(--primary);
}

.diameter-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.diameter-pill.active .surcharge-badge {
  color: rgba(255,255,255,0.8);
}

.surcharge-badge {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 400;
}

/* ─── Step 4: Hook Grid ──────────────────────── */

.hook-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.hook-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  position: relative;
  text-align: center;
  transition: border-color 0.2s;
}

.hook-card:hover {
  border-color: var(--primary);
}

.hook-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.15);
}

.hook-card-check {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
}

.hook-card-check svg {
  width: 9px;
  height: 9px;
}

.hook-card.active .hook-card-check {
  display: flex;
}

.hook-card-icon {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 4px;
}

.hook-card-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 2px;
}

.hook-card-price {
  font-size: 10px;
  color: var(--text-secondary);
}

.hook-card-price.free {
  color: var(--primary);
}

/* ─── Step 5: Color Swatches ─────────────────── */

.color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  border: 2px solid transparent;
  transition: transform 0.2s, border-color 0.2s;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

.color-swatch:hover {
  transform: scale(1.1);
}

.color-swatch.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.3), inset 0 0 0 1px rgba(0,0,0,0.1);
}

.color-swatch-inner-check {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}

.color-swatch-inner-check svg {
  width: 14px;
  height: 14px;
}

.color-swatch.active .color-swatch-inner-check {
  display: flex;
}

.color-swatch-surcharge {
  position: absolute;
  top: -6px;
  right: -10px;
  font-size: 8px;
  background: var(--warning);
  color: #fff;
  padding: 1px 4px;
  border-radius: 4px;
  white-space: nowrap;
  font-weight: 600;
}

.color-swatch-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: var(--text-secondary);
  white-space: nowrap;
  margin-top: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.color-swatch:hover .color-swatch-label,
.color-swatch.active .color-swatch-label {
  opacity: 1;
}

/* ─── Step 6: Quantity ───────────────────────── */

.qty-control {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 16px !important;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: var(--bg-input);
}

.qty-btn:active {
  background: var(--border);
}

.qty-input {
  width: 56px;
  height: 34px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--bg-input);
  color: var(--text);
  font-weight: 600;
  outline: none;
}

.qty-input:focus {
  border-color: var(--primary);
}

.qty-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.discount-tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.discount-tier {
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  color: var(--text-secondary);
}

.discount-tier.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.tier-percent {
  font-weight: 600;
}

.discount-hint {
  font-size: 12px;
  color: var(--warning);
  padding: 6px 10px;
  background: rgba(245, 158, 11, 0.08);
  border-radius: var(--radius-xs);
}

/* ─── Warning Box ────────────────────────────── */

.warning-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-xs);
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.warning-box-icon {
  font-size: 13px;
  flex-shrink: 0;
  line-height: 1;
}

.warning-box-content h4 {
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 1px;
}

.warning-box-content p {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ─── Product Preview (sidebar) ──────────────── */

.product-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}

.product-preview-placeholder {
  color: var(--text-muted);
  margin-bottom: 8px;
}

.product-preview-placeholder svg {
  width: 100%;
  max-height: 120px;
}

.product-preview-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.product-preview-config {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ─── Sidebar Quantity Card ──────────────────── */

.sidebar-qty-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.sidebar-qty-card .qty-control {
  gap: 8px;
}

.sidebar-qty-card .qty-row {
  justify-content: center;
}

.sidebar-qty-card .discount-tiers {
  justify-content: center;
}

.sidebar-qty-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  text-align: center;
}

/* ─── Price Card (sidebar) ───────────────────── */

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.mobile-price-toggle {
  display: none;
}

.price-card-inner {
  padding: 14px;
}

.price-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 3px 0;
  font-size: 12px;
}

.price-row .label {
  color: var(--text-secondary);
}

.price-row .value {
  font-weight: 500;
  color: var(--text);
  text-align: right;
}

.price-row.discount .label,
.price-row.discount .value {
  color: var(--primary);
}

.price-row.total {
  padding: 6px 0 2px;
}

.price-row.total .label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.price-row.total .value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.price-row.per-piece {
  padding-bottom: 8px;
}

.price-row.per-piece .label,
.price-row.per-piece .value {
  font-size: 11px;
  color: var(--text-muted);
}

.price-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 6px 0;
}

/* ─── Cart & Action Buttons ──────────────────── */

.btn-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px !important;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
  position: sticky;
  bottom: 0;
  z-index: 10;
  flex-shrink: 0;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}

.btn-cart svg {
  width: 16px;
  height: 16px;
}

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

.btn-cart:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.5;
}

.btn-cart-disabled-msg {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 34px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px !important;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 6px;
}

.btn-secondary svg {
  width: 14px;
  height: 14px;
}

.btn-secondary:hover {
  background: var(--bg-input);
}

.price-delivery {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ─── Footer (hidden — powered-by in bottom bar) */

.konfig-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f2;
  border-top: 1px solid #e0e0e3;
  font-size: 11px;
  color: #aeaeb2;
  z-index: 100;
}
.konfig-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.konfig-footer a:hover {
  text-decoration: underline;
}
.konfig-footer.hidden {
  display: none;
}

/* ─── Modal Overlay ──────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal-box {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-md);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.modal-summary {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  padding: 10px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
}

.modal-field {
  margin-bottom: 10px;
}

.modal-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.modal-field input,
.modal-field textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--bg-input);
  color: var(--text);
  outline: none;
}

.modal-field input:focus,
.modal-field textarea:focus {
  border-color: var(--primary);
}

.modal-field textarea {
  resize: vertical;
  min-height: 60px;
}

.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.modal-actions .btn-secondary {
  margin-top: 0;
}

.modal-actions .btn-cart {
  margin-top: 0;
}

/* ─── Success Message (modal) ────────────────── */

.success-msg {
  text-align: center;
  padding: 12px 0;
}

.success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  width: 48px;
  height: 48px;
}

.success-msg h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.success-msg p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ─── Toggle (mobile price) ──────────────────── */

.toggle-label {
  font-size: 11px;
  color: var(--text-secondary);
}

.toggle-total {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.toggle-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.2s;
}

.toggle-arrow svg {
  width: 20px;
  height: 20px;
}

.mobile-price-toggle.expanded .toggle-arrow {
  transform: rotate(180deg);
}

/* ─── Utility ────────────────────────────────── */

.hidden {
  display: none !important;
}

/* ─── Responsive: Tablets (< 1024px) ─────────── */

@media (max-width: 1024px) {
  .konfig-layout {
    flex-direction: column;
    max-width: 100%;
  }

  .price-sidebar {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    z-index: 90;
    background: #f0f0f2;
    border-top: 1px solid var(--border-header);
    padding: 0;
    gap: 0;
    border-radius: 0;
  }

  .product-preview {
    display: none;
  }

  .sidebar-qty-card {
    padding: 10px 16px;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
  }

  .price-card {
    border: none;
    border-radius: 0;
    background: #f0f0f2;
  }

  .mobile-price-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    cursor: pointer;
  }

  .price-card-inner {
    display: none;
    padding: 0 16px 12px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
  }

  .price-card-inner.expanded {
    display: block;
  }

  .konfig-layout {
    padding-bottom: 120px;
  }
}

/* ─── Responsive: Mobile (< 768px) ───────────── */

@media (max-width: 768px) {
  .konfig-layout {
    padding: 56px 12px 140px 12px;
  }

  .konfig-header {
    padding: 0 12px;
  }

  .konfig-header-inner {
    flex-wrap: wrap;
  }

  .konfig-header-notice {
    white-space: normal;
    font-size: 11px;
    order: 3;
    flex-basis: 100%;
    margin-top: -4px;
  }

  .konfig-header-spacer {
    display: none;
  }

  .konfig-step {
    padding: 12px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .hook-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .konfig-step-header {
    gap: 10px;
    margin-bottom: 10px;
  }

  .konfig-step-title {
    font-size: 15px;
  }
}

/* ─── Responsive: Small phones (< 480px) ─────── */

@media (max-width: 480px) {
  .hook-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .qty-row {
    flex-wrap: wrap;
  }

  .modal-box {
    padding: 16px;
  }
}

/* ─── Print ──────────────────────────────────── */

@media print {
  .konfig-header,
  .konfig-footer,
  .price-sidebar,
  .btn-cart,
  .btn-secondary {
    display: none !important;
  }

  .konfig-layout {
    padding: 0;
  }

  .konfig-step {
    break-inside: avoid;
    border: 1px solid #ccc;
  }
}
