/* BODEGAS Olivina
    Estilos aplicados a la marca y página de producto */

/* General */
/* Un solo import para Work Sans + Space Grotesk (al inicio del CSS) */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Work+Sans:wght@300;400;500;600;700&display=swap');

/* Variables normalizadas */
:root {
  --akrolivina-font: 'Work Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --akrolivina-title-font: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Uso sugerido */
body { font-family: var(--akrolivina-font); }
h1, h2, .title, .page-title { font-family: var(--akrolivina-title-font); }

#wrapper {
    background-image: url('../img/textura-clara.png') !important;
}
.btncustom a {
    background: #abb95a;
    border-radius: 5px;
    font-family: var(--akrolivina-font) !important;
}
.btncustom a span {
    color: #fff;
    font-weight: bold;
}
.btncustom a:hover {
    background: #495c24;
}
.btncustom a:hover span {
    color: #fff;
}

/* Miniatura */
.products .elementor-container.elementor-column-gap-default {
    padding: 0;
}
.miniProduct {
    background: #FFF;
    border: 1px solid #E3E3E3;
    border-radius: 5px;
    font-family: var(--akrolivina-font) !important;
}
.nameMiniProduct {
    color: #000;
    text-transform: uppercase;
    font-family: var(--akrolivina-font) !important;
}
h3.ce-product-name.elementor-heading-title > * {
    font-family: var(--akrolivina-font) !important;
    font-size: 16px;
}
.priceMiniProduct > * {
    color: #abb95a;
    font-weight: bold;
}
.btncustomList a {
    background: #495c24;
    border-radius: 5px;
    width: 100% !important;
    border-radius: 5px;
}
.btncustomList a span {
    color: #fff;
    font-weight: bold;
    font-family: var(--akrolivina-font) !important;
    font-size: 16px;
}
.btncustomList a:hover {
    background: #abb95a;
}
.btncustomList a:hover span {
    color: #fff;
}
.products .ce-product-image.elementor-image a {

}
@media (max-width: 1024x) {
}

@media (max-width: 450px) {
    .elementor.elementor-3170101.col-xs-6.col-sm-6.col-xl-3 {
        padding: 0 !important;
    }
}    


#product h1.h1 {
    font-family: var(--akrolivina-title-font);
    font-size: 50px;
    font-weight: bold;
    margin-top: 3rem;
    padding: 1rem;
    background: #FFF;
}
.product-prices.js-product-prices {
    padding: 1rem;
    background: #FFF;
}
.product-description {
    padding: 1rem;
    background: #FFF;
    margin: 1rem 0;
    font-family: var(--akrolivina-font) !important;
}
.product-description *,.product-prices.js-product-prices,button.btn.btn-primary.add-to-cart, input#quantity_wanted {
    font-family: var(--akrolivina-font) !important;
}
#product span.current-price-value {
    color: #abb95a;
    font-size: 30px;
    font-weight: bold;
}
.product-prices div {
    margin-bottom: 0.2rem;
}
span.input-group-btn-vertical {
    display: none !important;
}
.product-quantity #quantity_wanted {
    width: 5rem;
    height: auto;
    padding: 0.6rem 1rem;
    color: #232323;
    background-color: #d9d9d9d6;
    text-align: center;
    border-radius: 10px;
    border: 0px;
    font-weight: bold;
    font-size: 16px;
}
.product-actions .add-to-cart {
    padding: 0.4rem 1rem;
    line-height: inherit;
    border-radius: 5px;
    margin-left: 1rem;
    font-size: 16px;
    font-weight: bold;
    width: 240px;
    background-color: #abb95a;
    color: #fff;
    height: auto;
}

.product-actions .add-to-cart:hover {
    background-color: #abb95a;
}
#descripcionTab {
    margin-top: 4rem;
    font-family: var(--akrolivina-font);
    font-size: 16px;
}
#descripcionTab .elementor-container.elementor-column-gap-default {
    padding: 0;
}
.product-cover {
    margin-top: 2rem;
}
.elementor-accordion .elementor-accordion-item {
    border-top: 1px solid #495c24;
    border-bottom: 1px solid #495c24;
}
.elementor-accordion-item {
    border-left: 0px !important;
    border-right: 0px !important;
}
#breadcrumbBodega a {
    color: #abb95a;
}
.youlikefooter h3 {
    font-family: var(--akrolivina-title-font);
    font-size: 26px;
    text-align: center;
    width: 100%;
    text-transform: uppercase;
}
.denominacion {
    color: #abb95a;
    font-weight: bold;
    font-size: 14px;
}
.backtobrand a {
    padding: 0.5rem 1rem;
    background: #FFF;
    font-family: var(--akrolivina-font) !important;
}
/* === Ajuste del tamaño de la imagen de portada === */
.product-cover {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    overflow: hidden; /* evita que sobresalga */
  }
  
  .product-cover img {
    max-width: 100%;   /* se adapta al ancho del contenedor */
    height: auto;      /* mantiene proporción */
    object-fit: contain; /* asegura que no se recorte */
  }
  
@media (max-width: 991px) {
    #product h1.h1 {
        font-size: 30px;
    }
    h3.ce-product-name.elementor-heading-title > * {
        font-size: 14px !important;
    }
    .product-cover {
        margin-top: 0;
    }
    #product h1.h1 {
        font-family: var(--akrolivina-title-font);
        font-size: 50px;
        font-weight: bold;
        margin-top: 1rem;
    }
    section#descripcionTab {
        margin-bottom: 2rem;
    }
}