/* =========================================
MADAME CELLO — SWATCHES
========================================= */

.mc-swatches{
display:flex;
gap:10px;
flex-wrap:wrap;
margin-top:0;
background-color:transparent !important;
}

/* =========================================
MADAMECELLO — FIX VARIATIONS
========================================= */

.mc-variations-wrapper table.variations td{

display:block;
width:100%;
padding:0;

background: transparent!important; /* solo debug */
border: 0px;

}


/* LABEL */

.mc-variations-wrapper table.variations .label{

font-family:'Cormorant',serif;
font-size:16px;
font-weight:600;

color:var(--mc-marron);

margin-bottom:0;

background:transparent!important;
border:0;

padding:0;

text-align:left;   /* 👈 alinea el texto a la izquierda */

}


.mc-swatch{

width:36px;
height:36px;

border-radius:50%;
border:1px solid var(--mc-marron);

cursor:pointer;

background-size:cover;
background-position:center;

display:flex;
align-items:center;
justify-content:center;

font-size:15px;
font-weight:600;

color:var(--mc-marron);

transition:.25s;

}

.mc-swatch:hover{

transform:scale(1.08);
border-color:var(--mc-vinotinto);

}

.mc-swatch.active{

border-color:var(--mc-vinotinto);

}

.mc-swatch.disabled{

opacity:.35;
filter:grayscale(100%);
pointer-events:none;

}

.mc-swatch.mc-text{

background:var(--mc-fondo);

width:auto;
padding:6px 12px;

border-radius:20px;

color:var(--mc-marron);

}


/* ocultar select real de Woo */

.variations select{

position:absolute;
opacity:0;
pointer-events:none;
height:0;

}


/* =========================================
MADAMECELLO — VARIATIONS SIN TABLA
========================================= */

.mc-variations-wrapper table.variations{
display:block;
border:0;
margin:0;
}

.mc-variations-wrapper table.variations tbody{
display:block;
}

.mc-variations-wrapper table.variations tr{

display:flex;
flex-direction:column;
gap:8px;

margin-bottom:0px;

}

.mc-variations-wrapper table.variations td{
display:block;
padding:0;
width:100%;
}

.mc-variations-wrapper .label{

font-family:'Cormorant', serif;
font-size:16px;
font-weight:600;
color:var(--mc-marron);

}

.mc-variations-wrapper .value{
width:100%;
}

/* evita espacios fantasmas */

.single_variation_wrap{

margin:0;
width:100%;

}


/* =========================================
MADAME CELLO — PRECIO DE VARIACIÓN
========================================= */

.woocommerce-variation-price,
.woocommerce-variation-availability{

font-family:'Cormorant', serif;
padding: 0px;

}

.woocommerce-variation-price .price{

font-size:28px;
font-weight:600;

color:var(--mc-vinotinto);

margin-top:12px;

}


/* precio anterior si hay descuento */

.woocommerce-variation-price del{

color:var(--mc-marron);
opacity:.45;

font-size:18px;
margin-right:6px;

}

.woocommerce-variation-price ins{

text-decoration:none;
color:var(--mc-vinotinto);

}


/* =========================================
MADAME CELLO — DISPONIBILIDAD
========================================= */

.woocommerce-variation-availability{

margin-top:6px;
font-size:16px;

}


/* CON STOCK */

.stock.in-stock{

color:var(--mc-verde);
font-weight:600;

}


/* SIN STOCK */

.stock.out-of-stock{

color:var(--mc-vinotinto);
font-weight:600;

background:var(--mc-beige);

padding:4px 10px;
border-radius:var(--mc-radius);

display:inline-block;

}

/* =========================================
MADAME CELLO — BREADCRUMBS
========================================= */

.mc-breadcrumbs .woocommerce-breadcrumb{

font-family:'Cormorant', serif;
font-size:18px !important;
color:var(--mc-marron) !important;

margin-bottom:0px;

font-weight:900 !important;

}


/* enlaces (Inicio y Categoría) */

.mc-breadcrumbs .woocommerce-breadcrumb a{

color:var(--mc-vinotinto) !important;
text-decoration:none;
transition:.25s;

}

.mc-breadcrumbs .woocommerce-breadcrumb a:hover{

opacity:.75;

}

/* =========================================
MADAME CELLO — PRODUCT TITLE
========================================= */

.mc-product-title{

font-family:'Cormorant', serif;

font-size:27px;
font-weight:600;

color:var(--mc-marron);

text-align:center;

line-height:1.2;

margin-top:0px;
margin-bottom:0px;

letter-spacing:.5px;

}



