/*
 Theme Name:   AdbitesDev
 Theme URI:    https://www.adbites.de
 Description:  Adbites child theme
 Author:       Heiko Schneider
 Author URI:   https://www.adbites.de
 Template:     generatepress
 Version:      0.1
*/

/* Add this to your style.css */

/* General styles for menu items with icons */
.menu-item[class*="menu-icon-"] {
    position: relative;
    padding-left: 30px; /* Adjust as needed */
    
}

.menu-item[class*="menu-icon-"]::before {
    content: '';
    position: absolute;
    left: 34;
    top: 50%;
    transform: translateY(-50%);
    width: 20px; /* Adjust icon size as needed */
    height: 20px; /* Adjust icon size as needed */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Specific icons */
.menu-icon-blog::before {
    background-image: url('/wp-content/uploads/blogging.svg');
}

.menu-icon-blog {
    padding-left: 34px !important;
}

.menu-icon-product::before {
    background-image: url('/wp-content/uploads/cubes.svg');
}

.menu-icon-product {
    padding-left: 34px !important;
}

.menu-icon-facebook::before {
    background-image: url('/wp-content/uploads/facebook.svg');
}

.menu-icon-facebook {
    padding-left: 34px !important;
}

.menu-icon-instagram::before {
    background-image: url('/wp-content/uploads/instagram.svg');
}

.menu-icon-instagram {
    padding-left: 34px !important;
}

.menu-icon-pinterest::before {
    background-image: url('/wp-content/uploads/pinterest.svg');
}

.menu-icon-pinterest {
    padding-left: 34px !important;
}

.menu-icon-dashboard::before {
    background-image: url('/wp-content/uploads/speedometer.svg');
}

.menu-icon-dashboard {
    padding-left: 34px !important;
}

.menu-icon-buchungen::before {
    background-image: url('/wp-content/uploads/receipt.svg');
}

.menu-icon-buchungen {
    padding-left: 34px !important;
}


/* Add more specific icon styles as needed */

.menuheadline a {
    font-weight: bold !important;
}


.woocommerce-products-header h1 {
    font-size: 24px;
    font-weight: 700;
}

.woocommerce-breadcrumb {
    font-size: 10px !important;
}


.term-facebook-inhalte .woocommerce-product-details__short-description p {
    font-size: 13px;
}


.term-facebook-inhalte .woocommerce-LoopProduct-link {
    background-color: #fff !important;
    border: 1px solid #e3e3e3 !important;
    height: 100%;
    padding:20px;
    border-radius: 5px;
}

.term-facebook-inhalte .inside-wc-product-image {
    border: 1px solid #e3e3e3 !important;
}

.quantity {
    display:none;
}


/* Add this to your theme's CSS file or in the Customizer's Additional CSS section */

/* Target Pinterest category products */
.product-category-pinterest-inhalte .wc-product-image {
    position: relative;
    width: 100%;
    padding-bottom: 150% !important; /* Maintain 2:3 Aspect Ratio */
    overflow: hidden;
}

.product-category-pinterest-inhalte .wc-product-image .inside-wc-product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-category-pinterest-inhalte .wc-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from 'cover' to 'contain' */
    object-position: center;
    max-width: 100%;
    max-height: 100%;
}

/* Adjust the product title position if needed */
.product-category-pinterest-inhalte .woocommerce-loop-product__title {
    margin-top: 1em;
}

/* Hide short description for Pinterest products on category and shop pages */
.product-category-pinterest-inhalte .woocommerce-product-details__short-description {
    display: none;
}

/* Ensure the "In den Warenkorb" button is positioned correctly */
.product-category-pinterest-inhalte .button {
    position: relative;
    z-index: 2;
}

/* Optional: Adjust overall product grid layout if needed */
@media (min-width: 768px) {
    .woocommerce ul.products li.product-category-pinterest-inhalte {
        margin-bottom: 2em;
    }
}