/* =============================================================================
   WooCommerce – Child Theme Styles (migriert aus g-tech-old-theme)
   ============================================================================= */

/* Mengenfeld mit +/- Buttons */
.quantity.KSS-qty-enhanced {
    display: flex;
    align-items: center;
    gap: 0;
}

.quantity.KSS-qty-enhanced input[type="number"].qty {
    -moz-appearance: textfield;
    appearance: textfield;
    text-align: center;
    width: 3rem;
    border: 1px solid #ccc;
    border-left: none;
    border-right: none;
    padding: 0.25rem 0;
    margin: 0;
    height: 2rem;
}

.quantity.KSS-qty-enhanced input[type="number"].qty::-webkit-inner-spin-button,
.quantity.KSS-qty-enhanced input[type="number"].qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.KSS-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid #ccc;
    background: white;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0;
    transition: background-color 0.2s ease;
}

.KSS-qty-btn:hover {
    background-color: #f0f0f0;
}

/* Breadcrumb */
.woocommerce.wc-block-breadcrumbs .woocommerce-breadcrumb,
.woocommerce.woocommerce-shop .wc-block-breadcrumbs .woocommerce-breadcrumb {
    display: flex !important;
    padding: 1rem 0;
    margin: 0;
}

.KSS-shop-breadcrumb-and-search-section .wp-block-columns {
    margin: 1rem auto !important;
}

.KSS-shop-breadcrumb-and-search-section {
    border-bottom: 1px solid black;
}

/* MyAccount Navigation */
.woocommerce .woocommerce-MyAccount-navigation-link a {
    text-decoration: none !important;
    cursor: pointer;
    color: black;
    font-size: var(--kss-copy-text);
}

:is(.woocommerce .woocommerce-MyAccount-navigation-link:hover a):not(.woocommerce-MyAccount-navigation-link.is-active:hover a) {
    text-decoration: underline !important;
    text-decoration-color: var(--kss-primary-color);
}

.woocommerce .woocommerce-MyAccount-navigation-link.is-active a {
    font-weight: bold;
}

/* WooCommerce Buttons */
.wc-block-cart__submit-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.wp-element-button,
.wc-block-cart__submit-container:not(#fakeID) .wc-block-cart__submit-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid black;
    text-decoration: none;
    color: black;
    transition: all 0.3s ease;
    font-size: var(--kss-copy-text);
}

.wc-block-cart__submit-container:not(#fakeID) .wc-block-cart__submit-button:hover {
    background-color: var(--kss-secondary-color);
    color: white;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.wc-block-components-button--loading {
    background-color: var(--kss-secondary-color);
    color: white;
}

.wc-block-cart__submit-container .wc-block-components-button--loading .wc-block-components-spinner {
    top: 0;
    left: 0;
}

/* Login-Buttons: Registrieren */
#customer_login .woocommerce-button.button {
    padding: 0.5rem 1rem;
}

#customer_login .woocommerce-button[name="register"] {
    border: 1px solid var(--kss-primary-color);
    background-color: transparent;
    color: black;
    transition: all 0.3s ease;
    width: fit-content;
}

#customer_login .woocommerce-button[name="register"]:hover {
    border: 1px solid var(--kss-primary-color);
    background-color: var(--kss-secondary-color);
    color: white;
    transition: all 0.3s ease;
}

/* Product Filter / Grid */
.wc-block-grid .wc-block-sort-select {
    display: flex;
    justify-content: flex-end;
}

.wc-block-grid__products:not(#fakeID) .wc-block-grid__product-image img {
    height: 150px;
    width: auto;
    aspect-ratio: 16 / 4;
}

/* Breadcrumb */
.woocommerce-breadcrumb {
    font-size: 1rem;
}

.woo__breadcrumb_pipes {
    padding: 0 0.25rem;
}

@media screen and (min-width: 1024px) {
    .wc-block-breadcrumbs {
        max-width: unset !important;
        margin-right: 2rem !important;
    }
}

.woo__current_breadcrumb {
    font-weight: bold;
}

@media screen and (max-width: 768px) {
    .woo__current_breadcrumb {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }
}

.woocommerce-breadcrumb .woo_tuned_breadcrumb {
    margin-right: 0.25rem;
}

.woocommerce-breadcrumb a {
    text-decoration: none;
    color: black;
    display: contents;
}

.woocommerce-breadcrumb a:hover {
    color: var(--kss-primary-color);
}

.wc-block-grid__product.slick-slide.slick-active .wc-block-grid__product-add-to-cart .wp-block-button__link {
    padding: 0.5rem 1rem;
}

html div .wc-block-grid__product-price.price {
    margin-bottom: 0;
}

.wc-block-grid__product-title {
    margin-bottom: 0 !important;
}

.tax-info {
    margin: 0 !important;
}

.wc-block-grid__product-image {
    padding: 0 !important;
}

.wc-block-grid__products {
    gap: 1rem;
}

