﻿.btnTheme:hover{
    color: white !important;
}

/*Rotative Text*/
.rotating-text {
    position: relative;
    display: inline-block;
    height: 1.4em;
    min-width: 300px;
    text-align: center;
}

.rotating-text span {
    display: inline-block;
    opacity: 0;
    transition: opacity 0.6s ease;
    white-space: nowrap;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.rotating-text span.visible {
    opacity: 1;
}

.rotating-text span.hide {
    opacity: 0;
}

/*Floating buttons*/

.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

/* Botones base */
.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    background: #111;
    color: white;
    opacity: 1;
    transition: all 0.3s ease, opacity 0.3s ease;
}

/* WhatsApp color */
.float-btn.whatsapp {
    background: #25D366;
    color: white;
}

/* Estado más transparente al hacer scroll */
.floating-buttons.scrolled .float-btn {
    opacity: 0.35;
}

/* Cuando se activa con click */
.float-btn.active {
    opacity: 1 !important;
    transform: scale(1.05);
}

.categorieFilter {
    cursor: pointer;
    transition: all 0.2s ease;
}

.categorieFilter.active {
    text-decoration: underline;
    font-weight: 600;
}

@media (min-width: 768px) {

    #filtersPanel {
        position: static;
        transform: none !important;
        visibility: visible !important;
        border: 0;
        width: auto;
        background: transparent;
    }

        #filtersPanel .offcanvas-header {
            display: none;
        }
}

.text-theme {
    color: #765238 !important;
}

.img-product {
    width: 100%;
    max-width: 490px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.img-product-detail {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1; 
    object-fit: cover; 
    display: block;
    margin: 0 auto; 
    margin-top: 10px;
}

.imagsGallery {
    display: flex;
    flex-wrap: wrap; 
    gap: 5px; 
    justify-content: center; 
    align-items: center; 
}

.imagsItems {
    flex: 0 0 300px;
    height: 300px; 
    overflow: hidden;
    border-radius: 4px;
}

.imagsItems img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.variantsContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variantButton {
    min-width: 80px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    transition: all 0.2s;
}

.variantButton:hover:not(.disabled) {
    border-color: #765238;
    color: white !important;
    background-color: #765238;
}

.variantButton.disabled {
    color: #aaa;
    text-decoration: line-through;
    cursor: not-allowed;
    background-color: #f9f9f9;
}

.variantButton.active {
    background-color: #765238;
    color: white !important;
    border-color: #765238;
}


/*Favorites*/
.productColumn.favorite .pcActionsList {
    opacity: 1;
    transform: translateX(0%);
}

.btn-circle-close {
    width: 30px; /* Circle width */
    height: 30px; /* Circle height */
    border-radius: 50%; /* Make it circular */
    border: 1px solid #765238;
    background-color: #fff;
    color: #765238;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    margin-right: 15px !important;
}

.btn-circle-close:hover {
    background-color: #765238;
    color: #fff;
    transition: 0.2s;
}

/*COLOR IN VIEW PRODUCT ID*/
.color-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-radio {
    cursor: pointer;
}

.color-radio input {
    display: none;
}

.color-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: block;
    border: 2px solid #ccc;
    transition: .2s;
}

.color-radio input:checked + .color-circle {
    border: 3px solid black;
    transform: scale(1.1);
}

/*CAROUSEL PRODUCT ID*/
#main-carousel .splide__slide img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

#thumbnail-carousel .splide__slide img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

#thumbnail-carousel .splide__slide.is-active {
    border: 2px solid #000;
}

/* Tablet */
@media (max-width: 1200px) {
    #main-carousel .splide__slide img {
        height: 400px;
    }
}

/* Móvil */
@media (max-width: 480px) {
    #main-carousel .splide__slide img {
        height: 360px;
    }
}

/*INPUT FILE IN CHECKOUT*/
.custom-file-upload {
    cursor: pointer;
    display: block;
}

.custom-file-upload input {
    display: none;
}

.upload-box {
    border: 2px dashed lightgray;
    border-radius: 10px;
    padding: 10px; /* menos padding */
    min-height: 220px; /* más alto */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-image {
    width: 100%;
    height: 200px; /* ocupa casi toda la caja */
    object-fit: cover; /* llena sin dejar espacios */
    border-radius: 8px;
}

.upload-box:hover {
    background-color: #f8f9fa;
}


/*BANNER INDEX*/
/* Contenedor principal (flex solo desde md) */
.ibsColumn {
    display: flex;
    flex-wrap: wrap;
}

/* 🔥 CLAVE: permite que el contenido no se desborde */
.ibsColumn > div {
    min-width: 0;
}

/* Columna texto (equivalente a col-md-5) */
.pddngS {
    flex: 0 0 41.666%;
    max-width: 41.666%;
}

/* Columna imagen (equivalente a col-md-7) */
.imgBannerHolder {
    flex: 0 0 58.333%;
    max-width: 58.333%;
    position: relative;
    overflow: hidden;
    min-height: 320px; /* estabilidad en tablets */
}

/* Imagen */
.imgBanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile */
@media (max-width: 767px) {
    .pddngS,
    .imgBannerHolder {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .imgBannerHolder {
        min-height: 260px;
    }

}

/* Desktop grande */
@media (min-width: 1200px) {
    .imgBannerHolder {
        aspect-ratio: 5 / 3; /* solo donde sí funciona bien */
    }
}

.btn-shop {
    background-color: #765238;
    color: white !important;
}

.contentblock {
    position: relative;
    overflow: hidden;
}

/*CATEGORIES*/

.imgHolderCat {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5; /* opcional para que no se vea vacío */
}

.imgHolderCat img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔥 aquí está el cambio */
    object-position: center;
    display: block;
}

/* Overlay */
.overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
}

.overlay h3 {
    color: #fff;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .imgHolderCat {
        height: 180px; /* más pequeño en celular */
    }
}

/* 🔥 OVERLAY NEGRO TRANSPARENTE */
.contentblock::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* ajusta la intensidad */
    z-index: 1;
}

/* IMAGEN DE FONDO */
.ibBgImage {
    z-index: 0;
}

/* TEXTO ENCIMA */
.txtblock {
    position: relative;
    z-index: 2;
}

.newsCol {
    position: relative;
}

/* IMAGEN */
.newsCol .ibBgImage {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* 🔥 OVERLAY ENCIMA DE LA IMAGEN */
.newsCol::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}


/* IMAGEN */
.bannerHead .bhBgImage {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* 🔥 OVERLAY */
.bannerHead::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* ajusta intensidad */
    z-index: 2;
}

/* CONTENIDO ENCIMA */
.bannerHead .alignHolder {
    position: relative;
    z-index: 3;
}

/* TEXTO ENCIMA DE TODO */
.newsCol .container {
    position: relative;
    z-index: 3;
}

.slick-dots{
    color: black !important;
}