/* =========================================
MADAME CELLO — PRODUCT GALLERY
========================================= */

.woocommerce-product-gallery{

max-width:520px;
margin:auto;

}


/* imagen principal */

.woocommerce-product-gallery__wrapper{

border-radius:var(--mc-radius);
overflow:hidden;

}

.woocommerce-product-gallery__image img{

width:100%;
height:auto;

display:block;

border-radius:var(--mc-radius);

}

/* evita que la imagen "aparezca" y empuje todo */
.woocommerce-product-gallery__image {
    aspect-ratio: 1 / 1; /* o 4/5 según tus fotos */
    overflow: hidden;
}


/* =========================================
MADAME CELLO — THUMBNAILS SLIDER
========================================= */

.flex-control-thumbs{

display:flex;
flex-wrap:nowrap;

gap:10px;

overflow-x:auto;
scroll-behavior:smooth;

margin-top:14px;
padding:0;

list-style:none;

}

.flex-control-thumbs::-webkit-scrollbar{
display:none;
}

.flex-control-thumbs li{

flex:0 0 70px;

width:70px;
height:70px;

border-radius:var(--mc-radius);
overflow:hidden;

border:2px solid var(--mc-beige);

cursor:pointer;

transition:.25s;

}

.flex-control-thumbs li:hover{

border-color:var(--mc-vinotinto);

}

.flex-control-thumbs img{

width:100%;
height:100%;
object-fit:cover;

display:block;

}

/* =========================================
MADAME CELLO — GALERÍA ARROWS
========================================= */

.mc-gallery-arrows{

display:flex;
justify-content:space-between;

margin-top:10px;

}

.mc-gallery-arrow{

width:34px;
height:34px;

display:flex;
align-items:center;
justify-content:center;

border-radius:50%;

border:1px solid var(--mc-beige);

cursor:pointer;

background:white;

color:var(--mc-marron);

transition:.25s;

}

.mc-gallery-arrow:hover{

border-color:var(--mc-vinotinto);
color:var(--mc-vinotinto);

}

/* =========================================
MADAME CELLO — PRODUCT PRICE
========================================= */

.mc-price-live{

font-family:'Cormorant', serif;

font-size:34px;
font-weight:600;

color:var(--mc-vinotinto);

margin:10px 0 18px 0;

letter-spacing:.4px;

text-align:right;

}

/* precio normal */

.mc-price-live .amount{

color:var(--mc-vinotinto);

}


/* precio anterior */

.mc-price-live del{

color:var(--mc-marron);

opacity:.45;

font-size:22px;

margin-right:8px;

}


/* precio rebajado */

.mc-price-live ins{

text-decoration:none;

color:var(--mc-vinotinto);

}


/* moneda */

.mc-price-live .woocommerce-Price-currencySymbol{

font-size:.7em;

margin-right:2px;

opacity:.9;

}

/* =========================================
MADAME CELLO — PRODUCT CATEGORIES
========================================= */

.mc-product-categories{

font-family:'Cormorant', serif;

font-size:16px;

color:var(--mc-marron);

margin-top:8px;

}


/* label */

.mc-cat-label{

font-weight:600;

color:var(--mc-marron);

margin-right:6px;

}


/* enlaces */

.mc-product-categories a{

color:var(--mc-marron);

text-decoration:none;

position:relative;

transition:.25s;

}


/* hover elegante */

.mc-product-categories a::after{

content:"";

position:absolute;

left:0;
bottom:-2px;

width:0;
height:1px;

background:var(--mc-vinotinto);

transition:.25s;

}

.mc-product-categories a:hover{

color:var(--mc-vinotinto);

}

.mc-product-categories a:hover::after{

width:100%;

}

/* =========================================
MADAMECELLO — GRID VIVO PREMIUM (FIXED)
========================================= */

/* GRID */
.mc-products-grid{
    width:100%;
}

/* ITEM */
.mc-product-item{
    background: var(--mc-fondo);
    border-radius:10px;
    padding:14px;
    transition: all 0.35s ease;
    cursor:pointer;
    position:relative;
    overflow:hidden;
}

/* LINK (click completo) */
.mc-product-item a{
    display:block;
    text-decoration:none;
    color:inherit;
    position:relative;
    z-index:2; /* 🔥 asegura que el link esté por encima */
}

