/*
Theme Name: Yongli Store
Theme URI: https://yongli.cl
Author: Yongli Team
Author URI: https://yongli.cl
Description: Tema moderno para tienda de muebles Yongli con WooCommerce
Version: 1.0.0
Text Domain: yongli-store
*/

/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

/* Header Superior - Buscador */
.header-top {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.header-top-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.search-bar-top {
    display: flex;
    align-items: center;
    max-width: 400px;
    width: 100%;
    position: relative;
}

.search-bar-top input {
    width: 100%;
    padding: 10px 45px 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-bar-top input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-bar-top button {
    position: absolute;
    right: 5px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--white);
    transition: background 0.3s ease;
}

.search-bar-top button:hover {
    background: var(--primary-dark);
}

/* Header Principal */
.site-header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: relative;
}

.site-branding {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
}

.site-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.site-logo img,
.site-branding img {
    max-height: 70px;
    width: auto;
    max-width: 250px;
    height: auto;
}

/* Carrito Header */
.header-cart {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-icon-wrapper {
    position: relative;
    cursor: pointer;
}

.cart-icon {
    font-size: 24px;
    color: var(--text-dark);
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Navegaci贸n */
.main-navigation {
    border-top: 1px solid var(--border-color);
    padding: 15px 0;
    display: flex;
    justify-content: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

/* Carrusel Hero */
.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 60px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    visibility: hidden;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    z-index: 2;
    color: var(--white);
    max-width: 500px;
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    z-index: 2;
    color: var(--white);
    max-width: 500px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-content h2 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-content p {
    font-size: 18px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 14px 32px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 3;
    transition: all 0.3s ease;
}

.carousel-controls:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--white);
    width: 30px;
    border-radius: 6px;
}

/* Contenedor Principal */
.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Secciones de Productos */
.products-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-link {
    font-size: 16px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-gray);
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background: var(--primary-dark);
}

/* Footer */
.site-footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-column p,
.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 2;
    display: block;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Estilos adicionales para WooCommerce */
/*.woocommerce .products-grid {
    display: grid;


.woocommerce ul.products {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
}

.woocommerce ul.products li.product {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    list-style: none;
    margin: 0;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
    text-decoration: none;
    color: inherit;
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 18px;
    font-weight: 600;
    margin: 15px 20px 10px;
    color: var(--text-dark);
}

.woocommerce ul.products li.product .price {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
    margin: 0 20px 15px;
    display: block;
}

.woocommerce ul.products li.product .button {
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 12px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
}

.woocommerce ul.products li.product .button:hover {
    background: var(--primary-dark);
}*/

.woocommerce .product-card .price {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
}

/* Banner promocional */
.promo-banner {
    background: var(--text-dark);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
    margin: 60px 0;
}

