/*
Theme Name: LipoBlue USA
Theme URI: https://lipoblueusa.com
Description: Tema de bloques propio (Propuesta C, Corporate catalog). Sin dependencia de Elementor ni de plugins Pro. Todo es editable desde el Editor de sitio y el editor de bloques.
Author: LipoBlue USA
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lipoblue
*/

/* Componentes de la maqueta (los tokens viven en theme.json) */
:where(a){text-decoration:none}
:focus-visible{outline:3px solid var(--wp--preset--color--accent);outline-offset:2px}
.skip-link{background:var(--wp--preset--color--ink);color:#fff}

.lb-eyebrow{font-family:var(--wp--preset--font-family--franklin);font-size:13px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--wp--preset--color--accent)}
.is-style-lb-on-color .lb-eyebrow,.lb-on-color .lb-eyebrow{color:inherit;opacity:.9}
.lb-muted{color:var(--wp--preset--color--muted)}
.lb-on-color .lb-muted{color:inherit;opacity:.82}

.is-style-lb-card{background:var(--wp--preset--color--surface);border:1px solid var(--wp--preset--color--line);border-radius:2px}
.is-style-lb-card-link{background:var(--wp--preset--color--surface);border:1px solid var(--wp--preset--color--line);border-radius:2px}
.is-style-lb-tag{display:inline-block;font-family:var(--wp--preset--font-family--franklin);font-size:12px;font-weight:700;letter-spacing:.1em;padding:4px 10px;background:var(--wp--preset--color--lilac);color:var(--wp--preset--color--ink);border-radius:2px;margin:0}

