/*
 Theme Name:   ByLiaCallizo Child
 Theme URI:    https://byliacallizo.es
 Description:  Tema hijo de GeneratePress para byliacallizo.es
 Author:       Ivan
 Template:     generatepress
 Version:      1.0.0
 Text Domain:  byliacallizo-child
*/

/* ─────────────────────────────────────────────────────────────
   FUENTES
───────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400&family=DM+Sans:wght@300;400;500&display=swap');


/* ─────────────────────────────────────────────────────────────
   VARIABLES GLOBALES
───────────────────────────────────────────────────────────── */
:root {
  --blc-blue:       #1a3fd4;
  --blc-blue-hover: #0f2a9e;
  --blc-blue-light: #e8edff;
  --blc-dark:       #111111;
  --blc-mid:        #555555;
  --blc-light:      #e8e5e0;
  --blc-cream:      #FFFFFF;
  --blc-serif:      'Playfair Display', Georgia, serif;
  --blc-sans:       'DM Sans', sans-serif;
}


/* ─────────────────────────────────────────────────────────────
   BASE — acotado al frontend, sin tocar el admin
───────────────────────────────────────────────────────────── */
body {
  font-family: var(--blc-sans);
  background: var(--blc-cream);
  color: var(--blc-dark);
}

/* Serif solo en el contenido del site, no en el admin */
.site-content h1,
.site-content h2,
.site-content h3,
.site-content h4 {
  font-family: var(--blc-serif);
  font-weight: 400;
}

/* Links: solo reset en zonas controladas */
.site-content a,
.woocommerce a {
  text-decoration: none;
  transition: color 0.2s;
}

