/* WooCommerce Allgemein */
.one-inkl-text {
    font-size: 0.65em;
    text-align: center;
    color: #757575;
    margin-top: 5px;
}

/* WooCommerce Single Product */
.payment-logos {
    display: flex;
    flex-direction: row;
    gap: 3px;
    align-items: center;
}

.payment-logos img{
    height: 32px;
}

/* WooCommerce Checkout */
.woocommerce-checkout #payment {
    background: #fff;
    border-radius: var(--border-radius-container);
}

.subline-product-variations {
    font-size: 0.8em;
    font-weight: normal;
}

.screen-reader-text{
    color: #000;
}
.hover-zoom-background {
  position: relative;
  overflow: hidden; /* wichtig, damit nichts "überläuft" */
}

.hover-zoom-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit; /* übernimmt dein Hintergrundbild */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform .6s ease;
  z-index: 0;
}

.hover-zoom-background:hover::before {
  transform: scale(1.2); /* Zoom-Effekt */
}

.hover-zoom-background > * {
  position: relative;
  z-index: 1; /* damit dein Inhalt über dem Pseudo-Element bleibt */
}

.home-big-icon p{
margin-bottom: 5px;
}

del {
    font-size: 0.8em;
    color: #c00;
}

ins {
    text-decoration: none;
}

.active-bar{
    width: 0;
    height: 8px;
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 1;
    background-color: #fbbd08;
    display: block;
}

form.frm-fluent-form label {
    font-size: 0.8em;
    font-weight: 500;
    margin-top: 1em;
    margin-bottom: 5px;
}

button.ff-btn-submit{
    border-radius: var(--border-radius-button) !important;
    color: #fff;
    background: var(--bricks-color-khxtul);
    font-weight: 600;
    padding: 15px 20px;
    line-height: 1em;
    border: 0;
}

button.ff-btn-submit:hover{
background: var(--bricks-color-hlkuvc);
}

.white-box {
    border: 1px solid #ddd;
    border-radius: var(--border-radius-container);
    padding: 25px;
    width: 100%;
}

.method-item {
    display: flex;
    flex-direction: row;
    place-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.white-box .method-item:last-of-type{
    border-bottom: 0;
}

table.clean-table{
    border: 0;
    border-collapse: collapse;  
}
table.clean-table thead tr th {
    text-align: left;
}

table.clean-table thead tr th {
    text-align: left;
    padding: 15px;
}

table.clean-table tbody tr td {
    vertical-align: top;
    padding: 15px;
    border-top: 1px solid #ddd;
}

table.clean-table thead tr th:first-of-type,
table.clean-table tbody tr td:first-of-type{
  padding-left: 0;
}

table.clean-table thead tr th:last-of-type,
table.clean-table tbody tr td:last-of-type{
  padding-right: 0;
}

table.clean-table thead tr th:last-of-type,
table.clean-table tbody tr td:last-of-type{
    text-align: right;
}

.woocommerce-NoticeGroup-checkout {
    text-align: center;
}

.woocommerce-message {
    outline: 0 !important;
}

.ff-default .ff-el-input--label label {
    color: initial;
}

.bricks-search-overlay .bricks-search-inner {
     padding: 20px;
}

#one-filter-button-wrapper {
    display: none;
}

.one-filter-mobile-button {
    background: var(--bricks-color-khxtul);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius-button);
    font-weight: 600;
    cursor: pointer;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1em;
}

.one-filter-mobile-button:hover {
    opacity: 0.9;
}

.one-filter-title {
    font-size: 1em;
    margin-bottom: .5em;
    font-weight: 600;
}

.one-filter-search-container {
    margin-bottom: 1.5em;
}

.one-filter-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.one-filter-search-input, input.one-filter-price-input {
    width: 100%;
    padding: 12px 10px 12px 12px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    background: #fff;
    line-height: 1em;
}

.one-filter-price-input:focus, .one-filter-search-input:focus {
    outline: 2px solid var(--bricks-color-khxtul);
    outline-offset: 2px;
}

.one-filter-search-input{
    padding-right: 38px;
}

.one-filter-search-button {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.2s;
}

.one-filter-search-button:hover {
    color: #0073aa;
}

.one-filter-search-button:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.one-filter-options-box {
    max-height: 300px;
    overflow-y: auto;
}

.category-filter-list {
    display: flex;
    flex-direction: column;
}

.category-filter-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #363636;
    margin: 0;
}

.one-filter-title label{
    color: #363636 !important;
}

