/**
* Theme Name: Clotya Child
* Description: This is a child theme of Clotya, generated by Merlin WP.
* Author: <a href="http://themeforest.net/user/KlbTheme">KlbTheme (Sinan ISIK)</a>
* Template: clotya
* Version: 1.4.3
*/









.notice.notice-error {
    display: none !important;
}




/* --- Solución B: Galería de producto horizontal abajo --- */

/* 1. Asegura que la lista de miniaturas sea un contenedor flexible y horizontal */
.woocommerce-product-gallery .flex-control-nav {
    display: flex;
    flex-wrap: wrap; /* Permite que las miniaturas pasen a la siguiente línea si no caben */
    justify-content: center; /* Centra las miniaturas horizontalmente */
    width: 100%;
    margin-top: 15px; /* Espacio entre la imagen grande y las miniaturas */
    padding: 0;
}

/* 2. Estilo para cada miniatura individual */
.woocommerce-product-gallery .flex-control-nav li {
    list-style: none; /* Quita los puntos de la lista */
    margin: 0 5px 10px 5px; /* Espaciado horizontal y vertical entre miniaturas */
    flex-basis: 80px; /* Define un tamaño base para cada miniatura */
    max-width: 100px;
}

/* 3. Asegura que la imagen de la miniatura se ajuste bien */
.woocommerce-product-gallery .flex-control-nav li img {
    width: 100%;
    height: auto;
    cursor: pointer;
}


/* =================================================================== */
/*  Mejora de Estilo para Muestras de Variación de Color (YITH)
/*  Hace las muestras más grandes, rectangulares y visualmente claras.
/* =================================================================== */

/* 1. Contenedor principal de las muestras: ajusta el espacio y la alineación */
.variations_form .variations {
    margin-bottom: 20px; /* Añade un poco de espacio debajo de las muestras */
}

.variations_form .variations td.value {
    vertical-align: middle; /* Alinea las muestras con la etiqueta "Color" */
}

/* 2. Aumentar el tamaño de CADA muestra de color y cambiar su forma */
.variations .select_option_image {
    width: 80px !important;   /* Ancho de la caja (puedes ajustarlo) */
    height: 80px !important;  /* Alto de la caja (puedes ajustarlo) */
    border-radius: 4px !important; /* Bordes ligeramente redondeados (¡no un círculo!) */
    border: 1px solid #cccccc;     /* Borde gris claro para definir la caja */
    overflow: hidden;              /* Esconde cualquier parte de la imagen que se salga */
}

/* 3. Ajustar la imagen DENTRO de la muestra para que no se deforme */
.variations .select_option_image .yith_wccl_value {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ¡ESTA ES LA CLAVE! Rellena el espacio sin estirar la imagen. */
    object-position: center; /* Asegura que la imagen esté centrada */
}

/* 4. Resaltar la muestra que está SELECCIONADA */
.variations .select_option_image.selected {
    border: 2px solid #3C6540 !important; /* Borde negro y más grueso al seleccionar */
    box-shadow: 0 0 8px rgba(0,0,0,0.25); /* Añade una sombra sutil para destacarla */
}

/* 5. Ajustar el espaciado entre las diferentes muestras de color */
.variations .select_box_image {
    display: flex;
    gap: 10px; /* Controla el espacio horizontal entre cada cajita de color */
}

h1.product_title.entry-title {
    font-family: 'Poppins' !important;
}
h1, h2, h3, h4, h5, h6, p, a {
    font-family: 'Poppins' !important;
}


button.single_add_to_cart_button
 {
    background-color: #FF5722;
	 font-family: 'Poppins' !important;
	 font-weight: 500 !important;
}

.single-product-wrapper .single-product .product-info .price {
    font-size: 28px !important;
    color: #3c6540 !important;
    font-weight: 800 !important;
}


/* =================================================================== */
/*  FOOTER PERSONALIZADO: LAYOUT ASIMÉTRICO (34-22-22-22)
/* =================================================================== */

/* 1. Nos aseguramos de que el contenedor de las columnas sea flexible */
.footer-row.widgets-row .footer-row-wrapper .row {
    display: flex;
    flex-wrap: wrap; /* Permite que las columnas se ajusten en móviles */
}

/* 2. Aplicamos el ancho personalizado a cada columna */
/* Primera columna (más ancha) */
.footer-row.widgets-row .footer-row-wrapper .row .col:nth-child(1) {
    width: 34% !important;
    flex: 0 0 34% !important;
    max-width: 34% !important;
}

