/* Lannertmarkt + Ille - Warenkorb / Kasse (lane: checkout-cart) */

:root {
  --hco-border: #e3e4e8;
  --hco-surface: #f6f7f8;
  --hco-muted: #6c707a;
  --hco-radius: 8px;
  --hco-shadow: 0 2px 10px rgba(20, 20, 25, .07);
}

.hco {
  font-family: 'Barlow', system-ui, sans-serif;
  color: #1f1f1f;
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 32px 56px;
}

@media (max-width: 991px) { .hco { padding: 14px 16px 40px; } }

.hco h1, .hco h2, .hco h3 { margin: 0; font-weight: 700; }
.hco img { max-width: 100%; }

/* ---------- breadcrumbs ---------- */
.hco-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  list-style: none; margin: 0 0 14px; padding: 0;
  font-size: 13px; color: var(--hco-muted);
}
.hco-crumbs li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hco-crumbs li + li::before { content: "\203A"; color: #b7b9be; }
.hco-crumbs a { color: var(--hco-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.hco-crumbs li:last-child a { color: #1f1f1f; font-weight: 600; }

/* ---------- headings ---------- */
.hco-title {
  font-family: 'Archivo Black', 'Barlow', sans-serif;
  font-size: 28px; line-height: 1.2; margin-bottom: 4px;
}
.hco-sub { font-size: 14px; color: var(--hco-muted); margin: 0 0 18px; }

/* ---------- buttons ---------- */
.hco-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border: 0; border-radius: var(--hco-radius);
  background: var(--hi-red, #d0111b); color: #fff;
  font: 700 15px/1 'Barlow', sans-serif; cursor: pointer; text-align: center;
}
.hco-btn:hover { background: var(--hi-red-dark, #b00e16); color: #fff; }
.hco-btn:disabled, .hco-btn[disabled] { background: #c9cbd0; cursor: not-allowed; }
.hco-btn--ghost { background: #fff; color: #1f1f1f; border: 1px solid var(--hco-border); }
.hco-btn--ghost:hover { background: var(--hco-surface); color: #1f1f1f; }
.hco-btn--block { width: 100%; }

/* ---------- alerts ---------- */
.hco-alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: var(--hco-radius); font-size: 14px;
  margin-bottom: 14px; border: 1px solid var(--hco-border); background: var(--hco-surface);
}
.hco-alert--danger { border-color: #f2c2c5; background: #fdf0f1; color: #8c0f16; }
.hco-alert--success { border-color: #bde3cb; background: #eef8f2; color: #14623a; }
.hco-alert .hco-btn { height: 38px; }

/* ================= CART ================= */
.hco-cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
@media (max-width: 991px) { .hco-cart-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

.hco-items { display: flex; flex-direction: column; gap: 12px; }

.hco-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 150px 150px 40px;
  align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--hco-border); border-radius: var(--hco-radius);
  padding: 14px 16px;
}
.hco-item:hover { box-shadow: var(--hco-shadow); }

.hco-item__img {
  display: flex; align-items: center; justify-content: center;
  width: 112px; height: 112px; background: var(--hco-surface); border-radius: 6px; overflow: hidden;
}
.hco-item__img img { width: 100%; height: 100%; object-fit: contain; }

.hco-item__info { min-width: 0; }
.hco-item__name {
  display: block; font-size: 15px; font-weight: 600; line-height: 1.35; color: #1f1f1f;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.hco-item__name:hover { color: var(--hi-red, #d0111b); }
.hco-item__meta { margin: 6px 0 0; font-size: 12px; color: var(--hco-muted); }
.hco-item__meta span + span::before { content: "\00B7"; margin: 0 6px; }
.hco-item__opt { margin: 4px 0 0; font-size: 12px; color: var(--hco-muted); }
.hco-item__oos { color: var(--hi-red, #d0111b); font-weight: 600; }

/* quantity  -  [n]  + */
.hco-qty {
  display: inline-flex; align-items: stretch; flex-wrap: nowrap;
  border: 1px solid var(--hco-border); border-radius: var(--hco-radius); overflow: hidden; background: #fff;
}
.hco-qty button {
  width: 38px; height: 40px; border: 0; background: #fff; color: #1f1f1f;
  font-size: 18px; line-height: 1; cursor: pointer;
}
.hco-qty button:hover { background: var(--hco-surface); color: var(--hi-red, #d0111b); }
.hco-qty input {
  width: 48px; height: 40px; border: 0;
  border-left: 1px solid var(--hco-border); border-right: 1px solid var(--hco-border);
  text-align: center; font: 700 15px/1 'Barlow', sans-serif; border-radius: 0; background: #fff;
  -moz-appearance: textfield;
}
.hco-qty input::-webkit-outer-spin-button, .hco-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hco-qty.is-busy { opacity: .5; pointer-events: none; }

.hco-item__qty { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.hco-item__unit { font-size: 12px; color: var(--hco-muted); white-space: nowrap; }

.hco-item__total { text-align: right; font-size: 18px; font-weight: 700; white-space: nowrap; }
.hco-item__tax { display: block; font-size: 11px; font-weight: 400; color: var(--hco-muted); }

.hco-item__remove {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: #a9adb5; font-size: 16px; cursor: pointer; border-radius: 50%;
}
.hco-item__remove:hover { color: var(--hi-red, #d0111b); background: #fdf0f1; }

@media (max-width: 767px) {
  .hco-item { grid-template-columns: 84px minmax(0, 1fr) auto; gap: 10px; padding: 12px; align-items: start; }
  .hco-item__img { width: 84px; height: 84px; grid-column: 1; grid-row: 1 / span 2; }
  .hco-item__info { grid-column: 2; grid-row: 1; }
  .hco-item__remove { grid-column: 3; grid-row: 1; align-self: start; justify-self: end; }
  .hco-item__qty { grid-column: 2; grid-row: 2; align-self: center; }
  .hco-item__total { grid-column: 3; grid-row: 2; align-self: center; font-size: 16px; }
  .hco-item__name { -webkit-line-clamp: 3; font-size: 14px; }
  .hco-item__meta { font-size: 11px; }
  .hco-qty button { width: 34px; }
  .hco-qty input { width: 40px; }
}

/* cart totals card */
.hco-summary {
  position: sticky; top: 14px;
  background: #fff; border: 1px solid var(--hco-border); border-radius: var(--hco-radius);
  padding: 18px; box-shadow: var(--hco-shadow);
}
.hco-summary h2 { font-size: 17px; margin-bottom: 14px; }
.hco-totals { display: flex; flex-direction: column; gap: 8px; }
.hco-totals__row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: 14px; color: #3a3d44; }
.hco-totals__row span:last-child { white-space: nowrap; font-weight: 600; }
.hco-totals__row--grand {
  margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--hco-border);
  font-size: 18px; font-weight: 700; color: #1f1f1f;
}
.hco-totals__row--grand span:last-child { font-size: 20px; white-space: nowrap; }
.hco-summary .hco-btn { margin-top: 16px; }
.hco-summary__note { margin: 10px 0 0; font-size: 12px; color: var(--hco-muted); text-align: center; }
.hco-trust { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; font-size: 12px; color: var(--hco-muted); }
.hco-trust i { color: #1f9d4d; width: 16px; }

/* empty state */
.hco-empty {
  text-align: center; padding: 60px 20px;
  background: var(--hco-surface); border-radius: var(--hco-radius); border: 1px solid var(--hco-border);
}
.hco-empty i { font-size: 46px; color: #c2c6cd; }
.hco-empty h2 { font-size: 22px; margin: 18px 0 8px; font-family: 'Archivo Black', 'Barlow', sans-serif; }
.hco-empty p { margin: 0 0 22px; font-size: 15px; color: var(--hco-muted); }

/* ================= CHECKOUT ================= */
.hco-checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
@media (max-width: 991px) { .hco-checkout-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

.hco-card {
  background: #fff; border: 1px solid var(--hco-border); border-radius: var(--hco-radius);
  padding: 20px; margin-bottom: 16px;
}
.hco-card__title { font-size: 17px; font-weight: 700; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
/* ".hco h1, .hco h2, .hco h3 { margin: 0 }" oben ist spezifischer und hat den Abstand
   unter der Ueberschrift geschluckt - deshalb hier noch einmal mit .hco davor. */
.hco .hco-card__title { margin: 0 0 16px; }
.hco .hco-card__title + .hco-tabs { margin-top: 4px; }
.hco-card__title i { color: var(--hi-red, #d0111b); font-size: 15px; }
.hco-card__hint { font-size: 13px; color: var(--hco-muted); margin: -8px 0 14px; }

.hco-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hco-grid .hco-col-2 { grid-column: span 2; }
@media (max-width: 575px) { .hco-grid { grid-template-columns: 1fr; } .hco-grid .hco-col-2 { grid-column: span 1; } }

.hco-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hco-field > label { font-size: 13px; font-weight: 600; color: #3a3d44; }
.hco-field > label .hco-req { color: var(--hi-red, #d0111b); }
.hco-input, .hco-select, .hco-textarea {
  width: 100%; height: 44px; padding: 0 12px;
  border: 1px solid var(--hco-border); border-radius: var(--hco-radius);
  background: #fff; color: #1f1f1f; font: 400 15px/1 'Barlow', sans-serif;
}
.hco-textarea { height: auto; padding: 10px 12px; line-height: 1.5; resize: vertical; }
/* eigener Pfeil mit Abstand zum Feldrand statt des System-Pfeils */
.hco-select {
  padding: 0 38px 0 12px;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236b6d72'><path d='M4 6l4 4 4-4z'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.hco-select::-ms-expand { display: none; }
.hco-input:focus, .hco-select:focus, .hco-textarea:focus { border-color: var(--hi-red, #d0111b); }
.hco-input.is-invalid, .hco-select.is-invalid { border-color: var(--hi-red, #d0111b); background: #fdf7f7; }
.hco-error { display: none; font-size: 12px; color: var(--hi-red, #d0111b); }
.hco-error.is-shown { display: block; }

.hco-choice { display: flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; }
.hco-choice input[type=checkbox], .hco-choice input[type=radio] {
  width: 17px; height: 17px; margin: 0; flex: 0 0 auto;
  appearance: auto; -webkit-appearance: auto; accent-color: var(--hi-red, #d0111b);
  background: #fff; opacity: 1; position: static;
}

.hco-tabs { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.hco-tab {
  display: flex; align-items: center; gap: 9px; flex: 1 1 200px;
  padding: 12px 14px; border: 1px solid var(--hco-border); border-radius: var(--hco-radius);
  font-size: 14px; font-weight: 600; cursor: pointer; background: #fff;
}
.hco-tab.is-active { border-color: var(--hi-red, #d0111b); box-shadow: 0 0 0 1px var(--hi-red, #d0111b) inset; }

/* shipping / payment method lists */
.hco-methods { display: flex; flex-direction: column; gap: 10px; }
.hco-method {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px; border: 1px solid var(--hco-border); border-radius: var(--hco-radius);
  font-size: 14px; cursor: pointer; background: #fff;
}
.hco-method:hover { border-color: #c9ccd3; }
.hco-method.is-active { border-color: var(--hi-red, #d0111b); box-shadow: 0 0 0 1px var(--hi-red, #d0111b) inset; }
.hco-method input { width: 17px; height: 17px; margin: 0; accent-color: var(--hi-red, #d0111b); flex: 0 0 auto; }
.hco-method__name { flex: 1 1 auto; font-weight: 600; }
.hco-method__price { font-weight: 700; white-space: nowrap; }
.hco-method__group { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--hco-muted); margin-top: 6px; }
.hco-methods__loading { font-size: 14px; color: var(--hco-muted); }

.hco-consent { margin: 12px 0 0; font-size: 12px; color: var(--hco-muted); line-height: 1.55; }
.hco-consent a { text-decoration: none; }

/* order summary (right rail) */
.hco-order { position: sticky; top: 14px; }
.hco-order .hco-mini { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.hco-mini__row { display: flex; align-items: center; gap: 12px; }
.hco-mini__img {
  flex: 0 0 auto; width: 64px; height: 64px; border-radius: 6px; background: var(--hco-surface);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.hco-mini__img img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.hco-mini__qty {
  position: absolute; top: -8px; right: -8px; box-sizing: border-box;
  min-width: 22px; height: 22px; padding: 0 7px; white-space: nowrap;
  border-radius: 11px; background: var(--hi-red, #d0111b); color: #fff; border: 2px solid #fff;
  font: 700 11px/1 'Barlow', sans-serif; letter-spacing: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.hco-mini__info { flex: 1 1 auto; min-width: 0; font-size: 13px; }
.hco-mini__name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; color: #1f1f1f; font-weight: 600; line-height: 1.35;
}
.hco-mini__opt { color: var(--hco-muted); font-size: 12px; }
.hco-mini__total { font-weight: 700; white-space: nowrap; font-size: 14px; }

/* success page */
.hco-success { max-width: 720px; margin: 0 auto; text-align: center; padding: 40px 0 10px; }
.hco-success__icon {
  width: 82px; height: 82px; margin: 0 auto 20px; border-radius: 50%;
  background: #eef8f2; color: #1f9d4d; display: flex; align-items: center; justify-content: center; font-size: 36px;
}
.hco-success h1 { font-family: 'Archivo Black', 'Barlow', sans-serif; font-size: 27px; margin-bottom: 10px; }
.hco-success__text { font-size: 15px; color: var(--hco-muted); line-height: 1.6; }
.hco-success__text a { color: var(--hi-red, #d0111b); text-decoration: none; }
.hco-success__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ---------- mini cart (Schublade rechts) polish ---------- */
.hi-cart__panel { width: 400px; max-width: 100vw; }
/* Jede Zeile gleich aufgebaut: feste Bildspalte, flexible Mitte, feste Loeschspalte */
.hi-cart__row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) 24px;
  align-items: start; gap: 12px; padding: 12px 0;
}
.hi-cart__thumb {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  background: #f6f7f8; border-radius: 8px; overflow: hidden; flex: 0 0 auto;
}
.hi-cart__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.hi-cart__info { min-width: 0; min-height: 56px; gap: 6px; }
.hi-cart__name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.3; min-height: 2.6em;
}
.hi-cart__opts { display: flex; flex-direction: column; color: var(--hco-muted, #6b6b6b); font-size: 12px; }
/* Mengensteuerung immer unten buendig, damit Preise und Buttons auf einer Linie liegen */
.hi-cart__qty { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: nowrap; }
.hi-cart__qty-static { font-weight: 700; font-size: 13px; }
.hi-cart__remove { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; padding: 0; }
.hi-cart__totals div { gap: 12px; }
.hi-cart__totals div span:last-child { white-space: nowrap; font-weight: 600; }
.hi-cart__row form { flex: 0 0 auto; }
.hi-cart__remove:hover { color: var(--hi-red, #d0111b); }
.hi-mini-qty {
  display: inline-flex; align-items: stretch; border: 1px solid var(--hco-border, #e3e4e8);
  border-radius: 6px; overflow: hidden; background: #fff;
}
.hi-mini-qty button {
  width: 26px; height: 26px; border: 0; background: #fff; color: #1f1f1f;
  font-size: 14px; line-height: 1; cursor: pointer; padding: 0;
}
.hi-mini-qty button:hover { background: #f6f7f8; color: var(--hi-red, #d0111b); }
.hi-mini-qty span {
  min-width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
  font: 700 13px/1 'Barlow', sans-serif;
  border-left: 1px solid var(--hco-border, #e3e4e8); border-right: 1px solid var(--hco-border, #e3e4e8);
}
.hi-mini-qty.is-busy { opacity: .5; pointer-events: none; }
.hi-cart__price { font-weight: 700; white-space: nowrap; font-size: 13px; }

/* ---------- fallback styling for not-yet-rewritten checkout partials ---------- */
#checkout-checkout fieldset { border: 0; margin: 0 0 18px; padding: 0; }
#checkout-checkout legend { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
#checkout-checkout .form-control, #checkout-checkout .form-select {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--hco-border);
  border-radius: var(--hco-radius); background: #fff; font: 400 15px/1 'Barlow', sans-serif;
}
#checkout-checkout .form-select, #checkout-checkout select.form-control {
  padding: 0 38px 0 12px;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236b6d72'><path d='M4 6l4 4 4-4z'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
#checkout-checkout .form-select::-ms-expand, #checkout-checkout select.form-control::-ms-expand { display: none; }
#checkout-checkout .form-label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 5px; }
/* Bestaetigungs-Button der Zahlungsart-Erweiterung */
#checkout-payment .btn, #checkout-payment button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  height: 48px; padding: 0 22px; border: 0; border-radius: var(--hco-radius);
  background: var(--hi-red, #d0111b); color: #fff;
  font: 700 15px/1 'Barlow', sans-serif; cursor: pointer;
}
#checkout-payment .btn:disabled, #checkout-payment button:disabled { background: #c9cbd0; cursor: not-allowed; }

/* ---------- Schritt 1 eingeklappt (Kundendaten bestaetigt) ---------- */
#checkout-checkout [hidden] { display: none !important; }
.hco-done__body { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: #3a3d44; margin: 0 0 14px; }
.hco-done__body div:first-child { font-weight: 600; color: #1f1f1f; }
.hco-done .hco-btn--ghost { width: auto; height: 40px; padding: 0 16px; font-size: 14px; }
.hco-done .hco-card__title i { color: #1a8a4a; }

/* Versandkosten-Platzhalter in der Zusammenfassung */
.hco-totals__row--pending span:last-child { font-weight: 400; font-size: 13px; color: var(--hco-muted); white-space: normal; text-align: right; }
