/* ==========================================================================
   Hedderich Rasen – WooCommerce Stylesheet
   Modernes, kartenbasiertes Design fuer einen vertrauenswuerdigen Rasen-Shop
   Verwendet ausschliesslich CSS Custom Properties aus main.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. WooCommerce Default-Overrides (hohe Spezifitaet)
   -------------------------------------------------------------------------- */

/* Leerer Warenkorb: WooCommerce-Defaults komplett ausblenden */
.woocommerce-cart .wc-empty-cart-message,
.woocommerce-cart .cart-empty.woocommerce-info,
.woocommerce-cart p.return-to-shop {
    display: none !important;
}

/* WooCommerce Info/Message global cleaner stylen */
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-error {
    background-image: none !important;
}

.woocommerce .woocommerce-info::before {
    content: none !important;
}

/* WooCommerce-Seiten Basisstil */
.woocommerce-cart .site-content,
.woocommerce-checkout .site-content,
.woocommerce-account .site-content {
    padding-bottom: var(--spacing-4xl);
}

.woocommerce-cart .entry-content > .woocommerce,
.woocommerce-checkout .entry-content > .woocommerce,
.woocommerce-account .entry-content > .woocommerce {
    max-width: 100%;
}


/* ==========================================================================
   1. BROTKRUMEN-NAVIGATION (Breadcrumbs)
   ========================================================================== */

.woocommerce-breadcrumb {
    font-size: var(--fs-sm);
    color: var(--color-gray-400);
    padding: var(--spacing-md) 0;
    margin-bottom: var(--spacing-xl);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.woocommerce-breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.woocommerce-breadcrumb a:hover {
    color: var(--color-primary-dark);
}

/* Trennzeichen-Pfeile */
.woocommerce-breadcrumb .breadcrumb-separator,
.woocommerce-breadcrumb > span:not(:last-child)::after {
    color: var(--color-gray-300);
    margin: 0 var(--spacing-xs);
}


/* ==========================================================================
   2. SHOP-SEITE / PRODUKTUEBERSICHT (Archiv)
   ========================================================================== */

/* --- Ergebnis-Anzahl & Sortierung --- */
.woocommerce-result-count,
.woocommerce-ordering {
    margin-bottom: var(--spacing-xl);
    font-size: var(--fs-sm);
    color: var(--color-gray-500);
}

.woocommerce-ordering select {
    padding: 0.6rem 2rem 0.6rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-input);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    background-color: var(--color-white);
    color: var(--color-text);
    cursor: pointer;
    transition: border-color var(--transition-fast);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B6B66' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.woocommerce-ordering select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

/* --- Produkt-Raster --- */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

/* --- Produkt-Karte --- */
.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 0;
    float: none;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    display: flex;
    flex-direction: column;
    position: relative;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

/* --- Produktbild --- */
.woocommerce ul.products li.product > a {
    display: block;
    overflow: hidden;
    text-decoration: none;
}

.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product .woocommerce-product-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
    transition: transform var(--transition-slow);
}

.woocommerce ul.products li.product:hover a img {
    transform: scale(1.06);
}

/* --- Produkttitel --- */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--color-dark);
    padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-xs);
    margin: 0;
    line-height: 1.35;
}

/* --- Sternebewertung im Raster --- */
.woocommerce ul.products li.product .star-rating {
    margin: var(--spacing-xs) var(--spacing-lg) 0;
    font-size: var(--fs-xs);
}

/* --- Preis --- */
.woocommerce ul.products li.product .price {
    padding: var(--spacing-xs) var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--color-accent);
    font-family: var(--font-heading);
}

.woocommerce ul.products li.product .price del {
    font-size: var(--fs-sm);
    color: var(--color-gray-400);
    font-weight: 400;
    opacity: 0.7;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    font-weight: 700;
}

.woocommerce ul.products li.product .hedderich-turf-price {
    display: grid;
    gap: 2px;
}

.woocommerce ul.products li.product:has(.hedderich-turf-price) .wgm-info {
    display: none;
}

.woocommerce ul.products li.product .hedderich-turf-price__from {
    color: var(--color-gray-500);
    font-size: .78rem;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: none;
}

.woocommerce ul.products li.product .hedderich-turf-price strong {
    color: var(--color-primary-dark);
    font-size: 1.12rem;
    line-height: 1.1;
}

.woocommerce ul.products li.product .hedderich-turf-loop-description {
    min-height: 8.6rem;
    padding: .45rem 1.25rem 0;
    margin: 0;
    color: var(--color-gray-600);
    font-size: .98rem;
    line-height: 1.55;
}

/* --- In den Warenkorb Button (Archiv) --- */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.add_to_cart_button,
.woocommerce ul.products li.product a.product_type_simple,
.woocommerce ul.products li.product a.product_type_variable {
    display: block;
    width: calc(100% - var(--spacing-lg) * 2);
    margin: auto var(--spacing-lg) var(--spacing-lg);
    padding: 0.8rem var(--spacing-lg);
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-btn);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-sm);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--transition-base), transform var(--transition-fast), box-shadow var(--transition-base);
    text-transform: none;
    line-height: 1.4;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.add_to_cart_button:hover,
.woocommerce ul.products li.product a.product_type_simple:hover,
.woocommerce ul.products li.product a.product_type_variable:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Ladezustand */
.woocommerce ul.products li.product a.loading {
    opacity: 0.6;
    pointer-events: none;
}

.woocommerce ul.products li.product a.added::after {
    margin-left: var(--spacing-sm);
}

.woocommerce ul.products li.product .hedderich-turf-calc-button {
    background-color: var(--color-accent) !important;
    color: var(--color-dark) !important;
}

.woocommerce ul.products li.product .hedderich-turf-calc-button:hover {
    background-color: var(--color-accent-dark) !important;
    color: var(--color-dark) !important;
}


/* ==========================================================================
   3. SALE-BADGE (Angebots-Abzeichen)
   ========================================================================== */

.woocommerce span.onsale {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    right: auto;
    z-index: 5;
    background-color: var(--color-accent);
    color: var(--color-white);
    font-size: var(--fs-xs);
    font-weight: 700;
    font-family: var(--font-heading);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    min-width: auto;
    min-height: auto;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* ==========================================================================
   4. STERNEBEWERTUNGEN
   ========================================================================== */

.woocommerce .star-rating {
    color: var(--color-accent);
    font-size: var(--fs-sm);
}

.woocommerce .star-rating::before {
    color: var(--color-gray-200);
}

.woocommerce p.stars a {
    color: var(--color-accent);
}

.woocommerce p.stars a:hover ~ a::before {
    color: var(--color-gray-200);
}


/* ==========================================================================
   5. EINZELPRODUKT-SEITE
   ========================================================================== */

.woocommerce div.product {
    padding: var(--spacing-3xl) 0;
}

/* --- Zwei-Spalten-Layout: Bild links, Info rechts --- */
.woocommerce div.product div.images,
.woocommerce #content div.product div.images {
    width: 50%;
    float: left;
    padding-right: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.woocommerce div.product div.images img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--color-white);
    border-radius: var(--radius-full);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    z-index: 5;
}

/* Galerie-Thumbnails */
.woocommerce div.product div.images .flex-control-thumbs {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    padding: 0;
    list-style: none;
}

.woocommerce div.product div.images .flex-control-thumbs li {
    flex: 1;
    max-width: 80px;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
    border-radius: var(--radius-sm);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
    border: 2px solid transparent;
}

.woocommerce div.product div.images .flex-control-thumbs li img:hover,
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active {
    opacity: 1;
    border-color: var(--color-primary);
}

/* --- Produkt-Zusammenfassung rechts --- */
.woocommerce div.product div.summary,
.woocommerce #content div.product div.summary {
    width: 46%;
    float: right;
    margin-bottom: var(--spacing-2xl);
}

/* Produkttitel */
.woocommerce div.product .product_title {
    font-family: var(--font-heading);
    font-size: var(--fs-4xl);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--spacing-md);
    line-height: 1.15;
}

/* Einzelprodukt-Preis */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-size: var(--fs-3xl);
    font-weight: 700;
    color: var(--color-accent);
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-lg);
    display: block;
}

.woocommerce div.product p.price del {
    font-size: var(--fs-xl);
    color: var(--color-gray-400);
    font-weight: 400;
    margin-right: var(--spacing-sm);
}

.woocommerce div.product p.price ins {
    text-decoration: none;
}

/* Kurzbeschreibung */
.woocommerce div.product .woocommerce-product-details__short-description {
    margin-bottom: var(--spacing-xl);
    font-size: var(--fs-base);
    line-height: 1.75;
    color: var(--color-gray-500);
}

.woocommerce div.product .woocommerce-product-details__short-description p {
    margin-bottom: var(--spacing-md);
}

/* --- Mengenfeld mit +/- Optik --- */
.woocommerce .quantity {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-btn);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.woocommerce .quantity:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.woocommerce .quantity .qty {
    width: 56px;
    padding: 0.65rem 0.25rem;
    border: none;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 600;
    text-align: center;
    background: var(--color-white);
    color: var(--color-dark);
    -moz-appearance: textfield;
}

.woocommerce .quantity .qty::-webkit-inner-spin-button,
.woocommerce .quantity .qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.woocommerce .quantity .qty:focus {
    outline: none;
}

/* Plus/Minus-Buttons (falls per JS/Plugin hinzugefuegt) */
.woocommerce .quantity .qty-btn,
.woocommerce .quantity .plus,
.woocommerce .quantity .minus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 100%;
    background: var(--color-gray-100);
    border: none;
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--color-gray-500);
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast);
    padding: 0.65rem 0;
}

.woocommerce .quantity .qty-btn:hover,
.woocommerce .quantity .plus:hover,
.woocommerce .quantity .minus:hover {
    background: var(--color-primary-light);
    color: var(--color-white);
}

/* --- In den Warenkorb (Einzelprodukt) --- */
.woocommerce div.product form.cart {
    margin-bottom: var(--spacing-2xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.woocommerce div.product form.cart .button,
.woocommerce div.product .single_add_to_cart_button {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: var(--radius-btn);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-lg);
    cursor: pointer;
    transition: background-color var(--transition-base), transform var(--transition-fast), box-shadow var(--transition-base);
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.4;
    flex-shrink: 0;
}

.woocommerce div.product form.cart .button:hover,
.woocommerce div.product .single_add_to_cart_button:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Variationen-Auswahl */
.woocommerce div.product form.cart .variations {
    margin-bottom: var(--spacing-lg);
    width: 100%;
    border-collapse: collapse;
}

.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th {
    padding: var(--spacing-sm) 0;
    border: none;
    vertical-align: middle;
}

.woocommerce div.product form.cart .variations label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-sm);
    color: var(--color-dark);
}

.woocommerce div.product form.cart .variations select {
    padding: 0.65rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-input);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    background-color: var(--color-white);
    transition: border-color var(--transition-fast);
    width: 100%;
}

.woocommerce div.product form.cart .variations select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

/* Einzelpreis-Hinweis bei Variationen */
.woocommerce div.product form.cart .single_variation_wrap .woocommerce-variation-price {
    margin-bottom: var(--spacing-md);
}

/* --- Produkt-Meta (Kategorie, Schlagwoerter, Artikelnummer) --- */
.woocommerce div.product .product_meta {
    font-size: var(--fs-sm);
    color: var(--color-gray-400);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-border-light);
    margin-top: var(--spacing-lg);
    line-height: 1.8;
}

.woocommerce div.product .product_meta > span {
    display: block;
    margin-bottom: var(--spacing-xs);
}

.woocommerce div.product .product_meta a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.woocommerce div.product .product_meta a:hover {
    color: var(--color-primary-dark);
}

/* --- Produkt-Tabs (moderner Unterstrich-Stil) --- */
.woocommerce div.product .woocommerce-tabs {
    clear: both;
    padding-top: var(--spacing-3xl);
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    padding: 0;
    margin: 0 0 var(--spacing-xl);
    list-style: none;
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--color-border-light);
    overflow: visible;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
    display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: none;
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    position: relative;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
    display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: var(--spacing-md) var(--spacing-xl);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-sm);
    color: var(--color-gray-400);
    text-decoration: none;
    position: relative;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
    transform-origin: center;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: var(--color-primary);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a::after,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover::after {
    transform: scaleX(1);
}

.woocommerce div.product .woocommerce-tabs .panel {
    padding: var(--spacing-xl) 0;
    line-height: 1.75;
    color: var(--color-gray-500);
    max-width: 80ch;
}

.woocommerce div.product .woocommerce-tabs .panel h2 {
    font-family: var(--font-heading);
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--spacing-lg);
}

/* --- Bewertungen im Tab --- */
.woocommerce #reviews #comments ol.commentlist {
    padding: 0;
    list-style: none;
}

.woocommerce #reviews #comments ol.commentlist li {
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid var(--color-border-light);
    margin-bottom: 0;
}

.woocommerce #reviews #comments ol.commentlist li img.avatar {
    border-radius: var(--radius-full);
    border: 2px solid var(--color-border-light);
}

.woocommerce #reviews #comments ol.commentlist li .comment-text {
    border: none;
    padding: 0;
    margin: 0 0 0 80px;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text .meta {
    font-size: var(--fs-sm);
    color: var(--color-gray-400);
    margin-bottom: var(--spacing-sm);
}

.woocommerce #reviews #comments ol.commentlist li .comment-text .meta strong {
    color: var(--color-dark);
}

/* Bewertungsformular */
.woocommerce #review_form #respond {
    padding: var(--spacing-xl) 0 0;
}

.woocommerce #review_form #respond .comment-reply-title {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--spacing-lg);
}


/* ==========================================================================
   6. VERWANDTE PRODUKTE & UPSELLS
   ========================================================================== */

.woocommerce div.product .related.products,
.woocommerce div.product .upsells.products {
    clear: both;
    padding-top: var(--spacing-3xl);
    margin-top: var(--spacing-3xl);
    border-top: 1px solid var(--color-border-light);
}

.woocommerce div.product .related.products > h2,
.woocommerce div.product .upsells.products > h2 {
    font-family: var(--font-heading);
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.woocommerce div.product .related.products ul.products,
.woocommerce div.product .upsells.products ul.products {
    grid-template-columns: repeat(3, 1fr);
}


/* ==========================================================================
   7. WARENKORB-SEITE
   ========================================================================== */

.woocommerce-cart .woocommerce {
    padding: var(--spacing-3xl) 0;
}

/* --- Warenkorb-Tabelle als moderne Karten --- */
.woocommerce table.shop_table {
    border: none;
    border-radius: var(--radius-lg);
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: var(--spacing-xl);
    width: 100%;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.woocommerce table.shop_table thead {
    background-color: var(--color-gray-100);
}

.woocommerce table.shop_table th {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-xs);
    color: var(--color-gray-500);
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--color-border-light);
}