.wc-block-grid__product {
    background-color: white;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

/* Produktbild */
div[data-block-name="woocommerce/product-image"] img {
    height: auto;
    width: 100%;
    aspect-ratio: 4 / 3;
}

/* Produkt Meta */
div[data-block-name="woocommerce/product-meta"] .wp-block-group.is-layout-flex {
    align-items: end;
}

.wc-block-components-product-price.wc-block-grid__product-price {
    margin-top: 1rem;
}

.wp-singular .woocommerce-Price-amount.amount:not(.woocommerce-account .woocommerce-Price-amount.amount, .aws_result_price .woocommerce-Price-amount.amount, .woocommerce-cart .woocommerce-Price-amount.amount, .woocommerce-checkout .woocommerce-Price-amount) {
    font-size: 48px;
    font-weight: 700;
    color: #111;
    line-height: 1;
}

.KSS-singular-price-vat {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

/* Variationen */
.woocommerce table.variations tr td select {
    padding: 0 1rem;
    border: none;
}

/* dl.variation – dt und dd in einer Zeile */
dl.variation {
    display: flex;
    flex-direction: column;
    margin: 0;
}

dl.variation dt,
dl.variation dd {
    display: inline;
    margin: 0;
}

dl.variation dt::after {
    content: " ";
}

dl.variation dd p {
    display: inline;
    margin: 0;
}

dl.variation>dt,
dl.variation>dd {
    float: none;
}

/* Jedes dt+dd-Paar in einer Zeile */
dl.variation {
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 0.5rem;
    row-gap: 0.25rem;
    align-items: center;
}

@media screen and (max-width: 768px) {
    .variations tr:not(#fakeID) {
        display: flex;
        flex-direction: column;
    }
}

html .woocommerce table.variations tr {
    display: flex;
    flex-direction: column;
}

html .woocommerce div.product form.cart table.variations td,
html .woocommerce div.product form.cart table.variations th {
    text-align: left;
}

.woocommerce-Tabs-panel ul,
.woocommerce-Tabs-panel ol {
    margin-left: 2rem;
}

/* Produktliste */
.products-block-post-template .wp-block-post.product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.woocommerce-form.woocommerce-form-login.login {
    background-color: white;
}

.woocommerce-form.woocommerce-form-login.login>*,
div[data-block-name="woocommerce/product-on-sale"] .wc-block-grid__products .wc-block-grid__product,
div[data-block-name="woocommerce/product-on-sale"] .wc-block-grid__products .wc-block-grid__product .wc-gzd-additional-info {
    font-family: var(--kss-font-heading) !important;
}

.kss_wc_singleProductPage {
    background-color: white;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    padding: 1rem;
    margin-bottom: 4rem;
}

@media screen and (max-width: 768px) {
    .wc-block-grid.has-3-columns .wc-block-grid__product {
        margin-bottom: 2rem;
    }
}

/* Account Bereich */
.woocommerce-account .woocommerce {
    background-color: white;
    padding: 5rem 0;
}

.woocommerce-account .hero-small__slide {
    max-height: 25vh !important;
}

/* Alte Breiten aufheben – Layout übernimmt KSS-myaccount-layout */
.woocommerce-MyAccount-navigation {
    width: auto !important;
}

html .woocommerce-account .woocommerce-MyAccount-navigation ul {
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-content {
    border-left: none;
    min-height: unset;
    width: auto;
    padding: 0;
}

.woocommerce-MyAccount-content>p {
    font-family: 'Open Sans', 'Helvetica Neue', sans-serif;
}

.woocommerce-MyAccount-content .woocommerce-Addresses {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Add to Cart */
.wc-block-add-to-cart-form {
    margin: 2rem 0;
}

.woocommerce div.product div.images .flex-control-thumbs:not(#fakeID) {
    padding-top: 1rem;
}

/* =============================================================================
   Login-Seite (/login-sign-up) – Tab-Style
   ============================================================================= */

/* Seiten-Wrapper */
.KSS-login-page {
    min-height: 60vh;
    background-color: var(--wp--preset--color--base, #f5f5f5);
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Karten-Container */
.KSS-login-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    padding: 0;
    margin: 0 auto;
    overflow: hidden;
    width: 100%;
    max-width: 540px;
}

/* Titel über den Tabs (optional) */
.KSS-login-card__title {
    margin: 1.5rem 2.5rem 0 !important;
    font-family: var(--kss-font-heading, sans-serif);
}

/* ── Radio-Inputs verstecken ───────────────────────────────────────────── */
.KSS-login-tabs__radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* ── Tab-Navigation ─────────────────────────────────────────────────────── */
.KSS-login-tabs__nav {
    display: flex;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.KSS-login-tabs__label {
    flex: 1;
    text-align: center;
    padding: 1rem 1.5rem 0.85rem;
    cursor: pointer;
    font-family: var(--kss-font-heading, sans-serif);
    font-weight: 500;
    font-size: 1rem;
    color: #888;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s ease, border-color 0.2s ease;
    user-select: none;
}

.KSS-login-tabs__label:hover {
    color: var(--kss-primary-color);
}

/* Aktiver Tab: Radio #login checked → erstes Label aktiv */
#KSS-tab-login:checked~.KSS-login-tabs__nav label[for="KSS-tab-login"],
#KSS-tab-register:checked~.KSS-login-tabs__nav label[for="KSS-tab-register"] {
    color: var(--kss-primary-color);
    border-bottom-color: var(--kss-primary-color);
}

/* ── Tab-Panes: standardmäßig versteckt ────────────────────────────────── */
.KSS-login-tabs__pane {
    display: none;
    padding: 2rem 2.5rem 2rem;
}

/* Login-Pane sichtbar wenn #login radio checked */
#KSS-tab-login:checked~.KSS-login-tabs__pane--login {
    display: block;
}

/* Register-Pane sichtbar wenn #register radio checked */
#KSS-tab-register:checked~.KSS-login-tabs__pane--register {
    display: block;
}

/* Fallback wenn keine Registrierung: Login immer sichtbar */
.KSS-login-tabs:not(:has(.KSS-login-tabs__radio)) .KSS-login-tabs__pane--login {
    display: block;
}

/* ── Formular-Felder ────────────────────────────────────────────────────── */
.KSS-login-tabs .woocommerce-form-row {
    margin-bottom: 1.1rem;
}

.KSS-login-tabs .woocommerce-form-row label {
    font-family: var(--kss-font-heading, sans-serif);
    font-weight: 500;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.35rem;
    color: #333;
}

/* ── Input-Icon-Wrapper ─────────────────────────────────────────────────── */
.KSS-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.KSS-input-icon {
    position: absolute;
    left: 0.85rem;
    color: #aaa;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1;
}

/* Passwort-Toggle-Button */
.KSS-pw-toggle {
    position: absolute;
    right: 0.85rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.KSS-pw-toggle:hover {
    color: var(--kss-primary-color);
}

/* WooCommerce injiziert eigenen PW-Toggle – verstecken, wir nutzen eigenen */
.KSS-input-wrap .show-password-input {
    display: none !important;
}

/* WooCommerce wickelt das PW-Input in span.password-input – volle Breite geben */
.KSS-input-wrap .password-input {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

/* Input mit linkem Icon: padding-left */
.KSS-input-wrap .input-text {
    padding-left: 2.2rem !important;
}

/* Input mit rechtem Icon (Passwort): zusätzlich padding-right */
.KSS-input-wrap--pw .input-text {
    padding-right: 2.2rem !important;
}

.KSS-login-tabs .input-text {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    padding-right: 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 5px;
    font-family: var(--kss-font-heading, sans-serif);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    background-color: #fafafa;
}

.KSS-login-tabs .input-text:focus {
    outline: none;
    border-color: var(--kss-primary-color);
    box-shadow: 0 0 0 3px rgba(var(--kss-primary-color-rgb, 180, 0, 0), 0.08);
    background-color: white;
}

/* Icon-Farbe wenn Feld fokussiert */
.KSS-input-wrap:focus-within .KSS-input-icon {
    color: var(--kss-primary-color);
}

/* ── Remember-Me-Zeile ──────────────────────────────────────────────────── */
.KSS-login-tabs__remember-row {
    display: flex !important;
    align-items: center;
    justify-content: space-between !important;
    margin: 0.5rem 0 1.25rem !important;
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
}

.KSS-login-tabs__remember-row .woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.KSS-login-tabs__lost-pw {
    font-size: 0.85rem;
    color: var(--kss-primary-color);
    text-decoration: none;
}

.KSS-login-tabs__lost-pw:hover {
    text-decoration: underline;
}

/* ── Submit-Button ──────────────────────────────────────────────────────── */
.KSS-login-tabs__submit-row {
    margin: 0 !important;
}

.KSS-login-tabs .woocommerce-button.button,
.KSS-login-tabs .woocommerce-Button.button {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: var(--kss-primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--kss-font-heading, sans-serif);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background-color 0.2s ease;
    text-align: center;
}

.KSS-login-tabs .woocommerce-button.button:hover,
.KSS-login-tabs .woocommerce-Button.button:hover {
    background-color: var(--kss-secondary-color, #8b0000);
}

/* ── "Noch kein Konto?" Hinweis ─────────────────────────────────────────── */
.KSS-login-tabs__switch-hint {
    text-align: center;
    margin-top: 1.25rem !important;
    font-size: 0.9rem;
    color: #666;
}

.KSS-login-tabs__switch-link {
    color: var(--kss-primary-color);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.KSS-login-tabs__switch-link:hover {
    text-decoration: underline;
}

/* ── Passwort-Auto-Hinweis ──────────────────────────────────────────────── */
.KSS-login-tabs__pw-hint {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem !important;
}

/* ── Registrierung: Zweispaltige Zeilen (Vorname/Nachname, PLZ/Stadt) ───── */
.KSS-reg-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}

.KSS-reg-row-split .woocommerce-form-row {
    margin-bottom: 1.1rem;
}

/* ── AGB-Checkbox-Zeile ─────────────────────────────────────────────────── */
.KSS-reg-agb-row {
    margin: 0.5rem 0 1.25rem !important;
}

.KSS-reg-agb-row .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
    color: #333;
}

.KSS-reg-agb-row .woocommerce-form__label-for-checkbox input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--kss-primary-color);
}

.KSS-reg-agb-row a {
    color: var(--kss-primary-color);
    font-weight: 600;
    text-decoration: none;
}

.KSS-reg-agb-row a:hover {
    text-decoration: underline;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media screen and (max-width: 480px) {
    .KSS-login-tabs__pane {
        padding: 1.5rem 1.25rem;
    }

    .KSS-login-tabs__label {
        padding: 0.85rem 0.75rem 0.75rem;
        font-size: 0.9rem;
    }

    .KSS-reg-row-split {
        grid-template-columns: 1fr;
    }
}


.wc-block-product-categories-list-item-count {
    color: black !important;
}

/* Shop Suche */
.KSS-shop-search label {
    display: block;
    margin-bottom: 1rem !important;
}

/* Shop Navigation */
.kss_shop_navigation {
    position: relative;
    margin-bottom: 0 !important;
    background-color: whitesmoke;
    border-radius: 1rem;
}

.kss_shop_navigation.--desktop {
    display: block;
}

.kss_shop_navigation.--mobile {
    display: none !important;
}

@media screen and (max-width: 768px) {
    .kss_shop_navigation.--desktop {
        display: none;
    }

    .kss_shop_navigation.--mobile {
        display: flex !important;
        align-items: center;
        padding: 0.5rem;
    }
}

.kss_shop_navigation .wc-block-product-categories-list--depth-0 {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    padding: 1rem 2rem;
    margin-bottom: 0;
}

.kss_shop_navigation .wc-block-product-categories-list li a {
    text-decoration: none;
    color: black;
    font-size: var(--kss-copy-text);
}

.kss_shop_navigation .wc-block-product-categories-list li a:hover {
    text-decoration: underline;
    text-decoration-color: var(--kss-primary-color);
}

.kss_shop_navigation .wc-block-product-categories-list--depth-0>li {
    position: relative;
}

.kss_shop_navigation .wc-block-product-categories-list--depth-0>li:hover>.wc-block-product-categories-list--depth-1 {
    display: block;
}

.kss_shop_navigation .wc-block-product-categories-list--depth-1 {
    list-style: none;
    display: none;
    position: absolute;
    background-color: whitesmoke;
    z-index: 75;
    padding: 1rem 0.5rem;
}

.kss_shop_navigation .wc-block-product-categories-list--depth-1>li {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    width: 200px;
}

.kss_shop_navigation .wc-block-product-categories-list--depth-1>li:hover>.wc-block-product-categories-list--depth-2 {
    display: block;
}

.kss_shop_navigation .wc-block-product-categories-list--depth-2 {
    list-style: none;
    display: none;
    position: relative;
    background-color: whitesmoke;
    z-index: 75;
}

.kss_shop_navigation.--mobile .wc-block-product-categories__dropdown select {
    border-radius: 16px;
    padding-left: 1rem;
    width: 100%;
    border: none;
}

.kss_shop_navigation.--mobile .wc-block-product-categories__dropdown+button {
    align-items: center;
    display: flex;
    margin: 0;
    overflow: hidden;
    position: relative;
    border: none;
    border-radius: 16px;
    margin-left: 1rem;
}

/* Shop Filter */
.KSS-Shop-Filter-Group {
    background-color: whitesmoke;
}

/* Neue Produkte */
.KSS-shop-new-products .wc-block-product-template__responsive {
    margin-top: 2rem;
}

.KSS-shop-new-products .wc-block-product-template__responsive .wc-block-product {
    border: 1px solid #0000004c;
    border-radius: 16px;
    padding: 0 1rem 1rem 1rem;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    background-color: white;
    color: black;
}

.KSS-shop-new-products .wc-block-product-template__responsive .wc-block-product .wc-block-components-product-image {
    display: grid;
    place-items: center;
}

/* =============================================================================
   Produktsammlung – Modern Card Redesign
   ============================================================================= */

/* ---- Card Base ---- */
.KSS-shop-produktsammlung .wc-block-product-template__responsive .wc-block-product {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    width: 100%;
    max-width: unset;
}

.KSS-shop-produktsammlung-column-container .wp-block-column .woocommerce-ordering {
    margin: 0;
}

/* GZD-Infos (Grundpreis, Lieferzeit etc.) nur im Produkt-Loop/Grid verstecken,
   NICHT auf der Einzelproduktseite (z.B. Produktsicherheit-Tab) */
.wc-block-product .wc-gzd-additional-info,
.wc-block-grid__product .wc-gzd-additional-info {
    display: none;
}

.wp-block-woocommerce-gzd-product-price-label {
    margin-bottom: 0;
}

.KSS-shop-produktsammlung .wc-block-product-template__responsive .wc-block-product:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 12px 32px rgba(192, 0, 28, 0.14);
    transform: translateY(-3px);
}

.wp-block-woocommerce-catalog-sorting {
    display: flex;
    justify-content: flex-end;
}

/* ---- Bild-Bereich ---- */
.KSS-shop-produktsammlung .wc-block-product-template__responsive .wc-block-product .wc-block-components-product-image,
.KSS-shop-produktsammlung .wc-block-product-template__responsive .wc-block-product div[data-block-name="woocommerce/product-image"] {
    background-color: #f5f5f5;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.75rem;
}

.KSS-shop-produktsammlung .wc-block-product-template__responsive .wc-block-product .wc-block-components-product-image img,
.KSS-shop-produktsammlung .wc-block-product-template__responsive .wc-block-product div[data-block-name="woocommerce/product-image"] img:not(#fakeID) {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    aspect-ratio: unset !important;
    transition: transform 0.4s ease;
}

.KSS-shop-produktsammlung .wc-block-product-template__responsive .wc-block-product:hover .wc-block-components-product-image img,
.KSS-shop-produktsammlung .wc-block-product-template__responsive .wc-block-product:hover div[data-block-name="woocommerce/product-image"] img {
    transform: scale(1.05);
}

/* ---- Roter Akzent-Strich oben ---- */
.KSS-shop-produktsammlung .wc-block-product-template__responsive .wc-block-product::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #C0001C;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.KSS-shop-produktsammlung .wc-block-product-template__responsive .wc-block-product:hover::before {
    transform: scaleX(1);
}

/* ---- Text-Bereich ---- */
.KSS-shop-produktsammlung .wc-block-product-template__responsive .wc-block-product .wp-block-post-title {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin: 0.75rem 1rem 0.25rem !important;
    text-align: left !important;
}

.KSS-shop-produktsammlung .wc-block-product-template__responsive .wc-block-product .wp-block-post-title a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.KSS-shop-produktsammlung .wc-block-product-template__responsive .wc-block-product .wp-block-post-title a:hover {
    color: #C0001C;
}

/* ---- Preis ---- */
.KSS-shop-produktsammlung .wc-block-product-template__responsive .wc-block-product .wc-block-components-product-price {
    font-size: 0.82rem;
    font-weight: 600;
    color: #111;
    margin: 0.25rem 1rem 0;
}

/* ---- MwSt.-Info ---- */
.KSS-shop-produktsammlung .wc-block-product-template__responsive .wc-block-product p.wc-gzd-additional-info {
    font-size: 0.58rem;
    color: #aaa;
    text-align: right;
    margin: 0.15rem 1rem 0;
    line-height: 1.3;
}

/* ---- Button ---- */
.KSS-shop-produktsammlung .wc-block-product-template__responsive .wc-block-product .wc-block-components-product-button__button,
.KSS-shop-produktsammlung .wc-block-product-template__responsive .wc-block-product a.wp-block-button__link {
    display: block !important;
    width: calc(100% - 2rem) !important;
    margin: 0.75rem 1rem 1rem !important;
    padding: 0.55rem 1rem !important;
    background-color: #C0001C !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.2s ease !important;
    box-sizing: border-box !important;
}

.KSS-shop-produktsammlung .wc-block-product-template__responsive .wc-block-product .wc-block-components-product-button__button:hover,
.KSS-shop-produktsammlung .wc-block-product-template__responsive .wc-block-product a.wp-block-button__link:hover {
    background-color: #9a0016 !important;
}

/* Slick Slider */
.KSS-slick-slider-init .wc-block-product-template__responsive .slick-track .slick-slide {
    margin: 0 1rem;
}

@media screen and (max-width: 768px) {
    .KSS-slick-slider-init-equal-products {
        display: block !important;
    }
}

.KSS-slick-slider-init-equal-products li {
    border: 1px solid #0000004c;
    border-radius: 16px;
    overflow: hidden;
}

/* Meistverkaufte Produkte */
.KSS-shop-most-selled-products .wc-block-product-template__responsive {
    margin-top: 1rem;
    gap: 0;
    column-gap: 0;
}

.KSS-shop-most-selled-products .wc-block-product-template__responsive .wc-block-product {
    position: relative;
    background-color: white;
    border: none;
    border-right: 1px solid black;
    border-radius: 0;
    box-shadow: none;
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    width: 100%;
    max-width: unset;
    box-sizing: border-box;
}

.KSS-shop-most-selled-products .wc-block-product-template__responsive .wc-block-product:last-child {
    border-right: none;
}

@media screen and (max-width:480px) {
    .KSS-shop-most-selled-products .wc-block-product-template__responsive .wc-block-product {
        border: 1px solid #0000004c;
    }

    .KSS-shop-most-selled-products .wc-block-product-template__responsive .wc-block-product:last-child {
        border-right: 1px solid #0000004c;
    }
}

/* Bild */
.KSS-shop-most-selled-products .wc-block-product-template__responsive .wc-block-product div[data-block-name="woocommerce/product-image"] {
    grid-column: 1 / -1;
    background-color: #ebebeb;
    aspect-ratio: 1 / 1;
    margin-bottom: 0.75rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.KSS-shop-most-selled-products .wc-block-product-template__responsive .wc-block-product div[data-block-name="woocommerce/product-image"] img:not(#fakeID) {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: unset !important;
}

/* Sale Badge */
.KSS-shop-most-selled-products .wc-block-product-template__responsive .wc-block-product .wc-block-components-product-sale-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--kss-secondary-color);
    color: white;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
    border-radius: 0 !important;
    margin: 0 !important;
}

/* Produkttitel */
.KSS-shop-most-selled-products .wc-block-product-template__responsive .wc-block-product .wp-block-post-title {
    grid-column: 1 / -1;
    font-size: 0.9rem;
    font-weight: bold;
    margin: 0.25rem 0 !important;
    text-align: left !important;
}

.KSS-shop-most-selled-products .wc-block-product-template__responsive .wc-block-product .wp-block-post-title a {
    color: black;
    text-decoration: none;
}

.KSS-shop-most-selled-products .wc-block-product-template__responsive .wc-block-product .wp-block-post-title a:hover {
    color: var(--kss-primary-color);
}

/* Meta (Marke, Artikelnummer) */
.KSS-shop-most-selled-products .wc-block-product-template__responsive .wc-block-product .wc-block-components-product-sku,
.KSS-shop-most-selled-products .wc-block-product-template__responsive .wc-block-product .wc-block-components-product-meta {
    grid-column: 1 / -1;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 0.5rem;
}

/* Preis */
.KSS-shop-most-selled-products .wc-block-product-template__responsive .wc-block-product div[data-block-name="woocommerce/product-price"] {
    grid-column: 1;
    align-self: center;
    margin: 0;
}

.KSS-shop-most-selled-products .wc-block-product-template__responsive .wc-block-product div[data-block-name="woocommerce/product-price"] .wc-block-components-product-price {
    font-weight: bold;
    font-size: 1rem;
    margin: 0;
}

/* Button */
.KSS-shop-most-selled-products .wc-block-product-template__responsive .wc-block-product div[data-block-name="woocommerce/product-button"] {
    grid-column: 2;
    align-self: center;
    margin: 0;
}

.KSS-shop-most-selled-products-warenkorb-button,
.KSS-shop-most-selled-products .wc-block-product-template__responsive .wc-block-product div[data-block-name="woocommerce/product-button"] .wc-block-components-product-button__button,
.KSS-shop-most-selled-products .wc-block-product-template__responsive .wc-block-product div[data-block-name="woocommerce/product-button"] a.wp-block-button__link {
    background-color: var(--kss-secondary-color) !important;
    color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    width: 2rem;
    height: 2rem;
    min-width: unset;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0 !important;
    overflow: hidden;
}

/* Nur auf dem innersten Button-Element das FA-Icon rendern */
.KSS-shop-most-selled-products .wc-block-product-template__responsive .wc-block-product div[data-block-name="woocommerce/product-button"] .wc-block-components-product-button__button::after,
.KSS-shop-most-selled-products .wc-block-product-template__responsive .wc-block-product div[data-block-name="woocommerce/product-button"] a.wp-block-button__link::after {
    content: "\f067";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.85rem;
    line-height: 1;
    display: block;
    color: white;
}

/* Utility */
.wp-block-group__no-container {
    max-width: unset !important;
    width: 100%;
}

.wc-block-product-gallery-thumbnails__thumbnail {
    border: 1px solid #e8e6e2;
}

.wp-singular .KSS-product-gallery-and-details {
    border-top: 1px solid #e8e6e2;
    border-bottom: 1px solid #e8e6e2;
    gap: 0;
}

.wp-singular .KSS-product-gallery-and-details .wp-block-column:first-child {
    border-right: 1px solid #e8e6e2;
}

.KSS-product-details-column {
    padding: 1rem;
}

/* =============================================================================
   Single Product – Klassisches KSS-Template (content-single-product.php)
   ============================================================================= */

/* Wrapper */
.KSS-product-wrap {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
}

/* Benachrichtigungen */
.KSS-product-notices:empty {
    display: none;
}

/* 2-Spalten-Layout: Galerie + Details */
.KSS-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    border-bottom: 1px solid #e8e6e2;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.KSS-product-layout .images,
.KSS-product-layout .summary {
    float: none !important;
    width: 100% !important;
}

@media (max-width: 768px) {
    .KSS-product-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ─ Galerie ─ */
.KSS-product-gallery {
    position: sticky;
    top: 1.5rem;
}

.KSS-product-gallery .woocommerce-product-gallery {
    margin-bottom: 0;
    opacity: 1 !important;
}

/* ─ Detail-Spalte ─ */
.KSS-product-details-column {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Sale-Badge */
.KSS-product-sale-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    background: var(--kss-secondary-color, #8b0000);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 0.25rem;
}

/* Kategorie-Link über dem Titel */
.KSS-product-category {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #888;
    margin: 0;
}

.KSS-product-category a {
    color: inherit;
    text-decoration: none;
}

.KSS-product-category a:hover {
    color: var(--kss-primary-color);
}

/* Zusammenfassung (WC-Standard-Hooks) */
.KSS-product-details-column .summary.entry-summary {
    margin: 0;
    float: none;
    width: 100%;
}

.KSS-product-details-column .summary .product_title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    margin: 0 0 0.5rem;
}

.KSS-product-details-column .summary .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--kss-primary-color);
    margin: 0.5rem 0 1rem;
}

