/* ==========================================================================
   La66 · Estilos de WooCommerce sobre los tokens de la66.css (papel y ámbar)
   Reemplaza woocommerce-general (se desactiva en inc/woocommerce.php).
   Contraste: mismas parejas de color ya validadas en la66.css.
   ========================================================================== */
.tienda{padding-block:var(--e5) var(--e7)}
.tienda .woocommerce-products-header__title,.tienda h1.page-title{font-size:var(--t-3xl);margin-bottom:var(--e4)}
.tienda .woocommerce-result-count,.tienda .woocommerce-ordering{float:none}
.tienda .woocommerce-result-count{font-family:var(--mono);font-size:var(--t-sm);color:var(--suave);margin:0 0 var(--e3)}
.tienda .woocommerce-ordering{margin:0 0 var(--e4)}
.tienda .woocommerce-ordering select{width:auto;min-width:14rem}
.cuerpo-ancho{max-width:none}
.nota-wc-vacio,.woocommerce-info,.woocommerce-message,.woocommerce-error{display:block;list-style:none;margin:0 0 var(--e4);padding:var(--e3) var(--e4);border:2px solid var(--tinta);background:var(--panel)}
.woocommerce-info{background:var(--ambar-suave);border-color:var(--ambar)}
.woocommerce-message{background:var(--ok-fondo);border-color:var(--ok)}
.woocommerce-error{background:var(--error-fondo);border-color:var(--error)}
.woocommerce-message .button,.woocommerce-info .button{float:right;margin-left:var(--e3)}
.woocommerce-error li{margin:0}
.woocommerce-notices-wrapper:empty{display:none}

