/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Template: astra
Author: KOLLSTORE
Description: Child theme of Astra for KOLLSTORE.
Version: 1.0.0
Text Domain: astra-child
*/

/* ==========================================================================
   KOLLSTORE – GESAMTES SHOP-CSS (bereinigt)
   Markenfarben: Navy #142846 | Orange #FA960F
   ========================================================================== */

/* ==========================================================================
   1. SNEAKER-KARTEN (PRODUKT-GRID)
   ========================================================================== */

/* Basis-Karte für die Sneaker */
ul.products li.product,
.wc-block-product,
.wp-block-woocommerce-product-template li,
.wp-block-woocommerce-product-collection li,
.products .product {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out !important;
}

/* Schwebe-Effekt beim Drüberfahren (Hover) */
ul.products li.product:hover,
.wc-block-product:hover,
.wp-block-woocommerce-product-template li:hover,
.wp-block-woocommerce-product-collection li:hover,
.products .product:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 24px rgba(20, 40, 70, 0.15) !important;
}

/* Bild-Einstellungen (quadratisches Format, zentriert) */
ul.products li.product img,
.wc-block-product img,
.wp-block-woocommerce-product-template li img,
.products .product img {
    width: 100% !important;
    height: auto !important;
    max-height: 260px !important;
    object-fit: contain !important;
    aspect-ratio: 1 / 1;
    transition: transform 0.4s ease-in-out !important;
}

/* Sneaker-Zoom beim Hover */
ul.products li.product:hover img,
.wc-block-product:hover img,
.wp-block-woocommerce-product-template li:hover img,
.products .product:hover img {
    transform: scale(1.06) !important;
}