/* Banner ancho en Productos*/
.blc-banner-full {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* ─────────────────────────────────────────────────────────────
   HERO HOME — título y botón
───────────────────────────────────────────────────────────── */
.blc-hero-title {
    font-family: var(--blc-serif) !important;
    font-weight: 400 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.01em !important;
    text-align: center !important;
    margin: 0 0 1rem 0 !important;
}
.blc-hero-title em                     { font-style: italic !important; }

.blc-btn-hero,
.blc-btn-hero:link,
.blc-btn-hero:visited {
    background-color: transparent !important;
    color: #fff !important;
    border-color: #fff !important;
}
.blc-btn-hero:hover,
.blc-btn-hero:focus {
    background-color: #fff !important;
    color: var(--blc-blue) !important;
    border-color: #fff !important;
}


/* ─────────────────────────────────────────────────────────────
   LOOP DE PRODUCTOS — bloques Gutenberg (Product Collection)
───────────────────────────────────────────────────────────── */
.wc-block-product-template {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wc-block-product {
    position: relative !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

/* Imagen */
.wc-block-product .wc-block-components-product-image,
.wc-block-product .wp-block-woocommerce-product-image {
    position: relative !important;
    aspect-ratio: 3 / 4 !important;
    overflow: hidden !important;
    margin-bottom: 0.9rem !important;
    background: var(--blc-light) !important;
    display: block !important;
}
.wc-block-product .wc-block-components-product-image a,
.wc-block-product .wp-block-woocommerce-product-image a {
    display: block !important; width: 100% !important; height: 100% !important;
}
.wc-block-product .wc-block-components-product-image img,
.wc-block-product .wp-block-woocommerce-product-image img {
    width: 100% !important; height: 100% !important;
    object-fit: cover !important; object-position: center top !important;
    transition: transform 0.6s ease !important; display: block !important;
}
.wc-block-product:hover .wc-block-components-product-image img,
.wc-block-product:hover .wp-block-woocommerce-product-image img {
    transform: scale(1.05) !important;
}

/* Nombre */
.wc-block-product .wp-block-post-title {
    font-family: var(--blc-sans) !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
    line-height: 1.35 !important;
    margin: 0 0 0.3rem 0 !important;
    text-align: left !important;
}
.wc-block-product .wp-block-post-title a        { color: var(--blc-dark) !important; }
.wc-block-product .wp-block-post-title a:hover  { color: var(--blc-blue) !important; }

/* Precio */
.wc-block-product .wc-block-components-product-price,
.wc-block-product .wp-block-woocommerce-product-price {
    font-family: var(--blc-sans) !important;
    font-size: 0.8rem !important;
    color: var(--blc-mid) !important;
    text-align: left !important;
}

/* Botón añadir */
.wc-block-product .wc-block-components-product-button { margin-top: 0.75rem !important; }
.wc-block-product .wc-block-components-product-button__button,
.wc-block-product .wp-block-button__link {
    background: var(--blc-dark) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    font-family: var(--blc-sans) !important;
    font-size: 0.65rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.13em !important;
    text-transform: uppercase !important;
    padding: 0.6rem 1.4rem !important;
    width: 100% !important;
    transition: background 0.2s !important;
    box-shadow: none !important;
}
.wc-block-product .wc-block-components-product-button__button:hover,
.wc-block-product .wp-block-button__link:hover  { background: var(--blc-blue) !important; }


/* ─────────────────────────────────────────────────────────────
   PAGINACIÓN DEL LOOP
───────────────────────────────────────────────────────────── */
.wp-block-query-pagination {
    margin-top: 3rem !important;
    display: flex !important;
    justify-content: center !important;
    gap: 0.25rem !important;
}
.wp-block-query-pagination-numbers a,
.wp-block-query-pagination-numbers span,
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
    font-family: var(--blc-sans) !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.08em !important;
    color: var(--blc-dark) !important;
    border: 1.5px solid rgba(0,0,0,0.15) !important;
    padding: 0.5rem 0.85rem !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    background: transparent !important;
}
.wp-block-query-pagination-numbers a:hover,
.wp-block-query-pagination-previous:hover,
.wp-block-query-pagination-next:hover {
    background: var(--blc-blue) !important;
    border-color: var(--blc-blue) !important;
    color: #fff !important;
}
.wp-block-query-pagination-numbers .current {
    background: var(--blc-dark) !important;
    border-color: var(--blc-dark) !important;
    color: #fff !important;
}


/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .wc-block-product-template          { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 768px) {
    .wc-block-product-template          { grid-template-columns: repeat(2, 1fr) !important; gap: 0.85rem !important; }
    .wc-block-product .wp-block-post-title {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        min-height: 2.7em !important;
    }
}

/* ── FIX 1: liberar entry-content en producto ── */
.single-product .entry-content {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ── FIX 2: anular el height inline que pone FlexSlider por JS ── */
.woocommerce-product-gallery .flex-viewport {
  height: auto !important;
  aspect-ratio: 3 / 4;
  overflow: hidden !important;
}

/* ── FIX 3: la imagen dentro que se adapte ── */
.woocommerce-product-gallery .flex-viewport img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
}


/* ─────────────────────────────────────────────────────────────
   QUITAR ELEMENTOS DE GENERATEPRESS
───────────────────────────────────────────────────────────── */
.site-info                              { display: none !important; }
.nav-float,
.nav-primary,
.site-navigation,
#site-navigation                        { display: none !important; }

/* Imagen destacada duplicada por GP en página de producto */
.single-product .featured-image.page-header-image-single { display: none !important; }





/* ─────────────────────────────────────────────────────────────
   PAGINAS DE PRODUCTO
───────────────────────────────────────────────────────────── */

/* Ocultar el breadcrumb original (fuera del summary) */
.entry-content > .woocommerce-breadcrumb {
    display: none !important;
}

/* Estilar el breadcrumb dentro del summary */
.summary .woocommerce-breadcrumb {
    font-family: var(--blc-sans) !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: #aaa !important;
    margin-bottom: 1rem !important;
    display: block !important;
}
.summary .woocommerce-breadcrumb a {
    color: #aaa !important;
    text-decoration: none !important;
}
.summary .woocommerce-breadcrumb a:hover {
    color: var(--blc-blue) !important;
}



/* ═══════════════════════════════════════════════════
   GALERÍA — GRID 2 COLUMNAS STICKY
   ═══════════════════════════════════════════════════ */

.woocommerce-product-gallery__trigger { display: none !important; }
.woocommerce-product-gallery__image .zoomImg { display: none !important; }

/* ─── LAYOUT PRINCIPAL ─── */
.blc-product-main {
    display: flex !important;
    align-items: flex-start !important;
    overflow: visible !important;
}

.blc-product-main .woocommerce-product-gallery {
    position: static !important;
    align-self: flex-start !important;
}

.blc-product-main .summary.entry-summary {
    position: sticky !important;
    top: 0 !important;
    align-self: flex-start !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
	  padding-top: 24px !important;
}

/* ─── DESKTOP ─── */
@media (min-width: 769px) {

    .woocommerce-product-gallery {
        display: block !important;
        /* Sin max-height ni overflow — el template override limita el sticky */
    }

    .flex-control-thumbs { display: none !important; }

    .woocommerce-product-gallery .flex-viewport {
        height: auto !important;
        overflow: visible !important;
        width: 100% !important;
        position: static !important;
    }

    .woocommerce-product-gallery__wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 3px !important;
        width: 100% !important;
        transform: none !important;
        transition: none !important;
    }

    .woocommerce-product-gallery__image {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 3 / 4 !important;
        float: none !important;
        overflow: hidden !important;
        position: relative !important;
        margin: 0 !important;
        display: block !important;
    }

    .woocommerce-product-gallery__image a {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
    }

    .woocommerce-product-gallery__image img:not(.zoomImg) {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center top !important;
        display: block !important;
        max-width: none !important;
    }
}


/* ─── MOBILE ─── */
@media (max-width: 768px) {

    .blc-product-main {
        flex-direction: column !important;
    }
    .woocommerce-product-gallery {
        position: static !important;
        width: 100% !important;
    }
    .woocommerce-product-gallery .flex-viewport {
        overflow: hidden !important;
    }
  .flex-control-thumbs {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        overflow-x: auto !important;
        list-style: none !important;
        margin: 0 !important;
    }  
    .flex-control-thumbs li { flex-shrink: 0 !important; }
    .flex-control-thumbs img {
        width: 80px !important;
        height: 80px !important;
        object-fit: cover !important;
        object-position: center top !important;
        opacity: 0.6 !important;
        display: block !important;
        cursor: pointer !important;
    }

    .flex-control-thumbs img.flex-active,
    .flex-control-thumbs img:hover { opacity: 1 !important; }
}




/* Título del producto */
.product_title.entry-title {
  font-family: var(--blc-serif) !important;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem) !important;
  font-weight: 400 !important;
  line-height: 1.1 !important;
  color: var(--blc-dark) !important;
  margin: 0 0 1rem 0 !important;
}

