/* WooCommerce Styling v3.0.53 */

/* FULL WIDTH CONTAINER */
body.woocommerce-page,
body.woocommerce {
    width: 100% !important;
}

.woocommerce-main,
.woocommerce-container,
.woocommerce-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* HIDE SIDEBAR */
.sidebar,
.shop-sidebar,
.primary-sidebar,
.woocommerce-sidebar,
aside.widget-area {
    display: none !important;
}

/*
 * PRODUCT GRID — CSS Grid (fix-006)
 * WooCommerce-Clearfix (::before / ::after auf ul.products) wird bei Flex zu
 * unsichtbaren Flex-Items → erste „Spalte“ wirkt leer / Lücken im Raster.
 */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
    content: none !important;
}

.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
    list-style: none !important;
    padding: 24px !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.woocommerce ul.products li.product {
    float: none !important;
    clear: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
    background: white !important;
    border-radius: var(--radius-card) !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.woocommerce ul.products li.product.first,
.woocommerce ul.products li.product.last {
    float: none !important;
    clear: none !important;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-5px) !important;
}

.woocommerce ul.products li.product img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    display: block !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-serif) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--color-accent) !important;
    padding: 12px 10px 8px !important;
    margin: 0 !important;
    flex-grow: 1 !important;
    line-height: 1.2 !important;
}

.woocommerce ul.products li.product .price {
    font-size: 0.95rem !important;
    color: #6B8FA3 !important;
    padding: 6px 10px !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

.woocommerce ul.products li.product .button {
    background-color: var(--color-accent) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: var(--radius-pill) !important;
    font-weight: 600 !important;
    transition: background-color 0.3s ease, transform 0.3s ease !important;
    margin: 10px !important;
    cursor: pointer !important;
    width: calc(100% - 20px) !important;
    text-align: center !important;
    display: block !important;
    font-size: 0.9rem !important;
}

.woocommerce ul.products li.product .button:hover {
    background-color: var(--color-primary) !important;
    transform: translateY(-2px) !important;
}

/* MOBILE: 2 COLUMNS */
@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 15px !important;
        padding: 15px !important;
    }
    
    .woocommerce ul.products li.product img {
        height: auto !important;
        aspect-ratio: 4 / 3 !important;
    }
    
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.9rem !important;
        padding: 10px 8px 6px !important;
    }
    
    .woocommerce ul.products li.product .price {
        font-size: 0.85rem !important;
        padding: 4px 8px !important;
    }
    
    .woocommerce ul.products li.product .button {
        padding: 6px 12px !important;
        font-size: 0.85rem !important;
        margin: 8px !important;
        width: calc(100% - 16px) !important;
    }
}

/* EXTRA SMALL MOBILE: 2 SPALTEN (auch Briefe / Sticker / Sticker-Bundle Kategorien) */
@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        padding: 10px !important;
    }
    
    .woocommerce ul.products li.product img {
        height: auto !important;
        aspect-ratio: 4 / 3 !important;
    }
    
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.85rem !important;
        padding: 8px 6px 4px !important;
    }
    
    .woocommerce ul.products li.product .price {
        font-size: 0.8rem !important;
        padding: 3px 6px !important;
    }
    
    .woocommerce ul.products li.product .button {
        padding: 10px 12px !important;
        font-size: 0.8rem !important;
        margin: 6px !important;
        width: calc(100% - 12px) !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* TABLET: 3 COLUMNS (Grid, kein Flex) */
@media (min-width: 769px) and (max-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 15px !important;
        padding: 15px !important;
    }
}

/* Single Product */
.woocommerce div.product {
    background: white;
    padding: 30px;
    border-radius: 8px;
}

.woocommerce div.product .images {
    margin-bottom: 30px;
}

.woocommerce div.product .summary {
    padding: 0;
}

.woocommerce div.product .product_title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 15px;
}

.woocommerce div.product .price {
    font-size: 1.5rem;
    color: var(--color-price) !important;
    font-weight: 600;
    margin-bottom: 20px;
}

.woocommerce div.product .price del {
    color: var(--color-accent) !important;
    font-size: 1.1rem;
    margin-left: 15px;
    opacity: 0.8;
}

.woocommerce div.product .price ins {
    text-decoration: none;
    color: var(--color-price) !important;
}

.woocommerce .product_meta .onsale {
    background-color: var(--color-price) !important;
    color: white !important;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 20px;
}

/* ANGEBOT BADGE - klein, sauber, oben links */
.woocommerce span.onsale {
    background-color: var(--color-price) !important;
    color: white !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 6px 14px !important;
    border-radius: var(--radius-pill) !important;
    position: absolute !important;
    top: 10px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    z-index: 10 !important;
    min-height: auto !important;
    min-width: auto !important;
    width: max-content !important;
    max-width: calc(100% - 20px) !important;
    line-height: 1.4 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

/* Produktkarte braucht position:relative für das Badge */
.woocommerce ul.products li.product {
    position: relative !important;
}

.woocommerce div.product form.cart .quantity {
    margin-bottom: 20px;
}

.woocommerce div.product form.cart .quantity input[type="number"],
.woocommerce div.product form.cart .quantity select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    min-width: 80px;
}

.woocommerce div.product form.cart .quantity select {
    background: white;
    cursor: pointer;
}

.woocommerce div.product form.cart .button {
    margin-left: 15px;
}

.woocommerce div.product .product_meta {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.woocommerce div.product button.single_add_to_cart_button {
    background-color: var(--color-accent);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
}

.woocommerce div.product button.single_add_to_cart_button:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
}

/* SINGLE PRODUCT GALLERY - WooCommerce Standard, nur minimale Anpassungen */
.woocommerce div.product .woocommerce-product-gallery {
    width: min(500px, 100%) !important;
    float: left !important;
    margin-right: 40px !important;
}

/* Lupe-Icon verstecken */
.woocommerce div.product .woocommerce-product-gallery__trigger {
    display: none !important;
}

/* Hauptbild - leichter Hover-Vergrößerungseffekt */
.woocommerce div.product .woocommerce-product-gallery__image {
    overflow: hidden !important;
}

.woocommerce div.product .woocommerce-product-gallery__image img {
    cursor: default !important;
    transition: transform 0.3s ease !important;
}

.woocommerce div.product .woocommerce-product-gallery__image img:hover {
    transform: scale(1.08) !important;
}

/* Thumbnails - eine Reihe, alle nebeneinander */
.woocommerce div.product .flex-control-thumbs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    margin: 8px 0 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
    overflow: hidden !important;
}

