/*
 Theme Name:   Bike One
 Theme URI:    https://spiritory.com/
 Description:  Bike One Theme
 Author:       Spiritory
 Author URI:   http://example.com
 Template:     cosy
 Version:      1.0.0
 Text Domain:  cosy-child
*/




:root {
    --rot: #b50000;
}

/* 1) Fonts einbinden: DINPro (Beispiel) */
@font-face {
    font-family: 'DINPro';
    src: url('font/DINPro.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'DINPro';
    src: url('font/DINPro-Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'DINPro';
    src: url('font/DINPro-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'DINPro';
    src: url('font/DINPro-MediumItalic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'DINPro';
    src: url('font/DINPro-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'DINPro';
    src: url('font/DINPro-BoldItalic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'DINPro';
    src: url('font/DINPro-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'DINPro';
    src: url('font/DINPro-BlackItalic.otf') format('opentype');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

/* 2) Font anwenden (Beispiel) */
html, body {
    font-family: 'DINPro', Arial, Helvetica, sans-serif;
}

/* 3) Eigene Styles – Beispiel-Selektoren */
/*
.header .site-title { font-weight: 700; }
.btn-primary { font-family: 'DINPro', sans-serif; font-weight: 700; }
*/

body.home.enable-header-transparency .site-header:not(.is-sticky) .site-header-inner{
    background-color: #f0f8ff00;
}

body.wp-singular .site-main-nav .main-menu > li > a:after {
    bottom: 0px;
}

.enable-header-transparency .site-header:not(.is-sticky) .site-main-nav .main-menu > li > a {
    color: white !important;
}


.logo_auflistung img{
    width: 150px;
    height: auto;
}

.woocommerce-Price-amount.amount bdi{
    display: flex;
    justify-content: center;
}

body.single-product .woocommerce-Price-amount.amount bdi {
    justify-content: start;
}

p.price span:nth-of-type(2), p.price span:nth-of-type(3), span.price span:nth-of-type(2), span.price span:nth-of-type(3) {
    display: none;
}

.woocommerce-Price-amount.amount bdi:before {
    content: "ab";
    padding-right: 5px;
}

.bo-iframe-area { width: 100%; }
#apptFrame { width: 100%; border: 0; display: block; }

.bo-iframe-area {
    min-height: 1400px;
    /* Falls der Header sticky ist, ggf. padding-top anpassen */
}

.bo-iframe {
    display: block;
    width: 100%;
    height: 1400px;
    border: 0;
}

.product--summary .woocommerce-variation-price {
    margin-bottom: 0 !important;
}

.woocommerce-variation-price .woocommerce-Price-amount.amount{
    display: none;
}

.woocommerce-variation-price .woocommerce-Price-amount.amount bdi:before {
    content: none;
}

ul.products .product .product--thumbnail img {
    background: white;
}

/* Weißer Hintergrund für die Sektion */
.bo-fullwidth-gallery {
    background: white;
}

/* Masonry via Columns (wie zuvor) */
.bo-fullwidth-gallery__inner {
    column-count: 3;
    column-gap: 10px;
    margin: 0 auto;
    background: white;
}

/* Items */
.bo-fullwidth-gallery__item {
    display: inline-block;
    width: 100%;
    margin: 0 0 10px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    -moz-column-break-inside: avoid;
    scale: .7;
}


.page-content .vc_btn3-container button.vc_btn3, .page-content .vc_btn3-container a.vc_btn3 {
    background-color: #b50000 !important;
    border: none;
    padding: 15px 25px;
    color: white !important;
    font-family: 'DINPro', Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 700;
    border-radius: 20px;
}


/* Bilder */
.bo-fullwidth-gallery .bo-fw-image,
.bo-fullwidth-gallery__item img {
    display: block;
    width: 100%;
    height: auto; /* nicht voller Screen, ca. 2/3 Bildschirmhöhe */
    border-radius: 10px;
}

/* Zentrierung bei wenigen Items:
   Wenn ≤2 Elemente, auf 1–2 Spalten umbauen und zentrieren */
.bo-fullwidth-gallery__inner:has(.bo-fullwidth-gallery__item:nth-child(1):last-child),
.bo-fullwidth-gallery__inner:has(.bo-fullwidth-gallery__item:nth-child(2):last-child) {
    column-count: 1;
    max-width: 900px;        /* Breite begrenzen */
    padding: 0 8px;
}

/* Alternative/zusätzliche Zentrierung per Wrapper */
.bo-fullwidth-gallery__inner-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsiv */
@media (max-width: 900px) {

    body.wp-singular.product-template-default.single.single-product .site-main{
        padding-top: 75px !important;
    }

    .bo-fullwidth-gallery__inner { column-count: 2; }
}
@media (max-width: 600px) {
    .bo-fullwidth-gallery__inner { column-count: 1; column-gap: 12px; }
    .bo-fullwidth-gallery__item { margin-bottom: 12px; }
}

body.single-product p.price {
    line-height: normal;
}

/* Admin-Text unter dem Preis (Einzelproduktseite) */
body.single-product .bo-product-text-below-price {
    margin-top: 0.5em;
    margin-bottom: 0;
    font-size: 0.95em;
    color: #374151;
    line-height: 1.5;
}

body.single-product .p-left.product-main-image{
    width: 60%;
}

body.single-product .p-right.product--summary {
    width: 40%;
}

body.single-product #site-content {
    width: 100% !important;
}

.gutslider-content-inner .wc-block-components-product-price {
    line-height: normal;
}

/* Startseiten-Slider: Swatches (Variationstabelle) ausblenden */
body.home .gutslider-content-inner table.variations,
body.home .swiper-wrapper table.variations {
    display: none !important;
}

/* Startseiten-Slider: Produkt-Infospalte (Titel, Preis, Button, Meta) zentrieren */
body.home .gutslider-content-inner .wp-block-woocommerce-single-product .wp-block-columns .wp-block-column:last-child,
body.home .swiper-wrapper .wp-block-woocommerce-single-product .wp-block-columns .wp-block-column:last-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
body.home .gutslider-content-inner .wp-block-woocommerce-single-product .wp-block-columns .wp-block-column:last-child .wp-block-add-to-cart-form,
body.home .swiper-wrapper .wp-block-woocommerce-single-product .wp-block-columns .wp-block-column:last-child .wp-block-add-to-cart-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}
body.home .gutslider-content-inner .wp-block-woocommerce-single-product .wp-block-columns .wp-block-column:last-child .wp-block-woocommerce-product-meta .wp-block-group,
body.home .swiper-wrapper .wp-block-woocommerce-single-product .wp-block-columns .wp-block-column:last-child .wp-block-woocommerce-product-meta .wp-block-group {
    justify-content: center;
}

body .site-main {
    padding-top: 125px;
}

body.home .site-main {
    padding-top: 0;
}

.logo_auflistung .img_box .wpb_wrapper {
    gap: 0
}

.sidebar-inner ul.menu li {
    margin-bottom: 0 !important;
}

.sidebar-inner .widget .widget-title {
    margin-bottom: 5px !important;
}

body.woocommerce-page #sidebar_primary{
    width: 20%;
}

body.woocommerce-page #site-content {
    width: 79%;
}

body.wp-singular.product-template-default.single.single-product .site-main{
    padding-top: 150px;
}

body.wp-singular.product-template-default.single.single-product {
    overflow-x: hidden;
}

body.page-id-1839 .site-main {
    padding-top: 100px;
}

body p{
    margin-bottom: 0 !important;
}

#section_page_header .page-header-inner {
    margin-top: 100px;
}

.site-main-nav .main-menu > li.active > a:after, .site-main-nav .main-menu > li:hover > a:after, .site-main-nav .main-menu > li > a:after {
    bottom: 0;
}

li .reviews_tab {
    display: none !important;
}


.related.related-product .products.grid-items.products-grid{
    justify-content: center !important;
}


.img_box .wpb_wrapper{
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}


body.wp-singular table.variations .swatch-wrapper a.swatch-anchor {
    width: 50px !important;
    height: 50px !important;
}

.product--summary .product_meta {
    margin-top: 0;
}

.product--summary .inited-swatches-form .variations tr {
    padding: 10px 0;
    width: 45% !important;
}

footer .bo2-location h3 {
    color: white !important;
}


.woocommerce-tabs.wc-tabs-wrapper .reviews_tab, .product_meta .sku_wrapper{
    display: none !important;
}

.wpb_button, .wpb_content_element, ul.wpb_thumbnails-fluid>li {
    margin-bottom: 5px !important;
}

img[data-dominant-color]:not(.has-transparency) {
    background-color: #ffffff;
    --dominant-color: #ffffff !important;
    border-color: #ffffff !important;
}

.yith-add-to-wishlist-button-block.yith-add-to-wishlist-button-block--single {
    display: none;
}

.mega-menu > li {
    padding: 0;
}

footer {
    background-color: black !important;
    padding: 25px 0;
    color: white !important;
}

footer h2 {
    color: white !important;
}

footer a, .bo2-footer, footer .bo2-footer a, footer .bo2-footer a:hover, footer .bo2-footer p, footer .bo2-footer h2, footer .bo2-footer address {
    color: white !important;
    font-family: 'DINPro', Arial, Helvetica, sans-serif;
    font-size: 14px;
}

footer .bo2-footer h2 {
    font-size: 21px;
}

footer .bo2-footer .bo2-tagline {
    padding-bottom: 10px;
}

footer section.bo2-brand a.bo2-cta {
    background-color: #b50000 !important;
    padding: 5px 15px;
}


.responsive-iframe iframe {
    display: block;
    width: 100%;
    border: none;
    height: 500px;
}


/* Brand Slider */

.header-home .vc_column-inner{
    padding-left: 0;
    padding-right: 0;
}

/* Root-Container */
.brand-slider {
    /* Variablen */
    position: relative;
    overflow: hidden;
    margin: 20px 0;
}

/* Viewport (Sichtfenster) */
.brand-slider__viewport {
    overflow: hidden;
    width: 100%;
}

.brand-slider__track {
    display: inline-flex;
    align-items: center;
    gap: var(--gap);
    white-space: nowrap;
    will-change: transform;
    animation: brand-scroll var(--duration) linear infinite;
}

/* Pause bei Hover */
.brand-slider:hover .brand-slider__track {
    animation-play-state: paused;
}

/* Einzelnes Item/Logo-Wrapper */
.brand-slider__item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo-Bild */
.brand-slider__item img {
    height: var(--logo-height);
    width: auto;
    object-fit: scale-down;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

/* Hover-Effekt auf dem Bild */
.brand-slider__item img:hover {
    filter: none;
    opacity: 1;
}



.woocommerce-LoopProduct-link.woocommerce-loop-product__link img{
    max-height: 180px;
    min-height: 180px;
    height: 180px;
    object-fit: contain;
}

.products-grid.products-grid-1 .item-inner:hover .product-info--inner {
    visibility: visible;
    opacity: 1;
    --webkit-transform: translateY(0);
    transform: translateY(0);
}

.single-post-detail footer {
    display: none;
}



/*  Product */

#site-content ul.products.products-grid.grid-items {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: left;
}

main ul.products .product .product--thumbnail .item--image-holder {
    aspect-ratio: auto;
}

.md-grid-3-items .product-item.grid-item{
    width: 32%;
}

ul.products .product .product--thumbnail img {
    max-height: 130px;
    min-height: 130px;
}

ul.products li.product {

}

.wc-block-components-product-sku {
    display: none !important;
}



.page-content .wc-view-count, .page-content .wc-view-toggle {
    display: none;
}


body.single-product .quantity, body.single-product .single_add_to_cart_button {
    display: none !important;
}

/* Landingpage */
.gutslider-54b797c6 .thwepo-extra-options{
    display: none;
}

/* Endlosschleifen-Animation */
@keyframes brand-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) { .product-spec--compact { font-size: 0.88em; } }


.filter-toggle {
    display: none;
}

@media (max-width: 768px) {


    .header-left {
        max-width: 80%;
    }

    .page-description {
        display: none;
    }

    .wc-toolbar-top {
        margin-bottom: 10px !important;
    }

    .bo-iframe {
        height: 3250px;
    }

    .filter-toggle {
        display: block;
    }

    body .site-main {
        padding-top: 0;
    }

    .bo-fullwidth-gallery {
        padding: 0 10px;
    }


    .brand-slider {
        margin-bottom: 0;
        margin-top: 25px;
    }

    .header-space {
        height: 10px !important;
    }

    .brand-slider__item img { --logo-height: 32px; }
    .brand-slider__track   { --gap: 24px; }

    /* Landingpage */

    body.home .page-content .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content{
        padding: 20px 0;
    }

    body.home .page-content .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content .wp-block-spacer {
        height: 20px !important;
    }

    /* Product Page Catalog */
    body.woocommerce-page #site-content, body.woocommerce-page #sidebar_primary, .md-grid-3-items .product-item.grid-item {
        width: 100%;
    }

    body.woocommerce-page #sidebar_primary {
        order: 1;
    }

    body.woocommerce-page #site-content {
        order: 2;
    }

    /* Product Page Catalog */
    body.woocommerce-page #site-content ul.products.products-grid.grid-items {
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
    }

    /* Product Page */
    body.single-product #site-content .product .row {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    body.single-product .p-left.product-main-image, body.single-product .p-right.product--summary {
        width: 100%;
    }

    body.woocommerce-page #site-content ul.products.products-grid.grid-items li.product-item {
        max-width: 100%;
    }

    /* Über uns */
    body.page-id-1839 .site-main {
        padding-top: 0;
    }

    body.page-id-1839 .wp-block-cover {
        min-height: 20vh !important;
    }

    body.page-id-1839 .wp-block-cover .wp-block-cover__inner-container p{
        font-size: 3rem !important;
    }

    body.page-id-1839 .wp-block-cover img{
        height: 20vh !important;
    }

}