/* Precio */
.summary .price {
  font-family: var(--blc-sans) !important;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  color: var(--blc-dark) !important;
  margin-bottom: 2rem !important;
  display: block !important;
}

/* Cantidad +/- */
.quantity.buttons-added {
  margin-bottom: 1rem !important;
  
}


/* ─────────────────────────────────────────────────────────────
   BOTÓN AÑADIR AL CARRITO
───────────────────────────────────────────────────────────── */
.single_add_to_cart_button {
  background: var(--blc-blue) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  font-family: var(--blc-sans) !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  padding: 1rem 2.5rem !important;
  width: 100% !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  box-shadow: none !important;
}
.single_add_to_cart_button:hover       { background: var(--blc-blue-hover) !important; }

/* ─────────────────────────────────────────────────────────────
   WISHLIST BUTTON
───────────────────────────────────────────────────────────── */
.yith-add-to-wishlist-button-block {
    margin-top: 15px !important;
	  display: block !important;
    width: 100% !important;
}

.cart {
    margin-bottom: 0 !important;
}

.yith-wcwl-add-to-wishlist-button--anchor {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 1rem 2.5rem !important;
    background: transparent !important;
    border: 1.5px solid rgba(0,0,0,0.15) !important;
    color: var(--blc-dark) !important;
    font-family: var(--blc-sans) !important;
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: border-color 0.2s, color 0.2s !important;
    box-sizing: border-box !important;
}

.yith-wcwl-add-to-wishlist-button--anchor:hover {
    border-color: var(--blc-blue) !important;
    color: var(--blc-blue) !important;
}

.yith-wcwl-add-to-wishlist-button-icon {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
}



