/* --------------------------------------------------------------------------
   Büro Marxer: Shop (WooCommerce).
   Übersicht und Kategorien, Produktseite, Warenkorb, Kasse. Die mitgelieferten
   Styles von WooCommerce sind aus: alles hier ist eigene Gestaltung, flach,
   eckig, ohne Schatten und Verläufe.
   -------------------------------------------------------------------------- */

/* Übersicht --------------------------------------------------------------- */
.page-header--shop {
  padding-bottom: 0;
}

.shop-kopf {
  display: grid;
  gap: var(--space-3);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.shop-kopf .lead {
  margin-top: 0;
}

@media (min-width: 60.0625rem) {
  .shop-kopf {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: var(--space-4);
  }
}

/* Kategorien als Register: Text mit Strich, keine Pillen. */
.shop-reiter {
  border-top: 2px solid var(--navy);
}

.shop-reiter ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(1.25rem, 3vw, 3rem);
}

.shop-reiter a {
  position: relative;
  display: block;
  padding: 1.05rem 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 88%;
  font-size: 1.125rem;
  line-height: 1.1;
  color: var(--navy);
}

.shop-reiter a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 6px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.shop-reiter a:hover::after,
.shop-reiter a:focus-visible::after,
.shop-reiter a[aria-current="page"]::after {
  transform: scaleX(1);
}

.shop-reiter a[aria-current="page"] {
  font-weight: 800;
}

.shop {
  padding-block: var(--space-5) var(--space-6);
}

.shop-gruppe + .shop-gruppe {
  margin-top: var(--space-5);
}

.shop-gruppe__kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-bottom: var(--space-3);
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--navy);
}

.shop-gruppe__kopf h2 {
  font-size: clamp(1.75rem, 3.4vw, 3rem);
}

.shop-gruppe__kopf p {
  color: var(--ink-soft);
}

.shop-zusagen {
  display: grid;
  margin-top: var(--space-6);
  border-top: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
}

.shop-zusage {
  padding: 1.5rem 0 1.75rem;
}

.shop-zusage + .shop-zusage {
  border-top: 2px solid var(--navy);
}

.shop-zusage h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.125rem);
}

.shop-zusage p {
  margin-top: 0.75rem;
  max-width: 30rem;
}