.promo-banner h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.promo-banner p {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* Header scrolled */
.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

/* Mejoras de accesibilidad */
.carousel-controls:focus,
.carousel-dot:focus,
.btn-primary:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .header-main {
        flex-direction: column;
        gap: 15px;
    }

    .site-branding {
        position: static;
        transform: none;
        width: 100%;
        text-align: center;
    }

    .header-cart {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .main-navigation ul {
        gap: 15px;
        font-size: 13px;
    }

    .carousel-content {
        left: 20px;
        max-width: 90%;
    }

    .carousel-content h2 {
        font-size: 28px;
    }

    .carousel-content p {
        font-size: 16px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .carousel-container {
        height: 400px;
    }

    .header-top-container {
        justify-content: center;
    }
}

/* Layout tienda con sidebar a la derecha */
/*.shop-layout{*/
 /* display: flex;*/
  /*flex-direction: row-reverse; /* sidebar a la derecha */
  /*gap: 30px;*/
  /*align-items: flex-start;*/
/*}*/

/* ===== Layout tienda: sidebar + productos ===== */
.shop-layout{
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 16px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
}

.shop-sidebar{
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 18px;
  height: fit-content;
}

.shop-widget{
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 16px;
  margin-bottom: 16px;
}
.shop-widget:last-child{
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}
.shop-widget-title{
  font-size: 16px;
  margin: 0 0 12px 0;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 900px){
  .shop-layout{
    grid-template-columns: 1fr;
  }
  .shop-sidebar{
    order: 2;
  }
  .shop-main{
    order: 1;
  }
}

/* ===== Hover: mostrar botón Agregar al carrito ===== */
/*.woocommerce ul.products li.product{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}

.woocommerce ul.products li.product .button{
  opacity: 0;
  transform: translateY(10px);
  transition: all .18s ease;
  pointer-events: none;
}

.woocommerce ul.products li.product:hover .button{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Opcional: mejora visual del card */
.woocommerce ul.products li.product a.woocommerce-loop-product__link{
  display: block;
}/*
/* ===== FIX DEFINITIVO: shop layout con/ sin sidebar ===== */

/* Base */
.shop-layout{
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 16px;
  display: grid;
  gap: 30px;
}

/* Con sidebar */
.shop-layout:not(.no-sidebar){
  grid-template-columns: 280px 1fr;
}

/* Sin sidebar: NO deja espacio en blanco */
.shop-layout.no-sidebar{
  grid-template-columns: 1fr !important;
}

/* Responsive */
@media (max-width: 900px){
  .shop-layout{
    grid-template-columns: 1fr !important;
  }
}

/* ==============================
   YONGLI — FIX GRID WC (3x3)
   - Evita 2 arriba / 1 abajo
   - 9 productos por página = 3 filas
============================== */

/* Asegura que el main no se “encierre” */
.shop-main,
.woocommerce.archive .shop-main,
.woocommerce-page .shop-main{
  width: 100% !important;
  min-width: 0 !important;
}

/* GRID fijo 3 columnas */
/*body.woocommerce ul.products,
body.woocommerce-page ul.products,
body.archive ul.products{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 40px !important;

  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

body.woocommerce ul.products li.product,
body.woocommerce-page ul.products li.product,
body.archive ul.products li.product{
  float: none !important;
  width: auto !important;
  margin: 0 !important;
} */

/* Tablet */
@media (max-width: 1100px){
  body.woocommerce ul.products,
  body.woocommerce-page ul.products,
  body.archive ul.products{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}


/* ===== FIX: el contenedor de la tienda debe ocupar todo el ancho ===== */
body.woocommerce.archive .shop-layout,
body.woocommerce-page .shop-layout{
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

/* clave: que la columna derecha (productos) no se “encierre” */
body.woocommerce.archive .shop-layout .shop-main,
body.woocommerce-page .shop-layout .shop-main{
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

/* ===== FORZAR GRID 3 columnas en categorías/tienda ===== */
body.woocommerce.archive .shop-layout .shop-main ul.products,
body.woocommerce-page .shop-layout .shop-main ul.products{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Quitar floats/anchos heredados */
body.woocommerce.archive .shop-layout .shop-main ul.products li.product,
body.woocommerce-page .shop-layout .shop-main ul.products li.product{
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

/* Responsive */
@media (max-width: 1100px){
  body.woocommerce.archive .shop-layout .shop-main ul.products,
  body.woocommerce-page .shop-layout .shop-main ul.products{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 600px){
  body.woocommerce.archive .shop-layout .shop-main ul.products,
  body.woocommerce-page .shop-layout .shop-main ul.products{
    grid-template-columns: 1fr !important;
  }
}

/* === FORZAR 3 COLUMNAS EN ESCRITORIO (aunque Woo ponga columns-2) === */
@media (min-width: 1101px){
  body.woocommerce ul.products,
  body.woocommerce-page ul.products,
  body.tax-product_cat ul.products,
  body.post-type-archive-product ul.products,
  body.woocommerce ul.products.columns-2,
  body.woocommerce ul.products.columns-3,
  body.woocommerce ul.products.columns-4{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
    width: 100% !important;
  }

  /* Quita “clearfix” viejo que a veces mete rarezas */
  body.woocommerce ul.products::before,
  body.woocommerce ul.products::after{
    content: none !important;
    display: none !important;
  }

  body.woocommerce ul.products li.product{
    width: auto !important;
    margin: 0 !important;
    float: none !important;
    max-width: none !important;
    min-width: 0 !important;
  }
}

/* =========================================================
   YONGLI — WooCommerce: Sidebar (widgets), Filtro precio y Paginación
   ========================================================= */
:root{
  --y-gold:#C8A24A;
  --y-black:#0B0B0B;
  --y-line:#E9E9E9;
  --y-bg:#FFFFFF;
}

/* ===== Sidebar: cajas de widgets más pro ===== */
.shop-sidebar .widget,
.shop-sidebar .woocommerce-widget-layered-nav,
.shop-sidebar .widget_price_filter{
  background: var(--y-bg);
  border: 1px solid var(--y-line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
}

.shop-sidebar .widget + .widget{ margin-top: 16px; }

.shop-sidebar .widget-title,
.shop-sidebar .shop-widget-title{
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  margin: 0 0 12px 0;
}

/* ===== Filtro por precio (WooCommerce / jQuery UI slider) ===== */
.woocommerce .widget_price_filter .price_slider_wrapper{
  padding-top: 6px;
}

.woocommerce .widget_price_filter .ui-slider{
  height: 8px;
  border-radius: 999px;
  background: #EFEFEF;
  border: 1px solid var(--y-line);
  position: relative;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-range{
  background: var(--y-gold);
  border-radius: 999px;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-handle{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--y-black);
  border: 3px solid #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
  cursor: pointer;
}

.woocommerce .widget_price_filter .price_slider_amount{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.woocommerce .widget_price_filter .price_slider_amount .button{
  background: var(--y-black);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.woocommerce .widget_price_filter .price_slider_amount .button:hover{
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0,0,0,.16);
}

.woocommerce .widget_price_filter .price_slider_amount .price_label{
  margin-left: auto;
  font-weight: 800;
  color: #111;
  font-size: 13px;
}

/* ===== Dropdown “Orden predeterminado” ===== */
.woocommerce .woocommerce-ordering select{
  border: 1px solid var(--y-line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  font-weight: 700;
  outline: none;
}

.woocommerce .woocommerce-ordering select:focus{
  border-color: var(--y-gold);
  box-shadow: 0 0 0 3px rgba(200,162,74,.18);
}

/* ===== Paginación (1 2 3 →) estilo Yongli ===== */
.woocommerce nav.woocommerce-pagination{
  margin: 26px 0 10px;
  display: flex;
  justify-content: center;
}

.woocommerce nav.woocommerce-pagination ul{
  border: 0;
  display: inline-flex;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.woocommerce nav.woocommerce-pagination ul li{
  border: 0;
  margin: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span{
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--y-line);
  background: #fff;
  color: #111;
  font-weight: 900;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.woocommerce nav.woocommerce-pagination ul li a:hover{
  transform: translateY(-1px);
  border-color: rgba(200,162,74,.55);
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
}

.woocommerce nav.woocommerce-pagination ul li span.current{
  background: var(--y-black);
  color: #fff;
  border-color: var(--y-black);
}

.woocommerce nav.woocommerce-pagination ul li a.next,
.woocommerce nav.woocommerce-pagination ul li a.prev{
  padding: 0 14px;
  min-width: 60px;
}

/* FIX: en sidebar angosta, que no se corte el precio del filtro */
.woocommerce .shop-sidebar .widget_price_filter .price_slider_amount{
  display: flex;
  flex-wrap: wrap;           /* permite bajar a otra línea */
  gap: 10px;
  align-items: center;
}

.woocommerce .shop-sidebar .widget_price_filter .price_slider_amount .button{
  order: 1;
}

.woocommerce .shop-sidebar .widget_price_filter .price_slider_amount .price_label{
  order: 2;
  width: 100%;               /* fuerza a ocupar toda la línea */
  margin-left: 0 !important;
  text-align: left;
  white-space: normal;       /* evita corte */
  overflow: visible;
}

/* Opcional: si aún queda muy largo, reduce un poco el tamaño */
.woocommerce .shop-sidebar .widget_price_filter .price_slider_amount .price_label{
  font-size: 12px;
}

/* =========================================================
   YONGLI — PRO TUNING (Sidebar + Filtro Precio + Cards + Paginación)
   Pegar AL FINAL de style.css
   ========================================================= */

/* ---------- 1) Sidebar widgets más pro ---------- */
.shop-sidebar .widget,
.shop-sidebar .wp-block-group,
.shop-sidebar .widget_block{
  background:#fff;
  border:1px solid #eee;
  border-radius:16px;
  padding:18px;
  margin-bottom:16px;
  box-shadow:0 8px 22px rgba(0,0,0,.05);
}

.shop-sidebar .widget-title,
.shop-sidebar h2,
.shop-sidebar h3{
  font-size:13px;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-weight:900;
  margin:0 0 14px 0;
  color:#111;
}

/* Categorías: más orden y hover */
.shop-sidebar .product-categories,
.shop-sidebar ul{
  list-style:none;
  margin:0;
  padding:0;
}
.shop-sidebar .product-categories li{
  padding:10px 0;
  border-bottom:1px solid #f0f0f0;
}
.shop-sidebar .product-categories li:last-child{ border-bottom:0; }
.shop-sidebar .product-categories a{
  color:#111;
  font-weight:600;
}
.shop-sidebar .product-categories a:hover{
  color:#C8A24A;
}

/* ---------- 2) FIX widget FILTRAR POR PRECIO (no se pierde el texto) ---------- */
.woocommerce .widget_price_filter .price_slider_wrapper{
  margin-top:10px;
}

.woocommerce .widget_price_filter .ui-slider{
  height:6px;
  border-radius:999px;
  background:#e9e9e9;
}
.woocommerce .widget_price_filter .ui-slider .ui-slider-range{
  background:#C8A24A;
  border-radius:999px;
}
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle{
  width:16px;
  height:16px;
  top:-5px;
  border-radius:50%;
  border:2px solid #111;
  background:#fff;
}

/* Contenedor del botón + texto precio */
.woocommerce .widget_price_filter .price_slider_amount{
  display:flex !important;
  flex-direction:column;           /* deja el texto abajo ordenado */
  gap:10px;
  margin-top:14px;
  text-align:left;
}

/* Texto de precio: que SIEMPRE haga wrap y no se corte */
.woocommerce .widget_price_filter .price_label{
  font-size:13px;
  color:#111;
  font-weight:700;
  white-space:normal !important;   /* clave: permite salto de línea */
  overflow:visible !important;
  line-height:1.2;
}

/* Botón filtrar: full width y pro */
.woocommerce .widget_price_filter .price_slider_amount .button{
  width:100%;
  border:0;
  border-radius:999px;
  background:#111;
  color:#fff;
  font-weight:900;
  padding:12px 14px;
  cursor:pointer;
}
.woocommerce .widget_price_filter .price_slider_amount .button:hover{
  background:#000;
}

/* ---------- 3) Cards WooCommerce: altura consistente + botón abajo ---------- */
body.woocommerce ul.products li.product{
  display:flex !important;
  flex-direction:column !important;
  border-radius:18px;
  overflow:hidden;
  border:1px solid #eee;
  box-shadow:0 10px 26px rgba(0,0,0,.06);
  background:#fff;
}

body.woocommerce ul.products li.product:hover{
  border-color:#C8A24A;
  box-shadow:0 16px 40px rgba(0,0,0,.10);
  transform: translateY(-2px);
  transition: all .18s ease;
}

/* Imagen consistente */
body.woocommerce ul.products li.product img{
  height:240px !important;
  object-fit:cover !important;
  border-radius:16px;
}

/* Título: 2 líneas máx para que no desarme la card */
body.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-weight:900;
  color:#111;
  margin:14px 18px 8px !important;
  line-height:1.2;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
  min-height: 2.4em; /* reserva altura para 2 líneas */
}

/* Precio */
body.woocommerce ul.products li.product .price{
  margin:0 18px 12px !important;
  font-weight:900;
  color:#111;
}

/* Botón siempre abajo */
body.woocommerce ul.products li.product .button{
  margin: 10px 18px 18px !important;
  width:auto !important;
  border-radius:999px !important;
  background:#111 !important;
  color:#fff !important;
  font-weight:900 !important;
  padding:12px 18px !important;
  align-self:flex-start;
  margin-top:auto !important; /* clave: empuja hacia abajo */
}
body.woocommerce ul.products li.product .button:hover{
  background:#000 !important;
}

/* ---------- 4) “Ordenar por” más bonito ---------- */
.woocommerce .woocommerce-ordering select{
  border:1px solid #e5e7eb;
  border-radius:999px;
  padding:10px 14px;
  font-weight:700;
  background:#fff;
}

/* ---------- 5) Paginación pro ---------- */
.woocommerce nav.woocommerce-pagination ul{
  border:0 !important;
  display:flex;
  gap:10px;
}
.woocommerce nav.woocommerce-pagination ul li{
  border:0 !important;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span{
  border:1px solid #eee !important;
  border-radius:12px;
  padding:10px 14px;
  font-weight:900;
  color:#111 !important;
  background:#fff !important;
}
.woocommerce nav.woocommerce-pagination ul li span.current{
  background:#111 !important;
  color:#fff !important;
  border-color:#111 !important;
}