/* ─── SWATCHES MATERIAL ─── */
.blc-swatches {
    margin-bottom: 1.5rem;
    padding: 0;
    background: transparent;
}
.blc-swatches::after { display: none; }
.blc-swatches-label {
    font-family: var(--blc-sans);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blc-dark);
    margin-bottom: 0.75rem;
}
.blc-swatches-label strong { color: var(--blc-dark); }
.blc-swatches-options {
    display: flex;
    gap: 10px;
}
.blc-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    cursor: pointer;
}
.blc-swatch.active { cursor: default; }
.blc-swatch-dot {
    width: 36px;
    height: 36px;
    border-radius: 0;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    display: block;
    position: relative;
    overflow: hidden;
}
.blc-swatch-dot::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.25), transparent);
    pointer-events: none;
}
.blc-swatch:hover:not(.active) .blc-swatch-dot { border-color: var(--blc-blue); }
.blc-swatch.active .blc-swatch-dot {
    border-color: var(--blc-blue) !important;
    box-shadow: 0 0 0 1px var(--blc-blue) !important;
}
.blc-swatch-name {
    font-family: var(--blc-sans);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blc-dark);
}
.blc-swatch:hover:not(.active) .blc-swatch-name { color: var(--blc-blue); }
.blc-swatch.active .blc-swatch-name {
    color: var(--blc-blue) !important;
    font-weight: 500 !important;
}


/* ─── BADGES ─── */
.blc-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}
.blc-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--blc-sans);
    font-size: 12px;
    color: var(--blc-dark);
}
.blc-badge svg {
    flex-shrink: 0;
    color: var(--blc-blue);
}




/* ─── PRODUCTOS RELACIONADOS ─── */
.related.products {
    padding-top: 80px !important;
}
.related.products > h2 {
    color: var(--blc-blue) !important;
}
.related.products ul.products {
    gap: 3px !important;
    padding: 0 !important;
    margin: 0 !important;
}
.related .woocommerce-loop-product__title {
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    color: var(--blc-dark) !important;
    margin: 0 0 0.25rem 0 !important;
    padding: 0 !important;
    text-align: left !important;
	text-transform: uppercase !important;
}
.related .price {
    font-size: 0.8rem !important;
    color: var(--blc-mid) !important;
}
.related .button.add_to_cart_button {
    display: block !important;
    background: var(--blc-dark) !important;
    color: #fff !important;
    border-radius: 0 !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.13em !important;
    text-transform: uppercase !important;
    padding: 0.6rem 1.4rem !important;
    margin-top: 0.75rem !important;
    text-align: center !important;
    transition: background 0.2s !important;
    width: 100% !important;
    box-shadow: none !important;
}
.related .button.add_to_cart_button:hover {
    background: var(--blc-blue) !important;
}



















/* ═══════════════════════════════════════════════════
   PÁGINA WISHLIST — YITH
   ═══════════════════════════════════════════════════ */

/* ─── TÍTULO ─── */
.wishlist-title h2 {
    font-family: var(--blc-serif) !important;
    font-size: clamp(1.4rem, 3vw, 2rem) !important;
    font-weight: 400 !important;
    color: var(--blc-dark) !important;
}

/* ─── TABLA ─── */
.wishlist_table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-family: var(--blc-sans) !important;
}

.wishlist_table thead tr {
    border-top: 1px solid #e0ddd8 !important;
    border-bottom: 1px solid #e0ddd8 !important;
}

.wishlist_table thead th {
    font-size: 0.85rem !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: #999 !important;
    font-weight: 500 !important;
    padding: 12px 16px 12px 0 !important;
}

.wishlist_table tbody tr {
    border-bottom: 1px solid #e0ddd8 !important;
}

.wishlist_table tbody td {
    padding: 28px 16px 28px 0 !important;
    vertical-align: middle !important;
}

/* ─── IMAGEN ─── */
.wishlist_table .product-thumbnail {
    width: 120px !important;
    padding-right: 28px !important;
}

.wishlist_table .product-thumbnail img {
    width: 120px !important;
    aspect-ratio: 3 / 4 !important;
    height: auto !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
}

/* ─── NOMBRE ─── */
.wishlist_table .product-name a {
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: var(--blc-dark) !important;
    text-decoration: none !important;
    letter-spacing: 0.02em !important;
    transition: color 0.2s !important;
}