/* Trennlinie zwischen Preis und Warenkorb-Bereich */
.KSS-product-details-column .summary .cart {
    border-top: 1px solid #e8e6e2;
    padding-top: 1.25rem;
    margin-top: 0.5rem;
}

/* Warenkorb-Button */
.KSS-product-details-column .summary .single_add_to_cart_button {
    background-color: var(--kss-primary-color);
    color: #fff;
    border: none;
    padding: 0.7rem 2rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.KSS-product-details-column .summary .single_add_to_cart_button:hover {
    background-color: var(--kss-secondary-color, #8b0000);
}

/* Meta (SKU, Kategorien, Tags) */
.KSS-product-details-column .summary .product_meta {
    font-size: 0.8rem;
    color: #888;
    border-top: 1px solid #e8e6e2;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

/* ─ Tabs-Bereich ─ */
.KSS-product-tabs-section {
    margin-top: 2rem;
}

/* KSS Tabs – Navigation */
.KSS-product-tabs__nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 0 0;
    border-bottom: 2px solid #e8e6e2;
    gap: 0;
}

.KSS-product-tabs__item {
    margin: 0;
}

.KSS-product-tabs__link {
    display: block;
    padding: 0.75rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s ease;
}

.KSS-product-tabs__link:hover,
.KSS-product-tabs__item.is-active .KSS-product-tabs__link,
.KSS-product-tabs__item.active .KSS-product-tabs__link {
    color: var(--kss-secondary-color);
    border-bottom-color: var(--kss-secondary-color);
}

/* KSS Tabs – Panel */
.KSS-product-tabs__panel {
    padding: 1.5rem 0;
}

.KSS-product-tabs__panel[hidden] {
    display: none !important;
}

.ppcp-messages {
    margin-top: 1rem;
}

.KSS-product-wrap {margin-top: 5rem;}
.woocommerce-product-gallery__image{margin-bottom: 1rem;margin-right: 1rem;}

/* =============================================================================
   Product Details – Accordion als Tab-Navigation
   ============================================================================= */

/* Flex-Container: Tabs oben, Panel-Inhalte darunter, Trennlinie */
.wp-block-woocommerce-product-details .wp-block-accordion {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 1.5rem;
}

/* Accordion-Items "auflösen" → Heading & Panel werden direkte Flex-Kinder */
.wp-block-woocommerce-product-details .wp-block-accordion-item {
    display: contents;
}

/* Headings in die erste Reihe (Tab-Leiste) */
.wp-block-woocommerce-product-details .wp-block-accordion-heading {
    order: 1;
    margin: 0;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    position: relative;
    z-index: 1;
}

/* Aktiver Tab: farbiger Unterstrich */
.wp-block-woocommerce-product-details .wp-block-accordion-item.is-open .wp-block-accordion-heading {
    border-bottom-color: var(--kss-secondary-color);
}

/* Tab-Button Styling */
.wp-block-woocommerce-product-details .wp-block-accordion-heading__toggle {
    background: none;
    border: none;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.wp-block-woocommerce-product-details .wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle,
.wp-block-woocommerce-product-details .wp-block-accordion-heading__toggle:hover {
    color: var(--kss-secondary-color);
}

/* "+ " Icon ausblenden */
.wp-block-woocommerce-product-details .wp-block-accordion-heading__toggle-icon {
    display: none;
}

/* Panels: volle Breite, hinter den Tabs eingereiht */
.wp-block-woocommerce-product-details .wp-block-accordion-panel {
    order: 2;
    flex: 0 0 100%;
    padding: 1.5rem 0;
}

/* Inaktive Panels ausblenden */
.wp-block-woocommerce-product-details .wp-block-accordion-item:not(.is-open) .wp-block-accordion-panel {
    display: none !important;
}

/* =============================================================================
   Related Products – Singular Produktseite (.KSS-related-products-singular-page)
   ============================================================================= */

/* Grid-Container */
.KSS-related-products-singular-page {
    list-style: none;
    padding: 0;
    margin: 0;
}

.KSS-related-products-singular-page .woocommerce-Price-amount.amount {
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

/* Produkt-Karte */
.KSS-related-products-singular-page .wc-block-product {
    position: relative;
    background-color: white;
    display: grid;
    grid-template-rows: auto 1fr auto;
    border: 1px solid #e8e6e2;
    box-shadow: none;
    border-radius: 0;
    overflow: hidden;
    max-width: unset;
    width: 100%;
    border-right: 1px solid #e8e6e2;
}

/* Bild-Bereich */
.KSS-related-products-singular-page .wc-block-product div[data-block-name="woocommerce/product-image"] {
    background-color: #fff;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.KSS-related-products-singular-page .wc-block-product div[data-block-name="woocommerce/product-image"] a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.KSS-related-products-singular-page .wc-block-components-product-sku {
    margin-left: 1rem;
}

.KSS-related-products-singular-page .wc-block-product div[data-block-name="woocommerce/product-image"] img:not(#fakeID) {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    aspect-ratio: unset !important;
}

.KSS-related-products-singular-page {
    gap: 0;
}

.KSS-related-products-singular-page .wc-block-components-product-image {
    padding: 1rem !important;
}

/* Sale Badge */
.KSS-related-products-singular-page .wc-block-product .wc-block-components-product-sale-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--kss-secondary-color);
    color: white;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
    border-radius: 0 !important;
    margin: 0 !important;
}

/* Text-Bereich */
.KSS-related-products-singular-page .wc-block-product .wp-block-post-title {
    font-size: 0.85rem;
    font-weight: bold;
    margin: 0.75rem 0.75rem 0.25rem !important;
    text-align: left !important;
    line-height: 1.3 !important;
}

.KSS-related-products-singular-page .wc-block-product .wp-block-post-title a {
    color: black;
    text-decoration: none;
}

.KSS-related-products-singular-page .wc-block-product .wp-block-post-title a:hover {
    color: var(--kss-primary-color);
}

/* Preis + Button Zeile */
.KSS-related-products-singular-page .wc-block-product .wp-block-group.is-layout-flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem 0.75rem;
    margin: auto 0 0;
    gap: 0.5rem;
}

/* Preis */
.KSS-related-products-singular-page .wc-block-product div[data-block-name="woocommerce/product-price"] {
    flex: 1;
    margin: 0;
}

.KSS-related-products-singular-page .wc-block-product div[data-block-name="woocommerce/product-price"] .wc-block-components-product-price {
    font-size: 0.95rem;
    font-weight: bold;
    color: #111;
    margin: 0;
}

.KSS-related-products-singular-page .wc-block-product div[data-block-name="woocommerce/product-price"] del {
    font-weight: normal;
    font-size: 0.75rem;
    color: #999;
    margin-right: 0.25rem;
}

.KSS-related-products-singular-page .wc-block-product div[data-block-name="woocommerce/product-price"] ins {
    text-decoration: none;
}

/* Add-to-Cart Button */
.KSS-related-products-singular-page .wc-block-product div[data-block-name="woocommerce/product-button"] {
    flex: 0 0 auto;
    margin: 0;
}

.KSS-related-products-singular-page .wc-block-product div[data-block-name="woocommerce/product-button"] .wc-block-components-product-button__button,
.KSS-related-products-singular-page .wc-block-product div[data-block-name="woocommerce/product-button"] a.wp-block-button__link {
    background-color: var(--kss-secondary-color) !important;
    color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    width: 2rem;
    height: 2rem;
    min-width: unset;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0 !important;
    overflow: hidden;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.KSS-related-products-singular-page .wc-block-product div[data-block-name="woocommerce/product-button"] .wc-block-components-product-button__button:hover,
.KSS-related-products-singular-page .wc-block-product div[data-block-name="woocommerce/product-button"] a.wp-block-button__link:hover {
    background-color: var(--kss-primary-color) !important;
}

.KSS-related-products-singular-page .wc-block-product div[data-block-name="woocommerce/product-button"] .wc-block-components-product-button__button::after,
.KSS-related-products-singular-page .wc-block-product div[data-block-name="woocommerce/product-button"] a.wp-block-button__link::after {
    content: "\f067";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.85rem;
    line-height: 1;
    display: block;
    color: white;
}

.wp-block-query-pagination a {
    color: black !important;
}

/* "Warenkorb anzeigen"-Link ausblenden falls nicht benötigt */
.KSS-related-products-singular-page .wc-block-product .added_to_cart {
    display: none;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .KSS-related-products-singular-page.columns-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media screen and (max-width: 480px) {
    .KSS-related-products-singular-page.columns-4 {
        grid-template-columns: 1fr !important;
    }
}

.KSS-singular-prod-brand-tag a {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--kss-secondary-color);
    margin-bottom: 10px;
}

.wc-block-product-gallery-large-image__container {
    border: 1px solid #e8e6e2;
}

/* =============================================================================
   My Account – Dashboard Layout (KSS)
   ============================================================================= */

/* ── Zweispalten-Wrapper ──────────────────────────────────────────────── */
.KSS-myaccount-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* ── Sidebar ──────────────────────────────────────────────────────────── */
.KSS-myaccount-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    padding: 0.5rem 0;
}

/* Nav-Liste */
.KSS-myaccount-sidebar .woocommerce-MyAccount-navigation {
    width: 100% !important;
    display: block !important;
    float: none !important;
}

.KSS-myaccount-sidebar .woocommerce-MyAccount-navigation ul {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: block !important;
}

.KSS-myaccount-sidebar .woocommerce-MyAccount-navigation ul li {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* Nav-Link */
.KSS-myaccount-sidebar .woocommerce-MyAccount-navigation a {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    width: 100% !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    color: #333;
    font-size: var(--kss-copy-text);
    font-weight: 400;
    border-left: 3px solid transparent;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.KSS-myaccount-sidebar .woocommerce-MyAccount-navigation a:hover {
    color: var(--kss-primary-color);
    background-color: rgba(var(--kss-primary-color-rgb, 180, 0, 0), 0.04);
    text-decoration: none !important;
}

/* Aktiver Punkt */
.KSS-myaccount-sidebar .woocommerce-MyAccount-navigation .is-active a {
    font-weight: 600;
    color: var(--kss-primary-color);
    border-left-color: var(--kss-primary-color);
    background-color: rgba(var(--kss-primary-color-rgb, 180, 0, 0), 0.05);
}

/* Icon links im Link */
.KSS-myaccount-sidebar .woocommerce-MyAccount-navigation a i {
    width: 1.1rem;
    text-align: center;
    font-size: 0.95rem;
    color: var(--kss-primary-color);
    flex-shrink: 0;
}

/* ── Content-Bereich ─────────────────────────────────────────────────── */
.KSS-myaccount-content {
    flex: 1;
    min-width: 0;
}

/* ── Dashboard-Container ─────────────────────────────────────────────── */
.KSS-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Begrüßungskarte */
.KSS-dashboard__welcome {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    padding: 1.75rem 2rem;
}

.KSS-dashboard__greeting {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    margin: 0 0 0.5rem 0 !important;
    color: #111;
}

.KSS-dashboard__name {
    color: var(--kss-primary-color);
}

.KSS-dashboard__desc {
    margin: 0 !important;
    color: #555;
    font-size: var(--kss-copy-text);
    line-height: 1.6;
}

.KSS-dashboard__desc a {
    color: var(--kss-primary-color);
    text-decoration: none;
}

.KSS-dashboard__desc a:hover {
    text-decoration: underline;
}

/* ── Statistik-Karten ────────────────────────────────────────────────── */
.KSS-dashboard__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.KSS-stat-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-decoration: none !important;
    color: #111;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.KSS-stat-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.13);
    transform: translateY(-2px);
    color: #111;
}

.KSS-stat-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.KSS-stat-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: rgba(var(--kss-primary-color-rgb, 180, 0, 0), 0.08);
    color: var(--kss-primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.KSS-stat-card__value {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111;
    line-height: 1;
}

.KSS-stat-card__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #555;
    letter-spacing: 0.01em;
}

/* ── Bestellungstabelle ──────────────────────────────────────────────── */
.KSS-dashboard__orders {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.KSS-dashboard__orders-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.KSS-dashboard__orders-title {
    margin: 0 !important;
    font-size: 1.1rem !important;
    font-weight: 700;
}

.KSS-dashboard__orders-all {
    font-size: 0.875rem;
    color: var(--kss-primary-color);
    text-decoration: none;
    font-weight: 500;
}

.KSS-dashboard__orders-all:hover {
    text-decoration: underline;
    color: var(--kss-primary-color);
}

.KSS-orders-table-wrap {
    overflow-x: auto;
}

.KSS-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--kss-copy-text);
}

.KSS-orders-table thead th {
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #888;
    border-bottom: 1px solid #f0f0f0;
}

.KSS-orders-table tbody tr {
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.15s;
}

.KSS-orders-table tbody tr:last-child {
    border-bottom: none;
}

.KSS-orders-table tbody tr:hover {
    background-color: #fafafa;
}

.KSS-orders-table tbody td {
    padding: 1rem 1.5rem;
    color: #333;
    vertical-align: middle;
}

/* Bestellstatus-Badges */
.KSS-order-status {
    font-weight: 500;
    font-size: 0.9rem;
}

.KSS-order-status--completed {
    color: #2196f3;
}

.KSS-order-status--processing {
    color: #28a745;
}

.KSS-order-status--on-hold {
    color: #f39c12;
}

.KSS-order-status--pending {
    color: #95a5a6;
}

.KSS-order-status--cancelled {
    color: #e74c3c;
}

.KSS-order-status--refunded {
    color: #9b59b6;
}

.KSS-order-status--failed {
    color: #e74c3c;
}

/* Aktion-Link */
.KSS-order-action {
    color: var(--kss-primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.KSS-order-action:hover {
    text-decoration: underline;
    color: var(--kss-primary-color);
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media screen and (max-width: 1024px) {
    .KSS-dashboard__stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .KSS-myaccount-layout {
        flex-direction: column;
        gap: 1rem;
    }

    .KSS-myaccount-sidebar {
        width: 100%;
    }

    .KSS-myaccount-sidebar .woocommerce-MyAccount-navigation ul {
        display: flex;
        flex-wrap: wrap;
    }

    .KSS-myaccount-sidebar .woocommerce-MyAccount-navigation ul li {
        flex: 1 1 auto;
        min-width: 140px;
    }

    .KSS-dashboard__stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .KSS-orders-table thead {
        display: none;
    }

    .KSS-orders-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #f0f0f0;
        border-radius: 8px;
    }

    .KSS-orders-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.6rem 1rem;
        border-bottom: 1px solid #f5f5f5;
    }

    .KSS-orders-table tbody td::before {
        content: attr(data-label);
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #999;
        flex-shrink: 0;
        margin-right: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .KSS-dashboard__stats {
        grid-template-columns: 1fr 1fr;
    }

    .KSS-dashboard__welcome {
        padding: 1.25rem;
    }

    .KSS-dashboard__greeting {
        font-size: 1.4rem !important;
    }
}

.KSS-singular-product-details {
    margin-top: 2rem;
}

.KSS-singular-product-breadcrumb {
    display: flex;
    height: 100%;
    align-items: center;
}

.KSS-singular-product-breadcrumb .woocommerce-breadcrumb {
    padding: 0 !important;
}

.wp-block-product-specifications-item__label {
    background-color: #f5f4f2;
}

.woocommerce-account .woocommerce:not(#fakeID) {
    max-width: unset;
}

/* =============================================================================
   My Account – Orders Card-Style (KSS)
   ============================================================================= */

/* ── Seiten-Header ────────────────────────────────────────────────────── */
.KSS-orders-page__header {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
}

.KSS-orders-page__title {
    margin: 0 0 0.25rem 0 !important;
    font-size: 1.4rem !important;
    font-weight: 700;
    color: #111;
}

.KSS-orders-page__desc {
    margin: 0 !important;
    color: #777;
    font-size: 0.9rem;
}

/* ── Order-Liste ──────────────────────────────────────────────────────── */
.KSS-order-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ── Order-Card ───────────────────────────────────────────────────────── */
.KSS-order-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.KSS-order-card--open {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

/* ── Kopfzeile ────────────────────────────────────────────────────────── */
.KSS-order-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    gap: 1rem;
}

.KSS-order-card__left {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

/* Status-Icon-Kreis */
.KSS-order-card__status-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.KSS-order-card__status-icon--green {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.KSS-order-card__status-icon--orange {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.KSS-order-card__status-icon--blue {
    background: rgba(33, 150, 243, 0.1);
    color: #2196f3;
}

.KSS-order-card__status-icon--yellow {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.KSS-order-card__status-icon--red {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.KSS-order-card__status-icon--purple {
    background: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

.KSS-order-card__status-icon--gray {
    background: rgba(0, 0, 0, 0.05);
    color: #999;
}

/* Bestellnummer + Status-Badge */
.KSS-order-card__meta {
    min-width: 0;
}

.KSS-order-card__title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.KSS-order-card__number {
    font-weight: 700;
    font-size: 1rem;
    color: #111;
}

.KSS-order-card__status {
    font-size: 0.8rem;
    font-weight: 600;
}

.KSS-order-card__status--completed {
    color: #2196f3;
}

.KSS-order-card__status--processing {
    color: #28a745;
}

.KSS-order-card__status--shipped {
    color: #2196f3;
}

.KSS-order-card__status--on-hold {
    color: #f39c12;
}

.KSS-order-card__status--pending {
    color: #95a5a6;
}

.KSS-order-card__status--cancelled {
    color: #e74c3c;
}

.KSS-order-card__status--refunded {
    color: #9b59b6;
}

.KSS-order-card__status--failed {
    color: #e74c3c;
}

.KSS-order-card__info {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.15rem;
}

/* Rechte Seite: Total + Details-Button */
.KSS-order-card__right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

.KSS-order-card__total-wrap {
    text-align: right;
}

.KSS-order-card__total-label {
    display: block;
    font-size: 0.75rem;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.1rem;
}

.KSS-order-card__total-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
}

/* Details-Button */
.KSS-order-card__details-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--kss-primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: inherit;
    padding: 0;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.KSS-order-card__details-btn:hover {
    opacity: 0.75;
}

/* ── Sendungsverfolgung ───────────────────────────────────────────────── */
.KSS-order-card__tracking {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85rem;
    color: #555;
}

.KSS-order-card__tracking i {
    color: #999;
    font-size: 0.8rem;
}

.KSS-order-card__tracking strong {
    color: #333;
}

/* ── Detail-Panel ─────────────────────────────────────────────────────── */
.KSS-order-card__details {
    border-top: 1px solid #f0f0f0;
}

.KSS-order-card__products {
    padding: 1.25rem 1.5rem;
}

.KSS-order-card__products-title {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase;
    color: #999;
    margin: 0 0 1rem 0 !important;
}

/* ── Produktliste ─────────────────────────────────────────────────────── */
.KSS-order-product-list {
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}

.KSS-order-product-list__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #f5f5f5;
}

.KSS-order-product-list__item:last-child {
    border-bottom: none;
}

/* Produktbild */
.KSS-order-product-list__thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.KSS-order-product-list__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.KSS-order-product-list__thumb-placeholder {
    color: #ccc;
    font-size: 1.2rem;
}

/* Produktname + Menge */
.KSS-order-product-list__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.KSS-order-product-list__name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.KSS-order-product-list__qty {
    font-size: 0.82rem;
    color: #888;
}

/* Zeilenpreis */
.KSS-order-product-list__price {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Aktions-Buttons ──────────────────────────────────────────────────── */
.KSS-order-card__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 1rem;
    flex-wrap: wrap;
}

.KSS-order-card__action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
    font-family: inherit;
    cursor: pointer;
}

/* Outline-Variante (Rechnung ansehen / herunterladen) */
.KSS-order-card__action-btn--outline {
    border: 1px solid #d0d0d0;
    background: #fff;
    color: #333 !important;
}

.KSS-order-card__action-btn--outline:hover {
    border-color: var(--kss-primary-color);
    color: var(--kss-primary-color) !important;
    background: rgba(var(--kss-primary-color-rgb, 180, 0, 0), 0.04);
}

/* Primary-Variante (Erneut bestellen) */
.KSS-order-card__action-btn--primary {
    border: 1px solid transparent;
    background: var(--kss-primary-color);
    color: #fff !important;
}

.KSS-order-card__action-btn--primary:hover {
    background: var(--kss-secondary-color, #8b0000);
    color: #fff !important;
}

/* ── Erneut bestellen (alt – rückwärtskompatibel) ─────────────────────── */
.KSS-order-card__reorder {
    display: flex;
    justify-content: flex-end;
    padding-top: 1rem;
}

.KSS-order-card__reorder-btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    background-color: var(--kss-primary-color);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background-color 0.2s;
}

.KSS-order-card__reorder-btn:hover {
    background-color: var(--kss-secondary-color, #8b0000);
    color: #fff !important;
}

/* ── Leer-Zustand ─────────────────────────────────────────────────────── */
.KSS-orders-empty {
    text-align: center;
    padding: 3rem 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}

.KSS-orders-empty i {
    font-size: 2.5rem;
    color: #ddd;
    display: block;
    margin-bottom: 1rem;
}

.KSS-orders-empty p {
    color: #777;
    margin-bottom: 1.5rem !important;
}

.KSS-orders-empty__btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    background-color: var(--kss-primary-color);
    color: #fff !important;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none !important;
}

/* ── Pagination ───────────────────────────────────────────────────────── */
.KSS-orders-pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.KSS-orders-pagination__btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s, border-color 0.2s;
}

.KSS-orders-pagination__btn:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
    color: #333;
    text-decoration: none;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media screen and (max-width: 600px) {
    .KSS-order-card__header {
        flex-wrap: wrap;
        padding: 1rem;
    }

    .KSS-order-card__right {
        width: 100%;
        justify-content: space-between;
        padding-top: 0.75rem;
        border-top: 1px solid #f0f0f0;
    }

    .KSS-order-card__products {
        padding: 1rem;
    }

    .KSS-orders-page__header {
        padding: 1rem;
    }
}

/* =============================================================================
   My Account – Adressen Card-Style (KSS)
   ============================================================================= */

/* ── Seiten-Header ────────────────────────────────────────────────────── */
.KSS-addresses__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}

.KSS-addresses__title {
    margin: 0 0 0.25rem 0 !important;
    font-size: 1.4rem !important;
    font-weight: 700;
    color: #111;
}

.KSS-addresses__desc {
    margin: 0 !important;
    color: #777;
    font-size: 0.9rem;
}

.KSS-addresses__new-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.25rem;
    background-color: var(--kss-primary-color);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 6px;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.2s;
}

.KSS-addresses__new-btn:hover {
    background-color: var(--kss-secondary-color, #8b0000);
    color: #fff !important;
}

/* ── Adress-Abschnitt ─────────────────────────────────────────────────── */
.KSS-address-section {
    margin-bottom: 2rem;
}

.KSS-address-section__title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #111;
    margin: 0 0 1rem 0 !important;
}

/* ── Karten-Grid ──────────────────────────────────────────────────────── */
.KSS-address-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

/* ── Adress-Karte ─────────────────────────────────────────────────────── */
.KSS-address-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Karten-Body */
.KSS-address-card__body {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.5rem 1rem;
    flex: 1;
    position: relative;
}

/* Location-Icon */
.KSS-address-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    align-self: flex-start;
}

.KSS-address-card__icon--red {
    background: rgba(180, 0, 0, 0.08);
    color: var(--kss-primary-color);
}

.KSS-address-card__icon--blue {
    background: rgba(33, 150, 243, 0.1);
    color: #2196f3;
}

/* Adress-Textblock */
.KSS-address-card__info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    padding-top: 0.1rem;
}

/* Standard-Badge */
.KSS-address-card__badge {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(40, 167, 69, 0.12);
    color: #28a745;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
}

.KSS-address-card__badge::before {
    content: '✓';
    font-weight: 700;
}

/* Name */
.KSS-address-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.2rem;
    display: block;
}