@media (min-width: 60.0625rem) {
  .shop-zusagen {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shop-zusage {
    padding: 2rem clamp(1.25rem, 2.5vw, 2.5rem) 2.25rem;
  }

  .shop-zusage:first-child {
    padding-left: 0;
  }

  .shop-zusage + .shop-zusage {
    border-top: 0;
    border-left: 2px solid var(--navy);
  }
}

.shop-konfig {
  display: grid;
  gap: var(--space-3);
  align-items: center;
  margin-top: var(--space-5);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background: var(--navy);
  color: var(--weiss);
  border-radius: var(--radius);
}

.shop-konfig h2 {
  color: var(--weiss);
  font-size: clamp(1.75rem, 3.4vw, 3rem);
}

.shop-konfig p {
  margin-top: 0.75rem;
  max-width: 36rem;
  font-size: 1.125rem;
  opacity: 0.9;
}

.shop-konfig .button {
  justify-self: start;
}

@media (min-width: 60.0625rem) {
  .shop-konfig {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* Produktseite ------------------------------------------------------------ */
.produkt {
  display: grid;
  border-bottom: 2px solid var(--navy);
}

.produkt__buehne {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: var(--gelb);
  padding: clamp(1.5rem, 4vw, 3.5rem) var(--gutter) 1rem;
  min-height: 21rem;
}

.produkt__zeichnung {
  display: grid;
  place-items: end center;
  min-height: 0;
}

.produkt__zeichnung svg {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: min(34rem, 62vh);
}

.produkt__schema {
  margin-top: 1rem;
  font-size: var(--fs-marke);
  color: var(--navy);
}

.produkt__marke {
  position: absolute;
  left: 0;
  top: 0;
  padding: 0.6rem 0.9rem 0.55rem;
  background: var(--navy);
  color: var(--gelb);
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 84%;
  font-size: 1rem;
  line-height: 1;
}

.produkt__info {
  padding: clamp(1.5rem, 3.4vw, 3rem) var(--gutter) clamp(2rem, 4vw, 3.5rem);
}

.produkt__zustand {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 84%;
  font-size: 1rem;
  color: var(--blau);
}

.produkt__name {
  margin-top: 0.35rem;
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  max-width: 21ch;
}

.produkt__satz {
  margin-top: 0.9rem;
  font-size: var(--fs-lead);
  line-height: 1.4;
  max-width: 34rem;
}

.preis--seite {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--navy);
}

.preis--seite .preis__label {
  font-size: 1rem;
}

.preis--seite .preis__zahl {
  font-size: clamp(3rem, 5.4vw, 4.75rem);
}

.preis--seite .preis__neu {
  font-size: 1.0625rem;
}

.preis--seite .preis__spar {
  font-size: 1.0625rem;
  padding: 0.4rem 0.7rem 0.36rem;
}

.produkt__inklusive {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 90%;
  color: var(--navy);
}

.produkt__fakten {
  margin-top: 1.5rem;
}

.produkt__fakten .fakten__zeile {
  grid-template-columns: minmax(0, 8rem) minmax(0, 1fr);
  padding: 0.6rem 0;
  border-top-width: 1px;
  border-top-color: var(--line-strong);
}

.produkt__fakten .fakten__zeile:first-child {
  border-top: 2px solid var(--navy);
}

.produkt__kauf {
  margin-top: 1.5rem;
}

.produkt__lieferung {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.5rem;
}

.produkt__lieferung legend {
  padding: 0;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 86%;
  font-size: 1rem;
  color: var(--navy);
}

.wahlzeile {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.25rem 1rem;
  padding: 0.8rem 1rem;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.25s ease;
}

.wahlzeile:hover {
  border-color: var(--navy);
}

.wahlzeile:has(input:checked) {
  background: var(--gelb);
  border-color: var(--navy);
}

.wahlzeile:has(input:focus-visible) {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.wahlzeile input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.wahlzeile__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 90%;
  font-size: 1.0625rem;
  line-height: 1.2;
  color: var(--navy);
}

.wahlzeile__preis {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 92%;
  color: var(--navy);
  white-space: nowrap;
}

.produkt__knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.produkt__hinweis {
  margin-top: 1.25rem;
  font-size: var(--fs-klein);
  color: var(--ink-soft);
  max-width: 34rem;
}

@media (min-width: 60.0625rem) {
  .produkt {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }

  .produkt__buehne {
    position: sticky;
    top: var(--header-h);
    align-self: start;
    height: calc(100vh - var(--header-h));
    height: calc(100svh - var(--header-h));
    min-height: 30rem;
    padding: clamp(2.5rem, 4vw, 4rem) clamp(2rem, 4vw, 4.5rem) 1.25rem;
    border-right: 2px solid var(--navy);
  }

  .produkt__zeichnung svg {
    max-height: 100%;
  }

  .produkt__info {
    padding-inline: clamp(2rem, 4vw, 4.5rem);
  }
}

.produkt-mehr {
  display: grid;
  gap: var(--space-5);
  padding-block: var(--space-5);
}

.produkt-mehr h2,
.produkt-weitere h2 {
  font-size: clamp(1.75rem, 3.4vw, 3rem);
}

.produkt-punkte {
  margin-top: var(--space-3);
  border-bottom: 2px solid var(--navy);
}

.produkt-punkte li {
  padding: 0.8rem 0 0.85rem;
  border-top: 2px solid var(--navy);
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 92%;
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--navy);
}

.produkt-modell {
  margin-top: 1rem;
  font-size: var(--fs-klein);
  color: var(--ink-soft);
}

.produkt-optionen__liste {
  margin: var(--space-3) 0 1.5rem;
  border-bottom: 2px solid var(--navy);
}

.produkt-optionen__liste li {
  display: grid;
  gap: 0.2rem 1rem;
  padding: 0.9rem 0 1rem;
  border-top: 2px solid var(--navy);
}

.produkt-optionen__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 88%;
  font-size: 1.25rem;
  color: var(--navy);
}

.produkt-optionen__satz {
  color: var(--ink-soft);
}

.produkt-optionen__preis {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 92%;
  color: var(--navy);
}

@media (min-width: 60.0625rem) {
  .produkt-mehr {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2rem, 5vw, 6rem);
    align-items: start;
  }

  .produkt-punkte {
    columns: 2;
    column-gap: 2.5rem;
    border-bottom: 0;
  }

  .produkt-punkte li {
    break-inside: avoid;
    border-top: 0;
    border-bottom: 2px solid var(--navy);
  }
}

.produkt-weitere {
  background: var(--papier);
  padding-block: var(--space-5) var(--space-6);
}