.wishlist_table .product-name a:hover { color: var(--blc-blue) !important; }

/* ─── PRECIO ─── */
.wishlist_table .product-price {
    font-size: 0.95rem !important;
    color: var(--blc-mid) !important;
}

/* ─── STOCK ─── */
.wishlist_table .wishlist-in-stock {
    font-size: 0.90rem !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: #4caf50 !important;
}

.wishlist_table .wishlist-out-of-stock {
    font-size: 0.68rem !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: #999 !important;
}

/* ─── BOTÓN AÑADIR AL CARRITO ─── */
.wishlist_table .add_to_cart_button {
    display: inline-block !important;
    background: var(--blc-blue) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    font-family: var(--blc-sans) !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.13em !important;
    text-transform: uppercase !important;
    padding: 0.75rem 1.4rem !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    white-space: nowrap !important;
}

.wishlist_table .add_to_cart_button:hover {
    background: var(--blc-dark) !important;
    color: #fff !important;
}

/* ─── BOTÓN ELIMINAR ─── */
.wishlist_table .product-remove {
    width: 40px !important;
}

.wishlist_table .product-remove a {
    font-size: 1.10rem !important;
    color: #ccc !important;
    text-decoration: none !important;
    display: block !important;
    text-align: center !important;
    transition: color 0.2s !important;
	  margin-left: 50px;
	margin-right: 10px;
}

.wishlist_table .product-remove a:hover { color: var(--blc-dark) !important; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {

    .wishlist_table thead { display: none !important; }

    .wishlist_table tbody tr {
        display: block !important;
        padding: 24px 0 !important;
        border-bottom: 1px solid #e0ddd8 !important;
        text-align: center !important;
    }

    .wishlist_table tbody td {
        display: block !important;
        padding: 6px 0 !important;
        border: none !important;
        width: 100% !important;
        text-align: center !important;
    }

    .wishlist_table .product-thumbnail {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        padding-right: 0 !important;
    }

    .wishlist_table .product-thumbnail img {
        width: 180px !important;
        margin: 0 auto 16px !important;
    }

    .wishlist_table .product-name a {
        font-size: 1.05rem !important;
    }

    .wishlist_table .product-price {
        font-size: 1rem !important;
    }

    .wishlist_table .product-remove {
        width: 87% !important;
        float: none !important;
        text-align: center !important;
    }
	
.wishlist_table .product-stock-status
    {
        width: 100% !important;
        float: none !important;
        text-align: center !important;
    }

    .wishlist_table .add_to_cart_button {
        display: block !important;
        width: 80% !important;
        text-align: center !important;
        margin-top: 8px !important;
        box-sizing: border-box !important;
    }
}














/* ═══════════════════════════════════════════════════
   CARRITO — WooCommerce Blocks
   ═══════════════════════════════════════════════════ */



/* ─── TABLA CABECERA ─── */
.wc-block-cart-items__header {
    border-bottom: 1px solid #e0ddd8 !important;
}

.wc-block-cart-items__header th {
    font-family: var(--blc-sans) !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: #999 !important;
    font-weight: 500 !important;
    padding: 12px 16px 12px 0 !important;
}

/* ─── FILAS ─── */
.wc-block-cart-items__row {
    border-bottom: 1px solid #e0ddd8 !important;
}

.wc-block-cart-items__row td {
    padding: 24px 16px 24px 0 !important;
    vertical-align: middle !important;
}

/* ─── IMAGEN ─── */
.wc-block-cart-item__image img {
    width: 100px !important;
    aspect-ratio: 3 / 4 !important;
    height: auto !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
}

.wc-block-cart-item__image a {
    display: block !important;
}

/* ─── NOMBRE ─── */
.wc-block-components-product-name {
    font-family: var(--blc-sans) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: var(--blc-dark) !important;
    text-decoration: none !important;
    letter-spacing: 0.02em !important;
    display: block !important;
    margin-bottom: 6px !important;
    transition: color 0.2s !important;
}

.wc-block-components-product-name:hover { color: var(--blc-blue) !important; }

/* ─── PRECIO ─── */
.wc-block-cart-item__prices .wc-block-components-product-price__value,
.wc-block-cart-item__total .wc-block-components-product-price__value {
    font-family: var(--blc-sans) !important;
    font-size: 0.9rem !important;
    color: var(--blc-mid) !important;
}

/* ─── CANTIDAD ─── */
.wc-block-components-quantity-selector {
    display: flex !important;
    align-items: center !important;
    border: 1.5px solid rgba(0,0,0,0.15) !important;
    width: fit-content !important;
    margin-top: 12px !important;
    border-radius: 0 !important;
}

.wc-block-components-quantity-selector__input {
    width: 44px !important;
    height: 38px !important;
    border: none !important;
    border-left: 1.5px solid rgba(0,0,0,0.15) !important;
    border-right: 1.5px solid rgba(0,0,0,0.15) !important;
    text-align: center !important;
    font-family: var(--blc-sans) !important;
    font-size: 0.85rem !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    -moz-appearance: textfield !important;
}

.wc-block-components-quantity-selector__button {
    width: 36px !important;
    height: 38px !important;
    background: transparent !important;
    border: none !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    color: var(--blc-dark) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.2s !important;
}

.wc-block-components-quantity-selector__button:hover:not(:disabled) {
    color: var(--blc-blue) !important;
}

.wc-block-components-quantity-selector__button:disabled {
    color: #ccc !important;
    cursor: default !important;
}

/* ─── BOTÓN ELIMINAR ─── */
.wc-block-cart-item__remove-link {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-top: 10px !important;
    cursor: pointer !important;
    color: #ccc !important;
    display: flex !important;
    align-items: center !important;
    transition: color 0.2s !important;
}

.wc-block-cart-item__remove-link:hover { color: var(--blc-dark) !important; }
.wc-block-cart-item__remove-link svg { width: 18px !important; height: 18px !important; }

/* ─── SIDEBAR TOTALES ─── */
.wp-block-woocommerce-cart-order-summary-heading-block {
    font-family: var(--blc-serif) !important;
    font-size: clamp(1.2rem, 2vw, 1.6rem) !important;
    font-weight: 400 !important;
    color: var(--blc-dark) !important;
    margin-bottom: 1.5rem !important;
}

.wc-block-components-totals-wrapper {
    border-bottom: 1px solid #e0ddd8 !important;
    padding: 14px 0 !important;
}

.wc-block-components-totals-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.wc-block-components-totals-item__label {
    font-family: var(--blc-sans) !important;
    font-size: 0.85rem !important;
    color: var(--blc-mid) !important;
}

.wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item-tax-value {
    font-family: var(--blc-sans) !important;
    font-size: 0.85rem !important;
    color: var(--blc-dark) !important;
    font-weight: 500 !important;
}

/* ─── TOTAL FINAL ─── */
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: var(--blc-dark) !important;
}