/* Adresszeilen */
.KSS-address-card__line {
    font-size: 0.9rem;
    color: #555;
    display: block;
    line-height: 1.5;
}

/* ── Karten-Footer ────────────────────────────────────────────────────── */
.KSS-address-card__footer {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0.75rem 1.5rem;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.KSS-address-card__action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--kss-primary-color) !important;
    text-decoration: none !important;
    transition: opacity 0.2s;
}

.KSS-address-card__action:hover {
    opacity: 0.75;
    text-decoration: none !important;
    color: var(--kss-primary-color) !important;
}

/* Trennstrich zwischen mehreren Aktionen (für Multi-Adress-Plugin) */
.KSS-address-card__action+.KSS-address-card__action {
    margin-left: 0.75rem;
    padding-left: 0.75rem;
    border-left: 1px solid #e0e0e0;
}

/* Löschen-Link rot */
.KSS-address-card__action--delete {
    color: #e74c3c !important;
}

.KSS-address-card__action--delete:hover {
    color: #c0392b !important;
}

/* ── Leere Karte ──────────────────────────────────────────────────────── */
.KSS-address-card--empty {
    min-height: 140px;
    border: 2px dashed #e0e0e0;
    box-shadow: none;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.KSS-address-card__add-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #999 !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: color 0.2s;
}