@media only screen and (max-width: 600px) {
    .img_box .wpb_wrapper{
        justify-content: center;
    }

    .img_box .wpb_wrapper img{
        max-width: 75%;
    }

    .wpb_single_image .vc_single_image-wrapper {
        display: flex;
        justify-content: center;
    }

    .responsive-iframe iframe {
        height: 700px;
    }


}

/* === VOLLBREITE GALERIE AUF PRODUKTSEITE ================================= */
.bo-fullwidth-gallery {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    max-width: 100vw;
    /* dunkler Hintergrund, bei Bedarf anpassen */
}

/* Abstand nach oben/unten auf Produktseite */
.single-product .bo-fullwidth-gallery { margin-top: 40px; margin-bottom: 40px; }

.bo-fullwidth-gallery__inner { padding: 0; }
.bo-fullwidth-gallery__item { margin: 0; }

.bo-fullwidth-gallery .bo-fw-image,
.bo-fullwidth-gallery img {
    display: block;
    width: 100%;
    height: auto;
    max-width: none; /* keine Begrenzung durch Theme-Container */
}

/* Falls Theme-Container versuchen zu begrenzen, überschreiben */
.site-main .bo-fullwidth-gallery,
#site-content .bo-fullwidth-gallery,
.la-single-product-page .bo-fullwidth-gallery {
    max-width: 100vw !important;
}