/* Produkttitel auf einheitliche Höhe von 2 Zeilen */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.products .product .woocommerce-loop-product__title {
    padding: 0 12px;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
    min-height: 2.8em !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Preis hervorheben */
.woocommerce ul.products li.product .price,
.products .product .price {
    padding: 0 12px;
    padding-bottom: 15px;
    display: block;
    font-weight: 700 !important;
    color: #111111 !important;
}

/* ==========================================================================
   2. WOOCOMMERCE BEREINIGUNGEN & SORTIERUNG (CLEAN UP)
   ========================================================================== */

/* "Alle X Ergebnisse werden angezeigt" ausblenden */
.woocommerce-result-count,
.ast-woocommerce-container .woocommerce-result-count {
    display: none !important;
}

/* Variations-Vorschauen (Größen) unter den Produkten ausblenden */
.products li.product .woo-variation-swatches,
.products li.product .wvs-archive-variations,
.products li.product .variations_form,
.products li.product .wvs-pro-product,
.products li.product .swatches-wrapper {
    display: none !important;
}

/* "inkl. MwSt." auf Shop-/Kategorie-Seiten ausblenden */
.woocommerce-price-suffix,
.products .price .woocommerce-price-suffix,
.archive .price .woocommerce-price-suffix {
    display: none !important;
}

/* Sortier-Zeile: Abstand */
.woocommerce-ordering {
    margin-top: 25px !important;
    margin-bottom: 25px !important;
}

/* Sortier-Dropdown clean stylen */
.woocommerce .woocommerce-ordering select {
    padding: 8px 32px 8px 12px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    background-color: #ffffff !important;
    font-weight: 500 !important;
    color: #666666 !important;
    font-size: 0.9rem !important;
    cursor: pointer;
    outline: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 16px !important;
}

/* ==========================================================================
   3. STICKY HEADER (NAVIGATION)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

.scroll-down .site-header {
    transform: translateY(-100%);
}

.scroll-up .site-header {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   4. SEITEN-LAYOUT & ERGONOMIE (GUTENBERG)
   ========================================================================== */

.entry-content > *:not(style):not(script) {
    margin-bottom: 60px;
}

.wp-block-media-text {
    margin-bottom: 20px !important;
}

.brand-btn {
    margin-top: 10px;
}

/* ==========================================================================
   5. NEWSLETTER BEREICH (KOLLSTORE DESIGN)
   ========================================================================== */

.sib-form-block,
[id*="sib-form"] {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 24px;
}

.sib-form-block input[type="text"],
.sib-form-block input[type="email"] {
    border-radius: 8px !important;
    border: none !important;
    padding: 12px 16px !important;
}

.kollstore-newsletter {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.kollstore-newsletter .newsletter-title {
    color: #FA960F;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.kollstore-newsletter .newsletter-subtitle {
    color: #ffffff;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 20px;
}

.kollstore-newsletter .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.kollstore-newsletter .input-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.kollstore-newsletter .input-group label {
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.kollstore-newsletter .input-group input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    background-color: #ffffff;
    color: #111111;
    font-size: 1rem;
    box-sizing: border-box;
}

.kollstore-newsletter .newsletter-submit-btn {
    background-color: #FA960F;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 14px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    width: 100%;
    margin-top: 5px;
}

.kollstore-newsletter .newsletter-submit-btn:hover {
    background-color: #142846;
}

/* ==========================================================================
   6. FOOTER OPTIMIERUNG
   ========================================================================== */
.footer-widget-area {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-widget-area .widget {
    flex: 1;
    min-width: 200px;
}

/* ==========================================================================
   7. EINZELPRODUKT-SEITE OPTIMIERUNG
   ========================================================================== */

.single-product .quantity input.qty {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 10px;
}

/* "In den Warenkorb"-Button: groß, breit, Markenfarbe */
.single-product button.single_add_to_cart_button.button {
    background-color: #FA960F !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    width: 100% !important;
    padding: 16px 30px !important;
    font-size: 1rem !important;
    font-weight: bold !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    margin-top: 15px !important;
    transition: background-color 0.2s ease-in-out !important;
}

.single-product button.single_add_to_cart_button.button:hover {
    background-color: #142846 !important;
}

.single-product .quantity {
    margin-bottom: 10px !important;
}

/* ==========================================================================
   10. ÜBERSCHRIFTEN (TITEL-TUNING)
   ========================================================================== */

.ast-archive-description .page-title,
.woocommerce-products-header__title,
h1.page-title {
    font-size: 2rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-top: 140px !important; /* Rettet den Titel vor dem Sticky-Header */
    margin-bottom: 20px !important;
    display: block !important;
}

/* ==========================================================================
   11. ASTRA EINKAUFSWAGEN-ICON IMMER ANZEIGEN
   ========================================================================== */

.ast-on-card-cart,
.astra-shop-thumbnail-wrap .ast-on-card-cart,
.ast-add-to-cart-on-image .ast-on-card-cart {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    transform: none !important;
    bottom: 15px !important;
    right: 15px !important;
}

.ast-on-card-cart {
    background-color: #ffffff !important;
    color: #111111 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    align-items: center;
    justify-content: center;
    z-index: 10 !important;
}

.ast-on-card-cart:hover {
    background-color: #FA960F !important;
    color: #ffffff !important;
}

/* ==========================================================================
   12. SNEAKER-GRÖSSEN (VARIATIONEN RASTER)
   ========================================================================== */

.woocommerce div.product form.cart .variations {
    margin-bottom: 25px !important;
    width: 100% !important;
}

.woocommerce div.product form.cart .variations td {
    padding: 5px 0 !important;
    display: block !important;
}

.variations_form .variable-items-wrapper {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr)) !important;
    gap: 8px !important;
    margin-top: 10px !important;
}

.variations_form .variable-item.button-variable-item {
    padding: 10px 6px !important;
    text-align: center !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    background: #ffffff !important;
    color: #111111 !important;
    min-width: 0 !important;
    box-shadow: none !important;
    transition: all 0.2s ease-in-out !important;
}

.variations_form .variable-item.button-variable-item.selected,
.variations_form .variable-item.button-variable-item.selected:hover {
    border-color: #FA960F !important;
    background-color: #FA960F !important;
    color: #ffffff !important;
}

/* ==========================================================================
   14. PRODUKT-GALERIE (THUMBNAILS)
   ========================================================================== */

.woocommerce-product-gallery .flex-control-thumbs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding-top: 15px !important;
    margin: 30px 0 0 0 !important;
}

.woocommerce-product-gallery .flex-control-thumbs li {
    flex: 1 !important;
    min-width: 60px !important;
    max-width: 80px !important;
    margin: 0 !important;
    float: none !important;
    list-style: none !important;
}

.woocommerce-product-gallery .flex-control-thumbs li img {
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    padding: 4px !important;
    background: #ffffff !important;
    transition: border-color 0.2s ease-in-out !important;
}

.woocommerce-product-gallery .flex-control-thumbs li img.flex-active,
.woocommerce-product-gallery .flex-control-thumbs li img:hover {
    border-color: #FA960F !important;
}

/* ==========================================================================
   15. PRODUKTSEITE ABSTÄNDE & LAYOUT
   ========================================================================== */

.woocommerce div.product {
    margin-top: 40px !important;
    gap: 40px !important;
}

.woocommerce-tabs.wc-tabs-wrapper {
    margin-top: 70px !important;
    border-top: 1px solid #e2e8f0 !important;
    padding-top: 30px !important;
}

