/* ==========================================================================
   CARRITO / PAGO — La Forma de la casa sobre las clases reales de WooCommerce.
   Manual de marca abd1692f. Página CLARA, cero azul. Se encola solo en
   is_cart()/is_checkout() (carrito.php). No toca plantillas ni el core.

   Regla dura: clip-path y border NO conviven. La sombra de los paneles
   biselados va por filter:drop-shadow (sigue el chaflán), NUNCA box-shadow.
   ========================================================================== */
.woocommerce{
  --rojo:#da1921;--rojo-txt:#a80f16;--tinta:#15181c;--amar:#ffd21e;
  --panel:#fff;--crema:#f6f3ee;--campo:#f0ece4;--hair:#e5e0d6;--linea:#eae5db;
  --ink:#1b1d22;--ink2:#565048;--label:#8a857b;--ok:#12833C;
  --f14:polygon(14px 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,0 100%,0 14px);
  --f8:polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px);
}

/* ===== CARRITO VACÍO — aviso de la casa (adiós borde azul) ===== */
.woocommerce .cart-empty.woocommerce-info,
.woocommerce .cart-empty,
.woocommerce .wc-empty-cart-message{
  background:var(--crema);border:0;box-shadow:none;color:var(--ink);
  font-family:Oswald,sans-serif;font-size:20px;text-transform:none;letter-spacing:.01em;
  padding:20px 22px 20px 28px;clip-path:var(--f14);position:relative;
  display:flex;align-items:center;gap:14px;max-width:760px;margin:0 0 6px}
.woocommerce .cart-empty::before,
.woocommerce .wc-empty-cart-message::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--amar)}
/* botón «Ir a la tienda» = rojo La Forma (sombra por drop-shadow) */
.woocommerce .return-to-shop{margin-top:18px}
.woocommerce .return-to-shop .button{
  background:var(--rojo);color:#fff;border:0;clip-path:var(--f8);
  font-family:Oswald,sans-serif;font-weight:600;text-transform:uppercase;letter-spacing:.05em;
  padding:14px 26px;font-size:14px;filter:drop-shadow(0 8px 16px rgba(218,25,33,.26))}
.woocommerce .return-to-shop .button:hover{background:var(--rojo-txt)}

/* ===== CARRITO CON PRODUCTOS ===== */
.woocommerce-cart-form{background:var(--panel);clip-path:var(--f14);
  filter:drop-shadow(0 14px 26px rgba(21,24,28,.13));overflow:hidden}
.woocommerce table.shop_table{border:0;border-collapse:collapse;margin:0;width:100%}
.woocommerce table.shop_table thead th{
  background:var(--tinta);color:#fff;font-family:Oswald,sans-serif;font-weight:600;
  text-transform:uppercase;letter-spacing:.04em;font-size:12px;padding:14px 18px;border:0}
