/*
 Theme Name:   GeneratedPress Red Vision
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Joaquin Ogallar
 Author URI:   https://joaquinogallar.github.io
 Template:     generatepress
 Version:      0.1
*/

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Livvic:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/*
////////////////////////////////////////////////////////
\\\\\\\\\\\\\\\ VARIABLES & RESET STYLES \\\\\\\\\\\\\\\
////////////////////////////////////////////////////////
*/
video {
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
}

body.admin-bar #main-header {
    margin-top: 32px; /* altura estándar del wpadminbar en desktop */
}

:root {
    --main-color: #d71820;
    --main-color-hover: #b9111a;
    --accent-color: #6d6e71;
    --bg-color: #f4f4f4;
    --bg-color-dark: #0f0f0f;
    --text-light: #ffffff;
    --text-dark: #231815;
    --text-gray-1: #dadada;
    --text-gray-2: #bbbbbb;
    --text-gray-3: #a9a9a9;
    --text-gray-4: #8b8b8b;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    font-family: 'Poppins', sans-serif ;
    overflow-x: hidden;
}

a {
    font-family: 'Poppins', sans-serif ;
    text-decoration: none;
    border-radius: 5px;
}

ul, ol, li {
    list-style: none;
}

h3 {
    font-weight: 550 !important;
}

button {
    border-radius: 5px;
}

.text-red {
    color: var(--main-color);
}

.text-gray {
    color: var(--text-gray-2);
}

#main-banner {
    height: 100vh;
    background-color: #f4f4f4;
}

.hidden {
    display: none;
}

.ti-widget {
    width: 100% !important;
}

.ti-widget .ti-widget-container .ti-reviews-container-wrapper .ti-review-item .ti-inner {
    background-color: var(--text-light) !important;
}

.woocommerce {
    width: 100%;
}

.woocommerce-breadcrumb-container {
    padding: 0 10%;
    margin-top: 2rem;
    font-size: 1rem;
    font-weight: 500;
}

.woocommerce-breadcrumb-container .woocommerce-breadcrumb {
    color: var(--text-dark);
}

.woocommerce-breadcrumb-container a {
    color: var(--text-gray-3) !important;
    transition: all 0.3s ease;
}

.woocommerce-breadcrumb-container a:hover {
    color: var(--main-color) !important;
}

.entry-content {
    padding: 0 !important;
    margin: 0 !important;
}

section {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 3rem 10% !important;
    text-align: center;
    position: relative;
}

section h2 {
    font-weight: 550;
    margin-bottom: 3rem;
    font-size: 44px;
}


/*
//////////
---HERO---
//////////
*/
.hero {
    margin-top: 100px;
    width: 100%;
    height: 30vh;
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: end;
    background-color: #272727;
}

.hero h1 {
    color: var(--text-light);
    margin: 0 4rem 1.4rem 4rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*
//////////////////////
---PRODUCTS-SWIPERS---
//////////////////////
*/

.swiper {
    max-width: 1500px;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--main-color);
}

.generate-back-to-top__show {
    background-color: var(--main-color) !important;
    opacity: 0.6;
}

.generate-back-to-top__show:hover {
    opacity: 1;
}

.l-i-s-container, .f-s-container, .c-s-container {
    width: 100%;
} 

.product-slide {
    height: 100%;
    min-height: 330px;
    background-color: var(--text-light);
    border-radius: 10px;
    border: solid .5px var(--text-gray-2);
    text-align: left;
    box-shadow: 0 2px 14px 0 rgba(0,0,0,0.07);
}


.product-slide img {
    height: 170px;
    object-fit: contain;
    border-bottom: solid .5px var(--text-gray-2);
}

.product-slide .product-title {
    font-size: 22px;
    margin-bottom: 0;
}

.product-slide .product-price {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-dark);

}

.product-slide h4 {
    font-size: 15px;
    font-weight: 550;
    margin-bottom: 0;
}

.product-slide .product-desc {
    font-size: 11px;
    color: var(--text-gray-2);
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 33px;
}

.product-info {
    padding: 0 12px 12px 12px;
    height: 150px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info a {
    margin-top: 10px;
    background: transparent !important;
    color: var(--main-color) !important;
    border-radius: 5px;
    border: solid 1px var(--main-color);
    width: fit-content;
    font-weight: 500 !important;
    font-size: 15px;
    padding: 4px 12px;
    transition: all 0.3s ease;
}

.product-info a:hover {
    background-color: var(--main-color) !important;
    color: var(--text-light) !important;
}

/**/
.single-product-related .products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.single-product-related .products .producto-relacionado {
    width: 250px !important;
    margin: 0 !important;
}

.single-product-related .product-card {
    border-radius: 5px;
    overflow: hidden;
    max-width: 250px;
    height: 100%;
    border: solid .5px var(--text-gray-2);
    background-color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.single-product-related .product-card .product-info h3, .single-product-related .product-card .product-info .oroduct.price {
    margin: 0;
} 

.single-product-related .product-info {
    height: 100%;
    justify-content: center;
    align-items: center;
}

/*
pop ups
*/
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    position: fixed;
    top: 160px; 
    left: 220px;
    transform: translateX(-50%);
    z-index: 9999;
    max-width: 400px;
    width: 90%;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: fadeInOut 4s ease-in-out forwards;
}

.woocommerce-message {
    background-color: #d1f7d6;
    color: #1e4620;
}

.woocommerce-error {
    background-color: #fddede;
    color: #842029;
}

.woocommerce-info {
    background-color: #dbe9ff;
    color: #084298;
}

/* Animación de entrada y salida */
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    10% { opacity: 1; transform: translateX(-50%) translateY(0); }
    90% { opacity: 1; }
    100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

a.added_to_cart.wc-forward {
    display: none;
}

.out-of-stock-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ff4d4f;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    z-index: 10;
}

.woocommerce-order-overview {
    display: flex;
    justify-content: center;
}

.woocommerce-order-overview__payment-method {
    display: none !important;
}

.cancel {
    margin-left: 10px;
}

.cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
}

.cursor-trail .dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: rgba(255, 0, 0, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.2);
  backdrop-filter: blur(2px);
  transform: translate(-50%, -50%);
}

@media screen and (max-width: 768px) {
    .cursor-trail {
        display: none; /* Ocultar el cursor trail en dispositivos móviles */
    }
}