/*
Theme Name: bikerevier
Theme URI: https://www.bikerevier.ch
Description: Custom WooCommerce theme for bikerevier, designed for use with Elementor page builder.
Author: timcev@gmail.com
Author URI: https://www.bikerevier.ch
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: bikerevier
License: proprietary
*/
body {
    margin: 0;
}
p {
    margin-block-start: 0;
}
[type=button], [type=submit], button {
    display: inline-block;
    font-weight: 400;
    color: #c36;
    text-align: center;
    white-space: nowrap;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid #c36;
    padding: .5rem 1rem;
    font-size: 1rem;
    border-radius: 3px;
    transition: all .3s;
}
		.custom-products-grid {
		margin: 0;
		padding:0;
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 300px));
}

.special-element {
    grid-column: span 2;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid;
    display: flex;
}
img.shop-pic {
    position: absolute;
    object-fit: cover;
    width: 100%;
    height: 100% !important;
	top:0;
    left:0;
}
p.stock.instock {
    display: none;
}

.special-Text {
    max-width: 500px;
    z-index: 3;
    position: relative;
    padding: 40px;
    height: 100%;
    align-content: center;
}

p.shop-preTitle {
    margin: 0;
    color: #393939;
    font-size: 22px;
}

p.shop-title {
    font-size: 35px;
    line-height: 1.1em;
    font-weight: 600;
}

.pic-over:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(255,255,255);
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 19%, rgba(255,255,255,0.927608543417367) 36%, rgba(255,255,255,0.8911939775910365) 56%, rgba(255,255,255,0.4654236694677871) 85%, rgba(255,255,255,0.38699229691876746) 100%);
    z-index: 1;
}
a.product-image {
    background: #fff;
    border-radius: 5px;
    text-align: center;
    width: 100%;
    display: block;
    position: relative;
}

/* Condition (Zustand) badge shown on each product card */
.zustand-badge {
    position: absolute;
    left: 10px;
    bottom: -14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #587708;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    z-index: 2;
    line-height: 1;
    white-space: nowrap;
}
.zustand-badge i {
    font-size: 12px;
}
.zustand-badge--neuwertig {
    background: #587708;
}
.zustand-badge--bewegt {
    background: #7499A6;
}
.zustand-badge--eingefahren {
    background: #5A686D;
}
.zustand-badge[role="button"] {
    cursor: pointer;
    user-select: none;
}
.zustand-badge[role="button"]:hover,
.zustand-badge[role="button"]:focus-visible {
    filter: brightness(1.08);
    outline: none;
}
.zustand-badge__info {
    opacity: .8;
    margin-left: 2px;
    font-size: 13px;
}

/* Info icon in the Zustand filter label — opens the same explainer modal */
.zustand-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    vertical-align: middle;
    cursor: pointer;
    color: #587708;
    font-size: 16px;
    line-height: 1;
    user-select: none;
}
.zustand-info-btn:hover,
.zustand-info-btn:focus-visible {
    color: #3f5606;
    outline: none;
}

/* Sales page: badge between model line and size line */
.product-zustand {
    margin: 20px 0 16px;
}
.product-zustand .zustand-badge {
    position: static;
}
.product-size {
    font-weight: 100;
    color: #646c71;
    margin: 0 0 8px;
}

/* Zustand explainer modal */
.zustand-modal[hidden] { display: none; }
.zustand-modal {
    position: fixed;
    inset: 0;
    /* Must sit above the mobile filter overlay (z-index 100000) so the
       Zustand explainer can be opened from inside the filter panel. */
    z-index: 100010;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.zustand-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}
.zustand-modal__panel {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 560px;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 28px 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.zustand-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    background: #eee;
    border-radius: 6px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
}
.zustand-modal__close:hover { background: #ddd; }
.zustand-modal__title {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 700;
}
.zustand-modal__item {
    margin-bottom: 18px;
}
.zustand-modal__item:last-child {
    margin-bottom: 0;
}
.zustand-modal__item .zustand-badge {
    position: static;
    margin-bottom: 8px;
}
.zustand-modal__item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}
body.zustand-modal-open {
    overflow: hidden;
}

