/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* GeneratePress Site CSS */ .home.full-width-content .inside-article {
	background: none;
}

/* Custom header */
.site-header button.wp-block-search__button {
	border: 1px solid var(--accent);
    margin-left: 0;
    border-radius: 0 5px 5px 0;
	overflow:hidden;
	padding:10px;
	background-color:var(--accent);
	color:var(--dark-blue);
}

.site-header #wp-block-search__input-1 {
    border-radius: 5px 0 0 5px;
	border: 1px solid var(--accent);
}

.site-header .wc-block-product-search .wc-block-product-search__button {
    background-color: var(--accent);
    color: var(--dark-blue);
    margin-left: 0;
}
.site-header .wp-block-search {
    flex: 1;
}
/* General styles */
.woocommerce ul.products li.product, .woocommerce ul.products {
    margin-bottom: 0;
} /* End GeneratePress Site CSS */

/* --- Germanized Infos in der Shop-Übersicht kompakter machen --- */

/* 1. Den gesamten Block ansprechen (Container) */
.woocommerce ul.products li.product .wc-gzd-additional-info {
    line-height: 1.3 !important; /* Hier den Zeilenabstand im Text ändern */
    margin-top: 10px; /* Abstand zum Preis darüber */
    font-size: 12px;  /* Optional: Falls die Schrift kleiner sein soll */
}

/* 2. Die Abstände zwischen den einzelnen Zeilen (MwSt, Versand, Lieferzeit) */
.woocommerce ul.products li.product .wc-gzd-additional-info .wc-gzd-tax-info,
.woocommerce ul.products li.product .wc-gzd-additional-info .wc-gzd-shipping-costs-info,
.woocommerce ul.products li.product .wc-gzd-additional-info .wc-gzd-delivery-time-info {
    margin-bottom: 2px !important; /* Abstand nach unten verringern */
    padding: 0;
}

/* 3. Speziell für die Lieferzeit (unterstes Element) */
.woocommerce ul.products li.product .wc-gzd-additional-info .wc-gzd-delivery-time-info {
    margin-bottom: 0 !important; /* Kein Abstand nach unten beim letzten Element */
}

.woocommerce ul.products li.product .price, .woocommerce div.product p.price {
    font-size: 1.2rem;
}

.product_list_widget .wc-gzd-additional-info, .products .wc-gzd-additional-info {
	    margin-top: .15rem !important;
		margin-bottom: .15rem !important;
}

.wc-gzd-additional-info.wc-gzd-additional-info-loop.tax-info {
    margin-top: 1.8rem !important;
}

.term-description {
	margin-top: 3rem;
}

/* -- Warenkorb Bilder vergrößern -- */

/* 1. Die Spalte für das Bild breiter machen */
.woocommerce-cart table.cart .product-thumbnail {
    width: 120px !important; /* Standard ist oft nur ca. 60-80px */
    min-width: 120px; /* Damit es nicht gequetscht wird */
}

/* 2. Das Bild selbst anpassen */
.woocommerce-cart table.cart .product-thumbnail img {
    width: 100% !important; /* Bild soll die 120px ausfüllen */
    max-width: 120px !important; 
    height: auto; /* Höhe passt sich automatisch an */
}

/* Optional: Auf Mobile (Handy) nicht zu riesig machen */
@media (max-width: 768px) {
    .woocommerce-cart table.cart .product-thumbnail {
        width: 80px !important;
        min-width: 80px;
    }
    /* Germanized versteckt Bilder auf Mobile manchmal, hiermit zeigst du sie: */
    .woocommerce-cart table.cart .product-thumbnail {
        display: table-cell !important; 
    }
}@media (max-width: 768px) {
    .woocommerce-cart table.cart .product-thumbnail {
        width: 80px !important;
        min-width: 80px;
    }

    .woocommerce-cart table.cart .product-thumbnail {
        display: table-cell !important;
    }
}

/* -- Blog Seite Anpassung Überschriften -- */
.blog .entry-title,
.archive .entry-title {
    font-size: 1.2rem;
	font-weight: bold;
    line-height: 1.25;
}

.blog .entry-summary,
.archive .entry-summary {
    font-size: 0.9rem;
    line-height: 1.6;
}


/* -- Checkout -- */


.woocommerce-checkout .col2-set {
    width: auto !important;
}

#order_review,
#order_review_heading {
    width: auto !important;
    float: none !important;
}


/* -- "Versandkostenpauschale:" im Checkout entfernen -- */

label[for="shipping_method_0_flat_rate2"] {
    font-size: 0;
}

label[for="shipping_method_0_flat_rate2"] .woocommerce-Price-amount {
    font-size: 1rem;
}

/* -- Optischer Ausgleich Logo + Searchbar -- */

.gb-container-1c805f97 {
	padding-top: 1rem;
}

.site-logo {
	padding-bottom: .5rem;
}


/* Checkout Felder verschönern */
.woocommerce-checkout input[type="text"], 
.woocommerce-checkout input[type="email"], 
.woocommerce-checkout input[type="tel"], 
.woocommerce-checkout select {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    transition: border-color 0.3s ease;
}

.woocommerce-checkout input:focus {
    border-color: #007cba; /* Dein Marken-Blau/Farbe */
    outline: none;
}

/* Zahlungsarten Box optimieren */
#payment ul.payment_methods {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px !important;
}

#payment ul.payment_methods li {
    margin-bottom: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
}

/* PayPal/Klarna Radio Buttons sauber ausrichten */
#payment ul.payment_methods li input {
    margin-right: 15px !important;
}




