/*
Theme Name: AMP-Fusion
Theme URI: https://amp-fusion.com
Description: AMP-Fusion Theme
Author: Pedro de Oliveira
Author URI: http://whospedro.com
Template: twentytwentyfive
Version: 1.0.0
*/

/******************************************************************************************************************* HELPERS
**/

/* HIDE ON MOBILE */
@media (max-width: 782px) { 
   .hide-mobile{
       display: none !important;
    }
}

/******************************************************************************************************************* HEADER WITH MEGAMENU
**/

#megamenu[aria-expanded="false"] > #megamenu-container,
#megamenu > #megamenu-container {
  display: none !important;
}

#megamenu[aria-expanded="true"] > div:first-child{
    border-bottom-right-radius: 0px !important;
    border-bottom-left-radius: 0px !important;
}
#megamenu[aria-expanded="true"] > #megamenu-container {
  display: flex !important;
}

#megamenu-container a span {
  font-family: "Space Grotesk" !important;
}

@media (max-width: 782px) { 
   #megamenu[aria-expanded="true"] > #megamenu-container {
       flex-direction: column;
        gap: 48px;
        overflow: scroll;
        margin: 0 !important;
    }
    
    header{
        display: flex;
        flex-direction: column;
        max-height: 100vh;
    }
}

/******************************************************************************************************************* HEADER SHOP
**/

@media (max-width: 782px) { 
   .header-logo{
        flex: 1;
   }
}


/*******************************************************************************************************************  SHOP MAIN PAGE
**/

@media (max-width: 782px) { 
   .main-shop-products-cards-display{
        gap: 24px;
    }
}


/******************************************************************************************************************* CTA BLOCKs
**/

.cta-block{
    background: radial-gradient(
    129.6% 155.79% at -31.15% 26.4%,
    rgba(0, 235, 193, 0) 86.55%,
    #00e7e7 100%
  );
  position: relative;
  overflow: hidden;
}