/* Columnas 2, 3 y 4 (más estrechas) */
.footer-row.widgets-row .footer-row-wrapper .row .col:nth-child(2),
.footer-row.widgets-row .footer-row-wrapper .row .col:nth-child(3),
.footer-row.widgets-row .footer-row-wrapper .row .col:nth-child(4) {
    width: 22% !important;
    flex: 0 0 22% !important;
    max-width: 22% !important;
}

/* 3. Ocultamos la quinta columna (si existe) para evitar problemas */
.footer-row.widgets-row .footer-row-wrapper .row .col:nth-child(5) {
    display: none !important;
}


.site-footer .widgets-row .widget .widget-title {
    color: #31a399 !important;
}
.klbfooterwidget ul li a:hover {
    text-decoration: underline !important;
    padding: 0px 0px 0px 5px !important;
    color: #31a399 !important;
}




/* =================================================================== */
/*  AJUSTE COPYRIGHT FOOTER: ALINEAR COPYRIGHT E IMAGEN DE PAGOS
/* =================================================================== */

/* 1. Ocultar el menú de políticas del footer */
.footer-row.footer-copyright .footer-menu {
    display: none !important;
}

/* 2. Convertir el contenedor en un espacio flexible para alinear los elementos */
.footer-row.footer-copyright .footer-row-wrapper {
    display: flex !important;
    justify-content: space-between !important; /* ¡LA CLAVE! Empuja los elementos a los extremos opuestos */
    align-items: center !important;         /* Los centra verticalmente para un look profesional */
    width: 100%;
}
dis
.footer-row.footer-copyright .footer-row-wrapper
 {
    padding-top: 15px !important;
    padding-bottom: 35px !important;
}

.site-footer .widgets-row .widget .brand-info {
    max-width: 380px !important;
}

.site-footer .subscribe-row .footer-contact-wrapper .entry-description {
    color: #fff !important;
    margin-top: 20px !important;
    margin-bottom: 25px !important;
}


a.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained {
    background-color: #31a399 !important;
    color: #fff !important;
    border-radius: 2px !important;
}
p.woocommerce-mini-cart__buttons a.button.checkout {
    color: #fff;
    background-color: #FF5722 !important;
    border-color: transparent;
}
p.woocommerce-mini-cart__buttons a.button:not(.checkout) {
    color: #fff;
    background-color: #31A399 !important;
    border-color: transparent;
    margin-bottom: 3px;
}
.site-header .cart-dropdown .woocommerce-mini-cart__total .woocommerce-Price-amount {
    margin-left: auto;
    font-size: 1.125rem;
    font-weight: 600;
    color: #31A399 !important;
}



/* ==== 1. Estilo para valores seleccionables ==== */

.select_option_label.select_option {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #d0d0d0 !important;
    border-radius: 40px !important;
    padding: 6px 12px !important;
    font-weight: 600;
    box-shadow: none !important;
    transition: all 0.3s ease-in-out;
}

.select_option_label.select_option:hover {
    background-color: #31A399 !important;
    color: #ffffff !important;
    border: 2px solid #31A399 !important;
}

.select_option_label.select_option.selected {
    background-color: #31A399 !important;
    color: #ffffff !important;
    border: 2px solid #31A399 !important;
}

/* Elimina cualquier anillo blanco alrededor del número */
.select_option_label .yith_wccl_value_wrapper {
    background: transparent !important;
    box-shadow: none !important;
}

/* ==== 2. Galería de miniaturas de color en vertical ==== */

.select_box_image.select_box.attribute_pa_color {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    align-items: flex-start !important;
}

/* Tamaño de cada miniatura */
.select_option_image.select_option .yith_wccl_value {
    width: 70px !important;
    height: 70px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    border: 2px solid transparent !important;
    transition: border-color 0.3s ease;
}

/* Estado seleccionado */
.select_option_image.select_option.selected .yith_wccl_value {
    border-color: transparent !important;
}

/* Elimina texto desorganizado “En stock” */
.ywccl_stock {
    display: none !important;
}

/* También oculta el fondo circular tras la miniatura */
.select_option_image.select_option::before {
    display: none !important;
}


.price ins {
  color: #ff3c00 !important; /* rojo brillante */
  font-weight: bold;
}

.select_option .yith_wccl_value {
    border: 0px solid #fff !important;
    display: block;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}