/* IMAGEN */
.mc-product-item img{
    width:100%;
    height:auto;
    display:block;
    border-radius:6px;

    filter:brightness(0.98) contrast(1.02);
    transition:all 0.5s ease;
}

/* =========================
TÍTULO
========================= */
.mc-title{
    font-family:'Cormorant', serif;
    font-size:18px!important;
    font-weight:600;
    color:var(--mc-marron);

    margin:14px 0 4px;
    line-height:1.2;
}

/* =========================
PRECIO
========================= */
.mc-price{
    font-family:'Cormorant', serif;
    font-size:18px;
    font-weight:500;

    color:var(--mc-vinotinto);
    margin-top:2px;
}

/* =========================
HOVER — VIDA REAL
========================= */

/* levantar + sombra */
.mc-product-item:hover{
    transform:translateY(-8px);
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
    background:#fff;
}

/* zoom imagen */
.mc-product-item:hover img{
    transform:scale(1.06);
    filter:brightness(1.05) contrast(1.05);
}

/* título cambia */
.mc-product-item:hover .mc-title{
    color:var(--mc-vinotinto);
}

/* precio resalta */
.mc-product-item:hover .mc-price{
    color:var(--mc-verde);
}

/* =========================
OVERLAY SUTIL (LUJO)
========================= */

.mc-product-item::after{
    content:"";
    position:absolute;
    inset:0;

    background:linear-gradient(
        to top,
        rgba(0,0,0,0.08),
        transparent 60%
    );

    opacity:0;
    transition:opacity 0.4s ease;

    pointer-events:none; /* 🔥 FIX CRÍTICO */
}

.mc-product-item:hover::after{
    opacity:1;
}

/* BORDE ELEGANTE */
.mc-product-item::before{
    content:"";
    position:absolute;
    inset:0;

    border:1px solid var(--mc-beige);
    border-radius:10px;

    opacity:0;
    transition:all 0.4s ease;

    pointer-events:none; /* 🔥 FIX CRÍTICO */
}

.mc-product-item:hover::before{
    opacity:1;
    border-color:var(--mc-marron);
}

/* =========================
EFECTO CLICK
========================= */
.mc-product-item:active{
    transform:scale(0.97);
}

/* =========================================
MADAMECELLO — CUSTOM TABS STYLE
========================================= */

/* NAV */
.mc-tabs-nav{
    display:flex;
    gap:30px;
    border-bottom:1px solid var(--mc-beige);
    margin-bottom:25px;
}

/* BOTONES */
.mc-tab-btn{
    background:none;
    border:none;
    cursor:pointer;

    font-family:'Cormorant', serif;
    font-size:16px;
    font-weight:500;

    color:var(--mc-marron);

    padding:10px 0;
    position:relative;

    transition:all 0.3s ease;
}

/* línea elegante */
.mc-tab-btn::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-1px;

    width:0;
    height:1px;
    background:var(--mc-marron);

    transition:width 0.3s ease;
}

/* hover */
.mc-tab-btn:hover::after{
    width:100%;
     color:var(--mc-vinotinto)!important;
}

/* activo */
.mc-tab-btn.active{
    color:var(--mc-vinotinto);
}

.mc-tab-btn.active::after{
    width:100%;
    background:var(--mc-vinotinto);
}

/* CONTENIDO */
.mc-tab-panel{
    display:none;
    animation:fadeIn 0.4s ease;
}

.mc-tab-panel.active{
    display:block;
}

/* ANIMACIÓN */
@keyframes fadeIn{
    from{opacity:0; transform:translateY(10px);}
    to{opacity:1; transform:translateY(0);}
}

/* =========================================
FIX CRÍTICO — SOLO PRODUCTO
========================================= */

.elementor-page-987 .elementor-icon svg,
.elementor-page-987 .elementor-icon i {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
}

/* SOLO SVG dentro del producto */
.elementor-page-987 svg {
    width: 100%;
    height: auto;
    max-width: 40px;
}

/* iconos como imagen */
.elementor-page-987 .elementor-widget-icon img {
    width: 28px !important;
    height: auto !important;
    max-width: 28px !important;
}

/* =========================================
FIX GLOBAL IMÁGENES (ANTI SALTO)
========================================= */

img {
    max-width: 100%;
    height: auto;
    display: block; /* 🔥 clave */
}


/* =========================================
FIX ELEMENTOR (RENDER ESTABLE)
========================================= */

.elementor img {
    max-width: 100%;
    height: auto;
}

/* evita crecimiento raro */
.elementor-widget {
    min-height: 1px;
}
