/*
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
*/

/* Shop Mega Menu - Opacity-Based Transitions */
.tax-product_cat .container .template-shop .page-thumb{
    display: none!important;
}

.shop-mega-menu {
    position: fixed !important;
    top: 120px !important;
    left: 0 !important;
    right: 0 !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    z-index: 99999 !important;
    width: 100vw !important;
    padding: 0 !important;
    display: flex !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    pointer-events: none !important;
}

.shop-mega-menu.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.main_menu .avia-menu{
    width: 100%;
    justify-content: center;
    display: flex;
}

.avia_cart_buttons{
    justify-content: center;
    display: flex;
}

.avia_cart_buttons .add_to_cart_button{
    display: none!important;
}

.tile-calculator-header .info-icon{display: none!important;}
.tile-calculator-container .add-to-cart-calc .cart-icon{
    display: none!important;
}

/* Rest of your existing mega menu CSS stays the same */
.mega-col-1, .mega-col-2, .mega-col-3 {
    flex: 1 !important;
    padding: 40px !important;
    border-right: 1px solid #eee !important;
    min-height: 300px !important;
    vertical-align: top !important;
}

.mega-col-3 {
    border-right: none !important;
}

.menu-category {
    /* padding: 12px 0 !important; */
    border-bottom: 1px solid #f5f5f5 !important;
    cursor: pointer !important;
}

.menu-category:last-child {
    border-bottom: none !important;
}

.menu-category a {
    height: auto!important;
    line-height: 1!important;
    color: #333 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    display: block !important;
    padding: 10px 12px !important;
    transition: all 0.3s ease !important;
}

.menu-category a:hover,
.menu-category.active a {
    background: #f8f8f8 !important;
    color: #f3b54a !important;
}

.subcategory-group,
.final-subcategory-group {
    display: none !important;
}

.subcategory-group.active,
.final-subcategory-group.active {
    display: block !important;
}

.subcategory-item,
.final-subcategory-item {
    /* padding: 10px 0 !important; */
    border-bottom: 1px solid #f5f5f5 !important;
    cursor: pointer !important;
}

.subcategory-item:last-child,
.final-subcategory-item:last-child {
    border-bottom: none !important;
}

.subcategory-item a,
.final-subcategory-item a {
    height: auto!important;
    line-height: 1!important;
    color: #333 !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    display: block !important;
    padding: 10px 12px !important;
    transition: all 0.3s ease !important;
}

.subcategory-item a:hover,
.final-subcategory-item a:hover {
    background: #f8f8f8 !important;
    color: #007cba !important;
}

.has-mega-menu {
    position: relative !important;
}

.mega-col-1 {
    background: #fafafa !important;
}

.mega-col-2 {
    background: #fff !important;
}

.mega-col-3 {
    background: #fafafa !important;
}


/*Add your own styles here:*/
#header #header_meta,
#header #header_main{
    background-color: #4e535c;
    transition: background 0.4s ease-in-out;
}

.av_header_transparency #header_main{
    background-color: transparent!important;
}

.logo{
    z-index: 999!important;
}

.logo a img{
    padding: 10px!important;
}

.main_menu{
    width: 100% !important;
    display: flex;
    justify-content: center;
    padding-left: 15%;
}

.menu-item a {
    text-transform: uppercase;
}

.nouppercase a {
    text-transform: inherit!important;
}

.cart_dropdown li a{
    background-color: transparent!important;
}

.widget_shopping_cart_content,
.widget_shopping_cart_content a,
.widget_shopping_cart_content .mini_cart_item,
.widget_shopping_cart_content a .variation,
.avia-search-tooltip input,
.avia-search-tooltip .av_ajax_search_title,
.avia-search-tooltip .ajax_search_excerpt {
    color: #000000!important;
}

.avia-search-tooltip .ajax_search_excerpt {
    display: none!important;
}

.product a .image-overlay{
  display: none!important;
}

#collection .product-category h2{
    text-align: center!important;
    font-size: 18px!important;
}

.template-shop .product-category h2 {
    text-align: center !important;
    font-size: 18px !important;
}

/* Create a clipping container approach */

