/*
Template:       moren
Theme Name:     Moren Child
Theme URI:      http://themeforest.net/user/LaStudio/portfolio?ref=LaStudio
Author:         LA Studio
Author URI:     http://themeforest.net/user/LaStudio?ref=LaStudio
Description:    Moren - Fashion WooCommerce Theme
Version:        1.0.0
Requires at least: 4.4
Requires PHP: 5.6
Tags:           one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, featured-image-header, featured-images, flexible-header, full-width-template, post-formats, sticky-post, theme-options, translation-ready, architecture, interior
License: GNU General Public License
License URI: licence/GPL.txt
Text Domain:    moren-child
Domain Path:    /languages/
*/

/* ===== Imágenes nítidas en WooCommerce ===== */

/* Imágenes de producto en catálogo y listados */
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product img,
.woocommerce .products .attachment-woocommerce_thumbnail,
.woocommerce .products .wp-post-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: auto;
    object-fit: cover;
    object-position: top center;
    width: 100%;
    height: auto;
}

/* Imagen principal en página de producto */
.woocommerce div.product div.images img,
.woocommerce div.product div.images .wp-post-image,
.woocommerce-product-gallery__image img,
.woocommerce-product-gallery__image--placeholder img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    max-width: 100%;
    height: auto;
}

/* Thumbnails de galería */
.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image img,
.flex-control-thumbs li img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Imágenes en páginas relacionadas y upsells */
.woocommerce .related ul.products li.product img,
.woocommerce .upsells ul.products li.product img,
.woocommerce .cross-sells ul.products li.product img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Evitar suavizado excesivo en todos los medios */
.woocommerce img,
.woocommerce-page img {
    image-rendering: -webkit-optimize-contrast;
    -webkit-font-smoothing: antialiased;
}

/* ===== Swatches: tamaño mayor, borde redondeado y contorno sutil ===== */

/* --- Página de producto (variations_form) --- */
.variations_form .swatch-wrapper {
    border-radius: 8px !important;
    margin: 4px 6px 4px 0 !important;
}
.variations_form .swatch-wrapper .swatch-anchor {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border-radius: 8px !important;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.13) !important;
}
.variations_form .swatch-wrapper.la-swatch-item-style-circle,
.variations_form .swatch-wrapper.la-swatch-item-style-circle .swatch-anchor {
    border-radius: 50% !important;
}
.variations_form .swatch-wrapper img {
    border-radius: inherit !important;
    object-fit: cover !important;
    object-position: top center !important;
    width: 100% !important;
    height: 100% !important;
}
.variations_form .swatch-wrapper.selected {
    box-shadow: 0 0 0 2px var(--theme-primary-color) !important;
}
.variations_form .swatch-wrapper.selected .swatch-anchor {
    transform: scale(0.87) !important;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.13) !important;
}
.variations_form .swatch-wrapper:not(.disabled):hover {
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3) !important;
}

/* --- Swatches en tarjetas de catálogo --- */
.product_item .swatch-wrapper {
    border-radius: 6px !important;
}
.product_item .swatch-wrapper .swatch-anchor {
    width: 22px !important;
    height: 22px !important;
    border-radius: 6px !important;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.13) !important;
}
.product_item .swatch-wrapper.la-swatch-item-style-circle,
.product_item .swatch-wrapper.la-swatch-item-style-circle .swatch-anchor {
    border-radius: 50% !important;
}
.product_item .swatch-wrapper.selected {
    box-shadow: 0 0 0 2px var(--theme-primary-color) !important;
}
.product_item .swatch-wrapper.selected .swatch-anchor {
    transform: scale(0.85) !important;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.13) !important;
}

/* ===== Radio buttons de variaciones WooCommerce ===== */

.swatch-control.radio-select .radio-option {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}
.swatch-control.radio-select li {
    display: inline-block !important;
    margin: 4px 6px 4px 0 !important;
    list-style: none !important;
}
.swatch-control.radio-select li label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 44px !important;
    min-height: 36px !important;
    padding: 6px 14px !important;
    margin: 0 !important;
    border: 1.5px solid rgba(0, 0, 0, 0.18) !important;
    border-radius: 6px !important;
    background-color: #fff !important;
    color: #333 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
    cursor: pointer !important;
    transition: border-color 0.18s, box-shadow 0.18s, color 0.18s !important;
    user-select: none !important;
}
.swatch-control.radio-select li label:hover {
    border-color: rgba(0, 0, 0, 0.45) !important;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) !important;
}
.swatch-control.radio-select .radio-option:checked + label {
    border-color: var(--theme-primary-color) !important;
    box-shadow: 0 0 0 1.5px var(--theme-primary-color) !important;
    color: var(--theme-primary-color) !important;
    background-color: #fff !important;
}
.swatch-control.radio-select li.disabled label,
.radio-select .disabled label {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    text-decoration: line-through !important;
}

