/*
 Theme Name:   Chollosmania Child Theme
 Description:  Storefront Child
 Author:       Chollosmania
 Template:     storefront
 Version:      1.0.0
*/

/* ==========================================================================
   1. VARIABLES GLOBALES & RESETS BÁSICOS
   ========================================================================== */
:root {
  /* Colores Principales y Marca */
  --chollos-red: #D91B24;
  --chollos-red-dark: #A81018;
  --chollos-carbon: #111827;
  --chollos-blue: #0d3880;

  /* Fondos y Superficies */
  --chollos-white: #ffffff;
  --chollos-bg-light: #f8f9fa;
  --chollos-bg-subtle: #f9fafb;

  /* Bordes y Líneas */
  --chollos-border: #f3f4f6;
  --chollos-border-light: #eaeaea;
  --chollos-border-dark: #d1d5db;

  /* Tipografías y Textos */
  --chollos-text-main: #374151;
  --chollos-text-dark: #111827;
  --chollos-text-muted: #6b7280;
  --chollos-text-light: #9ca3af;
  --chollos-heading: #2c3e50;

  /* Estados y Acentos */
  --chollos-success: #10b981;
  --chollos-purple: #8b5cf6;
  --chollos-yellow: #fbbf24;
  --chollos-danger: #ef4444;
}

/* Resets de Enfoque */
a:focus, button:focus, li:focus, .button.alt:focus, input:focus, textarea:focus, 
input[type="button"]:focus, input[type="reset"]:focus, input[type="submit"]:focus, 
input[type="email"]:focus, input[type="tel"]:focus, input[type="url"]:focus, 
input[type="password"]:focus, input[type="search"]:focus {
    outline: 0px !important;
    outline-color: transparent !important;    
}

a {
  color: var(--chollos-red);
}

a:hover {
  color: var(--chollos-red-dark);
}

/* Ocupar el 100% del ancho en páginas sin sidebar */
body:not(.woocommerce-shop):not(.tax-product_cat):not(.tax-product_tag) .content-area {
    width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
}


/* ==========================================================================
   2. TOP BAR & CABECERA (HEADER.PHP)
   ========================================================================== */
.cm-top-bar {
    background-color: var(--chollos-carbon);
    color: var(--chollos-white);
    font-size: 0.825rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cm-top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cm-top-announcement {
    color: var(--chollos-white);
}

.cm-top-announcement strong {
    color: var(--chollos-white);
}

.cm-top-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.cm-top-links li a {
    color: var(--chollos-white);
    text-decoration: none;
    transition: color 0.2s ease;
}

.cm-top-links li a:hover {
    color: var(--chollos-text-light);
}

.cm-site-header {
    background-color: var(--chollos-white);
    border-bottom: 1px solid var(--chollos-border);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 25px !important;
}

.cm-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cm-header-top {
    display: flex;
    align-items: center;
	margin: 10 0 10 0 !important;
    justify-content: space-between;
    height: 75px;
    gap: 20px;
}

/* Logo */
.cm-logo-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px;
    text-decoration: none !important;
}

.cm-logo-img {
    max-height: 90px !important;
    width: 110px !important;
    object-fit: contain !important;
    display: block !important;
    transition: transform 0.25s ease !important;
}

.cm-logo-img:hover {
    transform: translateY(-4px) !important;
}

.cm-logo-icon {
    background-color: var(--chollos-red);
    color: var(--chollos-white);
    padding: 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cm-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--chollos-red);
    letter-spacing: -0.5px;
}

/* Buscador Centrado */
.cm-search-wrapper {
    flex: 1;
    max-width: 600px;
}

form.cm-search-form {
    margin-bottom: 0px !important;
}

.cm-search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.cm-search-icon {
    position: absolute;
    left: 15px;
    color: var(--chollos-text-light);
}

.cm-search-field {
    width: 100%;
    padding: 11px 110px 11px 42px !important;
    background-color: var(--chollos-bg-subtle) !important;
    border: 1px solid var(--chollos-border-dark) !important;
    border-radius: 9999px !important;
    font-size: 0.9rem !important;
    outline: none;
    transition: all 0.2s ease;
}

.cm-search-field:focus {
    background-color: var(--chollos-white) !important;
    border-color: var(--chollos-red) !important;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15) !important;
}

.cm-search-submit {
    position: absolute;
    right: 5px;
    background-color: var(--chollos-red) !important;
    color: var(--chollos-white) !important;
    border-radius: 9999px !important;
    padding: 7px 20px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cm-search-submit:hover {
    background-color: var(--chollos-red-dark) !important;
}

/* Acciones Usuario y Carrito */
.cm-actions-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cm-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--chollos-text-main);
    text-decoration: none !important;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s;
    position: relative;
}

.cm-action-btn:hover {
    background-color: var(--chollos-border);
    color: var(--chollos-red);
}

.cm-cart-badge {
    position: absolute;
    top: 2px;
    left: 22px;
    background-color: var(--chollos-red);
    color: var(--chollos-white);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 9999px;
    padding: 2px 6px;
    line-height: 1;
}

/* Mega Menú & Categorías */
.cm-header-bottom {
    background-color: var(--chollos-bg-subtle);
    border-top: 1px solid var(--chollos-border);
}

.cm-nav-bar {
    display: flex;
    align-items: center;
    gap: 25px;
    height: 45px;
}

.cm-dropdown {
    position: relative;
    display: inline-block;
}

.cm-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--chollos-red);
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 10px 0;
}

.cm-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--chollos-white);
    min-width: 230px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 12px;
    border: 1px solid var(--chollos-border);
    padding: 8px 0;
    z-index: 1000;
}

.cm-dropdown:hover .cm-dropdown-content {
    display: block;
}

.cm-dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--chollos-text-main);
    text-decoration: none !important;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.cm-dropdown-item:hover {
    background-color: var(--chollos-border);
    color: var(--chollos-red);
}