.woocommerce div.product .flex-control-thumbs li {
    flex: 1 1 0 !important;
    height: 90px !important;
    overflow: hidden !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
    background: #f5f5f5 !important;
    border-radius: 4px !important;
    border: 2px solid transparent !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.woocommerce div.product .flex-control-thumbs li img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    cursor: pointer !important;
    border: none !important;
    box-sizing: border-box !important;
}

.woocommerce div.product .flex-control-thumbs li:has(img.flex-active),
.woocommerce div.product .flex-control-thumbs li:hover {
    border-color: var(--color-accent) !important;
}

/* SINGLE PRODUCT - SIDE BY SIDE LAYOUT */
.woocommerce div.product {
    display: block !important;
    background: white !important;
    padding: 30px !important;
    border-radius: var(--radius-card) !important;
}

.woocommerce div.product > .images {
    float: left !important;
    width: min(500px, 45%) !important;
    max-width: 500px !important;
    margin-right: 40px !important;
    margin-bottom: 0 !important;
    overflow: visible !important;
}

.woocommerce div.product > .summary {
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce div.product .images {
    margin-bottom: 0 !important;
    width: 100% !important;
}

.woocommerce div.product .summary {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.woocommerce div.product .product_title {
    font-family: var(--font-serif) !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: var(--color-accent) !important;
    margin-bottom: 15px !important;
}

.woocommerce div.product .price {
    font-size: 1.5rem !important;
    color: var(--color-price) !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
}

.woocommerce div.product button.single_add_to_cart_button {
    background-color: var(--color-accent) !important;
    color: white !important;
    border: none !important;
    padding: 15px 40px !important;
    border-radius: var(--radius-pill) !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: background-color 0.3s ease, transform 0.3s ease !important;
    cursor: pointer !important;
    width: 100% !important;
    max-width: 300px !important;
}

.woocommerce div.product button.single_add_to_cart_button:hover {
    background-color: var(--color-primary) !important;
    transform: translateY(-2px) !important;
}

/* RELATED PRODUCTS + UPSELLS — gemeinsame Karten-Styles */



/* PRODUCT DESCRIPTION FORMATTING */
.woocommerce div.product .woocommerce-product-details__short-description {
    margin: 20px 0 !important;
    padding: 0 !important;
}

.woocommerce div.product .woocommerce-product-details__short-description ul,
.woocommerce div.product .woocommerce-product-details__short-description ol {
    margin: 15px 0 15px 30px !important;
    padding-left: 20px !important;
}

.woocommerce div.product .woocommerce-product-details__short-description li {
    margin: 8px 0 !important;
    padding-left: 10px !important;
}

.woocommerce div.product .product_meta {
    margin-left: 0 !important;
    padding-left: 0 !important;
}


/* RESPONSIVE SINGLE PRODUCT */
@media (max-width: 768px) {
    .woocommerce div.product {
        padding: 20px !important;
    }
    
    .woocommerce div.product > .images {
        float: none !important;
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 25px !important;
    }
    
    .woocommerce div.product > .summary {
        float: none !important;
        width: 100% !important;
    }
    
    .woocommerce div.product .product_title {
        font-size: 1.5rem !important;
        margin-bottom: 12px !important;
    }
    
    .woocommerce div.product .price {
        font-size: 1.2rem !important;
        margin-bottom: 15px !important;
    }
    
    .woocommerce div.product button.single_add_to_cart_button {
        max-width: 100% !important;
        padding: 12px 30px !important;
    }
    
    .woocommerce div.product .woocommerce-product-gallery {
        width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
    }
    
    .woocommerce div.product .flex-control-thumbs {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .woocommerce div.product {
        padding: 15px !important;
    }
    
    .woocommerce div.product .product_title {
        font-size: 1.3rem !important;
        margin-bottom: 10px !important;
    }
    
    .woocommerce div.product .price {
        font-size: 1rem !important;
        margin-bottom: 12px !important;
    }
    
    .woocommerce div.product button.single_add_to_cart_button {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
    }
}

/* PRODUCT DESCRIPTION - LISTS */
.woocommerce div.product .woocommerce-product-details__short-description ul,
.woocommerce div.product .woocommerce-product-details__short-description ol {
    margin: 15px 0 15px 40px !important;
    padding: 0 !important;
}

.woocommerce div.product .woocommerce-product-details__short-description li {
    margin: 8px 0 !important;
    padding: 0 !important;
    line-height: 1.6 !important;
}

/* ===== RELATED PRODUCTS + UPSELLS — konsolidiert ===== */

/* Container */
.related.products,
.upsells.products {
    clear: both !important;
    display: block !important;
    width: 100% !important;
    float: none !important;
    margin-top: 60px !important;
    padding-top: 40px !important;
    border-top: 2px solid #eee !important;
    overflow: hidden !important;
}

/* Force the product div to contain floats */
.woocommerce div.product::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}

/* Heading */
.related.products h2,
.upsells.products h2 {
    font-family: var(--font-serif) !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: var(--color-accent) !important;
    margin-bottom: 40px !important;
    text-align: center !important;
}

/* Grid */
.related.products ul.products,
.upsells.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Karte */
.related.products ul.products li.product,
.upsells.products ul.products li.product {
    background: white !important;
    border-radius: var(--radius-card) !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    float: none !important;
    clear: none !important;
    position: relative !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.related.products ul.products li.product:hover,
.upsells.products ul.products li.product:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-5px) !important;
}

/* Bild */
.related.products ul.products li.product img,
.related.products ul.products li.product a img,
.related.products ul.products li.product .woocommerce-loop-product-link img,
.upsells.products ul.products li.product img,
.upsells.products ul.products li.product a img,
.upsells.products ul.products li.product .woocommerce-loop-product-link img {
    width: 100% !important;
    height: 180px !important;
    display: block !important;
    object-fit: contain !important;
    padding: 10px !important;
    margin: 0 !important;
    background: #f9f9f9 !important;
}

.related.products ul.products li.product .woocommerce-loop-product-link,
.upsells.products ul.products li.product .woocommerce-loop-product-link {
    display: block !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
}

/* Titel */
.related.products ul.products li.product .woocommerce-loop-product__title,
.upsells.products ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-serif) !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: var(--color-accent) !important;
    padding: 12px 12px 6px !important;
    margin: 0 !important;
    flex-grow: 1 !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    height: calc(0.9rem * 1.4 * 3) !important;
}