/* Botones: primario (relleno) y contorno */
.wp-block-button__link{font-family:var(--wp--preset--font-family--franklin);font-weight:600;font-size:15px;letter-spacing:.04em;text-transform:uppercase;min-height:48px;display:inline-flex;align-items:center;justify-content:center;border-radius:2px}
.wp-block-button__link:hover{filter:brightness(1.12)}
.wp-block-button.is-style-outline>.wp-block-button__link{background:transparent;color:var(--wp--preset--color--ink);border:1px solid var(--wp--preset--color--ink)}
.wp-block-button.is-style-outline>.wp-block-button__link:hover{background:var(--wp--preset--color--ink);color:var(--wp--preset--color--bg);filter:none}
.lb-on-color .wp-block-button.is-style-outline>.wp-block-button__link{color:inherit;border-color:currentColor}
.lb-on-color .wp-block-button.is-style-outline>.wp-block-button__link:hover{background:#fff;color:var(--wp--preset--color--ink)}

/* Tarjetas de producto (WooCommerce Product Collection) */
.wc-block-product-template{gap:20px}
.wc-block-product-template>li{background:var(--wp--preset--color--surface);border:1px solid var(--wp--preset--color--line);border-radius:2px;overflow:hidden;display:flex;flex-direction:column;padding-bottom:18px}
.wc-block-product-template>li>*:not(.wc-block-components-product-image){padding-left:20px;padding-right:20px}
.wc-block-components-product-image{background:var(--wp--preset--color--alt);margin-bottom:12px}
.wc-block-components-product-image img{object-fit:contain}
.wc-block-product-template .wp-block-post-title{font-size:20px;line-height:1.2;margin:0 0 6px}
.wc-block-product-template .wp-block-button{margin-top:auto}
.wc-block-components-product-sale-badge{background:var(--wp--preset--color--lilac);color:var(--wp--preset--color--ink);border:0;border-radius:2px;font-family:var(--wp--preset--font-family--franklin);font-weight:700;letter-spacing:.1em;text-transform:uppercase}

/* Ficha de producto */
.wp-block-woocommerce-product-details h2,.wp-block-woocommerce-related-products h2{font-size:var(--wp--preset--font-size--title-3)}
.single-product .wp-block-post-title{overflow-wrap:anywhere}


/* Pie */
.lb-footer a{color:inherit}
.lb-footer a:hover{text-decoration:underline}

/* Acordeones y listas */
.wp-block-details{border-top:1px solid var(--wp--preset--color--line);padding:12px 0}
.wp-block-details summary{font-family:var(--wp--preset--font-family--franklin);font-weight:600;font-size:18px;cursor:pointer;min-height:44px;display:flex;align-items:center}

/* Tarjeta de entrada del blog */
.lb-post-card{background:var(--wp--preset--color--surface);border:1px solid var(--wp--preset--color--line);border-radius:2px;overflow:hidden;height:100%}

@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* ===== Carrito, checkout y mini carrito (WooCommerce blocks) ===== */
.lb-steps{display:flex;flex-wrap:wrap;gap:0;list-style:none;margin:24px 0 40px;padding:0;counter-reset:lbstep}
.lb-steps .lb-step{counter-increment:lbstep;display:flex;align-items:center;gap:10px;min-height:44px;padding:0 24px 0 0;margin:0;font-family:var(--wp--preset--font-family--franklin);font-weight:600;font-size:14px;letter-spacing:.08em;text-transform:uppercase;color:var(--wp--preset--color--muted)}
.lb-steps .lb-step::before{content:counter(lbstep);width:28px;height:28px;border-radius:50%;border:1.5px solid var(--wp--preset--color--line);display:inline-flex;align-items:center;justify-content:center;font-size:13px;background:var(--wp--preset--color--surface)}
.lb-steps .lb-step::after{content:"";width:40px;height:1px;background:var(--wp--preset--color--line);margin-left:14px}
.lb-steps .lb-step:last-child::after{display:none}
.lb-steps .lb-step.is-active{color:var(--wp--preset--color--ink)}
.lb-steps .lb-step.is-active::before{background:var(--wp--preset--color--accent);border-color:var(--wp--preset--color--accent);color:#fff}

.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout{font-family:var(--wp--preset--font-family--serif)}
.wc-block-cart__main,.wc-block-checkout__main{background:var(--wp--preset--color--surface);border:1px solid var(--wp--preset--color--line);border-radius:2px;padding:8px 28px 24px}
.wc-block-cart__sidebar,.wc-block-checkout__sidebar{background:var(--wp--preset--color--alt);border:1px solid var(--wp--preset--color--line);border-radius:2px;padding:8px 24px 24px!important;align-self:start}
.wc-block-cart table.wc-block-cart-items th{font-family:var(--wp--preset--font-family--franklin);font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--wp--preset--color--muted);border-bottom:1px solid var(--wp--preset--color--line)}
.wc-block-cart-items .wc-block-cart-items__row{border-bottom:1px solid var(--wp--preset--color--line)}
.wc-block-cart-item__image img{background:var(--wp--preset--color--alt);border-radius:2px}
.wc-block-components-product-name{font-family:var(--wp--preset--font-family--franklin);font-weight:700;font-size:18px;color:var(--wp--preset--color--ink);text-decoration:none}
.wc-block-components-product-name:hover{color:var(--wp--preset--color--accent)}
.wc-block-components-product-price,.wc-block-formatted-money-amount{font-weight:600;color:var(--wp--preset--color--ink)}
.wc-block-components-sale-badge,.wc-block-components-product-badge{background:var(--wp--preset--color--lilac);color:var(--wp--preset--color--ink);border:0;border-radius:2px;font-family:var(--wp--preset--font-family--franklin);font-weight:700;font-size:12px;letter-spacing:.1em;text-transform:uppercase}
.wc-block-components-quantity-selector{border:1px solid var(--wp--preset--color--line);border-radius:2px;background:var(--wp--preset--color--surface);min-height:44px}
.wc-block-components-quantity-selector::after{display:none}
.wc-block-components-quantity-selector__button{min-width:44px;min-height:44px;color:var(--wp--preset--color--ink)}
.wc-block-components-quantity-selector__input{color:var(--wp--preset--color--ink);font-weight:600}
.wc-block-cart-item__remove-link{color:var(--wp--preset--color--muted)!important;font-size:13px;text-decoration:underline}
.wc-block-cart-item__remove-link:hover{color:var(--wp--preset--color--accent)!important}
.wc-block-cart__totals-title,.wc-block-components-title{font-family:var(--wp--preset--font-family--franklin);font-size:13px!important;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--wp--preset--color--accent)}
.wc-block-components-totals-item__label{font-family:var(--wp--preset--font-family--franklin);font-weight:600}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value{font-family:var(--wp--preset--font-family--franklin);font-weight:700;font-size:24px;color:var(--wp--preset--color--ink)}
.wc-block-components-totals-wrapper{border-color:var(--wp--preset--color--line)!important}
.wc-block-components-button:not(.is-link){background:var(--wp--preset--color--accent);color:#fff;border:1px solid var(--wp--preset--color--accent);border-radius:2px;min-height:48px;font-family:var(--wp--preset--font-family--franklin);font-weight:600;font-size:15px;letter-spacing:.04em;text-transform:uppercase}
.wc-block-components-button:not(.is-link):hover{filter:brightness(1.12);background:var(--wp--preset--color--accent);color:#fff}
.wc-block-components-button.outlined:not(.is-link){background:transparent;color:var(--wp--preset--color--ink);border-color:var(--wp--preset--color--ink)}
.wc-block-cart__submit-button{width:100%}
.wc-block-components-text-input input,.wc-block-components-select select,.wc-block-components-textarea,.wc-block-components-country-input select,.wc-block-components-state-input select{border:1px solid var(--wp--preset--color--line)!important;border-radius:2px!important;background:var(--wp--preset--color--surface)!important;color:var(--wp--preset--color--ink)!important;min-height:48px}
.wc-block-components-text-input input:focus,.wc-block-components-select select:focus{outline:3px solid var(--wp--preset--color--accent);outline-offset:2px}
.wc-block-components-text-input label,.wc-block-components-select label{color:var(--wp--preset--color--muted)!important}
.wc-block-components-checkbox .wc-block-components-checkbox__input:checked{background:var(--wp--preset--color--accent);border-color:var(--wp--preset--color--accent)}
.wc-block-components-radio-control__option-checked{border-color:var(--wp--preset--color--accent)!important}
.wc-block-components-notice-banner{border-radius:2px}
.wc-block-components-totals-coupon__button,.wc-block-components-panel__button{font-family:var(--wp--preset--font-family--franklin);font-weight:600}
.wp-block-woocommerce-empty-cart-block{text-align:center;padding:56px 0}
.wp-block-woocommerce-empty-cart-block h2{font-size:var(--wp--preset--font-size--title-3)}

@media (max-width:700px){.wc-block-cart__main,.wc-block-checkout__main{padding:8px 16px 16px}.lb-steps .lb-step::after{width:16px}.lb-steps .lb-step{padding-right:12px;font-size:12px}}
.wp-block-woocommerce-cart .wc-block-components-product-name,.wp-block-woocommerce-checkout .wc-block-components-product-name,.wc-block-mini-cart__drawer .wc-block-components-product-name{font-family:var(--wp--preset--font-family--franklin);font-weight:700;font-size:18px;color:var(--wp--preset--color--ink)}
.wc-block-components-product-metadata__description{display:none}
.wc-block-cart__main .wc-block-cart-items__row .wc-block-cart-item__prices{font-size:14px;color:var(--wp--preset--color--muted)}
.wc-block-cart__main .wc-block-cart-item__total .wc-block-components-product-price{font-family:var(--wp--preset--font-family--franklin);font-weight:700;font-size:18px}
.wp-block-woocommerce-cart-cross-sells-block h2,.wp-block-woocommerce-cart-cross-sells-block .wp-block-heading{font-family:var(--wp--preset--font-family--franklin);font-size:13px!important;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--wp--preset--color--accent);margin:32px 0 16px}
.wp-block-woocommerce-cart-cross-sells-block .wc-block-grid__product-title,.wp-block-woocommerce-cart-cross-sells-block .wc-block-components-product-name{font-family:var(--wp--preset--font-family--franklin);font-weight:700;font-size:16px;color:var(--wp--preset--color--ink)}
.wp-block-woocommerce-cart-cross-sells-block .wc-block-grid__product-image img{background:var(--wp--preset--color--alt);border-radius:2px}
.wp-block-woocommerce-cart-cross-sells-block .wp-block-button__link,.wp-block-woocommerce-cart-cross-sells-block .wc-block-components-product-button__button{background:transparent;color:var(--wp--preset--color--ink);border:1px solid var(--wp--preset--color--ink);font-size:13px}
.wp-block-woocommerce-cart-cross-sells-block .wp-block-button__link:hover{background:var(--wp--preset--color--ink);color:var(--wp--preset--color--bg)}

/* Pie: lista de categorías */
.lb-footer .wc-block-product-categories-list{list-style:none;margin:0;padding:0;font-size:14px}
.lb-footer .wc-block-product-categories-list li{padding:6px 0;margin:0}
.lb-footer .wc-block-product-categories-list a{color:inherit}

/* Accesibilidad (WCAG 2.2): áreas táctiles, contraste y enlaces dentro de texto */
.lb-footer .wc-block-product-categories-list a,.lb-footer li a{display:inline-block;min-height:24px;padding:2px 0}
p a:not(.wp-block-button__link):not(.lb-keep),.wp-block-woocommerce-breadcrumbs a,.woocommerce-breadcrumb a{text-decoration:underline;text-underline-offset:2px}
.onsale,.wc-block-components-product-sale-badge{background:var(--wp--preset--color--lilac)!important;color:var(--wp--preset--color--ink)!important;border-radius:2px;font-family:var(--wp--preset--font-family--franklin);font-weight:700;letter-spacing:.1em;text-transform:uppercase;min-height:0;line-height:1.4;padding:4px 10px}
.price,.price bdi,.wc-block-components-product-price,.wc-block-components-product-price bdi,.wc-block-components-product-price ins{color:var(--wp--preset--color--ink)!important;opacity:1}
.price del,.price del bdi,.wc-block-components-product-price del,.wc-block-components-product-price del bdi{color:var(--wp--preset--color--muted)!important}
.lb-footer p a{color:inherit}



/* Crédito del footer */
.lb-footer-bottom{align-items:center}
.lb-credit{letter-spacing:.04em;opacity:.85;font-family:var(--wp--preset--font-family--franklin)}
.lb-credit a{font-weight:600;letter-spacing:.14em;text-transform:uppercase;text-decoration:none!important;border-bottom:1px solid currentColor;padding-bottom:1px;transition:opacity .2s}
.lb-credit a:hover{opacity:.75;text-decoration:none!important}
.lb-credit:hover{opacity:1}

/* Sellos de confianza (patrón lipoblue/trust-badges) */
.lb-trust{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:8px;color:var(--wp--preset--color--muted)}
.lb-trust li{position:relative;padding-left:26px;margin:0}
.lb-trust li::before{content:"";position:absolute;left:0;top:.35em;width:16px;height:16px;background:var(--wp--preset--color--accent);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='M4 12l5 5L20 6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='M4 12l5 5L20 6'/%3E%3C/svg%3E") center/contain no-repeat}

/* Tarjetas de producto: "Add to cart" en contorno y "Buy now" como botón principal */
.wc-block-product-template .wp-block-button__link{background:transparent;color:var(--wp--preset--color--ink);border:1px solid var(--wp--preset--color--ink)}
.wc-block-product-template .wp-block-button__link:hover{background:var(--wp--preset--color--ink);color:var(--wp--preset--color--bg);filter:none}
.wc-block-product-template>li>.lb-buy-now.lb-buy-now{display:flex;align-items:center;justify-content:center;min-height:44px;margin:8px 20px 0;padding:0 18px;box-sizing:border-box;background:var(--wp--preset--color--accent);color:#fff;border:1px solid var(--wp--preset--color--accent);border-radius:2px;font-family:var(--wp--preset--font-family--franklin);font-weight:600;font-size:15px;letter-spacing:.04em;text-transform:uppercase;text-decoration:none;cursor:pointer}
.wc-block-product-template>li>.lb-buy-now.lb-buy-now:hover{filter:brightness(1.12);text-decoration:none}
.wc-block-product-template>li>.lb-buy-now.lb-buy-now:focus-visible{outline:3px solid var(--wp--preset--color--accent);outline-offset:2px}
.wc-block-product-template>li>.lb-buy-now.is-loading{opacity:.6;pointer-events:none}

/* !important justificado: WooCommerce define el borde del botón con estilos de bloque */
.wc-block-product-template .wc-block-components-product-button__button{border:1px solid var(--wp--preset--color--ink)!important;background:transparent!important;color:var(--wp--preset--color--ink)!important;min-height:44px}
.wc-block-product-template .wc-block-components-product-button__button:hover{background:var(--wp--preset--color--ink)!important;color:var(--wp--preset--color--bg)!important}

/* Barra de compra fija: ancho completo aunque el <main> sea un layout constrained */
.is-layout-constrained>.lb-sticky-buy.lb-sticky-buy{max-width:none;margin-left:0;margin-right:0}