/* Alinear variaciones horizontalmente en página individual */
.single-product .yith_wccl_is_custom.yith_wccl_layout_inline .select_box_image {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* Tamaño más proporcionado de cada opción de color (dentro de producto) */
.single-product .select_box_image .select_option_image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  padding: 5px;
  box-shadow: none;
  border: 1px solid #ccc;
}

.single-product .select_box_image .select_option_image img.yith_wccl_value {
  width: 100%;
  height: auto;
  object-fit: contain;
}


.single-product .select_box_image.select_box.attribute_pa_color {
    display: block !important;
    flex-direction: column !important;
    gap: 12px !important;
    align-items: flex-start !important;
}



h2.yikes-custom-woo-tab-title.yikes-custom-woo-tab-title-caracteristicas
 {
    font-size: 28px !important;
	 display: none !important;
}

.woocommerce-Tabs-panel h2 {
    display: none !important;
}


/* Asegúrate de que esté dentro de la imagen del producto */
.woocommerce ul.products li.product .thumbnail-wrapper,
.clotya-product-grid .thumbnail-wrapper {
  position: relative;
}



.clotya-ajax-shop-on span.product-badge.new {
    display: none !important;
}




/* Cinta diagonal "Nuevo" estilo WooCommerce */
span.product-badge.new {
    background: #31a399;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    padding: 3px 15px;
}

.qib-button-wrapper .quantity input.input-text.qty.text {
    height: 37px !important;
    padding: 0px !important;
    text-align: center;
    background: transparent !important;
    border: none !important;
    font-size: 18px !important;
    line-height: 20px;
    box-shadow: none;
    margin: 0 !important;
    font-weight: 500 !important;
}

.site-header .header-topbar a {
    font-size: 16px !important;
}





/* Contenedor principal del formulario newsletter */
.cf7-form-newsletter {
    display: flex; /* Hacemos que sea un contenedor flex */
    /* justify-content: center; */ /* Eliminamos esto para el formulario completo, lo centraremos con margin: auto */
    align-items: stretch; /* Mantiene los elementos hijos estirados a la misma altura */
    max-width: 700px; /* Ancho máximo para el formulario */
    width: 100%; /* Ocupa el 100% del max-width disponible */
    margin: 0px auto; /* Centra el contenedor horizontalmente y agrega margen superior */
    padding: 0; /* Aseguramos que no haya padding en el contenedor principal */
}

/* Estilos para el contenedor del campo de correo */
.cf7-form-field {
    flex: 1 1 70%; /* Le damos el 70% del ancho base al campo de correo */
    display: flex; /* Hacemos este contenedor también flex para el contenido interno */
    align-items: center; /* Alinea verticalmente el input */
}

.cf7-form-field p { /* CF7 envuelve el input en una etiqueta <p> por defecto */
    margin: 0;
    padding: 0;
    flex-grow: 1; /* Permite que el párrafo ocupe el espacio */
    display: flex; /* Hacemos que el p también sea flex */
    align-items: center; /* Alinea el span y el input dentro del p */
    width: 100%;
}

.cf7-form-field .wpcf7-form-control-wrap { /* El span que envuelve el input */
    display: block; /* Aseguramos que se comporte como un bloque */
    flex-grow: 1; /* Permite que el span crezca y ocupe el espacio */
    width: 100%; /* Ocupa el 100% del espacio de su padre */
}

/* Estilos para el input de correo */
.cf7-form-newsletter input[type="email"] {
    padding: 15px 18px; /* Ajusta el padding para la altura deseada */
    font-size: 16px;
    border: 1px solid #ccc;
    /* border-radius: 8px; */ /* <-- ELIMINADO: Bordes cuadrados */
    width: 100%; /* Ocupa el 100% de su contenedor (.cf7-form-field) */
    box-sizing: border-box; /* Incluye padding y borde en el ancho total */
    height: 100%; /* Se estira para coincidir con la altura del botón */
    border-right: none; /* <-- CLAVE: Elimina el borde derecho para unirlo al botón */
}

/* Estilos para el contenedor del botón */
.cf7-form-submit {
    flex: 0 0 30%; /* Le damos el 30% del ancho base al botón */
    display: flex; /* Hacemos este contenedor también flex para el contenido interno */
    align-items: center; /* Alinea verticalmente el botón */
    /* justify-content: center; */ /* Eliminamos esto para que el botón se pegue a la izquierda de su 30% */
}