/* Botones generados por WooCommerce */
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,.wp-element-button,
.woocommerce a.button.alt,.woocommerce button.button.alt{display:inline-flex;align-items:center;justify-content:center;min-height:3rem;min-width:var(--objetivo);padding:.7rem 1.15rem;
  font:inherit;font-weight:600;line-height:1.2;text-decoration:none;cursor:pointer;background:var(--ambar);color:#fff;border:2px solid var(--ambar);border-radius:var(--radio);width:auto}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover,.wp-element-button:hover,
.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover{background:var(--ambar-press);border-color:var(--ambar-press);color:#fff}
.woocommerce button.button:disabled,.woocommerce button.button.disabled,.woocommerce a.button.disabled{background:var(--arena);border-color:var(--linea-fuerte);color:var(--suave-fuerte);cursor:not-allowed}
.woocommerce a.added_to_cart{display:block;margin-top:var(--e2);font-weight:600}
.woocommerce a.button.loading{opacity:.7}

/* Ficha de producto */
.woocommerce div.product{display:grid;gap:var(--e6);padding-block:var(--e4) var(--e6);grid-template-columns:1fr}
@media (min-width:60rem){.woocommerce div.product{grid-template-columns:1.1fr .9fr}}
.woocommerce div.product div.images{margin:0;background:var(--arena);border:1px solid var(--linea-fuerte)}
.woocommerce div.product div.images img{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover}
.woocommerce div.product div.summary{margin:0}
.woocommerce div.product .product_title{font-size:clamp(1.75rem,1.3rem + 2vw,2.5rem);margin-top:var(--e3)}
.sku-linea{margin:0}
.woocommerce div.product p.price,.woocommerce div.product span.price{font-family:var(--mono);font-size:var(--t-2xl);font-weight:700;color:var(--ambar-press);margin:var(--e3) 0}
.woocommerce div.product form.cart{display:flex;flex-wrap:wrap;gap:var(--e3);align-items:stretch;margin:var(--e4) 0}
.woocommerce div.product form.cart .single_add_to_cart_button{flex:1 1 14rem;min-height:3.5rem;font-size:var(--t-lg)}
.woocommerce .quantity{display:inline-flex}
.woocommerce .quantity .qty{width:5rem;text-align:center;font-family:var(--mono);font-weight:700}
.compra--extra{margin-top:0}
.woocommerce-tabs{grid-column:1/-1}
.woocommerce-tabs ul.tabs{list-style:none;display:flex;flex-wrap:wrap;gap:var(--e2);padding:0;margin:0 0 var(--e4);border-bottom:var(--borde)}
.woocommerce-tabs ul.tabs li a{display:inline-flex;align-items:center;min-height:var(--objetivo);padding:0 var(--e4);color:var(--tinta);font-weight:600;text-decoration:none;border-bottom:3px solid transparent}
.woocommerce-tabs ul.tabs li.active a{border-bottom-color:var(--ambar)}
.woocommerce-tabs .panel{max-width:46rem}
.woocommerce table.shop_attributes{width:100%;border-collapse:collapse;background:var(--panel);border:1px solid var(--linea-fuerte)}
.woocommerce table.shop_attributes th,.woocommerce table.shop_attributes td{padding:var(--e3);border-bottom:var(--borde);text-align:left;vertical-align:top}
.woocommerce table.shop_attributes th{background:var(--arena);width:35%}
.woocommerce table.shop_attributes p{margin:0}
.related.products,.up-sells{grid-column:1/-1}
.related.products>h2,.up-sells>h2{font-size:var(--t-2xl)}

/* Carrito */
.woocommerce table.shop_table{width:100%;border-collapse:collapse;background:var(--panel);border:1px solid var(--linea-fuerte);margin-bottom:var(--e5)}
.woocommerce table.shop_table th,.woocommerce table.shop_table td{padding:var(--e3);border-bottom:var(--borde);text-align:left;vertical-align:middle}
.woocommerce table.shop_table thead th{background:var(--arena)}
.woocommerce table.shop_table td.product-thumbnail img{width:4.5rem;height:4.5rem;object-fit:cover}
.woocommerce table.shop_table td.product-remove a.remove{display:inline-flex;align-items:center;justify-content:center;gap:var(--e2);min-width:var(--objetivo);min-height:var(--objetivo);padding:0 var(--e3);color:var(--error);font-size:0;font-weight:700;text-decoration:none;border:2px solid var(--error);background:var(--panel);border-radius:var(--radio)}
.woocommerce table.shop_table td.product-remove a.remove::after{content:"Quitar";font-size:var(--t-sm);font-family:inherit}
.woocommerce table.shop_table td.product-remove a.remove:hover{background:var(--error-fondo);color:var(--error)}
.woocommerce .quantity .qty{min-height:var(--objetivo);border:2px solid var(--tinta);background:var(--panel);border-radius:var(--radio)}
.woocommerce table.shop_table td.actions button.button{background:var(--panel);color:var(--tinta);border-color:var(--tinta)}
.woocommerce table.shop_table td.actions button.button:hover{background:var(--arena);color:var(--tinta);border-color:var(--tinta)}
.woocommerce table.shop_table td.actions{text-align:right}
.woocommerce table.shop_table td.actions .coupon{display:none}
.woocommerce .cart-collaterals{display:flex;justify-content:flex-end}
.woocommerce .cart_totals{width:100%;max-width:28rem;background:var(--panel);border:var(--borde-tinta);padding:var(--e5);box-shadow:var(--sombra-dura)}
.woocommerce .cart_totals h2{font-size:var(--t-xl)}
.woocommerce .cart_totals table.shop_table{border:0;margin-bottom:var(--e4)}
.woocommerce .wc-proceed-to-checkout a.checkout-button{display:flex;width:100%;min-height:3.5rem;font-size:var(--t-lg)}
@media (max-width:48rem){
  .woocommerce table.shop_table_responsive thead{display:none}
  .woocommerce table.shop_table_responsive tr{display:block;border-bottom:2px solid var(--linea-fuerte)}
  .woocommerce table.shop_table_responsive td{display:flex;justify-content:space-between;gap:var(--e3);border-bottom:var(--borde)}
  .woocommerce table.shop_table_responsive td::before{content:attr(data-title);font-weight:700}
  .woocommerce table.shop_table_responsive td.product-remove::before,.woocommerce table.shop_table_responsive td.product-thumbnail::before,.woocommerce table.shop_table_responsive td.actions::before{content:none}
}

/* Finalizar compra */
.woocommerce form.checkout{display:grid;gap:var(--e6)}
@media (min-width:60rem){.woocommerce form.checkout{grid-template-columns:1.4fr 1fr;align-items:start}.woocommerce form.checkout #order_review_heading,.woocommerce form.checkout #order_review{grid-column:2}.woocommerce form.checkout .col2-set{grid-column:1;grid-row:1/span 3}}
.woocommerce form.checkout .col2-set .col-1,.woocommerce form.checkout .col2-set .col-2{width:100%;float:none}
.woocommerce form .form-row{display:flex;flex-direction:column;gap:var(--e1);margin:0 0 var(--e4);padding:0}
.woocommerce form .form-row label{font-size:var(--t-sm);font-weight:600}
.woocommerce form .form-row .required{color:var(--error);text-decoration:none}
.woocommerce form .form-row .optional{font-weight:400;color:var(--suave)}
.woocommerce form .form-row.woocommerce-invalid input.input-text{border-color:var(--error);background:var(--error-fondo)}
.woocommerce form .form-row .description{font-size:var(--t-xs);color:var(--suave)}
.woocommerce form .form-row label.checkbox{display:flex;gap:var(--e3);align-items:flex-start}
.woocommerce form .form-row input[type=checkbox]{width:1.4rem;min-height:1.4rem;height:1.4rem;accent-color:var(--ambar);flex:none}
.woocommerce-checkout #order_review{background:var(--panel);border:var(--borde-tinta);padding:var(--e5);box-shadow:var(--sombra-dura)}
.woocommerce-checkout #order_review_heading{font-size:var(--t-xl);margin:0}
.woocommerce-checkout #payment{background:transparent}
.woocommerce-checkout #payment ul.payment_methods{list-style:none;margin:0 0 var(--e4);padding:0}
.woocommerce-checkout #payment ul.payment_methods li{padding:var(--e3);background:var(--panel);border:2px solid var(--linea-fuerte);margin-bottom:var(--e2)}
.woocommerce-checkout #payment ul.payment_methods li input[type=radio]{width:1.3rem;min-height:1.3rem;height:1.3rem;accent-color:var(--ambar);margin-right:var(--e2)}
.woocommerce-checkout #payment div.payment_box{margin-top:var(--e2);padding:var(--e3);background:var(--arena);font-size:var(--t-sm)}
.woocommerce-checkout #payment #place_order{width:100%;min-height:3.5rem;font-size:var(--t-lg);float:none}
.woocommerce-privacy-policy-text{font-size:var(--t-sm);color:var(--suave-fuerte)}

/* Pedido recibido y Mi cuenta */
.woocommerce-order-overview{list-style:none;display:grid;gap:var(--e3);grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));padding:0;margin:0 0 var(--e5)}
.woocommerce-order-overview li{padding:var(--e3);background:var(--panel);border:1px solid var(--linea-fuerte);font-size:var(--t-sm)}
.woocommerce-order-overview li strong{display:block;font-family:var(--mono)}
.woocommerce-MyAccount-navigation ul{list-style:none;padding:0;margin:0 0 var(--e5);display:flex;flex-wrap:wrap;gap:var(--e2)}
.woocommerce-MyAccount-navigation a{display:inline-flex;align-items:center;min-height:var(--objetivo);padding:0 var(--e4);border:2px solid var(--tinta);color:var(--tinta);font-weight:600;text-decoration:none}
.woocommerce-MyAccount-navigation .is-active a{background:var(--tinta);color:var(--papel)}

/* Paginación */
.woocommerce-pagination ul,.navigation.pagination .nav-links{list-style:none;display:flex;flex-wrap:wrap;gap:var(--e2);padding:0;margin:var(--e5) 0 0;border:0}
.woocommerce-pagination ul li{border:0}
.woocommerce-pagination .page-numbers,.navigation.pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:var(--objetivo);min-height:var(--objetivo);padding:0 var(--e3);border:2px solid var(--tinta);color:var(--tinta);font-weight:600;text-decoration:none;background:var(--panel)}
.woocommerce-pagination .page-numbers.current,.navigation.pagination .page-numbers.current{background:var(--tinta);color:var(--papel)}