/* Preis */
.related.products ul.products li.product .price,
.upsells.products ul.products li.product .price {
    padding: 6px 12px !important;
    font-size: 1rem !important;
    margin: 0 !important;
    color: var(--color-price) !important;
    text-align: center !important;
    display: block !important;
    font-weight: 600 !important;
}

/* Button */
.related.products ul.products li.product .button,
.upsells.products ul.products li.product .button {
    background-color: var(--color-accent) !important;
    color: white !important;
    border: none !important;
    margin: 12px !important;
    padding: 10px 16px !important;
    font-size: 0.9rem !important;
    width: calc(100% - 24px) !important;
    margin-top: auto !important;
    border-radius: var(--radius-pill) !important;
    font-weight: 600 !important;
    text-align: center !important;
    display: block !important;
    transition: background-color 0.3s ease, transform 0.3s ease !important;
    cursor: pointer !important;
}

.related.products ul.products li.product .button:hover,
.upsells.products ul.products li.product .button:hover {
    background-color: var(--color-primary) !important;
    transform: translateY(-2px) !important;
}

/* Responsive: Tablet */
@media (max-width: 768px) {
    .related.products ul.products,
    .upsells.products ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        padding: 0 15px !important;
    }

    .related.products h2,
    .upsells.products h2 {
        font-size: 1.5rem !important;
        margin-bottom: 25px !important;
    }
}

/* Responsive: Small Mobile */
@media (max-width: 480px) {
    .related.products ul.products,
    .upsells.products ul.products {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 0 10px !important;
    }

    .related.products h2,
    .upsells.products h2 {
        font-size: 1.3rem !important;
        margin-bottom: 20px !important;
    }

    .related.products ul.products li.product .button,
    .upsells.products ul.products li.product .button {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
    }
}

/* ===== YITH SUBSCRIPTION ABO-BUTTON STYLING ===== */
/* Abo-Button im Shop */
.woocommerce ul.products li.product .yith-subscription-button,
.woocommerce ul.products li.product .yith-subscription-add-to-cart {
    background-color: #1e5a7a !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: var(--radius-pill) !important;
    font-weight: 600 !important;
    transition: background-color 0.3s ease, transform 0.3s ease !important;
    margin: 10px !important;
    cursor: pointer !important;
    width: calc(100% - 20px) !important;
    text-align: center !important;
    display: block !important;
    font-size: 0.9rem !important;
}

.woocommerce ul.products li.product .yith-subscription-button:hover,
.woocommerce ul.products li.product .yith-subscription-add-to-cart:hover {
    background-color: #2d7a9e !important;
    transform: translateY(-2px) !important;
}

/* Abo-Button auf Produktseite */
.woocommerce div.product .yith-subscription-button,
.woocommerce div.product .yith-subscription-add-to-cart,
.woocommerce div.product button.yith-subscription-add-to-cart {
    background-color: #1e5a7a !important;
    color: white !important;
    border: none !important;
    padding: 15px 40px !important;
    border-radius: var(--radius-pill) !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: background-color 0.3s ease, transform 0.3s ease !important;
    cursor: pointer !important;
    width: 100% !important;
    max-width: 300px !important;
}

.woocommerce div.product .yith-subscription-button:hover,
.woocommerce div.product .yith-subscription-add-to-cart:hover,
.woocommerce div.product button.yith-subscription-add-to-cart:hover {
    background-color: #2d7a9e !important;
    transform: translateY(-2px) !important;
}

/* Abo-Preis Styling */
.yith-subscription-price-label {
    display: block;
    font-size: 0.9rem;
    color: #1e5a7a;
    font-weight: 600;
    margin-bottom: 5px;
}

.yith-subscription-price {
    font-size: 1.1rem;
    color: #1e5a7a;
    font-weight: 600;
    display: block;
    margin: 8px 0;
}