.cm-quick-links {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cm-quick-links a {
    color: var(--chollos-text-main);
    text-decoration: none !important;
    font-size: 0.875rem;
    font-weight: 500;
}

.cm-quick-links a:hover {
    color: var(--chollos-red);
}

.cm-quick-links a.cm-ofertas-link, 
.cm-quick-links a.cm-novedades-link, 
.cm-quick-links a.cm-tienda-link {
    color: var(--chollos-carbon);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cm-quick-links a.cm-ofertas-link:hover, 
.cm-quick-links a.cm-novedades-link:hover, 
.cm-quick-links a.cm-tienda-link:hover {
    color: var(--chollos-red);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}


/* ==========================================================================
   3. BOTONES Y ELEMENTOS WOOCOMMERCE GENERALES
   ========================================================================== */
.single_add_to_cart_button,
.button.checkout,
.widget_shopping_cart .button.checkout {
  background-color: var(--chollos-red) !important;
  color: var(--chollos-white) !important;
  font-weight: 700;
  border-radius: 6px;
}

.single_add_to_cart_button:hover,
.button.checkout:hover {
  background-color: var(--chollos-red-dark) !important;
}

.onsale {
  background-color: var(--chollos-red-dark) !important;
  color: var(--chollos-white) !important;
  border-color: var(--chollos-white) !important;
}


/* ==========================================================================
   4. REDISEÑO DE TARJETAS DE PRODUCTO (HOME Y ARCHIVOS)
   ========================================================================== */
ul.products li.product {
    background: var(--chollos-white);
    border: 1px solid var(--chollos-border);
    border-radius: 12px !important;
    padding: 15px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--chollos-red);
}

ul.wc-block-product-template.wc-block-product-template__responsive {
    padding: 0 !important;
    margin-left: 0 !important;
}

ul.products li.product img {
    border-radius: 8px;
    margin-bottom: 12px !important;
    object-fit: contain;
    max-height: 200px;
    width: 100%;
}

ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2,
ul.products li.product h3 {
    font-size: 1em !important;
    font-weight: 600 !important;
    color: var(--chollos-carbon) !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

ul.products li.product .woocommerce-loop-product__title:hover,
ul.products li.product h2:hover,
ul.products li.product h3:hover {
	text-decoration: underline !important;
}

ul.products li.product .price {
    color: var(--chollos-red-dark) !important;
    font-size: 1.15em !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
}

ul.products li.product .price del {
    color: var(--chollos-text-light) !important;
    font-size: 0.85em;
    font-weight: normal;
    margin-right: 5px;
}

ul.products li.product .price ins {
    color: var(--chollos-carbon) !important;
    text-decoration: none;
    font-weight: 700;
}

ul.products li.product .onsale {
    background-color: var(--chollos-carbon) !important;
    color: var(--chollos-white) !important;
    font-size: 0.75em !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    min-height: auto !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

ul.products li.product .button {
    background-color: var(--chollos-red) !important;
    color: var(--chollos-white) !important;
    border-radius: 20px !important;
    padding: 8px 16px !important;
    font-weight: 700 !important;
    font-size: 0.85em !important;
    text-align: center;
    border: none !important;
    transition: background-color 0.2s ease !important;
    margin-top: auto;
}

ul.products li.product .button:hover {
    background-color: var(--chollos-carbon) !important;
    color: var(--chollos-white) !important;
}

a.added_to_cart.wc-forward {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 10px !important;
    background-color: #0056b3 !important;
    color: var(--chollos-white) !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    padding: 10px 16px !important;
    border-radius: 12px !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    box-shadow: 0 4px 6px -1px rgba(0, 86, 179, 0.2) !important;
    box-sizing: border-box !important;
}

a.added_to_cart.wc-forward:hover {
    background-color: #004085 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 8px -2px rgba(0, 86, 179, 0.3) !important;
}


/* ==========================================================================
   5. PÁGINA DE INICIO (FRONT-PAGE.PHP / HOME)
   ========================================================================== */
.chollos-home-container {
    padding-bottom: 40px;
}

.chollos-home-container .section-title {
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--chollos-border);
    padding-bottom: 10px;
}

.chollos-home-container .section-title span {
    color: var(--chollos-red-dark);
}

.chollos-hero {
    background: linear-gradient(135deg, var(--chollos-red) 0%, var(--chollos-red-dark) 100%);
    color: var(--chollos-white);
    padding: 60px 0;
    border-radius: 0 0 15px 15px;
    margin-bottom: 40px;
}

.hero-content {
    max-width: 800px;
    text-align: center;
}

.hero-badge {
    background-color: var(--chollos-carbon);
    color: var(--chollos-white);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
}

.chollos-hero h1 {
    color: var(--chollos-white) !important;
    font-size: 2.8em;
    margin: 15px 0;
    font-weight: 700;
}

.chollos-hero p {
    font-size: 1.2em;
    opacity: 0.9;
    margin-bottom: 25px;
}

.chollos-btn-cta {
    display: inline-block;
    background-color: var(--chollos-carbon);
    color: var(--chollos-white) !important;
    padding: 14px 30px;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.chollos-btn-cta:hover {
    background-color: var(--chollos-carbon);
    transform: translateY(-2px);
}

.chollos-categories-section,
.chollos-on-sale-section, 
.chollos-recent-section {
    margin-bottom: 50px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--chollos-white);
    border: 1px solid var(--chollos-border-light);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    border-color: var(--chollos-red);
}

.category-card .cat-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px auto;
    border-radius: 50%;
    overflow: hidden;
    background: var(--chollos-bg-light);
}

.category-card .cat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card h3 {
    font-size: 1em;
    color: #333;
    margin: 0;
    font-weight: 600;
}

.section-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-all-link {
    font-weight: 700;
    color: var(--chollos-red);
}

.view-all-link:hover {
    color: var(--chollos-carbon);
}

/* Front Page Specific Layouts */
.cm-home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* ==========================================================================
   1. HERO BANNER REDISEÑADO
   ========================================================================== */
.cm-hero-section {
    margin-bottom: 30px !important;
}

.cm-hero-card {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.92) 0%, rgba(168, 16, 24, 0.88) 100%) !important;
    border-radius: 24px !important;
    padding: 50px !important;
    color: var(--chollos-white, #fff) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    overflow: hidden !important;
    position: relative !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.cm-hero-content {
    max-width: 550px !important;
    z-index: 2 !important;
}

.cm-hero-title {
    font-size: 2.75rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    margin-bottom: 16px !important;
    color: var(--chollos-white, #fff) !important;
    letter-spacing: -0.5px !important;
}

.cm-hero-desc {
    font-size: 1.1rem !important;
    color: var(--chollos-white) !important; 
    margin-bottom: 28px !important;
    line-height: 1.6 !important;
}

.cm-hero-btn {
    display: inline-block !important;
    background-color: var(--chollos-red, #D91B24) !important;
    color: var(--chollos-white, #fff) !important;
    font-weight: 700 !important;
    padding: 14px 32px !important;
    border-radius: 9999px !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
}

.cm-hero-btn:hover {
    background-color: #b5151c !important;
    transform: translateY(-3px) !important;
    color: #fff !important;
}

.cm-hero-image-wrapper {
    width: 360px !important;
    z-index: 2 !important;
    display: flex !important;
    justify-content: center !important;
}

.cm-hero-img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3)) !important;
    transition: transform 0.3s ease !important;
	transform: none !important;
	box-shadow: none !important;
}

.cm-hero-card:hover .cm-hero-img {
    transform: scale(1.03) translateY(-3px) !important;
}

/* ==========================================================================
   ADAPTACIÓN MÓVIL (RESPONSIVE)
   ========================================================================== */
@media (max-width: 768px) {
    .cm-hero-card {
        flex-direction: column !important;
        text-align: center !important;
        padding: 35px 20px !important;
    }

    .cm-hero-content {
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .cm-hero-title {
        font-size: 2.1rem !important;
    }

    .cm-hero-image-wrapper {
        width: 100% !important;
        max-width: 280px !important;
        margin-top: 30px !important;
    }
}

//

.cm-trust-section {
    margin-bottom: 45px;
}

.cm-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    background: var(--chollos-white);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--chollos-border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.cm-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cm-trust-icon { flex-shrink: 0; }
.cm-trust-icon.text-blue { color: var(--chollos-red); }
.cm-trust-icon.text-green { color: var(--chollos-success); }
.cm-trust-icon.text-orange { color: var(--chollos-carbon); }
.cm-trust-icon.text-purple { color: var(--chollos-purple); }

.cm-trust-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin: 0;
    color: var(--chollos-text-dark);
}

.cm-trust-desc {
    font-size: 0.75rem;
    color: var(--chollos-text-muted);
    margin: 0;
}

.cm-categories-section {
	margin-top: 30px !important;
    margin-bottom: 45px;
}

.cm-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cm-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--chollos-text-dark);
    margin: 0;
}