.KSS-address-card__add-link:hover {
    color: var(--kss-primary-color) !important;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media screen and (max-width: 600px) {
    .KSS-addresses__header {
        flex-wrap: wrap;
        padding: 1rem;
    }

    .KSS-address-cards {
        grid-template-columns: 1fr;
    }

    .KSS-address-card__badge {
        position: static;
        align-self: flex-start;
        margin-bottom: 0.5rem;
    }
}

/* =============================================================================
   Neue Adresse – Modal (KSS)
   ============================================================================= */

/* ── Scroll-Lock ──────────────────────────────────────────────────────── */
body.KSS-modal-open {
    overflow: hidden;
}

/* ── Overlay + Wrapper ────────────────────────────────────────────────── */
.KSS-modal-wrapper {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.KSS-modal-wrapper[hidden] {
    display: none !important;
}

.KSS-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

/* ── Modal-Box ────────────────────────────────────────────────────────── */
.KSS-modal {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* ── Header ───────────────────────────────────────────────────────────── */
.KSS-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.KSS-modal__title {
    margin: 0 !important;
    font-size: 1.15rem !important;
    font-weight: 700;
    color: #111;
}

.KSS-modal__close {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0.25rem;
    transition: color 0.2s;
}

.KSS-modal__close:hover {
    color: #111;
}

/* ── Formular ─────────────────────────────────────────────────────────── */
.KSS-address-form {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Zeile: Adresstyp-Auswahl */
.KSS-form__row--type {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.KSS-form__row--type .KSS-form__label {
    font-weight: 700;
    margin: 0;
    flex-basis: 100%;
}

/* 2-Spalten-Zeile */
.KSS-form__row--2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Formular-Gruppe */
.KSS-form__group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

/* Labels */
.KSS-form__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
}

.KSS-form__label abbr {
    color: var(--kss-primary-color);
    text-decoration: none;
    margin-left: 0.15rem;
}

/* Eingabefelder */
.KSS-form__input,
.KSS-form__select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #111;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.KSS-form__input:focus,
.KSS-form__select:focus {
    outline: none;
    border-color: var(--kss-primary-color);
    box-shadow: 0 0 0 3px rgba(var(--kss-primary-color-rgb), 0.12);
}

/* Radio-Labels */
.KSS-form__radio-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Fehlermeldung */
.KSS-form__error {
    background: rgba(231, 76, 60, 0.08);
    color: #c0392b;
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 6px;
    padding: 0.6rem 0.9rem;
    font-size: 0.875rem;
    margin: 0;
}

/* ── Footer (Buttons) ─────────────────────────────────────────────────── */
.KSS-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f0f0;
    margin-top: 0.5rem;
}

.KSS-modal__cancel {
    background: none;
    border: 1.5px solid #ddd;
    color: #555;
    padding: 0.65rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.KSS-modal__cancel:hover {
    border-color: #aaa;
    color: #111;
}

.KSS-modal__submit {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.4rem;
    background-color: var(--kss-primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
}

.KSS-modal__submit:hover {
    background-color: var(--kss-secondary-color, #8b0000);
}

.KSS-modal__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media screen and (max-width: 480px) {
    .KSS-form__row--2col {
        grid-template-columns: 1fr;
    }

    .KSS-modal__footer {
        flex-direction: column-reverse;
    }

    .KSS-modal__cancel,
    .KSS-modal__submit {
        width: 100%;
        justify-content: center;
    }
}

/* =============================================================================
   My Account – Kontodetails (KSS)
   ============================================================================= */

/* ── Seiten-Header ────────────────────────────────────────────────────── */
.KSS-account-details__header {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}

.KSS-account-details__title {
    margin: 0 0 0.25rem 0 !important;
    font-size: 1.4rem !important;
    font-weight: 700;
    color: #111;
}

.KSS-account-details__desc {
    margin: 0 !important;
    color: #777;
    font-size: 0.9rem;
}

/* ── Abschnitte ───────────────────────────────────────────────────────── */
.KSS-account-section {
    margin-bottom: 1.75rem;
}

.KSS-account-section__title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #111;
    margin: 0 0 0.85rem 0 !important;
}

/* ── Karte ────────────────────────────────────────────────────────────── */
.KSS-account-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

/* ── Formularzeilen ───────────────────────────────────────────────────── */
.KSS-account-row--2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.KSS-account-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.KSS-account-label {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #333 !important;
}

.KSS-account-label abbr {
    color: var(--kss-primary-color);
    text-decoration: none;
    margin-left: 0.1rem;
}

/* ── Input mit Icon ───────────────────────────────────────────────────── */
.KSS-account-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.KSS-account-input-wrap>i {
    position: absolute;
    left: 0.85rem;
    color: #aaa;
    font-size: 0.95rem;
    pointer-events: none;
}

.KSS-account-input {
    width: 100%;
    padding: 0.65rem 0.85rem 0.65rem 2.3rem;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #111;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

/* Kein Icon → kein extra Padding */
.KSS-account-input-wrap:not(:has(> i)) .KSS-account-input {
    padding-left: 0.85rem;
}

.KSS-account-input:focus {
    outline: none;
    border-color: var(--kss-primary-color);
    box-shadow: 0 0 0 3px rgba(var(--kss-primary-color-rgb), 0.12);
}

/* ── Submit-Button ────────────────────────────────────────────────────── */
.KSS-account-submit {
    padding-top: 0.25rem;
    border-top: 1px solid #f0f0f0;
}

.KSS-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.4rem;
    background-color: var(--kss-primary-color);
    color: #fff !important;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.KSS-account-btn:hover {
    background-color: var(--kss-secondary-color, #8b0000);
    color: #fff !important;
}

/* ── Konto-Aktionen Karte ─────────────────────────────────────────────── */
.KSS-account-actions-card {
    padding: 0;
    gap: 0;
    overflow: hidden;
}

.KSS-account-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.KSS-account-action-row:last-child {
    border-bottom: none;
}

.KSS-account-action-row__content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.KSS-account-action-row__content strong {
    font-size: 0.95rem;
    color: #111;
}

.KSS-account-action-row__content span {
    font-size: 0.85rem;
    color: #777;
}

.KSS-account-action-row__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--kss-primary-color) !important;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.KSS-account-action-row__link:hover {
    opacity: 0.75;
}

/* Danger-Zone */
.KSS-account-action-row--danger {
    background: rgba(231, 76, 60, 0.06);
}

.KSS-account-action-row--danger .KSS-account-action-row__content strong {
    color: #c0392b;
}

.KSS-account-action-row__link--danger {
    color: #c0392b !important;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media screen and (max-width: 600px) {

    .KSS-account-details__header,
    .KSS-account-card {
        padding: 1rem;
    }

    .KSS-account-row--2col {
        grid-template-columns: 1fr;
    }

    .KSS-account-action-row {
        flex-wrap: wrap;
        padding: 1rem;
        gap: 0.6rem;
    }
}

/* =============================================================================
   View Order – Bestelldetails-Seite (KSS)
   ============================================================================= */

/* ── Status-Header ────────────────────────────────────────────────────── */
.KSS-view-order__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    padding: 1.25rem 2rem;
    margin-bottom: 1.5rem;
}

.KSS-view-order__header-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.KSS-view-order__number {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111;
}

.KSS-view-order__date {
    font-size: 0.875rem;
    color: #777;
}

.KSS-view-order__status-badge {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    border: 1px solid;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ── Bestellnotizen ───────────────────────────────────────────────────── */
.KSS-view-order__notes {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    padding: 1.25rem 2rem;
    margin-bottom: 1.5rem;
}

.KSS-view-order__section-title {
    margin: 0 0 1rem 0 !important;
    font-size: 1rem !important;
    font-weight: 700;
    color: #111;
}

.KSS-view-order__note-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.KSS-view-order__note {
    padding: 0.75rem 1rem;
    background: #f9f9f9;
    border-left: 3px solid var(--kss-primary-color);
    border-radius: 0 6px 6px 0;
}

.KSS-view-order__note-date {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.25rem;
}

.KSS-view-order__note-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
}

/* ── PDF-Aktions-Buttons (oben, vor den Details) ──────────────────────── */
.KSS-view-order__pdf-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

/* ── Bestelldetails: Karte + Titel ────────────────────────────────────── */
.KSS-order-details {
    margin-bottom: 0;
}

.KSS-order-details__title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #111;
    margin: 0 0 0.85rem 0 !important;
}

.KSS-order-details__card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

/* ── Produkt-Tabellen-Header ──────────────────────────────────────────── */
.KSS-order-product-table__head {
    display: grid;
    grid-template-columns: 1fr 80px 120px;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: #f8f8f8;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
}

/* ── Einzelne Produktzeile ────────────────────────────────────────────── */
.KSS-order-product-row {
    display: grid;
    grid-template-columns: 56px 1fr 80px 120px;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.KSS-order-product-row:last-of-type {
    border-bottom: none;
}

.KSS-order-product-row__thumb {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.KSS-order-product-row__thumb img,
.KSS-order-product-row__img {
    width: 56px !important;
    height: 56px !important;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.KSS-order-product-row__name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111;
    line-height: 1.4;
}

.KSS-order-product-row__name a {
    color: inherit !important;
    text-decoration: none !important;
}

.KSS-order-product-row__name a:hover {
    color: var(--kss-primary-color) !important;
}

/* WC-Item-Meta (Varianten etc.) */
.KSS-order-product-row__name .wc-item-meta {
    margin: 0.25rem 0 0 0;
    padding: 0;
    list-style: none;
}

.KSS-order-product-row__name .wc-item-meta li {
    font-size: 0.8rem;
    color: #777;
    font-weight: 400;
}

.KSS-order-product-row__qty {
    font-size: 0.9rem;
    color: #555;
    text-align: center;
}

.KSS-order-product-row__price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
    text-align: right;
}

/* Kaufnotiz */
.KSS-order-product-row__note {
    padding: 0.5rem 1.5rem 0.75rem calc(56px + 1rem + 1.5rem);
    font-size: 0.85rem;
    color: #777;
    border-bottom: 1px solid #f0f0f0;
}

/* ── Summen-Block ─────────────────────────────────────────────────────── */
.KSS-order-totals {
    border-top: 2px solid #f0f0f0;
    background: #fafafa;
    padding: 0.25rem 0;
}

.KSS-order-totals__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.KSS-order-totals__row:last-child {
    border-bottom: none;
}

.KSS-order-totals__row--grand {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
    background: #fff;
}

.KSS-order-totals__row--grand .KSS-order-totals__value {
    color: var(--kss-primary-color);
}

.KSS-order-totals__row--note .KSS-order-totals__label {
    font-weight: 600;
}

.KSS-order-totals__label {
    font-weight: 600;
    color: inherit;
}

.KSS-order-totals__value {
    color: inherit;
}

/* ── Aktions-Buttons (z.B. "Erneut bestellen") ────────────────────────── */
.KSS-order-details__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1rem 1.5rem;
    border-top: 1px solid #f0f0f0;
    background: #fff;
}

/* ── Adress-Grid ──────────────────────────────────────────────────────── */
.KSS-order-customer-details {
    margin-top: 0;
}

.KSS-order-address-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.KSS-order-address-grid--2col {
    grid-template-columns: 1fr 1fr;
}

.KSS-order-address-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    padding: 1.25rem 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.KSS-order-address-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.KSS-order-address-card__icon--red {
    background: rgba(180, 0, 0, 0.08);
    color: var(--kss-primary-color);
}

.KSS-order-address-card__icon--blue {
    background: rgba(33, 150, 243, 0.1);
    color: #2196f3;
}

.KSS-order-address-card__body {
    flex: 1;
}

.KSS-order-address-card__type {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.5rem;
}

.KSS-order-address-card__address {
    font-style: normal;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

.KSS-order-address-card__meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: #777;
    margin: 0.4rem 0 0 0;
}

.KSS-order-address-card__meta i {
    color: #aaa;
    font-size: 0.85rem;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media screen and (max-width: 680px) {
    .KSS-view-order__header {
        padding: 1rem;
    }

    .KSS-order-product-table__head {
        display: none;
    }

    .KSS-order-product-row {
        grid-template-columns: 48px 1fr;
        grid-template-rows: auto auto;
        padding: 0.85rem 1rem;
    }

    .KSS-order-product-row__thumb {
        grid-row: span 2;
        width: 48px;
        height: 48px;
    }

    .KSS-order-product-row__thumb img,
    .KSS-order-product-row__img {
        width: 48px !important;
        height: 48px !important;
    }

    .KSS-order-product-row__qty,
    .KSS-order-product-row__price {
        text-align: left;
        font-size: 0.85rem;
    }

    .KSS-order-address-grid--2col {
        grid-template-columns: 1fr;
    }

    .KSS-view-order__pdf-actions {
        flex-direction: column;
    }
}

.KSS-warenkorb-count-row {
    gap: 0.25rem;
}

/* =============================================================================
   Warenkorb – Cart Layout (KSS)
   ============================================================================= */

/* ── Haupt-Layout: 2 Spalten ──────────────────────────────────────────── */
.KSS-cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: flex-start;
}

/* ── Linke Spalte ─────────────────────────────────────────────────────── */
.KSS-cart-items-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ── Einzelne Artikel-Karte ───────────────────────────────────────────── */
.KSS-cart-item {
    position: relative;
    display: grid;
    grid-template-columns: 120px 1fr 36px;
    gap: 1.25rem;
    align-items: flex-start;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    padding: 1.25rem;
    transition: box-shadow 0.2s;
    margin-bottom: 2rem;
}

.KSS-cart-item:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.11);
}

/* ── Produktbild ──────────────────────────────────────────────────────── */
.KSS-cart-item__image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f2f1ef;
}

.KSS-cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.KSS-cart-item__image a {
    display: block;
    width: 100%;
    height: 100%;
}

/* ── Produktinfos ─────────────────────────────────────────────────────── */
.KSS-cart-item__details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}

.KSS-cart-item__meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Produktname */
.KSS-cart-item__name {
    margin: 0 0 0.15rem 0 !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #111;
}

.KSS-cart-item__name a {
    color: inherit !important;
    text-decoration: none !important;
}

.KSS-cart-item__name a:hover {
    color: var(--kss-primary-color) !important;
}

/* Art.-Nr. */
.KSS-cart-item__sku {
    margin: 0 !important;
    font-size: 0.85rem;
    color: #888;
    line-height: 1.4;
}

/* Lager-Badge */
.KSS-cart-item__stock {
    margin: 0.2rem 0 0 0 !important;
}

.KSS-cart-item__stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.KSS-cart-item__stock-badge--in-stock {
    color: #2a9d2a;
}

.KSS-cart-item__stock-badge--out-of-stock {
    color: #e04040;
}

/* ── Mengen + Preis Zeile ─────────────────────────────────────────────── */
.KSS-cart-item__qty-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Mengen-Wrapper */
.KSS-cart-item__qty-wrapper {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.KSS-qty-label {
    font-size: 0.9rem;
    color: #555;
    white-space: nowrap;
}

/* Mengen-Steuerung: WooCommerce quantity input */
.KSS-qty-control .quantity {
    display: flex;
    align-items: center;
}

.KSS-qty-control .quantity input[type=number] {
    width: 52px !important;
    text-align: center;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    padding: 0.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111;
    appearance: textfield;
    -moz-appearance: textfield;
    background: #fafafa;
}

.KSS-qty-control .quantity input[type=number]::-webkit-inner-spin-button,
.KSS-qty-control .quantity input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ── Preis-Block ──────────────────────────────────────────────────────── */
.KSS-cart-item__price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
}

