/*
Theme Name: Enfold Child
Description: A <a href='http://codex.wordpress.org/Child_Themes'>Child Theme</a> for the Enfold Wordpress Theme. If you plan to do a lot of file modifications we recommend to use this Theme instead of the original Theme. Updating will be much easier then.
Version: 1.0
Author: Kriesi
Author URI: http://www.kriesi.at
Template: enfold
*/

/*  Brand Images (PDP) */
div.product .product_title,
#top .legacy-itemprop-offers {
    padding-right: 150px;
}

div.product .brand_wrapper {
    position: absolute;
    top:0;
    right: 0;
    width: 100px;
}

/*  Price (PDP)
    ========================================================================  */
#top .price span.product-tax,
#top .price span.product-tax span {
    color: #4b5555;
    font-size: 20px;
	line-height: 1.1em;
}

#top .price span.product-tax-on,
#top .price span.product-tax-on span {
    font-size: 18px;
}

/*  Main Image (PDP)
    ========================================================================  */
@media only screen and (min-width: 768px) {

    /* single product - image area*/
    .product .single-product-main-image {
        width: 40%;
    }
    
    .woocommerce-product-gallery__wrapper {
        display: flex;
        flex-direction: row-reverse;
        gap: 10px;
    }
    
    .woocommerce-product-gallery__wrapper > a {
        height: max-content;
    }
    
}

/*  Product Meta (PDP)
    ========================================================================  */
#top .product_meta {
    margin-bottom: 20px;
    font-size: 18px;
}

#top .product_meta .sku_wrapper {
    font-size: 0.6em;
}

#top .product_meta .cta_wrapper {
    font-size: 0.72em;
    color: var(--enfold-main-color-color);
}

/*  Tabs (PDP)
    ========================================================================  */
div table.shop_attributes.woocommerce-product-attributes th {
    width: 50%;
}

.main_color tr.single-row-table:nth-child(odd) {
    color: var(--enfold-main-color-meta);
    background-color: var(--enfold-main-color-bg); 
}

.woocommerce-tabs #tab-product_properties ul {
    list-style-type: disc;
    list-style-position: inside;
}

/* Lieferumfang 2-spaltig */
table[aria-label="Lieferumfang"] .woocommerce-product-attributes-item__value ul {
    column-count: 2;
    column-gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

table[aria-label="Lieferumfang"] .woocommerce-product-attributes-item__value ul li {
    break-inside: avoid;
    padding: 5px 0;
}

/* Produktsicherheit */
.product_safety_wrapper > span {
    font-size: 13px;
}

/*  Add To Cart / Price Request (PDP)
    ========================================================================  */
#top form.cart .single_add_to_cart_button {
    background-color: #ffee00;
}

/*
#top form.cart .offer-request-button {
    margin-left: 10px;
}
*/

.single_add_to_cart_button {
    background-color: #ffee00 !important;
    color: black !important;
}

.single_add_to_cart_button:hover {
    background-color: #f2e202 !important; /* etwas dunkleres Gelb */
}

/*  Product Image (Loop)
    ========================================================================  */
@media only screen and (min-width: 768px) {
    .products .product .thumbnail_container {
        height: 386px;
        background-color: #fff;
        display: flex;
    }
    
    .products .product .thumbnail_container img {
        object-fit: contain;
    }
}

/*   Title (Loop)
    ========================================================================  */
@media only screen and (min-width: 768px) {

    .products .product h2 {
        display: -webkit-box;
         -webkit-line-clamp: 3;      /* Maximal 3 Zeilen anzeigen */
         -webkit-box-orient: vertical;
         overflow: hidden;
         text-overflow: ellipsis;    /* Ellipsis am Ende */
         min-height: 75px;
    }

}

/*  Price (Loop)
    ========================================================================  */
.products .product p.price {
    left: 0;
}

/*  Slider horizontal (Loop)
    ========================================================================  */
#top .products.columns-4 .product {
    margin: 0 1% 1% 0;
    width: 24.25%;
}