/* --- Radio buttons en tarjetas de producto (grid/listado) --- */
.product_item .swatch-control.radio-select {
    display: block !important;
    line-height: 1 !important;
}
.product_item .swatch-control.radio-select ul {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    padding: 0 !important;
    margin: 0 !important;
}
.product_item .swatch-control.radio-select li {
    display: inline-flex !important;
    margin: 0 !important;
    list-style: none !important;
}
.product_item .swatch-control.radio-select .radio-option {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}
.product_item .swatch-control.radio-select li label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 22px !important;
    padding: 0 8px !important;
    margin: 0 !important;
    border: 1.5px solid rgba(0, 0, 0, 0.18) !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    color: #333 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: border-color 0.15s !important;
}
.product_item .swatch-control.radio-select li:nth-child(n+5) {
    display: none !important;
}
.product_item .swatch-control.radio-select li label:hover {
    border-color: rgba(0, 0, 0, 0.45) !important;
}
.product_item .swatch-control.radio-select .radio-option:checked + label {
    border-color: var(--theme-primary-color) !important;
    box-shadow: 0 0 0 1px var(--theme-primary-color) !important;
    color: var(--theme-primary-color) !important;
}
.product_item .swatch-control.radio-select li.disabled label {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    text-decoration: line-through !important;
}

/* Evita reflow pesado en slider */
.slider,
.swiper {
  will-change: transform;
  backface-visibility: hidden;
}

/* ==== Badge ==== */

.la-custom-badge{
  position:absolute;
  z-index:9000;

  font-size:14px;
  padding:2px 15px; /* se mantiene igual */
  line-height:21px;
  color:#fff;

  background:#B2C8A0;
  border-radius:20px;

  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
	letter-spacing: 0.7px;
  text-align:left;

  white-space:nowrap;

  /* posición */
  top:5px;
  left:0;

  /* espacio entre letras sin cambiar tamaño del badge */
  letter-spacing:0.6px;
}

/* estrella */
.la-custom-badge::before{
  content:"★";
  font-size:12px;
  margin-right:6px;
}

.studio-swatches .swatch-radio{
display:inline-flex;
align-items:center;
margin-right:10px;
font-size:13px;
}

	/*  espacio superior header */
.header-v-default #main #content-wrap {
    padding-top: 0px;
}

.la-custom-badge {
    writing-mode: vertical-lr !important;
    -webkit-writing-mode: vertical-lr !important;
    -ms-writing-mode: tb-lr !important;
    left: 0 !important;
    right: auto !important;
    top: 12px !important;
    transform: rotate(180deg) !important;
    border-radius: 0 6px 6px 0 !important;
    padding: 14px 7px !important;
    min-width: auto !important;
        background-color: #B2C8A0;
    
}
    .prod-qv-wrap,
    .prod-qv-wrap * {
    writing-mode: horizontal-tb !important;
    -webkit-writing-mode: horizontal-tb !important;
    -ms-writing-mode: lr-tb !important;
    transform: none !important;
}


/* ===== Swatches: tamaño mayor, borde redondeado y contorno sutil ===== */

/* --- Página de producto (variations_form) --- */
.variations_form .swatch-wrapper {
    border-radius: 8px !important;
    margin: 4px 6px 4px 0 !important;
}
.variations_form .swatch-wrapper .swatch-anchor {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border-radius: 8px !important;
    /* Borde interior sutil: permite ver tonos blancos/claros */
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.13) !important;
}
/* Estilo círculo mantiene 50% */
.variations_form .swatch-wrapper.la-swatch-item-style-circle,
.variations_form .swatch-wrapper.la-swatch-item-style-circle .swatch-anchor {
    border-radius: 50% !important;
}
/* Imágenes en swatch también heredan el border-radius */
.variations_form .swatch-wrapper img {
    border-radius: inherit !important;
}
/* Estado seleccionado: anillo exterior de color primario + inner border */
.variations_form .swatch-wrapper.selected {
    box-shadow: 0 0 0 2px var(--theme-primary-color) !important;
}
.variations_form .swatch-wrapper.selected .swatch-anchor {
    transform: scale(0.87) !important;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.13) !important;
}
/* Hover */
.variations_form .swatch-wrapper:not(.disabled):hover {
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3) !important;
}

