/* ============================================================
   Bootsname Konfigurator – CSS
   ============================================================ */

:root {
  --bn-navy:        #1B3D7B;
  --bn-orange:      #F5A623;
  --bn-mid-blue:    #2E9ED6;
  --bn-light-blue:  #B8DCF0;
  --bn-bg:          #F7FAFD;
  --bn-white:       #FFFFFF;
  --bn-text-muted:  #4a5568;
  --bn-border:      #dde3ec;
  --bn-radius:      8px;
  --bn-transition:  0.2s ease;
}

/* ============================================================
   Konfigurator Layout
   ============================================================ */
.bn-configurator-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.bn-product-header {
  margin-bottom: 36px;
}

.bn-product-header .product_title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--bn-navy);
  margin-bottom: 12px;
}

.bn-product-desc {
  color: var(--bn-text-muted);
  line-height: 1.7;
  max-width: 640px;
}

.bn-konfigurator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 860px) {
  .bn-konfigurator-layout {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Form-Elemente
   ============================================================ */
.bn-field-group {
  margin-bottom: 24px;
}

.bn-label {
  display: block;
  font-weight: 600;
  color: var(--bn-navy);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.bn-input,
.bn-select {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--bn-border);
  border-radius: var(--bn-radius);
  font-size: 1rem;
  color: var(--bn-navy);
  background: var(--bn-white) !important;
  transition: border-color var(--bn-transition), box-shadow var(--bn-transition);
  font-family: inherit;
  box-sizing: border-box;
}

.bn-input:focus,
.bn-select:focus {
  outline: none;
  border-color: var(--bn-mid-blue);
  box-shadow: 0 0 0 3px rgba(46, 158, 214, 0.15);
}

.bn-hint {
  margin: 6px 0 0;
  font-size: 0.84rem;
  color: var(--bn-text-muted);
}

.bn-plot-notice {
  margin-top: 12px;
  padding: 12px 16px;
  background: #EBF6FD;
  border-left: 4px solid #2E9ED6;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #1B3D7B;
}

.bn-plot-notice p {
  margin: 0 0 10px;
  line-height: 1.5;
}

.bn-notice-link {
  display: inline-block;
  color: #2E9ED6;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.875rem;
}

.bn-notice-link:hover {
  text-decoration: underline;
}

/* ============================================================
   Farbauswahl
   ============================================================ */
.bn-color-select-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bn-selected-swatch {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 2px solid var(--bn-border);
  flex-shrink: 0;
  background: #eee;
  transition: background var(--bn-transition);
}

.bn-color-select {
  flex: 1;
}

/* ============================================================
   Dimension-Eingabe (Bootsname)
   ============================================================ */
.bn-dimension-toggle {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.bn-radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--bn-text-muted);
}

.bn-radio-label input[type="radio"] {
  accent-color: var(--bn-mid-blue);
}

.bn-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--bn-text-muted);
}