/* WooCommerce: Meldungen ------------------------------------------------- */
.woocommerce-notices-wrapper:empty {
  display: none;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.shop-vorlage {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0.9rem 1.1rem;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  background: var(--gelb-hell);
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.45;
}

.woocommerce-error {
  background: var(--weiss);
}

.woocommerce-message a.button,
.woocommerce-info a.button {
  float: right;
  min-height: 0;
  margin: -0.2rem 0 0 1rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.9375rem;
}

.shop-vorlage {
  border-style: dashed;
  background: var(--weiss);
  font-size: var(--fs-klein);
}

/* Warenkorb und Kasse ----------------------------------------------------- */
.shop-seite {
  padding-block: var(--space-4) var(--space-6);
}

.shop-seite .woocommerce {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

.shop-seite .woocommerce > * {
  min-width: 0;
}

.shop-seite table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.shop-seite th,
.shop-seite td {
  padding: 1rem 0.75rem 1rem 0;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line-strong);
}

.shop-seite thead th {
  padding-block: 0.75rem;
  border-top: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 86%;
  font-size: 0.9375rem;
  color: var(--navy);
}

.shop-seite tbody tr:first-child td,
.shop-seite tbody tr:first-child th {
  border-top: 0;
}

.shop-seite .product-thumbnail {
  width: 8.5rem;
}

.shop-seite .produktbild {
  display: grid;
  place-items: center;
  width: 7.5rem;
  height: 7.5rem;
  padding: 0.6rem;
  background: var(--gelb);
  border-radius: var(--radius);
}

.shop-seite .produktbild svg {
  width: auto;
  height: 100%;
  max-width: 100%;
}

.shop-seite .product-name a {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 88%;
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--navy);
}

/* Angaben zur Konfiguration: je Zeile Name und Wert, ohne Raster (bricht sauber um). */
.shop-seite dl.variation {
  margin: 0.6rem 0 0;
  font-size: var(--fs-klein);
  line-height: 1.5;
  color: var(--ink-soft);
}

.shop-seite dl.variation dt {
  display: inline;
  font-weight: 600;
  color: var(--ink);
}

.shop-seite dl.variation dd {
  display: inline;
  margin: 0;
}

.shop-seite dl.variation dd::after {
  content: "";
  display: block;
}

.shop-seite dl.variation dd p {
  display: inline;
  margin: 0;
}

.shop-seite .product-price,
.shop-seite .product-subtotal,
.shop-seite .product-total,
.shop-seite .cart-subtotal td,
.shop-seite .order-total td {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 94%;
  color: var(--navy);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.shop-seite .product-quantity {
  white-space: nowrap;
}

.shop-seite .quantity input {
  width: 4rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.5rem;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
}

.shop-seite a.remove {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--line-strong);
  border-radius: 2px;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--navy);
}

.shop-seite a.remove:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--gelb);
}

/* Einzelstücke: keine Anzahl, kein "Warenkorb aktualisieren", keine Gutscheine. */
.shop-seite .cart .product-quantity,
.shop-seite .cart tr:has(> td.actions) {
  display: none;
}

.shop-seite .cart-collaterals {
  display: grid;
  justify-items: end;
}

.shop-seite .cart_totals {
  width: min(100%, 30rem);
  padding: 1.5rem;
  background: var(--gelb);
  border-radius: var(--radius);
}

.shop-seite .cart_totals h2,
.shop-seite #order_review_heading,
.shop-seite .woocommerce-billing-fields h3,
.shop-seite .woocommerce-additional-fields h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.shop-seite .cart_totals table th,
.shop-seite .cart_totals table td {
  border-top-color: var(--navy);
  padding: 0.75rem 0;
}

.shop-seite .cart_totals table td {
  text-align: right;
}

.shop-seite .order-total th,
.shop-seite .order-total td {
  font-size: 1.5rem;
  font-weight: 800;
  border-top: 2px solid var(--navy) !important;
}

.shop-seite .wc-proceed-to-checkout {
  margin-top: 1rem;
}

.shop-seite .checkout-button,
.shop-seite #place_order {
  width: 100%;
}

.shop-seite .button,
.shop-seite button.button,
.shop-seite .button.alt {
  display: inline-flex;
}

.shop-seite .cart-empty,
.shop-seite .return-to-shop {
  margin: 0;
}

.shop-seite .return-to-shop {
  margin-top: 1rem;
}

/* Kasse */
.shop-seite form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

.shop-seite form.checkout > * {
  min-width: 0;
}

.shop-seite .col2-set {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
}

.shop-seite #order_review table {
  table-layout: fixed;
}

.shop-seite #order_review th:first-child,
.shop-seite #order_review td:first-child {
  width: 58%;
}

.shop-seite #payment .woocommerce-info {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

.shop-seite .woocommerce-billing-fields__field-wrapper,
.shop-seite .woocommerce-additional-fields__field-wrapper {
  display: grid;
  gap: 0.9rem 1rem;
}

.shop-seite .form-row {
  margin: 0;
  padding: 0;
}

.shop-seite .form-row label {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 86%;
  font-size: 0.9375rem;
  color: var(--navy);
}

.shop-seite .form-row .required {
  color: var(--navy);
  text-decoration: none;
}

.shop-seite .form-row .optional {
  font-weight: 400;
  color: var(--ink-soft);
}

