/*
 Theme Name:   Catch Store Child
 Template:     catch-store
 Version:      1.0.0
 Description:  Koerner Simpleshop BSS Communicator Shop Theme
*/

/* Put your custom CSS below this line */

/* Checkout place-order button: force gradient */
#place_order,
.woocommerce #place_order,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce a.button.alt,
.wc-block-components-checkout-place-order-button {
    background: linear-gradient(to right, #c62828, #e65100) !important;
    background-color: transparent !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    font-style: italic;
    font-weight: bold;
}
#place_order:hover,
.woocommerce #place_order:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce a.button.alt:hover,
.wc-block-components-checkout-place-order-button:hover {
    background: linear-gradient(to right, #b71c1c, #bf360c) !important;
    color: #fff !important;
}

/* Product title in primary color */
.single-product .product_title {
    color: rgb(198, 22, 24);
}

/* Hide "Angebot!" badge everywhere */
.onsale {
    display: none !important;
}

/* Prevent product card link hover color from affecting prices */
.product-container a .vpa-paketpreis,
.product-container a:hover .vpa-paketpreis,
.product-container a:focus .vpa-paketpreis {
    color: #333 !important;
}
.product-container a .vpa-nominierungspreis,
.product-container a:hover .vpa-nominierungspreis,
.product-container a:focus .vpa-nominierungspreis {
    color: #333 !important;
}

/* Sale price: two-line display */
.price del.vpa-paketpreis,
.price ins.vpa-nominierungspreis {
    display: block;
    text-decoration: none;
}
.price del.vpa-paketpreis {
    text-decoration: line-through;
    opacity: 0.7;
}
.price ins.vpa-nominierungspreis {
    font-weight: bold;
    padding: 0;
    margin-top: 0;
}

.no-sidebar .alignwide {
    margin-left: unset;
    margin-right: unset;
    max-width: unset;
}

.breadcrumb-area,
.woocommerce-breadcrumb {
    display: none;
}

.product_meta .posted_in {
    display: none !important;
}

/* Gray background behind main content area; stretch to push footer to bottom */
#content {
    background-color: #f5f5f5;
}

/* Sticky footer: page fills at least full viewport height */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
#content {
    flex: 1;
}

/* 1px gray line below header */
#masthead {
    border-bottom: 1px solid #ddd;
}

/* Header: logo left, cart right — hide everything else */
.site-header-right {
    display: none !important;
}

/* Position cart alongside logo, vertically centered */
#masthead {
    position: relative;
}
#site-header-primary-cart-wrapper {
    position: absolute;
    top: 0;
    right: 20px;
    bottom: 0;
    display: flex;
    align-items: center;
}
#site-header-cart {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Hide account icon, keep only cart */
#site-header-cart li.menu-inline:not(.site-cart) {
    display: none !important;
}

/* Always hide mini-cart dropdown */
#site-header-cart ul {
    display: none;
}

/* Show dropdown on hover/focus on desktop only (≥ 64em) */
@media screen and (min-width: 64em) {
    #site-header-cart .site-cart:hover ul,
    #site-header-cart .site-cart.focus ul {
        display: block;
    }
}

/* Mobile (< 600px): cart in own row below logo, with total price */
@media screen and (max-width: 599px) {
    #masthead {
        position: static;
    }
    #site-header-primary-cart-wrapper {
        position: static;
        display: flex;
        justify-content: flex-end;
        padding: 6px 20px 10px;
        border-top: 1px solid #eee;
    }
    #site-header-cart .site-cart-contents .amount,
    #site-header-cart .site-cart-contents .sep {
        display: inline !important;
    }
}

header.entry-header {
    display: none;
}

#tertiary {
    display: none;
}

/* Global button style: gradient matching footer */
.button,
a.button,
button.button,
input.button,
input[type="submit"],
button[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .wc-proceed-to-checkout a.button,
.woocommerce .place-order .button {
    background: linear-gradient(to right, #c62828, #e65100) !important;
    background-color: transparent !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    font-style: italic;
    font-weight: bold;
}
.button:hover,
a.button:hover,
button.button:hover,
input.button:hover,
input[type="submit"]:hover,
button[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .wc-proceed-to-checkout a.button:hover,
.woocommerce .place-order .button:hover {
    background: linear-gradient(to right, #b71c1c, #bf360c) !important;
    color: #fff !important;
}

/* Voucher form */
.vpa-voucher-form input[type="text"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid #555;
    border-radius: 0;
    padding: 12px 16px;
    font-size: 16px;
    margin-bottom: 10px;
}
.vpa-voucher-form .vpa-submit-btn {
    background: linear-gradient(to right, #c62828, #e65100);
    color: #fff;
    font-style: italic;
    font-weight: bold;
    border: none;
    padding: 12px 28px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 0;
    text-transform: none;
    letter-spacing: 0;
}
.vpa-voucher-form .vpa-submit-btn:hover {
    background: linear-gradient(to right, #b71c1c, #bf360c);
    color: #fff;
}

/* Footer bar */
#koerner-footer-bar {
    background: linear-gradient(to right, #c62828, #e65100);
}
.koerner-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}
.koerner-footer-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}
.koerner-footer-menu a,
.koerner-footer-text {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    line-height: 50px;
    white-space: nowrap;
}
.koerner-footer-menu a:hover {
    text-decoration: underline;
}

/* Mobile/tablet: stack menu above text */
@media screen and (max-width: 63.99em) {
    .koerner-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 20px;
        gap: 6px;
    }
    .koerner-footer-menu a,
    .koerner-footer-text {
        line-height: 1.6;
    }
}

/* Hide tab navigation when only one tab is present */
.woocommerce-tabs ul.tabs:has(> li:only-child) {
    display: none;
}
.woocommerce-tabs:has(ul.tabs > li:only-child) .woocommerce-Tabs-panel {
    margin-top: 70px;
}

@media screen and (min-width: 85.375em) {
    .no-sidebar .alignwide {
        margin-left: unset;
        margin-right: unset;
        max-width: unset;
    }
}

@media screen and (min-width: 64em) {
    .content-area {
        float: none;
        margin-right: unset;
        width: auto;
        max-width: unset;
    }
}