.cf7-form-submit p { /* CF7 envuelve el botón en una etiqueta <p> por defecto */
    margin: 0;
    padding: 0;
    flex-grow: 1; /* Permite que el p ocupe el espacio */
    display: flex; /* Hacemos que el p también sea flex */
    align-items: center; /* Alinea el botón dentro del p */
    justify-content: flex-start; /* <-- CLAVE: Alinea el botón a la izquierda de su p */
    width: 100%;
    height: 100%; /* Se estira para coincidir con la altura del campo de email */
}

/* Estilos para el botón de envío */
.cf7-form-newsletter .wpcf7-submit {
    background-color: #31a399; /* Color de fondo del botón */
    color: white; /* Color del texto del botón */
    padding: 12px 24px; /* Relleno interno, ajusta para la altura deseada */
    border: 1px solid #31a399; /* <-- CLAVE: Borde para el botón, del mismo color que el fondo */
    /* border-radius: 8px; */ /* <-- ELIMINADO: Bordes cuadrados */
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease; /* Transición para el borde también */
    width: 100%; /* Ocupa el 100% de su contenedor (.cf7-form-submit) */
    box-sizing: border-box; /* Incluye padding y borde en el ancho total */
    height: 100%; /* Se estira para coincidir con la altura del campo de correo */
    white-space: nowrap; /* Evita que el texto del botón se rompa */
}

/* Estilo al pasar el ratón por encima del botón */
.cf7-form-newsletter .wpcf7-submit:hover {
    background-color: #2a8c84; /* Color de hover */
    border-color: #2a8c84; /* <-- CLAVE: Cambia el color del borde al hacer hover */
}

/* Estilo para el título superior */
.entry-content h1, .entry-content h2, .entry-content p.titulo-macoly { /* Ajusta los selectores según el HTML de tu título */
    text-align: center; /* Centra el título */
    width: 100%; /* Asegura que el título ocupe todo el ancho para centrarse correctamente */
    margin-bottom: 20px; /* Espacio debajo del título */
}


/* Media query para hacer el formulario responsivo en pantallas pequeñas */
@media (max-width: 500px) { /* Ajusta este valor según necesites */
    .cf7-form-newsletter {
        flex-direction: column; /* Apila los elementos en pantallas pequeñas */
        gap: 15px; /* Más espacio entre ellos cuando están apilados */
        max-width: 90%; /* Ajusta el ancho para móviles */
    }

    .cf7-form-field,
    .cf7-form-submit {
        flex: 1 1 100%; /* Cada elemento ocupa el 100% del ancho */
    }

    .cf7-form-newsletter input[type="email"] {
        border-right: 1px solid #ccc; /* Restaura el borde derecho en móvil */
        border-bottom: none; /* Elimina el borde inferior para unirlo al botón */
        border-radius: 0; /* Asegura que no haya radio */
        height: auto; /* Permite que la altura se ajuste automáticamente */
    }

    .cf7-form-newsletter .wpcf7-submit {
        height: auto; /* Permite que la altura del botón se ajuste automáticamente */
        max-width: 300px; /* Limita el ancho del botón cuando está apilado para que no sea demasiado grande */
        margin: 0 auto; /* Centra el botón si max-width es menor que 100% */
        border-top: none; /* Elimina el borde superior del botón para unirlo al campo */
        border-radius: 0; /* Asegura que no haya radio */
    }

    .cf7-form-submit p {
        justify-content: center; /* Centra el botón cuando está apilado */
    }
}


.cf7-form-newsletter {
    margin-left: 120px;
}





span.dg-no-phone {
    font-size: 17px;
    color: #7d7d7d !important;
}



/* Forzar misma alineación y tamaño para todos los swatches */
ul.yith-wcan-color li {
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 3px !important;
}

ul.yith-wcan-color li a {
  display: flex !important;
  align-items: center !important;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px #ddd;
  text-indent: -9999px; /* Ocultar nombre, si lo estás ocultando */
  padding: 0 !important;
  line-height: 1;
  vertical-align: middle;
}


.widget.yith-woocommerce-ajax-product-filter {
  display: block !important;
}



/* Cambiar fuente a Poppins en el formulario de cupones */
.macoly-coupon-form input[type="email"],
.macoly-coupon-form input[type="submit"],
.macoly-coupon-form input::placeholder {
    font-family: 'Poppins', sans-serif !important;
}
input.wpcf7-form-control.wpcf7-email.wpcf7-validates-as-required.wpcf7-text.wpcf7-validates-as-email {
    font-family: 'Poppins' !important;
}