/* ==========================================================================
   17. PRODUKTSEITEN-RESET (ABSTAND ZUM STICKY HEADER)
   ========================================================================== */

.single-product #content .site-content {
    padding-top: 180px !important;
}

.woocommerce div.product .summary.entry-summary {
    padding-top: 15px !important;
}

.woocommerce div.product .summary.entry-summary .product_title {
    margin-bottom: 15px !important;
    line-height: 1.2 !important;
}

/* ==========================================================================
   18. WARENKORB (TABELLE + SUMME, kompakt)
   ========================================================================== */

/* Produktnamen im Warenkorb dunkel statt orange */
.woocommerce-cart table.cart td.product-name a {
    color: #142846 !important;
    font-weight: 600;
    text-decoration: none;
}

.woocommerce-cart table.cart td.product-name a:hover {
    color: #FA960F !important;
}

/* Gutschein-Feld im Warenkorb ausblenden */
.woocommerce-cart table.cart td.actions .coupon {
    display: none !important;
}

/* "Warenkorb aktualisieren"-Button ausblenden */
.woocommerce-cart table.cart td.actions .button[name="update_cart"] {
    display: none !important;
}

/* --- Summen-Box --- */

.woocommerce-cart .cart-collaterals {
    width: 100% !important;
    display: block !important;
}