/*  Tax (Loop)
    ========================================================================  */
.tax-product_cat .avia-image-container.avia-align-center {
    margin: 0 auto;
}

/*
.tax-product_cat .flex_column.mtc-product-category-header {
    position: relative;
    background-size: contain;
}

.tax-product_cat .flex_column.mtc-product-category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    visibility: visible;
}
*/

.tax-product_cat .flex_column.mtc-product-category-header .av-special-heading-tag {
    color: #fff !important;
}

/*  Shipping Costs (Loop)
    ========================================================================  */
.wgm-info.woocommerce_de_versandkosten,
.wgm-info.shipping_de {
    display: none;
}

div .products .product a {
    display: inline;
}

/*  Sidebar
    ========================================================================  */
.sidebar_left.sidebar {
    text-align: left;
}

.widget_product_categories li.cat-parent,
.widget_product_categories li.cat-parent > a {
    color: green;
}

.widget_product_categories li.current-cat,
.widget_product_categories li.current-cat > a {
    color: red;
}

/*  Price Column (Cart)
    ========================================================================  */
.wc-block-cart__main table.wc-block-cart-items .wc-block-cart-items__header .wc-block-cart-items__header-total {
    width: 200px;
}

/*  Sidebar Category List
    ========================================================================  */

.container > .sidebar_left.sidebar {
    text-align: left;
}

.widget_product_categories li a {
    font-size: 15px;
}

/* Checkout
   ========================================================================= */

#billing_vat_id_field .optional,
#billing_hr_number_field .optional {
    display: none !important;
}

@media (min-width: 768px) {
    #billing_company_field,
    #shipping_company_field {
        float: left !important;
        width: calc(66.66% - 8px) !important;
        margin-right: 16px !important;
        clear: both !important;
    }
    
    #billing_attention_field,
    #shipping_attention_field {
        float: left !important;
        width: calc(33.33% - 8px) !important;
    }

    #billing_title_field,
    #shipping_title_field {
        float: left !important;
        width: calc(25% - 16px) !important;
        margin-right: 16px !important;
    }
    
    #billing_first_name_field,
    #shipping_first_name_field {
        float: left !important;
        width: calc(37.5% - 8px) !important;
        margin-right: 16px !important;
    }
    
    #billing_last_name_field,
    #shipping_last_name_field {
        float: left !important;
        width: calc(37.5% - 8px) !important;
    }
}

@media (max-width: 767px) {
    #billing_company_field, #billing_attention_field,
    #shipping_company_field, #shipping_attention_field,
    #billing_title_field, #billing_first_name_field, #billing_last_name_field,
    #shipping_title_field, #shipping_first_name_field, #shipping_last_name_field {
        clear: none !important;
        float: none !important;
        width: 100% !important;
        margin: 0 0 1em !important;
    }
}

/* Endpoint Kontodetails
   ========================================================================= */

.woocommerce form .password-input {
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative
}
.woocommerce form .password-input input {
	padding-right: 2.5rem !important;
	margin-bottom: 0;
}
.woocommerce form .password-input input::-ms-reveal {
	display: none
}
.woocommerce form .show-password-input {
	background: transparent;
	border: 0;
	color: #222;
	cursor: pointer;
	font-size: inherit;
	padding: 0;
	position: absolute;
	right: .7em;
	top: 50%;
	transform: translateY(-50%);
}
.woocommerce form .show-password-input.display-password {
	color: #999
}
.woocommerce form .show-password-input::after {
	font-family: dashicons;
	speak: never;
	-webkit-font-smoothing: antialiased;
	content: "\f177";
	margin-top: -2px;
	vertical-align: middle;
	display: inline-block
}

.woocommerce form .show-password-input.display-password::after {
    content: "\f530";
}

/*  ========================================================================
    Swiper CSS
    ========================================================================  */

.single-product div.product .woocommerce-product-gallery {
    height: 275px;
}