/* Abo-Badge im Shop */
.yith-subscription-badge {
    display: inline-block;
    background: linear-gradient(135deg, #1e5a7a 0%, #2d7a9e 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.yith-subscription-badge::before {
    content: '⚓ ';
    margin-right: 4px;
}

/* ===== SHOP CATEGORIES REDESIGN (fix-002) ===== */
.shop-layout {
    max-width: 1240px;
}

.shop-header {
    text-align: center;
    margin: 18px 0 42px;
}

.shop-section-head {
    text-align: center;
    margin-bottom: 24px;
}

.shop-section-subtitle {
    color: var(--color-muted);
    font-size: 1rem;
    margin-top: 8px;
}

.shop-categories {
    margin-bottom: 48px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.category-box {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(58, 90, 110, 0.12);
    box-shadow: 0 6px 18px rgba(18, 43, 59, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}

.category-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(18, 43, 59, 0.12);
}

.category-box-link {
    display: block;
}

.category-box img,
.category-placeholder {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.category-placeholder {
    background: linear-gradient(135deg, #d5e8e4 0%, #9abfbb 100%);
}

.category-box-content {
    padding: 14px 14px 16px;
}

.category-box h3 {
    margin: 0 0 4px;
    font-size: 1.12rem;
    line-height: 1.3;
}

.category-box h3 a {
    color: var(--color-accent);
    text-decoration: none;
}

.category-count {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #3a5a6e;
    background: #eaf2f5;
    margin-bottom: 8px;
}

.category-box p {
    margin: 0 0 12px;
    color: var(--color-muted);
    font-size: 0.92rem;
    line-height: 1.45;
    min-height: 2.8em;
}

.category-cta {
    display: inline-block;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: var(--color-accent);
}

.category-cta:hover {
    background: #436b83;
}

.shop-products-wrapper {
    background: linear-gradient(180deg, rgba(107, 143, 163, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
    border-top: 1px solid rgba(58, 90, 110, 0.08);
    padding-top: 28px;
}

@media (max-width: 768px) {
    .shop-header {
        margin: 8px 0 28px;
    }

    .shop-section-head {
        margin-bottom: 16px;
    }

    .shop-section-subtitle {
        font-size: 0.93rem;
        margin-top: 6px;
    }

    .shop-categories {
        margin-bottom: 30px;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .category-box {
        border-radius: 12px;
    }

    .category-box img,
    .category-placeholder {
        height: 120px;
    }

    .category-box-content {
        padding: 10px 10px 12px;
    }

    .category-box h3 {
        font-size: 0.98rem;
    }

    .category-count {
        font-size: 0.72rem;
        padding: 2px 8px;
    }

    .category-box p {
        font-size: 0.82rem;
        min-height: 2.6em;
        margin-bottom: 8px;
    }

    .category-cta {
        width: 100%;
        text-align: center;
        font-size: 0.8rem;
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Abo-Button Styling */
@media (max-width: 768px) {
    .woocommerce ul.products li.product .yith-subscription-button,
    .woocommerce ul.products li.product .yith-subscription-add-to-cart {
        padding: 6px 12px !important;
        font-size: 0.85rem !important;
        margin: 8px !important;
        width: calc(100% - 16px) !important;
    }
    
    .woocommerce div.product .yith-subscription-button,
    .woocommerce div.product .yith-subscription-add-to-cart,
    .woocommerce div.product button.yith-subscription-add-to-cart {
        padding: 12px 30px !important;
        font-size: 0.95rem !important;
    }
}


/* ===== CHECKOUT ERROR MESSAGE OPTIMIZATION (v3.0.71) ===== */
/* Verstecke die "Keine Zahlungsmethoden"-Fehlermeldung beim initialen Laden */
.woocommerce-checkout-payment .woocommerce-notice--error {
    display: none !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Zeige die Fehlermeldung nur, wenn sie nach 5 Sekunden noch da ist */
.woocommerce-checkout-payment .woocommerce-notice--error.show-error {
    display: block !important;
    opacity: 1;
}

/* Styling für sichtbare Fehlermeldungen */
.woocommerce-checkout-payment .woocommerce-notice--error.show-error {
    background-color: #fee !important;
    border-color: #c33 !important;
    color: #c33 !important;
    padding: 15px !important;
    border-radius: 4px !important;
    margin-bottom: 20px !important;
}

/* ===== MIXED CART SUPPORT (v3.0.71) ===== */
/* Zeige Warnung wenn Abo + andere Produkte im Warenkorb */
.fehnleev-mixed-cart-notice {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    padding: 12px;
    border-radius: 4px;
    margin: 15px 0;
    color: #856404;
    font-size: 0.95rem;
}

.fehnleev-mixed-cart-notice strong {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

/* Styling für Warenkorb-Warnung */
.fehnleev-cart-locked-notice {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 12px;
    border-radius: 4px;
    margin: 15px 0;
    color: #721c24;
    font-size: 0.95rem;
}

.fehnleev-cart-locked-notice strong {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

/* Deaktivierte Add-to-Cart Buttons */
.woocommerce ul.products li.product .button:disabled,
.woocommerce ul.products li.product .button.disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background-color: #ccc !important;
}

.woocommerce ul.products li.product .button:disabled:hover,
.woocommerce ul.products li.product .button.disabled:hover {
    background-color: #ccc !important;
    transform: none !important;
}

/* ===== CROSS-SELLS (Warenkorb: "Bist du interessiert an...") ===== */
.cross-sells {
    margin-top: 40px !important;
}

.cross-sells .product,
.cross-sells .wc-block-grid__product,
.cross-sells li {
    overflow: hidden !important;
    border-radius: var(--radius-card) !important;
}

.cross-sells h2 {
    font-family: 'Playfair Display', serif !important;
    font-size: clamp(20px, 3vw, 28px) !important;
    font-weight: 700 !important;
    color: #3a5a6e !important;
    margin-bottom: 20px !important;
}

/* Product title: remove blue link color */
.cross-sells .woocommerce-loop-product__title,
.cross-sells .wp-block-woocommerce-product-title,
.cross-sells h2.woocommerce-loop-product__title a,
.cross-sells a {
    color: #3a5a6e !important;
    text-decoration: none !important;
}

.cross-sells .woocommerce-loop-product__title {
    font-family: 'Playfair Display', serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin-bottom: 6px !important;
}

/* Block button override */
.cross-sells .wp-block-button__link,
.cross-sells .wc-block-components-product-button__button,
.cross-sells .button.add_to_cart_button {
    background-color: #3a5a6e !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 9px 20px !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.2s, transform 0.2s !important;
    text-decoration: none !important;
    display: inline-block !important;
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.cross-sells .wp-block-button__link:hover,
.cross-sells .wc-block-components-product-button__button:hover,
.cross-sells .button.add_to_cart_button:hover {
    background-color: #6B8FA3 !important;
    transform: translateY(-2px) !important;
    color: #fff !important;
}

@media (max-width: 640px) {
    .cross-sells .woocommerce-loop-product__title {
        font-size: 13px !important;
    }
    .cross-sells .wp-block-button__link,
    .cross-sells .wc-block-components-product-button__button {
        font-size: 13px !important;
        padding: 8px 16px !important;
    }
}

/*
 * fix-012: BlockUI Overlay für Cart/Checkout (visuell ok, aber nicht blockierend)
 * Hintergrund: Nach PayPal-Return hängt WooCommerce Blocks kurz im is-loading
 * Zustand und BlockUI deckt den Screen ab (Klicks gehen nicht).
 */
.blockUI.blockOverlay,
.blockUI.blockMsg {
    pointer-events: none !important;
}

/* fix-016: breiter (alle) blockUI-Overlay-Elemente nicht blockieren */
.blockUI,
.blockUI * {
    pointer-events: none !important;
}

/*
 * fix-019: WooCommerce Blocks während is-loading nicht klick-blockieren.
 * Hintergrund: Beim PayPal-Return bleibt der Block in is-loading und Klicks funktionieren nicht.
 */
.wp-block-woocommerce-cart.is-loading,
.wp-block-woocommerce-cart.is-loading * {
    pointer-events: auto !important;
}

.wp-block-woocommerce-checkout.is-loading,
.wp-block-woocommerce-checkout.is-loading * {
    pointer-events: auto !important;
}

/*
 * fix-020: Classic Checkout Hinweise modernisieren
 * - oberer "Hinweis: Alle Zahlungsmethoden akzeptieren Kredit-/Debitkarten..." ausblenden
 * - Login/Coupon Toggle Boxen als moderne Karten darstellen
 */
body.woocommerce-checkout .woocommerce > .woocommerce-info {
    display: none !important;
}

body.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info,
body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
    background: #f7fbff !important;
    border: 1px solid rgba(14, 63, 91, 0.18) !important;
    color: #0e3f5b !important;
    padding: 14px 16px !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 26px rgba(12, 40, 60, 0.08) !important;
    margin: 10px 0 14px !important;
}

body.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info::before,
body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before {
    display: none !important;
}

body.woocommerce-checkout .woocommerce-form-login-toggle .showlogin,
body.woocommerce-checkout .woocommerce-form-coupon-toggle .showcoupon {
    color: #0e3f5b !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

body.woocommerce-checkout .woocommerce-form-login-toggle .showlogin:hover,
body.woocommerce-checkout .woocommerce-form-coupon-toggle .showcoupon:hover {
    color: #6B8FA3 !important;
}

/*
 * fix-021: Checkout UI Feinschliff
 * - den "Hinweis: Alle Zahlungsmethoden akzeptieren Kredit-/Debitkarten..." Kasten zuverlässig ausblenden
 * - Payment Method (PayPal) sichtbar als "ausgewählt" stylen, auch wenn kein Radio angezeigt wird
 */
body.woocommerce-checkout .woocommerce .woocommerce-notices-wrapper .woocommerce-info:not(.woocommerce-form-login-toggle .woocommerce-info):not(.woocommerce-form-coupon-toggle .woocommerce-info) {
    display: none !important;
}

body.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-info {
    border-left: 0 !important;
}

/* Payment list modern + eindeutig ausgewählt */
body.woocommerce-checkout #payment ul.payment_methods,
body.woocommerce-checkout #payment .payment_methods {
    background: rgba(58, 90, 110, 0.05) !important;
    border: 1px solid rgba(58, 90, 110, 0.12) !important;
    border-radius: 10px 10px 0 0 !important;
    padding: 6px !important;
    margin: 0 !important;
    list-style: none !important;
}

/* fix-025: grauen WooCommerce-Payment-Hintergrund entfernen */
body.woocommerce-checkout #payment,
body.woocommerce-checkout .woocommerce-checkout-payment {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.woocommerce-checkout #payment > div.form-row,
body.woocommerce-checkout .woocommerce-checkout-payment > div.form-row {
    background: transparent !important;
    border: 0 !important;
}

body.woocommerce-checkout #payment ul.payment_methods li,
body.woocommerce-checkout #payment .payment_methods li {
    position: relative !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(58, 90, 110, 0.08) !important;
    border-radius: 0 !important;
    padding: 14px 16px !important;
    box-shadow: none !important;
    margin: 0 !important;
}

body.woocommerce-checkout #payment ul.payment_methods li:last-child,
body.woocommerce-checkout #payment .payment_methods li:last-child {
    border-bottom: 0 !important;
}

/* Default: keine erzwungene "Ausgewählt"-Optik (wichtig bei mehreren Methoden) */
body.woocommerce-checkout #payment ul.payment_methods li::before,
body.woocommerce-checkout #payment ul.payment_methods li::after,
body.woocommerce-checkout #payment .payment_methods li::before,
body.woocommerce-checkout #payment .payment_methods li::after {
    content: none !important;
}

body.woocommerce-checkout #payment ul.payment_methods li > label,
body.woocommerce-checkout #payment .payment_methods li > label {
    display: block !important;
    font-weight: 800 !important;
    color: #0e3f5b !important;
    padding-left: 0 !important;
}

/* Dynamisch: nur die wirklich ausgewählte Methode bekommt Badge/Haken */
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method:has(> input[type="radio"]:checked),
body.woocommerce-checkout #payment .payment_methods li.wc_payment_method:has(> input[type="radio"]:checked) {
    border-color: transparent !important;
    box-shadow: none !important;
}

body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method:has(> input[type="radio"]:checked)::after,
body.woocommerce-checkout #payment .payment_methods li.wc_payment_method:has(> input[type="radio"]:checked)::after {
    content: "Ausgewählt" !important;
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    background: rgba(107, 143, 163, 0.16) !important;
    color: #0e3f5b !important;
    border: 1px solid rgba(107, 143, 163, 0.45) !important;
    border-radius: 999px !important;
    padding: 4px 10px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.2px !important;
}

body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method:has(> input[type="radio"]:checked)::before,
body.woocommerce-checkout #payment .payment_methods li.wc_payment_method:has(> input[type="radio"]:checked)::before {
    content: "✓" !important;
    position: absolute !important;
    left: 14px !important;
    top: 14px !important;
    width: 24px !important;
    height: 24px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 999px !important;
    background: #0e3f5b !important;
    color: #fff !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method:has(> input[type="radio"]:checked) > label,
body.woocommerce-checkout #payment .payment_methods li.wc_payment_method:has(> input[type="radio"]:checked) > label {
    padding-left: 36px !important;
}

body.woocommerce-checkout #payment ul.payment_methods li .payment_box,
body.woocommerce-checkout #payment .payment_methods li .payment_box {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 12px 0 0 !important;
    margin: 10px 0 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.woocommerce-checkout #payment .payment_box::before,
body.woocommerce-checkout #payment .payment_box::after {
    display: none !important;
    content: none !important;
    border: 1px solid rgba(14, 63, 91, 0.10) !important;
}

/* fix-022: Checkout ohne Success/Info Notices (Errors bleiben sichtbar) */
body.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-message,
body.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-info {
    display: none !important;
}

/*
 * fix-024: Checkout-Buttons/Links im gleichen Karten-Stil
 * - Login/Coupon/Warenkorb-Actions als dezente Buttons mit Rand + Hintergrund
 */
body.woocommerce-checkout .woocommerce-form-login-toggle .showlogin,
body.woocommerce-checkout .woocommerce-form-coupon-toggle .showcoupon,
body.woocommerce-checkout .woocommerce-message .button,
body.woocommerce-checkout .woocommerce-message a.button,
body.woocommerce-checkout .woocommerce-info .button,
body.woocommerce-checkout a.checkout-button,
body.woocommerce-checkout .wc-backward,
body.woocommerce-checkout .return-to-cart .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 8px 14px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(14, 63, 91, 0.24) !important;
    background: #f7fbff !important;
    color: #0e3f5b !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: 0 6px 16px rgba(12, 40, 60, 0.08) !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease !important;
}

body.woocommerce-checkout .woocommerce-form-login-toggle .showlogin:hover,
body.woocommerce-checkout .woocommerce-form-coupon-toggle .showcoupon:hover,
body.woocommerce-checkout .woocommerce-message .button:hover,
body.woocommerce-checkout .woocommerce-message a.button:hover,
body.woocommerce-checkout .woocommerce-info .button:hover,
body.woocommerce-checkout a.checkout-button:hover,
body.woocommerce-checkout .wc-backward:hover,
body.woocommerce-checkout .return-to-cart .button:hover {
    background: #eef6fc !important;
    border-color: rgba(107, 143, 163, 0.55) !important;
    color: #0e3f5b !important;
    transform: translateY(-1px) !important;
}


/* ===================================================================
   CHECKOUT & CART REDESIGN
   =================================================================== */

/* --- Checkout/Cart: .woocommerce füllt .container komplett (kein Doppelrahmen) --- */
body.woocommerce-checkout .woocommerce,
body.woocommerce-cart .woocommerce {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* --- Checkout-Tabelle: Produkt-Zeilen verstecken (Summary-Bar zeigt sie), Totals behalten --- */
body.woocommerce-checkout .woocommerce-checkout-review-order-table thead,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody {
    display: none !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table {
    background: rgba(58, 90, 110, 0.05) !important;
    border: 1px solid rgba(58, 90, 110, 0.12) !important;
    border-top: 0 !important;
    border-radius: 0 0 10px 10px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    padding: 8px 16px !important;
    margin: 0 0 16px !important;
    overflow: hidden !important;
}

/* Zahlungsarten: border-bottom weg (Tabelle dockt nahtlos an) */
body.woocommerce-checkout #payment ul.payment_methods li:last-child {
    border-bottom: 0 !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td {
    border: 0 !important;
    padding: 6px 4px !important;
    font-size: 0.88rem !important;
    color: #3a5a6e !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot .order-total th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot .order-total td {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    border-top: 2px solid rgba(58, 90, 110, 0.15) !important;
    padding-top: 10px !important;
}

/* Gutschein-Zeile hervorheben */
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot .cart-discount td {
    color: #2a8f5a !important;
    font-weight: 700 !important;
}

/* --- AGB zwischen Tabelle und Button: per flexbox order --- */
#order_review .woocommerce-checkout-payment {
    display: flex !important;
    flex-direction: column !important;
}

#order_review .woocommerce-checkout-payment .wc_payment_methods {
    order: 1 !important;
}

#order_review .woocommerce-checkout-payment .form-row.place-order {
    order: 3 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* AGB (Germanized rendert vor #place_order im .place-order div) — ans obere Ende */
#order_review .woocommerce-checkout-payment .form-row.place-order .wc-gzd-checkbox-placeholder,
#order_review .woocommerce-checkout-payment .form-row.place-order .woocommerce-terms-and-conditions-wrapper,
#order_review .woocommerce-checkout-payment .form-row.place-order p.wc-terms-and-conditions {
    order: -1 !important;
}

#order_review .woocommerce-checkout-payment .form-row.place-order #place_order {
    order: 10 !important;
    margin-top: 12px !important;
}

/* Review-Order-Tabelle: an Zahlungsart andocken (diese Regel wird durch die spezifischere oben ergänzt) */

/* Zahlungsart-Überschrift */
body.woocommerce-checkout h3#order_review_heading + #order_review,
body.woocommerce-checkout #order_review h3 {
    margin-bottom: 16px !important;
}

/* --- Kompakte Bestellübersicht oben (Tabelle) --- */
table.fehnleev-summary-bar {
    width: 100% !important;
    background: rgba(58, 90, 110, 0.05) !important;
    border: 1px solid rgba(58, 90, 110, 0.12) !important;
    border-radius: 10px !important;
    margin-bottom: 28px !important;
    font-size: 0.85rem !important;
    color: #3a5a6e !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

table.fehnleev-summary-bar td {
    padding: 10px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(58, 90, 110, 0.08) !important;
    vertical-align: middle !important;
}

table.fehnleev-summary-bar tr:last-child td {
    border-bottom: 0 !important;
}

td.fehnleev-summary-thumb {
    width: 116px !important;
    padding-right: 0 !important;
}

td.fehnleev-summary-thumb img {
    width: 108px !important;
    height: 108px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    display: block !important;
}

td.fehnleev-summary-name {
    font-weight: 500 !important;
}

td.fehnleev-summary-name a {
    color: #3a5a6e !important;
    text-decoration: none !important;
}

td.fehnleev-summary-name a:hover {
    color: #6B8FA3 !important;
}

.fehnleev-summary-unit-price {
    display: block !important;
    font-size: 0.78rem !important;
    color: #6a8a9a !important;
    font-weight: 600 !important;
    margin-top: 2px !important;
}

td.fehnleev-summary-qty {
    white-space: nowrap !important;
    text-align: center !important;
    width: 90px !important;
}

.fehnleev-qty-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    border: 1px solid rgba(58, 90, 110, 0.2) !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #3a5a6e !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    padding: 0 !important;
    line-height: 1 !important;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
}

.fehnleev-qty-btn:hover {
    background: #3a5a6e !important;
    color: #fff !important;
    border-color: #3a5a6e !important;
}

.fehnleev-qty-btn:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
}