.KSS-cart-item__unit-price {
    font-size: 0.875rem;
    color: #555;
    white-space: nowrap;
}

.KSS-cart-item__unit-price bdi {
    color: #555;
}

.KSS-cart-item__unit-price .woocommerce-Price-amount {
    color: var(--kss-primary-color, #C0001C);
}

.KSS-cart-item__subtotal {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--kss-primary-color, #C0001C);
    white-space: nowrap;
}

.KSS-cart-item__subtotal .woocommerce-Price-amount,
.KSS-cart-item__subtotal bdi {
    color: var(--kss-primary-color, #C0001C);
    font-size: inherit;
    font-weight: inherit;
}

/* ── Löschen-Button ───────────────────────────────────────────────────── */
.KSS-cart-item__remove {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0.1rem;
}

.KSS-remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--kss-primary-color, #C0001C) !important;
    text-decoration: none !important;
    opacity: 0.75;
    transition: opacity 0.2s, transform 0.15s;
    line-height: 1;
}

.KSS-remove-btn:hover {
    opacity: 1;
    transform: scale(1.15);
    color: var(--kss-primary-color, #C0001C) !important;
}

/* ── Aktionen: Gutschein + Aktualisieren ──────────────────────────────── */
.KSS-cart-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
}

.KSS-coupon {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.KSS-coupon .input-text {
    flex: 1;
    padding: 0.55rem 0.85rem;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #111;
    background: #fff;
    min-width: 0;
    transition: border-color 0.2s;
}

.KSS-coupon .input-text:focus {
    outline: none;
    border-color: var(--kss-primary-color);
}

.KSS-btn-secondary {
    padding: 0.55rem 1rem;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.KSS-btn-secondary:hover {
    border-color: var(--kss-primary-color);
    color: var(--kss-primary-color);
}

.KSS-btn-update {
    padding: 0.55rem 1.25rem;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.KSS-btn-update:hover {
    border-color: var(--kss-primary-color);
    color: var(--kss-primary-color);
}

/* ── Weiter einkaufen ─────────────────────────────────────────────────── */
.KSS-cart-continue {
    margin-top: 0.5rem;
}

.KSS-cart-continue__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--kss-primary-color, #C0001C) !important;
    text-decoration: none !important;
    transition: opacity 0.2s;
}

.KSS-cart-continue__link:hover {
    opacity: 0.75;
    text-decoration: none !important;
}

/* ── Rechte Spalte: Zusammenfassung ───────────────────────────────────── */
.KSS-cart-summary-col {
    position: sticky;
    top: 100px;
}

/* ── Totals-Box ───────────────────────────────────────────────────────── */
.KSS-cart-totals {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.KSS-cart-totals__title {
    margin: 0 !important;
    font-size: 1.25rem !important;
    font-weight: 700;
    color: #111;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

/* ── Zeilen ───────────────────────────────────────────────────────────── */
.KSS-cart-totals__rows {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.KSS-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.95rem;
    color: #444;
}

.KSS-totals-row:last-child {
    border-bottom: none;
}

.KSS-totals-row__label {
    font-weight: 500;
    color: #555;
}

.KSS-totals-row__value {
    font-weight: 600;
    color: #222;
    text-align: right;
}

.KSS-totals-row__value .woocommerce-Price-amount,
.KSS-totals-row__value bdi {
    color: inherit;
}

/* Versand-Hinweis */
.KSS-totals-free-shipping-hint {
    margin: 0.25rem 0 0 0 !important;
    font-size: 0.8rem;
    color: #888;
    text-align: right;
}

/* Discount */
.KSS-totals-row--discount .KSS-totals-row__value {
    color: #2a9d2a;
}

/* Gesamtzeile */
.KSS-totals-row--total {
    border-top: 2px solid #f0f0f0;
    padding-top: 1rem;
    margin-top: 0.25rem;
    border-bottom: none;
}

.KSS-totals-row--total .KSS-totals-row__label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
}

.KSS-totals-row__value--total {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--kss-primary-color, #C0001C) !important;
}

.KSS-totals-row__value--total .woocommerce-Price-amount,
.KSS-totals-row__value--total bdi {
    color: var(--kss-primary-color, #C0001C) !important;
    font-size: inherit;
    font-weight: inherit;
}

/* ── Zur Kasse Button ─────────────────────────────────────────────────── */
.KSS-checkout-btn-wrap .checkout-button,
.KSS-checkout-btn-wrap .wc-forward {
    display: block !important;
    width: 100% !important;
    text-align: center;
    padding: 0.85rem 1.5rem !important;
    background-color: var(--kss-primary-color, #C0001C) !important;
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.2s !important;
    box-sizing: border-box !important;
    letter-spacing: 0.01em;
}

.KSS-checkout-btn-wrap .checkout-button:hover,
.KSS-checkout-btn-wrap .wc-forward:hover {
    background-color: var(--kss-secondary-color, #8b0000) !important;
    color: #fff !important;
}

/* ── Zahlungsmethoden ─────────────────────────────────────────────────── */
.KSS-payment-methods {
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
}

.KSS-payment-methods__label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    margin: 0 0 0.6rem 0 !important;
}

.KSS-payment-methods__badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.KSS-payment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.75rem;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    background: #fafafa;
    letter-spacing: 0.01em;
}

/* ── Versandhinweis-Box ───────────────────────────────────────────────── */
.KSS-shipping-info {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: #f8f7f5;
    border-radius: 8px;
    padding: 0.85rem 1rem;
}

.KSS-shipping-info svg {
    flex-shrink: 0;
    color: var(--kss-primary-color, #C0001C);
    margin-top: 0.1rem;
}

.KSS-shipping-info p {
    margin: 0 !important;
    font-size: 0.82rem;
    color: #555;
    line-height: 1.5;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media screen and (max-width: 1100px) {
    .KSS-cart-layout {
        grid-template-columns: 1fr 300px;
        gap: 1.5rem;
    }
}

@media screen and (max-width: 860px) {
    .KSS-cart-layout {
        grid-template-columns: 1fr;
    }

    .KSS-cart-summary-col {
        position: static;
    }
}

@media screen and (max-width: 640px) {
    .KSS-cart-item {
        grid-template-columns: 80px 1fr 32px;
        gap: 1rem;
        padding: 1rem;
    }

    .KSS-cart-item__image {
        width: 80px;
        height: 80px;
    }

    .KSS-cart-item__qty-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .KSS-cart-item__price-block {
        align-items: flex-start;
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
    }

    .KSS-cart-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .KSS-coupon {
        flex-direction: column;
    }

    .KSS-btn-update,
    .KSS-btn-secondary {
        width: 100%;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .KSS-cart-item {
        grid-template-columns: 70px 1fr;
        grid-template-rows: auto auto;
    }

    .KSS-cart-item__remove {
        grid-column: 2;
        grid-row: 1;
        justify-content: flex-end;
    }

    .KSS-cart-item__details {
        grid-column: 2;
    }

    .KSS-cart-item__image {
        grid-row: 1 / 3;
        width: 70px;
        height: 70px;
    }
}


/* =============================================================================
   Checkout-Wizard – 4-Step Layout (KSS)
   ============================================================================= */

/* ── Checkout-Seite: WooCommerce-Container – alignfull (volle Breite) ── */
.woocommerce-checkout .woocommerce {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    box-sizing: border-box !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   STEP-PROGRESS HEADER
══════════════════════════════════════════════════════════════════════════ */
.KSS-co-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 1.5rem;
    margin-bottom: 2rem;
    gap: 0;
    background-color: #fff;
}

/* Schritt-Element */
.KSS-co-progress__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: default;
    flex-shrink: 0;
}

.KSS-co-progress__step.is-done {
    cursor: pointer;
}

/* Icon-Kreis */
.KSS-co-progress__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    color: #aaa;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
    position: relative;
    z-index: 1;
}

.KSS-co-progress__step.is-active .KSS-co-progress__icon {
    background: var(--kss-primary-color, #C0001C);
    color: #fff;
    box-shadow: 0 4px 16px rgba(192, 0, 28, 0.35);
}

.KSS-co-progress__step.is-done .KSS-co-progress__icon {
    background: var(--kss-primary-color, #C0001C);
    color: #fff;
    opacity: 0.7;
}

/* Label */
.KSS-co-progress__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #aaa;
    white-space: nowrap;
    transition: color 0.3s;
}

.KSS-co-progress__step.is-active .KSS-co-progress__label,
.KSS-co-progress__step.is-done .KSS-co-progress__label {
    color: var(--kss-primary-color, #C0001C);
}

/* Trennlinie */
.KSS-co-progress__line {
    flex: 1;
    max-width: 120px;
    height: 2px;
    background: #ddd;
    margin: 0 0.5rem;
    margin-bottom: 1.5rem;
    /* visuell in Höhe der Icons */
    transition: background-color 0.3s;
}

.KSS-co-progress__line.is-done {
    background: var(--kss-primary-color, #C0001C);
    opacity: 0.5;
}


/* ══════════════════════════════════════════════════════════════════════════
   CHECKOUT LAYOUT (2 Spalten)
══════════════════════════════════════════════════════════════════════════ */
.KSS-co-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    background-color: #f5f5f5;
}


/* ══════════════════════════════════════════════════════════════════════════
   STEP PANELS
══════════════════════════════════════════════════════════════════════════ */
.KSS-co-step {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    animation: KSSFadeIn 0.25s ease;
}

@keyframes KSSFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.KSS-co-step[hidden] {
    display: none !important;
}

/* Schritt-Kopf */
.KSS-co-step__head {
    padding: 1.75rem 2rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
}

.KSS-co-step__title {
    margin: 0 0 0.25rem 0 !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #111;
    line-height: 1.2 !important;
}

.KSS-co-step__subtitle {
    margin: 0 !important;
    font-size: 0.9rem;
    color: #888;
}

/* Schritt-Body */
.KSS-co-step__body {
    padding: 1.5rem 2rem;
}

/* Schritt-Navigation */
.KSS-co-step__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    gap: 1rem;
}


/* ══════════════════════════════════════════════════════════════════════════
   CHECKOUT BUTTONS
══════════════════════════════════════════════════════════════════════════ */
.KSS-co-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
    text-decoration: none !important;
    white-space: nowrap;
    line-height: 1;
}

/* Primary (Weiter) – rot ausgefüllt */
.KSS-co-btn--primary {
    background: var(--kss-primary-color, #C0001C);
    border-color: var(--kss-primary-color, #C0001C);
    color: #fff !important;
}

.KSS-co-btn--primary:hover {
    background: var(--kss-secondary-color, #8b0000);
    border-color: var(--kss-secondary-color, #8b0000);
    color: #fff !important;
}

/* Ghost (Zurück) – Outline */
.KSS-co-btn--ghost {
    background: transparent;
    border-color: transparent;
    color: var(--kss-primary-color, #C0001C) !important;
    padding-left: 0;
}

.KSS-co-btn--ghost:hover {
    color: var(--kss-secondary-color, #8b0000) !important;
}

/* Submit (Jetzt bestellen) – dunkelrot/grün je nach Design */
.KSS-co-btn--submit {
    background: var(--kss-primary-color, #C0001C);
    border-color: var(--kss-primary-color, #C0001C);
    color: #fff !important;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    flex: 1;
    justify-content: center;
}

.KSS-co-btn--submit:hover {
    background: var(--kss-secondary-color, #8b0000);
    border-color: var(--kss-secondary-color, #8b0000);
    color: #fff !important;
}

.KSS-co-btn--submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* ══════════════════════════════════════════════════════════════════════════
   STEP 1 – ADRESSE: WooCommerce-Felder stylen
══════════════════════════════════════════════════════════════════════════ */

/* Label */
.woocommerce-checkout .KSS-co-step__body .form-row label,
.woocommerce-checkout .KSS-co-step__body label {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 0.3rem !important;
    display: block;
}

/* Input & Select */
.woocommerce-checkout .KSS-co-step__body input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.woocommerce-checkout .KSS-co-step__body select,
.woocommerce-checkout .KSS-co-step__body textarea {
    width: 100% !important;
    padding: 0.65rem 0.9rem !important;
    border: 1.5px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 0.95rem !important;
    color: #111 !important;
    background: #fff !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.woocommerce-checkout .KSS-co-step__body input:focus,
.woocommerce-checkout .KSS-co-step__body select:focus,
.woocommerce-checkout .KSS-co-step__body textarea:focus {
    outline: none !important;
    border-color: var(--kss-primary-color, #C0001C) !important;
    box-shadow: 0 0 0 3px rgba(192, 0, 28, 0.08) !important;
}

/* Billing-Felder: CSS-Grid-Layout */
.woocommerce-checkout .KSS-co-step__body .woocommerce-billing-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.5rem;
}

/* Vorname / Nachname – je eine Spalte (Standard WC: form-row-first/last) */
.woocommerce-checkout .KSS-co-step__body .form-row-first {
    grid-column: 1;
    width: auto !important;
    float: none;
    margin-right: 0 !important;
    clear: none;
}

.woocommerce-checkout .KSS-co-step__body .form-row-last {
    grid-column: 2;
    width: auto !important;
    float: none;
    clear: none;
}

/* Firma – volle Breite */
.woocommerce-checkout .KSS-co-step__body #billing_company_field {
    grid-column: 1 / -1;
}

/* Land / Region – volle Breite */
.woocommerce-checkout .KSS-co-step__body #billing_country_field {
    grid-column: 1 / -1;
}

/* Straße + Hausnummer (address_1 + address_2) nebeneinander */
.woocommerce-checkout .KSS-co-step__body #billing_address_1_field {
    grid-column: 1;
}

.woocommerce-checkout .KSS-co-step__body #billing_address_2_field {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* PLZ + Stadt nebeneinander */
.woocommerce-checkout .KSS-co-step__body #billing_postcode_field {
    grid-column: 1;
}

.woocommerce-checkout .KSS-co-step__body #billing_city_field {
    grid-column: 2;
}

/* Telefon – volle Breite */
.woocommerce-checkout .KSS-co-step__body #billing_phone_field {
    grid-column: 1 / -1;
}

/* E-Mail – volle Breite */
.woocommerce-checkout .KSS-co-step__body #billing_email_field {
    grid-column: 1 / -1;
}

/* form-row-wide (Fallback für andere Felder) */
.woocommerce-checkout .KSS-co-step__body .form-row-wide {
    grid-column: 1 / -1;
    clear: none;
    width: auto !important;
    float: none;
}

/* Abschnitt-Überschriften ausblenden (wir haben eigene Schritt-Titel) */
.woocommerce-checkout .KSS-co-step__body .woocommerce-billing-fields>h3,
.woocommerce-checkout .KSS-co-step__body .woocommerce-shipping-fields>h3,
.woocommerce-checkout .KSS-co-step__body .woocommerce-additional-fields>h3 {
    display: none !important;
}

/* "An andere Adresse liefern?" Checkbox-Block */
.woocommerce-checkout .KSS-co-step__body #ship-to-different-address {
    margin: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Fehler-Highlight */
.woocommerce-checkout .KSS-field-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

.KSS-field-error-msg {
    font-size: 0.8rem;
    color: #e74c3c;
    display: block;
    margin-top: 0.2rem;
}

.KSS-step-error {
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.25);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #c0392b;
    margin-bottom: 1rem;
}


/* ══════════════════════════════════════════════════════════════════════════
   STEP 2 – VERSANDOPTIONEN
══════════════════════════════════════════════════════════════════════════ */
.KSS-co-shipping-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.KSS-co-shipping-opt {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.1s;
    background: #fff;
    position: relative;
}

.KSS-co-shipping-opt:hover {
    border-color: var(--kss-primary-color, #C0001C);
}

.KSS-co-shipping-opt.is-selected {
    border-color: var(--kss-primary-color, #C0001C);
    box-shadow: 0 0 0 1px var(--kss-primary-color, #C0001C);
}

/* Verstecktes natives Radio */
.KSS-co-shipping-opt input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Custom Radio-Dot */
.KSS-co-shipping-opt__dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.2s;
}

.KSS-co-shipping-opt.is-selected .KSS-co-shipping-opt__dot {
    border-color: var(--kss-primary-color, #C0001C);
}

.KSS-co-shipping-opt.is-selected .KSS-co-shipping-opt__dot::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--kss-primary-color, #C0001C);
}

.KSS-co-shipping-opt__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.KSS-co-shipping-opt__name {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
}

.KSS-co-shipping-opt__meta {
    font-size: 0.85rem;
    color: #888;
}

.KSS-co-shipping-opt__price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--kss-primary-color, #C0001C);
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}


/* ══════════════════════════════════════════════════════════════════════════
   STEP 3 – ZAHLUNGSART: WooCommerce #payment stylen
══════════════════════════════════════════════════════════════════════════ */

/* #payment-Grundstruktur »als Karten« */
/* WooCommerce setzt #payment manchmal auf display:none – override wenn Step sichtbar */
.KSS-co-step--payment:not([hidden]) #payment {
    display: block !important;
}

.KSS-co-step--payment #payment {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.KSS-co-step--payment #payment .wc_payment_methods {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
}

/* Einzelne Zahlungs-Karte */
.KSS-co-step--payment #payment .wc_payment_method {
    border: 2px solid #e8e8e8 !important;
    border-radius: 8px !important;
    padding: 0 !important;
    margin: 0;
    margin-bottom: 1rem;
    background: #fff !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    overflow: hidden !important;
}

.KSS-co-step--payment #payment .wc_payment_method:hover {
    border-color: var(--kss-primary-color, #C0001C) !important;
}

.KSS-co-step--payment #payment .wc_payment_method.is-selected {
    border-color: var(--kss-primary-color, #C0001C) !important;
    box-shadow: 0 0 0 1px var(--kss-primary-color, #C0001C) !important;
}

/* Karten-Label-Zeile */
.KSS-co-step--payment #payment .wc_payment_method>label:first-of-type {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 1.1rem 1.25rem !important;
    cursor: pointer !important;
    margin: 0 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #111 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Native Radio verstecken */
.KSS-co-step--payment #payment .wc_payment_method input[type="radio"] {
    accent-color: var(--kss-primary-color, #C0001C) !important;
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
}

/* Payment-Box (Felder nach Auswahl) */
.KSS-co-step--payment #payment .payment_box {
    padding: 1rem 1.25rem !important;
    border-top: 1px solid #f0f0f0 !important;
    background: #fafafa !important;
}

.KSS-co-step--payment #payment .payment_box p {
    margin: 0 !important;
    font-size: 0.875rem !important;
    color: #555 !important;
    line-height: 1.5;
}

/* .place-order (Terms + Submit) in Step 3 VERSTECKT – wird per JS zu Step 4 verschoben */
.KSS-co-step--payment #payment .place-order,
.KSS-co-step--payment #payment .form-row.place-order,
#KSS-place-order-slot .place-order,
#KSS-place-order-slot .form-row.place-order {
    display: none !important;
}

/* Wenn .place-order sichtbar in #KSS-place-order-slot gezeigt werden soll (via JS):
   Der eigentliche Submit findet via #KSS-submit-btn statt. */


/* ══════════════════════════════════════════════════════════════════════════
   STEP 4 – REVIEW: Zusammenfassung-Karten
══════════════════════════════════════════════════════════════════════════ */
.KSS-co-step--review .KSS-co-step__body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.KSS-review-card {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 1.1rem 1.25rem;
    background: #fcfcfc;
}

/* Bestellhinweis-Textarea im Review-Step */
#KSS-review-notes .KSS-review-card__body textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    background: #fff;
}

#KSS-review-notes .KSS-review-card__body textarea:focus {
    outline: none;
    border-color: var(--kss-primary-color, #C0001C);
    box-shadow: 0 0 0 3px rgba(192, 0, 28, 0.08);
}

.KSS-review-card__title {
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    margin: 0 0 0.6rem 0 !important;
}

.KSS-review-line {
    margin: 0 0 0.2rem 0 !important;
    font-size: 0.925rem;
    color: #333;
    line-height: 1.5;
}

.KSS-review-line:last-child {
    margin-bottom: 0 !important;
}

/* WooCommerce Terms-Wrapper in Step 4 */
#KSS-place-order-slot .woocommerce-terms-and-conditions-wrapper {
    display: block;
}

/* Terms-Checkbox in Step 4 stylen */
.woocommerce-checkout #KSS-place-order-slot .form-row.validate-required {
    margin: 0 0 1rem 0;
    padding: 1rem 1.25rem;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
}

.woocommerce-checkout #KSS-place-order-slot .woocommerce-form__label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.6rem !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: #333 !important;
    cursor: pointer !important;
    line-height: 1.5;
}

.woocommerce-checkout #KSS-place-order-slot .woocommerce-form__input-checkbox {
    margin-top: 0.15rem !important;
    accent-color: var(--kss-primary-color, #C0001C) !important;
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0;
}

.woocommerce-checkout #KSS-place-order-slot a {
    color: var(--kss-primary-color, #C0001C) !important;
    font-weight: 600;
}

/* Beschreibungstext (Datenschutz etc.) */
.woocommerce-checkout #KSS-place-order-slot .woocommerce-privacy-policy-text {
    font-size: 0.82rem;
    color: #888;
    margin: 0 0 0.75rem 0 !important;
}


