/* 
Theme Name: Hello Elementor Child (Contishop)
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

.form-newsletter{
    .gform_wrapper.gravity-theme .gfield{
        input{
            border: 1px solid var( --e-global-color-a59774c );
            border-radius: 30px;
            padding: 10px 20px;

            &:focus{
                outline: none;
                border-color: var(--e-global-color-primary);
            }

            &[type="submit"]{
                background-color: var(--e-global-color-primary);
                color: var(--e-global-color-text);
                border-color: var(--e-global-color-primary);
                cursor: pointer;

                &:hover{
                    background-color: transparent;
                    color: var(--e-global-color-primary);
                }
            }
        }
    }
    .gform_footer{
        display: none !important;
    }
}

.carrossel-categorias{
    .swiper-pagination-progressbar{
        top: auto;
        bottom: -22px;
    }
}

.box-combustivel{
    .elementor-icon{
        width: 50px;
        height: 50px;
        background: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 60px;
    }
}

.item-produto{
    .overlay-item{
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    &:hover{
        .overlay-item{
            opacity: 1;
        }
    }
    .link-overlay,  .link-overlay .elementor-heading-title a{
        display:block;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        font-size: 0px;
        z-index: 1;
    }
}

.woocommerce-breadcrumb{
    display: flex;
    align-items: center;
    gap: 5px;
}

.woocommerce span.onsale{
    background-color: var(--e-global-color-primary);
    color: var(--e-global-color-text);
    padding: 10px !important;
    border-radius: 0px;
    font-size: 12px;
    min-height: auto;
    left: auto;
    top: 20px;
    right: 20px;
    line-height: 1em;
    font-weight: bold;
}

table.variations{
    tbody td{
        background-color: transparent !important;
        padding: 0;
    }
    ul{
        padding-bottom: 0;
    }
}
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price,
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price{
    color: var(--e-global-color-primary)
}
/* ==========================================================================
   Tabela de Medidas — Linha (rótulo + botão)
   ========================================================================== */
.sgm-size-guide-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 12px; /* sobrescrito pelo controle do Elementor */
}

.sgm-size-guide-label {
	line-height: 1.4;
}

.sgm-size-guide-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px; /* sobrescrito pelo controle do Elementor */
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
	font-family: inherit;
	font-size: inherit;
	line-height: 1.4;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: opacity 0.2s ease, color 0.2s ease;
}

.sgm-size-guide-btn:hover {
	opacity: 0.75;
}

.sgm-size-guide-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 14px; /* sobrescrito pelo controle do Elementor */
	line-height: 1;
}

.sgm-size-guide-icon svg,
.sgm-size-guide-icon i {
	display: block;
	width: 1em;
	height: 1em;
}

/* ==========================================================================
   Tabela de Medidas — Modal
   ========================================================================== */
.sgm-size-guide-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sgm-size-guide-modal[hidden] {
	display: none;
}

.sgm-size-guide-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	cursor: pointer;
}

.sgm-size-guide-modal-box {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
	max-width: min(90vw, 860px);
	max-height: 90vh;
	width: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	outline: none;
}

.sgm-size-guide-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	border-bottom: 1px solid #e5e7eb;
	flex-shrink: 0;
}

.sgm-size-guide-modal-title {
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.4;
}

.sgm-size-guide-modal-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	padding: 4px;
	cursor: pointer;
	color: #6b7280;
	border-radius: 4px;
	transition: color 0.2s ease, background 0.2s ease;
	flex-shrink: 0;
}

.sgm-size-guide-modal-close:hover {
	color: #111;
	background: #f3f4f6;
}

