/*
 Theme Name:    Electro Child
 Theme URI:     https://themeforest.net/item/electro-electronics-store-woocommerce-theme/15720624
 Description:   This is the child theme of Electro
 Author:        MadrasThemes
 Author URI:    https://madrasthemes.com/
 Template:      electro
 Version:       3.6.4
 License:       GNU General Public License v2 or later
 License URI:   http://www.gnu.org/licenses/gpl-2.0.html
 Tags:          light, dark, two-columns, right-sidebar, responsive-layout
 Text Domain:   electro-child
*/

/* WooCommerce product thumbnails with fixed height */
.woocommerce ul.products li.product a img, .woocommerce ul.product-loop-categories li.product-category a img, .products-carousel-tabs   a img {
  height: 200px !important;        /* set your preferred thumbnail height */
  width: auto;          /* keep original proportions */
  object-fit: contain;  /* scale the image inside the box without cropping */
  display: block;
  margin: 0 auto;
}

.gutena-forms-field.text-field, .gutena-forms-field.textarea-field, .gutena-forms-field.email-field {
	padding-left: 10px !important;
	border: 1px solid silver !important;
}
.section-product-categories {
  display: none !important;
}

.woocommerce .netto-price {
	font-size: 50%;
}

.woocommerce .netto-price::after {
	content: ":";
}

.product_meta {
   display:none;
}

/* Limit main product image gallery height */
.woocommerce-product-gallery__wrapper,
.woocommerce-product-gallery__image img {
    max-height: 500px; /* change this value as needed */
    width: auto;
    object-fit: contain; /* keeps aspect ratio */
}


.woocommerce .star-rating,
.woocommerce-page .star-rating, .woocommerce .product-rating {
    display: none !important;
}

/* Make wrapper relative to position badges */
.woocommerce-loop-product__link {
    position: relative; /* ensures absolute badges are positioned relative to product image */
}

/* Badge container */
.custom-badge-wrapper {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column; /* stack vertically */
    gap: 5px; /* space between badges */
    z-index: 10;
}

/* Individual badges */
.custom-badge {
    background: #ff4c3b;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Optional colors for specific badges */
.polecamy-badge { background: #28a745; }

.single-product-wrapper .custom-badge  {
    margin: 10px 10px 0 10px; /* spacing around the wrapper */
}

.page-template-template-homepage-v2 #sidebar {
	margin-top: 420px !important;
}

div.summary.entry-summary div.brand {
    display: none !important;
}

/* Make cart submit button look like checkout place order button */
.wc-block-cart__submit-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 48px !important;
    padding: 12px 24px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    background-color: #efecec;
    border-color: #efecec;
    color: #333e48;
}

.wc-block-cart__submit-button .wc-block-components-button__text {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}