.category-filter-checkbox {
    margin-right: .5em;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.one-filter-price-container, .one-filter-brands {
    margin-top: 1.5em;
    padding-top: 1em;
    border-top: 1px solid #ddd;
}

label.one-filter-brand-label {
    color: inherit;
    margin-bottom: 0;
}

.one-filter-price-inputs {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.one-filter-price-input-wrapper {
    flex: 1;
}

.one-filter-price-label {
    display: block;
    font-size: 0.9em;
    margin-bottom: 0.5em;
    color: #363636;
}

.one-filter-price-input {
    width: 100%;
    padding: 0.5em;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.one-filter-price-separator {
    padding-bottom: 0.25em;
    color: #666;
}

button.one-filter-submit-button {
    background: var(--bricks-color-khxtul) !important;
    width: 100%;
    margin-top: 1em;
    text-align: center;
    padding: 12px 6px;
    border-radius: var(--border-radius-button);
    color: #fff;
    font-weight: 600;
}

button.one-filter-reset-button{
    color: #363636 !important;
    border: 1px solid #363636;
    background: transparent !important;
    width: 100%;
    margin-top: 1em;
    text-align: center;
    padding: 12px 6px;
    border-radius: var(--border-radius-button);
    font-weight: 600;
}

button.one-filter-reset-button:hover{
    background: #363636 !important;
    color: #fff !important;
    border-color: #363636 !important;
}

/* Offcanvas Styles */
.one-filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.one-filter-overlay.active {
    display: block;
    opacity: 1;
}

/* Loading Overlay Styles */
.one-filter-loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.one-filter-loading-overlay.active {
    display: flex;
}

.one-filter-loader {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.one-filter-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #ffffff;
    border-radius: 50%;
    animation: one-filter-spin 1s linear infinite;
    display: block;
}

.one-filter-loader p {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

a.one-archive-product-wrapper{
    display: block;
}

@keyframes one-filter-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media screen and (max-width: 767px) {

    #one-filter-button-wrapper {
        display: block;
    }
    .woocommerce-message {
        display: flex;
        flex-direction: column;
        text-align: center;
        line-height: 1.5em;
        row-gap: 10px;
    }

    /* Mobile: Container als Offcanvas */
    #brxe-mdlnfn {
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: #fff;
        z-index: 1000;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        box-sizing: border-box;
    }

    #brxe-mdlnfn.active {
        transform: translateX(0);
    }

    #brxe-mdlnfn .one-filter-reset-button {
        margin-bottom: 2em;
    }
}

/* Desktop: Normal anzeigen */
@media (min-width: 768px) {
    .one-filter-overlay {
        display: none !important;
    }
}

ul.one-filter-options-box {
    padding: 0;
    list-style: none;
    margin: 0;
}

span.one-filter-category-count {
    font-size: 0.8em;
    color: #707070;
    margin-left: 5px;
}

.one-filter-category-link.active {
    color: var(--bricks-color-khxtul);
    font-weight: bold;
}

ul.one-filter-options-box-children {
    padding: 0 20px;
    margin: 0;
    list-style: none;
}

.one-filter-breadcrumb {
    display: flex;
    flex-direction: column;
}

h3#order_payment_heading {
    margin-bottom: 10px;
}

.woocommerce-message a, .woocommerce-message button {
    border-radius: var(--border-radius-button) !important;
}

/* Scrolling Header Functions */
@keyframes collapseUp {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

header.scrolling .scroll-to-top-on-scrolling {
    animation: collapseUp 0.3s ease-in-out forwards;
    overflow: hidden;
    height: 0;
}





/* Custom Cart Button Wrapper */
.custom-cart-button-wrapper {
    margin-top: 10px;
    display: block;
    transition: .3s all;
}

a.one-archive-product-wrapper:hover .cat-add-to-cart-btn {
    display: block;
}

/* Add to Cart Button */
.cat-add-to-cart-btn {
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--border-radius-container) !important;
    height: 40px;
    display: none;
    background: var(--bricks-color-khxtul) !important;
    border-color: var(--bricks-color-khxtul) !important;
    color: #fff !important;
}

.cat-add-to-cart-btn:active {
    transform: translateY(0);
}

.cat-add-to-cart-btn:hover {
    background: var(--bricks-color-hlkuvc) !important;
}

.cat-add-to-cart-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.cat-add-to-cart-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Quantity Control */
.quantity-control {
    display: flex;
    align-items: center;
    width: 100%;
    background: var(--bricks-color-khxtul);
    border-radius: var(--border-radius-container);
}

.qty-btn {
    padding: 0;
    border: 0;
    background-color: transparent;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-container);
    height: 40px;
    width: 40px;
}

.qty-btn:hover {
    background-color: var(--bricks-color-hlkuvc) !important;
}

.qty-input {
    flex: 1;
    padding: 0 8px;
    border: 0;
    border-radius: var(--border-radius-container);
    text-align: center;
    font-weight: 600;
    background: transparent !important;
    color: #fff !important;
    height: 40px;
}

.qty-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Input Spinner Buttons verstecken (Chrome, Safari) */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Input Spinner Buttons verstecken (Firefox) */
.qty-input[type=number] {
    -moz-appearance: textfield;
}

/* Benachrichtigungen */
.woo-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.woo-notification-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.woo-notification-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.woo-notification-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive */
@media (max-width: 768px) {
    .qty-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .qty-input {
        height: 32px;
        font-size: 13px;
    }
}

.single-product-image-wrapper {
    position: relative;
}

.custom-cart-button-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 99;
    pointer-events: auto !important;
}

/* WICHTIG: Blockiere den Link-Klick auf Input/Buttons */
.quantity-control {
    pointer-events: auto !important;
}

.cat-add-to-cart-btn.out-of-stock {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background-color: #ccc !important;
}

.woo-notification-warning {
    background-color: #fff3cd;  /* Gelbes Warning */
}


.product-image-quadrat {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.product-image-quadrat img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

img.zoomImg {
    background: #fff;
}

@media (max-width: 1024px) {
    .custom-cart-button-wrapper,
    .quantity-control,
    .cat-add-to-cart-btn {
        display: none !important;
    }
}