.fehnleev-qty-val {
    display: inline-block !important;
    min-width: 20px !important;
    text-align: center !important;
    font-weight: 700 !important;
}

td.fehnleev-summary-price {
    color: #8B5A7A !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    text-align: right !important;
}

/* --- Details: volle Breite, intern 2-spaltig --- */
.fehnleev-details-grid {
    display: grid !important;
    grid-template-columns: 1.2fr 1fr !important;
    gap: 40px !important;
    align-items: start !important;
}

.fehnleev-col-billing,
.fehnleev-col-extras {
    min-width: 0 !important;
}

/* WooCommerce col-1/col-2 Floats deaktivieren */
.fehnleev-checkout-details .col-1,
.fehnleev-checkout-details .col-2 {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
}

form.woocommerce-checkout {
    display: block !important;
}

/* #order_review_heading ausblenden (Bestellübersicht ist in Summary-Bar) */
h3#order_review_heading {
    display: none !important;
}

/* AGB-Checkbox außerhalb von .wc-gzd-order-submit verstecken (wird im Fragment gerendert) */
#order_review > .wc-gzd-checkbox-placeholder {
    display: none !important;
}

/* Zahlungsart-Heading in Bottom-Row anzeigen */
.fehnleev-checkout-bottom h3 {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #3a5a6e !important;
    margin: 0 0 16px !important;
}