/* Lightbox-Cursor-Hinweis */
.bo-fullwidth-gallery a { cursor: zoom-in; display:block; }


/* --- Fullwidth Gallery: side-by-side (flex) layout override --- */
.bo-fullwidth-gallery__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;

}
.bo-fullwidth-gallery__item {
    /* remove margins from column layout and scaling */
    margin: 0;
    width: 100%;
    /* 3 columns on large by default */
    flex: 1 1 calc(33.333% - 16px);
    /* neutralize column break hints and previous scale */
    break-inside: auto;
    -webkit-column-break-inside: auto;
    -moz-column-break-inside: auto;
    scale: 1;
}
/* Ensure images fill their figure */
.bo-fullwidth-gallery .bo-fw-image,
.bo-fullwidth-gallery__item img {
    display: block;
    width: 100%;
    height: auto;
}
/* Bilder "ein bisschen kleiner" innerhalb der Spalte und zentriert */
.bo-fullwidth-gallery__item img {
    max-width: 92%;
    width: 92%;
    margin: 0 auto; /* zentrieren */
}
@media (max-width: 900px) {
    /* 2 columns on tablets */
    .bo-fullwidth-gallery__inner { gap: 14px; }
    .bo-fullwidth-gallery__item { flex-basis: calc(50% - 14px); }
}
@media (max-width: 600px) {
    /* 1 column on phones */
    .bo-fullwidth-gallery__inner { gap: 12px; }
    .bo-fullwidth-gallery__item { flex-basis: 100%; }
}