/* Homepage product scroller: on the second slide only, position the badge
   on top of the image so it doesn't get clipped by the card's layout. */
.bikeSwipe--small .swiper-slide:nth-child(2) .zustand-badge {
    top: -10px;
    left: 10px;
    bottom: auto;
}
.elementor-shortcode .stock {
    top: 10px;
    bottom: unset !important;
    right: 10px;
}
.custom-products-grid li {
    border-radius: 20px;
    box-shadow: 0 2px 10px 0px rgba(0,0,0,.1);
    list-style: none;
    background: #E4E5E7;
    overflow: hidden;
	position: relative;
    min-width: 250px;
    max-width: 300px;
}
.innerProduct {
    padding: 20px;
}
h2.product-title {
    margin: 0;
}
span.origP {
    font-size: 12px;
    padding: 0 0 0 10px;
    color: gray;
}
.product-price {
    display: flex;
    align-items: end;
    line-height: 1em !important;
    min-height: 16px;
}
.product-title a {
    color: #000;
}
.flip-container {
    perspective: 1000px; /* Enables 3D effect */
    width: 100%;
    aspect-ratio: 1/1; /* Ensures a square container */
}
.woocommerce-Price-currencySymbol {
    display: none;
}
.flipper {
    transition: transform 0.6s;
    transform-style: preserve-3d;
    position: relative;
    width: 100%;
    height: 100%;
}

.front, .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Hides the back when facing away */
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.front {
    transform: rotateY(0deg);
}

.back {
    transform: rotateY(180deg);
    opacity: 0;
}

/* Flip Effect Only If \'has-hover\' Class is Present */
.flip-container.has-hover:hover .flipper {
    transform: rotateY(180deg);
}

.flip-container.has-hover:hover .back {
    opacity: 1;
}

footer a:hover {
    color: var(--e-global-color-primary) !important;
    text-decoration: underline;
}
.elementor-8810 .elementor-element.elementor-element-72abb8f > .elementor-widget-container{
	margin: 0 !important;
}