.woocommerce table.shop_table td {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border-light);
    font-size: var(--fs-sm);
    vertical-align: middle;
}

.woocommerce table.shop_table tbody tr:last-child td {
    border-bottom: none;
}

/* Produktbild im Warenkorb */
.woocommerce table.shop_table td.product-thumbnail {
    width: 100px;
    padding-right: var(--spacing-sm);
}

.woocommerce table.shop_table td.product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* Produktname im Warenkorb */
.woocommerce table.shop_table td.product-name a {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-dark);
    text-decoration: none;
    font-size: var(--fs-base);
    transition: color var(--transition-fast);
}

.woocommerce table.shop_table td.product-name a:hover {
    color: var(--color-primary);
}

/* Variationen im Warenkorb */
.woocommerce table.shop_table td.product-name dl.variation {
    margin-top: var(--spacing-xs);
    font-size: var(--fs-xs);
    color: var(--color-gray-400);
}

.woocommerce table.shop_table td.product-name dl.variation dt,
.woocommerce table.shop_table td.product-name dl.variation dd {
    display: inline;
    margin: 0;
}

/* Preis & Zwischensumme */
.woocommerce table.shop_table td.product-price,
.woocommerce table.shop_table td.product-subtotal {
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--color-dark);
    font-size: var(--fs-base);
}

.woocommerce table.shop_table td.product-subtotal {
    color: var(--color-accent);
}

/* --- Entfernen-Button --- */
.woocommerce a.remove {
    color: var(--color-gray-300) !important;
    font-size: 1.5rem;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    text-decoration: none;
    line-height: 1;
    font-weight: 300;
}

.woocommerce a.remove:hover {
    background-color: #fef2f2;
    color: #ef4444 !important;
}

/* --- Aktionen: Gutschein & Warenkorb aktualisieren --- */
.woocommerce table.shop_table td.actions {
    padding: var(--spacing-lg);
    background-color: var(--color-gray-100);
    border-bottom: none;
}

.woocommerce .coupon {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.woocommerce .coupon label {
    display: none;
}

.woocommerce .coupon .input-text {
    padding: 0.7rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-btn);
    font-size: var(--fs-sm);
    font-family: var(--font-body);
    min-width: 200px;
    transition: border-color var(--transition-fast);
    background: var(--color-white);
}

.woocommerce .coupon .input-text:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.woocommerce .coupon .input-text::placeholder {
    color: var(--color-gray-300);
}

.woocommerce .coupon .button {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-btn);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-sm);
    cursor: pointer;
    transition: background-color var(--transition-base);
    text-transform: none;
    white-space: nowrap;
}

.woocommerce .coupon .button:hover {
    background-color: var(--color-primary-dark);
}

/* Warenkorb aktualisieren */
.woocommerce button[name="update_cart"] {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-btn);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: none;
    float: right;
}

.woocommerce button[name="update_cart"]:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.woocommerce button[name="update_cart"]:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* --- Warenkorb-Summen (Seitenleiste rechts) --- */
.woocommerce .cart-collaterals {
    margin-top: var(--spacing-xl);
}

.woocommerce .cart-collaterals::after {
    content: "";
    display: table;
    clear: both;
}

.woocommerce .cart-collaterals .cart_totals {
    float: right;
    width: 420px;
    max-width: 100%;
}

.woocommerce .cart-collaterals .cart_totals > h2 {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--spacing-lg);
}

.woocommerce .cart-collaterals .cart_totals table {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.woocommerce .cart-collaterals .cart_totals table th {
    font-size: var(--fs-sm);
    color: var(--color-gray-500);
    font-weight: 600;
    padding: var(--spacing-md) var(--spacing-lg);
    background: transparent;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: 1px solid var(--color-border-light);
}

.woocommerce .cart-collaterals .cart_totals table td {
    text-align: right;
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--color-border-light);
}

.woocommerce .cart-collaterals .cart_totals .order-total th,
.woocommerce .cart-collaterals .cart_totals .order-total td {
    font-size: var(--fs-xl);
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--color-dark);
    border-bottom: none;
    padding: var(--spacing-lg);
}

.woocommerce .cart-collaterals .cart_totals .order-total td .woocommerce-Price-amount {
    color: var(--color-accent);
    font-size: var(--fs-2xl);
}

/* Versandkosten im Warenkorb */
.woocommerce .cart-collaterals .cart_totals .shipping td {
    font-size: var(--fs-sm);
}

.woocommerce .cart-collaterals .cart_totals .shipping ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce .cart-collaterals .cart_totals .shipping ul li {
    margin-bottom: var(--spacing-xs);
}

.woocommerce .cart-collaterals .cart_totals .shipping ul li label {
    font-weight: 400;
    cursor: pointer;
}

/* --- "Weiter zur Kasse" Button --- */
.woocommerce .wc-proceed-to-checkout {
    padding: var(--spacing-lg) 0 0;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button {
    display: block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 1.1rem var(--spacing-xl);
    border-radius: var(--radius-btn);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-lg);
    text-align: center;
    text-decoration: none;
    transition: background-color var(--transition-base), transform var(--transition-fast), box-shadow var(--transition-base);
    text-transform: none;
    position: relative;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button::after {
    content: " \2192";
    font-size: var(--fs-lg);
}

.woocommerce .wc-proceed-to-checkout a.checkout-button:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* --- Leerer Warenkorb --- */
.woocommerce-cart .cart-empty {
    text-align: center;
    padding: var(--spacing-4xl) var(--spacing-xl);
    color: var(--color-gray-400);
    font-size: var(--fs-lg);
    line-height: 1.6;
}

.woocommerce-cart .cart-empty::before {
    content: "\1F6D2";
    display: block;
    font-size: 4rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.3;
}

.woocommerce-cart .return-to-shop {
    text-align: center;
    padding-bottom: var(--spacing-3xl);
}

.woocommerce-cart .return-to-shop .button {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-btn);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-base);
    text-decoration: none;
    transition: background-color var(--transition-base), transform var(--transition-fast), box-shadow var(--transition-base);
    text-transform: none;
}

.woocommerce-cart .return-to-shop .button:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}


/* ==========================================================================
   8. KASSE (Checkout)
   ========================================================================== */

.woocommerce-checkout .woocommerce {
    padding: var(--spacing-3xl) 0;
}

/* --- Gutschein, Login, Registrierung Formulare --- */
.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
}

/* --- Checkout Zwei-Spalten-Layout --- */
.woocommerce .col2-set {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.woocommerce .col2-set .col-1,
.woocommerce .col2-set .col-2 {
    width: 100%;
    float: none;
}

/* Abschnitts-Ueberschriften */
.woocommerce .col2-set h3,
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-border-light);
}

/* --- Formularfelder --- */
.woocommerce form .form-row {
    margin-bottom: var(--spacing-md);
}

.woocommerce form .form-row label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-sm);
    color: var(--color-dark);
    margin-bottom: var(--spacing-xs);
    display: block;
}

.woocommerce form .form-row .required {
    color: var(--color-accent);
    font-weight: 400;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-input);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    color: var(--color-text);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    background-color: var(--color-white);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.woocommerce form .form-row input.input-text::placeholder {
    color: var(--color-gray-300);
}

/* Select2-Container (falls verwendet) */
.woocommerce form .form-row .select2-container .select2-selection {
    height: auto;
    min-height: 48px;
    padding: 0.5rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-input);
    background-color: var(--color-white);
    transition: border-color var(--transition-fast);
}

.woocommerce form .form-row .select2-container--focus .select2-selection,
.woocommerce form .form-row .select2-container--open .select2-selection {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.select2-dropdown {
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-input);
    box-shadow: var(--shadow-lg);
}

.select2-results__option--highlighted[aria-selected] {
    background-color: var(--color-primary) !important;
}

/* Validierungszustaende */
.woocommerce form .form-row.woocommerce-validated input.input-text {
    border-color: var(--color-primary-light);
}

.woocommerce form .form-row.woocommerce-invalid input.input-text {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Checkbox & Radio Felder */
.woocommerce form .form-row input[type="checkbox"],
.woocommerce form .form-row input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    cursor: pointer;
    margin-right: var(--spacing-xs);
}

/* Textarea (Bestellhinweise) */
.woocommerce form .form-row textarea {
    min-height: 100px;
    resize: vertical;
}

/* --- Bestelluebersicht --- */
#order_review_heading {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-border-light);
}

.woocommerce-checkout-review-order-table {
    margin-bottom: var(--spacing-xl);
}

.woocommerce-checkout-review-order-table thead th {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Zahlungsarten als auswahlbare Karten --- */
.woocommerce-checkout #payment {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
}

.woocommerce-checkout #payment ul.payment_methods {
    padding: 0;
    margin: 0 0 var(--spacing-lg);
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    border-bottom: none;
}

.woocommerce-checkout #payment ul.payment_methods li {
    padding: var(--spacing-md) var(--spacing-lg);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
    cursor: pointer;
}

.woocommerce-checkout #payment ul.payment_methods li:hover {
    border-color: var(--color-primary-light);
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method input[type="radio"]:checked ~ label {
    color: var(--color-primary-dark);
}

/* Aktive Zahlungsart hervorheben */
.woocommerce-checkout #payment ul.payment_methods li:has(input[type="radio"]:checked) {
    border-color: var(--color-primary);
    background-color: rgba(45, 106, 79, 0.03);
}

.woocommerce-checkout #payment ul.payment_methods li label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.woocommerce-checkout #payment ul.payment_methods li label img {
    max-height: 28px;
    width: auto;
}

.woocommerce-checkout #payment div.payment_box {
    background-color: var(--color-gray-100);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    color: var(--color-gray-500);
    margin-top: var(--spacing-sm);
    line-height: 1.6;
}

.woocommerce-checkout #payment div.payment_box::before {
    display: none;
}

/* --- "Jetzt kaufen" Button --- */
.woocommerce #place_order {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 1.1rem 2rem;
    border-radius: var(--radius-btn);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-lg);
    width: 100%;
    cursor: pointer;
    transition: background-color var(--transition-base), transform var(--transition-fast), box-shadow var(--transition-base);
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.4;
}

.woocommerce #place_order:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Vertrauens-Hinweise unter dem Kauf-Button */
.woocommerce-checkout #payment .place-order::after {
    content: "\1F512 Sichere Zahlung \00B7 Datenschutz garantiert";
    display: block;
    text-align: center;
    font-size: var(--fs-xs);
    color: var(--color-gray-400);
    margin-top: var(--spacing-md);
    line-height: 1.5;
}

/* AGB-Checkbox */
.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--color-gray-100);
    border-radius: var(--radius-sm);
}

.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper label {
    font-size: var(--fs-sm);
    color: var(--color-gray-500);
    cursor: pointer;
}

.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Datenschutzhinweis */
.woocommerce-privacy-policy-text {
    font-size: var(--fs-xs);
    color: var(--color-gray-400);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.woocommerce-privacy-policy-text a {
    color: var(--color-primary);
}


/* ==========================================================================
   9. BESTELLBESTAETIGUNG (Thank You / Order Received)
   ========================================================================== */

/* Erfolgs-Banner */
.woocommerce-order-received .woocommerce-notice--success,
.woocommerce-thankyou-order-received {
    background: linear-gradient(135deg, #2d6a4f, #3f7b5d);
    color: var(--color-white);
    padding: 2.15rem var(--spacing-2xl);
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    line-height: 1.35;
    border: none;
    box-shadow: 0 18px 45px rgba(20, 45, 32, 0.14);
}

.woocommerce-thankyou-order-received::before {
    content: "\2713";
    display: block;
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto var(--spacing-md);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 2rem;
    line-height: 3.25rem;
    opacity: 0.9;
}

/* Bestelldetails Uebersicht */
.woocommerce-order-overview,
.woocommerce ul.woocommerce-order-overview {
    list-style: none;
    padding: 0;
    margin: 0 auto var(--spacing-2xl);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--spacing-lg);
    max-width: 860px;
}

.woocommerce-order-overview li {
    background: var(--color-white);
    padding: 1.35rem 1.2rem;
    border-radius: 8px;
    border: 1px solid rgba(27, 67, 50, 0.1);
    box-shadow: 0 16px 38px rgba(20, 45, 32, 0.08);
    text-align: center;
    font-size: 0.78rem;
    color: #6b756d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.woocommerce-order-overview li strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-top: 0.35rem;
    text-transform: none;
    letter-spacing: 0;
}

.woocommerce-order-received .woocommerce > p:not(.woocommerce-thankyou-order-received) {
    max-width: 860px;
    margin: 0 auto var(--spacing-lg);
    color: #5f6c63;
    font-size: 1rem;
    line-height: 1.65;
}

.woocommerce-order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-customer-details {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

.woocommerce-order-received .woocommerce-order-details__title,
.woocommerce-order-received .woocommerce-column__title {
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

/* Bestellte Artikel Tabelle */
.woocommerce-order-received .woocommerce-table--order-details,
.woocommerce-view-order .woocommerce-table--order-details {
    background: var(--color-white);
    border-radius: 8px;
    border: 1px solid rgba(27, 67, 50, 0.1);
    box-shadow: 0 18px 50px rgba(20, 45, 32, 0.08);
    overflow: hidden;
    margin-bottom: var(--spacing-2xl);
    border-collapse: separate;
    border-spacing: 0;
}

.woocommerce-order-received .woocommerce-table--order-details th,
.woocommerce-order-received .woocommerce-table--order-details td {
    padding: 1.25rem 1.5rem;
    border-color: rgba(27, 67, 50, 0.1);
}

.woocommerce-order-received .woocommerce-table--order-details thead th {
    background: #f7f8f4;
    color: #516154;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.woocommerce-order-received .woocommerce-table--order-details tfoot th,
.woocommerce-order-received .woocommerce-table--order-details tfoot td {
    background: #fbfcf8;
}

.woocommerce-order-received .woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-order-received .woocommerce-table--order-details tfoot tr:last-child td {
    font-size: 1.05rem;
    color: #163225;
    background: #f2f6ef;
}

/* Adressen nebeneinander */
.woocommerce-order-received .woocommerce-columns--addresses,
.woocommerce-view-order .woocommerce-columns--addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.woocommerce-columns--addresses .woocommerce-column {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(27, 67, 50, 0.1);
    box-shadow: 0 16px 38px rgba(20, 45, 32, 0.08);
}

.woocommerce-columns--addresses .woocommerce-column h2 {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-border-light);
}

.woocommerce-columns--addresses .woocommerce-column address {
    font-style: normal;
    font-size: 1rem;
    color: #4f5d54;
    line-height: 1.75;
}

/* "Zurueck zum Shop" Button */
.woocommerce-order-received .woocommerce a.button,
.woocommerce-order-received .woocommerce a.woocommerce-button {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-btn);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-base);
    text-decoration: none;
    transition: background-color var(--transition-base), transform var(--transition-fast), box-shadow var(--transition-base);
    text-transform: none;
    margin-top: var(--spacing-lg);
}

.woocommerce-order-received .woocommerce a.button:hover,
.woocommerce-order-received .woocommerce a.woocommerce-button:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}


