/*
Theme Name: Astra
Theme URI: https://www.instagram.com/nick.porti/
Description: Tema personalizado para Asta.
Author: Nicolás Portillo
Author URI: https://www.instagram.com/nick.porti/
Template: Total
Version: 1.0
*/

/*//////////////////////////////////////////////////////////////////*/
/*/// VARIABLES ////////////////////////////////////////////////////*/
/*//////////////////////////////////////////////////////////////////*/

:root {
	--general-gap: 100px;
	--box-gap: clamp(50px,10vw,80px);
	--grid-gap: clamp(30px,10vw,50px);
	--small-gap: 30px;
	
	--br-round: 10px;
	--br-pill: 500px;
}

@media (max-width: 998px) {
	
	:root {
		--general-gap: 80px;
	}
	
}

@media (max-width: 768px) {
	
	:root {
		--general-gap: 50px;
	}
	
}

/*//////////////////////////////////////////////////////////////////*/
/*/// GENERAL //////////////////////////////////////////////////////*/
/*//////////////////////////////////////////////////////////////////*/

::-webkit-scrollbar {
    width: 0.7rem;
}
 
::-webkit-scrollbar-track {
    background: #ddd;
}
 
::-webkit-scrollbar-thumb {
    background: #000;
}

/* Marquesina */

.marquesina {
	font-family: 'Times New Roman', Times, serif;
	font-size: 8vw;
    font-weight: 300;
	line-height: 1em;
	text-transform: uppercase;
    width: 100%;
    overflow: hidden;
}

.marquesina__track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.marquesina__grupo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.marquesina__item,
.marquesina__separador {
    white-space: nowrap;
}

.marquesina__separador {
    margin: 0 2rem;
}

.marquesina__separador:has(img) {
	display: flex;
	align-content: center;
}

.marquesina__separador-img {
	height: 1.5ch;
}

.marquesina--izquierda .marquesina__track {
    animation: marquesina-izquierda var(--marquesina-velocidad, 25s) linear infinite;
}

@keyframes marquesina-izquierda {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

}

.marquesina--derecha .marquesina__track {
    animation: marquesina-derecha var(--marquesina-velocidad, 25s) linear infinite;
}

@keyframes marquesina-derecha {

    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }

}

/* CTA */

.cta {
	border-radius: var(--br-round);
	color: #fff;
	padding: var(--box-gap);
	overflow: hidden;
}

.cta::before {
	content: "";
	background: linear-gradient(to right,rgba(0,0,0,0.8),rgba(0,0,0,0));
	display: block;
	position: absolute;
	inset: 0;
}
/*
.cta .contenido .vc_column-inner > .wpb_wrapper {
	background: #fff;
	border-radius: var(--br-round);
	padding: var(--grid-gap);
}*/

/*//////////////////////////////////////////////////////////////////*/
/*/// HEADER ///////////////////////////////////////////////////////*/
/*//////////////////////////////////////////////////////////////////*/

.overlay-header::before {
	content: "";
	background: #000;
	height: 100%;
	position: absolute;
	inset: 0;
}

.home .overlay-header::before {
	background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0));
	height: 300%;
}

.is-sticky .overlay-header::before {
	opacity: 0;
}

#site-header-inner {
	height: auto !important;
	transition: padding ease 0.3s;
}

#site-header {
	padding-block: 20px;
	transition: border ease 0.3s;
}

.is-sticky #site-header,
body:not(.home) #site-header {
	border-bottom: 1px solid var(--wpex-border-main);
}

/* Menú */

#site-navigation .current-menu-item a {
	font-weight: bold;
}

/* Aside */

#site-header-flex-aside svg {
	height: var(--wpex-icon-height, 1em);
    width: var(--wpex-icon-width);
}

#site-header-flex-aside :is(a,button) {
	--size: 40px;
	border: 2px solid #000;
	border-radius: 100%;
	font-size: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--size);
	height: var(--size);
	transition: background ease 0.3s, border ease 0.3s, color ease 0.3s;
}

#site-header-flex-aside :is(a,button):hover {
	background: #000;
	color: #fff;
}

#site-header-sticky-wrapper:not(.is-sticky) .overlay-header #site-header-flex-aside :is(a,button) {
	border-color: #fff;
}

#site-header-sticky-wrapper:not(.is-sticky) .overlay-header #site-header-flex-aside :is(a,button):hover {
	background: #fff;
	color: #000 !important;
}

#site-header-flex-aside .wpex-header-cart-icon__fragments {
	margin: 0;
	position: absolute;
	top: -5px;
	right: -5px;
}

#site-header-sticky-wrapper:not(.is-sticky) .overlay-header #site-header-flex-aside .wpex-header-cart-icon__count {
	background: #fff;
	color: #000;
}

/*//////////////////////////////////////////////////////////////////*/
/*/// INICIO ///////////////////////////////////////////////////////*/
/*//////////////////////////////////////////////////////////////////*/

#hero img {
	width: 100%;
	height: 100vh;
	object-fit: cover;
}

#hero .wpex-slider .sp-buttons {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 0;
	inset: auto 0 50px 50%;
	transform: translateX(-50%);
	z-index: 999;
}

#hero .wpex-slider .sp-button {
	--size: 15px;
	border-width: 2px;
	border-radius: var(--br-pill);
	width: var(--size);
	height: var(--size);
	margin: 0;
}

#hero .wpex-slider .sp-button.sp-selected-button {
	width: calc(var(--size) * 2);
}

#hero .vcex-animated-text {
	position: absolute;
	inset: 50% 0 auto 0;
	transform: translateY(-50%);
	z-index: 999;
}

/*//////////////////////////////////////////////////////////////////*/
/*/// PRODUCTOS ////////////////////////////////////////////////////*/
/*//////////////////////////////////////////////////////////////////*/

.product .wpex-loop-product-images {
	border-radius: var(--br-round);
}

.product img {
	aspect-ratio: 4/5;
	object-fit: cover;
}

.product.outofstock img {
	filter: grayscale(100%);
}

.product .product-details {
	display: flex;
	justify-content: space-between;
	align-items: center;
	column-gap: 30px;
	row-gap: 10px;
	padding-top: 20px;
}

.product .product-details > * {
	margin: 0;
}

.product .price:has(del) {
	display: flex;
	align-items: center;
	column-gap: 10px;
	row-gap: 5px;
}

.product .price del {
	font-style: normal;
}

.woocommerce .onsale,
.woocommerce .outofstock-badge,
.wc-block-grid__product-onsale {
	/*background: #fff;
	color: #000;*/
	inset-block-start: 30px;
    inset-inline-start: 30px;
}

/*//////////////////////////////////////////////////////////////////*/
/*/// ARCHIVO //////////////////////////////////////////////////////*/
/*//////////////////////////////////////////////////////////////////*/

/*//////////////////////////////////////////////////////////////////*/
/*/// FOOTER ///////////////////////////////////////////////////////*/
/*//////////////////////////////////////////////////////////////////*/

#footer a:not([href]) {
	color: #fff !important;
}

#footer .menu-item .menu-item-icon {
	margin: 0;	
}

#footer .menu-item .menu-item-icon + em {
	display: none;
}

#footer-bottom-inner {
	border-top: 1px solid rgba(255,255,255,0.2) !important;
	padding-top: var(--small-gap);
}