.woocommerce-cart .cart-collaterals .cart_totals {
    width: 45% !important;
    min-width: 350px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

.woocommerce-cart .cart_totals h2 {
    color: #142846 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    padding: 12px 16px !important;
    margin: 0 !important;
}

.woocommerce-cart .cart_totals table {
    margin: 0 !important;
}

.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td {
    font-size: 15px !important;
    padding: 6px 16px !important;
    line-height: 1.3 !important;
}

.woocommerce-cart .cart_totals .woocommerce-Price-amount,
.woocommerce-cart .cart_totals .woocommerce-Price-amount bdi {
    color: #142846 !important;
}

.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total .woocommerce-Price-amount {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #142846 !important;
}

.woocommerce-cart .cart_totals small {
    font-size: 12px !important;
    color: #142846 !important;
    opacity: 0.75 !important;
}

.woocommerce-cart .cart_totals tr {
    display: block !important;
    width: 100% !important;
}

.woocommerce-cart .cart_totals tr td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Nachrichten-Zeilen (Klarna etc.): kompakt, aber mit kleinem Abstand
   zueinander, damit nichts verschmilzt */
.woocommerce-cart .cart_totals tr td[colspan] {
    position: static !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    white-space: normal !important;
    padding: 6px 16px !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.4 !important;
    clear: both !important;
}

.woocommerce-cart .cart_totals tr td[colspan] *,
.woocommerce-cart .cart_totals tr td[colspan] p,
.woocommerce-cart .cart_totals tr td[colspan] div {
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.4 !important;
}

/* WICHTIG: max-height NUR auf Nachrichten-iframes (Klarna-Badge),
   NICHT auf Zahlungs-Buttons (Google Pay etc. wären sonst abgeschnitten) */
.woocommerce-cart .cart_totals tr td[colspan] iframe {
    position: static !important;
    height: auto !important;
    max-height: 28px !important;
    min-height: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 !important;
}

/* PayPal-Finanzierungshinweis ("30 Tage später" / Raten) ausblenden */
.woocommerce-cart .cart_totals [id*="paypal-messages"],
.woocommerce-cart .cart_totals [class*="paypal-messages"],
.woocommerce-cart .cart_totals [data-pp-message] {
    display: none !important;
}

/* SEPA-Button innerhalb der PayPal-Buttons ausblenden */
div[data-funding-source="sepa"] {
    display: none !important;
}

/* "Weiter zur Kasse"-Button */
.woocommerce-cart .checkout-button {
    background-color: #FA960F !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 12px 20px !important;
    border: none !important;
    border-radius: 4px !important;
    margin: 12px 16px !important;
    width: calc(100% - 32px) !important;
    transition: background-color 0.2s ease-in-out !important;
}

.woocommerce-cart .checkout-button:hover {
    background-color: #142846 !important;
}

/* Button-Bereich (PayPal / Google Pay / Checkout): einheitliche Abstände */
.woocommerce-cart .cart_totals .wc-proceed-to-checkout {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 0 16px 16px !important;
}

.woocommerce-cart .cart_totals .wc-proceed-to-checkout .button,
.woocommerce-cart .cart_totals .wc-proceed-to-checkout .checkout-button {
    margin: 0 !important;
    width: 100% !important;
}

/* Zahlungs-Buttons (PayPal/Google Pay) NICHT abschneiden */
.woocommerce-cart .cart_totals .wc-proceed-to-checkout > div,
.woocommerce-cart .cart_totals .wc-proceed-to-checkout iframe {
    height: auto !important;
    min-height: 45px !important;
    max-height: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .woocommerce-cart .cart-collaterals .cart_totals {
        width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* ==========================================================================
   19. KASSE (CHECKOUT) – LAYOUT & ABSTÄNDE
   ========================================================================== */

.woocommerce-checkout h1.entry-title,
.woocommerce-checkout .page-title {
    color: #142846 !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    margin-top: 140px !important;
    margin-bottom: 30px !important;
}

.woocommerce-checkout .woocommerce {
    padding-bottom: 60px !important;
}

.woocommerce-checkout #customer_details,
.woocommerce-checkout .col2-set {
    margin-bottom: 0 !important;
}

.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2 {
    padding: 0 20px !important;
}

/* Abschnitts-Überschriften */
.woocommerce-checkout h3#billing_fields_heading,
.woocommerce-checkout h3#ship-to-different-address,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout h3 {
    color: #142846 !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #FA960F !important;
}

.woocommerce-checkout .form-row {
    margin-bottom: 18px !important;
}

.woocommerce-checkout .form-row label {
    color: #142846 !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    margin-bottom: 6px !important;
    display: block !important;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 12px 14px !important;
    font-size: 0.95rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease-in-out !important;
}

.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
    border-color: #FA960F !important;
    outline: none !important;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle {
    margin-bottom: 25px !important;
    border-radius: 6px !important;
}

/* Bestellübersicht rechts */
.woocommerce-checkout #order_review,
.woocommerce-checkout table.woocommerce-checkout-review-order-table {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 20px !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table th,
.woocommerce-checkout table.woocommerce-checkout-review-order-table td {
    color: #142846 !important;
    font-size: 15px !important;
    padding: 12px 8px !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout table.woocommerce-checkout-review-order-table .order-total .woocommerce-Price-amount {
    font-size: 17px !important;
    font-weight: 700 !important;
}

/* Zahlungsarten-Bereich */
.woocommerce-checkout #payment {
    margin-top: 25px !important;
    border-radius: 8px !important;
}

.woocommerce-checkout #payment ul.payment_methods {
    padding: 15px !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
    padding: 12px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

/* Kreditkarten-Icons neben "Karte" */
.woocommerce-checkout .payment_methods li img,
.woocommerce-checkout #payment .wc-credit-card-form img,
.woocommerce-checkout .payment_method_ppcp-gateway img {
    height: 24px !important;
    width: auto !important;
    margin-left: 4px !important;
    vertical-align: middle !important;
}

/* "Zahlungspflichtig bestellen"-Button */
.woocommerce-checkout #place_order {
    background-color: #FA960F !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 16px 20px !important;
    border: none !important;
    border-radius: 4px !important;
    width: 100% !important;
    margin-top: 15px !important;
    transition: background-color 0.2s ease-in-out !important;
}

.woocommerce-checkout #place_order:hover {
    background-color: #142846 !important;
}

/* ==========================================================================
   MOBILE (unter 768px) – Kasse
   ========================================================================== */
@media (max-width: 768px) {
    .woocommerce-checkout h1.entry-title,
    .woocommerce-checkout .page-title {
        font-size: 1.6rem !important;
        margin-top: 100px !important;
    }

    .woocommerce-checkout .col-1,
    .woocommerce-checkout .col-2 {
        padding: 0 10px !important;
        width: 100% !important;
    }

    .woocommerce-checkout input.input-text,
    .woocommerce-checkout select,
    .woocommerce-checkout textarea {
        font-size: 16px !important; /* verhindert Auto-Zoom auf iOS */
        padding: 12px !important;
    }

    .woocommerce-checkout #order_review,
    .woocommerce-checkout table.woocommerce-checkout-review-order-table {
        padding: 14px !important;
        margin-top: 20px !important;
    }

    .woocommerce-checkout #place_order {
        font-size: 15px !important;
        padding: 15px !important;
    }
}

/* ==========================================================================
   20. KOLLSTORE BUTTON-STANDARD (einheitlich für alle CTAs)
   ========================================================================== */

.kollstore-btn,
.cta-button,
.brand-btn,
.kollstore-newsletter .newsletter-submit-btn,
.single-product button.single_add_to_cart_button.button,
.woocommerce-cart .checkout-button,
.woocommerce-checkout #place_order {
    display: inline-block;
    background-color: #FA960F !important;
    color: #ffffff !important;
    font-family: 'Poppins', Arial, sans-serif !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 14px 32px !important;
    border: none !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
}