.cm-view-all {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--chollos-red);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none !important;
}

.cm-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.cm-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
}

.cm-cat-img-box {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background-color: var(--chollos-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cm-cat-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cm-cat-item:hover .cm-cat-img-box {
    transform: scale(1.08);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.cm-cat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--chollos-text-main);
    text-align: center;
}

.cm-flash-header {
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cm-flash-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cm-flash-title-group h2 {
    color: var(--chollos-text-dark) !important;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.cm-flash-timer {
    background: rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.cm-promo-banner {
    margin-bottom: 60px;
}

.cm-promo-card {
    background-color: var(--chollos-carbon);
    border-radius: 24px;
    color: var(--chollos-white);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.cm-promo-text {
    padding: 40px;
    flex: 1;
}

.cm-promo-tag {
    color: var(--chollos-white);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.cm-promo-text h3 {
    color: var(--chollos-white) !important;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cm-promo-text p {
    color: var(--chollos-text-light);
    margin-bottom: 20px;
    line-height: 1.5;
}

.cm-promo-btn {
    display: inline-block;
    background-color: var(--chollos-red);
    color: var(--chollos-white) !important;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 9999px;
    text-decoration: none !important;
    transition: background 0.2s;
}

.cm-promo-btn:hover {
    background-color: var(--chollos-red-dark);
}

.cm-promo-img-wrapper {
    width: 50%;
    height: 300px;
}

.cm-promo-img {
    width: 90%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   CORRECCIÓN: CENTRADO DE IMAGEN PROMOCIONAL EN MÓVIL
   ========================================================================== */
@media (max-width: 768px) {
    .cm-promo-img-wrapper {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        height: auto !important; /* Permite que se adapte en móvil */
        margin-bottom: 20px !important;
    }

    .cm-promo-img {
        width: 100% !important; /* O un 90% si prefieres que deje un pequeño margen a los lados */
        max-width: 450px !important; /* Evita que crezca demasiado en pantallas medianas de móvil */
        height: auto !important;
    }
}

.cm-section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.cm-bestsellers-section {
    margin-bottom: 0px !important;
}


/* ==========================================================================
   6. FICHA DE PRODUCTO (SINGLE-PRODUCT)
   ========================================================================== */
.single-product #primary {
    width: 100% !important;
}

.single-product div.product div.images {
    margin-bottom: 0 !important;
}

.single-product div.product div.images img {
    border-radius: 14px;
    border: 1px solid var(--chollos-border);
}

.single-product div.product div.images .flex-control-thumbs {
    gap: 10px;
    margin-top: 15px;
}

.single-product div.product div.images .flex-control-thumbs li img {
    border-radius: 8px;
    opacity: 0.6;
    transition: opacity 0.2s, border-color 0.2s;
    border: 1px solid var(--chollos-border);
}

.single-product div.product div.images .flex-control-thumbs li img.flex-active,
.single-product div.product div.images .flex-control-thumbs li img:hover {
    opacity: 1;
    border-color: var(--chollos-red);
}

.cm-single-header-box {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--chollos-border);
    padding-bottom: 20px;
}

h1.cm-single-title {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    color: var(--chollos-text-dark) !important;
    line-height: 1.25 !important;
    margin-bottom: 12px !important;
}

.cm-single-price-box {
    background: var(--chollos-bg-subtle);
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--chollos-border);
}

.single-product div.product p.price {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: var(--chollos-red-dark) !important;
    margin: 0 !important;
}

.single-product div.product p.price ins {
    color: var(--chollos-carbon) !important;
    text-decoration: none;
    font-weight: 800 !important;
}

.single-product div.product p.price del {
    color: var(--chollos-text-light) !important;
    font-size: 1.2rem !important;
    font-weight: normal;
    margin-right: 10px;
}

.cm-tax-notice {
    display: block;
    font-size: 0.75rem;
    color: var(--chollos-text-muted);
    margin-top: 4px;
}

.single-product div.product form.cart {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 25px !important;
}

.single-product div.product div.quantity input.qty {
    height: 48px;
    border-radius: 12px !important;
    border: 1px solid var(--chollos-border-dark) !important;
    font-weight: 700;
    text-align: center;
    background: var(--chollos-bg-subtle) !important;
}

.single-product div.product button.single_add_to_cart_button {
    flex: 1;
    height: 48px;
    border-radius: 12px !important;
    font-size: 1rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, background-color 0.2s ease !important;
}

.single-product div.product button.single_add_to_cart_button:hover {
    transform: translateY(-2px);
}

.cm-single-trust-box {
    background: var(--chollos-white);
    border: 1px solid var(--chollos-border);
    border-radius: 14px;
    padding: 15px;
    display: inline-flex;
    flex-direction: row;
    gap: 12px;
}

.single-product div.product .woocommerce-tabs {
    grid-column: 1 / -1;
    margin-top: 30px;
    background: var(--chollos-white);
    border-radius: 16px;
    border: 1px solid var(--chollos-border);
    padding: 20px;
}

.single-product div.product .woocommerce-tabs ul.tabs {
    border-bottom: 1px solid var(--chollos-border) !important;
    padding: 0 0 10px 0 !important;
    display: flex;
    gap: 10px;
}

.single-product div.product .woocommerce-tabs ul.tabs li {
    background: var(--chollos-border) !important;
    border: none !important;
    border-radius: 8px !important;
    margin: 0 !important;
    transition: background 0.2s;
}

.single-product div.product .woocommerce-tabs ul.tabs li::before,
.single-product div.product .woocommerce-tabs ul.tabs li::after {
    display: none !important;
}

.single-product div.product .woocommerce-tabs ul.tabs li a {
    padding: 8px 16px !important;
    font-weight: 600 !important;
    color: var(--chollos-text-main) !important;
    display: block;
}

.single-product div.product .woocommerce-tabs ul.tabs li.active {
    background: var(--chollos-red) !important;
}

.single-product div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--chollos-white) !important;
}

.single-product div.product .woocommerce-tabs .panel {
    padding: 20px 0 0 0 !important;
    color: var(--chollos-text-main);
    font-size: 0.95rem;
    line-height: 1.6;
}

.single-product .related.products {
    grid-column: 1 / -1;
    margin-top: 40px;
    border-top: 1px solid var(--chollos-border);
    padding-top: 30px;
}

.single-product .related.products > h2 {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: var(--chollos-text-dark) !important;
    margin-bottom: 20px !important;
}

.woocommerce-tabs .panel h2:first-of-type {
	font-weight: 700 !important;
	padding-bottom: 15px !important;
	border-bottom: 3px solid var(--chollos-red) !important;
}

/* ==========================================================================
   7. PÁGINA DE CARRITO (WOOCOMMERCE BLOCKS)
   ========================================================================== */
.entry-header h1.entry-title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: var(--chollos-carbon) !important;
    border-bottom: 3px solid var(--chollos-red) !important;
}

header.entry-header {
    padding-top: 20px !important;
	padding-bottom: 20px !important;
}

.wp-block-woocommerce-cart-items-block {
    background: var(--chollos-white) !important;
    border-radius: 16px !important;
    border: 1px solid var(--chollos-border) !important;
    padding: 24px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.wp-block-woocommerce-cart-items-block table.wc-block-cart-items {
    width: 100% !important;
    margin: 0 !important;
    table-layout: auto !important;
    box-sizing: border-box !important;
}

.wc-block-cart-items th {
    border-bottom: 1px solid var(--chollos-border) !important;
    color: var(--chollos-text-main) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding-bottom: 12px !important;
}

.wc-block-cart-items th:last-child,
.wc-block-cart-items td:last-child {
    padding-right: 25px !important;
    text-align: right !important;
}

.wc-block-cart-items th:first-child,
.wc-block-cart-items td:first-child {
    padding-left: 10px !important;
}

.wc-block-cart-items__row {
    border-bottom: 1px solid var(--chollos-border) !important;
    padding: 20px 0 !important;
}

.wc-block-cart-item__image img {
    border-radius: 12px !important;
    border: 1px solid var(--chollos-border) !important;
    object-fit: cover;
}

.wc-block-components-product-name {
    font-weight: 600 !important;
    color: var(--chollos-text-dark) !important;
    font-size: 1.05rem !important;
    text-decoration: none !important;
}

.wc-block-components-product-name:hover {
    color: var(--chollos-red) !important;
    text-decoration: underline !important;
}

.wc-block-cart-item__prices {
    margin: 6px 0 !important;
}

.wc-block-components-product-price__regular {
    color: var(--chollos-text-light) !important;
    font-size: 0.9rem !important;
    margin-right: 8px !important;
}

.wc-block-components-product-price__value.is-discounted {
    color: var(--chollos-red-dark) !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
}

.wc-block-components-product-metadata__description p {
    color: var(--chollos-text-muted) !important;
    font-size: 0.85rem !important;
    margin: 4px 0 12px 0 !important;
}

.wc-block-cart-item__quantity {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-top: 12px !important;
}

.wc-block-components-quantity-selector {
    border-radius: 10px !important;
    border: 1px solid var(--chollos-border-dark) !important;
    background: var(--chollos-bg-subtle) !important;
    overflow: hidden;
    height: 38px !important;
}

.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
    background: transparent !important;
    font-weight: 700;
    color: var(--chollos-text-dark);
    font-size: 0.9rem;
}

.wc-block-components-quantity-selector button {
    background: transparent !important;
    color: var(--chollos-text-main) !important;
    padding: 0 10px !important;
}

.wc-block-cart-item__remove-link {
    color: var(--chollos-text-light) !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    transition: color 0.2s;
}

.wc-block-cart-item__remove-link:hover {
    color: var(--chollos-danger) !important;
}

.wc-block-cart-item__total-price-and-sale-badge-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 4px !important;
    white-space: nowrap !important;
}

.wc-block-cart-item__total .wc-block-components-product-price__value {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: var(--chollos-text-dark) !important;
}

.wc-block-components-sale-badge {
    background-color: #ecfdf5 !important;
    color: #059669 !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 6px !important;
    border: 1px solid #a7f3d0 !important;
}

/* Sidebar de Totales (Carrito) */
.wp-block-woocommerce-cart-totals-block {
    background: var(--chollos-white) !important;
    border-radius: 16px !important;
    border: 1px solid var(--chollos-border) !important;
    padding: 25px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.wp-block-woocommerce-cart-order-summary-heading-block {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: var(--chollos-text-dark) !important;
    border-bottom: 1px solid var(--chollos-border);
    padding-bottom: 15px;
    margin-bottom: 15px !important;
}

.wc-block-components-totals-coupon.wc-block-components-panel {
    border: 1px solid var(--chollos-border) !important;
    border-radius: 12px !important;
    background: var(--chollos-bg-subtle) !important;
    overflow: hidden !important;
    margin-bottom: 15px !important;
}

.wc-block-components-totals-coupon .wc-block-components-panel__button {
    font-weight: 600 !important;
    color: var(--chollos-text-main) !important;
    padding: 14px 16px !important;
    background: transparent !important;
}

.wc-block-components-totals-coupon .wc-block-components-panel__button:hover {
    color: var(--chollos-red) !important;
}

.wc-block-components-totals-coupon .wc-block-components-panel__content {
    background: var(--chollos-white) !important;
    padding: 16px !important;
    border-top: 1px solid var(--chollos-border) !important;
}

.wc-block-components-text-input.wc-block-components-totals-coupon__input {
    border-radius: 10px !important;
    border: 1px solid var(--chollos-border-dark) !important;
    background: var(--chollos-bg-subtle) !important;
}

.wc-block-components-text-input.wc-block-components-totals-coupon__input input {
    height: 44px !important;
    color: var(--chollos-text-dark) !important;
    font-weight: 600 !important;
}

.wc-block-components-totals-coupon__button.wp-element-button {
    background-color: var(--chollos-red) !important;
    color: var(--chollos-white) !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    padding: 0 20px !important;
    height: 44px !important;
    min-height: 44px !important;
    box-shadow: none !important;
    border: none !important;
    transition: background-color 0.2s ease !important;
}

.wc-block-components-totals-coupon__button.wp-element-button:hover {
    background-color: var(--chollos-red-dark) !important;
}

.wc-block-components-totals-footer-item {
    border-top: 1px solid var(--chollos-border) !important;
    margin-top: 15px;
    padding-top: 15px;
}

.wc-block-components-totals-footer-item-tax-value {
    color: var(--chollos-red-dark) !important;
    font-size: 1.2rem !important;
    font-weight: 800 !important;
}

.wp-block-woocommerce-cart-order-summary-totals-block .wc-block-components-totals-item__value {
    color: #1f2937 !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
}

.wc-block-cart__submit-button.wp-element-button {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    background-color: var(--chollos-red) !important;
    color: var(--chollos-white) !important;
    border-radius: 12px !important;
    padding: 14px 20px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-transform: uppercase;
	text-decoration: none !important;
    letter-spacing: 0.5px;
    transition: transform 0.2s, background-color 0.2s !important;
    border: none !important;
    margin-top: 15px !important;
    box-shadow: none !important;
}

.wc-block-cart__submit-button.wp-element-button:hover {
    background-color: var(--chollos-red-dark) !important;
    transform: translateY(-2px);
}


/* ==========================================================================
   8. PÁGINA DE CHECKOUT (WOOCOMMERCE BLOCKS)
   ========================================================================== */
.wc-block-checkout__form {
    background: var(--chollos-white) !important;
    border-radius: 16px !important;
    border: 1px solid var(--chollos-border) !important;
    padding: 30px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
	width: 60% !important;
}


.wc-block-components-text-input label,
.wc-block-components-combobox label,
.wc-block-components-input-label {
    font-weight: 600 !important;
    color: var(--chollos-text-main) !important;
    font-size: 0.9rem !important;
    margin-bottom: 6px !important;
}

.wc-block-checkout__payment-method,
.wp-block-woocommerce-checkout-fields-block h2,
.wp-block-woocommerce-checkout-order-summary-block h2 {
    color: var(--chollos-text-dark) !important;
    font-weight: 600 !important;
}

.wc-block-components-checkout-place-order-button.wp-element-button {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    background-color: var(--chollos-red) !important;
    color: var(--chollos-white) !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s, background-color 0.2s !important;
    border: none !important;
    margin-top: 20px !important;
	box-shadow: none !important;
}

.wc-block-components-checkout-place-order-button.wp-element-button:hover {
    background-color: var(--chollos-red-dark) !important;
    transform: translateY(-2px);
}

.wc-block-components-radio-control__option.is-checked {
    border-color: var(--chollos-red) !important;
    background: var(--chollos-white) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.wc-block-components-radio-control__option-layout {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.wc-block-components-radio-control__label-group {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

.wc-block-components-radio-control__label {
    font-weight: 600 !important;
    color: #1f2937 !important;
    font-size: 0.95rem !important;
}

.wc-block-components-radio-control__secondary-label {
    font-weight: 700 !important;
    color: var(--chollos-red-dark) !important;
    font-size: 0.95rem !important;
}


/* ==========================================================================
   9. ARCHIVOS Y CATEGORÍAS DE PRODUCTOS
   ========================================================================== */
.woocommerce-products-header .woocommerce-products-header__title {
    font-size: 2.2rem !important;
    line-height: 1.6rem !important;
    font-weight: 800 !important;
    color: var(--chollos-carbon) !important;
    margin-bottom: 20px !important;
    padding-bottom: 20px !important;
    border-bottom: 3px solid var(--chollos-red) !important;
	padding-top: 20px !important;
}

.storefront-sorting {
    background: var(--chollos-white) !important;
    border: 1px solid var(--chollos-border) !important;
    border-radius: 12px !important;
    padding: 15px 20px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap;
    gap: 15px;
}

.storefront-sorting select.orderby {
    border-radius: 8px !important;
    border: 1px solid var(--chollos-border-dark) !important;
    background: var(--chollos-bg-subtle) !important;
    color: var(--chollos-text-main) !important;
    padding: 8px 12px !important;
    font-weight: 500 !important;
}

.storefront-sorting .woocommerce-result-count {
    color: var(--chollos-text-muted) !important;
    margin: 0 !important;
    font-size: 0.9rem !important;
}

.wc-block-components-sidebar-layout .wc-block-components-main {
    padding-right: 0px !important;
}

body.woocommerce-cart .entry-header,
body.woocommerce-checkout .entry-header,
body.woocommerce-account .entry-header {
    margin-bottom: 0px !important;
    padding-bottom: 0px !important;
}

body.woocommerce-cart .site-main,
body.woocommerce-checkout .site-main,
body.woocommerce-account .site-main {
    padding-top: 10px !important;
}

.wc-block-product-filters__overlay-content {
	padding-top: 20px !important;
}


/* ==========================================================================
   10. PIE DE PÁGINA (FOOTER.PHP)
   ========================================================================== */
.cm-site-footer {
    background-color: var(--chollos-white);
    border-top: 1px solid #e5e7eb;
    padding-top: 50px;
    padding-bottom: 30px;
    color: var(--chollos-text-muted);
    font-size: 0.875rem;
}

.cm-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cm-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.cm-footer-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--chollos-text-dark);
    margin-bottom: 16px;
}

.cm-footer-desc {
    line-height: 1.6;
	margin-top: 15px !important;
}

.cm-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cm-footer-links li {
    margin-bottom: 10px;
}

.cm-footer-links a {
    color: var(--chollos-text-muted);
    text-decoration: none !important;
    transition: color 0.2s;
}

.cm-footer-links a:hover {
    color: var(--chollos-red);
}

.cm-footer-bottom {
    border-top: 1px solid var(--chollos-border);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cm-footer-legal {
    display: flex;
    gap: 20px;
}

.cm-footer-legal a {
    color: var(--chollos-text-light);
    text-decoration: none !important;
}

.cm-footer-legal a:hover {
    color: var(--chollos-text-dark);
}


/* ==========================================================================
   11. MEDIA QUERIES & RESPONSIVE
   ========================================================================== */
@media (min-width: 768px) {
    .wc-block-components-sidebar-layout.wc-block-cart {
        display: grid !important;
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) !important;
        gap: 40px !important;
        align-items: start !important;
    }

    .wc-block-components-sidebar-layout .wc-block-components-main,
    .wc-block-components-sidebar-layout .wc-block-components-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
    }
}

@media (max-width: 768px) {
    .cm-header-top {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 0;
    }
    .cm-search-wrapper {
        order: 3;
        width: 100%;
        max-width: 100%;
    }
    .cm-action-text {
        display: none;
    }
    .cm-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .cm-hero-card {
        flex-direction: column;
        padding: 24px;
        text-align: center;
    }
    .cm-hero-title {
        font-size: 1.8rem;
    }
    .cm-hero-image-wrapper {
        display: none;
    }
    .cm-promo-card {
        flex-direction: column;
    }
    .cm-promo-img-wrapper {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 640px) {
    .cm-top-bar-right {
        display: none;
    }
    .cm-top-bar-inner {
        justify-content: center;
        text-align: center;
    }
}

/* ==========================================================================
   12. WOOCOMMERCE PRODUCT FILTERS (OVERLAY / SIDEBAR)
   ========================================================================== */
.wc-block-product-filters__overlay-content {
    background: var(--chollos-white) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    color: var(--chollos-text-main) !important;
    border: 1px solid var(--chollos-border) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
}

/* Título Principal "Filtros" */
.wc-block-product-filters__overlay-content > h2.wp-block-heading {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: var(--chollos-text-dark) !important;
    border-bottom: 2px solid var(--chollos-border) !important;
    padding-bottom: 12px !important;
    margin-bottom: 20px !important;
}

/* Subtítulos de cada filtro (Precio, Puntuación, Disponibilidad) */
.wc-block-product-filters__overlay-content h3.wp-block-heading {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--chollos-text-dark) !important;
    margin-bottom: 12px !important;
}

/* Contenedores de cada sección de filtro individual */
.wc-block-product-filters__overlay-content > div[data-block-name^="woocommerce/product-filter-"] {
    margin-bottom: 20px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid var(--chollos-border) !important;
}

.wc-block-product-filters__overlay-content > div[data-block-name^="woocommerce/product-filter-"]:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Filtro de Precio - Slider e Inputs */
.wc-block-product-filter-price-slider__content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wc-block-product-filter-price-slider__range {
    position: relative;
    height: 6px;
    background: var(--chollos-border);
    border-radius: 9999px;
    margin: 10px 0;
}

.wc-block-product-filter-price-slider__range .range-bar {
    position: absolute;
    height: 100%;
    background-color: var(--chollos-red);
    border-radius: 9999px;
}

.wc-block-product-filter-price-slider__range input[type="range"] {
    position: absolute;
    width: 100%;
    height: 6px;
    top: 0;
    left: 0;
    background: none;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
}

.wc-block-product-filter-price-slider__range input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--chollos-red);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Inputs de texto de precio min/max */
.wc-block-product-filter-price-slider__content input[type="text"] {
    background: var(--chollos-bg-subtle) !important;
    border: 1px solid var(--chollos-border-dark) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 0.9rem !important;
    color: var(--chollos-text-dark) !important;
    font-weight: 600 !important;
    width: 100% !important;
    text-align: center;
}

.wc-block-product-filter-price-slider__content input[type="text"]:focus {
    border-color: var(--chollos-red) !important;
    outline: none !important;
    background: var(--chollos-white) !important;
}

/* Checkbox Lists (Disponibilidad / Puntuación) */
.wc-block-product-filter-checkbox-list__item {
    margin-bottom: 8px !important;
}

.wc-block-product-filter-checkbox-list__label {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    color: var(--chollos-text-main) !important;
    font-weight: 500 !important;
}

.wc-block-product-filter-checkbox-list__input-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1px solid var(--chollos-border-dark);
    border-radius: 6px;
    background: var(--chollos-bg-subtle);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.wc-block-product-filter-checkbox-list__input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    margin: 0;
}