/* === Fullwidth Gallery: make images less tall but keep full column width === */
/* We cap the visible height and use object-fit: cover so images remain full-width without looking overwhelming. */
.bo-fullwidth-gallery__item img {
    width: 100% !important;      /* full column width */
    max-width: 100% !important;  /* override earlier 92% width */
    height: 280px;               /* desktop height cap */
    object-fit: cover;           /* crop excess height without distortion */
    object-position: center;     /* center the crop */
}
@media (max-width: 900px) {
    .bo-fullwidth-gallery__item img {
        height: 240px;           /* tablet */
    }
}
@media (max-width: 600px) {
    .bo-fullwidth-gallery__item img {
        height: 200px;           /* mobile */
    }
}


/* ========================================================================
   ABOUT PAGE - MODERN DESIGN
   ======================================================================== */

/* Hero Cover Section */
.about-image.wp-block-cover {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    margin-bottom: 0;
}

.about-image .wp-block-cover__inner-container {
    padding: 80px 20px;
    position: relative;
    z-index: 2;
}

.about-image .wp-block-cover__inner-container p {
    font-weight: 800;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    margin: 0;
    color: #ffffff;
}

/* Welcome Section */
.has-text-align-center.has-large-font-size {
    margin-top: 60px;
    margin-bottom: 20px;
    color: #1f2937;
    letter-spacing: 0.01em;
}