/* --- Billing/Shipping Abschnitts-Headings --- */
.fehnleev-col-billing h3,
.fehnleev-col-extras h3,
#customer_details h3 {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #3a5a6e !important;
    margin: 0 0 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid rgba(58, 90, 110, 0.12) !important;
}

/* --- Formularfelder --- */
.woocommerce-billing-fields .form-row,
.woocommerce-shipping-fields .form-row {
    margin: 0 0 12px !important;
}

.woocommerce-billing-fields .form-row label,
.woocommerce-shipping-fields .form-row label {
    font-size: 0.83rem !important;
    font-weight: 600 !important;
    color: #3a5a6e !important;
    margin-bottom: 4px !important;
    display: block !important;
}

.woocommerce-billing-fields .form-row input,
.woocommerce-billing-fields .form-row select,
.woocommerce-shipping-fields .form-row input,
.woocommerce-shipping-fields .form-row select {
    border: 1px solid rgba(58, 90, 110, 0.25) !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 0.92rem !important;
    font-family: 'Nunito', sans-serif !important;
    color: #3a5a6e !important;
    background: #fff !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.woocommerce-billing-fields .form-row input:focus,
.woocommerce-billing-fields .form-row select:focus,
.woocommerce-shipping-fields .form-row input:focus,
.woocommerce-shipping-fields .form-row select:focus {
    border-color: #6B8FA3 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(107, 143, 163, 0.18) !important;
}

/* Billing-Felder als 2-Spalten-Grid */
.woocommerce-billing-fields__field-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px 16px !important;
}