/* ==========================================================================
   10. MEIN KONTO (My Account)
   ========================================================================== */

.woocommerce-account .woocommerce {
    padding: var(--spacing-3xl) 0;
    display: flex;
    gap: var(--spacing-2xl);
    flex-wrap: wrap;
}

/* --- Seitenleisten-Navigation --- */
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 240px;
    flex-shrink: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid var(--color-border-light);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    font-family: var(--font-heading);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--color-gray-500);
    text-decoration: none;
    transition: all var(--transition-fast);
}

/* Icons fuer die Navigation (Unicode-Symbole) */
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--dashboard a::before {
    content: "\2302";
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--orders a::before {
    content: "\1F4E6";
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--downloads a::before {
    content: "\2B07";
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--edit-address a::before {
    content: "\1F3E0";
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--edit-account a::before {
    content: "\2699";
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a::before {
    content: "\2190";
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background-color: var(--color-gray-100);
    color: var(--color-primary);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
}

/* --- Inhaltsbereich --- */
.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1;
    min-width: 0;
}

.hedderich-account-dashboard,
.hedderich-account-orders {
    display: grid;
    gap: var(--spacing-lg);
}

.hedderich-account-overview,
.hedderich-account-card,
.hedderich-account-order-card {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.hedderich-account-overview {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
    align-items: center;
}

.hedderich-account-overview h2,
.hedderich-account-card h3,
.hedderich-account-order-card h3 {
    margin: 0;
    color: var(--color-dark);
}

.hedderich-account-overview p {
    margin: var(--spacing-xs) 0 0;
    color: var(--color-gray-500);
}

.hedderich-account-eyebrow {
    margin: 0 0 var(--spacing-xs);
    color: var(--color-primary);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hedderich-account-stats {
    display: flex;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

.hedderich-account-password-link.button {
    width: auto;
    min-height: 42px;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    white-space: nowrap;
}

.hedderich-account-stats span {
    display: grid;
    min-width: 92px;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 8px;
    background: var(--color-gray-100);
    color: var(--color-gray-500);
    text-align: center;
}

.hedderich-account-stats strong {
    color: var(--color-dark);
    font-size: var(--fs-xl);
    line-height: 1;
}

.hedderich-account-card {
    padding: var(--spacing-xl);
}

.hedderich-account-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.hedderich-account-card__head a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}

.hedderich-account-order-list {
    display: grid;
    gap: var(--spacing-sm);
}

.hedderich-account-order,
.hedderich-account-document-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: var(--spacing-md);
    align-items: center;
    padding: var(--spacing-md);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    background: #fbfcf8;
}

.hedderich-account-order strong,
.hedderich-account-document-row span {
    color: var(--color-dark);
}

.hedderich-account-order span:not(.hedderich-account-status) {
    display: block;
    margin-top: 0.2rem;
    color: var(--color-gray-500);
    font-size: var(--fs-sm);
}

.hedderich-account-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    min-height: 34px;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #eef5ef;
    color: var(--color-primary);
    font-size: var(--fs-xs);
    font-weight: 800;
    white-space: nowrap;
}

.hedderich-account-status--completed,
.hedderich-account-status--processing {
    background: #e9f7ee;
    color: #22653f;
}

.hedderich-account-status--pending,
.hedderich-account-status--on-hold {
    background: #fff6df;
    color: #8a6410;
}

.hedderich-account-status--cancelled,
.hedderich-account-status--failed,
.hedderich-account-status--refunded {
    background: #f6e7e4;
    color: #8a2d20;
}

.hedderich-account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    justify-content: flex-end;
}

.woocommerce-account .woocommerce form .button.hedderich-account-action,
.woocommerce-account .hedderich-account-action.button,
.hedderich-account-action.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 38px;
    padding: 0.55rem 0.9rem;
    border-radius: 6px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: var(--fs-xs);
    font-weight: 800;
    text-decoration: none;
    transform: none;
}

.hedderich-account-action--view {
    background: var(--color-primary);
}

.hedderich-account-action--document,
.hedderich-account-action--invoice,
.hedderich-account-action--pdf {
    background: var(--color-accent);
    color: var(--color-dark);
}

.hedderich-account-empty {
    padding: var(--spacing-lg);
    border-radius: 8px;
    background: #fbfcf8;
    color: var(--color-gray-500);
    text-align: center;
}

.hedderich-account-empty strong {
    display: block;
    color: var(--color-dark);
    margin-bottom: var(--spacing-xs);
}

.hedderich-account-empty p {
    margin: 0 0 var(--spacing-md);
}

.hedderich-account-empty--compact {
    text-align: left;
}

.hedderich-account-order-card {
    padding: var(--spacing-lg);
}

.hedderich-account-order-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.hedderich-account-order-card__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.hedderich-account-order-card__meta span {
    display: grid;
    gap: 0.2rem;
    padding: var(--spacing-md);
    border-radius: 8px;
    background: #fbfcf8;
}

.hedderich-account-order-card__meta small {
    color: var(--color-gray-500);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
}

.hedderich-account-order-card__meta strong {
    color: var(--color-dark);
}

.hedderich-account-document-note {
    display: grid;
    gap: 0.25rem;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: 8px;
    background: #f3f7ef;
    color: var(--color-gray-500);
}

.hedderich-account-document-note strong {
    color: var(--color-primary);
}

.woocommerce-account fieldset {
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.woocommerce-account fieldset legend {
    padding: 0 var(--spacing-xs);
    color: var(--color-dark);
    font-weight: 800;
}

/* Bestellhistorie-Tabelle */
.woocommerce-account .woocommerce-orders-table {
    width: 100%;
}

.woocommerce-account .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a.button {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-btn);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-xs);
    text-decoration: none;
    transition: background-color var(--transition-fast);
    text-transform: none;
}

.woocommerce-account .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a.button:hover {
    background-color: var(--color-primary-dark);
}

/* --- Login / Registrierung (zentriertes Karten-Layout) --- */
.woocommerce-account:not(.logged-in) .woocommerce {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.woocommerce-account .woocommerce form.woocommerce-form-login,
.woocommerce-account .woocommerce form.woocommerce-form-register {
    background: var(--color-white);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
}

.woocommerce-account .woocommerce h2 {
    font-family: var(--font-heading);
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

/* Login/Register Button */
.woocommerce form.woocommerce-form-login .woocommerce-button,
.woocommerce form.woocommerce-form-register .woocommerce-button,
.woocommerce-account .woocommerce form .button {
    display: block;
    width: 100%;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 0.9rem;
    border-radius: var(--radius-btn);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-base);
    cursor: pointer;
    transition: background-color var(--transition-base), transform var(--transition-fast);
    text-transform: none;
    text-align: center;
}

.woocommerce form.woocommerce-form-login .woocommerce-button:hover,
.woocommerce form.woocommerce-form-register .woocommerce-button:hover,
.woocommerce-account .woocommerce form .button:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
}

/* Passwort vergessen Link */
.woocommerce form .lost_password {
    text-align: center;
    margin-top: var(--spacing-md);
}

.woocommerce form .lost_password a {
    color: var(--color-primary);
    font-size: var(--fs-sm);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.woocommerce form .lost_password a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* Angemeldet bleiben Checkbox */
.woocommerce form .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--fs-sm);
    color: var(--color-gray-500);
    cursor: pointer;
    margin-bottom: var(--spacing-md);
}


/* ==========================================================================
   11. BENACHRICHTIGUNGEN & MELDUNGEN
   ========================================================================== */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    width: min(1180px, calc(100% - 40px));
    margin: 28px auto 24px;
    padding: 18px 22px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 14px;
    line-height: 1.5;
    list-style: none;
    font-family: 'Figtree', -apple-system, sans-serif;
    box-shadow: 0 14px 34px -24px rgba(20, 40, 25, .3);
}

/* Erfolgsmeldung (gruen, cloud.ai-Design) */
.woocommerce-message {
    background: #eef5ef;
    border-color: #cfe3ca;
    color: #173a24;
}

.woocommerce-message::before {
    content: "\2713";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    min-width: 30px;
    background: #2f8f3f;
    color: #fff;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 800;
}

/* Info-Meldung (neutral, on-brand statt blau) */
.woocommerce-info {
    background: #f7f8f3;
    border-color: #e6ebe2;
    color: #3a4a3e;
}

.woocommerce-info::before {
    content: "i";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    background-color: #3b82f6;
    color: var(--color-white);
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: 700;
    font-style: italic;
}

/* Fehlermeldung (rot) */
.woocommerce-error {
    background-color: #fef2f2;
    border-color: #f6cbcb;
    color: #991b1b;
    flex-wrap: wrap;
}

.woocommerce-error::before {
    content: "!";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    background-color: #ef4444;
    color: var(--color-white);
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: 700;
}

.woocommerce-error li {
    list-style: none;
    width: 100%;
}

/* Button in Meldungen */
.woocommerce-message .button {
    margin-left: auto;
    background: #2f8f3f;
    color: #fff;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 14.5px;
    font-family: 'Figtree', -apple-system, sans-serif;
    font-weight: 800;
    text-decoration: none;
    transition: opacity .15s ease;
    text-transform: none;
    white-space: nowrap;
    border: none;
}

.woocommerce-message .button:hover {
    background: #2f8f3f;
    opacity: .92;
}

/* WooCommerce fokussiert die Meldung nach dem Redirect (a11y) → Fokus-Ring on-brand statt Browser-Blau */
.woocommerce-message:focus,
.woocommerce-info:focus,
.woocommerce-error:focus,
.woocommerce-notices-wrapper:focus,
.woocommerce-notices-wrapper:focus-visible {
    outline: 2px solid rgba(47, 143, 63, .45);
    outline-offset: 3px;
}


/* ==========================================================================
   12. MINI-WARENKORB (Header Cart Widget)
   ========================================================================== */

.widget_shopping_cart {
    position: relative;
}

.widget_shopping_cart .widget_shopping_cart_content {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border-light);
    padding: var(--spacing-lg);
    min-width: 320px;
}

/* Produktliste im Mini-Warenkorb */
.widget_shopping_cart ul.cart_list,
.widget_shopping_cart ul.product_list_widget {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-md);
    max-height: 300px;
    overflow-y: auto;
}

.widget_shopping_cart ul.cart_list li,
.widget_shopping_cart ul.product_list_widget li {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    position: relative;
}

.widget_shopping_cart ul.cart_list li:last-child,
.widget_shopping_cart ul.product_list_widget li:last-child {
    border-bottom: none;
}

.widget_shopping_cart ul.cart_list li img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.widget_shopping_cart ul.cart_list li a:not(.remove) {
    font-family: var(--font-heading);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-dark);
    text-decoration: none;
    line-height: 1.35;
}

.widget_shopping_cart ul.cart_list li a:not(.remove):hover {
    color: var(--color-primary);
}

.widget_shopping_cart ul.cart_list li .quantity {
    font-size: var(--fs-xs);
    color: var(--color-gray-400);
    border: none;
}

.widget_shopping_cart ul.cart_list li .amount {
    font-weight: 700;
    color: var(--color-accent);
}

/* Entfernen im Mini-Warenkorb */
.widget_shopping_cart ul.cart_list li a.remove {
    position: absolute;
    top: var(--spacing-sm);
    right: 0;
    width: 20px;
    height: 20px;
    font-size: var(--fs-xs);
    color: var(--color-gray-300) !important;
}

.widget_shopping_cart ul.cart_list li a.remove:hover {
    color: #ef4444 !important;
    background: transparent;
}

/* Zwischensumme */
.widget_shopping_cart .total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    border-top: 2px solid var(--color-border-light);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-base);
    color: var(--color-dark);
}

.widget_shopping_cart .total .amount {
    color: var(--color-accent);
    font-size: var(--fs-lg);
}

/* Buttons im Mini-Warenkorb */
.widget_shopping_cart .buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.widget_shopping_cart .buttons a {
    display: block;
    padding: 0.7rem;
    border-radius: var(--radius-btn);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-sm);
    text-align: center;
    text-decoration: none;
    transition: all var(--transition-fast);
    text-transform: none;
}

/* "Warenkorb ansehen" */
.widget_shopping_cart .buttons a:first-child {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.widget_shopping_cart .buttons a:first-child:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* "Zur Kasse" */
.widget_shopping_cart .buttons a.checkout {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
}

.widget_shopping_cart .buttons a.checkout:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

/* Leerer Mini-Warenkorb */
.widget_shopping_cart .empty {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    color: var(--color-gray-400);
    font-size: var(--fs-sm);
}


/* ==========================================================================
   13. PAGINIERUNG
   ========================================================================== */

.woocommerce nav.woocommerce-pagination {
    margin-top: var(--spacing-3xl);
    text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    gap: var(--spacing-xs);
    border: none;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-btn);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-dark);
    background: var(--color-white);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* Zurueck/Weiter Pfeile */
.woocommerce nav.woocommerce-pagination ul li a.prev,
.woocommerce nav.woocommerce-pagination ul li a.next {
    width: auto;
    padding: 0 var(--spacing-md);
    font-size: var(--fs-sm);
}


/* ==========================================================================
   14. ALLGEMEINE WC-BUTTONS (Fallback-Stil)
   ========================================================================== */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-btn);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-sm);
    cursor: pointer;
    transition: background-color var(--transition-base), transform var(--transition-fast);
    text-transform: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    line-height: 1.4;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-1px);
}