.wc-block-components-totals-footer-item-tax-value {
    font-size: 1rem !important;
}

/* ─── CUPÓN ─── */
.wc-block-components-totals-coupon .wc-block-components-panel__button {
    font-family: var(--blc-sans) !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: var(--blc-mid) !important;
    cursor: pointer !important;
    transition: color 0.2s !important;
}

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

/* ─── BOTÓN CHECKOUT ─── */
.wc-block-cart__submit-button {
    background: var(--blc-blue) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    font-family: var(--blc-sans) !important;
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    padding: 1rem 2rem !important;
    width: 100% !important;
    text-align: center !important;
    text-decoration: none !important;
    display: block !important;
    transition: background 0.2s !important;
    cursor: pointer !important;
}

.wc-block-cart__submit-button:hover {
    background: var(--blc-blue-hover) !important;
    color: #fff !important;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {

    .wc-block-cart {
        gap: 32px !important;
    }

    .wc-block-cart-item__image img {
        width: 80px !important;
    }

    .wc-block-cart-items__row td {
        padding: 16px 8px 16px 0 !important;
    }
}























/* ═══════════════════════════════════════════════════
   CHECKOUT — WooCommerce Blocks
   ═══════════════════════════════════════════════════ */



/* ─── TÍTULOS DE SECCIÓN ─── */
.wc-block-components-checkout-step__title {
    font-family: var(--blc-serif) !important;
    font-size: clamp(1.1rem, 2vw, 1.4rem) !important;
    font-weight: 400 !important;
    color: var(--blc-dark) !important;
 
}