.shop-seite .form-row input.input-text,
.shop-seite .form-row textarea,
.shop-seite .form-row select,
.shop-seite .select2-container .select2-selection {
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.75rem;
  background: var(--weiss);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
}

.shop-seite .form-row textarea {
  min-height: 6rem;
}

.shop-seite .form-row input.input-text:focus,
.shop-seite .form-row textarea:focus,
.shop-seite .form-row select:focus {
  border-color: var(--navy);
  outline: 0;
}

.shop-seite .select2-container {
  width: 100% !important;
}

.shop-seite .select2-container .select2-selection__rendered {
  padding: 0;
  line-height: 1.6;
}

.shop-seite .select2-container .select2-selection__arrow {
  top: 0.8rem;
  right: 0.5rem;
}

.shop-seite #order_review {
  padding: 1.5rem;
  background: var(--gelb);
  border-radius: var(--radius);
}

.shop-seite #order_review table th,
.shop-seite #order_review table td {
  border-top-color: var(--navy);
  padding: 0.75rem 0;
}

.shop-seite #order_review table td:last-child,
.shop-seite #order_review table th:last-child {
  text-align: right;
}

.shop-seite #order_review thead th {
  border-top: 0;
}

.shop-seite #payment {
  margin-top: 1.25rem;
}

.shop-seite #payment ul.payment_methods {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  background: var(--weiss);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
}

.shop-seite #payment ul.payment_methods li {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: 1rem;
}

.shop-seite .woocommerce-privacy-policy-text {
  font-size: var(--fs-klein);
  margin-bottom: 1rem;
}

.shop-seite .kasse-vorlage {
  margin-bottom: 0.75rem;
  font-size: var(--fs-klein);
  font-weight: 600;
  color: var(--navy);
}

.shop-seite #place_order[disabled] {
  opacity: 1;
  background: transparent;
  border: 2px dashed var(--navy);
  color: var(--navy);
}

.shop-seite .woocommerce-form-coupon-toggle,
.shop-seite .woocommerce-form-login-toggle {
  display: none;
}

@media (min-width: 60.0625rem) {
  .shop-seite form.checkout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas:
      "felder titel"
      "felder bestellung";
    grid-template-rows: auto 1fr;
    gap: 0 clamp(2rem, 5vw, 6rem);
    align-items: start;
  }

  .shop-seite form.checkout > .col2-set,
  .shop-seite form.checkout > #customer_details {
    grid-area: felder;
  }

  .shop-seite #order_review_heading {
    grid-area: titel;
    margin-bottom: 0.75rem;
  }

  .shop-seite #order_review {
    grid-area: bestellung;
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }

  .shop-seite .woocommerce-billing-fields__field-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-seite .woocommerce-billing-fields__field-wrapper .form-row-wide {
    grid-column: 1 / -1;
  }
}

/* Handy: Tabelle des Warenkorbs als gestapelte Zeilen */
@media (max-width: 47.99rem) {
  .shop-seite .shop_table_responsive thead {
    display: none;
  }

  .shop-seite .shop_table_responsive tbody tr.cart_item {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr) auto;
    gap: 0.25rem 0.9rem;
    padding: 1rem 0;
    border-top: 1px solid var(--line-strong);
  }

  .shop-seite .shop_table_responsive tbody tr.cart_item:first-child {
    border-top: 2px solid var(--navy);
  }

  .shop-seite .shop_table_responsive tbody tr.cart_item td {
    display: block;
    padding: 0;
    border: 0;
  }

  .shop-seite .shop_table_responsive .product-thumbnail {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: auto;
  }

  .shop-seite .shop_table_responsive .produktbild {
    width: 5.5rem;
    height: 5.5rem;
    padding: 0.4rem;
  }

  .shop-seite .shop_table_responsive .product-name {
    grid-column: 2;
  }

  .shop-seite .shop_table_responsive .product-remove {
    grid-column: 3;
    grid-row: 1;
  }

  .shop-seite .shop_table_responsive .product-price,
  .shop-seite .shop_table_responsive .product-quantity {
    display: none !important;
  }

  .shop-seite .shop_table_responsive .product-subtotal {
    grid-column: 2 / -1;
    font-size: 1.25rem;
  }

  .shop-seite .shop_table_responsive tr:not(.cart_item) td {
    display: block;
    padding: 0.75rem 0 0;
  }

  .shop-seite .cart_totals {
    width: 100%;
  }

  .shop-seite .order-total th,
  .shop-seite .order-total td {
    font-size: 1.25rem;
  }

  .shop-seite #order_review,
  .shop-seite .cart_totals {
    padding: 1.1rem;
  }

  .produkt__knoepfe .button {
    width: 100%;
  }
}