.cta-block::after{
    content: "";
    background: radial-gradient(491.45% 141.42% at -0% 0%, #3ffff3 16.15%, #00e7e7 93.75%);
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    top: 0;
    left: 0;
    z-index: -1;
    transition: opacity 450ms cubic-bezier(0.33, 1, 0.68, 1);
}

.cta-block:hover::after{
    opacity: 1;
}

.cta-image{
    transform: translateY(50px);
    max-height: 320px;
    position: relative;
    z-index: 1;
}

@media (max-width: 600px) {
    .cta-image{
        transform: translateY(25px);
        max-height: 320px;
    }
    
    .cta-block::after{
        opacity: 1;
    }
}

/******************************************************************************************************************* PRODUCT CARDS
**/

.up-sells, .upsells{
    display: none !important;
}
.wc-block-product-template{
    margin-top: 0px;
}

.wc-block-product{
    border: 1px solid rgba(217, 217, 217, 0.1);
    border-radius: 4px;
    transition: all 240ms ease-out;
    background-color: #f5f5f5;
    overflow: hidden;
    padding-bottom: 16px;
}

.wc-block-product:hover{
    box-shadow:  0 0 8px 4px rgba(217, 217, 217, 0.1);
    background-color: #eeeeee;
    transform: scale(1.0008);
    cursor: pointer;
}

.wc-block-product > .wc-block-components-product-image > a{
    text-align: center;
    padding: 40px;
    background-color: white;
}

.wc-block-product .wc-block-components-product-image img {
    max-width: 180px;
}

.wc-block-product h2, 
.wc-block-product h3{
    font-style: normal;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.4px;
    font-family: var(--wp--preset--font-family--open-sans) !important;
    font-size: var(--wp--preset--font-size--small) !important;
    text-align: left;
    padding: 0 16px !important;
}
.wc-block-components-product-price{
    text-align: left !important;
}
.wc-block-product .woocommerce-Price-amount{
    font-style: normal;
    font-weight: 300;
    padding-right: 0;
    padding-left: 0;
    font-size: var(--wp--preset--font-size--small) !important;
    color: var(--wp--preset--color--contrast) !important;
    text-align: left;
    padding: 0 16px !important;
}

/* Big Product card Highlighted on homepage */
.highlighted-product-parent{
    height: 100%;
}

.highlighted-product-parent .wc-block-product-template{
    display: flex;
    flex: 1;
}

.highlighted-product-parent .product-container > li {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.highlighted-product-image {
    display: flex;
    flex: 1;
}

.highlighted-product {
    display: flex;
    height: 100%;
    width: 100%;
}

.highlighted-product > div:nth-child(2){
    height: 100%;
}

.highlighted-product .wc-block-product > .wc-block-components-product-image > a{
    flex-grow: 1;
    align-content: center;
}





/******************************************************************************************************************* PRODUCT PAGE
**/

/* Product Specificattions Table styles */

:root{
--table-border: rgba(0,0,0,.1);
    
}

.product-page-specs th{
    font-weight: 400;
    padding-left: 0px;
}

.product-page-specs table {
    width: auto;
    min-width: 320px;
  border-spacing: 0;
  border-collapse: separate;
  border-radius: 4px;
      color: var(--wp--preset--color--accent-4) !important;
}

/* Table inside borders */
.product-page-specs td,
.product-page-specs th{
  border-top-color: rgba(0, 0, 0, 0);
  border-left-color: rgba(0, 0, 0, 0);
  border-right-color: rgba(0, 0, 0, 0);
  border-bottom-color: var(--table-border);
}

.product-page-specs tr:last-child td,
.product-page-specs tr:last-child th{
  border-bottom-color: rgba(0, 0, 0, 0);
}
.product-page-specs .wp-block-product-specifications-item__value p{
    margin: 4px 0;
}

.product-page-tabs .tabs {
    display: none !important;
}

.product-page-content .wp-block-woocommerce-product-image-gallery{
    position: sticky;
    top: 0;
}

.product-page-content .wc-block-components-product-summary ul{
    padding-left: 24px;
}

.product-page-content .wc-block-components-product-summary ul li:not(:last-child) { 
   margin-bottom: 8px;  
}

.product-page-content .wc-block-components-product-summary b { 
   font-weight: 600;
   color: var(--wp--preset--color--contrast);
}


/******************************************************************************************************************* CONTACT SHOP PAGE
**/

.contact-image{
    height: 100%;
}

.contact-image img{
    height: 100%;
    transform: scaleX(-1);
}

@media (max-width: 782px) { 
   .contact-image{
       display: none;
   }
}

/********************************************************************************** CONTACT FORM 7
**/

.wpcf7 > form{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    column-gap: 24px;
}

.wpcf7 > form p:has([name="first-name"]),
.wpcf7 > form p:has([name="last-name"]) {
  grid-column: span 1; /* metade da linha */
}

.wpcf7 > form p {
    margin-top: 0px;
    margin-bottom: 16px;
    grid-column: 1 / -1;
}

.wpcf7 > form p:last-of-type {
    margin-bottom: 0px;
}

.wpcf7 > form p > label {
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: .2px;
}

.wpcf7-form-control-wrap {
    display: flex;
    flex-direction: column;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea
{
    background-color: #fff;
    flex: 1;
    margin-top: 8px;
    border-radius: 4px;
    border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
    line-height: 1.2px;
    padding: 8px;
}

.wpcf7 textarea {
  min-height: 120px;
  padding: 0.75rem 1rem;
  line-height: 1.4;
  resize: vertical;
}


/********************************************************************************** FILTERS
**/


label:has(input[value="hybrid-inverters"]),
label:has(input[value="inversores-hibridos"]),
label:has(input[value="inversores-hibridos"]){
    display: none;
}

label[for="taxonomy/product_cat-batteries-storage"],
label[for="taxonomy/product_cat-baterias-almacenamiento"],
label[for="taxonomy/product_cat-baterias-armazenamento"] {
    display: none !important;
}

/********************************************************************************** CAPTCHA BANNER
**/
.grecaptcha-badge { visibility: hidden; }