/* ─── INPUTS TEXT ─── */

.wc-block-components-text-input input {
    width: 100% !important;
    height: 52px !important;
    border: 1.5px solid rgba(0,0,0,0.15) !important;
    border-radius: 0 !important;
    font-family: var(--blc-sans) !important;
    font-size: 0.9rem !important;
    color: var(--blc-dark) !important;
    background: transparent !important;
    padding: 20px 10px 5px !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.2s !important;
    box-sizing: border-box !important;
}

.wc-block-components-text-input input:focus {
    border-color: var(--blc-blue) !important;
}

.wc-block-components-text-input label {
    position: absolute !important;
    font-family: var(--blc-sans) !important;
    font-size: 0.85rem !important;
    color: #999 !important;
    pointer-events: none !important;
    transition: all 0.15s !important;
}

.wc-block-components-text-input.is-active label,
.wc-block-components-text-input input:focus + label {
    transform: none !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.08em !important;
    color: var(--blc-blue) !important;
}

/* ─── SELECTS ─── */
.wc-blocks-components-select__container {
    position: relative !important;
}

.wc-blocks-components-select__label {
    position: absolute !important;
    top: 10px !important;
    left: 12px !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.08em !important;
    color: #999 !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.wc-blocks-components-select__select {
    width: 100% !important;
    height: 52px !important;
    border: 1.5px solid rgba(0,0,0,0.15) !important;
    border-radius: 0 !important;
    font-family: var(--blc-sans) !important;
    font-size: 0.9rem !important;
    color: var(--blc-dark) !important;
    background: transparent !important;
    padding: 20px 36px 6px 12px !important;
    appearance: none !important;
    outline: none !important;
    cursor: pointer !important;
    transition: border-color 0.2s !important;
    margin-bottom: 16px !important;
}

.wc-blocks-components-select__select:focus {
    border-color: var(--blc-blue) !important;
}

.wc-blocks-components-select__expand {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
    color: #999 !important;
}

/* ─── RADIO BUTTONS (envío) ─── */
.wc-block-components-radio-control__option {
    display: flex !important;
    align-items: center !important;
    border: 1.px solid #e0ddd8 !important;
    cursor: pointer !important;
    transition: border-color 0.2s !important;
}

.wc-block-components-radio-control__option--checked-option-highlighted,
.wc-block-components-radio-control__option:hover {
    border-color: var(--blc-blue) !important;
}



.wc-block-components-radio-control__label {
    font-family: var(--blc-sans) !important;
    font-size: 0.85rem !important;
    color: var(--blc-dark) !important;
}

.wc-block-components-radio-control__secondary-label {
    font-family: var(--blc-sans) !important;
    font-size: 0.95rem !important;
    color: var(--blc-mid) !important;
    margin-left: auto !important;
}

.wc-block-checkout__shipping-option--free {
    color: #4caf50 !important;
    font-weight: 500 !important;
}

/* ─── CHECKBOXES ─── */
.wc-block-components-checkbox__input {
    accent-color: var(--blc-blue) !important;
 
}

.wc-block-components-checkbox__label {
    font-family: var(--blc-sans) !important;
    font-size: 0.82rem !important;
    color: var(--blc-mid) !important;
}

.wc-block-components-checkbox__label a {
    color: var(--blc-blue) !important;
    text-decoration: none !important;
}

/* ─── AÑADIR LÍNEA 2 ─── */
.wc-block-components-address-form__address_2-toggle {
    font-family: var(--blc-sans) !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.08em !important;
    color: var(--blc-blue) !important;
    cursor: pointer !important;
    display: block !important;
    margin-bottom: 12px !important;
}

/* ─── CUPÓN ─── */
.wc-block-components-panel__button {
    font-family: var(--blc-sans) !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: var(--blc-mid) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: color 0.2s !important;
    padding: 14px 0 !important
}

.wc-block-components-panel__button:hover { color: var(--blc-blue) !important; }

/* ─── RESUMEN SIDEBAR ─── */
.wc-block-components-checkout-order-summary__title-text {
    font-family: var(--blc-serif) !important;
    font-size: clamp(1.1rem, 2vw, 1.4rem) !important;
    font-weight: 400 !important;
    color: var(--blc-dark) !important;
}

