/* Ocultar formulario nativo de variaciones — mantener inicialización WC/YITH */
body.single-product div.product form.cart.variations_form {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Botones footer — colores configurables via panel admin */
.ktr2-wrap .ktr2-btn-carrito,
.ktr2-wrap .ktr2-btn-carrito:hover,
.ktr2-wrap .ktr2-btn-carrito:visited { color: var(--ktr2-texto-carrito, #fff) !important; }

.ktr2-wrap .ktr2-btn-comprar,
.ktr2-wrap .ktr2-btn-comprar:hover,
.ktr2-wrap .ktr2-btn-comprar:visited { color: var(--ktr2-texto-comprar, #fff) !important; }

.ktr2-wrap .ktr2-btn-ver-cart,
.ktr2-wrap .ktr2-btn-ver-cart:hover,
.ktr2-wrap .ktr2-btn-ver-cart:visited { color: var(--ktr2-texto-ver, #fff) !important; }

/* ═══════════════════════════════════════════════════════════
   Kadence - Tabla Rápida 2 — ktr2-style.css v1.0.0
   ═══════════════════════════════════════════════════════════ */

.ktr2-wrap { font-family: 'Segoe UI', Arial, sans-serif; margin: 0 0 24px 0; }

.ktr2-zona-label { font-size: 13px; font-weight: 600; color: #333; margin-bottom: 10px; }

/* COLORES */
.ktr2-zona { margin-bottom: 4px; }
.ktr2-swatches { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 4px; margin-bottom: 4px; }
.ktr2-swatch-item { display: flex; flex-direction: column; align-items: center; }
.ktr2-swatch { width: 36px; height: 36px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; transition: all .2s; }
.ktr2-swatch:hover { transform: scale(1.1); }
.ktr2-swatch.ktr2-swatch-activo { border-color: #1a1a1a; box-shadow: 0 0 0 2px #fff inset; }
.ktr2-swatch-nombre { font-size: 11px; color: #1a1a1a; margin-top: 3px; }

/* TALLAS */
.ktr2-tallas-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.ktr2-talla-col { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 62px; }
.ktr2-talla-nombre { font-size: 13px; font-weight: 700; color: #1a1a1a; }
.ktr2-talla-precio { font-size: 11px; color: #333; }
.ktr2-talla-precio .woocommerce-Price-amount { font-size: 11px; }

.ktr2-qty-wrap { display: flex; align-items: stretch; border: 1px solid #ccc; border-radius: 6px; overflow: hidden; height: 34px; }
.ktr2-qty-wrap input { width: 40px; border: none; text-align: center; font-size: 15px; font-weight: 700; -moz-appearance: textfield; outline: none; padding: 0; color: #1a1a1a; }
.ktr2-qty-wrap input::-webkit-outer-spin-button,
.ktr2-qty-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; }
.ktr2-qty-flechas { display: flex; flex-direction: column; width: 22px; }
.ktr2-qty-up, .ktr2-qty-down { flex: 1; border: none; background: #f5f5f5; cursor: pointer; font-size: 9px; color: #333; display: flex; align-items: center; justify-content: center; transition: background .15s; padding: 0; border-left: 1px solid #ccc; }
.ktr2-qty-up { border-bottom: 1px solid #ccc; }
.ktr2-qty-up:hover, .ktr2-qty-down:hover { background: #ddd; }

/* MENSAJE */
.ktr2-msg-tallas { font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 20px; display: inline-flex; align-items: center; line-height: 1.4; }
.ktr2-vacio { background: #f5f5f5; color: #1a1a1a; border: 1px solid #e0e0e0; }
.ktr2-ok { background: #eafaf1; color: #27ae60; border: 1px solid #a9dfbf; }
.ktr2-pendiente { background: #fff3cd; color: #e67e00; border: 1px solid #f0c040; }
.ktr2-btn-borrar-tallas { padding: 5px 12px; background: #fff !important; border: 1px solid #1a1a1a !important; color: #1a1a1a !important; font-size: 12px; font-weight: 600; border-radius: 20px; cursor: pointer; transition: background .15s, color .15s; }
.ktr2-btn-borrar-tallas:hover, .ktr2-btn-borrar-tallas:focus { background: #1a1a1a !important; color: #fff !important; outline: none; }

/* CHIPS */
.ktr2-chips-wrap { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0; }
.ktr2-chip { background: #1a1a1a; color: #fff; padding: 3px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.ktr2-chip-total { background: #27ae60; }

/* AVISO REDUCIR */
.ktr2-aviso-reducir { background: #fff3f3; border-left: 4px solid #c0392b; padding: 10px 14px; font-size: 12px; color: #1a1a1a; line-height: 1.6; margin-bottom: 10px; border-radius: 0 4px 4px 0; }

/* MODO */
.ktr2-modo-precio { font-size: 11px; opacity: 0.8; font-weight: 400; display: block; }
.ktr2-zona-modo { padding: 8px 0; }
.ktr2-zona-modo-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #1a1a1a; margin-bottom: 10px; }
.ktr2-modo-btns { display: flex; flex-wrap: wrap; gap: 8px; }
/* Reset global — neutralizar estilos de Kadence dentro del wrap */
.ktr2-wrap, .ktr2-wrap * {
    box-sizing: border-box;
}
.ktr2-wrap button {
    font-size: 13px !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    color: #1a1a1a !important;
}

.ktr2-modo-btn { padding: 7px 14px; border: 1px solid #1a1a1a !important; border-radius: 20px; background: #fff !important; font-size: 13px !important; cursor: pointer; transition: background .15s, color .15s; color: #1a1a1a !important; line-height: 1.4 !important; }
.ktr2-modo-btn:hover, .ktr2-modo-btn:focus { background: #1a1a1a !important; color: #fff !important; border-color: #1a1a1a !important; outline: none; }
.ktr2-modo-btn.ktr2-activo { background: #27ae60 !important; color: #fff !important; border-color: #27ae60 !important; }
.ktr2-modo-btn.ktr2-activo:hover, .ktr2-modo-btn.ktr2-activo:focus { background: #27ae60 !important; color: #fff !important; }

/* AYUDA */
.ktr2-ayuda-wrap { border: none; overflow: hidden; margin: 0 0 6px 0; }
.ktr2-ayuda-cab { display: flex; justify-content: flex-start; align-items: center; gap: 6px; padding: 6px 0; background: transparent; cursor: pointer; }
.ktr2-ayuda-cab:hover { background: transparent; text-decoration: underline; }
.ktr2-ayuda-cab span:first-child { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #1a1a1a; }
.ktr2-ayuda-flecha { font-size: 14px; color: #333; transition: transform .2s; }
.ktr2-ayuda-wrap.ktr2-abierto .ktr2-ayuda-flecha { transform: rotate(180deg); }
.ktr2-ayuda-body { padding: 8px 0; font-size: 12px; line-height: 1.6; color: #1a1a1a; }
.ktr2-ayuda-body ol { padding-left: 16px; }
.ktr2-ayuda-body li { margin-bottom: 6px; }

/* ZONA EXCEL */
.ktr2-zona-excel { padding: 4px 0; }

/* PASO POR TALLA */
.ktr2-paso-wrap { border: 1px solid #ddd; border-radius: 8px; overflow: hidden; margin-bottom: 14px; }
.ktr2-paso-header { padding: 10px 14px; background: #f5f5f5; border-bottom: 1px solid #ddd; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.ktr2-paso-titulo { font-size: 15px; font-weight: 800; }
.ktr2-paso-progreso { font-size: 12px; color: #333; background: #fff; padding: 3px 12px; border-radius: 20px; font-weight: 600; border: 1px solid #ddd; }
.ktr2-paso-barra { height: 4px; background: #ddd; }
.ktr2-paso-barra-fill { height: 100%; background: #1a1a1a; transition: width .3s; }
.ktr2-paso-cab { display: grid; background: transparent; color: #c0392b; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; border-bottom: 2px solid #c0392b; }
.ktr2-paso-cab > div, .ktr2-paso-fila > div { padding: 8px 12px; }
.ktr2-paso-fila { display: grid; border-top: 1px solid #eee; align-items: center; }
.ktr2-paso-fila:hover { background: #fafafa; }
.ktr2-paso-fila .ktr2-fila-num { font-size: 12px; color: #1a1a1a; font-weight: 600; }
.ktr2-paso-fila input { border: 1px solid #ddd; border-radius: 4px; padding: 6px 8px; font-size: 13px; width: 100%; outline: none; background: #f9f9f9; transition: border-color .15s; color: #1a1a1a; font-weight: 600; }
.ktr2-paso-fila input:focus { border-color: #1a1a1a; background: #fff; }
.ktr2-paso-fila input.ktr2-num { max-width: 60px; text-align: center; }
.ktr2-btn-eliminar { background: none; border: none; cursor: pointer; color: #ddd; font-size: 18px; font-weight: 700; padding: 0 4px; line-height: 1; transition: color .15s; }
.ktr2-btn-eliminar:hover { color: #c0392b; }
.ktr2-btn-anadir { background: #fff !important; border: none; border-top: 1px solid #1a1a1a !important; color: #1a1a1a !important; width: 100%; padding: 9px; font-size: 12px; cursor: pointer; transition: background .15s, color .15s; }
.ktr2-btn-anadir:hover, .ktr2-btn-anadir:focus { background: #1a1a1a !important; color: #fff !important; outline: none; }
.ktr2-paso-nav { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid #eee; background: #fafafa; }
.ktr2-btn-anterior { padding: 8px 14px; background: #fff !important; border: 1px solid #1a1a1a !important; color: #1a1a1a !important; font-size: 13px; font-weight: 600; border-radius: 6px; cursor: pointer; transition: background .15s, color .15s; }
.ktr2-btn-anterior:hover, .ktr2-btn-anterior:focus { background: #1a1a1a !important; color: #fff !important; outline: none; }
.ktr2-btn-siguiente { padding: 8px 14px; background: #fff !important; color: #1a1a1a !important; border: 1px solid #1a1a1a !important; font-size: 13px; font-weight: 700; border-radius: 6px; cursor: pointer; flex: 1; text-align: center; transition: background .15s, color .15s; }
.ktr2-btn-siguiente:hover, .ktr2-btn-siguiente:focus { background: #1a1a1a !important; color: #fff !important; outline: none; }
.ktr2-btn-siguiente.ktr2-final { background: #fff !important; color: #1a1a1a !important; border: 1px solid #1a1a1a !important; }
.ktr2-btn-siguiente.ktr2-final:hover, .ktr2-btn-siguiente.ktr2-final:focus { background: #1a1a1a !important; color: #fff !important; outline: none; }

/* ACORDEÓN */
.ktr2-acordeon { border: 1px solid #ddd; border-radius: 0; margin-bottom: 14px; }
.ktr2-acordeon-cab { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; background: #f5f5f5; cursor: pointer; border-bottom: 1px solid #ddd; user-select: none; }
.ktr2-acordeon-cab:hover { background: #ececec; }
.ktr2-acordeon-titulo { font-size: 13px; font-weight: 700; color: #1a1a1a; display: flex; align-items: center; gap: 6px; }
.ktr2-acordeon-badge { background: #27ae60; color: #fff; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 20px; white-space: nowrap; }
.ktr2-acordeon-body { padding: 12px 14px; background: #fff; }

/* PREVIEW LISTA */
.ktr2-preview-ok { color: #27ae60; font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.ktr2-preview-tabla { width: 100%; border-collapse: collapse; font-size: 13px; }
.ktr2-preview-tabla thead tr { background: #1a1a1a; color: #fff; }
.ktr2-preview-tabla thead th { padding: 8px 12px; text-align: left; font-weight: 700; font-size: 12px; text-transform: uppercase; }
.ktr2-preview-tabla tbody tr { border-bottom: 1px solid #eee; }
.ktr2-preview-tabla tbody td { padding: 7px 12px; color: #333; }
.ktr2-preview-uds { margin-top: 10px; background: #eafaf1; border: 1px solid #a9dfbf; border-radius: 4px; padding: 8px 12px; font-size: 13px; font-weight: 700; color: #27ae60; }

/* RESUMEN */
.ktr2-resumen-linea { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.ktr2-resumen-linea:last-child { border-bottom: none; }
.ktr2-resumen-linea .ktr2-et { color: #1a1a1a; }
.ktr2-resumen-linea .ktr2-val { font-weight: 700; color: #1a1a1a; }
.ktr2-resumen-linea.ktr2-desc .ktr2-et,
.ktr2-resumen-linea.ktr2-desc .ktr2-val { color: #27ae60; }
.ktr2-resumen-linea.ktr2-total-row { background: #f5f5f5; }
.ktr2-resumen-linea.ktr2-total-row .ktr2-et { font-weight: 700; font-size: 14px; }
.ktr2-resumen-linea.ktr2-total-row .ktr2-val { font-size: 16px; }
.ktr2-resumen-nota { padding: 8px 14px; font-size: 11px; color: #666; border-top: 1px solid #eee; font-style: italic; }

/* FOOTER */
.ktr2-footer { display: flex; justify-content: flex-start; align-items: center; padding: 14px 0; border-top: 2px solid #e5e5e5; gap: 10px; flex-wrap: wrap; }
.ktr2-footer-left { display: flex; align-items: center; gap: 10px; flex-shrink: 1; flex-wrap: wrap; }
.ktr2-total-section { display: flex; align-items: center; gap: 6px; background: #f5f5f5; padding: 6px 12px; border-radius: 20px; border: 1px solid #ddd; white-space: nowrap; }
.ktr2-total-label { font-size: 12px; color: #333; font-weight: 500; }
.ktr2-total-qty { font-size: 16px; font-weight: 700; color: #000; min-width: 20px; text-align: center; }
.ktr2-btn-limpiar { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; font-size: 12px; font-weight: 500; color: #1a1a1a !important; background: #fff !important; border: 1px solid #1a1a1a !important; border-radius: 20px; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.ktr2-btn-limpiar:hover, .ktr2-btn-limpiar:focus { background: #1a1a1a !important; color: #fff !important; outline: none; }
.ktr2-footer-btns { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 1; }
.ktr2-btn-carrito, .ktr2-btn-comprar, .ktr2-btn-ver-cart {
    padding: 8px 18px; font-size: 12px; font-weight: 600; border-radius: 25px;
    cursor: pointer; text-transform: uppercase; letter-spacing: .5px;
    text-decoration: none; display: inline-block; text-align: center;
    line-height: 1.4; border: none; white-space: nowrap; color: #fff;
}
.ktr2-btn-carrito { background: #27ae60; }
.ktr2-btn-comprar { background: #1a1a1a; }
.ktr2-btn-ver-cart { background: #27ae60; }
.ktr2-btn-carrito:disabled, .ktr2-btn-comprar:disabled { opacity: .4; cursor: not-allowed; }

/* BOTONES GENÉRICOS */
.ktr2-btn-outline { padding: 7px 14px; background: #fff !important; border: 1px solid #1a1a1a !important; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer; color: #1a1a1a !important; transition: background .15s, color .15s; }
.ktr2-btn-outline:hover, .ktr2-btn-outline:focus { background: #1a1a1a !important; color: #fff !important; outline: none; }
.ktr2-btn-verde { background: #27ae60; color: #fff; border: none; padding: 7px 16px; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; }

/* CARRITO — cantidad bloqueada y botón modificar */
.kpe-qty-bloqueada { font-weight: 700; color: #555; font-size: 13px; }
.kpe-btn-modificar { display: inline-block; margin-top: 4px; font-size: 11px; color: #fff !important; background: #2980b9; padding: 3px 10px; border-radius: 3px; text-decoration: none !important; }
.kpe-btn-modificar:hover { background: #1a6091 !important; color: #fff !important; }

/* MENSAJE AÑADIDO AL CARRITO */
.ktr2-messages { margin-top: 16px; }
.ktr2-message { padding: 12px 18px; border-radius: 6px; margin-bottom: 10px; font-size: 14px; }
.ktr2-message.success { background-color: #d4edda; border: 1px solid #c3e6cb; color: #155724; }
.ktr2-message.error   { background-color: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; }

.ktr2-ayuda-seccion { margin-bottom: 10px; }
.ktr2-ayuda-seccion strong { font-size: 12px; font-weight: 700; }
.ktr2-ayuda-seccion p { margin: 2px 0 4px; }
.ktr2-ayuda-seccion ul { padding-left: 14px; margin: 0; }
.ktr2-ayuda-seccion li { margin-bottom: 2px; }
.ktr2-ayuda-nota { border-top: 1px solid #eee; padding-top: 8px; }
