/* King Store Panamá — maquetación premium.
   Rejilla: 2 productos en móvil, 3 en tablet, 4 en desktop, 5 en pantallas grandes. */

body {
  background: var(--ksp-paper);
  color: var(--ksp-ink);
  font-family: var(--ksp-sans);
  text-rendering: optimizeLegibility;
}
::selection { background: #e7d3ae; color: #171614; }
:focus-visible { outline: 2px solid var(--ksp-gold); outline-offset: 3px; }
button, input, select, textarea { font: inherit; }

.ksp-wrap { width: min(1440px, calc(100% - 1.5rem)); margin: 0 auto; }
@media (min-width: 768px) { .ksp-wrap { width: min(1440px, calc(100% - 3rem)); } }
.ksp-display-title { font-family: var(--ksp-display); font-weight: 500; letter-spacing: -0.03em; line-height: 0.92; font-size: clamp(2.3rem, 5vw, 4.1rem); margin: 0.4rem 0; }
.ksp-white { color: #fff; }
.ksp-eyebrow { color: var(--ksp-gold); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.7rem; font-weight: 700; }
.ksp-section-title { font-family: var(--ksp-display); font-weight: 500; letter-spacing: -0.03em; line-height: 0.92; font-size: clamp(2.2rem, 4.6vw, 3.8rem); margin: 0.4rem 0 1rem; }
.ksp-gold-caps { color: var(--ksp-gold-soft); letter-spacing: 0.28em; font-size: 0.58rem; }
.ksp-note { color: var(--ksp-mute); font-size: 0.8rem; }
.ksp-price { font-weight: 680; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ksp-price del { color: var(--ksp-mute); font-weight: 450; margin-left: 0.35rem; }
.ksp-section { padding: 3.6rem 0; }

/* Barra superior */
.ksp-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 2.15rem; padding: 0.35rem 1rem; background: #141311;
  color: rgba(255,255,255,0.78); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
}
.ksp-topbar strong { color: var(--ksp-gold-soft); }
.ksp-dot-sep { margin: 0 0.5rem; color: rgba(255,255,255,0.35); }
.ksp-topbar-status { display: none; align-items: center; gap: 0.4rem; }
@media (min-width: 640px) { .ksp-topbar-status { display: flex; } }
.ksp-status-dot { width: 0.4rem; height: 0.4rem; border-radius: 99px; display: inline-block; }
.ksp-status-dot.on { background: #b7d7c4; }
.ksp-status-dot.off { background: #d7b08a; }

/* Header fijo / sticky garantizado */
header#masthead,
.ksp-sticky-wrap {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.12) !important;
}
.ksp-header { background: rgba(243,239,232,0.95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--ksp-line); }
.ksp-header-row { display: flex; align-items: center; gap: 0.75rem; min-height: 4.4rem; overflow: visible; }
/* Contenedor de marca sin enlaces anidados: evita que el logo/corona escape del header */
.ksp-brand { display: flex; align-items: center; flex: 0 0 auto; min-width: 0; max-width: 190px; overflow: hidden; }
.ksp-logo,
.ksp-brand .custom-logo-link { display: flex; align-items: center; gap: 0.6rem; min-width: 0; max-width: 100%; text-decoration: none; }
.ksp-logo img,
.ksp-brand .custom-logo {
  display: block !important;
  width: auto !important;
  height: 2rem !important;
  max-width: 150px !important;
  max-height: 2rem !important;
  object-fit: contain;
  object-position: left center;
  margin: 0 !important;
}
/* Ninguna corona decorativa puede aparecer fuera del área de marca */
.ksp-header .ksp-pre-crown { display: none !important; }
@media (min-width: 1024px) {
  .ksp-brand { max-width: 190px; }
  .ksp-logo img,
  .ksp-brand .custom-logo { height: 2.25rem !important; max-width: 190px !important; max-height: 2.25rem !important; }
}
.ksp-logo-mark { width: 2.15rem; height: 2.15rem; border: 1px solid var(--ksp-gold); color: var(--ksp-gold); border-radius: 999px; display: grid; place-items: center; }
.ksp-wordmark { line-height: 0.85; }
.ksp-wordmark b { display: block; letter-spacing: 0.16em; font-size: 0.8rem; }
.ksp-wordmark span { display: block; margin-top: 0.22rem; color: var(--ksp-gold); letter-spacing: 0.28em; font-size: 0.58rem; }
.ksp-nav { display: none; align-items: center; gap: 1.2rem; margin-left: 1.5rem; }
.ksp-nav a, .ksp-nav-link { background: none; border: 0; cursor: pointer; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.ksp-nav a:hover, .ksp-nav-link:hover { color: var(--ksp-gold); }
.ksp-mega-trigger { position: static; }
.ksp-mega { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ksp-card); border-bottom: 1px solid var(--ksp-line); box-shadow: 0 24px 50px rgba(23,22,20,0.08); }
.ksp-mega-trigger:hover .ksp-mega, .ksp-mega-trigger:focus-within .ksp-mega { display: block; }
.ksp-mega-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.2rem; padding: 1.6rem 0; }
.ksp-mega-cat { font-family: var(--ksp-display); font-size: 1.5rem; display: block; margin-bottom: 0.6rem; }
.ksp-mega-item { display: flex; gap: 0.5rem; align-items: center; padding: 0.3rem 0; font-size: 0.85rem; }
.ksp-mega-item img { width: 2.4rem; height: 3rem; object-fit: cover; }
.ksp-search { display: none; position: relative; margin-left: auto; width: min(360px, 26vw); align-items: center; gap: 0.5rem; border: 1px solid var(--ksp-line); background: #fff; border-radius: 999px; padding: 0 0.95rem; height: 2.7rem; }
.ksp-search:focus-within { border-color: var(--ksp-gold); }
.ksp-search input { border: 0; outline: 0; background: transparent; width: 100%; }
.ksp-search-results { display: none; position: absolute; left: 0; right: 0; top: 3rem; background: var(--ksp-card); border: 1px solid var(--ksp-line); box-shadow: 0 18px 40px rgba(0,0,0,0.08); z-index: 50; }
.ksp-search-results.is-open { display: block; }
.ksp-search-result { display: flex; gap: 0.6rem; align-items: center; padding: 0.5rem 0.7rem; }
.ksp-search-result:hover { background: var(--ksp-paper); }
.ksp-search-result img { width: 2.4rem; height: 3rem; object-fit: cover; }
.ksp-search-empty { padding: 0.7rem; color: var(--ksp-mute); font-size: 0.85rem; }
.ksp-header-actions { display: flex; align-items: center; gap: 0.35rem; margin-left: auto; }
/* Cuenta en cabecera, junto al buscador y al carrito */
.ksp-account {
	display: inline-flex; align-items: center; gap: 0.4rem;
	min-height: 2.6rem; padding: 0.35rem 0.85rem;
	border: 1px solid var(--ksp-line); border-radius: 999px;
	background: transparent; color: var(--ksp-ink); text-decoration: none;
	font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.ksp-account:hover { border-color: var(--ksp-gold); color: var(--ksp-gold); }
.ksp-account-label { display: none; }
@media (min-width: 640px) { .ksp-account-label { display: inline; } }
.ksp-icon-btn { width: 2.6rem; height: 2.6rem; border-radius: 999px; border: 1px solid transparent; background: none; display: grid; place-items: center; position: relative; cursor: pointer; }
.ksp-icon-btn:hover { background: #fff; border-color: var(--ksp-line); }
.ksp-cart-count { position: absolute; top: 0.1rem; right: 0; min-width: 1.05rem; height: 1.05rem; padding: 0 0.2rem; border-radius: 99px; background: var(--ksp-gold); color: #171614; font-size: 0.62rem; font-weight: 700; display: grid; place-items: center; }
.ksp-theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  flex: none; min-width: 2.5rem; height: 2.55rem; padding: 0 0.7rem;
  border: 1px solid var(--ksp-line); border-radius: 999px;
  background: var(--ksp-card); color: var(--ksp-ink);
  cursor: pointer; font: 650 0.72rem/1 var(--ksp-sans);
}
.ksp-theme-toggle:hover { border-color: var(--ksp-gold); color: var(--ksp-gold); }
.ksp-theme-toggle:focus-visible { outline: 2px solid var(--ksp-gold); outline-offset: 2px; }
.ksp-theme-toggle-icon { font-size: 1.1rem; line-height: 1; }
.ksp-theme-toggle-label { display: none; white-space: nowrap; }
@media (min-width: 1280px) { .ksp-theme-toggle-label { display: inline; } }
@media (max-width: 480px) {
  .ksp-header-row { gap: 0.3rem; }
  .ksp-brand { max-width: 120px; }
  .ksp-brand img { max-width: 120px !important; }
  .ksp-header-actions { gap: 0; }
  .ksp-header-actions .ksp-icon-btn { width: 2.25rem; height: 2.25rem; }
  .ksp-account { padding: 0.25rem 0.45rem; min-height: 2.25rem; }
  .ksp-theme-toggle { width: 2.25rem; min-width: 2.25rem; height: 2.25rem; padding: 0; }
}
@media (min-width: 1024px) {
  .ksp-nav { display: flex; }
  .ksp-search { display: flex; }
  .ksp-only-mobile { display: none; }
}
@media (max-width: 1023px) {
  .ksp-only-desktop { display: none; }
}
@media (max-width: 639px) { .ksp-only-tablet-up { display: none; } }

/* Botones */
.ksp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 2.7rem; padding: 0.55rem 0.9rem; border-radius: 999px;
  letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.68rem; font-weight: 700;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ksp-btn:active { transform: scale(0.98); }
.ksp-btn-buy { background: var(--ksp-btn); color: #fff; width: 100%; }
.ksp-btn-buy:hover { background: var(--ksp-gold); color: #171614; }
.ksp-btn-cart { background: transparent; color: var(--ksp-ink); border-color: var(--ksp-ink); width: 100%; }
.ksp-btn-cart:hover { background: var(--ksp-ink); color: #fff; }
.ksp-btn-wa { background: #1f6b4a; color: #fff; width: 100%; }
.ksp-btn-wa:hover { background: #184f37; }
.ksp-btn-light { background: #fff; color: var(--ksp-ink); width: auto; }
.ksp-disabled { opacity: 0.45; cursor: not-allowed; }
@media (max-width: 420px) {
  .ksp-btn { letter-spacing: 0.04em; font-size: 0.6rem; min-height: 2.35rem; padding-inline: 0.4rem; }
}

/* Tarjetas de producto: 2 / 3 / 4 / 5 */
.ksp-product-grid, ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 0.8rem 0.6rem;
  width: 100%;
  list-style: none; margin: 1.5rem 0; padding: 0;
  clear: both;
}
@media (min-width: 768px) { .ksp-product-grid, ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem 1rem; } }
@media (min-width: 1024px) { .ksp-product-grid, ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 1.1rem; } }
@media (min-width: 1536px) { .ksp-product-grid, ul.products { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
ul.products::before, ul.products::after { display: none !important; content: none !important; }
ul.products li.product { width: auto !important; max-width: none !important; height: 100%; margin: 0 !important; float: none !important; clear: none !important; }
.ksp-card {
  min-width: 0; height: 100%; display: flex; flex-direction: column;
  background: var(--ksp-card); border: 1px solid var(--ksp-line); padding: 0;
  overflow: hidden; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.ksp-card:hover { transform: translateY(-3px); border-color: var(--ksp-gold); box-shadow: 0 14px 36px rgba(0,0,0,0.16); }
/* Fotos completas: los productos del catálogo publicado son imágenes cuadradas */
.ksp-card-media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #f4f0e8; }
.ksp-card-media img {
  display: block; width: 100% !important; height: 100% !important;
  max-width: none !important; margin: 0 !important; padding: 0.5rem;
  object-fit: contain; object-position: center;
  transition: transform 0.35s ease;
}
.ksp-card:hover .ksp-card-media img { transform: scale(1.025); }
.ksp-card-badges { position: absolute; top: 0.45rem; left: 0.45rem; right: 0.45rem; display: flex; justify-content: space-between; z-index: 2; pointer-events: none; }
.ksp-chip { background: var(--ksp-gold-soft); color: #171614; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; padding: 0.22rem 0.4rem; }
.ksp-chip-alt { background: #171614; color: #fff; }
.ksp-card-body { display: flex; flex-direction: column; padding: 0.8rem; flex: 1; min-height: 0; }
.ksp-card-cat { font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ksp-mute); text-decoration: none; }
.ksp-card h3 { font-size: 0.9rem; line-height: 1.25; font-weight: 600; min-height: 2.5em; margin: 0.3rem 0; overflow-wrap: anywhere; }
.ksp-card h3 a { text-decoration: none; }
.ksp-card-rating { min-height: 1rem; font-size: 0.75rem; color: var(--ksp-gold); }
.ksp-card .ksp-price { margin: 0.25rem 0 0; min-height: 1.45rem; }
.ksp-pay-strip { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; margin: 0.3rem 0 0; }
.ksp-pay-badge {
  display: inline-flex; align-items: center; justify-content: center;
  height: 20px; padding: 0 0.4rem; border-radius: 4px;
  background: #fff; border: 1px solid var(--ksp-line, #e5ddcf);
}
.ksp-pay-badge img { max-width: 100%; max-height: 100%; width: auto; height: 13px; object-fit: contain; display: block; }
.ksp-pay-fallback { font-size: 0.56rem; font-weight: 800; letter-spacing: 0.02em; color: var(--ksp-mute); text-transform: uppercase; }
.ksp-pay-strip-home {
  margin: 0.9rem 0 0; gap: 0.5rem;
}
.ksp-pay-strip-home .ksp-pay-badge {
  height: 28px; padding: 0 0.65rem; border-radius: 6px;
  border-color: var(--ksp-line, #d8cdb8); box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.ksp-pay-strip-home .ksp-pay-badge img { height: 17px; max-height: 100%; }
.ksp-pay-strip-home .ksp-pay-fallback { font-size: 0.66rem; }
.ksp-pay-label {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.02em;
  color: var(--ksp-text, #171614); margin-right: 0.3rem;
}
.ksp-stock { min-height: 1.1rem; margin: 0.2rem 0 0; font-size: 0.7rem; }
.ksp-stock-in { color: #2f6b4f; }
.ksp-stock-low { color: #8a5a22; }
.ksp-stock-out { color: #8c3a32; }
.ksp-card-actions { margin-top: auto; display: grid; grid-template-columns: 1fr; gap: 0.4rem; padding-top: 0.75rem; }

/* BOTONES SIEMPRE IDÉNTICOS en cualquier tarjeta: producto simple (añade con
   clase .button de WooCommerce), variable (enlace), de bloques
   (.wp-block-button__link) o agotado (span). Sin esto, el CSS del núcleo
   cambiaba fondo, radio y altura de un botón a otro. */
.ksp-card-actions .ksp-btn,
.ksp-card-actions a.button,
.ksp-card-actions button.button,
.ksp-card-actions .wp-block-button__link {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	margin: 0 !important;
	min-width: 0 !important;
	width: 100% !important;
	min-height: 2.5rem !important;
	height: 2.5rem !important;
	padding: 0.35rem 0.55rem !important;
	border: 1px solid transparent !important;
	border-radius: 999px !important;
	font-family: var(--ksp-sans) !important;
	font-size: 0.66rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em !important;
	line-height: 1.1 !important;
	text-transform: uppercase !important;
	text-align: center !important;
	text-decoration: none !important;
	white-space: normal;
	background: transparent !important;
	appearance: none;
}
.ksp-card-actions .ksp-btn-buy,
.ksp-card-actions a.ksp-btn-buy,
.ksp-card-actions .ksp-btn-buy.button,
.ksp-card-actions .ksp-btn-buy.wp-block-button__link {
	background: var(--ksp-btn) !important;
	color: #fff !important;
	border-color: transparent !important;
}
.ksp-card-actions .ksp-btn-cart,
.ksp-card-actions a.ksp-btn-cart,
.ksp-card-actions .ksp-btn-cart.button,
.ksp-card-actions .ksp-btn-cart.ajax_add_to_cart,
.ksp-card-actions .ksp-btn-cart.wp-block-button__link {
	background: transparent !important;
	color: var(--ksp-ink) !important;
	border-color: var(--ksp-ink) !important;
}
.ksp-card-actions .ksp-btn-cart:hover { background: var(--ksp-ink) !important; color: #fff !important; }
.ksp-card-actions .ksp-btn-buy:hover { background: var(--ksp-gold) !important; color: #171614 !important; }
/* Agotado: misma forma que el resto, solo atenuado (sin borde punteado) */
.ksp-card-actions .ksp-disabled,
.ksp-card-actions .ksp-disabled.button,
.ksp-card-actions .ksp-disabled.wp-block-button__link {
	opacity: 1 !important;
	background: transparent !important;
	color: var(--ksp-mute) !important;
	border: 1px solid var(--ksp-line) !important;
	border-style: solid !important;
	pointer-events: none !important;
	cursor: not-allowed !important;
}
@media (max-width: 420px) {
	.ksp-card-actions .ksp-btn,
	.ksp-card-actions a.button,
	.ksp-card-actions button.button,
	.ksp-card-actions .wp-block-button__link {
		font-size: 0.6rem !important;
		letter-spacing: 0.05em !important;
		min-height: 2.35rem !important;
		height: 2.35rem !important;
	}
}
@media (max-width: 420px) {
  .ksp-card-body { padding: 0.55rem; }
  .ksp-card h3 { font-size: 0.78rem; min-height: 2.7em; }
  .ksp-card-cat { font-size: 0.52rem; letter-spacing: 0.08em; }
  .ksp-card-actions { gap: 0.3rem; }
}

/* Hero */
.ksp-hero { display: grid; background: var(--ksp-card); }
/* Móvil / tablet: la imagen tiene su propia altura (aspect-ratio) y la
   tarjeta del producto destacado va DEBAJO, en flujo normal — así nunca
   puede tapar la imagen principal. */
.ksp-hero-media {
  position: relative;
  background: #e7e1d8;
  overflow: hidden;
  order: -1;
  display: flex;
  flex-direction: column;
}
.ksp-hero-media-link { display: block; position: relative; width: 100%; cursor: pointer; }
.ksp-hero-media picture {
  position: relative;
  display: block;
  width: 100%;
}
.ksp-hero-media > img,
.ksp-hero-media picture img { width: 100%; height: auto; display: block; }
.ksp-hero-placeholder { position: relative; width: 100%; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #efe8dc, #d8cfc0); }
.ksp-hero-copy { padding: 2.2rem 1.15rem 2.4rem; display: flex; flex-direction: column; justify-content: center; }
.ksp-hero-kicker { color: var(--ksp-gold); letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.72rem; font-weight: 650; margin: 0; }
.ksp-hero-title { font-family: var(--ksp-display); font-weight: 500; letter-spacing: -0.035em; line-height: 0.9; font-size: clamp(3rem, 11vw, 4.6rem); margin: 0.7rem 0; }
.ksp-hero-sub { font-size: 1.1rem; max-width: 34rem; margin: 0; }
.ksp-hero-body { color: var(--ksp-mute); max-width: 34rem; font-size: 0.9rem; }
.ksp-hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.ksp-hero-actions .ksp-btn { width: auto; padding-inline: 1.4rem; }
.ksp-shipping-note {
  display: block; margin: 0.7rem 0 0;
  font-size: 0.72rem; color: var(--ksp-mute); max-width: 34rem; opacity: 0.85;
}
.ksp-shipping-note-product { margin: 0.5rem 0 0; }
/* Tarjeta del producto destacado: EN FLUJO NORMAL bajo la imagen (móvil).
   Varias tarjetas apiladas (grid con la misma celda) que rotan con JS;
   el grid hace que el contenedor mida siempre lo que ocupa la más alta,
   así la rotación nunca provoca saltos de layout. */
.ksp-float-stack { position: relative; display: grid; }
.ksp-float-card {
  grid-area: 1 / 1;
  display: flex; gap: 0.6rem; align-items: center;
  background: #fff;
  padding: 0.6rem 0.75rem;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border-top: 1px solid var(--ksp-line);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.ksp-float-card.is-active { opacity: 1; pointer-events: auto; }
.ksp-float-card img { width: 2.6rem; height: 3.2rem; object-fit: cover; flex: none; }
.ksp-float-card strong { display: block; font-size: 0.85rem; line-height: 1.2; }
.ksp-float-card .ksp-card-cat { font-size: 0.62rem; }
.ksp-float-card .ksp-price { font-size: 0.8rem; }
@media (min-width: 980px) {
  .ksp-hero { grid-template-columns: 1.02fr 0.98fr; min-height: 680px; }
  /* Escritorio: la imagen fija su propia altura automáticamente (sin
     recortar ni forzar un recuadro); el fondo del bloque solo rellena si
     la imagen es más baja que la columna de texto, y crece si es más
     alta. Así se ajusta sola a cada foto que se suba. */
  .ksp-hero-media {
    order: 0; min-height: 680px; display: flex;
    align-items: center; justify-content: center;
  }
  .ksp-hero-media-link {
    position: relative; inset: auto; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
  }
  .ksp-hero-media picture { position: relative; inset: auto; width: 100%; height: auto; }
  .ksp-hero-media > img,
  .ksp-hero-media picture img { position: static; width: 100%; height: auto; }
  .ksp-hero-placeholder { position: absolute; inset: 0; aspect-ratio: auto; }
  .ksp-hero-copy { padding: 4.5rem 4.5rem 4rem 6vw; }
  .ksp-hero-title { font-size: clamp(4.4rem, 6vw, 7rem); }
  .ksp-float-stack {
    position: absolute; left: 1.4rem; bottom: 1.4rem; width: min(300px, 80%);
  }
  .ksp-float-card {
    border-top: 0; backdrop-filter: blur(10px); background: rgba(255,253,251,0.94);
    box-shadow: 0 6px 18px rgba(0,0,0,0.14);
  }
  .ksp-float-card img { width: 3.2rem; height: 4rem; }
  .ksp-float-card strong { font-size: 0.95rem; }
  .ksp-float-card .ksp-price { font-size: 0.9rem; }
}

/* Categorías visuales */
.ksp-cat-bento { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.ksp-cat-card { position: relative; min-height: 210px; overflow: hidden; background: #ddd6cb; color: #fff; display: block; }
.ksp-cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.ksp-cat-card:hover img { transform: scale(1.06); }
.ksp-cat-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,14,12,0.05), rgba(16,14,12,0.72)); }
.ksp-cat-placeholder {
	position: absolute; inset: 0;
	display: grid; place-items: center;
	background: linear-gradient(135deg, #2b2925 0%, #171614 55%, #2f261a 100%);
	color: #c8a45d;
}
.ksp-cat-placeholder svg { opacity: 0.9; }
.ksp-cat-meta { position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.9rem; z-index: 1; }
.ksp-cat-meta small { letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.68rem; }
.ksp-cat-meta h3 { font-family: var(--ksp-display); font-size: 2rem; line-height: 0.9; margin: 0.2rem 0 0; }
.ksp-cat-lg { grid-column: span 2; min-height: 280px; }
@media (min-width: 900px) {
  .ksp-cat-bento { grid-template-columns: 1.35fr 1fr 1fr; grid-auto-rows: 250px; gap: 0.9rem; }
  .ksp-cat-lg { grid-column: auto; grid-row: span 2; min-height: 0; height: 100%; }
}

/* Categorías visuales: círculos con desplazamiento horizontal en móvil */
.ksp-cat-circles {
  display: flex; gap: 1.3rem; overflow-x: auto; padding: 0.3rem 0.1rem 0.9rem;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.ksp-cat-circle {
  flex: 0 0 auto; width: 92px; display: flex; flex-direction: column; align-items: center;
  gap: 0.55rem; text-decoration: none; scroll-snap-align: start;
}
.ksp-cat-circle-img {
  width: 88px; height: 88px; border-radius: 50%; overflow: hidden;
  background: #ddd6cb; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--ksp-line, #e5ddcf); transition: border-color 0.2s ease, transform 0.2s ease;
}
.ksp-cat-circle:hover .ksp-cat-circle-img { border-color: var(--ksp-gold); transform: translateY(-2px); }
.ksp-cat-circle-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ksp-cat-circle-img .ksp-cat-placeholder {
  position: static; width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, #2b2925 0%, #171614 55%, #2f261a 100%); color: #c8a45d;
}
.ksp-cat-circle-label {
  font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700;
  text-align: center; color: var(--ksp-ink); line-height: 1.2; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (min-width: 900px) {
  .ksp-cat-circles { flex-wrap: wrap; justify-content: center; overflow: visible; padding-bottom: 0; }
  .ksp-cat-circle-img { width: 108px; height: 108px; }
}

/* Carrusel dinámico de productos (banner bajo el hero) */
.ksp-carousel-section { margin-bottom: 2rem; }
.ksp-carousel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.ksp-carousel-intro { color: var(--ksp-mute); max-width: 34rem; margin: 0.3rem 0 0; }
.ksp-carousel-controls { display: flex; gap: 0.5rem; flex: none; }
.ksp-carousel-btn {
  width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--ksp-line, #e5ddcf);
  background: transparent; color: var(--ksp-ink); font-size: 1rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: background 0.2s ease, color 0.2s ease;
}
.ksp-carousel-btn:hover { background: var(--ksp-ink); color: #fff; }
.ksp-carousel-track {
  display: flex; gap: 0.9rem; overflow-x: auto; list-style: none; margin: 1.4rem 0 0; padding: 0.2rem 0.1rem 1rem;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scroll-behavior: smooth;
}
.ksp-carousel-track > li {
  flex: 0 0 auto; width: 62vw; max-width: 220px; scroll-snap-align: start;
}
@media (min-width: 640px) { .ksp-carousel-track > li { width: 42vw; max-width: 240px; } }
@media (min-width: 900px) { .ksp-carousel-track > li { width: 26vw; max-width: 250px; } }
@media (min-width: 1280px) { .ksp-carousel-track > li { width: 19vw; max-width: 260px; } }

/* Aviso flotante «Producto agregado al carrito», 4s y se oculta sola */
.ksp-toast {
  position: fixed; left: 50%; bottom: 1.1rem; transform: translate(-50%, 12px);
  background: var(--ksp-ink); color: #fff; padding: 0.75rem 1.2rem; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; box-shadow: 0 16px 40px rgba(0,0,0,0.22);
  z-index: 100000; opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: calc(100% - 2rem); text-align: center;
}
.ksp-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Carrito: el envío se calcula solo en el checkout, no aquí. Refuerzo
   visual por si algún bloque o caché llegara a mostrar el formulario. */
.woocommerce-cart .woocommerce-shipping-calculator,
.woocommerce-cart .shipping-calculator-form,
.woocommerce-cart .wc-block-cart__shipping-option-calculator,
.woocommerce-cart .wc-block-components-shipping-calculator { display: none !important; }
.woocommerce-cart .cart .coupon,
.woocommerce-cart .wc-block-cart__coupon,
.woocommerce-cart .wc-block-components-totals-coupon { display: none !important; }
.ksp-cart-shipping-note { color: var(--ksp-mute); font-size: 0.82rem; margin-top: 0.5rem; }

/* Banner promocional y WhatsApp */
.ksp-promo { display: grid; background: #141311; color: #fff; min-height: 380px; margin-bottom: 2rem; }
.ksp-promo-copy { padding: 2.4rem 1.4rem; display: flex; flex-direction: column; justify-content: center; gap: 0.6rem; }
.ksp-wa-section { background: var(--ksp-ink); color: #fff; padding: 2.4rem 1.4rem; margin-bottom: 3rem; }
.ksp-wa-section p { color: rgba(255,255,255,0.78); max-width: 34rem; }
.ksp-wa-section .ksp-btn { width: auto; }

/* Beneficios */
.ksp-benefit-grid { display: grid; gap: 0.8rem; }
@media (min-width: 800px) { .ksp-benefit-grid { grid-template-columns: repeat(4, 1fr); } }
.ksp-benefit { background: var(--ksp-card); border: 1px solid var(--ksp-line); padding: 1.15rem; min-height: 170px; }
.ksp-benefit em { font-family: var(--ksp-display); font-style: italic; color: var(--ksp-gold); font-size: 1.5rem; }
.ksp-benefit h3 { margin: 0.4rem 0; }
.ksp-benefit p { color: var(--ksp-mute); font-size: 0.9rem; margin: 0; }

/* Drawers: menú, carrito, filtros
   Deben quedar SIEMPRE por encima de todo lo demás (cabecera fija z-index
   9999, e incluso la barra de administrador de WordPress si se ve el sitio
   con sesión de administrador iniciada), o la cabecera tapa la parte
   superior del panel y no se ven los primeros productos del carrito. */
.ksp-drawer-back { position: fixed; inset: 0; background: rgba(20,16,12,0.48); z-index: 999998; display: none; }
body.ksp-cart-open .ksp-drawer-back, body.ksp-menu-open .ksp-drawer-back { display: block; }
.ksp-drawer { position: fixed; top: 0; bottom: 0; right: 0; width: min(430px, 100%); background: var(--ksp-card); z-index: 999999; display: flex; flex-direction: column; transform: translateX(102%); transition: transform 0.25s ease; }
/* Red de seguridad adicional: si por lo que sea algo sigue quedando por
   encima, baja la cabecera fija mientras el panel está abierto. */
body.ksp-cart-open header#masthead,
body.ksp-cart-open .ksp-sticky-wrap,
body.ksp-menu-open header#masthead,
body.ksp-menu-open .ksp-sticky-wrap { z-index: 1 !important; }
.ksp-drawer.ksp-left { left: 0; right: auto; transform: translateX(-102%); }
body.ksp-cart-open .ksp-drawer:not(.ksp-left), body.ksp-menu-open .ksp-drawer.ksp-left { transform: translateX(0); }
.ksp-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--ksp-line); }
.ksp-drawer-body { flex: 1; overflow: auto; padding: 1rem 1.1rem; }
.ksp-drawer-body > a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--ksp-line); text-decoration: none; font-size: 1.05rem; }
.ksp-drawer-foot { display: grid; gap: 0.5rem; padding: 1rem 1.1rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--ksp-line); }
/* Mini-carrito nativo de WooCommerce: ocultar botones duplicados generados por WC bajo el subtotal */
.ksp-drawer .widget_shopping_cart_content .woocommerce-mini-cart__buttons,
.ksp-drawer .widget_shopping_cart_content p.buttons {
  display: none !important;
}

/* Mini-carrito nativo de WooCommerce dentro del panel del tema */
.ksp-drawer .widget_shopping_cart_content ul.woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.ksp-drawer li.woocommerce-mini-cart-item { display: flex; gap: 0.75rem; align-items: center; padding: 0.7rem 0; border-bottom: 1px solid var(--ksp-line); position: relative; }
.ksp-drawer li.woocommerce-mini-cart-item img { width: 3.4rem; height: 3.4rem; object-fit: contain; background: #f4f0e8; flex: none; margin: 0; }
.ksp-drawer li.woocommerce-mini-cart-item a:not(.remove) { color: var(--ksp-ink); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.ksp-drawer li.woocommerce-mini-cart-item .quantity { display: block; color: var(--ksp-mute); font-size: 0.78rem; }
.ksp-drawer .widget_shopping_cart_inner .total,
.ksp-drawer .woocommerce-mini-cart__total {
	display: flex; justify-content: space-between; align-items: center;
	padding: 0.8rem 0 0; margin: 0.5rem 0 0; font-weight: 700;
	border-top: 1px solid var(--ksp-line); color: var(--ksp-ink);
}
.ksp-drawer li.woocommerce-mini-cart-item { padding-right: 2rem; }
.ksp-mini-item { display: flex; gap: 0.75rem; padding: 0.7rem 0; border-bottom: 1px solid var(--ksp-line); }
.ksp-mini-item img { width: 3.4rem; height: 4.2rem; object-fit: cover; }
.ksp-mini-name { margin: 0; font-weight: 600; font-size: 0.92rem; }
.ksp-mini-var { margin: 0; color: var(--ksp-mute); font-size: 0.8rem; }
.ksp-mini-total { display: flex; justify-content: space-between; margin-top: 0.8rem; }
.ksp-mini-added { color: var(--ksp-gold); font-size: 0.8rem; }
.ksp-remove { color: #8c3a32; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; background: none; border: 0; padding: 0.2rem 0; cursor: pointer; }
.ksp-empty { color: var(--ksp-mute); }

/* Overlay de búsqueda móvil */
.ksp-search-overlay { display: none; position: fixed; inset: 0; z-index: 999997; background: var(--ksp-paper); padding: 1rem; }
body.ksp-search-open .ksp-search-overlay { display: block; }
.ksp-search-overlay form { position: relative; display: flex; gap: 0.5rem; align-items: center; background: #fff; border: 1px solid var(--ksp-line); border-radius: 999px; padding: 0 0.95rem; height: 2.8rem; }
.ksp-search-overlay input { border: 0; outline: 0; width: 100%; background: transparent; }

/* Producto individual */
.ksp-single-wrap { display: grid; gap: 2rem; padding-bottom: 5rem; }
@media (min-width: 980px) { .ksp-single-wrap { grid-template-columns: 1fr 1fr; padding-bottom: 2rem; } }
.ksp-single-actions { display: grid; gap: 0.5rem; margin-top: 1rem; }
/* Barra de compra fija/sticky en la página de producto al hacer scroll */
.ksp-buy-bar {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 990 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom)) !important;
  background: rgba(24, 23, 20, 0.95) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-top: 1px solid var(--ksp-line) !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25) !important;
  transform: translateY(110%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  pointer-events: none;
}
.ksp-buy-bar.ksp-show {
  transform: translateY(0) !important;
  pointer-events: auto !important;
}
/* Miniatura pequeña del producto, pegada a la esquina izquierda de la barra */
.ksp-buy-bar-thumb {
  width: 2.2rem !important;
  height: 2.2rem !important;
  min-width: 2.2rem !important;
  max-width: 2.2rem !important;
  max-height: 2.2rem !important;
  object-fit: cover !important;
  background: #fff !important;
  border-radius: 4px !important;
  flex: none !important;
  margin-right: auto !important;
}
.ksp-buy-bar .ksp-btn {
  max-width: 260px !important;
  width: auto !important;
  flex: none !important;
  margin: 0 !important;
}
@media (max-width: 599px) {
  .ksp-buy-bar .ksp-btn {
    max-width: none !important;
    width: auto !important;
    padding-inline: 1.1rem !important;
  }
}

/* WhatsApp flotante */
.ksp-wa-float { position: fixed; right: 0.85rem; bottom: 0.9rem; z-index: 40; width: 3.35rem; height: 3.35rem; border-radius: 999px; background: #1f6b4a; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(31,107,74,0.28); }
@media (max-width: 899px) { .ksp-wa-float { bottom: calc(4.8rem + env(safe-area-inset-bottom)); } }
.ksp-notice { position: fixed; left: 0.8rem; bottom: 0.8rem; z-index: 50; width: min(320px, calc(100% - 1.6rem)); background: var(--ksp-ink); color: #fff; padding: 0.85rem 0.95rem; box-shadow: 0 16px 40px rgba(0,0,0,0.18); }
.ksp-notice-kicker { color: var(--ksp-gold-soft); letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.62rem; margin: 0; }
.ksp-notice p:last-child { margin: 0.3rem 0 0; font-size: 0.85rem; }

/* Contenido, catálogo, checkout y carrito de WooCommerce */
.ksp-content-wrap { max-width: 46rem; padding: 3rem 0; }
.ksp-shop-wrap { max-width: 1440px; padding: 2.25rem 0 4rem; }
.ksp-shop-wrap .ksp-prose { max-width: none; width: 100%; }
.ksp-shop-wrap .woocommerce { width: 100%; }
.ksp-prose { line-height: 1.7; }
/* Toolbar ordenada: resultado izquierda, ordenamiento derecha */
.ksp-shop-wrap .woocommerce-result-count { float: none; display: inline-flex; margin: 0.6rem 0 1.2rem; color: var(--ksp-mute); font-size: 0.85rem; }
.ksp-shop-wrap .woocommerce-ordering { float: right; margin: 0 0 1.2rem; }
.ksp-shop-wrap .woocommerce-ordering select {
  min-height: 2.6rem; padding: 0.45rem 2.2rem 0.45rem 0.75rem;
  border: 1px solid var(--ksp-line); background: var(--ksp-card); color: var(--ksp-ink);
}
@media (max-width: 639px) {
  .ksp-shop-wrap { padding-top: 1.5rem; }
  .ksp-shop-wrap .woocommerce-result-count,
  .ksp-shop-wrap .woocommerce-ordering { display: block; float: none; width: 100%; margin: 0.45rem 0; }
  .ksp-shop-wrap .woocommerce-ordering select { width: 100%; }
}
.ksp-post { padding: 1.5rem 0; border-bottom: 1px solid var(--ksp-line); }
.woocommerce-breadcrumb { font-size: 0.78rem; color: var(--ksp-mute); margin-bottom: 1rem; }
.woocommerce .quantity .qty { min-height: 2.6rem; border: 1px solid var(--ksp-line); }
table.shop_table { width: 100%; border-collapse: collapse; background: var(--ksp-card); }
table.shop_table th, table.shop_table td { border-bottom: 1px solid var(--ksp-line); padding: 0.8rem; text-align: left; }
/* Aviso informativo en el checkout nativo (bloque o clásico). */
.ksp-order-notice {
  margin: 0.8rem 0 0;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--ksp-gold);
  border-radius: 0.35rem;
  background: var(--ksp-card);
  color: var(--ksp-ink);
  font-size: 0.87rem;
  line-height: 1.5;
}
.ksp-order-notice a { color: var(--ksp-gold); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
/* Enlace normal de términos y condiciones (se abre en una pestaña nueva;
   ya no despliega el texto completo dentro del checkout). */
.ksp-terms-link { color: var(--ksp-gold); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
/* Red de seguridad: si por algún motivo el bloque de texto completo de los
   términos sigue en el HTML, se mantiene siempre oculto. */
.woocommerce-terms-and-conditions { display: none !important; }

/* ===== Checkout: método de envío, ordenado como una tarjeta y no como
   una fila de tabla apretada ===== */
.woocommerce-checkout table.shop_table tr.shipping,
.woocommerce-checkout table.shop_table tr.woocommerce-shipping-totals {
	display: block; width: 100%; padding: .9rem .8rem; border-bottom: 1px solid var(--ksp-line);
}
.woocommerce-checkout table.shop_table tr.shipping th,
.woocommerce-checkout table.shop_table tr.shipping td,
.woocommerce-checkout table.shop_table tr.woocommerce-shipping-totals th,
.woocommerce-checkout table.shop_table tr.woocommerce-shipping-totals td {
	display: block; width: 100%; border-bottom: 0; padding: 0;
}
.woocommerce-checkout table.shop_table tr.shipping th {
	font-family: var(--ksp-display); font-weight: 600; font-size: .8rem;
	letter-spacing: .06em; text-transform: uppercase; color: var(--ksp-mute);
	margin-bottom: .6rem;
}
.woocommerce-checkout #shipping_method { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.woocommerce-checkout #shipping_method li { margin: 0; }
.woocommerce-checkout #shipping_method label {
	display: block; padding: .7rem .9rem; border: 1.5px solid var(--ksp-line); border-radius: 10px;
	background: #fff; cursor: pointer; font-size: .88rem; line-height: 1.4;
	transition: border-color .15s ease, background .15s ease;
}
.woocommerce-checkout #shipping_method input[type="radio"] { margin-right: .55rem; accent-color: var(--ksp-gold); vertical-align: middle; }
.woocommerce-checkout #shipping_method li:has(input:checked) label { border-color: var(--ksp-gold); background: #fdf9f0; }
.woocommerce-checkout .woocommerce-shipping-destination { display: block; font-size: .8rem; color: var(--ksp-mute); margin: .55rem 0 0; }

/* ===== Checkout: métodos de pago, con la misma tarjeta que el envío ===== */
.ksp-payment-heading {
	font-family: var(--ksp-display); font-weight: 600; font-size: .8rem;
	letter-spacing: .06em; text-transform: uppercase; color: var(--ksp-mute);
	margin: 0 0 .6rem;
}
.woocommerce-checkout ul.payment_methods { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.woocommerce-checkout ul.payment_methods li.wc_payment_method {
	border: 1.5px solid var(--ksp-line); border-radius: 10px; background: #fff; padding: .05rem 0;
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.woocommerce-checkout ul.payment_methods li.wc_payment_method.ksp-selected,
.woocommerce-checkout ul.payment_methods li.wc_payment_method:has(input:checked) {
	border-color: var(--ksp-gold); background: #fdf9f0; box-shadow: 0 0 0 1px var(--ksp-gold) inset;
}
.woocommerce-checkout ul.payment_methods li.wc_payment_method > label { display: flex; align-items: center; gap: .4rem; padding: .7rem .9rem; margin: 0; cursor: pointer; font-size: .9rem; }
.woocommerce-checkout ul.payment_methods li.wc_payment_method.ksp-selected > label,
.woocommerce-checkout ul.payment_methods li.wc_payment_method:has(input:checked) > label {
	font-weight: 700; color: var(--ksp-ink);
}
/* Ganchito (✓) junto al nombre del método de pago elegido */
.ksp-selected-badge {
	display: inline-flex; align-items: center; justify-content: center;
	width: 1.2rem; height: 1.2rem; flex: none;
	border-radius: 50%; background: var(--ksp-gold); color: #fff;
	font-size: .72rem; font-weight: 900; line-height: 1;
}
.woocommerce-checkout ul.payment_methods input.input-radio { margin-right: .55rem; accent-color: var(--ksp-gold); vertical-align: middle; }
/* Información del método de pago (p. ej. Páguelo Fácil): un texto pequeño
   y discreto debajo de la opción, no un aviso destacado tipo tarjeta. */
.woocommerce-checkout .payment_box {
	margin: -.1rem .9rem .7rem 2.05rem;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	font-size: .78rem;
	color: var(--ksp-mute);
	line-height: 1.45;
}
.woocommerce-checkout .payment_box p { margin: 0 0 .3rem; }
.woocommerce-checkout .payment_box p:last-child { margin-bottom: 0; }
/* WooCommerce dibuja una flechita decorativa (::before) que apuntaba al
   fondo de la caja; ya no aplica porque el texto no tiene caja. */
.woocommerce-checkout .payment_box::before { display: none !important; }

/* ===== Descripción del producto: vista llamativa ===== */
.woocommerce div.product .product_title.entry-title {
	font-family: var(--ksp-display);
	font-weight: 500; letter-spacing: -0.03em; line-height: 0.95;
	font-size: clamp(2.2rem, 4vw, 3.4rem);
	margin-top: 0.3rem;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price { font-size: 1.5rem; font-weight: 700; color: var(--ksp-gold); }

.woocommerce div.product .woocommerce-product-details__short-description {
	line-height: 1.65; color: var(--ksp-mute); font-size: 1rem;
	border-left: 3px solid var(--ksp-gold); padding-left: 0.9rem; margin-top: 1rem;
}

/* Pestañas: control segmentado premium con acento dorado */
.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex; flex-wrap: wrap; gap: 0.4rem;
	list-style: none; padding: 0; margin: 2rem 0 0;
	border: 0; border-bottom: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--ksp-card); border: 1px solid var(--ksp-line);
	border-radius: 999px; padding: 0.55rem 1.1rem; margin: 0;
	font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
	color: var(--ksp-mute); transition: all 0.2s ease;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover { color: inherit; text-decoration: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	background: var(--ksp-btn); border-color: var(--ksp-btn); color: #fff;
	box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li:hover { border-color: var(--ksp-gold); color: var(--ksp-gold); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active:hover { color: #fff; }

/* Panel de descripción: tarjeta con filo dorado y mejor lectura */
.woocommerce div.product .woocommerce-tabs .wc-tab,
.woocommerce .woocommerce-Tabs-panel--description {
	position: relative;
	margin-top: 1rem;
	background: var(--ksp-card);
	border: 1px solid var(--ksp-line);
	border-left: 4px solid var(--ksp-gold);
	border-radius: 0.75rem;
	padding: 1.4rem 1.4rem 1.6rem;
}
.woocommerce-Tabs-panel--description p { line-height: 1.8; font-size: 1.02rem; margin: 0 0 1rem; }
.woocommerce-Tabs-panel--description p:last-child { margin-bottom: 0; }
.woocommerce-Tabs-panel--description h2,
.woocommerce-Tabs-panel--description h3,
.woocommerce-Tabs-panel--description h4 {
	font-family: var(--ksp-display); font-weight: 600; letter-spacing: -0.01em;
	margin: 1.2rem 0 0.5rem; color: var(--ksp-gold); font-size: 1.5rem;
}
.woocommerce-Tabs-panel--description ul { list-style: none; padding: 0; display: grid; gap: 0.45rem; }
.woocommerce-Tabs-panel--description ul li { position: relative; padding-left: 1.3rem; line-height: 1.6; }
.woocommerce-Tabs-panel--description ul li::before {
	content: '◆'; position: absolute; left: 0; top: 0;
	color: var(--ksp-gold); font-size: 0.7rem;
}
.woocommerce-Tabs-panel--description a { color: var(--ksp-gold); }

/* ===== Variantes: colores y tallas visibles y legibles ===== */
table.variations { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1rem; }
table.variations th {
	text-align: left; vertical-align: middle; padding: 0.55rem 0.6rem;
	font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--ksp-mute); font-weight: 700; white-space: nowrap;
}
table.variations td { padding: 0.55rem 0.6rem; border: 0; }
table.variations td.value { width: 100%; }
table.variations select {
	width: 100%; min-height: 2.7rem; padding: 0.55rem 2rem 0.55rem 0.75rem;
	border: 1px solid var(--ksp-line); border-radius: 0.55rem;
	background: var(--ksp-card); color: var(--ksp-ink);
	font-size: 0.95rem; font-weight: 600;
	appearance: auto;
}
table.variations select:focus { border-color: var(--ksp-gold); box-shadow: 0 0 0 3px rgba(154,120,68,0.18); outline: 0; }
table.variations select option { background: var(--ksp-card); color: var(--ksp-ink); }
table.variations tr { border-bottom: 1px dashed var(--ksp-line); }
table.variations tr:last-child { border-bottom: 0; }
.woocommerce form.variations_form .reset_variations {
	font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
	color: var(--ksp-gold); font-weight: 700; text-decoration: underline;
}
.variations_button .single_variation_wrap .woocommerce-variation-price { font-size: 1.2rem; font-weight: 700; color: var(--ksp-gold); }
.woocommerce .wc-block-components-product-details__value { color: inherit; }

/* Páginas Contacto y Nosotros */
.ksp-contact-card,
.ksp-story {
	background: var(--ksp-card); border: 1px solid var(--ksp-line);
	border-left: 4px solid var(--ksp-gold); border-radius: 0.85rem;
	padding: 1.5rem 1.4rem 1.7rem; margin-bottom: 1.6rem;
}
.ksp-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.7rem; margin-top: 1.2rem; }
.ksp-contact-item { background: var(--ksp-paper); border: 1px solid var(--ksp-line); border-radius: 0.6rem; padding: 0.8rem 0.9rem; }
.ksp-contact-item span { display: block; font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ksp-gold); font-weight: 700; }
.ksp-contact-item strong { display: block; margin-top: 0.25rem; font-size: 1rem; overflow-wrap: anywhere; }
.ksp-contact-item strong a { color: inherit; text-decoration: none; }
.ksp-contact-item strong a:hover { color: var(--ksp-gold); }
.ksp-contact-hours { margin-top: 1.2rem; border-top: 1px dashed var(--ksp-line); padding-top: 1rem; }
.ksp-contact-hours p { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; margin: 0; font-size: 0.95rem; }
.ksp-contact-hours .ksp-note { display: block; color: var(--ksp-mute); font-size: 0.82rem; margin-top: 0.6rem; }
.ksp-contact-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.ksp-contact-actions .ksp-btn { width: auto; min-width: 190px; }
.ksp-story-lead { font-size: 1.08rem; line-height: 1.75; }
.ksp-story p { line-height: 1.8; }
.ksp-story-close { font-family: var(--ksp-display); font-size: 1.35rem; font-style: italic; color: var(--ksp-gold); border-top: 1px dashed var(--ksp-line); padding-top: 1rem; margin-top: 1rem; }
@media (max-width: 479px) {
	.ksp-contact-actions .ksp-btn { width: 100%; min-width: 0; }
}

/* Tira de especificaciones reales bajo el precio */
.ksp-spec-strip {
	margin-top: 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 0.5rem;
}
.ksp-spec-item {
	background: var(--ksp-card); border: 1px solid var(--ksp-line);
	border-radius: 0.6rem; padding: 0.6rem 0.75rem;
}
.ksp-spec-item span { display: block; font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ksp-gold); font-weight: 700; }
.ksp-spec-item strong { display: block; margin-top: 0.2rem; font-size: 0.88rem; font-weight: 600; overflow-wrap: anywhere; }

/* Títulos de relacionados/upsells iguales a las tarjetas */
.related.products > h2,
.upsells.products > h2 {
	font-family: var(--ksp-display); font-weight: 500; letter-spacing: -0.03em;
	font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 2.5rem 0 1rem;
}
ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--ksp-sans); font-size: 0.9rem; line-height: 1.25; font-weight: 600;
	color: var(--ksp-ink); min-height: 2.5em; padding: 0.6rem 0.8rem 0;
}
ul.products li.product a.button,
ul.products li.product .button { border-radius: 999px !important; }
.ksp-prose p, .ksp-prose ul { margin-top: 0; }
.ksp-list { list-style: none; padding: 0; margin: 0.8rem 0; display: grid; gap: 0.5rem; font-size: 0.9rem; }
.ksp-socials { display: flex; flex-wrap: wrap; gap: 0.8rem; font-size: 0.85rem; }

/* Footer */
.ksp-footer { background: #141311; color: rgba(255,255,255,0.78); }
.ksp-footer-grid { display: grid; gap: 2rem; padding: 3.5rem 0; }
@media (min-width: 820px) { .ksp-footer-grid { grid-template-columns: repeat(4, 1fr); } }
.ksp-footer a { color: inherit; text-decoration: none; }
.ksp-footer a:hover { color: var(--ksp-gold-soft); }
.ksp-footer-lead { max-width: 22rem; font-size: 0.9rem; }
.ksp-hour-card { border: 1px solid rgba(255,255,255,0.12); padding: 1rem; margin-bottom: 0.8rem; font-size: 0.85rem; }
.ksp-hour-card strong { color: #fff; display: block; }
.ksp-hour-card p { margin: 0.2rem 0 0.6rem; }
.ksp-footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.75rem; }
.ksp-footer-bottom .ksp-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; padding: 1rem 0; }

/* Pantalla de carga de marca */
.ksp-preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, rgba(200,164,93,0.16), transparent 55%), #0f0e0c;
  /* Equilibrado: 1,95 s de marca + fundido 0,4 s; cierre seguro sin JS. */
  animation: ksp-pre-out 0.4s ease 1.95s forwards;
}
.ksp-preloader.is-done { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
@keyframes ksp-pre-out { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.ksp-pre-inner { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; padding: 1.5rem; text-align: center; }
.ksp-pre-badge { position: relative; width: 118px; height: 118px; display: grid; place-items: center; }
.ksp-pre-ring {
  position: absolute; inset: 0; border-radius: 999px;
  border: 3px solid rgba(200,164,93,0.18);
  border-top-color: #d9a63a;
  animation: ksp-spin 0.9s linear infinite;
}
.ksp-pre-cart { width: 58px; height: 58px; filter: drop-shadow(0 8px 18px rgba(0,0,0,0.5)); animation: ksp-float 2.2s ease-in-out infinite; }
.ksp-pre-crown {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 40px; filter: drop-shadow(0 4px 10px rgba(217,166,58,0.45));
  animation: ksp-crown 2.2s ease-in-out infinite;
}
.ksp-pre-word { margin: 0; display: flex; flex-direction: column; align-items: center; }
.ksp-pre-king {
  font-weight: 700; letter-spacing: 0.22em; font-size: 1.05rem;
  background: linear-gradient(180deg, #f7e08a, #d9a63a 55%, #f3d069);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ksp-pre-pa { margin-top: 0.25rem; color: #c8a45d; font-size: 0.62rem; letter-spacing: 0.42em; padding-left: 0.42em; }
.ksp-pre-load { display: flex; align-items: center; gap: 0.65rem; color: rgba(244,239,230,0.72); }
.ksp-pre-circle {
  width: 18px; height: 18px; border-radius: 999px;
  border: 2px solid rgba(200,164,93,0.22);
  border-top-color: #ecd9ad;
  animation: ksp-spin 0.8s linear infinite;
}
.ksp-pre-text { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; }
@keyframes ksp-spin { to { transform: rotate(360deg); } }
@keyframes ksp-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes ksp-crown { 0%,100% { transform: translateX(-50%) translateY(0) rotate(-2deg); } 50% { transform: translateX(-50%) translateY(-3px) rotate(2deg); } }
@media (max-width: 420px) {
  .ksp-pre-badge { width: 100px; height: 100px; }
  .ksp-pre-cart { width: 50px; height: 50px; }
  .ksp-pre-crown { width: 34px; height: 34px; top: -12px; }
  .ksp-pre-king { font-size: 0.9rem; letter-spacing: 0.16em; }
}
@media (prefers-reduced-motion: reduce) {
  .ksp-preloader { display: none !important; }
}

/* ============================================================
   ADAPTACIÓN OBLIGATORIA A TODAS LAS PANTALLAS (WooCommerce)
   ============================================================ */
img, video, iframe, embed, object { max-width: 100%; }
table { max-width: 100%; }
main#contenido { overflow-x: clip; }
@supports not (overflow-x: clip) {
  main#contenido { overflow-x: hidden; }
}

/* Pantallas muy estrechas: 320 px y menos */
@media (max-width: 319px) {
  .ksp-wrap { width: calc(100% - 0.9rem); }
  .ksp-product-grid, ul.products { gap: 0.7rem 0.35rem; }
  .ksp-card h3 { font-size: 0.75rem; }
  .ksp-card .price { font-size: 0.8rem; }
  .ksp-hero-copy { padding: 1.3rem 0.8rem 1.5rem; }
  .ksp-topbar { font-size: 9px; }
  .ksp-btn { font-size: 0.56rem; min-height: 2.2rem; }
  .ksp-cat-bento { grid-template-columns: 1fr; }
  .ksp-cat-card { min-height: 160px; }
  .ksp-section-title { font-size: 1.5rem; }
  .ksp-drawer { width: 100%; }
  .woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { font-size: 16px; }
}

/* Teléfonos en horizontal */
@media (max-height: 480px) and (orientation: landscape) {
  .ksp-hero-media picture { aspect-ratio: 16 / 9; }
  .ksp-hero-placeholder { aspect-ratio: 16 / 9; }
  .ksp-hero-copy { padding: 1rem 0.9rem; }
  .ksp-hero-title { font-size: clamp(1.4rem, 6vw, 2.4rem); }
  .ksp-section { padding: 1.6rem 0; }
  .ksp-cat-card { min-height: 130px; }
  .ksp-wa-float { width: 2.7rem; height: 2.7rem; }
}

/* Safe areas (notches y barra de gestos) */
.ksp-topbar { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
.ksp-buy-bar {
  padding-left: max(0.7rem, env(safe-area-inset-left));
  padding-right: max(0.7rem, env(safe-area-inset-right));
  padding-bottom: max(0.6rem, env(safe-area-inset-bottom));
}
.ksp-wa-float { right: max(0.9rem, env(safe-area-inset-right)); }

/* Monitores grandes */
@media (min-width: 1920px) {
  .ksp-wrap { width: min(1560px, calc(100% - 4rem)); }
  .ksp-section { padding: 5.5rem 0; }
}

/* Ultra-wide y TV */
@media (min-width: 2560px) {
  .ksp-wrap { width: min(1720px, calc(100% - 8rem)); }
  .ksp-section { padding: 6.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ksp-preloader { display: none !important; }
}
@media (min-width: 2560px) {
  .ksp-wrap { width: min(1720px, calc(100% - 8rem)); }
  .ksp-section { padding: 6.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ksp-preloader { display: none !important; }
}

/* Páginas legales */
.ksp-legal { background: var(--ksp-card); border: 1px solid var(--ksp-line); border-left: 4px solid var(--ksp-gold); border-radius: .85rem; padding: 1.5rem 1.4rem; margin-bottom: 1.5rem; }
.ksp-legal h3 { font-family: var(--ksp-display); color: var(--ksp-gold); font-size: 1.35rem; margin: 1.3rem 0 .5rem; }
.ksp-legal p, .ksp-legal li { line-height: 1.75; }
.ksp-legal ul, .ksp-legal ol { padding-left: 1.3rem; display: grid; gap: .35rem; }
.ksp-legal-updated { font-size: .78rem; color: var(--ksp-mute); text-transform: uppercase; letter-spacing: .1em; }
.ksp-legal-foot { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px dashed var(--ksp-line); font-size: .85rem; color: var(--ksp-mute); }

/* Mi cuenta con marca de la tienda */
.ksp-account-intro { margin-bottom: 1.4rem; }
.ksp-account-sub { color: var(--ksp-mute); max-width: 42rem; line-height: 1.7; }
.woocommerce-account .u-column1, .woocommerce-account .u-column2 {
	background: var(--ksp-card); border: 1px solid var(--ksp-line);
	border-radius: .85rem; padding: 1.3rem;
}
.woocommerce-account .u-column1 h2, .woocommerce-account .u-column2 h2 {
	font-family: var(--ksp-display); font-size: 1.7rem; margin: 0 0 .8rem;
}
.woocommerce-account .woocommerce-form-login__submit,
.woocommerce-account .woocommerce-form-register__submit {
	background: #c5ab78 !important; border: 1px solid #a98f60 !important;
	color: #0f1111 !important; border-radius: 100px !important;
	text-transform: none !important; letter-spacing: 0 !important; font-weight: 500 !important;
}
.ksp-legal-intro { color: var(--ksp-mute); font-size: .92rem; line-height: 1.7; margin-bottom: .4rem; }

/* Recuperar contraseña */
.ksp-lost-help { margin: .9rem 0 0; font-size: .9rem; line-height: 1.6; color: var(--ksp-mute); }
.ksp-lost-link { color: var(--ksp-gold); font-weight: 700; text-decoration: underline; }
.woocommerce-ResetPassword .woocommerce-Button,
.woocommerce-ResetPassword button[type="submit"] {
	background: #c5ab78 !important; border: 1px solid #a98f60 !important; color: #0f1111 !important;
	border-radius: 100px !important; text-transform: none !important; letter-spacing: 0 !important; font-weight: 500 !important;
}

/* Recuperar contraseña: visible de verdad */
.woocommerce-LostPassword,
.woocommerce-LostPassword.lost_password {
	display: block !important;
	margin: .9rem 0 0 !important;
	padding: .75rem .9rem !important;
	background: rgba(200,164,93,.10) !important;
	border: 1px dashed var(--ksp-gold) !important;
	border-radius: .6rem !important;
	text-align: center !important;
	font-size: .92rem !important;
}
.woocommerce-LostPassword a {
	color: var(--ksp-gold) !important;
	font-weight: 700 !important;
	text-decoration: underline !important;
}
.woocommerce-LostPassword a:hover { color: var(--ksp-ink) !important; }
.ksp-lost-help { margin: .9rem 0 0; padding: .75rem .9rem; background: rgba(200,164,93,.10); border: 1px dashed var(--ksp-gold); border-radius: .6rem; font-size: .9rem; line-height: 1.6; }

/* Botones de productos: Estilo Amazon y eBay (Amarillo oro vibrante para Agregar y Naranja/Azul dinámico para Comprar).
   Altamente probados por conversión en las tiendas más famosas. */
:root {
  --ksp-cart-bg: #ffd814;
  --ksp-cart-hover: #f7ca00;
  --ksp-cart-border: #fcd200;
  --ksp-cart-text: #0f1111;
  --ksp-buy: #ffa41c;
  --ksp-buy-hover: #fa8900;
  --ksp-buy-border: #ff8f00;
  --ksp-buy-text: #0f1111;
}
.ksp-card-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.48rem; margin-top: auto; padding-top: 0.75rem; }
.ksp-card-actions .ksp-btn,
.ksp-card-actions a.button,
.ksp-card-actions button.button,
.woocommerce div.product form.cart button.single_add_to_cart_button,
.woocommerce div.product form.cart a.ksp-btn-buy {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  min-height: 2.7rem !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0.56rem 0.75rem !important;
  border-radius: 999px !important;
  border: 1px solid transparent !important;
  font-family: var(--ksp-sans) !important;
  font-size: 0.76rem !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.015em !important;
  text-transform: none !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: normal;
  box-shadow: none !important;
  transition: background-color .18s ease, border-color .18s ease, transform .15s ease !important;
}
.ksp-card-actions .ksp-btn { width: 100% !important; }
.ksp-card-actions .ksp-btn:active,
.woocommerce div.product form.cart button.single_add_to_cart_button:active { transform: scale(0.98); }
.ksp-card-actions .ksp-btn-buy,
.woocommerce div.product form.cart a.ksp-btn-buy {
  background: var(--ksp-buy) !important;
  border-color: var(--ksp-buy-border) !important;
  color: var(--ksp-buy-text) !important;
}
.ksp-card-actions .ksp-btn-buy:hover,
.woocommerce div.product form.cart a.ksp-btn-buy:hover {
  background: var(--ksp-buy-hover) !important;
  color: var(--ksp-buy-text) !important;
}
.ksp-card-actions .ksp-btn-cart,
.ksp-card-actions a.ksp-btn-cart.button,
.woocommerce div.product form.cart button.single_add_to_cart_button {
  background: var(--ksp-cart-bg) !important;
  border-color: var(--ksp-cart-border) !important;
  color: var(--ksp-cart-text) !important;
}
.ksp-card-actions .ksp-btn-cart:hover,
.woocommerce div.product form.cart button.single_add_to_cart_button:hover {
  background: var(--ksp-cart-hover) !important;
  color: var(--ksp-cart-text) !important;
}
.ksp-card-actions .ksp-btn:focus-visible,
.woocommerce div.product form.cart button.single_add_to_cart_button:focus-visible {
  outline: 2px solid var(--ksp-gold) !important;
  outline-offset: 3px !important;
}
.ksp-card-actions .ksp-disabled {
  background: #efede7 !important;
  border-color: #d7d1c6 !important;
  color: #696258 !important;
  pointer-events: none !important;
  box-shadow: none !important;
}
@media (max-width: 420px) {
  .ksp-card-actions .ksp-btn,
  .ksp-card-actions a.button {
    font-size: 0.68rem !important;
    min-height: 2.8rem !important;
    padding: 0.42rem 0.5rem !important;
  }
}

/* ============================================================
   BOTÓN "×" PARA ELIMINAR — carrito, mini-carrito y checkout
   Círculo nítido, área táctil de 32px, alto contraste.
   El texto real del enlace ("×" que imprime WooCommerce) se oculta con
   font-size:0 y el símbolo visible se dibuja UNA sola vez con ::before,
   para evitar que aparezcan dos "×" superpuestas.
   ============================================================ */
.woocommerce a.remove,
.woocommerce a.remove:link,
.woocommerce a.remove:visited,
.woocommerce table.cart a.remove,
.woocommerce-cart table.cart td.product-remove a.remove,
.woocommerce-cart-form__cart-item .product-remove a,
.ksp-drawer li.woocommerce-mini-cart-item a.remove,
.ksp-remove-line {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	max-width: 32px !important;
	padding: 0 !important;
	margin: 0 auto !important;
	border: 1.5px solid #D5D9D9 !important;
	border-radius: 50% !important;
	background: #FFFFFF !important;
	color: #C7511F !important;
	font-family: var(--ksp-sans) !important;
	font-size: 0 !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	text-align: center !important;
	text-decoration: none !important;
	overflow: hidden !important;
	box-shadow: 0 1px 2px rgba(15,17,17,.08) !important;
	transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
	flex: none !important;
}
/* Único símbolo × visible, dibujado con ::before aunque el tema/plugin vacíe el texto */
.woocommerce a.remove::before,
.woocommerce-cart table.cart td.product-remove a.remove::before,
.ksp-drawer li.woocommerce-mini-cart-item a.remove::before,
.ksp-remove-line::before {
	content: "\00d7" !important;
	display: block !important;
	font-size: 19px !important;
	line-height: 1 !important;
}
.woocommerce a.remove:hover,
.woocommerce-cart table.cart td.product-remove a.remove:hover,
.ksp-drawer li.woocommerce-mini-cart-item a.remove:hover,
.ksp-remove-line:hover {
	background: #C7511F !important;
	border-color: #C7511F !important;
	color: #FFFFFF !important;
	transform: scale(1.08);
}
.woocommerce a.remove:focus-visible,
.ksp-remove-line:focus-visible {
	outline: 0 !important;
	border-color: #007185 !important;
	box-shadow: 0 0 0 3px #C8F3FA !important;
}
/* Columna de la × en la tabla del carrito */
.woocommerce-cart table.cart td.product-remove,
.woocommerce table.shop_table td.product-remove {
	width: 56px !important;
	text-align: center !important;
	padding: .8rem .4rem !important;
}
/* Mini-carrito: la × arriba a la derecha de cada línea */
.ksp-drawer li.woocommerce-mini-cart-item { position: relative; padding-right: 2.6rem !important; }
.ksp-drawer li.woocommerce-mini-cart-item a.remove {
	position: absolute !important; right: 0 !important; top: .7rem !important;
	width: 28px !important; height: 28px !important; min-width: 28px !important; font-size: 16px !important;
}
/* Checkout: × junto a la cantidad, más pequeña */
.ksp-remove-line {
	width: 24px !important; height: 24px !important; min-width: 24px !important;
	font-size: 15px !important; margin: 0 0 0 .4rem !important; vertical-align: middle;
}
.ksp-remove-line::before { font-size: 15px !important; }

/* Control de cantidad (+ / -) y eliminar, en el resumen del pedido del checkout */
.ksp-checkout-qty-control {
	display: inline-flex; align-items: center; gap: .4rem;
	margin-top: .35rem; transition: opacity .15s ease;
}
.ksp-qty-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 26px; height: 26px; padding: 0; box-sizing: border-box;
	border: 1.5px solid var(--ksp-line); border-radius: 50%;
	background: #fff; color: var(--ksp-ink);
	font-size: 15px; line-height: 1; cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.ksp-qty-btn:hover { background: var(--ksp-ink); border-color: var(--ksp-ink); color: #fff; }
.ksp-qty-val { min-width: 1.4rem; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; }

/* Miniatura del producto junto al nombre, en el resumen del checkout */
.ksp-checkout-item {
	display: flex; align-items: center; gap: .65rem;
}
.ksp-checkout-item-thumb {
	width: 3.1rem; height: 3.1rem; min-width: 3.1rem;
	object-fit: cover; object-position: center;
	border-radius: 8px; background: #f4f0e8;
	border: 1px solid var(--ksp-line); flex: none;
}
.ksp-checkout-item-name { min-width: 0; line-height: 1.35; }
@media (max-width: 480px) {
	.ksp-checkout-item-thumb { width: 2.6rem; height: 2.6rem; min-width: 2.6rem; border-radius: 6px; }
}

/* Miniaturas de producto en la tabla clásica de carrito: tamaño fijo,
   recorte uniforme (sin deformar) y esquinas suaves a juego con el tema. */
.woocommerce-cart table.cart td.product-thumbnail img,
.woocommerce table.shop_table td.product-thumbnail img {
	width: 4.2rem !important; height: 4.2rem !important;
	object-fit: cover !important; object-position: center !important;
	border-radius: 8px !important; background: #f4f0e8 !important;
	border: 1px solid var(--ksp-line) !important;
}
@media (max-width: 599px) {
	.woocommerce-cart table.cart td.product-thumbnail img,
	.woocommerce table.shop_table td.product-thumbnail img {
		width: 3.2rem !important; height: 3.2rem !important; border-radius: 6px !important;
	}
}