.bn-checkbox-label input[type="checkbox"] {
  accent-color: var(--bn-mid-blue);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.bn-dimension-inputs {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.bn-dim-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bn-dim-label {
  font-size: 0.82rem;
  color: var(--bn-text-muted);
  font-weight: 500;
}

.bn-dim-field {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bn-dim-separator {
  font-size: 1.1rem;
  color: var(--bn-text-muted);
  line-height: 1;
  user-select: none;
}

.bn-dim-field .bn-input {
  width: 110px;
}

.bn-unit {
  font-size: 0.9rem;
  color: var(--bn-text-muted);
  font-weight: 500;
}

.bn-dim-result {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bn-dim-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bn-navy);
}

.bn-dim-separator {
  font-size: 1.4rem;
  color: var(--bn-text-muted);
  font-weight: 300;
  align-self: flex-end;
  padding-bottom: 4px;
}

/* ============================================================
   Größen-Karten (Kennzeichen)
   ============================================================ */
.bn-size-options {
  display: flex;
  gap: 14px;
}

.bn-size-card {
  flex: 1;
  border: 2px solid var(--bn-border);
  border-radius: var(--bn-radius);
  padding: 16px;
  cursor: pointer;
  transition: border-color var(--bn-transition), box-shadow var(--bn-transition);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bn-size-card:hover {
  border-color: var(--bn-mid-blue);
}

.bn-size-card--active,
.bn-size-card:has(input:checked) {
  border-color: var(--bn-navy);
  background: rgba(27, 61, 123, 0.04);
  box-shadow: 0 0 0 3px rgba(27, 61, 123, 0.1);
}

.bn-size-card input[type="radio"] {
  display: none;
}

.bn-size-card-title {
  font-weight: 700;
  color: var(--bn-navy);
  font-size: 0.95rem;
}

.bn-size-card-dim {
  font-size: 0.85rem;
  color: var(--bn-text-muted);
}

/* ============================================================
   Datei-Upload (Plot)
   ============================================================ */
.bn-upload-zone {
  position: relative;
  border: 2px dashed var(--bn-light-blue);
  border-radius: var(--bn-radius);
  padding: 32px;
  text-align: center;
  background: var(--bn-bg);
  transition: border-color var(--bn-transition), background var(--bn-transition);
  cursor: pointer;
}

.bn-upload-zone:hover,
.bn-upload-zone.bn-dragover {
  border-color: var(--bn-mid-blue);
  background: rgba(46, 158, 214, 0.05);
}

.bn-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.bn-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.bn-upload-text {
  font-weight: 600;
  color: var(--bn-navy);
}

.bn-upload-formats {
  font-size: 0.83rem;
  color: var(--bn-text-muted);
}

.bn-upload-selected {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bn-white);
  border: 1px solid var(--bn-light-blue);
  border-radius: 6px;
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--bn-navy);
}

.bn-btn-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--bn-text-muted);
  padding: 0 4px;
}

/* ============================================================
   Preis-Anzeige
   ============================================================ */
.bn-price-display {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--bn-navy) 0%, #254d96 100%);
  border-radius: var(--bn-radius);
  margin-bottom: 20px;
}

.bn-price-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
}

.bn-price-value {
  color: var(--bn-orange);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ============================================================
   In-den-Warenkorb Button
   ============================================================ */
.bn-cart-btn-wrap {
  margin-top: 4px;
}

.bn-add-to-cart-btn {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
}

/* ============================================================
   Vorschau-Box
   ============================================================ */
.bn-preview-box {
  position: sticky;
  top: 100px;
  background: var(--bn-white);
  border: 1px solid var(--bn-border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 16px rgba(27, 61, 123, 0.07);
}

.bn-preview-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bn-navy);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bn-light-blue);
}

.bn-canvas-wrap {
  position: relative;
  background: var(--bn-bg);
  border-radius: 8px;
  overflow: hidden;
  min-height: 140px;
}

#bn-preview-canvas {
  display: block;
  width: 100%;
  height: auto;
}

.bn-canvas-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--bn-text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 16px;
}

.bn-dimension-ruler {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--bn-text-muted);
  text-align: center;
}

/* Plot-Vorschau */
.bn-plot-preview {
  position: relative;
  background: var(--bn-bg);
  border-radius: 8px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bn-file-info-box {
  padding: 16px;
  background: var(--bn-light-blue);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--bn-navy);
  text-align: center;
}

/* ============================================================
   KZ-Spezifisch: Blockletter-Stil in Vorschau
   ============================================================ */
.bn-kz-input {
  font-family: 'Oswald', 'Bebas Neue', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1.1rem;
}

/* ============================================================
   Mengenfeld
   ============================================================ */
.bn-qty-group { margin-top: 8px; }

.bn-qty-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bn-qty-input {
  width: 80px !important;
  text-align: center;
}

/* ============================================================
   Preisaufschlüsselung
   ============================================================ */
.bn-price-breakdown {
  font-size: 0.875rem;
  color: var(--bn-text-muted);
  margin-bottom: 10px;
  border-bottom: 1px solid var(--bn-light-blue);
  padding-bottom: 8px;
}

.bn-price-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 0;
}

.bn-price-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 4px;
}