/* Section Headings */
.has-text-align-center[style*="font-size:28px"] {
    font-weight: 800;
    color: #111827;
    letter-spacing: 0.015em;
    margin-top: 40px;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.has-text-align-center[style*="font-size:28px"]::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #b50000;
    margin: 16px auto 0;
    border-radius: 2px;
}

/* Address Boxes - Modern Card Design */
.address-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 40px 30px;
    margin: 40px auto;
    max-width: 1200px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.address-box:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08),
    0 4px 6px -2px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.address-box .has-text-align-center {
    color: #374151;
    line-height: 1.8;
    font-size: 16px;
}

.address-box .has-text-align-center strong {
    color: #111827;
    font-weight: 700;
    font-size: 18px;
}

.address-box .has-text-align-center a {
    color: #b50000;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.address-box .has-text-align-center a:hover {
    color: #000000;
    text-decoration: underline;
}

/* Columns Layout in Address Box */
.address-box .wp-block-columns {
    margin-top: 30px;
    gap: 40px;
    align-items: center;
}

.address-box .wp-block-column {
    padding: 0;
}

/* Map Styling */
.address-box .wp-block-webfactory-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 2px solid #f3f4f6;
}

.address-box .wp-block-webfactory-map iframe {
    border-radius: 14px;
}

/* Opening Hours Styling */
.address-box .is-vertically-aligned-center p {
    background: #f9fafb;
    padding: 24px 28px;
    border-radius: 14px;
    border-left: 4px solid #b50000;
    font-size: 15px;
    line-height: 1.9;
    color: #1f2937;
}

.address-box .is-vertically-aligned-center p strong {
    color: #111827;
    font-weight: 700;
}

/* Spacer Adjustments */
.wp-block-spacer {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .address-box {
        padding: 35px 25px;
        margin: 30px 20px;
    }

    .address-box .wp-block-columns {
        gap: 30px;
    }
}

@media (max-width: 782px) {
    .about-image .wp-block-cover__inner-container {
        padding: 60px 20px;
    }

    .about-image .wp-block-cover__inner-container p {
        font-size: 32px !important;
    }

    .address-box {
        padding: 30px 20px;
        margin: 25px 15px;
        border-radius: 16px;
    }

    .address-box .wp-block-columns {
        flex-direction: column;
        gap: 25px;
    }

    .address-box .is-vertically-aligned-center p {
        padding: 20px 22px;
        font-size: 14px;
    }

    .has-text-align-center[style*="font-size:28px"] {
        font-size: 24px !important;
    }
}

