/* GP1025 / V1.0: consistent card rhythm, accessible focus and calm controls.
 * Existing desktop layout remains the baseline; scoped overrides only. */
@media (min-width: 769px) {
  body #gp-main .gp-product-archive .gp-directory-toolbar {
    margin-top: 12px !important;
    padding-block: 13px !important;
    background: #fff !important;
    border: 1px solid #e0e7e2 !important;
    box-shadow: none !important;
  }
  body #gp-main .gp-product-archive .gp-directory-toolbar__top {
    align-items: center !important;
  }
  body #gp-main .gp-product-archive .gp-directory-toolbar-controls {
    align-items: center !important;
    gap: 13px !important;
  }
  body #gp-main .gp-product-archive .gp-directory-sort select,
  body #gp-main .gp-product-archive .gp-directory-columns select {
    height: 44px !important;
    min-height: 44px !important;
    box-shadow: none !important;
  }
  body #gp-main .gp-product-archive .gp-directory-view-toggle {
    min-height: 44px !important;
    height: 44px !important;
    padding: 3px !important;
  }
  body #gp-main .gp-product-archive .gp-directory-view-toggle button {
    min-height: 36px !important;
    height: 36px !important;
  }
  body #gp-main .gp-product-archive .gp-directory-view-toggle button:focus-visible,
  body #gp-main .gp-product-archive .gp-directory-sort select:focus-visible,
  body #gp-main .gp-product-archive .gp-directory-columns select:focus-visible {
    box-shadow: none !important;
    outline: 2px solid #526c5b !important;
    outline-offset: -2px !important;
  }
  /* Cards with one-line names reserve enough height for two-line neighbours. */
  body #gp-main .gp-product-list:not(.is-list-view) .gp-card-title-wrap {
    min-height: 2.55em !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  body #gp-main .gp-product-list:not(.is-list-view) .gp-product-loop-title {
    text-wrap: balance;
  }
  body #gp-main .gp-product-list:not(.is-list-view) .gp-card-description-wrap {
    min-height: 3.1em;
  }
  body #gp-main .gp-product-list:not(.is-list-view) .gp-product-loop-description {
    text-wrap: pretty;
  }
  body #gp-main .gp-product-list:not(.is-list-view) .gp-product-loop-commerce {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0;
  }
  body #gp-main .gp-product-list:not(.is-list-view) .gp-product-loop-price {
    margin-top: auto !important;
  }
  body #gp-main .gp-product-list:not(.is-list-view) .gp-product-loop-main-actions {
    margin-top: 12px !important;
  }
}
/* Detail: balanced but authentic facts, no stretched orphan last cell. */
@media (min-width: 701px) {
  body.single-gp_product #gp-main .gp-eckdaten218__rows>div:last-child:nth-child(odd) {
    grid-column: auto !important;
  }
}
body.single-gp_product #gp-main .gp-eckdaten218__rows>div {
  align-items: center !important;
}
body.single-gp_product #gp-main .gp-eckdaten218__rows>div dd {
  text-align: left !important;
  overflow-wrap: anywhere;
}
body.single-gp_product #gp-main .gp-product-detail__hero h1 {
  text-wrap: balance;
}
body.single-gp_product #gp-main .gp-product-detail__hero .gp-product-detail__hero-description,
body.single-gp_product #gp-main .gp-product-detail__hero .gp-product-detail__intro {
  text-wrap: pretty;
}
/* Similar-product filter is a peer of "Alle Produkte ansehen", never a tiny pill. */
body.single-gp_product #gp-main .gp-pd230-section-head .gp-reco923-cheaper,
body.single-gp_product #gp-main .gp-pd230-section-head .gp-pd230-all-link {
  min-height: 43px !important;
  height: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 9px 17px !important;
  font-size: .81rem !important;
  line-height: 1.2 !important;
  font-weight: 650 !important;
  border: 1px solid #d4e0d8 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}
body.single-gp_product #gp-main .gp-pd230-section-head .gp-reco923-cheaper {background: #fff !important;}
body.single-gp_product #gp-main .gp-pd230-section-head .gp-reco923-cheaper:is(:hover,:focus-visible,[aria-pressed="true"]) {background:#fff !important;color:#315f47 !important;border-color:#d4e0d8 !important;}
/* Keep optional coupon by the actual related product price instead of an empty slot. */
body.single-gp_product #gp-main .gp-product-related-product__price {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
}
body.single-gp_product #gp-main .gp-related-coupon1025 {
  font-size: .73rem;
  line-height: 1.3;
  font-weight: 500;
  color: #456b55;
  white-space: nowrap;
}
@media (max-width: 768px) {
  body.single-gp_product #gp-main .gp-pd230-section-head {flex-wrap: wrap !important;}
  body.single-gp_product #gp-main .gp-pd230-section-head .gp-reco923-cheaper,
  body.single-gp_product #gp-main .gp-pd230-section-head .gp-pd230-all-link {
    min-height: 43px !important; padding: 9px 13px !important;
  }
}