/* Estrellas y migas de WooCommerce no se usan: no hay reseñas */
.woocommerce-review-link,.star-rating,.woocommerce-tabs #tab-reviews,.woocommerce-tabs .reviews_tab{display:none}
.wa-flotante[hidden]{display:none}

/* Esquinas rectas también en componentes de terceros (selector de país/departamento, visor de fotos) y objetivos táctiles */
.select2-container .select2-selection,.select2-dropdown,.select2-search__field,.pswp__share-tooltip{border-radius:0!important}
.select2-container .select2-selection--single{min-height:3rem;border:2px solid var(--linea-fuerte);display:flex;align-items:center}
.select2-container .select2-selection--single .select2-selection__arrow{height:3rem}
.woocommerce-checkout h2{font-size:var(--t-lg,1.125rem);font-weight:700;margin:var(--e5) 0 var(--e3)}
.woocommerce form .form-row label.checkbox{min-height:var(--objetivo);align-items:center}
.pie p>a{display:inline-flex;align-items:center;min-height:var(--objetivo)}

/* Utilidades que reemplazan atributos style="" (permiten una CSP sin unsafe-inline en estilos) */
.seccion--sin-borde-sup{padding-top:0}
.mt-e3{margin-top:var(--e3)}
.mt-e5{margin-top:var(--e5)}
.mt-e6{margin-top:var(--e6)}
.texto-sm{font-size:var(--t-sm)}
.ficha-acordeones{grid-column:1/-1;margin-top:var(--e5)}
.tabla-datos{width:100%;border-collapse:collapse}
.tabla-datos th,.tabla-datos td{text-align:left;padding:var(--e2) var(--e3);border-bottom:1px solid var(--linea-fuerte)}
.tabla-datos th{background:var(--arena);color:var(--tinta);width:35%;font-weight:700}