.woocommerce a.button:disabled,
.woocommerce button.button:disabled,
.woocommerce input.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Deaktivierter Zustand */
.woocommerce a.button.disabled,
.woocommerce button.button.disabled,
.woocommerce input.button.disabled {
    opacity: 0.5;
    pointer-events: none;
}


/* ==========================================================================
   15. WIDGET-STILE (Seitenleiste)
   ========================================================================== */

/* Preisfilter */
.woocommerce .widget_price_filter .price_slider_wrapper {
    padding: var(--spacing-md) 0;
}

.woocommerce .widget_price_filter .ui-slider {
    background-color: var(--color-gray-200);
    border-radius: var(--radius-full);
    height: 6px;
    border: none;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-range {
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
    background-color: var(--color-white);
    border: 3px solid var(--color-primary);
    border-radius: var(--radius-full);
    width: 20px;
    height: 20px;
    top: -7px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-fast);
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-handle:hover,
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle:focus {
    box-shadow: var(--shadow-md);
}

.woocommerce .widget_price_filter .price_slider_amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    font-size: var(--fs-sm);
    color: var(--color-gray-500);
}

.woocommerce .widget_price_filter .price_slider_amount .button {
    font-size: var(--fs-xs);
    padding: 0.4rem 1rem;
}

/* Produkt-Listen-Widget */
.woocommerce ul.product_list_widget {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce ul.product_list_widget li {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-border-light);
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.woocommerce ul.product_list_widget li:last-child {
    border-bottom: none;
}

.woocommerce ul.product_list_widget li img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.woocommerce ul.product_list_widget li a {
    font-family: var(--font-heading);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-dark);
    text-decoration: none;
}

.woocommerce ul.product_list_widget li a:hover {
    color: var(--color-primary);
}

.woocommerce ul.product_list_widget li .amount {
    font-weight: 700;
    color: var(--color-accent);
}


/* ==========================================================================
   16. LADEANIMATION & OVERLAY
   ========================================================================== */

.woocommerce .blockUI.blockOverlay {
    background-color: var(--color-white) !important;
    opacity: 0.7 !important;
}

.woocommerce .loader {
    display: none;
}

/* WC-Block-Loader */
.woocommerce .blockUI.blockOverlay::before {
    content: "";
    display: block;
    width: 32px;
    height: 32px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: var(--radius-full);
    animation: wc-spin 0.7s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -16px 0 0 -16px;
}

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


/* ==========================================================================
   17. RESPONSIVE ANPASSUNGEN
   ========================================================================== */

/* --- Tablet: 1024px --- */
@media (max-width: 1024px) {
    /* Produktraster: 2 Spalten auf Tablet */
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    .woocommerce div.product .related.products ul.products,
    .woocommerce div.product .upsells.products ul.products {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Warenkorb-Summen volle Breite */
    .woocommerce .cart-collaterals .cart_totals {
        width: 100%;
        float: none;
    }

    /* Mein Konto Layout */
    .woocommerce-account .woocommerce {
        flex-direction: column;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation {
        width: 100%;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        display: flex;
        flex-wrap: wrap;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul li {
        border-bottom: none;
        border-right: 1px solid var(--color-border-light);
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child {
        border-right: none;
    }
}

/* --- Tablet klein / grosses Handy: 768px --- */
@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    /* Einzelprodukt: Bild und Info untereinander */
    .woocommerce div.product div.images,
    .woocommerce #content div.product div.images,
    .woocommerce div.product div.summary,
    .woocommerce #content div.product div.summary {
        width: 100%;
        float: none;
        padding-right: 0;
    }

    .woocommerce div.product div.images {
        margin-bottom: var(--spacing-xl);
    }

    .woocommerce div.product .product_title {
        font-size: var(--fs-3xl);
    }

    .woocommerce div.product p.price,
    .woocommerce div.product span.price {
        font-size: var(--fs-2xl);
    }

    /* Tabs: horizontal scrollbar */
    .woocommerce div.product .woocommerce-tabs ul.tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar {
        display: none;
    }

    /* Checkout: eine Spalte */
    .woocommerce .col2-set {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    /* Bestelluebersicht Adressen */
    .woocommerce-order-overview,
    .woocommerce ul.woocommerce-order-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--spacing-sm);
    }

    .woocommerce-order-received .woocommerce-columns--addresses,
    .woocommerce-view-order .woocommerce-columns--addresses {
        grid-template-columns: 1fr;
    }

    /* Warenkorb-Aktionen */
    .woocommerce .coupon {
        width: 100%;
        flex-direction: column;
    }

    .woocommerce .coupon .input-text {
        min-width: 100%;
    }

    .woocommerce button[name="update_cart"] {
        float: none;
        width: 100%;
        margin-top: var(--spacing-sm);
    }

    /* Mini-Warenkorb */
    .widget_shopping_cart .widget_shopping_cart_content {
        min-width: 280px;
    }
}

/* --- Handy: 480px --- */
@media (max-width: 480px) {
    /* Eine Spalte fuer alles */
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }

    .woocommerce div.product .related.products ul.products,
    .woocommerce div.product .upsells.products ul.products {
        grid-template-columns: 1fr;
    }

    /* Warenkorb-Tabelle horizontal scrollen */
    .woocommerce table.shop_table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .woocommerce table.shop_table thead {
        display: none;
    }

    .woocommerce table.shop_table tbody,
    .woocommerce table.shop_table tbody tr {
        display: block;
    }

    .woocommerce table.shop_table tbody tr {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
        border: 1px solid var(--color-border-light);
        border-radius: var(--radius-md);
        background: var(--color-white);
    }

    .woocommerce table.shop_table tbody tr td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--spacing-sm) 0;
        border-bottom: 1px solid var(--color-border-light);
    }

    .woocommerce table.shop_table tbody tr td:last-child {
        border-bottom: none;
    }

    .woocommerce table.shop_table tbody tr td::before {
        content: attr(data-title);
        font-family: var(--font-heading);
        font-weight: 600;
        font-size: var(--fs-xs);
        color: var(--color-gray-400);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-right: var(--spacing-md);
    }

    /* Einzelprodukt: Warenkorb-Form stapeln */
    .woocommerce div.product form.cart {
        flex-direction: column;
        align-items: stretch;
    }

    .woocommerce div.product form.cart .quantity {
        width: 100%;
        justify-content: center;
    }

    .woocommerce div.product form.cart .button {
        width: 100%;
    }

    /* Bestelluebersicht Karten */
    .woocommerce-order-overview,
    .woocommerce ul.woocommerce-order-overview {
        grid-template-columns: 1fr 1fr;
    }

    /* Produkttitel kleiner */
    .woocommerce div.product .product_title {
        font-size: var(--fs-2xl);
    }

    /* Checkout Zahlungsarten */
    .woocommerce-checkout #payment ul.payment_methods li {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .woocommerce-checkout #payment ul.payment_methods li label {
        font-size: var(--fs-xs);
    }

    /* Seitenabstaende reduzieren */
    .woocommerce-cart .woocommerce,
    .woocommerce-checkout .woocommerce,
    .woocommerce div.product {
        padding: var(--spacing-xl) 0;
    }

    /* Benachrichtigungen kompakter */
    .woocommerce-message,
    .woocommerce-info,
    .woocommerce-error {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--fs-xs);
    }

    .woocommerce-message::before,
    .woocommerce-info::before,
    .woocommerce-error::before {
        width: 22px;
        height: 22px;
        min-width: 22px;
        font-size: 0.625rem;
    }
}

/* --- Sehr kleines Handy: 360px --- */
@media (max-width: 360px) {
    .woocommerce-order-overview,
    .woocommerce ul.woocommerce-order-overview {
        grid-template-columns: 1fr;
    }

    .woocommerce div.product .product_title {
        font-size: var(--fs-xl);
    }

    .woocommerce div.product p.price,
    .woocommerce div.product span.price {
        font-size: var(--fs-xl);
    }
}


/* ==========================================================================
   18. DRUCKSTILE
   ========================================================================== */

@media print {
    .woocommerce-breadcrumb,
    .woocommerce-ordering,
    .woocommerce-result-count,
    .widget_shopping_cart,
    .wc-proceed-to-checkout,
    .coupon,
    .woocommerce a.remove {
        display: none !important;
    }

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

    .woocommerce ul.products li.product {
        box-shadow: none;
        border: 1px solid var(--color-gray-200);
        break-inside: avoid;
    }

    .woocommerce table.shop_table {
        box-shadow: none;
        border: 1px solid var(--color-gray-200);
    }
}


/* ==========================================================================
   CART PAGE FIXES
   ========================================================================== */

/* --- Cart Table: Card-style container --- */
.woocommerce-cart table.shop_table {
    border: none !important;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    background: var(--color-white);
}

/* --- Cart Table Header Row --- */
.woocommerce-cart table.shop_table thead th {
    background: var(--color-gray-100);
    color: var(--color-gray-500);
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: var(--spacing-sm) var(--spacing-md);
    border: none !important;
}

/* --- Product Rows --- */
.woocommerce-cart table.shop_table tbody td {
    padding: var(--spacing-md);
    vertical-align: middle;
    border-top: 1px solid var(--color-gray-100) !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
}

.woocommerce-cart table.shop_table tbody tr:first-child td {
    border-top: none !important;
}

/* --- Product Thumbnail --- */
.woocommerce-cart table.shop_table .product-thumbnail img,
.woocommerce-cart table.shop_table .product-thumbnail .wp-post-image,
.woocommerce-cart table.shop_table .product-thumbnail a img {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    box-shadow: var(--shadow-sm);
}

.woocommerce-cart table.shop_table .product-thumbnail .woocommerce-placeholder,
.woocommerce-cart table.shop_table .product-thumbnail .wp-post-image[src*="placeholder"] {
    width: 70px !important;
    height: 70px !important;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)) !important;
    opacity: 1;
}

/* --- Quantity Input --- */
.woocommerce-cart table.shop_table .quantity input.qty {
    width: 60px;
    height: 38px;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: var(--fs-sm);
    font-family: var(--font-body);
    background: var(--color-white);
    padding: var(--spacing-xs);
    transition: border-color 0.2s ease;
    -moz-appearance: textfield;
    appearance: textfield;
}

.woocommerce-cart table.shop_table .quantity input.qty:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.woocommerce-cart table.shop_table .quantity input.qty::-webkit-inner-spin-button,
.woocommerce-cart table.shop_table .quantity input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* --- Remove Button (x) --- */
.woocommerce-cart table.shop_table .product-remove a.remove {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-gray-100);
    color: var(--color-gray-400) !important;
    font-size: 18px !important;
    line-height: 1;
    text-decoration: none;
    transition: all 0.2s ease;
}

.woocommerce-cart table.shop_table .product-remove a.remove:hover {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}

/* --- Subtotal / Prices --- */
.woocommerce-cart table.shop_table .product-subtotal,
.woocommerce-cart table.shop_table .product-price {
    font-weight: 600;
    font-size: var(--fs-base);
    text-align: right;
}

.woocommerce-cart table.shop_table .product-subtotal .woocommerce-Price-amount,
.woocommerce-cart table.shop_table .product-price .woocommerce-Price-amount {
    color: var(--color-primary-dark);
}

/* --- Actions Row (Coupon + Update) --- */
.woocommerce-cart table.shop_table .actions {
    padding: var(--spacing-md) !important;
    background: var(--color-gray-100);
    border-top: 1px solid var(--color-gray-200) !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
}

.woocommerce-cart table.shop_table .actions .coupon {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.woocommerce-cart table.shop_table .actions .coupon label {
    display: none;
}

.woocommerce-cart table.shop_table .actions .coupon #coupon_code {
    height: 38px;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--fs-sm);
    min-width: 180px;
    background: var(--color-white);
}

.woocommerce-cart table.shop_table .actions .coupon #coupon_code:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.woocommerce-cart table.shop_table .actions .coupon .button {
    height: 38px;
    padding: 0 var(--spacing-md);
    background: var(--color-white);
    color: var(--color-dark);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.woocommerce-cart table.shop_table .actions .coupon .button:hover {
    background: var(--color-gray-100);
    border-color: var(--color-gray-400);
}

.woocommerce-cart table.shop_table .actions > button[name="update_cart"],
.woocommerce-cart table.shop_table .actions > input[name="update_cart"] {
    height: 38px;
    padding: 0 var(--spacing-md);
    background: var(--color-white);
    color: var(--color-gray-500);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
}

.woocommerce-cart table.shop_table .actions > button[name="update_cart"]:hover,
.woocommerce-cart table.shop_table .actions > input[name="update_cart"]:hover {
    background: var(--color-gray-100);
    border-color: var(--color-gray-300);
    color: var(--color-dark);
}

.woocommerce-cart table.shop_table .actions > button[name="update_cart"]:disabled,
.woocommerce-cart table.shop_table .actions > input[name="update_cart"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Cart Totals Section --- */
.woocommerce-cart .cart_totals {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
}

.woocommerce-cart .cart_totals > h2 {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-gray-100);
}

.woocommerce-cart .cart_totals table.shop_table {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;
    background: transparent;
}

.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
    padding: var(--spacing-sm) 0 !important;
    border: none !important;
    border-bottom: 1px solid var(--color-gray-100) !important;
    background: transparent;
    font-size: var(--fs-sm);
}

.woocommerce-cart .cart_totals table.shop_table th {
    color: var(--color-gray-500);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.woocommerce-cart .cart_totals table.shop_table tr.order-total th,
.woocommerce-cart .cart_totals table.shop_table tr.order-total td {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--color-dark);
    border-bottom: none !important;
    padding-top: var(--spacing-md) !important;
}

.woocommerce-cart .cart_totals table.shop_table tr.order-total td .woocommerce-Price-amount {
    color: var(--color-primary-dark);
    font-size: var(--fs-xl);
}

/* --- "Weiter zur Kasse" Button --- */
.woocommerce-cart .cart_totals .wc-proceed-to-checkout {
    padding-top: var(--spacing-md);
}