.sgm-size-guide-modal-body {
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	padding: 16px 20px 20px;
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.sgm-size-guide-modal-img {
	max-width: 100%;
	height: auto;
	display: block;
	border-radius: 4px;
}

/* Impede scroll do body quando modal está aberto */
body.sgm-sg-modal-open {
	overflow: hidden;
}

/* Animação de entrada */
.sgm-size-guide-modal.sgm-sg-open .sgm-size-guide-modal-overlay {
	animation: sgm-sg-fade-in 0.22s ease;
}

.sgm-size-guide-modal.sgm-sg-open .sgm-size-guide-modal-box {
	animation: sgm-sg-slide-up 0.25s cubic-bezier(0.34, 1.3, 0.64, 1);
}

@keyframes sgm-sg-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes sgm-sg-slide-up {
	from { opacity: 0; transform: translateY(20px) scale(0.97); }
	to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* Responsivo */
@media ( max-width: 480px ) {
	.sgm-size-guide-modal-box {
		max-width: 100vw;
		max-height: 100dvh;
		border-radius: 16px 16px 0 0;
		align-self: flex-end;
		margin-top: auto;
	}

	.sgm-size-guide-modal {
		align-items: flex-end;
	}

	.sgm-size-guide-modal.sgm-sg-open .sgm-size-guide-modal-box {
		animation: sgm-sg-slide-up-mobile 0.28s cubic-bezier(0.34, 1.1, 0.64, 1);
	}

	@keyframes sgm-sg-slide-up-mobile {
		from { opacity: 0; transform: translateY(100%); }
		to   { opacity: 1; transform: translateY(0);     }
	}
}

.filtros-produto{
    .e-filter-item[data-filter="__all"]{
        display: none;
    }
    .e-filter-item[aria-pressed="true"]:not(:empty)::before{
        background-color: var(--e-global-color-primary);
        border-color: var(--e-global-color-primary);
    }
    .e-filter-item:not(:empty)::before{
        content: "";
        display: block;
        width: 20px;
        height: 20px;
        border-radius: 5px;
        border: 1px solid;
        margin-right: 12px;
    }

    &.blog .e-filter-item:not(:empty)::before{
        border-radius: 0;
        background-color: var(--e-global-color-text);
        clip-path: polygon(0 0, 100% 0, 100% 100%);
        transform: rotate(45deg);
        width: 12px;
        height: 12px;
        margin-left: -12px;
        margin-right: 16px;
    }

    &.blog .e-filter-item[aria-pressed="true"]:not(:empty)::before{
        background-color: var(--e-global-color-secondary);
        border-color: var(--e-global-color-secondary);
    }

}

button[name="tinvwl-add-to-cart"]{
    background-color: var(--e-global-color-primary) !important;
    color: var(--e-global-color-text) !important;
}

.seletor-cores{
    .e-filter-item{
        width: 20px;
        height: 20px;
        border: 1px solid var(--e-global-color-text);
        font-size: 0px;
        display: block;
        flex-basis: auto;
        opacity: 0.3;
        transition: all 0.3s ease;

        &[aria-pressed="true"],
        &:hover{
            opacity: 1;
        }

        &[data-filter="branco"] {
            background-color: #fff;
        }

        &[data-filter="preto"] {
            background-color: #000;
        }

        &[data-filter="cinza"] {
            background-color: #808080;
        }

        &[data-filter="prata"] {
            background-color: #c0c0c0;
        }

        &[data-filter="vermelho"] {
            background-color: #ff0000;
        }

        &[data-filter="azul"] {
            background-color: #0000ff;
        }

        &[data-filter="azul-marinho"] {
            background-color: #000080;
        }

        &[data-filter="verde"] {
            background-color: #008000;
        }

        &[data-filter="amarelo"] {
            background-color: #FFA500;
        }

        &[data-filter="laranja"] {
            background-color: #f58b00;
        }

        &[data-filter="roxo"] {
            background-color: #800080;
        }

        &[data-filter="rosa"] {
            background-color: #ffc0cb;
        }

        &[data-filter="marrom"] {
            background-color: #8b4513;
        }

        &[data-filter="bege"] {
            background-color: #f5f5dc;
        }

        &[data-filter="dourado"] {
            background-color: #d4af37;
        }

        &[data-filter="vinho"] {
            background-color: #800020;
        }

        &[data-filter="turquesa"] {
            background-color: #40e0d0;
        }
        
    }

}

body .woocommerce div.product form.cart .reset_variations{
    display: inline !important;
} 

.gform_button{
    background-color: var(--e-global-color-primary);
    color: var(--e-global-color-text);
    border-radius: 0px;
    border: 1px solid var(--e-global-color-primary) !important;

    &:hover{
        background-color: transparent;
        color: var(--e-global-color-primary);
    }
}

.form-contato{

    .gform-field-label{
        font-weight: 500 !important;
    }
    .gfield_description{
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    .gform_title{
        font-size: 31px;
    }

}

.box-hover:hover{
    border-color: var(--e-global-color-primary) !important;
}

.single_add_to_cart_button{
    img{
        display:none
    }
}

.sr7-arrows.hephaistos{
    display: flex !important;
    align-items: center;
    justify-content: center;


    &::before{
        content: "" !important;
        font-family: none !important;
        width: 10px;
        height: 10px;
        border-top: 3px solid #fff;
        border-left: 3px solid #fff;
        border-right: none;
        transform: rotate(-45deg);
    }

    &:not(.sr7-rightarrow){
        margin-left: -3px;
        padding-left: 6px;
    }

    &.sr7-rightarrow{
        padding-right: 6px;

        &::before{
            transform: rotate(135deg);
        }
    }
}
.quantity{
    display: flex;
    align-items: stretch;
    max-width: 140px;

    .qty{
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }
    &.hidden .qty-btn{
        display: none;
    }
    .qty-btn{
        background-color: var(--e-global-color-secondary) !important;
        padding: 5px 15px !important;
        border-radius: 14px 0px 0px 14px !important;
        color: #fff !important;
        font-weight: bold !important;
        margin: 0 !important;
        transition: opacity 0.3s ease;

        &.qty-plus{
            border-radius: 0px 14px 14px 0px !important;
        }

        &:hover{
            opacity: 0.8;
        }
    }
}

.desc-produto{
    .e-n-tab-title{
        margin-left: 15px !important;
    }
}

.xt_woovs-single-product .swatch.swatch-label{
    border-radius: 22px;
}

button[name="tinvwl-add-to-cart"]{
    border-radius: 30px !important;
    font-weight: 500 !important;
}

.woocommerce .tinv-wishlist .tinvwl_added_to_wishlist.tinv-modal button.button,
.wc-backward, .wc-forward{
    background-color: var(--e-global-color-primary) !important;
    color: var(--e-global-color-text) !important;
    border-radius: 30px !important;
    border: 1px solid var(--e-global-color-primary) !important;
    font-weight: 600 !important;
}

.shipping_address{
    min-height: 580px;
}

.galeria-produto{
    .flex-direction-nav{
        list-style: none;
        padding: 0;
        position: absolute;
        top: 35%;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;

        li{
            a{
                width: 15px;
                height: 15px;
                display: block;
                font-size: 0px;
                border: 4px solid var(--e-global-color-text);
                border-right: none;
                border-top: none;

                &:not(.flex-next){
                    margin-left: -6px;
                    padding-left: 6px;
                    transform: rotate(45deg);
                }

                &.flex-next{
                    padding-right: 6px;
                    transform: rotate(-135deg);
                    margin-right: -6px;
                }
            }
        }
    }
}

.button.e-apply-coupon{
    border-radius: 30px !important;
}

.woocommerce .elementor-pagination{

    .page-numbers:not(.dots){
        background-color: var(--e-global-color-primary);
        color: var(--e-global-color-text);
        border-radius: 4px;
        border: 1px solid var(--e-global-color-primary);
        font-weight: 600;
        padding: 5px 10px;
        transition: background-color 0.3s ease, color 0.3s ease;

        &:hover, &.current{
            background-color: var(--e-global-color-secondary);
            border-color: var(--e-global-color-secondary);
            color: #fff;
        }
    }

    .page-numbers.prev{

    }
}

.woocommerce-mini-cart__empty-message{
    font-size: 0px;

    &:after{
        content: "Carrinho vazio.";
        font-size: 16px;
        color: var(--e-global-color-text);
    }
}

/**************************\
  ESTILIZAÇÃO DAS ANIMAÇÕES DO MICROMODAL
\**************************/

.modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal__container {
  background-color: #fff;
  padding: 30px;
  max-width: 500px;
  max-height: 100vh;
  border-radius: 4px;
  overflow-y: auto;
  box-sizing: border-box;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal__title {
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
  box-sizing: border-box;
  color: #000 !important;
}

.modal__close {
  background: transparent;
  border: 0;
}

.modal__header .modal__close:before { content: "\2715"; }

.modal__content {
  margin-top: 2rem;
  margin-bottom: 2rem;
  line-height: 1.5;
  color: rgba(0,0,0,.8);
}

.modal__btn {
  font-size: .875rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: .5rem;
  padding-bottom: .5rem;
  background-color: #e6e6e6;
  color: rgba(0,0,0,.8);
  border-radius: .25rem;
  border-style: none;
  border-width: 0;
  cursor: pointer;
  -webkit-appearance: button;
  text-transform: none;
  overflow: visible;
  line-height: 1.15;
  margin: 0;
  will-change: transform;
  -moz-osx-font-smoothing: grayscale;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  transition: -webkit-transform .25s ease-out;
  transition: transform .25s ease-out;
  transition: transform .25s ease-out,-webkit-transform .25s ease-out;
}

.modal__btn:focus, .modal__btn:hover {
  -webkit-transform: scale(1.05);
  transform: scale(1.05);
}

.modal__btn-primary {
  background-color: #00449e;
  color: #fff;
}


@keyframes mmfadeIn {
    from { opacity: 0; }
      to { opacity: 1; }
}

@keyframes mmfadeOut {
    from { opacity: 1; }
      to { opacity: 0; }
}

@keyframes mmslideIn {
  from { transform: translateY(15%); }
    to { transform: translateY(0); }
}

@keyframes mmslideOut {
    from { transform: translateY(0); }
    to { transform: translateY(-10%); }
}

.micromodal-slide {
  display: none;
}

.micromodal-slide.is-open {
  display: block;
}

.micromodal-slide[aria-hidden="false"] .modal__overlay {
  animation: mmfadeIn .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="false"] .modal__container {
  animation: mmslideIn .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__overlay {
  animation: mmfadeOut .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__container {
  animation: mmslideOut .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide .modal__container,
.micromodal-slide .modal__overlay {
  will-change: transform;
}

.modal.micromodal-slide p
{
    margin-bottom: 0;
    display: flex;
}
.modal.micromodal-slide a
{
    display: inline-block;
    background-color: #F59D27;
    color: #000;
    padding: 12px 30px;
    border-radius: 100px;
    width: 100%;
    text-align: center;
    margin-right: 15px;
}
.modal.micromodal-slide a
{
    display: inline-block;
    background-color: #F59D27;
    color: #000;
    padding: 12px 30px;
    border-radius: 100px;
    width: 100%;
    text-align: center;
}
.modal.micromodal-slide a:last-child
{
    margin-right: 0;
    background-color: #000;
    color: #fff;
}
.modal__container {
    background-color: #fff;
    padding: 20px 25px 2px;
    max-width: 500px;
    max-height: 100vh;
    border-radius: 20px;
    overflow-y: auto;
    box-sizing: border-box;
    min-width: 400px;
}
.modal__header .modal__close:hover:before
{
    color: #fa9d00;    
}

.customer_role{
    background-color: var(--e-global-color-primary);
    width: 100%;    
    padding: 15px;
    border-radius: 6px;
    font-size: 16px;
    color: var(--e-global-color-text);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;

    @media (max-width: 767px) {
        flex-direction: column;
        gap: 10px;
    }

    .button{
        background-color: var(--e-global-color-secondary) !important;
    }
}