.wc-block-product-filter-checkbox-list__mark {
    width: 12px;
    height: 10px;
    color: var(--chollos-white);
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Estado checked del checkbox personalizado */
.wc-block-product-filter-checkbox-list__input:checked ~ .wc-block-product-filter-checkbox-list__mark {
    opacity: 1;
}

.wc-block-product-filter-checkbox-list__input:checked + .wc-block-product-filter-checkbox-list__mark,
.wc-block-product-filter-checkbox-list__input-wrapper:has(input:checked) {
    background-color: var(--chollos-red) !important;
    border-color: var(--chollos-red) !important;
}

.wc-block-product-filter-checkbox-list__text {
    color: var(--chollos-text-dark);
}

/* ==========================================================================
   13. WOOCOMMERCE PRODUCT FILTERS (FOOTER & APPLY BUTTON)
   ========================================================================== */

/* Contenedor del pie del overlay */
.wc-block-product-filters__overlay-footer {
    margin-top: 24px !important;
    padding-top: 16px !important;
    border-top: 1px solid var(--chollos-border) !important;
    display: flex !important;
    justify-content: stretch !important;
}

/* Botón "Aplicar" - Estado Normal */
.wc-block-product-filters__overlay-footer .wc-block-product-filters__apply {
    width: 100% !important;
    background-color: var(--chollos-red) !important;
    color: var(--chollos-white) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
}

/* Botón "Aplicar" - Estado Hover (Red Dark) */
.wc-block-product-filters__overlay-footer .wc-block-product-filters__apply:hover {
    background-color: var(--chollos-red-dark) !important;
}

/* Efecto al hacer clic (Active) */
.wc-block-product-filters__overlay-footer .wc-block-product-filters__apply:active {
    transform: scale(0.98) !important;
}

@media (max-width: 768px) {
    .cm-quick-links {
        display: flex !important;
        gap: 12px !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .cm-quick-links a {
        font-size: 0.8rem !important;
    }
}





/* ==========================================================================
   12. WOOCOMMERCE PRODUCT FILTERS (TARJETA MODAL COMPLETA)
   ========================================================================== */

/* Contenedor principal de toda la ventana flotante (La tarjeta) */
.wc-block-product-filters__overlay-dialog {
    background: var(--chollos-white) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    color: var(--chollos-text-main) !important;
    border: 1px solid var(--chollos-border) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Limpiamos el contenido interno para que no duplique fondos ni bordes */
.wc-block-product-filters__overlay-content {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Título Principal "Filtros" */
.wc-block-product-filters__overlay-content > h2.wp-block-heading {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: var(--chollos-text-dark) !important;
    border-bottom: 2px solid var(--chollos-border) !important;
    padding-bottom: 12px !important;
    margin-bottom: 20px !important;
}

/* Subtítulos de cada filtro (Precio, Puntuación, Disponibilidad) */
.wc-block-product-filters__overlay-content h3.wp-block-heading {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--chollos-text-dark) !important;
    margin-bottom: 12px !important;
}

/* Separadores entre cada sección de filtro individual */
.wc-block-product-filters__overlay-content > div[data-block-name^="woocommerce/product-filter-"] {
    margin-bottom: 20px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid var(--chollos-border) !important;
}

.wc-block-product-filters__overlay-content > div[data-block-name^="woocommerce/product-filter-"]:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Filtro de Precio - Slider e Inputs */
.wc-block-product-filter-price-slider__content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wc-block-product-filter-price-slider__range {
    position: relative;
    height: 6px;
    background: var(--chollos-border);
    border-radius: 9999px;
    margin: 10px 0;
}

.wc-block-product-filter-price-slider__range .range-bar {
    position: absolute;
    height: 100%;
    background-color: var(--chollos-red);
    border-radius: 9999px;
}

.wc-block-product-filter-price-slider__range input[type="range"] {
    position: absolute;
    width: 100%;
    height: 6px;
    top: 0;
    left: 0;
    background: none;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
}

.wc-block-product-filter-price-slider__range input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--chollos-red);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.wc-block-product-filter-price-slider__content input[type="text"] {
    background: var(--chollos-bg-subtle) !important;
    border: 1px solid var(--chollos-border-dark) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 0.9rem !important;
    color: var(--chollos-text-dark) !important;
    font-weight: 600 !important;
    width: 100% !important;
    text-align: center;
}

.wc-block-product-filter-price-slider__content input[type="text"]:focus {
    border-color: var(--chollos-red) !important;
    outline: none !important;
    background: var(--chollos-white) !important;
}

/* Checkboxes personalizados */
.wc-block-product-filter-checkbox-list__item {
    margin-bottom: 8px !important;
}

.wc-block-product-filter-checkbox-list__label {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    color: var(--chollos-text-main) !important;
    font-weight: 500 !important;
}

.wc-block-product-filter-checkbox-list__input-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1px solid var(--chollos-border-dark);
    border-radius: 6px;
    background: var(--chollos-bg-subtle);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.wc-block-product-filter-checkbox-list__input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    margin: 0;
}

.wc-block-product-filter-checkbox-list__mark {
    width: 12px;
    height: 10px;
    color: var(--chollos-white);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.wc-block-product-filter-checkbox-list__input:checked ~ .wc-block-product-filter-checkbox-list__mark {
    opacity: 1;
}

.wc-block-product-filter-checkbox-list__input:checked + .wc-block-product-filter-checkbox-list__mark,
.wc-block-product-filter-checkbox-list__input-wrapper:has(input:checked) {
    background-color: var(--chollos-red) !important;
    border-color: var(--chollos-red) !important;
}

.wc-block-product-filter-checkbox-list__text {
    color: var(--chollos-text-dark);
}

/* ==========================================================================
   13. FOOTER Y BOTÓN APLICAR (Dentro de la tarjeta)
   ========================================================================== */
.wc-block-product-filters__overlay-footer {
    margin-top: 20px !important;
    padding-top: 16px !important;
    border-top: 1px solid var(--chollos-border) !important;
    display: flex !important;
    justify-content: stretch !important;
	background-color: none !important;
	box-shadow: none !important;
	
}

.wc-block-product-filters__overlay-footer .wc-block-product-filters__apply {
    width: 100% !important;
    background-color: var(--chollos-red) !important;
    color: var(--chollos-white) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
}

.wc-block-product-filters__overlay-footer .wc-block-product-filters__apply:hover {
    background-color: var(--chollos-red-dark) !important;
}

.wc-block-product-filters__overlay-footer .wc-block-product-filters__apply:active {
    transform: scale(0.98) !important;
}


.single-product div.product .product_meta {
	border-top: none !important;
}

/* ==========================================================================
   EXTENSIÓN: ESTILOS PARA TARJETAS DE BLOQUES DE WOOCOMMERCE
   ========================================================================== */

/* 1. Contenedor de la tarjeta en bloques */
li.wc-block-product {
    background: var(--chollos-white) !important;
    border: 1px solid var(--chollos-border) !important;
    border-radius: 12px !important;
    padding: 15px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    overflow: hidden !important;
    position: relative !important;
    list-style: none !important;
}

li.wc-block-product:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
    border-color: var(--chollos-red) !important;
}

/* 2. Imagen del producto en bloques */
li.wc-block-product .wc-block-components-product-image img {
    border-radius: 8px !important;
    margin-bottom: 12px !important;
    object-fit: cover !important;
    max-height: 200px !important;
    width: 100% !important;
}

/* 3. Título del producto en bloques */
li.wc-block-product h2.wp-block-post-title,
li.wc-block-product h2.wp-block-post-title a {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: var(--chollos-carbon) !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-align: center !important; /* <-- Añadido para alinear al centro */
}

li.wc-block-product h2.wp-block-post-title a:hover {
    text-decoration: underline !important;
}

/* 4. Precio en bloques */
li.wc-block-product .wc-block-components-product-price {
    color: var(--chollos-red-dark) !important;
    font-size: 1.15em !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    text-align: center !important;
}

li.wc-block-product .wc-block-components-product-price del {
    color: var(--chollos-text-light, #9ca3af) !important;
    font-size: 0.85em !important;
    font-weight: normal !important;
    margin-right: 5px !important;
}

li.wc-block-product .wc-block-components-product-price ins {
    color: var(--chollos-carbon) !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

/* 5. Insignia de oferta en bloques */
li.wc-block-product .wc-block-components-product-sale-badge {
    background-color: var(--chollos-carbon) !important;
    color: var(--chollos-white) !important;
    font-size: 0.75em !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    box-shadow: none !important;
    border: none !important;
}

li.wc-block-product .wc-block-components-product-sale-badge__text {
    color: var(--chollos-white) !important;
}

/* 6. Botón "Añadir al carrito" en bloques */
li.wc-block-product .wc-block-components-product-button__button {
    background-color: var(--chollos-red) !important;
    color: var(--chollos-white) !important;
    border-radius: 20px !important;
    padding: 8px 16px !important;
    font-weight: 700 !important;
    font-size: 0.85em !important;
    text-align: center !important;
    border: none !important;
    transition: background-color 0.2s ease !important;
    margin-top: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

li.wc-block-product .wc-block-components-product-button__button:hover {
    background-color: var(--chollos-red-dark) !important;
    color: var(--chollos-white) !important;
	text-decoration: none !important;
}

/* ==========================================================================
   ESTILOS PARA EL BOTÓN "VER CARRITO" (BLOQUES DE WOOCOMMERCE)
   ========================================================================== */

li.wc-block-product .added_to_cart.wc_forward {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 8px !important;
    background-color: #0056b3 !important;
    color: var(--chollos-white) !important;
    font-size: 0.95em !important;
    font-weight: 700 !important;
    border-radius: 20px !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}