.mobile-menu-header {
    display: none;
}
a#elementor-menu-cart__toggle_button {
    background: none !important;
}
.elementor-menu-toggle {
    color: #fff !important;
}
@media(max-width:767px){
    ul.custom-products-grid {
        display: flex;
        flex-wrap: wrap;
        flex: 1 1 33%;
        justify-content: center;
    }
    ul.custom-products-grid > li {
        flex: 1 1 40%;
        max-width: 350px;
    }
    .special-Text {
        padding: 40px 20px;
    }
	/* --- Full-screen mobile menu overlay ---
	 * Hidden by default so it never flashes on initial paint while
	 * Elementor's own stylesheet is still being applied. Elementor
	 * toggles `aria-hidden="false"` on the container when the menu
	 * button is activated, at which point we reveal it.
	 */
	nav.elementor-nav-menu--dropdown.elementor-nav-menu__container {
		display: none;
	}
	nav.elementor-nav-menu--dropdown.elementor-nav-menu__container[aria-hidden="false"] {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 99999;
		width: 100vw;
		height: 100vh;
		background: #5a686d;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		overflow-y: auto;
		padding: 100px 0 30px 0;
	}

	/* Mobile menu header bar (logo + cart + close) */
	.mobile-menu-header {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 100001;
		height: 63px;
		background: #5a686d;
		align-items: center;
		justify-content: space-between;
		padding: 0 17px;
		border-bottom: 1px solid rgba(255,255,255,0.1);
	}
	.mobile-menu-header.active {
		display: flex;
	}
	.mobile-menu-header .mm-logo img {
		height: 40px;
		width: auto;
	}
	.mobile-menu-header .mm-actions {
		display: flex;
		align-items: center;
		gap: 12px;
	}
	.mobile-menu-header .mm-cart {
		color: #fff;
		text-decoration: none;
		position: relative;
		display: flex;
		align-items: center;
	}
	.mobile-menu-header .mm-cart svg {
		width: 24px;
		height: 24px;
		fill: #fff;
	}
	.mobile-menu-header .mm-close {
		background: none;
		border: none;
		padding: 4px;
		cursor: pointer;
		display: flex;
		align-items: center;
	}
	.mobile-menu-header .mm-close svg {
		width: 28px;
		height: 28px;
		fill: #fff;
	}
    .elementor-nav-menu a, .elementor-nav-menu a:focus, .elementor-nav-menu a:hover {
        line-height: inherit;
        padding: 16px 24px;
    }
	/* Bottom accent line */
	nav.elementor-nav-menu--dropdown.elementor-nav-menu__container[aria-hidden="false"]::after {
		content: '';
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		height: 4px;
		background: var(--e-global-color-accent, #587708);
		z-index: 100000;
	}
	nav.elementor-nav-menu--dropdown .elementor-item, nav.elementor-nav-menu--dropdown .sub-menu .menu-item a {
		font-size: 1.1rem;
		line-height: 1.4;
		padding: 16px 24px;
		text-align: left;
		color: #fff;
		width: 100%;
		border-bottom: 1px solid rgba(255,255,255,0.1);
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
	nav.elementor-nav-menu--dropdown .elementor-item:hover,
	nav.elementor-nav-menu--dropdown .elementor-item:focus {
		color: var(--e-global-color-accent, #587708);
	}

	/* Close button (X) for mobile menu */
	.elementor-menu-toggle {
		z-index: 100000 !important;
	}
	.elementor-menu-toggle.elementor-active {
		position: fixed !important;
		top: 75px;
		right: 18px;
		display: none !important;
	}
	.elementor-menu-toggle.elementor-active .elementor-menu-toggle__icon--open {
		display: none !important;
	}
	.elementor-menu-toggle.elementor-active .elementor-menu-toggle__icon--close {
		display: flex !important;
	}
	/* Make the X icon white and large */
	.elementor-menu-toggle.elementor-active svg {
		fill: #fff !important;
		width: 28px;
		height: 28px;
	}
	.elementor-menu-toggle.elementor-active i {
		color: #fff !important;
		font-size: 28px;
	}
    .elementor-nav-menu__align-center .elementor-nav-menu {
        width: 100%;
    }
    .elementor-kit-10 a {
        color: #ffffff;
    }
	/* --- Sub-menus: expand inline with indent --- */
	nav.elementor-nav-menu--dropdown .elementor-nav-menu__container,
	nav.elementor-nav-menu--dropdown ul.sub-menu {
		position: static !important;
		width: 100% !important;
		max-width: 100% !important;
		background: transparent !important;
		box-shadow: none !important;
		border: none !important;
		padding: 0 !important;
		margin: 0 !important;
	}
	nav.elementor-nav-menu--dropdown ul.sub-menu .elementor-item {
		font-size: 1rem;
		padding: 12px 24px 12px 40px;
		color: rgba(255,255,255,0.8) !important;
		border-bottom: 1px solid rgba(255,255,255,0.05);
		background: transparent !important;
	}
	nav.elementor-nav-menu--dropdown ul.sub-menu .elementor-item:hover {
		color: var(--e-global-color-accent, #587708) !important;
	}
	/* Sub-menu arrow indicator */
	nav.elementor-nav-menu--dropdown .sub-arrow,
	nav.elementor-nav-menu--dropdown .elementor-nav-menu-icon {
		color: rgba(255,255,255,0.5) !important;
		fill: rgba(255,255,255,0.5) !important;
		margin-left: auto;
	}
}
/* shop page btns */
.elementor-251 .elementor-element.elementor-element-5f8c449 .elementor-button:hover {
    background-color: var( --e-global-color-primary );
    color: #fff;
}

.elementor-251 .elementor-element.elementor-element-ca85a11 .elementor-button:hover, .elementor-4535 .elementor-element.elementor-element-4ff6c4e .elementor-button:hover,.elementor-4535 .elementor-element.elementor-element-5fc204b .elementor-button:hover, .elementor-5068 .elementor-element.elementor-element-0eb49c4 .elementor-button:hover, .elementor-5068 .elementor-element.elementor-element-251189e .elementor-button:hover {
    color: var( --e-global-color-primary );
    border: 1px solid var( --e-global-color-primary );
}

button.single_add_to_cart_button.button:hover {
    background: var(--e-global-color-primary) !important;
}
.back-button {
    font-size: .92em;
    padding: 0 5px;
    cursor: pointer;
    color: #ffffff !important;
    position: relative;
    z-index: 1;
	white-space:nowrap;
}
.black-text.back-button{
    color: #000 !important;
}
.single a.back-button {
    color: #767676 !important;
}

/* Empty filter state */
.bikerevier-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    min-height: 350px;
}
.empty-state-icon {
    color: #b0b5ba;
    margin-bottom: 20px;
}
.empty-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 10px;
    color: #1a1a1a;
}
.empty-state-text {
    font-size: 1rem;
    color: #646c71;
    max-width: 420px;
    margin: 0 0 25px;
    line-height: 1.5;
}
.empty-state-reset {
    background: var(--e-global-color-accent, #587708);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: .3s all;
}
.empty-state-reset:hover {
    opacity: 0.85;
}
@media (max-width: 767px) {
    .bikerevier-empty-state {
        padding: 40px 15px;
        min-height: 250px;
    }
    .empty-state-icon svg {
        width: 60px;
        height: 60px;
    }
    .empty-state-title {
        font-size: 1.25rem;
    }
}

/* Filter results count - desktop */
.filter-results-count {
    text-align: left;
    padding: 15px 0;
    font-family: 'Roboto', 'roboto-v29-latin', sans-serif;
    font-size: 16px;
    font-style: italic;
    color: #646c71;
    font-weight: 400;
}
.filter-results-count #results-count-number {
    font-weight: 700;
    color: #1a1a1a;
}

/* Mobile filter confirm button */
.mobile-filter-confirm {
    display: none;
}

.noUi-connect {
    background: #587708 !important;
}
/* Input and form element styles */
button,input,optgroup,select,textarea {
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0
}

input[type=date],input[type=email],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=url],select,textarea {
    width: 100%;
    border: 1px solid #666;
    border-radius: 3px;
    padding: .5rem 1rem;
    transition: all .3s
}

input[type=date]:focus,input[type=email]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=url]:focus,select:focus,textarea:focus {
    border-color: #333
}
/* Responsive adjustments */
@media (max-width: 767px) {
    .filter-results-count {
        display: none;
    }
    button#remove-attribute-filter {
        background: #fff;
        padding: 12px;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 8px;
    }
    .mobile-filter-confirm {
        display: block;
        width: 100%;
        padding: 14px;
        background: var(--e-global-color-accent, #587708);
        color: #fff;
        border: none;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        margin-top: 5px;
        border-radius: 8px;
    }
    .mobile-filter-confirm:hover {
        opacity: 0.9;
    }
    /* On mobile the sticky "Bikes anzeigen" button commits price too,
       so the price block's own Übernehmen is redundant. */
    .price-block #filterButton {
        display: none;
    }
}

table {
    background-color: transparent;
    width: 100%;
    margin-block-end: 15px;
    font-size: .9em;
    border-spacing: 0;
    border-collapse: collapse;
}

table tbody > tr:nth-child(odd) > td,
table tbody > tr:nth-child(odd) > th {
    background-color: hsla(0, 0%, 50.2%, .0705882353);
}

/* A11y: WCAG 2.2 requires touch targets ≥ 24×24px. Swiper's default bullet is
   only 8×8. Expand the clickable element to 24×24 transparent and render the
   visible 8px dot via ::before so the look is unchanged. */
.swiper-pagination-bullet {
    width: 24px !important;
    height: 24px !important;
    background: transparent !important;
    opacity: 1 !important;
    border-radius: 50%;
    position: relative;
    margin: 0;
}
.swiper-pagination-bullet::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: #000;
    opacity: 0.2;
}
.swiper-pagination-bullet-active::before {
    opacity: 1;
    background: var(--swiper-pagination-color, var(--swiper-theme-color, #007aff));
}

table td,
table th {
    padding: 15px;
    line-height: 1.5;
    vertical-align: top;
    border: 1px solid hsla(0, 0%, 50.2%, .5019607843);
}