.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart .cart_totals .wc-proceed-to-checkout .button {
    display: block !important;
    width: 100% !important;
    text-align: center;
    padding: var(--spacing-md) var(--spacing-lg) !important;
    background: var(--color-primary) !important;
    color: var(--color-white) !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    font-family: var(--font-heading);
    font-size: var(--fs-base) !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-cart .cart_totals .wc-proceed-to-checkout .button:hover {
    background: var(--color-primary-dark) !important;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* --- Success Message Banner --- */
.woocommerce-cart .woocommerce-message {
    border: none !important;
    border-left: 4px solid var(--color-primary) !important;
    background: #f0fdf4;
    color: var(--color-dark);
    padding: var(--spacing-sm) var(--spacing-md) !important;
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.woocommerce-cart .woocommerce-message::before {
    content: none !important;
    display: none !important;
}

.woocommerce-cart .woocommerce-message .button {
    margin-left: auto;
    order: 2;
    white-space: nowrap;
}

/* --- Duenger-Abo Notice in Table --- */
.woocommerce-cart table.shop_table .duenger-abo-notice,
.woocommerce-cart table.shop_table [class*="abo-notice"],
.woocommerce-cart table.shop_table .subscription-notice {
    border: 1px solid var(--color-primary) !important;
    border-style: solid !important;
    border-radius: var(--radius-sm);
    background: #f0fdf4;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--fs-xs);
    color: var(--color-primary-dark);
    outline: none !important;
}

/* Also catch dashed outlines applied via inline styles or other classes */
.woocommerce-cart table.shop_table td [style*="dashed"],
.woocommerce-cart table.shop_table td [style*="border"] {
    border-style: solid !important;
    border-color: var(--color-primary) !important;
    border-width: 1px !important;
    border-radius: var(--radius-sm);
}


/* ==========================================================================
   B2B PAGE LOGIN FIXES
   ========================================================================== */

/* --- B2B-Login Heading: Force correct font --- */
.page-template-b2b .b2b-login h2,
.page-template-b2b .b2b-login h3,
.page-template-b2b .b2b-login-heading,
.b2b-section h2,
.b2b-login h2,
.b2b-login h3,
body.page-slug-b2b h2,
body.page-id-b2b h2 {
    font-family: var(--font-heading) !important;
    font-weight: 700;
    color: var(--color-dark);
}

/* --- Login Form Container: Card styling --- */
.page-template-b2b .woocommerce-form-login,
.b2b-login .woocommerce-form-login,
.b2b-section .woocommerce-form-login,
body[class*="b2b"] .woocommerce-form-login {
    background: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-gray-100);
    max-width: 480px;
}

.page-template-b2b .woocommerce-form-login label,
.b2b-login .woocommerce-form-login label,
body[class*="b2b"] .woocommerce-form-login label {
    font-family: var(--font-heading);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: var(--spacing-xs);
    display: block;
}

.page-template-b2b .woocommerce-form-login input[type="text"],
.page-template-b2b .woocommerce-form-login input[type="password"],
.page-template-b2b .woocommerce-form-login input[type="email"],
.b2b-login .woocommerce-form-login input[type="text"],
.b2b-login .woocommerce-form-login input[type="password"],
.b2b-login .woocommerce-form-login input[type="email"],
body[class*="b2b"] .woocommerce-form-login input[type="text"],
body[class*="b2b"] .woocommerce-form-login input[type="password"],
body[class*="b2b"] .woocommerce-form-login input[type="email"] {
    width: 100%;
    height: 44px;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--fs-base);
    font-family: var(--font-body);
    transition: border-color 0.2s ease;
    background: var(--color-white);
}

.page-template-b2b .woocommerce-form-login input:focus,
.b2b-login .woocommerce-form-login input:focus,
body[class*="b2b"] .woocommerce-form-login input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.page-template-b2b .woocommerce-form-login .woocommerce-button,
.page-template-b2b .woocommerce-form-login button[type="submit"],
.b2b-login .woocommerce-form-login .woocommerce-button,
.b2b-login .woocommerce-form-login button[type="submit"],
body[class*="b2b"] .woocommerce-form-login .woocommerce-button,
body[class*="b2b"] .woocommerce-form-login button[type="submit"] {
    width: 100%;
    height: 48px;
    background: var(--color-primary) !important;
    color: var(--color-white) !important;
    border: none !important;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: var(--fs-base);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: var(--spacing-sm);
}

.page-template-b2b .woocommerce-form-login .woocommerce-button:hover,
.page-template-b2b .woocommerce-form-login button[type="submit"]:hover,
.b2b-login .woocommerce-form-login .woocommerce-button:hover,
.b2b-login .woocommerce-form-login button[type="submit"]:hover,
body[class*="b2b"] .woocommerce-form-login .woocommerce-button:hover,
body[class*="b2b"] .woocommerce-form-login button[type="submit"]:hover {
    background: var(--color-primary-dark) !important;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* --- Error Message --- */
.page-template-b2b .woocommerce-error,
.b2b-login .woocommerce-error,
body[class*="b2b"] .woocommerce-error {
    border: none !important;
    border-left: 4px solid #dc2626 !important;
    border-radius: var(--radius-sm);
    background: #fef2f2;
    color: var(--color-dark);
    padding: var(--spacing-sm) var(--spacing-md) !important;
    margin-bottom: var(--spacing-md);
    font-size: var(--fs-sm);
    list-style: none;
    box-shadow: var(--shadow-sm);
}

.page-template-b2b .woocommerce-error::before,
.b2b-login .woocommerce-error::before,
body[class*="b2b"] .woocommerce-error::before,
.page-template-b2b .woocommerce-error li::before,
.b2b-login .woocommerce-error li::before,
body[class*="b2b"] .woocommerce-error li::before {
    content: none !important;
    display: none !important;
}

/* --- "Anmelden" Heading --- */
.page-template-b2b .woocommerce-form-login h2,
.page-template-b2b .woocommerce h2:has(+ .woocommerce-form-login),
.b2b-login .woocommerce-form-login h2,
.b2b-login .woocommerce h2,
body[class*="b2b"] .woocommerce-form-login h2,
body[class*="b2b"] .woocommerce h2 {
    font-family: var(--font-heading) !important;
    font-size: var(--fs-xl) !important;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--spacing-md);
}

/* --- B2B Login Section Structure --- */
.page-template-b2b .b2b-login,
.b2b-login-section,
body[class*="b2b"] .b2b-login {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
    align-items: flex-start;
}

.page-template-b2b .b2b-login > *:first-child,
.b2b-login-section > *:first-child,
body[class*="b2b"] .b2b-login > *:first-child {
    flex: 1 1 400px;
}

.page-template-b2b .b2b-login > *:last-child,
.b2b-login-section > *:last-child,
body[class*="b2b"] .b2b-login > *:last-child {
    flex: 1 1 400px;
}

/* --- B2B Benefits List Refinement --- */
.page-template-b2b .b2b-benefits,
.b2b-login .b2b-benefits,
body[class*="b2b"] .b2b-benefits {
    background: var(--color-bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-100);
}

.page-template-b2b .b2b-benefits li,
.b2b-login .b2b-benefits li,
body[class*="b2b"] .b2b-benefits li {
    padding: var(--spacing-xs) 0;
    font-size: var(--fs-sm);
    color: var(--color-dark);
    line-height: 1.6;
    border-bottom: 1px solid var(--color-gray-100);
}

.page-template-b2b .b2b-benefits li:last-child,
.b2b-login .b2b-benefits li:last-child,
body[class*="b2b"] .b2b-benefits li:last-child {
    border-bottom: none;
}

/* --- B2B Lost Password Link --- */
.page-template-b2b .woocommerce-form-login .lost_password,
.b2b-login .woocommerce-form-login .lost_password,
body[class*="b2b"] .woocommerce-form-login .lost_password {
    margin-top: var(--spacing-sm);
    text-align: center;
}

.page-template-b2b .woocommerce-form-login .lost_password a,
.b2b-login .woocommerce-form-login .lost_password a,
body[class*="b2b"] .woocommerce-form-login .lost_password a {
    color: var(--color-primary);
    font-size: var(--fs-sm);
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-template-b2b .woocommerce-form-login .lost_password a:hover,
.b2b-login .woocommerce-form-login .lost_password a:hover,
body[class*="b2b"] .woocommerce-form-login .lost_password a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* --- B2B Responsive --- */
@media (max-width: 768px) {
    .page-template-b2b .b2b-login,
    .b2b-login-section,
    body[class*="b2b"] .b2b-login {
        flex-direction: column;
    }

    .page-template-b2b .woocommerce-form-login,
    .b2b-login .woocommerce-form-login,
    body[class*="b2b"] .woocommerce-form-login {
        max-width: 100%;
    }
}

/* --- Cart Page Responsive --- */
@media (max-width: 768px) {
    .woocommerce-cart table.shop_table .actions {
        flex-direction: column;
    }

    .woocommerce-cart table.shop_table .actions .coupon {
        width: 100%;
    }

    .woocommerce-cart table.shop_table .actions .coupon #coupon_code {
        flex: 1;
        min-width: 0;
    }

    .woocommerce-cart table.shop_table .actions > button[name="update_cart"],
    .woocommerce-cart table.shop_table .actions > input[name="update_cart"] {
        width: 100%;
        margin-left: 0;
    }
}

/* ==========================================================================
   Checkout-Polish (Hedderich Rasen) — minimal, robust, ohne Layout-Override.
   ========================================================================== */

/* Page-Wrap: heller, freundlicher Hintergrund hinter den Cards */
body.woocommerce-checkout .site-content,
body.woocommerce-cart .site-content {
    background: var(--color-bg-light);
}

body.woocommerce-checkout .site-content > .container,
body.woocommerce-cart .site-content > .container {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-3xl);
}

/* --- Card-Optik für Form-Sektionen --- */
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields,
.woocommerce-checkout .hedderich-delivery-notes {
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl) var(--spacing-2xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-xl);
}

.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3,
.woocommerce-checkout .hedderich-delivery-notes h3 {
    margin-top: 0;
    margin-bottom: var(--spacing-xl);
    font-size: var(--fs-2xl);
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: -0.01em;
    padding-bottom: var(--spacing-md);
    border-bottom: 3px solid var(--color-bg-light);
    position: relative;
}

.woocommerce-checkout .woocommerce-billing-fields h3::after,
.woocommerce-checkout .woocommerce-shipping-fields h3::after,
.woocommerce-checkout .woocommerce-additional-fields h3::after,
.woocommerce-checkout .hedderich-delivery-notes h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 60px;
    height: 3px;
    background: var(--color-accent);
}

/* --- Field-Polish --- */
.woocommerce-checkout form .form-row > label,
.woocommerce-checkout form .form-row label.required_field {
    font-weight: 600;
    color: var(--color-text);
    font-size: var(--fs-sm);
    margin-bottom: 0.4rem;
    display: block;
}

.woocommerce-checkout form .form-row .required {
    color: var(--color-accent);
    text-decoration: none;
}

.woocommerce-checkout form .form-row input.input-text,
.woocommerce-checkout form .form-row textarea,
.woocommerce-checkout form .form-row select {
    width: 100%;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    padding: 0.7rem 0.9rem;
    font-size: var(--fs-base);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    min-height: 44px;
}

.woocommerce-checkout form .form-row input.input-text:focus,
.woocommerce-checkout form .form-row textarea:focus,
.woocommerce-checkout form .form-row select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}

.woocommerce-checkout form .form-row.woocommerce-invalid input.input-text,
.woocommerce-checkout form .form-row.woocommerce-invalid textarea,
.woocommerce-checkout form .form-row.woocommerce-invalid select {
    border-color: #d63638;
}

.woocommerce-checkout form .form-row.woocommerce-validated input.input-text {
    border-color: var(--color-primary);
}

/* --- Bestellung Tabelle / Card --- */
.woocommerce-checkout #order_review_heading {
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-lg);
    font-size: var(--fs-2xl);
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.woocommerce-checkout #order_review {
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-xl);
}

.woocommerce-checkout #order_review .shop_table {
    width: 100%;
    border: none;
    margin-bottom: var(--spacing-lg);
    border-collapse: collapse;
}

.woocommerce-checkout #order_review .shop_table th,
.woocommerce-checkout #order_review .shop_table td {
    border: none;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-gray-100);
}

.woocommerce-checkout #order_review .shop_table thead th {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray-500);
    border-bottom: 2px solid var(--color-gray-200);
}

.woocommerce-checkout #order_review .shop_table tfoot .order-total th,
.woocommerce-checkout #order_review .shop_table tfoot .order-total td {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--color-primary);
    border-top: 2px solid var(--color-primary);
    padding-top: var(--spacing-md);
}

.woocommerce-checkout #order_review .shop_table .product-name {
    font-weight: 600;
}

.woocommerce-checkout #order_review .shop_table .product-quantity {
    color: var(--color-gray-500);
    font-weight: 500;
    margin-left: 0.4rem;
}

.woocommerce-checkout #order_review .hedderich-cart-sqm {
    color: var(--color-gray-500);
    font-size: var(--fs-xs);
}

/* --- Zahlungsmethoden --- */
.woocommerce-checkout #payment {
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.woocommerce-checkout #payment ul.payment_methods {
    border: none;
    padding: 0;
    margin: 0 0 var(--spacing-md);
    background: transparent;
    list-style: none !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    list-style: none !important;
}

.woocommerce-checkout #payment .payment_box {
    background: #fff;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-top: 0.5rem;
    border: 1px solid var(--color-gray-200);
    color: var(--color-text);
    font-size: var(--fs-sm);
}

.woocommerce-checkout #payment .payment_box::before {
    display: none;
}

/* --- "Bestellung absenden" Button --- */
.woocommerce-checkout #place_order {
    width: 100%;
    background: var(--color-accent);
    color: #fff;
    border: none;
    padding: 1rem 1.5rem;
    font-size: var(--fs-lg);
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
    margin-top: var(--spacing-md);
    box-shadow: var(--shadow-md);
    letter-spacing: 0.01em;
}

.woocommerce-checkout #place_order:hover {
    filter: brightness(0.92);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.woocommerce-checkout #place_order:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* --- Coupon / Login Hinweise --- */
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info {
    background: rgba(45, 106, 79, 0.06);
    border: 1px solid rgba(45, 106, 79, 0.18);
    border-left: 4px solid var(--color-primary);
    color: var(--color-text);
    padding: 0.85rem 1rem;
    font-size: var(--fs-sm);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info a,
.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info a {
    color: var(--color-primary);
    font-weight: 600;
}

/* --- AGB / Datenschutz vor Bestellbutton --- */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    background: rgba(212, 168, 67, 0.08);
    border-left: 3px solid var(--color-accent);
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    margin-top: var(--spacing-md);
    font-size: var(--fs-sm);
}