@media (max-width: 600px) {
    .about-image.wp-block-cover {
        min-height: 400px !important;
    }

    .about-image .wp-block-cover__inner-container {
        padding: 40px 15px;
    }

    .about-image .wp-block-cover__inner-container p {
        font-size: 26px !important;
    }

    .address-box {
        padding: 25px 18px;
        margin: 20px 10px;
        border-radius: 14px;
    }

    .address-box .has-text-align-center {
        font-size: 15px;
    }

    .address-box .has-text-align-center strong {
        font-size: 17px;
    }

    .address-box .is-vertically-aligned-center p {
        padding: 18px 20px;
        font-size: 14px;
        line-height: 1.8;
    }

    .has-text-align-center[style*="font-size:28px"] {
        font-size: 22px !important;
    }

    .has-text-align-center[style*="font-size:28px"]::after {
        width: 50px;
        height: 3px;
        margin-top: 12px;
    }
}

/* Additional Polish */
.address-box .wp-block-spacer {
    display: block;
}

/* Smooth Animations */
.address-box,
.address-box a,
.address-box .wp-block-webfactory-map {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus States for Accessibility */
.address-box a:focus-visible {
    outline: 3px solid #b50000;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========================================
   PRODUCT VARIATIONS TABLE - RESPONSIVE DESIGN
   ======================================== */

/* Variations Table Base Styles */
table.variations {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
    border: none !important;
}

table.variations tbody {
    border: none !important;
}

table.variations tr {
    border: none !important;
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
    padding: 20px;
    background: transparent;
    border-radius: 12px;
    border: none !important;
}

/* Label Styling - Prevent Text Wrapping */
table.variations th.label {
    width: 100%;
    text-align: left;
    padding: 0 0 12px 0;
    border: none !important;
    font-weight: 700;
    font-size: 16px;
    color: #111827;
    white-space: nowrap;
    overflow: visible;
}

table.variations th.label label {
    display: inline-block;
    white-space: nowrap;
    font-family: 'DINPro', Arial, Helvetica, sans-serif;
}

h1.product_title.entry-title {
    margin-bottom: 2px;
}

.wp-singular .product .woocommerce-Price-amount.amount{
    font-size: 20px;
}

.body-col-1c .la-p-single-wrap .p-left.product-main-image {
    padding: 0 !important;
}

.wp-singular .product .product--large-image.woocommerce-product-gallery__image {
    margin-bottom: 0px;
}

.wp-singular .product .row {
    display: flex;
    justify-content: center;
    align-items: center;
}

.wp-singular .product .row .woocommerce-product-gallery__image img {
    scale: 1.1;
}

/* Value Cell */
table.variations td.value {
    width: 100%;
    padding: 0;
    border: none !important;
}

/* Swatch Control Container */
table.variations .swatch-control {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Auf der Einzel-Produktseite: gesamte Variationen-Tabelle scrollbar machen,
   damit die linke Bildspalte in ihrer Höhe stabil bleibt */
body.single-product table.variations {
    display: block; /* Basis: scrollbarer Block */
    max-height: min(420px, calc(100vh - 270px));
    overflow-y: auto;
    padding-right: 4px; /* etwas Platz für Scrollbar */
}

/* Auf größeren Screens: Variations-Zeilen dynamisch nebeneinander anordnen */
@media (min-width: 1024px) {
    body.single-product table.variations {
        display: flex;          /* macht die Zeilen zu flex-items */
        flex-wrap: wrap;
        gap: 18px;
    }
    body.single-product table.variations tr {
        width: calc(50% - 9px); /* zwei Spalten */
    }
}

/* Hide Default Select */
table.variations select {
    display: none;
}

/* Swatch Wrapper - Individual Items */
table.variations .swatch-wrapper {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

table.variations .swatch-wrapper:hover {
    border-color: #b50000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(181, 0, 0, 0.15);
}

table.variations .swatch-wrapper.selected {
    border-color: #b50000;
    border-width: 3px;
    box-shadow: 0 0 0 3px rgba(181, 0, 0, 0.1);
}

/* Swatch Anchor - Override inline styles */
table.variations .swatch-wrapper a.swatch-anchor,
.swatch-control .swatch-wrapper a.swatch-anchor,
div[id^="picker_"] .swatch-wrapper a.swatch-anchor {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    min-height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    padding: 4px !important;
    text-decoration: none !important;
    position: relative !important;
}

table.variations .swatch-wrapper a.swatch-anchor:focus-visible {
    outline: 3px solid #b50000;
    outline-offset: 2px;
}

/* Swatch Images */
table.variations .swatch-wrapper img.swatch-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
}

/* Swatch Label Text */
table.variations .swatch-wrapper .swatch-anchor-label {
    display: none;
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #111827;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

table.variations .swatch-wrapper:hover .swatch-anchor-label {
    display: block;
    opacity: 1;
}

/* Reset Link */
table.variations a.reset_variations {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

table.variations a.reset_variations:hover {
    background: #e5e7eb;
    color: #111827;
}

table.variations a.reset_variations:focus-visible {
    outline: 3px solid #b50000;
    outline-offset: 2px;
}

/* Disabled State */
table.variations .swatch-wrapper.disabled {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(100%);
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    table.variations tr {
        padding: 18px;
        margin-bottom: 20px;
    }

    table.variations th.label {
        font-size: 15px;
        padding-bottom: 10px;
    }

    table.variations .swatch-control {
        gap: 10px;
    }

    table.variations .swatch-wrapper a.swatch-anchor,
    .swatch-control .swatch-wrapper a.swatch-anchor,
    div[id^="picker_"] .swatch-wrapper a.swatch-anchor {
        width: 70px !important;
        height: 70px !important;
        min-width: 70px !important;
        min-height: 70px !important;
        max-width: 70px !important;
        max-height: 70px !important;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    table.variations tr {
        padding: 16px;
        margin-bottom: 18px;
        border-radius: 10px;
    }

    table.variations th.label {
        font-size: 14px;
        padding-bottom: 10px;
    }

    table.variations .swatch-control {
        gap: 8px;
        justify-content: flex-start;
    }

    table.variations .swatch-wrapper a.swatch-anchor,
    .swatch-control .swatch-wrapper a.swatch-anchor,
    div[id^="picker_"] .swatch-wrapper a.swatch-anchor {
        width: 65px !important;
        height: 65px !important;
        min-width: 65px !important;
        min-height: 65px !important;
        max-width: 65px !important;
        max-height: 65px !important;
    }

    table.variations .swatch-wrapper {
        border-radius: 8px;
    }

    table.variations a.reset_variations {
        padding: 6px 14px;
        font-size: 13px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    table.variations tr {
        padding: 14px;
        margin-bottom: 16px;
    }

    table.variations th.label {
        font-size: 14px;
        padding-bottom: 8px;
    }

    table.variations .swatch-control {
        gap: 8px;
    }

    table.variations .swatch-wrapper a.swatch-anchor,
    .swatch-control .swatch-wrapper a.swatch-anchor,
    div[id^="picker_"] .swatch-wrapper a.swatch-anchor {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        min-height: 60px !important;
        max-width: 60px !important;
        max-height: 60px !important;
    }

    table.variations .swatch-wrapper {
        border-width: 2px;
    }

    table.variations .swatch-wrapper.selected {
        border-width: 2px;
    }

    table.variations a.reset_variations {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}

/* ========================================
   ATTRIBUTE PICKER LABEL (if used)
   ======================================== */

.attribute_pa_schaltung_picker_label,
.attribute_pa_farbe_picker_label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
}

/* ========================================
   PRODUCT LOOP IMAGE SWATCHES
   ======================================== */

.bo-product-swatches {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* Wrapper for each image swatch */
.bo-product-swatches .bo-swatch-wrapper {
    display: inline-block;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

/* Product image inside swatch */
.bo-product-swatches .bo-swatch-wrapper .bo-swatch-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hover effect */
.bo-product-swatches .bo-swatch-wrapper:hover {
    border-color: #9ca3af;
    transform: scale(1.08);
}

/* Active/selected state */
.bo-product-swatches .bo-swatch-wrapper.bo-swatch-active {
    border-color: #374151;
    transform: scale(1.08);
}

/* "+X" indicator for more variations */
.bo-swatch-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    min-width: 24px;
    height: 40px;
    padding: 0 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bo-product-swatches {
        gap: 5px;
        margin-top: 8px;
    }

    .bo-product-swatches .bo-swatch-wrapper {
        width: 32px;
        height: 32px;
    }

    .bo-swatch-more {
        font-size: 11px;
        min-width: 20px;
        height: 32px;
    }
}