input.wpcf7-form-control.wpcf7-submit.has-spinner {
    font-family: 'Poppins' !important;
}






/* TÍTULO */
.envio-titulo {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    display: inline-block; /* Para que quede junto al radio button */
}

/* NOTA (Días) */
.envio-nota {
    display: block;        /* Fuerza salto de línea */
    font-size: 14px;
    color: #555;
    font-weight: 400;
    margin-top: 3px;
    width: 100%;           /* Ocupa todo el ancho */
}

/* AVISO (Mayúsculas) */
.envio-aviso {
    display: block;        /* Fuerza salto de línea */
    font-size: 12px;
    color: #000;           /* Negro o el color que prefieras */
    font-weight: 600;      /* Un poco más grueso */
    font-style: italic;    /* Cursiva como pediste en tu código */
    margin-top: 2px;
    text-transform: uppercase;
}

.woocommerce-shipping-methods span.woocommerce-Price-amount.amount {
    font-size: 20px !important;
    font-weight: 700 !important;
}

ul#shipping_method {
    width: 200px !important;
}








/* 1. Forzar que la columna del nombre del producto sea ancha (75%) */
.woocommerce-checkout-review-order-table th.product-name,
.woocommerce-checkout-review-order-table td.product-name {
    width: 75% !important;  
}

/* 2. Forzar que la columna del subtotal sea angosta (25%) */
.woocommerce-checkout-review-order-table th.product-total,
.woocommerce-checkout-review-order-table td.product-total {
    width: 25% !important;
    white-space: nowrap; /* Evita que el precio se parta en dos renglones */
}

/* 3. Arreglar el texto junto a la foto para que aproveche el nuevo espacio */
/* Esto asegura que el texto 'Morral...' se ponga al lado de la foto y no se aplaste */
.soult-product-cart-thumbnail {
    width: 100%;
    display: flex;
    align-items: center;
}

.soult-product-cart-thumbnail span {
    display: inline-block;
    margin-left: 5px; /* Un pequeño espacio extra si hace falta */
}

















/* SOLO el mega menú principal en FULL WIDTH */
#mega-menu-main-menu > li.mega-mega-menu > ul.mega-sub-menu {
    position: absolute !important;
    left: 50% !important;
    width: 100vw !important;
    max-width: 100vw !important;
    transform: translateX(-50%) !important;
    box-sizing: border-box !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
}

/* Evita que las columnas se peguen */
#mega-menu-main-menu > li.mega-mega-menu > ul.mega-sub-menu .mega-menu-column {
    padding-left: 20px !important;
    padding-right: 20px !important;
}


    .post-type-archive-product.woocommerce-shop .col-lg-9 {
        flex: 0 0 auto;
        width: 72% !important;
    }
    .post-type-archive-product.woocommerce-shop .col-lg-3 {
        flex: 0 0 auto;
        width: 28% !important;
    }


    .woocommerce-page .col-lg-9 {
        flex: 0 0 auto;
        width: 72% !important;
    }
    .woocommerce-page .col-lg-3 {
        flex: 0 0 auto;
        width: 28% !important;
    }




#mega-menu-wrap-main-menu #mega-menu-main-menu > li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item a.mega-menu-link {
    color: #000 !important;
    font-size: 15px !important;
}
#soult-mc .soult-mc-link {
    font-size: 15px !important;
}
#soult-mc .soult-mc-title {;
    color: #31a399 !important;
}


#mega-menu-wrap-main-menu #mega-menu-main-menu > li.mega-menu-flyout ul.mega-sub-menu {
    width: 265px !important;
}


a.login-button {
    display: none !important;
}

#mega-menu-wrap-main-menu #mega-menu-main-menu > li.mega-menu-item > a.mega-menu-link {
    padding: 0px 8px !important;
    font-size: 16px;
}






/* ❌ Ocultar banner en búsquedas */
body.search .shop-page-banner {
    display: none !important;
}

/* ❌ Ocultar banner en subcategorías */
body.tax-product_cat:not(.term-parent-0) .shop-page-banner {
    display: none !important;
}

/* ❌ Ocultar banner en resultados filtrados */
body.archive:not(.post-type-archive-product):not(.term-parent-0) .shop-page-banner {
    display: none !important;
}

.woof_products_top_panel {
    display: none !important;
}