.woocommerce table.shop_table td{padding:16px 18px;border-top:1px solid var(--linea);vertical-align:middle;color:var(--ink2)}
.woocommerce .cart_item .product-name a{color:var(--ink);font-weight:600;text-decoration:none}
.woocommerce .cart_item .product-name a:hover{color:var(--rojo-txt)}
.woocommerce .cart_item .product-price,
.woocommerce .cart_item .product-subtotal{font-family:Oswald,sans-serif;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
/* miniatura del producto con La Forma */
.woocommerce .cart_item .product-thumbnail img{clip-path:var(--f8);background:var(--campo)}
/* cantidad = campo de la casa */
.woocommerce .quantity input.qty{
  background:var(--campo);border:0;border-left:3px solid transparent;clip-path:var(--f8);
  padding:10px 12px;width:72px;text-align:center;font-family:Poppins,sans-serif;color:var(--ink)}
.woocommerce .quantity input.qty:focus{outline:none;background:var(--crema);border-left:3px solid var(--rojo)}
/* quitar (la X) */
.woocommerce .product-remove a.remove{color:var(--rojo-txt)!important;font-weight:700}
.woocommerce .product-remove a.remove:hover{background:var(--rojo)!important;color:#fff!important}

/* cupón + actualizar */
.woocommerce .cart .actions{padding:16px 18px;background:var(--crema)}
.woocommerce .cart .actions .coupon input#coupon_code{
  background:#fff;border:0;clip-path:var(--f8);padding:12px 14px;font-family:Poppins,sans-serif}
.woocommerce .cart .actions .button{
  background:#fff;color:var(--rojo-txt);border:0;clip-path:var(--f8);
  font-family:Oswald,sans-serif;font-weight:700;text-transform:uppercase;letter-spacing:.05em;padding:12px 20px}
.woocommerce .cart .actions .button:hover{background:var(--rojo);color:#fff}

/* ===== TOTALES ===== */
.woocommerce .cart_totals{background:var(--panel);clip-path:var(--f14);
  filter:drop-shadow(0 14px 26px rgba(21,24,28,.13));padding:22px}
.woocommerce .cart_totals h2{font-family:Oswald,sans-serif;text-transform:uppercase;color:var(--ink);font-size:18px;margin:0 0 14px}
.woocommerce .cart_totals table{border:0}
.woocommerce .cart_totals table th,
.woocommerce .cart_totals table td{border:0;border-top:1px solid var(--linea);padding:12px 0;color:var(--ink2)}
.woocommerce .cart_totals .order-total .amount{font-family:Oswald,sans-serif;font-weight:700;color:var(--ink);font-size:20px}
.woocommerce .cart_totals .woocommerce-shipping-methods,
.woocommerce .cart_totals .shipping-calculator-button{color:var(--rojo-txt)}
/* botón ir a pagar = rojo La Forma, grande */
.woocommerce .wc-proceed-to-checkout{padding:0;margin-top:16px}
.woocommerce .wc-proceed-to-checkout .checkout-button.button{
  background:var(--rojo);color:#fff;border:0;clip-path:var(--f8);
  font-family:Oswald,sans-serif;font-weight:600;text-transform:uppercase;letter-spacing:.05em;
  padding:16px;font-size:15px;width:100%;text-align:center;
  filter:drop-shadow(0 10px 20px rgba(218,25,33,.24))}
.woocommerce .wc-proceed-to-checkout .checkout-button.button:hover{background:var(--rojo-txt)}

/* cero azul: cualquier aviso de Woo en carrito/pago con La Forma */
.woocommerce-cart .woocommerce-message,
.woocommerce-checkout .woocommerce-message,
.woocommerce-cart .woocommerce-info,
.woocommerce-checkout .woocommerce-info{
  border-top:0;background:var(--crema);color:var(--ink);clip-path:var(--f14);box-shadow:none}
.woocommerce-cart .woocommerce-message::before,
.woocommerce-checkout .woocommerce-message::before,
.woocommerce-cart .woocommerce-info::before,
.woocommerce-checkout .woocommerce-info::before{color:var(--rojo)}
.woocommerce-cart .woocommerce-message a.button,
.woocommerce-cart .woocommerce-info a.button{background:var(--rojo);color:#fff;clip-path:var(--f8)}

/* ===== 3.80.5 — errores (agotado) con La Forma, no la franja gris de WP ===== */
html body.woocommerce-cart .woocommerce-error,
html body.woocommerce-checkout .woocommerce-error,
html body.woocommerce-cart .wc-block-components-notice-banner.is-error{
  list-style:none;margin:0 0 18px;padding:14px 18px 14px 22px;background:#fff1f1;color:var(--ink);
  border:0!important;border-radius:0!important;box-shadow:none;clip-path:var(--f14);position:relative;
  font-family:Poppins,sans-serif;font-size:14px;line-height:1.55}
html body.woocommerce-cart .woocommerce-error::after,
html body.woocommerce-checkout .woocommerce-error::after{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--rojo)}
html body.woocommerce-cart .woocommerce-error::before,
html body.woocommerce-checkout .woocommerce-error::before{display:none}
html body.woocommerce-cart .woocommerce-error li{margin:0;padding:0;color:var(--ink)}
html body.woocommerce-cart .woocommerce-error li::before{content:none}

/* quitar (la X): cuadro biselado, nunca círculo */
html body.woocommerce-cart .woocommerce .product-remove a.remove{
  display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;
  border:0!important;border-radius:0!important;background:var(--campo)!important;
  color:var(--rojo-txt)!important;font:700 18px/1 Poppins,sans-serif;text-decoration:none;
  clip-path:polygon(6px 0,100% 0,100% calc(100% - 6px),calc(100% - 6px) 100%,0 100%,0 6px)}
html body.woocommerce-cart .woocommerce .product-remove a.remove:hover{background:var(--rojo)!important;color:#fff!important}
html body.woocommerce-cart .woocommerce .product-remove a.remove::before,
html body.woocommerce-cart .woocommerce .product-remove a.remove > *{display:none!important}
html body.woocommerce-cart .woocommerce .product-remove a.remove::after{content:"×"!important;display:block!important;position:static;font:700 20px/1 Poppins,sans-serif;color:inherit}

/* ===== 3.80.6 — fila de producto AGOTADO: oscura, fuera de la compra ===== */
html body.woocommerce-cart .woocommerce tr.rsux-agotado td{background:#2a2d33!important;color:#9a958c!important;border-top-color:#3a3d44}
html body.woocommerce-cart .woocommerce tr.rsux-agotado .product-thumbnail img{filter:grayscale(1) brightness(.55)}
html body.woocommerce-cart .woocommerce tr.rsux-agotado .product-name a{color:#c9c4ba!important}
html body.woocommerce-cart .woocommerce tr.rsux-agotado .product-price,
html body.woocommerce-cart .woocommerce tr.rsux-agotado .product-subtotal,
html body.woocommerce-cart .woocommerce tr.rsux-agotado .product-price *,
html body.woocommerce-cart .woocommerce tr.rsux-agotado .product-subtotal *{color:#7d786f!important;text-decoration:line-through}
html body.woocommerce-cart .woocommerce tr.rsux-agotado .quantity input.qty{background:#3a3d44;color:#9a958c;pointer-events:none}
html body.woocommerce-cart .woocommerce tr.rsux-agotado .product-remove a.remove{background:var(--rojo)!important;color:#fff!important}
.rsux-agotado-chip{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px;width:max-content;max-width:100%;
  background:var(--amar);color:var(--tinta);font:600 11px/1.2 Oswald,sans-serif;letter-spacing:.08em;text-transform:uppercase;
  padding:5px 9px;clip-path:polygon(5px 0,100% 0,100% calc(100% - 5px),calc(100% - 5px) 100%,0 100%,0 5px)}
html body.woocommerce-cart .woocommerce tr.rsux-agotado .product-name .rsux-agotado-chip a,html body .rsux-agotado-chip a{color:var(--tinta)!important;background:#fff;padding:2px 6px;text-decoration:none;font-weight:700}

/* ===== celular: tabla apilada de Woo ===== */
@media (max-width:768px){
  html body.woocommerce-cart .woocommerce-error{padding:12px 14px 12px 16px;font-size:13px}
  html body.woocommerce-cart .woocommerce table.shop_table_responsive tr td{padding:10px 14px}
  html body.woocommerce-cart .woocommerce table.shop_table_responsive tr td.product-remove{text-align:right}
  html body.woocommerce-cart .woocommerce table.shop_table_responsive tr.rsux-agotado td::before{color:#9a958c}
  html body.woocommerce-cart .woocommerce .cart .actions .coupon{display:flex;gap:8px;flex-wrap:wrap}
  html body.woocommerce-cart .woocommerce .cart .actions .coupon input#coupon_code{flex:1 1 140px;width:auto}
  .rsux-agotado-chip{margin-left:auto}
}

/* ===== 3.80.7 — pago con producto agotado ===== */
/* Woo enfoca el aviso (tabindex=-1) y el navegador le pinta el anillo de foco;
   el chaflán lo corta y quedan rayas negras sueltas. Sin anillo. */
html body .woocommerce-error:focus,html body .woocommerce-error:focus-visible{outline:none!important}
/* «Volver al carrito»: el pago dice «vuelve al carrito» pero el botón venía
   escondido; sin él el cliente se queda encerrado. */
html body.woocommerce-checkout .woocommerce .wc-backward,
html body.woocommerce-checkout a.button.wc-backward{
  display:inline-flex!important;align-items:center;gap:8px;margin:4px 0 18px;padding:13px 22px;
  background:var(--rojo,#da1921)!important;color:#fff!important;border:0!important;border-radius:0!important;
  font:600 14px/1 Oswald,sans-serif;letter-spacing:.05em;text-transform:uppercase;text-decoration:none;
  clip-path:polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px)}
@media (max-width:768px){
  html body.woocommerce-checkout .woocommerce .wc-backward{width:100%;justify-content:center}
  html body.woocommerce-checkout .woocommerce-error{padding:14px 14px 14px 18px}
}
/* CartFlows envuelve el pago en .wcf-embed-checkout-form y redondea el aviso */
html body .wcf-embed-checkout-form .woocommerce-error{border:0!important;border-radius:0!important;
  clip-path:polygon(14px 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,0 100%,0 14px);margin:0 0 14px}

/* ===== 3.80.8 — CARRITO VACÍO (tarjeta de la casa) ===== */
.rsux-vacio ~ .return-to-shop,.woocommerce .rsux-vacio ~ p.return-to-shop{display:none!important}
.rsux-vacio{display:grid;gap:28px;margin:0 0 30px;font-family:Poppins,sans-serif;color:var(--ink,#1b1d22)}
.rsux-vacio-tarjeta{display:flex;align-items:center;gap:24px;background:#fff;padding:28px 30px;
  clip-path:var(--f14);filter:drop-shadow(0 14px 26px rgba(21,24,28,.12))}
.rsux-vacio-ico{flex:0 0 84px;height:84px;display:grid;place-items:center;background:var(--tinta,#15181c);color:var(--amar,#ffd21e);
  clip-path:polygon(12px 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%,0 12px)}
html body .rsux-vacio h2{font-family:Oswald,sans-serif;font-weight:700;text-transform:uppercase;font-size:26px;line-height:1.05;margin:0 0 8px;color:#15181c}
html body .rsux-vacio p{margin:0;color:#565048;font-size:14px;line-height:1.55;max-width:56ch}
.rsux-vacio-btns{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
html body .rsux-vacio-btn{display:inline-flex;align-items:center;justify-content:center;padding:13px 22px;background:#f0ece4;color:#15181c!important;
  font:600 14px/1 Oswald,sans-serif;letter-spacing:.05em;text-transform:uppercase;text-decoration:none!important;
  clip-path:polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px)}
html body .rsux-vacio-btn.es-rojo{background:var(--rojo,#da1921);color:#fff!important}
html body .rsux-vacio-btn:hover{background:#15181c;color:#fff!important}
html body .rsux-vacio h3{font-family:Oswald,sans-serif;font-weight:600;text-transform:uppercase;letter-spacing:.06em;font-size:16px;margin:0 0 12px;color:#15181c}
.rsux-vacio-cats{display:flex;flex-wrap:wrap;gap:8px}
html body .rsux-vacio-cats a{background:#fff;color:#15181c!important;padding:10px 14px;font:500 13px/1.2 Poppins,sans-serif;text-decoration:none!important;
  clip-path:polygon(6px 0,100% 0,100% calc(100% - 6px),calc(100% - 6px) 100%,0 100%,0 6px)}
html body .rsux-vacio-cats a:hover{background:var(--amar,#ffd21e)}
@media (max-width:640px){
  .rsux-vacio-tarjeta{flex-direction:column;align-items:flex-start;gap:16px;padding:22px 18px}
  .rsux-vacio-ico{flex-basis:auto;width:64px;height:64px}
  html body .rsux-vacio h2{font-size:22px}
  .rsux-vacio-btns{width:100%}
  html body .rsux-vacio-btn{flex:1 1 140px}
  .rsux-vacio .woocommerce ul.products,.rsux-vacio ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* ===== 3.80.10 — cabecera del carrito ===== */
html body.woocommerce-cart .entry-header{display:none!important}
.rsux-cab-carrito{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:6px 0 18px;padding-bottom:14px;border-bottom:2px solid #15181c}
html body .rsux-cab-carrito h1{font-family:Oswald,sans-serif;font-weight:700;text-transform:uppercase;font-size:34px;line-height:1;margin:0;color:#15181c}
.rsux-cab-n{display:block;margin-top:6px;font:500 13px/1.2 Poppins,sans-serif;color:#565048}
.rsux-pasos{display:flex;gap:6px;list-style:none;margin:0;padding:0}
.rsux-pasos li{display:flex;align-items:center;gap:8px;padding:8px 14px 8px 8px;background:#f0ece4;color:#565048;
  font:600 12px/1 Oswald,sans-serif;letter-spacing:.08em;text-transform:uppercase;margin:0;
  clip-path:polygon(6px 0,100% 0,100% calc(100% - 6px),calc(100% - 6px) 100%,0 100%,0 6px)}
.rsux-pasos li b{display:grid;place-items:center;width:20px;height:20px;background:#fff;color:#15181c;font-size:11px}
.rsux-pasos li.es-actual{background:#15181c;color:#fff}
.rsux-pasos li.es-actual b{background:var(--amar,#ffd21e)}
/* el aviso de agotado: ícono de la casa, alineado con la tabla */
html body.woocommerce-cart .woocommerce-error{display:flex;gap:12px;align-items:flex-start}
html body.woocommerce-cart .woocommerce-error::before{display:grid!important;place-items:center;content:"!"!important;flex:0 0 24px;height:24px;
  position:static!important;background:var(--rojo,#da1921);color:#fff;font:700 14px/1 Oswald,sans-serif;margin:0!important;
  clip-path:polygon(5px 0,100% 0,100% calc(100% - 5px),calc(100% - 5px) 100%,0 100%,0 5px)}
@media (max-width:640px){
  html body .rsux-cab-carrito h1{font-size:28px}
  .rsux-pasos{width:100%}
  .rsux-pasos li{flex:1;justify-content:center;padding:8px 6px}
}

/* ===== 3.80.16 — pago en celular ===== */
/* «Recoger en tienda»: el aviso iba a la DERECHA de la opción y la dejaba en
   una columnita («Recoger / en / tienda»). Ahora va debajo, a todo el ancho. */
html body #shipping_method > li{flex-wrap:wrap!important;align-items:center}
html body #shipping_method > li > label{flex:1 1 0!important;min-width:0!important}
html body #shipping_method > li > .rsux-recoger-aviso{flex:0 0 100%!important;width:100%!important;margin:8px 0 2px!important}
/* Medios de pago: el círculo quedaba solo en una línea y el nombre abajo. */
html body .wc_payment_methods li.wc_payment_method{display:flex!important;flex-direction:row!important;flex-wrap:wrap;align-items:center;gap:8px}
html body .wc_payment_methods li.wc_payment_method > input.input-radio{flex:0 0 auto;margin:0!important}
html body .wc_payment_methods li.wc_payment_method > label{flex:1 1 0;min-width:0;display:flex!important;align-items:center;flex-wrap:wrap;gap:6px;margin:0!important}
html body .wc_payment_methods li.wc_payment_method > .payment_box{flex:0 0 100%}
/* «País»: la etiqueta flotante quedaba encima de «Colombia». */
html body #billing_country_field .woocommerce-input-wrapper select,
html body #billing_country_field .woocommerce-input-wrapper strong{padding-top:20px!important}
/* 3.80.17: el contenedor de avisos vacío dejaba 40 px de margen (la «caja
   blanca» bajo el resumen del pedido en el celular). */
html body .woocommerce-notices-wrapper:empty{margin:0!important;padding:0!important}