/* Felder die volle Breite brauchen */
#billing_company_field,
#billing_country_field,
#billing_address_1_field,
#billing_address_2_field {
    grid-column: 1 / -1 !important;
}

/* Vor-/Nachname, PLZ/Ort, Tel/Mail jeweils nebeneinander (automatisch durch Grid) */

/* --- Bestellübersichts-Tabelle --- */
.woocommerce-checkout-review-order-table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: 0 !important;
    margin-bottom: 0 !important;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    border: 0 !important;
    padding: 8px 4px !important;
    font-size: 0.88rem !important;
    color: #3a5a6e !important;
}

.woocommerce-checkout-review-order-table thead th {
    font-size: 0.78rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #6a8a9a !important;
    border-bottom: 1px solid rgba(58, 90, 110, 0.12) !important;
    padding-bottom: 10px !important;
    font-family: 'Nunito', sans-serif !important;
    font-weight: 700 !important;
}

.woocommerce-checkout-review-order-table tbody .cart_item td {
    border-bottom: 1px solid rgba(58, 90, 110, 0.07) !important;
    padding: 10px 4px !important;
}

.woocommerce-checkout-review-order-table .cart-subtotal,
.woocommerce-checkout-review-order-table .woocommerce-shipping-totals {
    border-top: 1px solid rgba(58, 90, 110, 0.1) !important;
}

.woocommerce-checkout-review-order-table .order-total {
    border-top: 2px solid rgba(58, 90, 110, 0.18) !important;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    padding-top: 12px !important;
}

/* --- Gutschein: gleicher Stil wie Summary-Bar --- */
body.woocommerce-checkout .fehnleev-col-extras .woocommerce-form-coupon-toggle {
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.woocommerce-checkout .fehnleev-col-extras .woocommerce-form-coupon-toggle div.woocommerce-info {
    background: rgba(58, 90, 110, 0.05) !important;
    border: 1px solid rgba(58, 90, 110, 0.12) !important;
    border-radius: 10px !important;
    padding: 14px 18px !important;
    margin: 0 !important;
    font-size: 0.85rem !important;
    color: #3a5a6e !important;
    box-shadow: none !important;
    outline: none !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* Wenn Coupon-Form offen: Info-Box unten flach */
body.woocommerce-checkout .fehnleev-col-extras .checkout_coupon:not([style*="none"]) ~ .woocommerce-form-coupon-toggle div.woocommerce-info,
body.woocommerce-checkout .fehnleev-col-extras .woocommerce-form-coupon-toggle + .checkout_coupon:not([style*="none"]) {
    border-radius: 0 0 10px 10px !important;
}

body.woocommerce-checkout .fehnleev-col-extras .woocommerce-form-coupon-toggle:has(+ .checkout_coupon:not([style*="none"])) div.woocommerce-info {
    border-bottom: 0 !important;
    border-radius: 10px 10px 0 0 !important;
}

.fehnleev-col-extras .woocommerce-form-coupon-toggle .woocommerce-info::before {
    display: none !important;
}

body.woocommerce-checkout .fehnleev-col-extras .woocommerce-form-coupon-toggle a.showcoupon {
    color: #6B8FA3 !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin-left: auto !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    text-decoration: none !important;
    box-shadow: none !important;
    white-space: nowrap !important;
}

body.woocommerce-checkout .fehnleev-col-extras .woocommerce-form-coupon-toggle a.showcoupon:hover {
    color: #3a5a6e !important;
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

.fehnleev-col-extras .checkout_coupon {
    margin: 0 !important;
    padding: 14px 18px !important;
    border: 1px solid rgba(58, 90, 110, 0.12) !important;
    border-top: 0 !important;
    border-radius: 0 0 10px 10px !important;
    background: rgba(58, 90, 110, 0.05) !important;
    gap: 10px !important;
}

/* Wenn sichtbar, auf flex umschalten */
.fehnleev-col-extras .checkout_coupon[style*="block"],
.fehnleev-col-extras .checkout_coupon[style*="flex"] {
    display: flex !important;
    align-items: center !important;
}

/* Keine Slide-Animation — sofort ein/aus */
.fehnleev-col-extras .checkout_coupon {
    transition: none !important;
    animation: none !important;
}

/* Wenn Coupon-Form offen: Toggle unteren Radius entfernen */
.fehnleev-col-extras .woocommerce-form-coupon-toggle + .checkout_coupon[style*="block"] ~ .woocommerce-form-coupon-toggle .woocommerce-info,
.fehnleev-col-extras .checkout_coupon:not([style*="none"]) {
    border-radius: 0 0 10px 10px !important;
}

.fehnleev-col-extras .checkout_coupon input#coupon_code {
    flex: 1 !important;
    border: 1px solid rgba(58, 90, 110, 0.2) !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 0.85rem !important;
    font-family: 'Nunito', sans-serif !important;
    color: #3a5a6e !important;
    background: #fff !important;
    width: auto !important;
}

.fehnleev-col-extras .checkout_coupon input#coupon_code:focus {
    border-color: #6B8FA3 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(107, 143, 163, 0.18) !important;
}

.fehnleev-col-extras .checkout_coupon .button {
    background: #3a5a6e !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 10px 20px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    font-family: 'Nunito', sans-serif !important;
    border: 0 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: background-color 0.3s ease, transform 0.3s ease !important;
}

.fehnleev-col-extras .checkout_coupon .button:hover {
    background: #6B8FA3 !important;
    transform: translateY(-1px) !important;
}

/* --- Jetzt-kaufen-Button --- */
#place_order {
    width: 100% !important;
    padding: 15px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    font-family: 'Nunito', sans-serif !important;
    border-radius: 50px !important;
    background: linear-gradient(135deg, #3a5a6e 0%, #1e5a7a 100%) !important;
    color: #fff !important;
    border: 0 !important;
    cursor: pointer !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    letter-spacing: 0.03em !important;
    display: block !important;
}

#place_order:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(30, 90, 122, 0.35) !important;
}