.woocommerce-checkout .woocommerce-privacy-policy-text p {
    margin-bottom: 0;
    color: var(--color-gray-500);
    font-size: var(--fs-xs);
    line-height: 1.5;
}

/* --- Lieferhinweise: Akzent-Border --- */
.woocommerce-checkout .hedderich-delivery-notes {
    border-left: 4px solid var(--color-accent);
}

/* --- Mobile (Checkout) --- */
@media (max-width: 768px) {
    .woocommerce-checkout .woocommerce-billing-fields,
    .woocommerce-checkout .woocommerce-shipping-fields,
    .woocommerce-checkout .woocommerce-additional-fields,
    .woocommerce-checkout .hedderich-delivery-notes,
    .woocommerce-checkout #order_review {
        padding: var(--spacing-lg);
    }
}

/* ==========================================================================
   Checkout + Bestellbestaetigung final polish
   ========================================================================== */

.hedderich-checkout-intro {
    max-width: 1180px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
}

.hedderich-checkout-intro__eyebrow {
    margin: 0 0 0.35rem;
    color: #2d6a4f;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.hedderich-checkout-intro h2 {
    margin: 0;
    color: #17251d;
    font-size: clamp(1.7rem, 2.6vw, 2.8rem);
    line-height: 1.05;
}

.hedderich-checkout-steps {
    display: flex;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hedderich-checkout-steps li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: #eef3ec;
    color: #5b675e;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.hedderich-checkout-steps span {
    display: grid;
    place-items: center;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    background: #fff;
    color: #2d6a4f;
}

.hedderich-checkout-steps .is-active {
    background: #2d6a4f;
    color: #fff;
}

.hedderich-checkout {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
    gap: 1.4rem;
    align-items: start;
}

.hedderich-checkout__content,
.hedderich-checkout__summary {
    min-width: 0;
}

.hedderich-checkout__summary {
    position: sticky;
    top: 1rem;
}

.hedderich-checkout-card,
.woocommerce-checkout #order_review {
    border-radius: 8px !important;
    border: 1px solid rgba(27, 67, 50, 0.12) !important;
    box-shadow: 0 18px 45px rgba(20, 45, 32, 0.08) !important;
}

.woocommerce-checkout #order_review_heading {
    margin-top: 0 !important;
    color: #17251d !important;
}

.woocommerce-checkout #payment {
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.woocommerce-checkout #payment::before {
    content: "Zahlungsart auswählen";
    display: block;
    margin: 1.1rem 0 0.75rem;
    color: #17251d;
    font-size: 1rem;
    font-weight: 900;
}

.woocommerce-checkout #payment ul.payment_methods {
    display: grid;
    gap: 0.65rem;
}

.woocommerce-checkout #payment ul.payment_methods li {
    position: relative;
    padding: 0 !important;
    border: 1px solid rgba(27, 67, 50, 0.14) !important;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(20, 45, 32, 0.045);
}

.woocommerce-checkout #payment ul.payment_methods li > input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.woocommerce-checkout #payment ul.payment_methods li > label {
    display: flex !important;
    align-items: center;
    gap: 0.8rem;
    min-height: 58px;
    margin: 0 !important;
    padding: 0.9rem 1rem 0.9rem 3rem !important;
    color: #17251d;
    font-size: 0.98rem;
    font-weight: 900 !important;
    cursor: pointer;
}

.woocommerce-checkout #payment ul.payment_methods li > label::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 1.05rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 999px;
    border: 2px solid #b8c2b8;
    background: #fff;
}

.woocommerce-checkout #payment ul.payment_methods li:has(input[type="radio"]:checked) {
    border-color: #2d6a4f !important;
    background: #f2f8f1;
}

.woocommerce-checkout #payment ul.payment_methods li:has(input[type="radio"]:checked) > label::before {
    border-color: #2d6a4f;
    box-shadow: inset 0 0 0 4px #fff;
    background: #2d6a4f;
}

.woocommerce-checkout #payment .payment_box {
    margin: 0 1rem 1rem 3rem !important;
    padding: 0.85rem 1rem !important;
    border: 0 !important;
    background: rgba(45, 106, 79, 0.07) !important;
    color: #4d5a50 !important;
}

.woocommerce-checkout #place_order {
    background: #2d6a4f !important;
    border-radius: 8px !important;
    min-height: 58px;
    box-shadow: 0 15px 35px rgba(45, 106, 79, 0.22) !important;
}

body.woocommerce-order-received .site-content {
    background: #f7f8f3;
}

body.woocommerce-order-received .site-content > .container,
body.woocommerce-order-received .entry-content {
    width: 100%;
    max-width: none;
}

body.woocommerce-order-received .entry-header,
body.woocommerce-order-received .page-header,
body.woocommerce-order-received .entry-title {
    display: none;
}

.hedderich-confirmation-head {
    margin-bottom: 0;
}

.hedderich-thankyou {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 2rem 5rem;
}

.hedderich-thankyou__hero {
    position: relative;
    overflow: hidden;
    padding: 7.4rem 2rem 2rem;
    border: 1px solid rgba(27, 67, 50, 0.11);
    border-radius: 16px;
    background: #fff;
    color: #17251d;
    text-align: left;
    box-shadow: 0 16px 38px rgba(23, 37, 28, .06);
}

.hedderich-thankyou__hero::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    width: 100%;
    height: 5.6rem;
    background: url('../images/grass-soil-strip-clean.webp') center / cover no-repeat;
    pointer-events: none;
}

.hedderich-thankyou__hero > * {
    position: relative;
    z-index: 1;
}

.hedderich-thankyou__hero--error {
    background: #fff;
    color: #7f1d1d;
}

.hedderich-thankyou__icon {
    display: grid;
    place-items: center;
    width: 3.7rem;
    height: 3.7rem;
    margin: 0 0 1.15rem;
    border-radius: 999px;
    background: #2d6a4f;
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
}

.hedderich-thankyou__eyebrow {
    margin: 0 0 0.35rem;
    color: #467058;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hedderich-thankyou__hero h1 {
    max-width: 760px;
    margin: 0 0 0.9rem;
    color: #17251d;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.hedderich-thankyou__hero p {
    max-width: 680px;
    margin: 0;
    color: #637067;
    font-size: 1rem;
    line-height: 1.55;
}

.hedderich-thankyou__summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.5rem;
    padding: 0;
    position: relative;
}

.hedderich-thankyou__summary-card {
    padding: 1.2rem 1.3rem;
    border-radius: 12px;
    border: 1px solid rgba(27, 67, 50, 0.12);
    background: #fff;
    box-shadow: none;
    text-align: left;
}

.hedderich-thankyou__summary-card span {
    display: block;
    margin-bottom: 0.35rem;
    color: #728077;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hedderich-thankyou__summary-card strong {
    color: #17251d;
    font-size: 1.02rem;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
}

.hedderich-thankyou__next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
    padding: 1.2rem 1.35rem;
    border: 1px solid rgba(27, 67, 50, 0.12);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(20, 45, 32, 0.07);
}

.hedderich-thankyou__mascot {
    flex: 0 0 auto;
    width: 3.6rem;
    height: 3.6rem;
    object-fit: contain;
}

.hedderich-thankyou__next strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #17251d;
    font-size: 1.05rem;
}

.hedderich-thankyou__next p {
    margin: 0;
    color: #5f6c63;
    line-height: 1.55;
}

.hedderich-thankyou__next a {
    flex: 0 0 auto;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: #2d6a4f;
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease;
}

.hedderich-thankyou__next a:hover {
    background: #24573f;
    transform: translateY(-1px);
}

.hedderich-thankyou__next a:focus-visible {
    outline: 3px solid rgba(45, 106, 79, .28);
    outline-offset: 3px;
}

.hedderich-thankyou .woocommerce-order-details,
.hedderich-thankyou .woocommerce-customer-details {
    max-width: none !important;
    margin: 0 0 1.5rem !important;
    padding: clamp(1.35rem, 3vw, 2rem) !important;
    background: #fff;
    border: 1px solid rgba(27, 67, 50, 0.11);
    border-radius: 16px;
    box-shadow: 0 16px 38px rgba(23, 37, 28, .06);
}

.hedderich-thankyou .woocommerce-order-details__title,
.hedderich-thankyou .woocommerce-column__title {
    margin: 0 0 1.2rem;
    color: #17251d;
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    letter-spacing: -.02em;
}

.hedderich-thankyou .woocommerce-table--order-details {
    overflow: hidden;
    margin: 0 !important;
    border: 1px solid rgba(27, 67, 50, .1) !important;
    border-radius: 12px !important;
}

.hedderich-thankyou .woocommerce-table--order-details th,
.hedderich-thankyou .woocommerce-table--order-details td {
    padding: 1rem !important;
}

.hedderich-thankyou .woocommerce-table--order-details tfoot tr:last-child {
    background: #eef5ef;
    color: #173a24;
}

.hedderich-thankyou .woocommerce-column address {
    margin: 0 !important;
    padding: 1.1rem !important;
    border: 1px solid rgba(27, 67, 50, .1) !important;
    border-radius: 12px;
    background: #fbfcf9;
    line-height: 1.65;
}

.hedderich-thankyou .hmb-order-delivery {
    margin: 0 0 1.5rem !important;
    padding: 1.3rem 1.5rem !important;
    border-radius: 14px !important;
    background: #eef5ef !important;
}

.hedderich-thankyou .woocommerce-order-details .button {
    min-height: 44px;
    padding: .75rem 1.1rem;
    border-radius: 8px;
}

@media (max-width: 980px) {
    .hedderich-checkout,
    .hedderich-checkout-intro {
        display: block;
    }

    .hedderich-checkout-steps {
        margin-top: 1rem;
        overflow-x: auto;
    }

    .hedderich-checkout__summary {
        position: static;
        margin-top: 1.2rem;
    }

    .hedderich-thankyou__summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hedderich-thankyou {
        padding: 1rem 1rem 2.5rem;
    }

    .hedderich-thankyou__summary {
        grid-template-columns: 1fr;
        margin: 1rem 0 1.5rem;
        padding: 0;
    }

    .hedderich-thankyou__hero::after {
        width: 100%;
        opacity: 1;
    }

    .hedderich-thankyou__next {
        display: block;
    }

    .hedderich-thankyou__next a {
        display: inline-flex;
        margin-top: 1rem;
    }
}

/* ==========================================================================
   Cart-Polish (Hedderich Rasen)
   ========================================================================== */

/* --- Cart-Form als Card-Wrapper --- */
.woocommerce-cart .woocommerce-cart-form {
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

/* --- Cart-Tabelle: feste Spaltenbreiten, Produktblock packt links --- */
.woocommerce-cart table.shop_table.cart {
    table-layout: fixed;
    width: 100%;
    border: none !important;
    border-collapse: collapse;
    margin: 0;
}

/* Spaltenbreiten via colgroup-Imitation auf th/td */
.woocommerce-cart table.shop_table.cart th.product-remove,
.woocommerce-cart table.shop_table.cart td.product-remove   { width: 50px; }
.woocommerce-cart table.shop_table.cart th.product-thumbnail,
.woocommerce-cart table.shop_table.cart td.product-thumbnail { width: 100px; }
.woocommerce-cart table.shop_table.cart th.product-name,
.woocommerce-cart table.shop_table.cart td.product-name      { width: auto; }
.woocommerce-cart table.shop_table.cart th.product-price,
.woocommerce-cart table.shop_table.cart td.product-price     { width: 110px; }
.woocommerce-cart table.shop_table.cart th.product-quantity,
.woocommerce-cart table.shop_table.cart td.product-quantity  { width: 130px; }
.woocommerce-cart table.shop_table.cart th.product-subtotal,
.woocommerce-cart table.shop_table.cart td.product-subtotal  { width: 140px; }

.woocommerce-cart table.shop_table.cart thead {
    background: var(--color-bg-light);
}

.woocommerce-cart table.shop_table.cart thead th {
    border: none !important;
    padding: var(--spacing-md) var(--spacing-md) !important;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-gray-500);
    font-weight: 700;
    text-align: left;
}

.woocommerce-cart table.shop_table.cart thead th.product-price,
.woocommerce-cart table.shop_table.cart thead th.product-quantity,
.woocommerce-cart table.shop_table.cart thead th.product-subtotal {
    text-align: right;
}

.woocommerce-cart table.shop_table.cart tbody td {
    border: none !important;
    border-bottom: 1px solid var(--color-bg-light) !important;
    padding: var(--spacing-lg) var(--spacing-md) !important;
    vertical-align: middle;
    background: transparent;
}

.woocommerce-cart table.shop_table.cart tbody tr.cart_item:last-child td {
    border-bottom: none !important;
}

/* X-Button-Spalte */
.woocommerce-cart table.shop_table.cart td.product-remove {
    padding-left: 0 !important;
    padding-right: var(--spacing-sm) !important;
    text-align: left;
}

.woocommerce-cart table.shop_table.cart td.product-remove a.remove {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-bg-light);
    color: var(--color-gray-500);
    font-size: 18px !important;
    line-height: 28px !important;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    font-weight: 700;
}

.woocommerce-cart table.shop_table.cart td.product-remove a.remove:hover {
    background: #fde0e0 !important;
    color: #d63638 !important;
}

/* Thumbnail-Spalte */
.woocommerce-cart table.shop_table.cart td.product-thumbnail {
    padding-left: 0 !important;
}

.woocommerce-cart table.shop_table.cart td.product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
    display: block;
}

/* Produktname */
.woocommerce-cart table.shop_table.cart td.product-name a {
    font-weight: 600;
    color: var(--color-text);
    font-size: var(--fs-base);
    text-decoration: none;
    line-height: 1.4;
}

.woocommerce-cart table.shop_table.cart td.product-name a:hover {
    color: var(--color-primary);
}

/* Preis / Anzahl / Zwischensumme rechtsbündig */
.woocommerce-cart table.shop_table.cart td.product-price,
.woocommerce-cart table.shop_table.cart td.product-quantity,
.woocommerce-cart table.shop_table.cart td.product-subtotal {
    text-align: right;
}

.woocommerce-cart table.shop_table.cart td.product-price {
    color: var(--color-gray-500);
    font-size: var(--fs-sm);
}

.woocommerce-cart table.shop_table.cart td.product-subtotal {
    font-weight: 700;
    color: var(--color-primary);
    font-size: var(--fs-base);
}