/* Slider-Container */
.cross-sell-slider,
.up-sell-slider,
.thumbnails-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

#top .single-product-main-image div.thumbnails-slider {
    width: 33.3%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 0;
    margin-top: 0;
 }

/* Swiper-Wrapper */
.cross-sell-slider .swiper-wrapper,
.up-sell-slider .swiper-wrapper,
.thumbnails-slider .swiper-wrapper {
    align-items: stretch; /* Gleichmäßige Höhe der Slides */
    box-sizing: border-box;
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

#top .single-product-main-image div.thumbnails {
    width: auto;
    height: 100%;
    display: block;
    padding: 0;
}

#top .single-product-main-image div.thumbnails.swiper-wrapper {
    margin-top: 50px;
}

/* Swiper-Slide: Produkt */
#top .cross-sell-slider .products.columns-4 .product,
#top .up-sell-slider .products.columns-4 .product {
    width: auto;
}

#top .single-product-main-image div.thumbnails .swiper-slide > a {
    width: 100%;
    height: 100%;
}

#top .single-product-main-image div.thumbnails .swiper-slide > a > img {
    display: block;
    max-height: 75px; /* gewünschte Thumbnail-Höhe */
    width: auto;
    margin: 0 auto; 
    object-fit: contain; /* sorgt dafür, dass das Bild nicht verzerrt wird */
}

.cross-sell-slider .swiper-slide,
.up-sell-slider .swiper-slide,
.thumbnails-slider .swiper-slide {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    height: auto;
    padding: 0 10px;
    margin: 0;
    width: 24.5%;
    /* width: auto !important; */ /* Breite wird von Swiper gesteuert */
}

.thumbnails-slider .swiper-slide {
    flex-direction: row;
    width: auto;
}

/* Navigation: Swiper-Buttons */
.cross-sell-slider .swiper-button-prev,
.cross-sell-slider .swiper-button-next,
.up-sell-slider .swiper-button-prev,
.up-sell-slider .swiper-button-next,
.thumbnails-slider .swiper-button-prev,
.thumbnails-slider .swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #333;
    font-size: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.cross-sell-slider .swiper-button-prev,
.up-sell-slider .swiper-button-prev,
.thumbnails-slider .swiper-button-prev {
    left: 10px;
}

.thumbnails-slider .swiper-button-prev {
    top: 40px;
}

.cross-sell-slider .swiper-button-next,
.up-sell-slider .swiper-button-next {
    right: 10px;
}

.thumbnails-slider .swiper-button-next   {
    top: 40px;
}

.cross-sell-slider .swiper-button-prev:after,
.cross-sell-slider .swiper-button-next:after,
.up-sell-slider .swiper-button-prev:after,
.up-sell-slider .swiper-button-next:after,
.thumbnails-slider .swiper-button-prev:after,
.thumbnails-slider .swiper-button-next:after {
    font-family: dashicons;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.thumbnails-slider .swiper-button-prev:after {
    content: "\f343"; /* Dashicons Pfeil oben */
}

.cross-sell-slider .swiper-button-next:after,
.up-sell-slider .swiper-button-next:after {
    content: "\f345"; /* Dashicons Pfeil rechts */
}

.thumbnails-slider .swiper-button-next:after {
    content: "\f347"; /* Dashicons Pfeil unten */
}

.cross-sell-slider .swiper-button-prev:after,
.up-sell-slider .swiper-button-prev:after {
    content: "\f341"; /* Dashicons Pfeil links */
}

/* Produkt-Inhalt im Slide */
.cross-sell-slider .swiper-slide .product,
.up-sell-slider .swiper-slide .product {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-radius: 5px;
    overflow: hidden;
}

#top .single-product-main-image .thumbnails a {
    float: none;
    margin: 0;
}

/* Responsive Anpassungen */
@media (max-width: 767px) {
    .cross-sell-slider .swiper-slide,
    .up-sell-slider .swiper-slide,
    .thumbnails-slider .swiper-slide {
        padding: 0 5px;
    }
}