/* --- PayPal: Express-Checkout-Bereich ausblenden (doppelte Buttons) --- */
.wcpay-express-checkout-wrapper,
.wcpay-payment-request-button-container,
.wcpay-payment-request-button-separator-container,
#wcpay-express-checkout-element,
.wc-express-checkout-section,
.ppcp-button-checkout-separator,
#ppc-button-checkout,
#ppc-button-mini-cart {
    display: none !important;
}

/* PayPal-Button innerhalb payment_box ausblenden — der echte Button erscheint beim Bestellabschluss */
#payment .payment_method_ppcp-gateway .payment_box .paypal-button-container,
#payment .payment_method_ppcp-gateway .payment_box [id^="ppc-button"],
#payment .payment_method_paypal .payment_box .paypal-button-container,
#payment .payment_method_paypal .payment_box [id^="ppc-button"] {
    display: none !important;
}

/* --- Cart: Tabelle modernisieren --- */
.woocommerce-cart table.shop_table {
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 6px !important;
    width: 100% !important;
}

.woocommerce-cart table.shop_table thead th {
    background: transparent !important;
    border: 0 !important;
    color: #6a8a9a !important;
    font-size: 0.78rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    font-weight: 700 !important;
    padding: 6px 12px !important;
}

.woocommerce-cart table.shop_table tr.cart_item td {
    border: 0 !important;
    padding: 12px !important;
    vertical-align: middle !important;
    background: #fff !important;
}

.woocommerce-cart table.shop_table tr.cart_item td:first-child {
    border-radius: 12px 0 0 12px !important;
}

.woocommerce-cart table.shop_table tr.cart_item td:last-child {
    border-radius: 0 12px 12px 0 !important;
}

.woocommerce-cart table.shop_table td.product-thumbnail img {
    border-radius: 8px !important;
    width: 64px !important;
    height: 64px !important;
    object-fit: cover !important;
}

.woocommerce-cart table.shop_table td.product-name a {
    font-family: 'Playfair Display', serif !important;
    font-weight: 700 !important;
    color: #3a5a6e !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
}

.woocommerce-cart table.shop_table td.product-price,
.woocommerce-cart table.shop_table td.product-subtotal {
    color: #8B5A7A !important;
    font-weight: 700 !important;
}

/* Cart Totals Panel */
.woocommerce-cart .cart-collaterals .cart_totals {
    background: #fff !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: 0 4px 16px rgba(58, 90, 110, 0.1) !important;
    border: 1px solid rgba(58, 90, 110, 0.08) !important;
}

.woocommerce-cart .cart_totals h2 {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #3a5a6e !important;
    margin-bottom: 16px !important;
}

.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td {
    border: 0 !important;
    border-bottom: 1px solid rgba(58, 90, 110, 0.08) !important;
    padding: 10px 4px !important;
    font-size: 0.92rem !important;
    color: #3a5a6e !important;
}

.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    border-bottom: 0 !important;
    border-top: 2px solid rgba(58, 90, 110, 0.15) !important;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    width: 100% !important;
    text-align: center !important;
    padding: 15px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    font-family: 'Nunito', sans-serif !important;
    border-radius: 50px !important;
    background: linear-gradient(135deg, #3a5a6e 0%, #1e5a7a 100%) !important;
    color: #fff !important;
    border: 0 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    display: block !important;
    letter-spacing: 0.03em !important;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(30, 90, 122, 0.35) !important;
}



/* --- Bottom-Row: AGB + Gutschein + Button (volle Breite) --- */
.fehnleev-checkout-bottom {
    margin-top: 24px !important;
    padding-top: 20px !important;
    border-top: 1px solid rgba(58, 90, 110, 0.12) !important;
}

.fehnleev-checkout-bottom .woocommerce-terms-and-conditions-wrapper,
.fehnleev-checkout-bottom .wc-gzd-checkout-checkboxes,
.fehnleev-checkout-bottom .woocommerce-privacy-policy-text {
    margin-bottom: 12px !important;
    font-size: 0.88rem !important;
    color: #3a5a6e !important;
}

.fehnleev-checkout-bottom #place_order {
    margin-top: 14px !important;
}

/* --- Responsive Checkout --- */
@media (max-width: 900px) {
    .fehnleev-details-grid {
        grid-template-columns: 1fr !important;
    }

    .fehnleev-summary-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    td.fehnleev-summary-thumb {
        width: 92px !important;
    }

    td.fehnleev-summary-thumb img {
        width: 84px !important;
        height: 84px !important;
    }
}

@media (max-width: 480px) {
    .woocommerce-billing-fields__field-wrapper {
        grid-template-columns: 1fr !important;
    }

    .fehnleev-summary-items {
        flex-direction: column !important;
        gap: 4px !important;
    }

    td.fehnleev-summary-thumb {
        width: 84px !important;
    }

    td.fehnleev-summary-thumb img {
        width: 76px !important;
        height: 76px !important;
    }
}

/* fix-027: Checkout Login-Hinweis - CTA rechts + Kartenstil */
body.woocommerce-checkout .woocommerce-form-login-toggle {
    margin: 0 0 14px !important;
}

body.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    background: rgba(58, 90, 110, 0.05) !important;
    border: 1px solid rgba(58, 90, 110, 0.16) !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    color: #3a5a6e !important;
    box-shadow: none !important;
}

body.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info::before {
    display: none !important;
}

body.woocommerce-checkout .woocommerce-form-login-toggle .showlogin {
    margin-left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 9px 14px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(58, 90, 110, 0.28) !important;
    background: #f7fbff !important;
    color: #26485d !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

body.woocommerce-checkout .woocommerce-form-login-toggle .showlogin:hover {
    background: #eef6fc !important;
    border-color: rgba(58, 90, 110, 0.45) !important;
    color: #1f3f52 !important;
    transform: translateY(-1px) !important;
}