/* Anzahl-Eingabefeld */
.woocommerce-cart table.shop_table.cart td.product-quantity .qty {
    width: 80px;
    text-align: center;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    padding: 0.55rem 0.4rem;
    font-size: var(--fs-base);
    font-weight: 600;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.woocommerce-cart table.shop_table.cart td.product-quantity .qty:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}

/* --- Action-Zeile: Coupon + Update Cart als Flex-Container über die ganze Breite --- */
.woocommerce-cart .woocommerce-cart-form table.cart td.actions {
    background: transparent !important;
    border: none !important;
    border-top: 2px solid var(--color-bg-light) !important;
    padding: var(--spacing-lg) 0 0 !important;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-sm);
    width: 100%;
    box-sizing: border-box;
}

.woocommerce-cart .woocommerce-cart-form table.cart td.actions .coupon {
    display: flex !important;
    gap: var(--spacing-sm);
    align-items: center;
    float: none !important;
    margin: 0 !important;
    flex: 1 1 auto;
    max-width: 420px;
}

.woocommerce-cart .woocommerce-cart-form table.cart td.actions .coupon label {
    display: none;
}

.woocommerce-cart .woocommerce-cart-form table.cart td.actions .coupon #coupon_code {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    padding: 0.6rem 0.9rem;
    font-size: var(--fs-base);
    min-height: 42px;
    box-sizing: border-box;
}

.woocommerce-cart .woocommerce-cart-form table.cart td.actions .coupon #coupon_code:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}

.woocommerce-cart .woocommerce-cart-form table.cart td.actions .coupon button.button,
.woocommerce-cart .woocommerce-cart-form table.cart td.actions button[name="apply_coupon"] {
    background: #fff;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
    border-radius: var(--radius-md);
    padding: 0.55rem 1.2rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    flex: 0 0 auto;
}

.woocommerce-cart .woocommerce-cart-form table.cart td.actions .coupon button.button:hover,
.woocommerce-cart .woocommerce-cart-form table.cart td.actions button[name="apply_coupon"]:hover {
    background: var(--color-primary);
    color: #fff;
}

.woocommerce-cart .woocommerce-cart-form table.cart td.actions button[name="update_cart"],
.woocommerce-cart .woocommerce-cart-form table.cart td.actions input[name="update_cart"] {
    background: transparent;
    color: var(--color-gray-500);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    padding: 0.55rem 1.2rem;
    font-size: var(--fs-sm);
    font-weight: 500;
    cursor: pointer;
    float: none !important;
    margin-left: auto;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.woocommerce-cart .woocommerce-cart-form table.cart td.actions button[name="update_cart"]:hover:not([disabled]),
.woocommerce-cart .woocommerce-cart-form table.cart td.actions input[name="update_cart"]:hover:not([disabled]) {
    background: var(--color-bg-light);
    color: var(--color-text);
}

/* --- Cart-Collaterals: Totals-Box full-width unter dem Cart, rechtsbündig max 480px --- */
.woocommerce-cart .cart-collaterals {
    width: 100% !important;
    float: none !important;
    display: flex;
    justify-content: flex-end;
    margin-top: var(--spacing-xl);
}

.woocommerce-cart .cart-collaterals .cart_totals {
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-xl);
    width: 100% !important;
    max-width: 480px;
    float: none !important;
}

@media (max-width: 768px) {
    .woocommerce-cart .cart-collaterals {
        justify-content: stretch;
    }
    .woocommerce-cart .cart-collaterals .cart_totals {
        max-width: 100%;
    }
}

.woocommerce-cart .cart-collaterals .cart_totals h2 {
    margin-top: 0;
    margin-bottom: var(--spacing-lg);
    font-size: var(--fs-xl);
    color: var(--color-primary);
    font-weight: 700;
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-bg-light);
    position: relative;
}

.woocommerce-cart .cart-collaterals .cart_totals h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 50px;
    height: 2px;
    background: var(--color-accent);
}

.woocommerce-cart .cart-collaterals .cart_totals table {
    border: none;
    width: 100%;
    margin: 0 0 var(--spacing-lg);
}

.woocommerce-cart .cart-collaterals .cart_totals table th,
.woocommerce-cart .cart-collaterals .cart_totals table td {
    border: none;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--color-bg-light);
    background: transparent;
}

.woocommerce-cart .cart-collaterals .cart_totals table tr.cart-subtotal th {
    color: var(--color-gray-500);
    font-weight: 500;
    font-size: var(--fs-sm);
}

.woocommerce-cart .cart-collaterals .cart_totals table tr.cart-subtotal td {
    text-align: right;
    color: var(--color-text);
    font-size: var(--fs-sm);
}

.woocommerce-cart .cart-collaterals .cart_totals table tr.order-total th {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--color-text);
    border-top: 2px solid var(--color-primary);
    padding-top: var(--spacing-md);
}

.woocommerce-cart .cart-collaterals .cart_totals table tr.order-total td {
    text-align: right;
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--color-primary);
    border-top: 2px solid var(--color-primary);
    padding-top: var(--spacing-md);
}

.woocommerce-cart .cart-collaterals .cart_totals .wc-proceed-to-checkout {
    padding: 0;
}

.woocommerce-cart .cart-collaterals .cart_totals .wc-proceed-to-checkout .checkout-button {
    width: 100%;
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 0.95rem 1.5rem;
    font-size: var(--fs-lg);
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: block;
    transition: filter 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: var(--shadow-md);
}

.woocommerce-cart .cart-collaterals .cart_totals .wc-proceed-to-checkout .checkout-button:hover {
    filter: brightness(0.92);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* --- Mobile (Cart) --- */
@media (max-width: 991px) {
    .woocommerce-cart .woocommerce-cart-form {
        padding: var(--spacing-md);
    }

    .woocommerce-cart table.shop_table.cart thead {
        display: none;
    }

    .woocommerce-cart table.shop_table.cart tbody tr.cart_item {
        display: grid;
        grid-template-columns: 80px 1fr auto;
        grid-template-areas:
            "thumb name remove"
            "thumb price quantity"
            "thumb subtotal subtotal";
        gap: 0.4rem var(--spacing-md);
        padding: var(--spacing-md) 0;
        border-bottom: 1px solid var(--color-bg-light);
    }

    .woocommerce-cart table.shop_table.cart tbody tr.cart_item td {
        border: none !important;
        padding: 0 !important;
        background: transparent;
        text-align: left;
    }

    .woocommerce-cart table.shop_table.cart tbody td.product-thumbnail { grid-area: thumb; width: auto !important; }
    .woocommerce-cart table.shop_table.cart tbody td.product-name      { grid-area: name; width: auto; }
    .woocommerce-cart table.shop_table.cart tbody td.product-remove    { grid-area: remove; width: auto !important; text-align: right; }
    .woocommerce-cart table.shop_table.cart tbody td.product-price     { grid-area: price; width: auto; }
    .woocommerce-cart table.shop_table.cart tbody td.product-quantity  { grid-area: quantity; width: auto; text-align: right; }
    .woocommerce-cart table.shop_table.cart tbody td.product-subtotal  { grid-area: subtotal; width: auto; text-align: right; padding-top: 0.4rem !important; border-top: 1px dashed var(--color-bg-light) !important; }

    .woocommerce-cart table.shop_table.cart td.actions {
        display: block !important;
    }

    .woocommerce-cart table.shop_table.cart td.actions .coupon {
        flex-direction: column;
        align-items: stretch;
    }

    .woocommerce-cart table.shop_table.cart td.actions .coupon #coupon_code,
    .woocommerce-cart table.shop_table.cart td.actions .coupon button.button {
        flex: 1;
        width: 100%;
    }

    .woocommerce-cart table.shop_table.cart td.actions button[name="update_cart"],
    .woocommerce-cart table.shop_table.cart td.actions input[name="update_cart"] {
        width: 100%;
        margin-top: var(--spacing-sm);
        float: none;
    }
}

/* ==========================================================================
   Produktspezifikationen-Tabelle (A3) — auf Single-Product-Page
   ========================================================================== */
.hedderich-product-specs {
    margin: var(--spacing-xl) 0;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--color-white);
}

.hedderich-product-specs__title {
    margin: 0;
    padding: var(--spacing-md) var(--spacing-lg);
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: var(--fs-md);
    font-weight: 700;
}

.hedderich-product-specs__table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.hedderich-product-specs__table th,
.hedderich-product-specs__table td {
    padding: var(--spacing-sm) var(--spacing-lg);
    text-align: left;
    vertical-align: top;
    font-size: var(--fs-sm);
    line-height: 1.5;
    border-bottom: 1px solid var(--color-gray-100);
}

.hedderich-product-specs__table tr:last-child th,
.hedderich-product-specs__table tr:last-child td {
    border-bottom: none;
}

.hedderich-product-specs__table th {
    width: 40%;
    color: var(--color-gray-700);
    font-weight: 600;
    background-color: var(--color-gray-100);
}

.hedderich-product-specs__table td {
    color: var(--color-gray-800);
}

@media (max-width: 600px) {
    .hedderich-product-specs__table th {
        width: 45%;
    }
    .hedderich-product-specs__table th,
    .hedderich-product-specs__table td {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: var(--fs-xs);
    }
}

/* ==========================================================================
   Shop archive polish: consistent product cards
   ========================================================================== */
.woocommerce-shop .site-main,
.post-type-archive-product .site-main {
    background: #f7f8f4;
}

.woocommerce-shop .woocommerce-breadcrumb,
.post-type-archive-product .woocommerce-breadcrumb {
    margin-bottom: 1rem;
}

.woocommerce-shop .woocommerce-products-header,
.post-type-archive-product .woocommerce-products-header {
    margin-bottom: 1.25rem;
}

.woocommerce-shop .woocommerce-products-header__title,
.post-type-archive-product .woocommerce-products-header__title,
.woocommerce-shop h1.page-title,
.post-type-archive-product h1.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    margin-bottom: .35rem;
}

.woocommerce .woocommerce-result-count {
    margin: 0 0 1.5rem;
    color: var(--color-gray-500);
}

.woocommerce .woocommerce-ordering {
    margin: 0 0 1.5rem;
}

.woocommerce .woocommerce-ordering select {
    min-width: 260px;
    height: 48px;
    border: 1px solid var(--color-gray-300);
    border-radius: 5px;
    background-color: #fff;
}

.woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
    align-items: stretch;
}

.woocommerce ul.products li.product {
    min-height: 100%;
    border: 1px solid var(--color-gray-200);
    border-radius: 8px !important;
    box-shadow: 0 10px 24px rgba(24, 43, 31, .06) !important;
    background: #fff;
}

.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product .woocommerce-product-gallery img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #eef2ea;
    transform: none !important;
}

.woocommerce ul.products li.product:hover a img {
    transform: none !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 3.1rem;
    padding: 1.15rem 1.25rem .35rem !important;
    font-size: 1rem !important;
    line-height: 1.25 !important;
    color: var(--color-dark);
}

.woocommerce ul.products li.product .price {
    padding: .25rem 1.25rem 0 !important;
    margin: 0 !important;
    font-size: 1rem !important;
    color: var(--color-primary-dark) !important;
}

.woocommerce ul.products li.product .hedderich-loop-variant {
    display: block;
    padding: .85rem 1.25rem 0;
}

.woocommerce ul.products li.product .hedderich-loop-variant span {
    display: block;
    margin-bottom: .35rem;
    font-size: .78rem;
    font-weight: 700;
    color: var(--color-gray-500);
}

.woocommerce ul.products li.product .hedderich-loop-variant__select {
    width: 100%;
    min-height: 44px;
    padding: .55rem 2rem .55rem .75rem;
    border: 1px solid var(--color-gray-300);
    border-radius: 5px;
    background-color: #fff;
    color: var(--color-dark);
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
}

.woocommerce ul.products li.product .hedderich-loop-variant__select:focus {
    outline: 2px solid rgba(45, 106, 79, .18);
    border-color: var(--color-primary);
}

.woocommerce div.product .hedderich-single-variant {
    display: block;
    max-width: 28rem;
    margin: 1rem 0;
}

.woocommerce div.product .hedderich-single-variant span {
    display: block;
    margin-bottom: .4rem;
    font-weight: 700;
}

.woocommerce div.product .hedderich-single-variant .hedderich-loop-variant__select {
    width: 100%;
    min-height: 48px;
    padding: .65rem 2.25rem .65rem .85rem;
    border: 1px solid var(--color-gray-300);
    border-radius: 5px;
    background: #fff;
    color: var(--color-dark);
    font: inherit;
    font-weight: 700;
}

/* Einzelprodukt: die vorhandene WooCommerce-Struktur als ruhige Produktkarte. */
body.single-product .site-main > .woocommerce,
body.single-product main > .woocommerce {
    max-width: 1280px;
    margin-inline: auto;
}

body.single-product .woocommerce div.product {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    column-gap: clamp(2rem, 5vw, 5rem);
    padding: clamp(1.25rem, 3vw, 2.5rem);
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 24px 70px -48px rgba(24, 55, 34, .42);
}

body.single-product .woocommerce div.product div.images,
body.single-product .woocommerce #content div.product div.images,
body.single-product .woocommerce div.product div.summary,
body.single-product .woocommerce #content div.product div.summary {
    float: none;
    width: auto;
    padding: 0;
    margin: 0;
}

body.single-product .woocommerce div.product div.images img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: none;
}

body.single-product .woocommerce div.product div.summary {
    align-self: center;
    padding-block: 1rem;
}

body.single-product .woocommerce div.product .product_title {
    font-size: clamp(2rem, 3.2vw, 3.25rem);
    letter-spacing: -.035em;
    text-wrap: balance;
}

body.single-product .woocommerce div.product .summary > .price:first-of-type {
    margin: .75rem 0 1rem;
}

body.single-product .woocommerce div.product .summary .wgm-info,
body.single-product .woocommerce div.product .summary .woocommerce_de_versandkosten {
    font-size: .9rem;
    line-height: 1.5;
}

body.single-product .woocommerce div.product .woocommerce-product-details__short-description {
    margin: 1.25rem 0;
    max-width: 48ch;
}

body.single-product .woocommerce div.product .hedderich-single-variant {
    max-width: none;
    margin: 1.25rem 0 .75rem;
}

body.single-product .woocommerce div.product .hedderich-single-variant .hedderich-loop-variant__select {
    min-height: 54px;
    padding-inline: 1rem 2.5rem;
    border-radius: 10px;
    font-weight: 600;
}