/* --- Swatches en tarjetas de catálogo --- */
.product_item .swatch-wrapper {
    border-radius: 6px !important;
}
.product_item .swatch-wrapper .swatch-anchor {
    width: 22px !important;
    height: 22px !important;
    border-radius: 6px !important;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.13) !important;
}
.product_item .swatch-wrapper.la-swatch-item-style-circle,
.product_item .swatch-wrapper.la-swatch-item-style-circle .swatch-anchor {
    border-radius: 50% !important;
}
.product_item .swatch-wrapper.selected {
    box-shadow: 0 0 0 2px var(--theme-primary-color) !important;
}
.product_item .swatch-wrapper.selected .swatch-anchor {
    transform: scale(0.85) !important;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.13) !important;
}


/* ===== Imágenes nítidas en WooCommerce ===== */

/* Imágenes de producto en catálogo y listados */
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product img,
.woocommerce .products .attachment-woocommerce_thumbnail,
.woocommerce .products .wp-post-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: auto;
    object-fit: cover;
    width: 100%;
    height: auto;
}

/* Imagen principal en página de producto */
.woocommerce div.product div.images img,
.woocommerce div.product div.images .wp-post-image,
.woocommerce-product-gallery__image img,
.woocommerce-product-gallery__image--placeholder img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    max-width: 100%;
    height: auto;
}

/* Thumbnails de galería */
.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image img,
.flex-control-thumbs li img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Imágenes en páginas relacionadas y upsells */
.woocommerce .related ul.products li.product img,
.woocommerce .upsells ul.products li.product img,
.woocommerce .cross-sells ul.products li.product img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
	   object-fit: cover;
    object-position: bottom center;
    width: 100%;
    height: auto;
}

/* Evitar suavizado excesivo en todos los medios */
.woocommerce img,
.woocommerce-page img {
    image-rendering: -webkit-optimize-contrast;
    -webkit-font-smoothing: antialiased;
}

/* Imágenes en swatch: border-radius + ancla desde arriba */
.variations_form .swatch-wrapper img {
    border-radius: inherit !important;
    object-fit: cover !important;
    object-position: top center !important;
    width: 100% !important;
    height: 100% !important;
}

/* Deshabilitado */
.swatch-control.radio-select li.disabled label,
.radio-select .disabled label {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    text-decoration: line-through !important;
}

/* --- Radio buttons en tarjetas de producto (grid/listado) --- */
/* Igual apariencia que los swatches de color/imagen en cards */
.product_item .swatch-control.radio-select {
    display: block !important;
    line-height: 1 !important;
}
.product_item .swatch-control.radio-select ul {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    padding: 0 !important;
    margin: 0 !important;
}
.product_item .swatch-control.radio-select li {
    display: inline-flex !important;
    margin: 0 !important;
    list-style: none !important;
}
/* Ocultar radio nativo en cards */
.product_item .swatch-control.radio-select .radio-option {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}
/* Píldora pequeña al nivel de los swatches (22px alto) */
.product_item .swatch-control.radio-select li label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 22px !important;
    padding: 0 8px !important;
    margin: 0 !important;
    border: 1.5px solid rgba(0, 0, 0, 0.18) !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    color: #333 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: border-color 0.15s !important;
}
/* Limitar a 4 ítems igual que los swatches de color */
.product_item .swatch-control.radio-select li:nth-child(n+5) {
    display: none !important;
}
/* Hover */
.product_item .swatch-control.radio-select li label:hover {
    border-color: rgba(0, 0, 0, 0.45) !important;
}
/* Seleccionado */
.product_item .swatch-control.radio-select .radio-option:checked + label {
    border-color: var(--theme-primary-color) !important;
    box-shadow: 0 0 0 1px var(--theme-primary-color) !important;
    color: var(--theme-primary-color) !important;
}
/* Deshabilitado en cards */
.product_item .swatch-control.radio-select li.disabled label {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    text-decoration: line-through !important;
}

/* ===== Desactivar spinner de carga de swatches ===== */
.product-main-image .swatch-loading .la_woo_loading {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}
.product-main-image .swatch-loading .la-woo-product-gallery {
    opacity: 1 !important;
}
.product-main-image .swatch-loading .la-woo-product-gallery .woocommerce-product-gallery__wrapper,
.product-main-image .swatch-loading .la-woo-thumbs .la-thumb-inner {
    opacity: 1 !important;
}
.la-loader.spinner3 {
   display: none;
}

@media (max-width: 767px) {
    .product-main-image .la-woo-thumbs {
        display: none !important;
    }

/* ===== Ocultar tira de miniaturas en móvil (evitar duplicación visual) ===== */
/* En móvil el slider ya provee navegación por swipe; el thumb #1 duplica la imagen principal */
@media (max-width: 767px) {
    .product-main-image .la-woo-thumbs {
        display: none !important;
    }
}