/* =====================================================================
   Tienda WooCommerce - Theme Juan Alberto Echeverry
   Variables (--shop-*) editables desde Opciones del tema > Tienda.
   ===================================================================== */

.jae-woo{padding:var(--shop-pt,50px) 0 var(--shop-pb,100px)}
.jae-woo .jae-container{max-width:calc(var(--jae-container) + 80px)}
.woocommerce-cart .jae-main .jae-container,.woocommerce-checkout .jae-main .jae-container,.woocommerce-account .jae-main .jae-container{max-width:calc(var(--jae-container) + 80px)}

/* ---------- Migas y avisos ---------- */
.woocommerce-breadcrumb{font-size:12.5px;color:#8b867b;margin:0 0 26px!important;letter-spacing:.02em}
.woocommerce-breadcrumb a{color:#5d584f}.woocommerce-breadcrumb a:hover{color:var(--jae-accent)}
.woocommerce-notices-wrapper{grid-column:1/-1}
.woocommerce-message,.woocommerce-info,.woocommerce-error,.woocommerce-noreviews,p.no-comments{list-style:none;margin:0 0 24px!important;padding:16px 20px 16px 22px!important;background:var(--jae-cream)!important;border:0!important;border-left:3px solid var(--jae-accent)!important;border-radius:6px;color:var(--jae-text);font-size:.95em;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.woocommerce-message::before,.woocommerce-info::before,.woocommerce-error::before{display:none!important}
.woocommerce-error{border-left-color:#b3382c!important;background:#fbf0ee!important}
.woocommerce-message .button,.woocommerce-info .button{order:2}

/* ---------- Botones ---------- */
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt,.woocommerce a.added_to_cart,.wc-block-components-button:not(.is-link),.woocommerce .jae-buy-now{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--shop-btn)!important;color:var(--shop-btn-color)!important;border:1px solid var(--shop-btn)!important;border-radius:var(--shop-btn-radius)!important;font-family:var(--jae-font-body);font-size:13.5px!important;font-weight:600!important;letter-spacing:.01em;text-transform:none!important;line-height:1.2;padding:13px 26px!important;cursor:pointer;transition:.2s ease;box-shadow:none;text-shadow:none}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover,.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover,.woocommerce a.added_to_cart:hover,.woocommerce .jae-buy-now:hover{filter:brightness(1.18);transform:translateY(-1px)}
.woocommerce a.button.loading::after,.woocommerce button.button.loading::after{position:static;margin-left:6px}
.woocommerce a.button.disabled,.woocommerce button.button.disabled,.woocommerce button.button:disabled{opacity:.45!important;cursor:not-allowed}

.woocommerce a.button.product_type_variable::before{content:none}
.woocommerce a.added_to_cart{margin-top:8px;background:transparent!important;color:var(--shop-btn)!important}
.woocommerce .jae-buy-now{background:transparent!important;color:var(--shop-btn)!important;border:1px solid var(--shop-btn)!important;flex:1 1 100%;padding:14px 26px!important}
.woocommerce .jae-buy-now:hover{background:var(--shop-btn)!important;color:var(--shop-btn-color)!important;filter:none}

/* ---------- Catálogo: encabezado y estructura ---------- */
.jae-shop-head{margin:0 0 34px}
.woocommerce-products-header__title,.jae-shop-head h1{font-size:clamp(32px,4vw,52px);margin:0 0 .25em}
.jae-shop-head .term-description,.jae-shop-head .page-description{max-width:60ch;opacity:.8}
.jae-shop{display:block}
.jae-shop.has-sidebar{display:grid;grid-template-columns:270px minmax(0,1fr);gap:40px;align-items:start}
.jae-shop-main{min-width:0}

/* Barra de filtros (tarjetas) */
.jae-shop-side{position:sticky;top:90px;display:flex;flex-direction:column;gap:16px}
.admin-bar .jae-shop-side{top:122px}
.jae-shop-side .widget{border:1px solid #e6e1d7;border-radius:14px;padding:22px 24px;background:#fff;margin:0}
.jae-shop-side .widget-title,.jae-shop-side .widgettitle{font-family:var(--jae-font-heading);font-size:1.45em;font-weight:500;margin:0 0 16px;color:#1f1f1d}
.jae-shop-side ul{list-style:none;margin:0;padding:0}
.jae-shop-side .product-categories li{display:flex;flex-wrap:wrap;align-items:center;gap:0 10px;padding:7px 0;font-size:.92em}
.jae-shop-side .product-categories li>a{display:flex;align-items:center;gap:12px;flex:1;color:#1f1f1d}
.jae-shop-side .product-categories li>a::before{content:"";width:16px;height:16px;border:1px solid #cfc9bd;border-radius:3px;flex:none;transition:.15s}
.jae-shop-side .product-categories li>a:hover{color:var(--jae-accent)}
.jae-shop-side .product-categories li>a:hover::before,.jae-shop-side .product-categories .current-cat>a::before{border-color:var(--jae-accent);background:var(--jae-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.500l2.500 2.500L12 5.500' fill='none' stroke='%23fff' stroke-width='1.800'/%3E%3C/svg%3E") center/100% no-repeat}
.jae-shop-side .product-categories .count{color:#9a948a;font-size:.92em;background:none;padding:0}
.jae-shop-side .product-categories ul.children{flex-basis:100%;padding-left:28px;margin-top:4px}
.jae-shop-side .widget_layered_nav li{display:flex;justify-content:space-between;padding:7px 0;font-size:.92em}
.jae-shop-side .widget_layered_nav li a{color:#1f1f1d}.jae-shop-side .count{color:#9a948a}

/* Filtro de precio */
.jae-shop-side .price_slider_wrapper{padding-top:6px}
.jae-shop-side .ui-slider{position:relative;height:4px;background:#e6e1d7;border-radius:3px;margin:8px 8px 22px}
.jae-shop-side .ui-slider .ui-slider-range{position:absolute;height:100%;background:var(--shop-btn);border-radius:3px}
.jae-shop-side .ui-slider .ui-slider-handle{position:absolute;top:50%;width:18px;height:18px;margin:-9px 0 0 -9px;background:#fff;border:2px solid var(--shop-btn);border-radius:50%;cursor:pointer;outline:0;z-index:2}
.jae-shop-side .price_slider_amount{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.88em}
.jae-shop-side .price_slider_amount .button{padding:9px 18px!important;font-size:12.5px!important}
.jae-shop-side .price_label{color:#5d584f}

/* Barra superior: resultados + orden */
.jae-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 28px}
.jae-toolbar .woocommerce-result-count{margin:0;font-size:.95em;color:#4b473f;float:none;flex:1;text-align:center}
.jae-toolbar .woocommerce-ordering{margin:0;float:none}
.jae-toolbar select.orderby,.woocommerce-ordering select{appearance:none;-webkit-appearance:none;border:1px solid #e0dbd0;border-radius:40px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.500l5 5 5-5' fill='none' stroke='%23555' stroke-width='1.600'/%3E%3C/svg%3E") right 18px center/11px no-repeat;padding:11px 44px 11px 20px;font:inherit;font-size:.92em;color:#1f1f1d;cursor:pointer}
.jae-filter-toggle{display:none;border:1px solid #e0dbd0;background:#fff;border-radius:40px;padding:11px 20px;font:inherit;font-size:.92em;cursor:pointer}
.jae-toolbar:not(:has(.woocommerce-result-count)) {justify-content:flex-end}

/* ---------- Rejilla y tarjetas de libro ---------- */
.woocommerce ul.products,.woocommerce-page ul.products{display:grid!important;grid-template-columns:repeat(var(--shop-cols,3),minmax(0,1fr));gap:26px 24px;margin:0!important;padding:0;list-style:none}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none!important}
.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{position:relative;display:flex;flex-direction:column;width:auto!important;margin:0!important;float:none!important;padding:14px 14px 18px;text-align:center;border:1px solid transparent;border-radius:16px;background:#fff;transition:box-shadow .25s,border-color .25s,transform .25s}
.woocommerce ul.products li.product:hover{border-color:#e6e1d7;box-shadow:0 14px 34px rgba(30,32,30,.1)}
.woocommerce ul.products li.product>a.woocommerce-LoopProduct-link{display:flex;flex-direction:column;flex:1;color:inherit}
.jae-card-media{position:relative;margin-bottom:34px;aspect-ratio:2/3;width:100%;overflow:visible}
.woocommerce ul.products li.product a img{position:absolute!important;inset:0;width:100%!important;height:100%!important;max-width:100%!important;aspect-ratio:auto;object-fit:contain;object-position:center bottom;margin:0!important;border-radius:var(--shop-radius,6px);box-shadow:none;filter:drop-shadow(0 10px 12px rgba(0,0,0,.2));transition:transform .3s}
.woocommerce ul.products li.product:hover a img{transform:translateY(-3px)}
.jae-rating-pill{position:absolute;left:50%;bottom:0;transform:translate(-50%,50%);display:inline-flex;align-items:center;gap:6px;background:#fff;border-radius:40px;padding:4px 12px;box-shadow:0 2px 10px rgba(0,0,0,.08);font-size:11px;line-height:1;white-space:nowrap;color:#2a2a28}
.jae-rating-pill .star-rating{margin:0;float:none;font-size:11px;width:5.4em;height:1em;line-height:1}
.woocommerce .star-rating::before{color:#d8d2c6}
.woocommerce .star-rating span::before{color:#d6a53a}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-family:var(--jae-font-heading);font-size:1.28em!important;font-weight:500;line-height:1.2;padding:0!important;margin:0 0 6px;color:#1f1f1d}
.jae-card-author{display:block;font-size:12px;letter-spacing:.03em;color:#8b867b;margin:0 0 8px}
.woocommerce ul.products li.product .price{display:block;color:var(--shop-price)!important;font-weight:700;font-size:1.05em;margin:2px 0 14px}
.woocommerce ul.products li.product .price del{opacity:.5;font-weight:400;margin-right:6px}
.woocommerce ul.products li.product .price ins{text-decoration:none}
.woocommerce ul.products li.product .button{margin-top:auto;width:100%}
.woocommerce span.onsale{position:absolute;top:12px;left:12px;right:auto;z-index:3;background:var(--shop-btn);color:var(--shop-btn-color);border-radius:40px;min-height:0;min-width:0;line-height:1;padding:7px 12px;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;margin:0}

/* Paginación */
.woocommerce nav.woocommerce-pagination{margin-top:44px;text-align:center}
.woocommerce nav.woocommerce-pagination ul{display:inline-flex;gap:8px;border:0!important;margin:0}
.woocommerce nav.woocommerce-pagination ul li{border:0!important;float:none;overflow:visible}
.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{display:grid;place-items:center;min-width:42px;height:42px;padding:0 12px;border:1px solid #e0dbd0;border-radius:40px;background:#fff;color:#1f1f1d;font-size:.92em}
.woocommerce nav.woocommerce-pagination ul li span.current,.woocommerce nav.woocommerce-pagination ul li a:hover{background:var(--shop-btn);border-color:var(--shop-btn);color:var(--shop-btn-color)}

/* ---------- Ficha de producto ---------- */
.woocommerce div.product{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);gap:0 56px;align-items:start;position:relative}
.woocommerce div.product>.woocommerce-tabs,.woocommerce div.product>.related,.woocommerce div.product>.upsells,.woocommerce div.product>.up-sells,.woocommerce div.product>.woocommerce-notices-wrapper{grid-column:1/-1}
.woocommerce div.product div.images,.woocommerce div.product div.summary{float:none!important;width:100%!important;margin:0!important}

/* Galería con miniaturas a la izquierda */
.woocommerce div.product div.images.woocommerce-product-gallery{position:relative;display:flex;flex-direction:row-reverse;align-items:flex-start;gap:16px}
.woocommerce div.product div.images .flex-viewport,.woocommerce div.product div.images>.woocommerce-product-gallery__wrapper{flex:1;min-width:0;border-radius:var(--shop-radius,6px);overflow:hidden}
.woocommerce div.product div.images .woocommerce-product-gallery__image a{display:block;text-align:center}
.woocommerce div.product div.images .woocommerce-product-gallery__image img{width:auto!important;max-width:100%;max-height:640px;margin:0 auto;border-radius:var(--shop-radius,6px);box-shadow:0 14px 36px rgba(0,0,0,.18)}
.woocommerce div.product div.images .flex-control-thumbs{display:flex;flex-direction:column;gap:12px;width:84px;flex:none;margin:0;padding:0;list-style:none}
.woocommerce div.product div.images .flex-control-thumbs li{width:100%!important;float:none!important;margin:0;aspect-ratio:2/3;display:flex;align-items:center;justify-content:center;background:var(--jae-cream);border-radius:6px;overflow:hidden}
.woocommerce div.product div.images .flex-control-thumbs img{width:auto!important;height:100%!important;max-width:100%;aspect-ratio:auto;object-fit:contain;border-radius:4px;opacity:.55;cursor:pointer;transition:.2s;border:2px solid transparent;box-shadow:none}
.woocommerce div.product div.images .flex-control-thumbs img:hover,.woocommerce div.product div.images .flex-control-thumbs img.flex-active{opacity:1;border-color:var(--jae-accent)}
.woocommerce div.product div.images .woocommerce-product-gallery__trigger{position:absolute;top:12px;right:12px;z-index:5;width:38px;height:38px;border-radius:50%;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.15);display:grid;place-items:center;text-indent:0}
.woocommerce div.product div.images .woocommerce-product-gallery__trigger::before{border-color:#222!important}
.woocommerce div.product div.images .woocommerce-product-gallery__trigger::after{background:#222!important}
.woocommerce div.product div.images .onsale{top:12px;left:112px}

/* Resumen */
.woocommerce div.product div.summary{position:relative;padding-top:4px}
.jae-prevnext{position:absolute;top:2px;right:0;display:flex;gap:18px;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#5d584f}
.jae-prevnext a:hover{color:var(--jae-accent)}
.jae-stock{display:inline-block;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;padding:5px 12px;border-radius:40px;margin-bottom:18px}
.jae-stock.is-in{background:#e2f1e4;color:#2b6a33}
.jae-stock.is-out{background:#f7e1de;color:#9b3328}
.woocommerce div.product .product_title{font-family:var(--jae-font-heading);font-size:clamp(32px,4vw,52px);font-weight:500;line-height:1.08;margin:0 0 14px}
.jae-product-byline{display:flex;align-items:center;flex-wrap:wrap;gap:6px 18px;padding-bottom:20px;border-bottom:1px solid #e6e1d7;font-size:13px;color:#2a2a28}
.jae-byline-author small{color:#8b867b;font-weight:600;font-size:12px}
.jae-byline-rating{display:inline-flex;align-items:center;gap:8px;padding-left:18px;border-left:1px solid #ddd8cc}
.jae-byline-rating .star-rating{margin:0;float:none;font-size:13px}
.jae-reviews-link{font-size:12px;color:#5d584f}
.woocommerce div.product p.price,.woocommerce div.product span.price{display:block;color:var(--shop-price)!important;font-size:1.7em;font-weight:700;margin:20px 0 14px}
.woocommerce div.product p.price del{opacity:.45;font-weight:400;font-size:.75em;margin-right:8px}
.woocommerce div.product p.price ins{text-decoration:none}
.woocommerce-product-details__short-description{font-size:.97em;line-height:1.75;color:#4b473f;padding:4px 0 22px;border-bottom:1px solid #e6e1d7;margin-bottom:22px}
.woocommerce-product-details__short-description p:last-child{margin:0}

/* Formulario de compra */
.woocommerce div.product form.cart{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:0 0 22px}
.woocommerce div.product form.cart .quantity{display:inline-flex;align-items:center;background:var(--jae-cream);border-radius:40px;padding:0 6px;height:46px}
.woocommerce .quantity .qty{width:44px;border:0;background:transparent;text-align:center;font-weight:600;font-size:14px;padding:0;height:100%;-moz-appearance:textfield;appearance:textfield}
.woocommerce .quantity .qty::-webkit-outer-spin-button,.woocommerce .quantity .qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.jae-qty-btn{width:34px;height:34px;border:0;background:transparent;border-radius:50%;font-size:18px;line-height:1;cursor:pointer;color:#2a2a28}
.jae-qty-btn:hover{background:rgba(0,0,0,.07)}
.woocommerce div.product form.cart .single_add_to_cart_button{flex:1;min-width:180px;height:46px;padding:0 28px!important}
.woocommerce div.product form.cart .single_add_to_cart_button::before{content:"+";font-size:1.3em}
.woocommerce div.product form.cart.variations_form{display:block}
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.woocommerce div.product form.cart table.variations{width:100%;margin:0 0 16px;border:0}
.woocommerce div.product form.cart table.variations td,.woocommerce div.product form.cart table.variations th{display:block;padding:0 0 8px;text-align:left}
.woocommerce div.product form.cart table.variations select{width:100%;border:1px solid #d9d5cc;border-radius:10px;padding:12px}
.woocommerce div.product .stock{font-size:.9em;color:#2b6a33;margin:0 0 14px}
.woocommerce div.product .out-of-stock{color:#9b3328}

/* Beneficios y meta */
.jae-benefits{list-style:none;margin:0 0 22px;padding:20px 0 0;border-top:1px solid #e6e1d7;display:flex;flex-direction:column;gap:11px;font-size:13px;color:#4b473f}
.jae-benefits li{display:flex;align-items:center;gap:12px}
.jae-benefits svg{color:var(--jae-accent);flex:none}
.woocommerce div.product .product_meta{padding-top:18px;border-top:1px solid #e6e1d7;font-size:12.5px;color:#8b867b;display:flex;flex-direction:column;gap:4px}
.woocommerce div.product .product_meta>span{display:block}
.woocommerce div.product .product_meta a{color:#1f1f1d}.woocommerce div.product .product_meta a:hover{color:var(--jae-accent)}

/* Pestañas */
.woocommerce div.product .woocommerce-tabs{margin-top:64px}
.woocommerce div.product .woocommerce-tabs ul.tabs{display:flex;gap:6px;margin:0!important;padding:0!important;list-style:none;border-bottom:1px solid #e0dbd0;overflow:visible}
.woocommerce div.product .woocommerce-tabs ul.tabs::before,.woocommerce div.product .woocommerce-tabs ul.tabs::after{display:none!important;border:0!important}
.woocommerce div.product .woocommerce-tabs ul.tabs li{margin:0!important;padding:0!important;border:1px solid transparent!important;border-bottom:0!important;border-radius:8px 8px 0 0!important;background:transparent!important;position:relative;top:1px}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,.woocommerce div.product .woocommerce-tabs ul.tabs li::after{display:none!important}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{display:block;padding:15px 30px!important;font-size:.98em;font-weight:500!important;color:#8b867b}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active{background:#fff!important;border-color:#e0dbd0!important;border-bottom:1px solid #fff!important}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:#1f1f1d!important}
.woocommerce div.product .woocommerce-tabs .panel{margin:0!important;padding:34px 4px 10px;font-size:.97em;line-height:1.85;color:#3d3a34}
.woocommerce div.product .woocommerce-tabs .panel>h2:first-child{display:none}
.woocommerce div.product .woocommerce-tabs .panel p{max-width:90ch}
.woocommerce table.shop_attributes{border:0;width:100%;max-width:640px}
.woocommerce table.shop_attributes th,.woocommerce table.shop_attributes td{border:0;border-bottom:1px solid #eee9de;padding:12px 8px;font-style:normal;background:none}
.woocommerce table.shop_attributes th{width:34%;color:#8b867b;font-weight:600}

/* Reseñas */
.woocommerce #reviews #comments ol.commentlist{padding:0;margin:0}
.woocommerce #reviews #comments ol.commentlist li{padding:0;margin:0 0 18px;list-style:none}
.woocommerce #reviews #comments ol.commentlist li .comment_container{display:flex;gap:16px;border:1px solid #e6e1d7;border-radius:12px;padding:18px}
.woocommerce #reviews #comments ol.commentlist li img.avatar{position:static;width:46px;height:46px;border-radius:50%;border:0;padding:0;background:none}
.woocommerce #reviews #comments ol.commentlist li .comment-text{margin:0;border:0;padding:0;flex:1}
.woocommerce #reviews #reply-title{font-family:var(--jae-font-heading);font-size:1.5em;display:block;margin-bottom:12px}
.woocommerce #review_form #respond textarea,.woocommerce #review_form #respond input[type=text],.woocommerce #review_form #respond input[type=email]{border:1px solid #d9d5cc;border-radius:10px;padding:12px;width:100%}

/* Relacionados / también te puede interesar */
.woocommerce div.product .related,.woocommerce div.product .upsells,.woocommerce div.product .up-sells{margin-top:70px;padding-top:50px;border-top:1px solid #e6e1d7}
.woocommerce div.product .related>h2,.woocommerce div.product .upsells>h2,.woocommerce div.product .up-sells>h2{font-family:var(--jae-font-heading);font-size:clamp(28px,3.2vw,42px);font-weight:500;margin:0 0 30px}
.woocommerce div.product .related ul.products,.woocommerce div.product .upsells ul.products,.woocommerce div.product .up-sells ul.products{grid-template-columns:repeat(var(--rel-cols,4),minmax(0,1fr))}

/* ---------- Carrito ---------- */
.woocommerce-cart .woocommerce{display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:0 44px;align-items:start}
.woocommerce-cart .woocommerce-cart-form{grid-column:1}
.woocommerce-cart .cart-collaterals{grid-column:2;width:100%}
.woocommerce-cart .cart-collaterals .cross-sells{display:none}
.woocommerce table.shop_table{border:0!important;border-radius:0;border-collapse:collapse;width:100%;margin:0 0 22px}
.woocommerce table.shop_table thead th{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#8b867b;font-weight:600;padding:0 12px 14px;border-bottom:1px solid #e0dbd0}
.woocommerce table.shop_table td{padding:20px 12px;border:0;border-bottom:1px solid #eee9de;vertical-align:middle}
.woocommerce-cart-form table.cart img{width:72px;border-radius:4px;box-shadow:0 4px 12px rgba(0,0,0,.15)}
.woocommerce-cart-form table.cart td.product-name a{font-family:var(--jae-font-heading);font-size:1.25em;font-weight:500;color:#1f1f1d}
.woocommerce-cart-form table.cart td.product-name a:hover{color:var(--jae-accent)}
.woocommerce-cart-form table.cart td.product-price,.woocommerce-cart-form table.cart td.product-subtotal{color:var(--shop-price);font-weight:700}
.woocommerce a.remove{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#f1ece2!important;color:#5d584f!important;font-size:16px;line-height:1;font-weight:400}
.woocommerce a.remove:hover{background:#b3382c!important;color:#fff!important}
.woocommerce-cart-form .actions{padding:22px 0 0!important}
.woocommerce-cart-form .actions .coupon{display:inline-flex;gap:10px;float:left;flex-wrap:wrap}
.woocommerce-cart-form .actions .coupon .input-text{width:200px;border:1px solid #d9d5cc;border-radius:40px;padding:12px 18px}
.woocommerce-cart-form .actions>button[name=update_cart]{float:right;background:transparent!important;color:var(--shop-btn)!important}
.woocommerce .cart-collaterals .cart_totals{float:none;width:100%;background:var(--jae-cream);border-radius:16px;padding:28px 28px 30px}
.woocommerce .cart-collaterals .cart_totals h2{font-family:var(--jae-font-heading);font-size:1.7em;font-weight:500;margin:0 0 16px}
.woocommerce .cart-collaterals .cart_totals table th{font-weight:600;font-size:.9em;color:#4b473f;padding:14px 0;border:0;border-bottom:1px solid rgba(0,0,0,.08);text-align:left;background:none}
.woocommerce .cart-collaterals .cart_totals table td{padding:14px 0;border:0;border-bottom:1px solid rgba(0,0,0,.08);text-align:right;background:none}
.woocommerce .cart-collaterals .cart_totals .order-total .amount{color:var(--shop-price);font-size:1.25em;font-weight:700}
.woocommerce .cart-collaterals .cart_totals .wc-proceed-to-checkout{padding:20px 0 0}
.woocommerce .wc-proceed-to-checkout a.checkout-button{width:100%;padding:16px 26px!important;font-size:14px!important;margin:0}
.woocommerce-cart .cart-empty{grid-column:1/-1;text-align:center;font-family:var(--jae-font-heading);font-size:1.6em;padding:50px 0 10px;background:none!important;border:0!important;display:block}
.woocommerce-cart .return-to-shop{grid-column:1/-1;text-align:center}

/* ---------- Formularios ---------- */
.woocommerce form .form-row{margin:0 0 18px;padding:0}
.woocommerce form .form-row label{display:block;font-size:12.5px;font-weight:600;letter-spacing:.02em;color:#4b473f;margin:0 0 7px;line-height:1.3}
.woocommerce form .form-row .required{color:#b3382c;text-decoration:none}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select,.woocommerce-page input[type=text],.woocommerce-page input[type=email],.woocommerce-page input[type=tel],.woocommerce-page input[type=password],.select2-container--default .select2-selection--single{width:100%;border:1px solid #d9d5cc!important;border-radius:10px!important;background:#fff;padding:13px 15px;font:inherit;font-size:.95em;color:#1f1f1d;height:auto;box-shadow:none;transition:border-color .2s,box-shadow .2s}
.select2-container--default .select2-selection--single{height:48px;display:flex;align-items:center;padding:0 10px}
.select2-container--default .select2-selection--single .select2-selection__rendered{padding-left:5px;line-height:46px;color:#1f1f1d}
.select2-container--default .select2-selection--single .select2-selection__arrow{height:46px;right:8px}
.woocommerce form .form-row input.input-text:focus,.woocommerce form .form-row textarea:focus,.woocommerce form .form-row select:focus{outline:0;border-color:var(--jae-accent)!important;box-shadow:0 0 0 3px rgba(176,141,87,.2)}
.woocommerce form .form-row.woocommerce-invalid input.input-text{border-color:#b3382c!important}
.woocommerce form.checkout_coupon,.woocommerce form.login,.woocommerce form.register{border:1px solid #e6e1d7;border-radius:14px;padding:24px;margin:0 0 24px}

/* ---------- Finalizar compra ---------- */
.woocommerce-checkout .woocommerce-form-coupon-toggle,.woocommerce-checkout .woocommerce-form-login-toggle{grid-column:1/-1}
.woocommerce form.checkout{display:grid;grid-template-columns:minmax(0,1fr) 430px;gap:0 46px;align-items:start}
.woocommerce form.checkout #customer_details{grid-column:1;grid-row:1/span 3;float:none;width:100%}
.woocommerce form.checkout .col2-set{display:block;width:100%;float:none}
.woocommerce form.checkout .col2-set .col-1,.woocommerce form.checkout .col2-set .col-2{float:none;width:100%;max-width:none;padding:0}
.woocommerce form.checkout h3,.woocommerce form.checkout #order_review_heading{font-family:var(--jae-font-heading);font-size:1.7em;font-weight:500;margin:0 0 20px}
.woocommerce form.checkout .col2-set .col-2{margin-top:10px}
.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper,.woocommerce-additional-fields__field-wrapper{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}
.woocommerce form .form-row-first,.woocommerce form .form-row-last{float:none;width:100%}
.woocommerce form .form-row-wide,.woocommerce form .notes,.woocommerce form #billing_address_1_field,.woocommerce form #billing_address_2_field{grid-column:1/-1}
.woocommerce form.checkout #order_review_heading{grid-column:2;grid-row:1;margin-bottom:14px}
.woocommerce form.checkout #order_review{grid-column:2;grid-row:2;float:none;width:100%;background:var(--jae-cream);border-radius:16px;padding:26px 26px 28px}
.woocommerce-checkout #order_review table.shop_table{margin:0 0 20px;background:none}
.woocommerce-checkout #order_review table.shop_table th,.woocommerce-checkout #order_review table.shop_table td{padding:13px 0;border-bottom:1px solid rgba(0,0,0,.08);background:none;font-size:.93em}
.woocommerce-checkout #order_review table.shop_table tfoot th{font-weight:600}
.woocommerce-checkout #order_review table.shop_table td:last-child,.woocommerce-checkout #order_review table.shop_table th:last-child{text-align:right}
.woocommerce-checkout #order_review .order-total .amount{color:var(--shop-price);font-weight:700;font-size:1.2em}
.woocommerce-checkout #payment{background:transparent;border-radius:0}
.woocommerce-checkout #payment ul.payment_methods{border:0;padding:0;margin:0 0 16px;list-style:none}
.woocommerce-checkout #payment ul.payment_methods li{background:#fff;border:1px solid #e6e1d7;border-radius:12px;padding:14px 16px;margin:0 0 10px;font-size:.93em}
.woocommerce-checkout #payment ul.payment_methods li label{font-weight:600;display:inline;margin-left:4px}
.woocommerce-checkout #payment div.payment_box{background:var(--jae-cream);color:#4b473f;border-radius:8px;margin:12px 0 0;padding:12px 14px;font-size:.88em}
.woocommerce-checkout #payment div.payment_box::before{display:none}
.woocommerce-checkout #payment .place-order{padding:6px 0 0;background:none}
.woocommerce-checkout #payment #place_order{width:100%;float:none;padding:17px 26px!important;font-size:14.5px!important}
.woocommerce-privacy-policy-text{font-size:.82em;color:#6c675d}

/* ---------- Mi cuenta ---------- */
.woocommerce-account .woocommerce{display:grid;grid-template-columns:250px minmax(0,1fr);gap:0 44px;align-items:start}
.woocommerce-account:not(.logged-in) .woocommerce{display:block}
.woocommerce-account .woocommerce-notices-wrapper{grid-column:1/-1}
.woocommerce-account .woocommerce-MyAccount-navigation,.woocommerce-account .woocommerce-MyAccount-content{float:none;width:100%}
.woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:10px;border:1px solid #e6e1d7;border-radius:14px}
.woocommerce-MyAccount-navigation li a{display:block;padding:11px 14px;border-radius:8px;font-size:.93em;color:#2a2a28}
.woocommerce-MyAccount-navigation li.is-active a,.woocommerce-MyAccount-navigation li a:hover{background:var(--jae-cream);color:#1f1f1d;font-weight:600}
.woocommerce-account .u-columns{display:grid;grid-template-columns:1fr 1fr;gap:30px}
.woocommerce-account .u-columns .u-column1,.woocommerce-account .u-columns .u-column2{float:none;width:100%}
.woocommerce-account .u-columns h2,.woocommerce-account h2{font-family:var(--jae-font-heading);font-weight:500;font-size:1.7em;margin:0 0 16px}
.woocommerce-account .addresses .col-1,.woocommerce-account .addresses .col-2{float:none;width:100%}
.woocommerce-account .addresses{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.woocommerce-order-received .woocommerce-order{max-width:760px}
ul.woocommerce-order-overview{display:flex;flex-wrap:wrap;gap:14px 36px;list-style:none;padding:22px 24px;margin:0 0 30px;background:var(--jae-cream);border-radius:14px;font-size:.9em}
ul.woocommerce-order-overview li{border:0;margin:0;padding:0;float:none;text-transform:none;font-size:.85em;color:#6c675d}
ul.woocommerce-order-overview li strong{display:block;font-size:1.15em;color:#1f1f1d;margin-top:3px}

/* ---------- Bloques de WooCommerce (carrito/pago con editor de bloques) ---------- */
.wc-block-cart,.wc-block-checkout{font-family:var(--jae-font-body)}
.wc-block-components-sidebar{background:var(--jae-cream);border-radius:16px;padding:22px!important}
.wc-block-components-text-input input,.wc-block-components-combobox .components-combobox-control input,.wc-block-components-select .wc-blocks-components-select__select{border-radius:10px!important}
.wc-block-components-product-name{font-family:var(--jae-font-heading);font-size:1.15em;color:#1f1f1d}
.wc-block-components-totals-item__value,.wc-block-components-product-price__value{color:var(--shop-price);font-weight:700}
.wc-block-cart-items__header th{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#8b867b}

/* ---------- Responsive ---------- */
@media (max-width:1100px){
  .jae-shop.has-sidebar{grid-template-columns:240px minmax(0,1fr);gap:28px}
  .woocommerce ul.products{grid-template-columns:repeat(min(var(--shop-cols,3),3),minmax(0,1fr))}
  .woocommerce div.product .related ul.products,.woocommerce div.product .upsells ul.products{grid-template-columns:repeat(min(var(--rel-cols,4),3),minmax(0,1fr))}
  .woocommerce form.checkout{grid-template-columns:minmax(0,1fr) 380px;gap:0 30px}
}
@media (max-width:900px){
  .jae-shop.has-sidebar{display:block}
  .jae-filter-toggle{display:inline-flex}
  .jae-shop-side{display:none;position:static;margin-bottom:22px}
  .jae-shop-side.is-open{display:flex}
  .woocommerce div.product{grid-template-columns:minmax(0,1fr);gap:34px 0}
  .woocommerce div.product div.images .flex-viewport,.woocommerce div.product div.images>.woocommerce-product-gallery__wrapper{width:100%;flex:none}
  .woocommerce div.product div.images .woocommerce-product-gallery__image img{max-width:100%!important}
  .woocommerce div.product div.images.woocommerce-product-gallery{flex-direction:column}
  .woocommerce div.product div.images .flex-control-thumbs{flex-direction:row;width:100%}
  .woocommerce div.product div.images .flex-control-thumbs li{width:72px!important}
  .woocommerce div.product div.images .woocommerce-product-gallery__image img{max-height:520px}
  .woocommerce div.product div.images .onsale{left:12px}
  .jae-prevnext{position:static;justify-content:flex-end;margin-bottom:10px}
  .woocommerce-cart .woocommerce,.woocommerce form.checkout,.woocommerce-account .woocommerce{display:block}
  .woocommerce form.checkout #order_review_heading{margin-top:30px}
  .woocommerce-cart .cart-collaterals{margin-top:30px}
  .woocommerce div.product .woocommerce-tabs ul.tabs{overflow-x:auto}
  .woocommerce div.product .woocommerce-tabs ul.tabs li a{padding:13px 18px!important;white-space:nowrap}
  .woocommerce-account .u-columns,.woocommerce-account .addresses{grid-template-columns:1fr}
  .woocommerce-account .woocommerce-MyAccount-navigation{margin-bottom:24px}
}
@media (max-width:680px){
  .woocommerce ul.products,.woocommerce div.product .related ul.products,.woocommerce div.product .upsells ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
  .woocommerce ul.products li.product{padding:8px 8px 14px}
  .woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:1.05em!important}
  .jae-toolbar{flex-wrap:wrap}
  .jae-toolbar .woocommerce-result-count{order:3;flex-basis:100%;text-align:left}
  .woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper{grid-template-columns:1fr}
  .woocommerce table.shop_table_responsive tr td::before{color:#8b867b;font-size:11px;letter-spacing:.1em;text-transform:uppercase}
  .woocommerce-cart-form .actions .coupon{float:none;width:100%;margin-bottom:12px}
  .woocommerce-cart-form .actions>button[name=update_cart]{float:none;width:100%}
}

/* ---------- Estrellas (no dependen de la fuente de iconos de WooCommerce) ---------- */
.woocommerce .star-rating,.star-rating{position:relative;display:inline-block;overflow:hidden;height:1em;line-height:1;width:5.4em;font-family:inherit!important;font-size:12px;letter-spacing:0;vertical-align:middle}
.woocommerce .star-rating::before,.star-rating::before{content:"★★★★★"!important;font-family:inherit!important;position:absolute;left:0;top:0;color:#d8d2c6;letter-spacing:.1em}
.woocommerce .star-rating span,.star-rating span{position:absolute;left:0;top:0;overflow:hidden;height:100%;padding-top:2em;float:left;font-size:0}
.woocommerce .star-rating span::before,.star-rating span::before{content:"★★★★★"!important;font-family:inherit!important;position:absolute;left:0;top:0;font-size:12px;color:#d6a53a;letter-spacing:.1em}
.woocommerce p.stars a{color:#d6a53a}
.woocommerce-checkout #order_review table.shop_table th,.woocommerce-checkout #order_review table.shop_table thead th{text-align:left}
.woocommerce-checkout #order_review table.shop_table thead th:last-child{text-align:right}

@media (max-width:680px){
  .woocommerce-cart-form table.cart,.woocommerce-cart-form table.cart tbody,.woocommerce-cart-form table.cart tr,.woocommerce-cart-form table.cart td{display:block;width:100%}
  .woocommerce-cart-form table.cart thead{display:none}
  .woocommerce-cart-form table.cart tr.cart_item{position:relative;display:grid;grid-template-columns:76px minmax(0,1fr);gap:4px 16px;padding:18px 0;border-bottom:1px solid #eee9de}
  .woocommerce .woocommerce-cart-form table.cart tr.cart_item td{border:0;padding:2px 0;text-align:left}
  .woocommerce-cart-form table.cart td.product-thumbnail{grid-row:1/span 4}
  .woocommerce-cart-form table.cart td.product-remove{position:absolute;top:16px;right:0;width:auto}
  .woocommerce-cart-form table.cart td.product-name{padding-right:34px!important}
  .woocommerce-cart-form table.cart td::before{display:none!important}
  .woocommerce-cart-form table.cart td.actions{padding-top:18px}
}

/* Las portadas siempre se ven completas (sin recortes) */
.woocommerce div.product div.images .woocommerce-product-gallery__image img{object-fit:contain;height:auto}
.woocommerce div.product .related ul.products li.product a img,.woocommerce div.product .upsells ul.products li.product a img{object-fit:contain}

/* Relacionados / upsells: cuadrícula estable, sin desbordes ni columnas descuadradas */
.woocommerce div.product>.related,.woocommerce div.product>.upsells,.woocommerce div.product>.up-sells,.woocommerce .related.products,.woocommerce .upsells.products{min-width:0;width:100%!important;max-width:100%!important;float:none!important;box-sizing:border-box;overflow:hidden}
.woocommerce .related ul.products,.woocommerce .upsells ul.products,.woocommerce .up-sells ul.products{width:100%!important;max-width:100%!important;box-sizing:border-box;display:grid!important}
.woocommerce .related ul.products li.product,.woocommerce .upsells ul.products li.product,.woocommerce .up-sells ul.products li.product,.woocommerce ul.products[class*="columns-"] li.product{width:100%!important;max-width:100%!important;min-width:0;margin:0!important;float:none!important;clear:none!important;box-sizing:border-box}
.woocommerce .related ul.products li.product .jae-card-media,.woocommerce ul.products li.product .jae-card-media{width:100%;min-width:0}

/* Alineación de tarjetas: solo posiciones, sin cambiar fuentes, tamaños ni colores */
.woocommerce ul.products li.product{display:flex;flex-direction:column}
.woocommerce ul.products li.product>a.woocommerce-LoopProduct-link{flex:1 1 auto}
.woocommerce ul.products li.product .woocommerce-loop-product__title{min-height:2.4em}
.woocommerce ul.products li.product .price{margin-top:auto}
.woocommerce ul.products li.product .button{margin-top:auto}
.woocommerce ul.products li.product .jae-card-media img.woocommerce-placeholder{object-fit:cover;filter:none}