.wc-block-components-checkout-order-summary__title-price {
    font-family: var(--blc-sans) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: var(--blc-dark) !important;
}

/* ─── ITEMS DEL RESUMEN ─── */
.wc-block-components-order-summary-item {
    display: flex !important;
    gap: 16px !important;
    padding: 16px 0 !important;
    border-top: 1px solid #e0ddd8 !important;
    align-items: center !important;
}

.wc-block-components-order-summary-item__image {
    position: relative !important;
    flex-shrink: 0 !important;
}

.wc-block-components-order-summary-item__image img {
    width: 64px !important;
    aspect-ratio: 3 / 4 !important;
    height: auto !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
}

.wc-block-components-order-summary-item__quantity {
    position: absolute !important;
    background: var(--blc-blue) !important;
    color: #fff !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: var(--blc-sans) !important;
}

.wc-block-components-order-summary-item .wc-block-components-product-name {
    font-family: var(--blc-sans) !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: var(--blc-dark) !important;
    margin-bottom: 4px !important;
}

.wc-block-components-order-summary-item .wc-block-components-product-price__value {
    font-size: 0.82rem !important;
    color: var(--blc-mid) !important;
}

.wc-block-components-order-summary-item__total-price {
    margin-left: auto !important;
    font-family: var(--blc-sans) !important;
    font-size: 0.85rem !important;
    color: var(--blc-dark) !important;
    font-weight: 500 !important;
}

/* ─── TOTALES ─── */
.wc-block-components-totals-wrapper {
    border-bottom: none !important;
    padding: 0px 0 !important;
}

/* Solo el total final tiene separador arriba */
.wc-block-components-totals-footer-item {
    
    padding-top: 12px !important;
	  padding-bottom: 10px !important;  
}

.wc-block-components-totals-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
	padding-top: 15px  !important;
}

.wc-block-components-totals-item__label {
    font-family: var(--blc-sans) !important;
    font-size: 0.95rem !important;
    color: var(--blc-mid) !important;
}

.wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item-tax-value {
    font-family: var(--blc-sans) !important;
    font-size: 0.85rem !important;
    color: var(--blc-dark) !important;
    font-weight: 500 !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--blc-dark) !important;
}

.wc-block-components-totals-footer-item-tax-value {
    font-size: 1.2rem !important;
}

/* ─── BOTÓN REALIZAR PEDIDO ─── */
.wc-block-components-checkout-place-order-button {
    background: var(--blc-blue) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    font-family: var(--blc-sans) !important;
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    padding: 1.25rem 2rem !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    width: 100% !important;
    margin-top: 16px !important;
}

.wc-block-components-checkout-place-order-button:hover {
    background: var(--blc-blue-hover) !important;
}

/* ─── VOLVER AL CARRITO ─── */
.wc-block-components-checkout-return-to-cart-button {
    font-family: var(--blc-sans) !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: var(--blc-mid) !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: color 0.2s !important;
}

.wc-block-components-checkout-return-to-cart-button:hover {
    color: var(--blc-blue) !important;
}

.wc-block-components-checkout-return-to-cart-button svg {
    width: 16px !important;
    height: 16px !important;
}

/* ─── ACCIONES ─── */
.wc-block-checkout__actions_row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin-top: 24px !important;
    padding-top: 24px !important;
    border-top: 1px solid #e0ddd8 !important;
}

/* ─── TÉRMINOS ─── */
.wc-block-checkout__terms {
    font-family: var(--blc-sans) !important;
    font-size: 0.72rem !important;
    color: var(--blc-mid) !important;
    margin-top: 16px !important;
}

.wc-block-checkout__terms a {
    color: var(--blc-blue) !important;
    text-decoration: none !important;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {

    .wc-block-checkout {
        gap: 24px !important;
    }

    .wc-block-checkout__actions_row {
        flex-direction: column-reverse !important;
		border-top: none !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .wc-block-components-checkout-place-order-button {
        width: 100% !important;
		margin-top: 0 !important;
    }

    .wc-block-components-checkout-return-to-cart-button {
        width: 100% !important;
        justify-content: center !important;
    }
}