.product-category {
  position: relative;
  overflow: hidden;
}

.product-category a {
  position: relative;
  display: block;
  cursor: pointer;
  /* Create a stacking context */
  isolation: isolate;
}

/* Create an image wrapper that acts as a viewport */
.product-category a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: -1;
}

/* Position image within the viewport */
.product-category img {
  position: relative;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  transform: scale(1);
  transform-origin: center center;
  /* Clip to parent bounds */
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

/* Alternative approach using clip-path */
.product-category a {
  position: relative;
  display: block;
  cursor: pointer;
  overflow: hidden;
  /* Create exact boundaries */
  clip-path: inset(0);
}

.product-category img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  transform: scale(1);
  transform-origin: center center;
  display: block;
  /* Force containment */
  contain: layout style paint;
}

/* Scale with strict boundaries */
.product-category a:hover img {
  transform: scale(1.1);
}

/* Ensure title doesn't get affected */
.product-category .woocommerce-loop-category__title {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 1);
  margin: 0;
  padding: 10px;
}

.product-category .woocommerce-loop-category__title .count{
    display:none!important;
}

/* Most aggressive solution - use a mask */
.product-category a {
  position: relative;
  display: block;
  cursor: pointer;
  overflow: hidden !important;
  /* Set exact dimensions */
  width: 100%;
  height: auto;
  /* Create containing block */
  contain: layout;
}

.product-category img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  transform: scale(1);
  transform-origin: center center;
  /* Use will-change for better performance */
  will-change: transform;
  /* Prevent any overflow */
  max-width: none;
  max-height: none;
}

.product-category a:hover img {
  transform: scale(1.05); /* Try smaller scale first */
}

/* If nothing else works, use this nuclear option */
.product-category a {
  position: relative;
  display: block;
  cursor: pointer;
  overflow: hidden !important;
  /* Fixed viewport approach */
  height: auto;
}

.product-category a::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 999;
  pointer-events: none;
  /* This creates an invisible boundary */
}




/* Single Product Page */
.template-shop{
    padding-top: 0!important;
    border: none;
}

.products .product-category{
    border: none!important;
}

.single-product-main-image {
    width: 60%;
    margin: 0;
}

/* .single-product-main-image .woocommerce-product-gallery__wrapper>a{
    display: none;
} */

.single-product-main-image .woocommerce-product-gallery__wrapper .thumbnails{
    padding: 0!important;
    margin: 0!important;
}

.single-product-main-image .woocommerce-product-gallery__wrapper .thumbnails a{
    width: 47.5%!important;
    padding: 0!important;
    margin: 0!important;
    border: none!important;
}

.single-product-summary {
    padding: 16px 16px;
}

.single-product-summary h1{
    font-size: 28px!important;
}

.single-product-summary .stock{
    display: none!important;
}

.single-product-summary .in-stock{
    color: green;
}

.woocommerce-tabs{
    display: none!important;
}

/* Cart Widget */
.mini_cart_item .area-info{
    display: none!important;
}

/* Cart / Basket */

.template-blog .post .entry-content-wrapper > *{
    max-width: 100%!important;
}


@media only screen and (min-width: 767px) and (max-width: 990px) {
	.main_menu{
		width: auto !important;
		padding: 0 0px;
	}	
	
	.main_menu .avia-menu{
		margin-right: 30px;
	}
	
	.menu-item-search{
	    display:none!important;
	}
}

@media only screen and (max-width: 767px) {
	#header #header_meta, #header #header_main, .av-burger-overlay-scroll {
		background-color: #4e535c!important;
	}

    .html_av-overlay-side #top #wrap_all div .av-burger-overlay-scroll #av-burger-menu-ul a:hover{
        background-color: #f3b54a;
    }

    .responsive .av-logo-container {
		max-width: 100%!important;
		width: 100%!important;
    }

	.logo{
		width: 100%;
	}

	.main_menu{
		width:auto!important;
		display:flex!important;
	}
	
	#menu-item-search a{
        position: relative;
        top: 5px;
	    /* display:none!important; */
	}

	.tile-calculator-container{
		margin:0!important;
	}
}