/* ══════════════════════════════════════════════════════════════════════════
   RECHTE SIDEBAR: BESTELLÜBERSICHT
══════════════════════════════════════════════════════════════════════════ */
.KSS-co-sidebar {
    position: sticky;
    top: 100px;
}

.KSS-co-summary {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.KSS-co-summary__title {
    font-size: 1.15rem !important;
    font-weight: 700;
    color: #111;
    margin: 0 !important;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

/* Produktliste */
.KSS-co-summary__products {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.KSS-co-summary__item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 0.75rem;
    align-items: flex-start;
}

.KSS-co-summary__thumb {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    background: #f2f1ef;
    flex-shrink: 0;
}

.KSS-co-summary__thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.KSS-co-summary__info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.KSS-co-summary__name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
}

.KSS-co-summary__qty {
    font-size: 0.82rem;
    color: #888;
}

.KSS-co-summary__price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--kss-primary-color, #C0001C);
}

.KSS-co-summary__price .woocommerce-Price-amount,
.KSS-co-summary__price bdi {
    color: var(--kss-primary-color, #C0001C);
}

/* Trennlinie */
.KSS-co-summary__divider {
    height: 1px;
    background: #f0f0f0;
}

/* Betragszeilen */
.KSS-co-summary__totals {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.KSS-co-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: #555;
    border-bottom: 1px solid #f8f8f8;
}

.KSS-co-total-row:last-child {
    border-bottom: none;
}

.KSS-co-total-row--grand {
    padding-top: 0.75rem;
    margin-top: 0.25rem;
    border-top: 2px solid #f0f0f0;
    border-bottom: none;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
}

.KSS-co-grand-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--kss-primary-color, #C0001C);
}

.KSS-co-grand-total .woocommerce-Price-amount,
.KSS-co-grand-total bdi {
    color: var(--kss-primary-color, #C0001C);
    font-size: inherit;
    font-weight: inherit;
}

/* SSL-Badge */
.KSS-co-ssl {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(40, 167, 69, 0.07);
    border-radius: 8px;
    padding: 0.65rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #28a745;
}

.KSS-co-ssl svg {
    flex-shrink: 0;
    color: #28a745;
}


/* ══════════════════════════════════════════════════════════════════════════
   WOOCOMMERCE-GERMANIZED KOMPATIBILITÄT
══════════════════════════════════════════════════════════════════════════ */

/* GD injizierte Checkboxen (Datenschutz, AGB) auch in anderen Steps stylen */
.woocommerce-checkout .KSS-co-step__body .woocommerce-gzd-legal-checkbox-text label,
.woocommerce-checkout #KSS-place-order-slot .woocommerce-gzd-legal-checkbox-text label {
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}

.woocommerce-checkout .KSS-co-step__body .woocommerce-gzd-checkbox-placeholder label {
    font-size: 0.875rem !important;
}


/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════════════ */
@media screen and (max-width: 1100px) {
    .KSS-co-layout {
        grid-template-columns: 1fr 300px;
        gap: 1.5rem;
    }
}

@media screen and (max-width: 860px) {
    .KSS-co-layout {
        grid-template-columns: 1fr;
    }

    .KSS-co-sidebar {
        position: static;
        order: -1;
        /* Sidebar oben auf Mobile */
    }

    .KSS-co-progress__line {
        max-width: 48px;
    }
}

@media screen and (max-width: 640px) {
    .KSS-co-progress {
        padding: 1.25rem 0.5rem 1rem;
    }

    .KSS-co-progress__icon {
        width: 42px;
        height: 42px;
    }

    .KSS-co-progress__label {
        font-size: 0.72rem;
    }

    .KSS-co-step__head,
    .KSS-co-step__body,
    .KSS-co-step__nav {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .woocommerce-checkout .KSS-co-step__body .woocommerce-billing-fields__field-wrapper {
        grid-template-columns: 1fr;
    }

    .woocommerce-checkout .KSS-co-step__body .form-row-first,
    .woocommerce-checkout .KSS-co-step__body .form-row-last,
    .woocommerce-checkout .KSS-co-step__body #billing_address_1_field,
    .woocommerce-checkout .KSS-co-step__body #billing_address_2_field,
    .woocommerce-checkout .KSS-co-step__body #billing_postcode_field,
    .woocommerce-checkout .KSS-co-step__body #billing_city_field {
        grid-column: 1 / -1 !important;
    }

    .KSS-co-step__nav {
        flex-direction: column;
        gap: 0.75rem;
    }

    .KSS-co-btn--primary,
    .KSS-co-btn--submit {
        width: 100%;
        justify-content: center;
    }

    .KSS-co-btn--ghost {
        padding-left: 0;
    }
}

@media screen and (max-width: 480px) {
    .KSS-co-progress__line {
        max-width: 24px;
        margin: 0 0.25rem;
        margin-bottom: 1.5rem;
    }

    .KSS-co-progress__label {
        display: none;
        /* nur Icons auf sehr kleinen Screens */
    }

    .KSS-co-summary {
        padding: 1rem;
    }

    .KSS-co-step__head {
        padding: 1.25rem 1rem 1rem;
    }

    .KSS-co-step__title {
        font-size: 1.2rem !important;
    }
}

.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals {
    width: unset;
}

.KSS-product-categorie-arciv-panel .wp-block-columns {
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.wp-block-query-pagination-previous,
.wp-block-query-pagination-next,
.page-numbers {
    border: 1px solid #ddd;
    background: transparent;
    padding: 1rem;
    font-weight: 500;
}

.page-numbers.current {
    background: var(--kss-secondary-color);
    color: #fff;
}

.KSS-product-filter-sep {
    width: 100%;
}

.KSS-shop-products-categories  .pre-filter-category {
    border-top: unset;
}

/* =============================================================================
   Suchergebnisse – Produktsammlung (.KSS-produktssammlung-search-results)
   ============================================================================= */

/* ---- Layout: Ergebnis-Info & Sorting ---- */
.KSS-produktssammlung-search-results .wp-block-woocommerce-catalog-sorting {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
}

/* ---- Card Base ---- */
.KSS-produktssammlung-search-results .wc-block-product-template__responsive .wc-block-product {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    width: 100%;
    max-width: unset;
}

.KSS-produktssammlung-search-results .wc-block-product-template__responsive .wc-block-product:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 12px 32px rgba(192, 0, 28, 0.14);
    transform: translateY(-3px);
}

/* ---- Roter Akzent-Strich oben ---- */
.KSS-produktssammlung-search-results .wc-block-product-template__responsive .wc-block-product::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #C0001C;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.KSS-produktssammlung-search-results .wc-block-product-template__responsive .wc-block-product:hover::before {
    transform: scaleX(1);
}

/* ---- Bild-Bereich ---- */
.KSS-produktssammlung-search-results .wc-block-product-template__responsive .wc-block-product .wc-block-components-product-image,
.KSS-produktssammlung-search-results .wc-block-product-template__responsive .wc-block-product div[data-block-name="woocommerce/product-image"] {
    background-color: #f5f5f5;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.75rem;
}