.kollstore-btn:hover,
.cta-button:hover,
.brand-btn:hover,
.kollstore-newsletter .newsletter-submit-btn:hover,
.single-product button.single_add_to_cart_button.button:hover,
.woocommerce-cart .checkout-button:hover,
.woocommerce-checkout #place_order:hover {
    background-color: #142846 !important;
    color: #ffffff !important;
}

.kollstore-btn:active,
.cta-button:active {
    transform: scale(0.98);
}


/* ==========================================================================
   21a. HINWEIS "BITTE WÄHLE ZUERST EINE GRÖSSE AUS"
   Wird per JS (functions.php) eingeblendet, wenn ohne Größenauswahl
   auf "In den Warenkorb" geklickt wird.
   ========================================================================== */
.koll-size-hint {
    color: #ffffff !important;
    background-color: #142846 !important;
    border-radius: 4px !important;
    padding: 10px 14px !important;
    margin: 10px 0 0 0 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
}

.koll-size-hint-shake {
    animation: koll-size-hint-shake 0.4s ease-in-out;
}

@keyframes koll-size-hint-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* ==========================================================================
   21. GRÖSSEN-SWATCHES: SICHTBARE AUSWAHL-MARKIERUNG
   Plugin "Variation Swatches for WooCommerce" (Emran Ahmed), Prefix "cfvsw-".
   Ausgewählte Größe war optisch nicht von den übrigen zu unterscheiden.
   ========================================================================== */
.cfvsw-swatches-option.cfvsw-label-option {
    border: 1px solid #142846 !important;
    border-radius: 4px !important;
    background-color: #ffffff !important;
    color: #142846 !important;
    transition: all 0.15s ease-in-out !important;
}

.cfvsw-swatches-option.cfvsw-label-option.cfvsw-selected-swatch {
    border: 2px solid #FA960F !important;
    background-color: #FA960F !important;
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .cfvsw-swatches-option.cfvsw-label-option {
        min-width: 44px !important;
        min-height: 44px !important;
    }
}

/* ==========================================================================
   22. FOOTER-LINKS MOBIL UNTEREINANDER (statt zusammenlaufend)
   Astras "horizontal"-Footermenü packt kurze Linktexte (z. B. FAQ,
   Kontakt, Impressum) auf Mobile ohne Abstand in dieselbe Zeile.
   ========================================================================== */
@media (max-width: 768px) {
    .footer-nav-wrap .astra-footer-mobile-horizontal-menu {
        display: block !important;
    }

    .footer-nav-wrap .astra-footer-mobile-horizontal-menu li {
        display: block !important;
        margin: 0 0 10px 0 !important;
    }
}

/* ==========================================================================
   23. LEERE "MARKE"-TAB AUSBLENDEN (Perfect-Brands-Plugin-Rest)
   Der Tab "Marke" auf Produktseiten ist bei allen Produkten leer
   (keine Inhalte hinterlegt) und wird daher versteckt.
   ========================================================================== */
.woocommerce-tabs li.pwb_tab_tab,
.woocommerce-tabs #tab-pwb_tab {
    display: none !important;
}

/* Ist "Marke" der einzige Tab, komplette Tab-Box (Rahmen/Abstand) mitverstecken,
   damit keine leere Box mit Trennlinie übrig bleibt */
.woocommerce-tabs:has(ul.tabs > li:only-child.pwb_tab_tab) {
    display: none !important;
}

/* ==========================================================================
   24. ALL-BRANDS-SEITE
   ========================================================================== */
.koll-brands-intro {
    text-align: center;
    color: #6b7280;
    font-size: 1rem;
    margin: 0 0 30px 0;
}

.koll-brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.koll-brand-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 28px 20px;
    text-decoration: none !important;
    transition: border-color 0.2s ease-in-out, transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.koll-brand-tile:hover {
    border-color: #FA960F;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(20, 40, 70, 0.1);
}

.koll-brand-tile__logo {
    max-height: 40px;
    width: auto;
    margin-bottom: 12px;
    object-fit: contain;
}

.koll-brand-tile__name {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: #142846;
    transition: color 0.2s ease-in-out;
}

.koll-brand-tile:hover .koll-brand-tile__name {
    color: #FA960F;
}

.koll-brand-tile__count {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #6b7280;
}

@media (max-width: 768px) {
    .koll-brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   99. FIX: Spectra "columns-4" Kollision (Zeitungsspalten-Bug im Footer)
   ========================================================================== */
body.columns-1, body.columns-2, body.columns-3, body.columns-4,
body.columns-5, body.columns-6 {
    columns: auto !important;
}