body.single-product [data-duenger-single-calc] { max-width:28rem; margin:.75rem 0 1.25rem; }
body.single-product [data-duenger-single-calc] .sh-qm__label { display:block; font-weight:700; }
body.single-product [data-duenger-single-calc] .sh-qm__field { display:flex; align-items:center; gap:.5rem; margin-top:.4rem; padding:.2rem .9rem; border:1px solid var(--color-gray-300); border-radius:10px; }
body.single-product [data-duenger-single-calc] input { flex:1; min-width:0; padding:.7rem 0; border:0; outline:0; font:inherit; font-weight:700; }
body.single-product [data-duenger-single-calc] .sh-qm__hint { margin:.55rem 0 0; color:var(--color-gray-600); font-size:.875rem; }

body.single-product .woocommerce div.product form.cart {
    margin: 0;
    display: grid;
    grid-template-columns: 72px 1fr;
}

body.single-product .woocommerce div.product form.cart .button {
    min-height: 54px;
    border-radius: 10px;
}

body.single-product .woocommerce div.product .product_meta {
    margin-top: 1.5rem;
    padding-top: 1rem;
}

body.single-product .woocommerce div.product .woocommerce-tabs,
body.single-product .woocommerce div.product .related.products {
    grid-column: 1 / -1;
}

body.single-product .woocommerce div.product .woocommerce-tabs {
    padding-top: 3rem;
}

body.single-product .woocommerce div.product .related.products {
    margin-top: 2rem;
    padding-top: 2.5rem;
}

body.single-product .woocommerce div.product .related.products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 860px;
    margin-inline: auto;
}

body.single-product .woocommerce div.product .related.products ul.products li.product a img {
    aspect-ratio: 4 / 3;
}

@media (max-width: 900px) {
    body.single-product .woocommerce div.product {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    body.single-product .woocommerce div.product {
        padding: 1rem;
        border-radius: 14px;
    }

    body.single-product .woocommerce div.product form.cart,
    body.single-product .woocommerce div.product .related.products ul.products {
        grid-template-columns: 1fr;
    }
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.add_to_cart_button,
.woocommerce ul.products li.product a.product_type_simple,
.woocommerce ul.products li.product a.product_type_variable {
    margin: 1rem 1.25rem 1.25rem !important;
    width: calc(100% - 2.5rem) !important;
    border-radius: 5px !important;
    min-height: 50px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.woocommerce ul.products li.product .woocommerce-placeholder {
    opacity: 1;
    border: 0;
}

@media (max-width: 900px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }

    .woocommerce .woocommerce-ordering,
    .woocommerce .woocommerce-ordering select {
        width: 100%;
    }
}

/* ==========================================================================
   Responsive hardening
   ========================================================================== */
@media (max-width: 900px) {
    .woocommerce-result-count,
    .woocommerce-ordering {
        float: none !important;
        width: 100%;
    }

    .woocommerce div.product div.images,
    .woocommerce #content div.product div.images,
    .woocommerce div.product div.summary,
    .woocommerce #content div.product div.summary {
        float: none;
        width: 100%;
        padding-right: 0;
    }

    .woocommerce div.product .product_title {
        font-size: clamp(2rem, 7vw, 2.75rem);
    }

    .woocommerce div.product p.price,
    .woocommerce div.product span.price {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .woocommerce div.product .related.products ul.products,
    .woocommerce div.product .upsells.products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .woocommerce-cart-form,
    .woocommerce-checkout,
    .woocommerce-order,
    .woocommerce-account .woocommerce {
        max-width: 100%;
        overflow-x: hidden;
    }

    .woocommerce .col2-set,
    .woocommerce-page .col2-set {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .woocommerce .col2-set .col-1,
    .woocommerce-page .col2-set .col-1,
    .woocommerce .col2-set .col-2,
    .woocommerce-page .col2-set .col-2 {
        float: none;
        width: 100%;
    }
}

@media (max-width: 700px) {
    .woocommerce a.button,
    .woocommerce button.button,
    .woocommerce input.button,
    .woocommerce #respond input#submit,
    .woocommerce .checkout-button,
    .woocommerce #place_order,
    .woocommerce ul.products li.product .button,
    .woocommerce ul.products li.product a.add_to_cart_button,
    .woocommerce ul.products li.product a.product_type_simple,
    .woocommerce ul.products li.product a.product_type_variable {
        min-height: 48px !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
        line-height: 1.25 !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .woocommerce ul.products li.product {
        border-radius: 8px;
    }

    .woocommerce ul.products li.product a img,
    .woocommerce ul.products li.product .woocommerce-product-gallery img {
        aspect-ratio: 4 / 3;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        min-height: 0;
        padding: 1rem 1rem .25rem !important;
        font-size: 1.05rem !important;
    }

    .woocommerce ul.products li.product .hedderich-turf-loop-description {
        min-height: 0;
        padding: .35rem 1rem 0;
        font-size: .92rem;
    }

    .woocommerce ul.products li.product .price {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .woocommerce ul.products li.product .hedderich-loop-variant {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .woocommerce ul.products li.product .button,
    .woocommerce ul.products li.product a.add_to_cart_button,
    .woocommerce ul.products li.product a.product_type_simple,
    .woocommerce ul.products li.product a.product_type_variable {
        width: calc(100% - 2rem) !important;
        margin: .9rem 1rem 1rem !important;
    }

    .woocommerce table.shop_table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
    }

    .woocommerce table.shop_table th,
    .woocommerce table.shop_table td {
        padding: .9rem;
        white-space: normal;
    }

    .woocommerce .coupon {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .woocommerce .coupon .input-text,
    .woocommerce .coupon .button,
    .woocommerce button[name="update_cart"] {
        width: 100%;
        min-width: 0;
        float: none;
    }

    .woocommerce div.product form.cart {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .woocommerce .quantity,
    .woocommerce div.product form.cart .button,
    .woocommerce div.product .single_add_to_cart_button {
        width: 100%;
    }

    .woocommerce .quantity .qty {
        width: 100%;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation,
    .woocommerce-account .woocommerce-MyAccount-content {
        float: none;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        gap: 1rem;
    }

    .woocommerce-ordering select {
        min-height: 48px;
    }

    .woocommerce div.product {
        padding: 2rem 0;
    }

    .woocommerce table.shop_table td.product-thumbnail {
        width: 72px;
    }

    .woocommerce table.shop_table td.product-thumbnail img {
        width: 56px;
        height: 56px;
    }

    .woocommerce table.shop_table th,
    .woocommerce table.shop_table td {
        padding: .75rem;
        font-size: .85rem;
    }

    .woocommerce div.product .related.products ul.products,
    .woocommerce div.product .upsells.products ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   Warenkorb-Stepper aus Checkout-Entwurf
   ========================================================================== */

body.woocommerce-cart .hedderich-cart-shell {
    background: #fff;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(20, 40, 25, 0.05);
}

body.woocommerce-cart .hedderich-cart-head {
    margin-bottom: 20px;
}

body.woocommerce-cart .hedderich-cart-steps {
    display: flex;
    align-items: center;
    max-width: 640px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}

body.woocommerce-cart .hedderich-cart-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #9aa39c;
    font-size: 14px;
    font-weight: 700;
}

body.woocommerce-cart .hedderich-cart-steps li:not(:last-child)::after {
    content: "";
    width: clamp(42px, 9vw, 120px);
    height: 2px;
    margin: 0 16px;
    background: #e3e1d9;
}

body.woocommerce-cart .hedderich-cart-steps span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #eae8e1;
    color: #9aa39c;
    font-size: 14px;
    font-weight: 800;
}

body.woocommerce-cart .hedderich-cart-steps .is-active {
    color: #17281c;
    font-weight: 800;
}

body.woocommerce-cart .hedderich-cart-steps .is-active span {
    background: #1f6b3b;
    color: #fff;
}

body.woocommerce-cart .hedderich-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
}

body.woocommerce-cart .woocommerce-cart-form.hedderich-cart-card,
body.woocommerce-cart table.shop_table.cart {
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

body.woocommerce-cart table.shop_table.cart,
body.woocommerce-cart table.shop_table.cart tbody {
    display: block;
}

body.woocommerce-cart table.shop_table.cart thead {
    display: none;
}

body.woocommerce-cart table.shop_table.cart tr.cart_item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid #efede6;
}

body.woocommerce-cart table.shop_table.cart tr.cart_item:last-of-type {
    border-bottom: 0;
}

body.woocommerce-cart table.shop_table.cart tr.cart_item td {
    display: block;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent;
}

body.woocommerce-cart table.shop_table.cart td.product-thumbnail {
    order: 1;
    flex: 0 0 64px;
}

body.woocommerce-cart table.shop_table.cart td.product-thumbnail img {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px;
    border-radius: 10px;
    box-shadow: none;
}

body.woocommerce-cart table.shop_table.cart td.product-name {
    order: 2;
    flex: 1 1 auto;
    min-width: 160px;
}

body.woocommerce-cart table.shop_table.cart td.product-name a {
    color: #17281c;
    font-size: 16px;
    font-weight: 800;
}

body.woocommerce-cart table.shop_table.cart td.product-name dl.variation,
body.woocommerce-cart table.shop_table.cart td.product-price {
    color: #8a938d;
    font-size: 13px;
    font-weight: 500;
}

body.woocommerce-cart table.shop_table.cart td.product-price {
    order: 3;
    min-width: 82px;
    text-align: right;
}

body.woocommerce-cart table.shop_table.cart td.product-quantity {
    order: 4;
    text-align: center;
}

body.woocommerce-cart table.shop_table.cart td.product-quantity .quantity {
    border: 1px solid #dddacf;
    border-radius: 10px;
    background: #fff;
}

body.woocommerce-cart table.shop_table.cart td.product-quantity .qty {
    width: 72px;
    height: 36px;
    padding: 0;
    border: 0;
    color: #17281c;
    font-size: 15px;
    font-weight: 700;
}

body.woocommerce-cart table.shop_table.cart td.product-subtotal {
    order: 5;
    width: 84px !important;
    color: #17281c;
    font-size: 16px;
    font-weight: 800;
    text-align: right;
}

body.woocommerce-cart table.shop_table.cart td.product-remove {
    order: 6;
}

body.woocommerce-cart .woocommerce-cart-form table.cart td.actions {
    margin-top: 8px;
}

body.woocommerce-cart .hedderich-cart-summary,
body.woocommerce-cart .cart-collaterals,
body.woocommerce-cart .cart-collaterals .cart_totals {
    display: block;
    width: 100% !important;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

body.woocommerce-cart .cart-collaterals .cart_totals {
    padding: 24px;
    border-radius: 14px;
    background: #f7f6f2;
}

body.woocommerce-cart .hedderich-cart-summary__head {
    margin-bottom: 12px;
}

body.woocommerce-cart .cart-collaterals .cart_totals table {
    margin: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

body.woocommerce-cart .cart-collaterals .cart_totals table th,
body.woocommerce-cart .cart-collaterals .cart_totals table td {
    padding: 0 0 12px !important;
    border: 0 !important;
    color: #55605a;
    font-size: 14px;
    background: transparent;
}

body.woocommerce-cart .cart-collaterals .cart_totals table td {
    color: #17281c;
    font-weight: 700;
    text-align: right;
}

body.woocommerce-cart .cart-collaterals .cart_totals table tr.order-total th,
body.woocommerce-cart .cart-collaterals .cart_totals table tr.order-total td {
    padding-top: 16px !important;
    border-top: 1px solid #e3e1d9 !important;
    color: #17281c;
    font-weight: 800;
}

body.woocommerce-cart .cart-collaterals .cart_totals table tr.order-total td .woocommerce-Price-amount {
    color: #17281c;
    font-size: 22px;
    font-weight: 800;
}

body.woocommerce-cart .cart-collaterals .cart_totals .wc-proceed-to-checkout .checkout-button {
    margin-top: 20px;
    padding: 15px 24px !important;
    border-radius: 10px !important;
    background: #1f6b3b !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}

@media (max-width: 820px) {
    body.woocommerce-cart .hedderich-cart-shell {
        padding: 22px;
    }

    body.woocommerce-cart .hedderich-cart-steps {
        max-width: none;
    }

    body.woocommerce-cart .hedderich-cart-layout {
        grid-template-columns: 1fr;
    }

    body.woocommerce-cart table.shop_table.cart tr.cart_item {
        display: grid;
        grid-template-columns: 64px 1fr auto;
        grid-template-areas:
            "thumb name remove"
            "thumb price quantity"
            "thumb subtotal subtotal";
    }

    body.woocommerce-cart table.shop_table.cart td.product-thumbnail { grid-area: thumb; }
    body.woocommerce-cart table.shop_table.cart td.product-name { grid-area: name; }
    body.woocommerce-cart table.shop_table.cart td.product-remove { grid-area: remove; text-align: right; }
    body.woocommerce-cart table.shop_table.cart td.product-price { grid-area: price; text-align: left; }
    body.woocommerce-cart table.shop_table.cart td.product-quantity { grid-area: quantity; text-align: right; }
    body.woocommerce-cart table.shop_table.cart td.product-subtotal { grid-area: subtotal; justify-self: end; }
}

@media (max-width: 560px) {
    body.woocommerce-cart .hedderich-cart-steps {
        gap: 8px;
    }

    body.woocommerce-cart .hedderich-cart-steps li {
        gap: 6px;
        font-size: 12px;
    }

    body.woocommerce-cart .hedderich-cart-steps li:not(:last-child)::after {
        width: 18px;
        margin: 0 2px;
    }
}

body.woocommerce-order-received .hedderich-confirmation-card__body {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 28px 30px;
}

body.woocommerce-order-received .hedderich-confirmation-card__body .hedderich-thankyou__icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0;
}

body.woocommerce-order-received .hedderich-confirmation-card__body h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

body.woocommerce-order-received .hedderich-confirmation-card__body p,
body.woocommerce-order-received .hedderich-cart-reassurance p {
    margin: 0;
}

body.woocommerce-order-received .hedderich-confirmation-details {
    display: grid;
    gap: 20px;
}

body.woocommerce-order-received .hedderich-cart-reassurance a {
    color: #1f6b3b;
    font-weight: 800;
}

@media (max-width: 640px) {
    body.woocommerce-order-received .hedderich-confirmation-card__body {
        padding: 22px 20px;
    }
}