.KSS-produktssammlung-search-results .wc-block-product-template__responsive .wc-block-product .wc-block-components-product-image img,
.KSS-produktssammlung-search-results .wc-block-product-template__responsive .wc-block-product div[data-block-name="woocommerce/product-image"] img:not(#fakeID) {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    aspect-ratio: unset !important;
    transition: transform 0.4s ease;
}

.KSS-produktssammlung-search-results .wc-block-product-template__responsive .wc-block-product:hover .wc-block-components-product-image img,
.KSS-produktssammlung-search-results .wc-block-product-template__responsive .wc-block-product:hover div[data-block-name="woocommerce/product-image"] img {
    transform: scale(1.05);
}

/* ---- Produkttitel ---- */
.KSS-produktssammlung-search-results .wc-block-product-template__responsive .wc-block-product .wp-block-post-title {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin: 0.75rem 1rem 0.25rem !important;
    text-align: left !important;
}

.KSS-produktssammlung-search-results .wc-block-product-template__responsive .wc-block-product .wp-block-post-title a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.KSS-produktssammlung-search-results .wc-block-product-template__responsive .wc-block-product .wp-block-post-title a:hover {
    color: #C0001C;
}

/* ---- Preis ---- */
.KSS-produktssammlung-search-results .wc-block-product-template__responsive .wc-block-product .wc-block-components-product-price {
    font-size: 0.82rem;
    font-weight: 600;
    color: #111;
    margin: 0.25rem 1rem 0;
}

/* ---- SKU / Meta ---- */
.KSS-produktssammlung-search-results .wc-block-product-template__responsive .wc-block-product .wc-block-components-product-sku,
.KSS-produktssammlung-search-results .wc-block-product-template__responsive .wc-block-product .wc-block-components-product-meta {
    font-size: 0.72rem;
    color: #999;
    margin: 0.15rem 1rem 0;
}

/* ---- Button ---- */
.KSS-produktssammlung-search-results .wc-block-product-template__responsive .wc-block-product .wc-block-components-product-button__button,
.KSS-produktssammlung-search-results .wc-block-product-template__responsive .wc-block-product a.wp-block-button__link {
    display: block !important;
    width: calc(100% - 2rem) !important;
    margin: 0.75rem 1rem 1rem !important;
    padding: 0.55rem 1rem !important;
    background-color: #C0001C !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.2s ease !important;
    box-sizing: border-box !important;
}

.KSS-produktssammlung-search-results .wc-block-product-template__responsive .wc-block-product .wc-block-components-product-button__button:hover,
.KSS-produktssammlung-search-results .wc-block-product-template__responsive .wc-block-product a.wp-block-button__link:hover {
    background-color: #9a0016 !important;
}

/* "Warenkorb anzeigen"-Link nach Add-to-Cart ausblenden */
.KSS-produktssammlung-search-results .wc-block-product .added_to_cart {
    display: none !important;
}

/* ---- Responsive ---- */
@media screen and (max-width: 768px) {
    .KSS-produktssammlung-search-results .wc-block-product-template__responsive .wc-block-product .wp-block-post-title {
        font-size: 0.75rem !important;
    }
}

@media screen and (max-width: 480px) {
    .KSS-produktssammlung-search-results .wc-block-product-template__responsive .wc-block-product .wc-block-components-product-button__button,
    .KSS-produktssammlung-search-results .wc-block-product-template__responsive .wc-block-product a.wp-block-button__link {
        font-size: 0.68rem !important;
        padding: 0.5rem 0.75rem !important;
    }
}

/* =============================================================================
   Single Product – Target Design Override (April 2026)
   ============================================================================= */

.single-product .KSS-product-wrap {
    max-width: 1280px;
    padding: 1rem 1.5rem 2rem;
}

.single-product .KSS-product-layout {
    grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr);
    gap: 2rem;
    border-top: 0;
    border-bottom: 0;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
}

.single-product .KSS-product-gallery {
    position: static;
}

.single-product .KSS-product-gallery .woocommerce-product-gallery {
    background: transparent;
}

.single-product .KSS-product-gallery .woocommerce-product-gallery__wrapper {
    border-radius: 10px;
    overflow: hidden;
}

.single-product .KSS-product-gallery .woocommerce-product-gallery__image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.single-product .KSS-product-gallery .flex-control-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(72px, 96px));
    gap: 0.55rem;
    margin-top: 0.75rem;
    padding: 0;
}

.single-product .KSS-product-gallery .flex-control-thumbs li {
    border: 1px solid #d0d7e2;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.single-product .KSS-product-gallery .flex-control-thumbs li img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.single-product .KSS-product-details-column {
    gap: 0.5rem;
    padding-top: 0.1rem;
}

.single-product .KSS-product-category {
    color: #667085;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    text-transform: none;
    font-weight: 500;
}

.single-product .KSS-product-details-column .summary .product_title {
    color: #0f172a;
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1.04;
    margin: 0.15rem 0 0.45rem;
}

.single-product .KSS-product-details-column .summary .woocommerce-product-rating {
    margin: 0 0 0.5rem;
}

.single-product .KSS-product-details-column .summary .star-rating,
.single-product .KSS-product-details-column .summary .star-rating::before {
    color: #f5b301;
}

.single-product .KSS-product-details-column .summary .woocommerce-review-link {
    color: #667085;
    font-size: 0.86rem;
}

.single-product .KSS-product-details-column .summary .price {
    margin: 0.2rem 0 0.6rem;
    color: #0f172a;
    font-size: 2.1rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.single-product .KSS-product-details-column .summary .price del {
    font-size: 1.15rem;
    color: #98a2b3;
    font-weight: 500;
}

.single-product .KSS-product-details-column .summary .price ins {
    text-decoration: none;
}

.single-product .KSS-product-details-column .summary .woocommerce-product-details__short-description {
    color: #475467;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.9rem;
}

.single-product .KSS-product-details-column .summary form.cart {
    border-top: 1px solid #e5e7eb;
    margin-top: 0.35rem;
    padding-top: 0.95rem;
}

.single-product .KSS-product-details-column .summary table.variations {
    margin-bottom: 0.9rem;
}

.single-product .KSS-product-details-column .summary table.variations label {
    font-size: 0.86rem;
    font-weight: 600;
    color: #344054;
}

.single-product .KSS-product-details-column .summary table.variations select {
    border: 1.5px solid #d0d5dd;
    border-radius: 10px;
    height: 44px;
    background: #fff;
    width: 100%;
    font-size: 0.95rem;
}

.single-product .KSS-product-details-column .summary .quantity input.qty {
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    height: 44px;
    min-width: 58px;
    background: #fff;
}

.single-product .KSS-product-details-column .summary .single_add_to_cart_button {
    height: 44px;
    border-radius: 10px;
    background: #245eea;
    padding: 0.7rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0;
}

.single-product .KSS-product-details-column .summary .single_add_to_cart_button:hover {
    background: #1d4ed8;
}

.single-product .KSS-product-details-column .summary .product_meta {
    border-top: 0;
    margin-top: 0;
    padding-top: 0.1rem;
    font-size: 0.78rem;
    color: #667085;
}

.single-product .KSS-product-benefits {
    margin-top: 0.65rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
}

.single-product .KSS-product-benefit-item {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    color: #667085;
    font-size: 0.75rem;
}

.single-product .KSS-product-benefit-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8f0ff;
    font-size: 0.76rem;
}

.single-product .KSS-product-share-row {
    margin-top: 0.45rem;
}

.single-product .KSS-product-share-btn {
    border: 0;
    background: transparent;
    color: #475467;
    font-size: 0.86rem;
    padding: 0;
    cursor: pointer;
}

.single-product .KSS-product-tabs-section {
    margin-top: 0.35rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 0.7rem;
}

.single-product .KSS-product-tabs__nav {
    border-bottom: 1px solid #e5e7eb;
}

.single-product .KSS-product-tabs__link {
    font-size: 0.88rem;
    text-transform: none;
    letter-spacing: 0;
    color: #667085;
    padding: 0.75rem 0.95rem;
}

.single-product .KSS-product-tabs__item.active .KSS-product-tabs__link,
.single-product .KSS-product-tabs__item.is-active .KSS-product-tabs__link,
.single-product .KSS-product-tabs__link:hover {
    color: #245eea;
    border-bottom-color: #245eea;
}

.single-product .KSS-product-tabs__panel {
    padding: 1.15rem 0 0;
    color: #475467;
    line-height: 1.7;
}

.single-product .KSS-product-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.25rem;
}

.single-product .KSS-faq-item {
    border: 1px solid #d7dde6;
    border-radius: 12px;
    background: #f8fafc;
    overflow: hidden;
}

.single-product .KSS-faq-question {
    position: relative;
    cursor: pointer;
    list-style: none;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
    padding: 1.25rem 3.25rem 1.25rem 1rem;
}

.single-product .KSS-faq-question::-webkit-details-marker {
    display: none;
}

.single-product .KSS-faq-question::after {
    content: '\203A';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-size: 1.5rem;
    color: #667085;
    transition: transform 0.2s ease;
}

.single-product .KSS-faq-item[open] .KSS-faq-question::after {
    transform: translateY(-50%) rotate(-90deg);
}

.single-product .KSS-faq-answer {
    padding: 0 1rem 1rem;
    color: #334155;
    font-size: 0.99rem;
    line-height: 1.75;
}

.single-product .KSS-faq-answer p {
    margin: 0;
}

@media (max-width: 980px) {
    .single-product .KSS-product-layout {
        grid-template-columns: 1fr;
    }

    .single-product .KSS-product-benefits {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}

/* =============================================================================
   Button/Quantity Visibility Fixes (Cart + Product)
   ============================================================================= */

.woocommerce-cart .KSS-cart-actions .button,
.woocommerce-cart .KSS-cart-actions button,
.single-product form.cart .single_add_to_cart_button,
.woocommerce ul.products li.product .button,
.woocommerce .products .product .add_to_cart_button,
.woocommerce .products .product .ajax_add_to_cart,
.woocommerce .products .product .wp-block-button__link,
.woocommerce .products .product .wc-block-components-product-button__button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
}

.woocommerce-cart .wp-site-blocks main .woocommerce {max-width: unset;padding: 0 1rem;}

.woocommerce-cart .KSS-qty-control .quantity,
.single-product form.cart .quantity,
.woocommerce .quantity {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
}

.woocommerce .quantity .KSS-qty-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.woocommerce .quantity .KSS-qty-btn,
.woocommerce .quantity button.KSS-qty-btn {
    width: 34px !important;
    height: 34px !important;
    border: 1px solid #cfd4dc !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #111 !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    line-height: 1 !important;
    padding: 0 !important;
    cursor: pointer;
}

.woocommerce .quantity input.qty {
    width: 56px !important;
    height: 34px !important;
    border: 1px solid #cfd4dc !important;
    border-radius: 6px !important;
    text-align: center !important;
    background: #fff !important;
    color: #111 !important;
    opacity: 1 !important;
}

.woocommerce-cart .KSS-cart-actions .KSS-btn-secondary,
.woocommerce-cart .KSS-cart-actions .KSS-btn-update {
    min-height: 40px;
    border-radius: 8px;
    border: 1px solid #cfd4dc !important;
    background: #fff !important;
    color: #111 !important;
    font-weight: 600;
}

/* ================================================================
   KSS Product Reviews Tab  (April 2026)
   ================================================================ */

/* Wrapper */
.KSS-product-reviews {
    padding: 0;
}

/* ── Zusammenfassung ──────────────────────────────────────────── */
.KSS-reviews-summary {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    padding: 24px 0 28px;
}

/* Linke Seite: Durchschnittsnote */
.KSS-reviews-average {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
    gap: 6px;
}

.KSS-reviews-score {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: #111;
}

.KSS-reviews-avg-stars {
    display: flex;
    gap: 2px;
}

.KSS-reviews-count {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
}

/* Rechte Seite: Verteilungsbalken */
.KSS-reviews-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

.KSS-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: #444;
}

.KSS-bar-label {
    min-width: 26px;
    text-align: right;
    color: #444;
    font-size: 0.82rem;
}

.KSS-bar-track {
    flex: 1;
    height: 10px;
    background: #e9ecef;
    border-radius: 999px;
    overflow: hidden;
}

.KSS-bar-fill {
    height: 100%;
    background: #f5a623;
    border-radius: 999px;
    transition: width 0.4s ease;
}

.KSS-bar-count {
    min-width: 24px;
    color: #444;
    font-size: 0.82rem;
    text-align: right;
}

/* Trennlinie */
.KSS-reviews-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 0 0 4px;
}

/* ── Einzelne Bewertung ───────────────────────────────────────── */
.KSS-review-item {
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.KSS-review-item:last-child {
    border-bottom: none;
}

.KSS-review-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

/* Avatar-Kreis */
.KSS-review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #d1d5db;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

/* Name + Datum */
.KSS-review-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.KSS-review-author {
    font-weight: 600;
    font-size: 0.92rem;
    color: #111;
}

.KSS-review-date {
    font-size: 0.78rem;
    color: #888;
}

/* Sterne rechts */
.KSS-review-stars {
    display: flex;
    gap: 2px;
    margin-left: auto;
    flex-shrink: 0;
}

/* Stern-Icons (gemeinsam für Zusammenfassung + Einzelbewertung) */
.KSS-star {
    font-size: 1.1rem;
    line-height: 1;
}

.KSS-star--filled {
    color: #f5a623;
}

.KSS-star--empty {
    color: #d1d5db;
}

/* Bewertungstext */
.KSS-review-text {
    font-size: 0.92rem;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding-left: 56px; /* Einzug unter Avatar */
}

.KSS-review-text p {
    margin: 0 0 4px;
}

/* "Keine Bewertungen"-Hinweis */
.KSS-product-reviews .woocommerce-noreviews {
    padding: 24px 0;
    color: #888;
    font-size: 0.9rem;
}

/* Responsive: ab ~600 px stacked */
@media (max-width: 600px) {
    .KSS-reviews-summary {
        flex-direction: column;
        gap: 20px;
    }

    .KSS-reviews-average {
        flex-direction: row;
        align-items: center;
        gap: 14px;
        min-width: unset;
    }

    .KSS-review-text {
        padding-left: 0;
    }
}