/* ========================================================
   KREA PRINT 3D - CATÁLOGO E-COMMERCE PROFESIONAL
   Estilo idéntico a la imagen de referencia:
   - Fondo verde menta suave pastel
   - Topbar flotante tipo cápsula oscura con enlace activo verde
   - Píldoras de filtro traslúcidas con contadores reales
   - Buscador tipo píldora con indicador de cantidad
   - Tarjetas blancas limpias con título verde, precio negro y botón "Agregar al carrito"
   ======================================================== */

:root {
  --store-bg-mint: #b9d8cb;
  --store-bg-gradient: linear-gradient(180deg, #c3e0d3 0%, #b2d5c6 100%);
  --store-primary-green: #008726;
  --store-primary-green-hover: #007421;
  --store-pill-active: #009e2e;
  --store-card-white: #ffffff;
  --store-card-radius: 22px;
  --store-card-shadow: 0 1px 2px rgba(16, 40, 24, 0.04), 0 6px 18px rgba(16, 40, 24, 0.06);
  --store-card-shadow-hover: 0 4px 10px rgba(16, 40, 24, 0.06), 0 14px 30px rgba(16, 40, 24, 0.12);
  --store-title-green: #008726;
  --store-price-ink: #111827;
  --store-topbar-bg: #16231c;
  --store-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ── SKELETON LOADER: shimmer animado ── */
@keyframes store-shimmer {
  0% {
    background-position: -600px 0;
  }

  100% {
    background-position: 600px 0;
  }
}

.store-skeleton {
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.25) 0%,
      rgba(255, 255, 255, 0.55) 40%,
      rgba(255, 255, 255, 0.25) 80%);
  background-size: 600px 100%;
  animation: store-shimmer 1.4s ease-in-out infinite;
  border-radius: 8px;
}

/* Tarjeta skeleton completa */
.store-skeleton-card {
  pointer-events: none;
  user-select: none;
}

/* Centinela invisible que activa el IntersectionObserver */
.store-batch-sentinel {
  height: 1px;
  width: 100%;
  visibility: hidden;
}


/* --- FONDO GLOBAL DE PÁGINA (ESTILO BLANCO / MENTA SUAVE) --- */
body.krea-store-theme,
body {
  background-color: var(--store-bg-mint) !important;
  background-image: var(--store-bg-gradient) !important;
  background-attachment: fixed !important;
  color: #1a2e23;
  font-family: var(--store-font);
  margin: 0;
  min-height: 100vh;
}

body.krea-store-theme {
  display: flex;
  flex-direction: column;
}

.page {
  width: min(1540px, calc(100% - 40px));
  margin: 18px auto 48px;
}

/* --- TOPBAR FLOTANTE TIPO CÁPSULA OSCURA (FIJA AL HACER SCROLL) --- */
.krea-store-theme .page {
  padding-top: 84px !important;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
  box-sizing: border-box;
}

.krea-store-theme .page>*:not(script):not(style) {
  width: 100%;
  box-sizing: border-box;
}

.krea-store-theme .page::after {
  content: '';
  display: block;
  flex: 1 0 28px;
  order: 99;
}

.krea-store-theme .page>.store-footer {
  order: 100;
  margin-top: 0;
}

.topbar.store-topbar-pill {
  position: fixed !important;
  top: 12px !important;
  bottom: auto !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 auto !important;
  width: min(1540px, calc(100% - 36px)) !important;
  z-index: 1000 !important;
  /* Por debajo del carrito (100002) pero sobre el contenido */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 0;
  padding: 8px 16px 8px 22px;
  background: var(--store-topbar-bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(10, 26, 17, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.topbar-search-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.topbar-search-toggle:hover,
.topbar.store-topbar-pill.is-search-open .topbar-search-toggle {
  background: rgba(0, 158, 46, 0.25);
  border-color: #22c55e;
}

.topbar.store-topbar-pill .brand {
  display: inline-flex;
  align-items: center;
}

.topbar.store-topbar-pill .brand img {
  height: 32px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
}

/* --- BUSCADOR INTEGRADO DENTRO DE LA BARRA SUPERIOR --- */
.nav-search-wrapper {
  flex: 1;
  max-width: 420px;
  margin: 0 12px;
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 0 14px;
  height: 38px;
  transition: all 0.22s ease;
  /* El buscador se expande pero los links tienen prioridad visual */
  order: 0;
}

.nav-search-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(6, 176, 0, 0.6);
  box-shadow: 0 0 14px rgba(6, 176, 0, 0.25);
}

.nav-search-icon {
  width: 16px;
  height: 16px;
  color: #799a86;
  margin-right: 8px;
  flex-shrink: 0;
}

.nav-search-input {
  flex: 1;
  border: none;
  background: transparent;
  color: #ffffff;
  font-family: var(--store-font);
  font-size: 0.85rem;
  font-weight: 500;
  outline: none;
  min-width: 0;
}

.nav-search-input:focus,
.nav-search-input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.nav-search-input::placeholder {
  color: #799a86;
  opacity: 0.9;
}

.nav-search-input::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.nav-search-clear {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #cbd5e1;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.72rem;
  transition: background 0.15s ease;
}

.nav-search-clear:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.topbar.store-topbar-pill .nav-panel {
  display: flex;
  align-items: center;
}

.store-drawer-header,
.store-nav-backdrop,
.store-drawer-maker-slot {
  display: none;
}

body.krea-drawer-open {
  overflow: hidden;
}

.topbar.store-topbar-pill .nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar.store-topbar-pill .nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 9999px;
  text-decoration: none;
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.topbar.store-topbar-pill .nav-links a svg {
  flex-shrink: 0;
  opacity: 0.82;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.topbar.store-topbar-pill .nav-links a:hover svg,
.topbar.store-topbar-pill .nav-links a.active svg {
  opacity: 1;
}

.topbar.store-topbar-pill .nav-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* Enlace o botón activo estilo cápsula verde (Catálogo Completo en la imagen) */
.topbar.store-topbar-pill .nav-links a.active,
.topbar.store-topbar-pill .nav-links a.nav-catalog-btn.active {
  background: var(--store-pill-active) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 158, 46, 0.35);
}

/* Acciones en la barra superior (Carrito + Menú móvil) */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

.topbar-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.topbar-cart-btn:hover {
  background: var(--store-pill-active);
  transform: scale(1.05);
}

.topbar-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 9999px;
  background: #ff334b;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--store-topbar-bg);
}

.topbar.store-topbar-pill .menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  cursor: pointer;
}

/* --- BARRA DE FILTROS Y CONTADOR --- */
.store-filter-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 6px 0 20px;
  flex-wrap: wrap;
}

.store-filter-pills-row {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px;
}

.store-filter-pills-row::-webkit-scrollbar {
  display: none;
}

.store-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #244232;
  font-family: var(--store-font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 3px 10px rgba(22, 54, 36, 0.05);
}

.store-pill-btn:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

.store-pill-btn .pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.08);
  color: #2c4a39;
  font-size: 0.74rem;
  font-weight: 700;
}

/* Píldora activa (estilo verde sólido como "Todos 161" en la imagen) */
.store-pill-btn.active {
  background: var(--store-pill-active);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(0, 158, 46, 0.35);
  font-weight: 700;
}

.store-pill-btn.active .pill-badge {
  background: rgba(0, 0, 0, 0.22);
  color: #ffffff;
}

/* --- FILTRO JERÁRQUICO (NIVEL 1 Y NIVEL 2) --- */
.store-filter-main-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 14px;
}

.store-subpills-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 9999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 14px rgba(16, 40, 24, 0.04);
  animation: kreaSubpillFade 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.store-subpills-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #436651;
  white-space: nowrap;
}

.store-subpills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0;
}

.store-subpills-row::-webkit-scrollbar {
  display: none;
}

.store-subpill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #dce8e0;
  color: #1e3d2b;
  font-family: var(--store-font);
  font-size: 0.81rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.store-subpill-btn:hover {
  background: #f4faf6;
  border-color: var(--store-primary-green);
  transform: translateY(-1px);
}

.store-subpill-btn .subpill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.06);
  color: #2c4a39;
  font-size: 0.69rem;
  font-weight: 700;
}

.store-subpill-btn.active {
  background: #16231c;
  color: #ffffff;
  border-color: #16231c;
  box-shadow: 0 3px 10px rgba(22, 35, 28, 0.28);
}

.store-subpill-btn.active .subpill-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

@keyframes kreaSubpillFade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .store-subpills-wrapper {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 18px;
    padding: 10px 12px;
    gap: 6px;
  }

  .store-subpills-row {
    width: 100%;
  }
}

/* --- BARRA DE BÚSQUEDA Y CONTADOR --- */
.store-search-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.store-search-box {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 9999px;
  padding: 0 16px;
  height: 46px;
  box-shadow: 0 2px 10px rgba(22, 54, 36, 0.04);
  transition: all 0.2s ease;
}

.store-search-box:focus-within {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--store-pill-active);
  box-shadow: 0 4px 16px rgba(0, 158, 46, 0.15);
}

.store-search-icon {
  width: 18px;
  height: 18px;
  color: #2b7a4d;
  flex-shrink: 0;
  margin-right: 10px;
}

.store-search-input {
  flex: 1;
  border: none;
  background: transparent;
  color: #11281d;
  font-family: var(--store-font);
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  min-width: 0;
}

.store-search-input::placeholder {
  color: #4b6e5b;
  opacity: 0.85;
}

.store-search-clear {
  background: rgba(0, 0, 0, 0.08);
  border: none;
  color: #244232;
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.15s ease;
}

.store-search-clear:hover {
  background: rgba(0, 0, 0, 0.16);
}

.store-products-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 18px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #2b4f3b;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(22, 54, 36, 0.04);
}

/* --- CUADRÍCULA DE PRODUCTOS E-COMMERCE --- */
.store-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

/* --- TARJETA BLANCA DE PRODUCTO (STORE WHITE CARD) --- */
.product-card.store-white-card {
  background: var(--store-card-white) !important;
  border-radius: var(--store-card-radius) !important;
  padding: 14px !important;
  border: 1px solid rgba(17, 40, 29, 0.07) !important;
  box-shadow: var(--store-card-shadow) !important;
  display: flex !important;
  flex-direction: column !important;
  transition: transform 0.18s var(--ease-out), box-shadow 0.22s var(--ease-out) !important;
  position: relative !important;
  overflow: hidden !important;
}

.product-card.store-white-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--store-card-shadow-hover) !important;
}

/* Contenedor de imagen */
.product-card.store-white-card .image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: #f2f7f3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(17, 40, 29, 0.04);
}

.product-card.store-white-card .image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transform: scale(1);
  transition: transform 0.26s var(--ease-out);
}

.product-card.store-white-card:hover .image-wrap img {
  transform: scale(1.04);
}

/* Badge de material en la esquina superior derecha */
.card-badge-top-right {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  pointer-events: none;
}

.badge-material-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 9999px;
  background: rgba(0, 158, 46, 0.12);
  color: #007324;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Botón de lupa / zoom en la esquina inferior derecha */
.zoom-btn-icon {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #007324;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.18s ease;
}

.zoom-btn-icon:hover {
  transform: scale(1.12);
  background: #ffffff;
}

/* Cuerpo de la tarjeta */
.product-card.store-white-card .product-body {
  display: flex;
  flex-direction: column;
  padding: 12px 2px 2px;
  flex: 1;
}

.product-card.store-white-card .product-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--store-title-green);
  line-height: 1.35;
  margin: 0 0 8px;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.18s ease;
}

.product-card.store-white-card .product-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--store-price-ink);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

/* Botón "Agregar al carrito" en píldora verde */
.product-card.store-white-card .add-to-cart-btn {
  width: 100%;
  height: 42px;
  border-radius: 9999px;
  background: var(--store-primary-green);
  color: #ffffff;
  border: none;
  font-family: var(--store-font);
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 135, 38, 0.28);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: auto;
}

.product-card.store-white-card .add-to-cart-btn:hover {
  background: var(--store-primary-green-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 135, 38, 0.38);
}

.product-card.store-white-card .add-to-cart-btn:active {
  transform: scale(0.98);
}

.product-card.store-white-card .add-to-cart-btn.added {
  background: #005a18 !important;
  box-shadow: 0 0 0 3px rgba(0, 135, 38, 0.35);
}

/* Estado Vacío */
.catalog-empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #244232;
  gap: 12px;
}

.catalog-empty-state p {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}

.btn-reset-filters {
  padding: 10px 22px;
  border-radius: 9999px;
  background: var(--store-pill-active);
  color: #ffffff;
  border: none;
  font-family: var(--store-font);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.btn-reset-filters:hover {
  transform: scale(1.03);
}

/* --- RESPONSIVIDAD --- */
@media (max-width: 1180px) {
  .store-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 860px) {
  .krea-store-theme .page {
    padding-top: 78px !important;
  }

  .topbar.store-topbar-pill {
    position: fixed !important;
    top: max(8px, env(safe-area-inset-top, 8px)) !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
    height: auto !important;
    min-height: 54px !important;
    overflow: visible !important;
    flex-wrap: wrap !important;
    border-radius: 26px !important;
    padding: 8px 12px 8px 16px !important;
    gap: 0 10px !important;
    margin-bottom: 0 !important;
    z-index: 1000 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .topbar.store-topbar-pill .brand {
    order: 1 !important;
    flex: 0 0 auto !important;
    max-width: 110px !important;
  }

  .topbar.store-topbar-pill .topbar-actions {
    order: 2 !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .topbar-search-toggle {
    display: inline-flex !important;
  }

  .topbar.store-topbar-pill .nav-search-wrapper {
    order: 3 !important;
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    display: none !important;
  }

  .topbar.store-topbar-pill.is-search-open .nav-search-wrapper {
    display: flex !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    transform-origin: top center;
    animation: kreaNavDrop 0.2s ease-out both;
  }

  /* Ocultar FAB en store pages en móvil también */
  .krea-store-theme .krea-cart-fab {
    display: none !important;
  }

  .store-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .topbar.store-topbar-pill .menu-toggle {
    display: inline-flex;
  }

  /* En móvil el nav-panel abre como drawer lateral desde la derecha */
  .topbar.store-topbar-pill.is-drawer-open {
    z-index: 10060 !important;
  }

  .store-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(9, 20, 14, 0.56);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .store-nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .topbar.store-topbar-pill .nav-panel {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: min(320px, 86vw) !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    background: linear-gradient(175deg, #102018 0%, #162a1f 100%) !important;
    border-left: 1px solid rgba(74, 222, 128, 0.2) !important;
    border-radius: 24px 0 0 24px !important;
    padding: max(14px, env(safe-area-inset-top, 14px)) 14px max(18px, env(safe-area-inset-bottom, 18px)) !important;
    box-shadow: -16px 0 44px rgba(0, 0, 0, 0.48) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    transform: translateX(105%) !important;
    transition: transform 0.32s var(--ease-drawer) !important;
    opacity: 1 !important;
    pointer-events: none !important;
    z-index: 10050 !important;
  }

  .topbar.store-topbar-pill .nav-panel::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
  }

  .topbar.store-topbar-pill .nav-panel.open {
    transform: translateX(0) !important;
    pointer-events: auto !important;
  }

  .store-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
  }

  .store-drawer-logo {
    height: 26px;
    width: auto;
    object-fit: contain;
  }

  .store-drawer-close {
    width: 34px;
    height: 34px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.16s ease;
  }

  .store-drawer-close:hover {
    background: rgba(255, 255, 255, 0.18);
  }

  .store-drawer-maker-slot {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 10px;
    margin-top: 0;
  }

  .store-drawer-maker-slot[hidden],
  .topbar.store-topbar-pill .nav-links a[hidden] {
    display: none !important;
  }

  .topbar.store-topbar-pill .nav-links {
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    gap: 2px !important;
    flex-shrink: 0 !important;
  }

  .topbar.store-topbar-pill .nav-links a {
    width: 100% !important;
    height: auto !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 8px 11px !important;
    border-radius: 11px !important;
    border: none !important;
    background: transparent !important;
    color: #cbd5e1 !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    box-shadow: none !important;
  }

  .topbar.store-topbar-pill .nav-links a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
  }

  .topbar.store-topbar-pill .nav-links a.active,
  .topbar.store-topbar-pill .nav-links a.nav-catalog-btn.active {
    background: rgba(0, 158, 46, 0.18) !important;
    color: #86efac !important;
    font-weight: 700 !important;
    box-shadow: none !important;
  }

  .store-filter-bar-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .store-filter-main-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .store-filter-pills-row,
  .store-subpills-row {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .store-filter-pills-row::-webkit-scrollbar,
  .store-subpills-row::-webkit-scrollbar {
    display: none;
  }

  .store-pill-btn,
  .store-subpill-btn {
    flex-shrink: 0;
  }

  .store-products-count-badge {
    align-self: flex-start;
  }
}

@media (max-width: 580px) {
  .topbar.store-topbar-pill {
    flex-wrap: wrap !important;
    height: auto !important;
    border-radius: 22px !important;
    padding: 10px 14px !important;
    gap: 8px !important;
  }

  /* Logo y acciones en la primera fila */
  .topbar.store-topbar-pill .brand {
    flex: 1;
  }

  /* Buscador baja a la segunda fila en pantallas muy pequeñas */
  .nav-search-wrapper {
    order: 10 !important;
    /* va al final (segunda fila) */
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
  }

  /* El nav-panel ya usa top: calc(100% + 10px) relativo al topbar */
}

@media (max-width: 520px) {
  .store-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-card.store-white-card {
    padding: 10px !important;
    border-radius: 18px !important;
  }

  .product-card.store-white-card .product-title {
    font-size: 0.85rem;
    min-height: 2.6em;
  }

  .product-card.store-white-card .product-price {
    font-size: 1.15rem;
    margin-bottom: 8px;
  }

  .product-card.store-white-card .add-to-cart-btn {
    height: 38px;
    font-size: 0.78rem;
    gap: 4px;
  }

  .page {
    width: calc(100% - 20px);
    margin-top: 10px;
  }
}

/* ========================================================
   VISUALIZADOR DE PRODUCTOS (MODAL BOTTOM SHEET PRÉMIUM)
   ======================================================== */
/* ── Modal base: móvil = bottom sheet, desktop = centrado ── */
.krea-app-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100000 !important;
  display: flex !important;
  align-items: flex-end !important;
  /* móvil: panel desde abajo */
  justify-content: center !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease !important;
}

/* Desktop: panel centrado verticalmente */
@media (min-width: 820px) {
  .krea-app-modal {
    align-items: center !important;
  }
}

.krea-app-modal.open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* ══════════════════════════════════════════════════════════
   DESKTOP SPLIT PANEL
   Imagen grande izquierda + detalles derecha
   ══════════════════════════════════════════════════════════ */
.krea-desk-panel {
  display: none;
  /* oculto en móvil */
  position: relative;
  z-index: 2;
  width: min(1060px, calc(100vw - 48px));
  height: min(640px, calc(100vh - 56px));
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.94) translateY(14px);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
}

.krea-app-modal.open .krea-desk-panel {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Desktop: mostrar panel split, ocultar bottom sheet */
@media (min-width: 820px) {
  .krea-desk-panel {
    display: flex !important;
  }

  .krea-app-sheet {
    display: none !important;
  }
}

/* Móvil: ocultar panel desktop, mostrar bottom sheet */
@media (max-width: 819px) {
  .krea-desk-panel {
    display: none !important;
  }
}

/* Botón X de cierre */
.krea-desk-close {
  position: static;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  cursor: pointer;
  transition: all 0.18s ease;
}

.krea-desk-close:hover {
  background: rgba(0, 0, 0, 0.12);
  transform: scale(1.08);
}

/* ── Columna izquierda: imagen ── */
.krea-desk-image-col {
  position: relative;
  flex: 0 0 46%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 135, 38, 0.06), transparent 70%), #f2f7f4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  border-right: 1px solid #e5ece8;
}

.krea-desk-img-stage {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.krea-desk-target-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform: scale(1.05);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.12));
}

.krea-app-modal.open .krea-desk-target-img {
  transform: scale(1.12);
}

/* Badge de material sobre imagen */
.krea-desk-img-badge {
  position: absolute;
  top: 18px;
  left: 18px;
}

/* ── Columna derecha: detalles con header fijo, cuerpo scrollable y footer fijo ── */
.krea-desk-info-col {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  gap: 0;
}

/* Encabezado */
.krea-desk-header {
  flex-shrink: 0;
  padding: 22px 26px 14px;
  border-bottom: 1px solid #edf2ef;
  margin-bottom: 0;
}

.krea-desk-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.krea-desk-title-wrap {
  min-width: 0;
  flex: 1;
}

.krea-desk-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.krea-desk-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(0, 158, 46, 0.1);
  color: #007324;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0;
  white-space: nowrap;
}

.krea-desk-stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: #009e2e;
  animation: krea-pulse 1.8s ease-in-out infinite;
}

@keyframes krea-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.85);
  }
}

.krea-desk-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #008726;
  line-height: 1.3;
  margin: 0 0 6px;
}

.krea-desk-subtitle {
  font-size: 0.82rem;
  color: #6b7280;
  margin: 0;
}

.krea-desk-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 26px;
}

/* Especificaciones */
.krea-desk-specs {
  background: #fafcfb;
  border: 1px solid #e5ece8;
  border-radius: 14px;
  padding: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.krea-desk-specs-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.07em;
  padding: 11px 16px;
  background: #f2f7f4;
  border-bottom: 1px solid #e5ece8;
  margin-bottom: 0;
}

.krea-desk-spec-row {
  display: grid;
  grid-template-columns: 38% 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #edf2ef;
  font-size: 0.84rem;
}

.krea-desk-spec-row:last-child {
  border-bottom: none;
}

.krea-desk-spec-key {
  color: #6b7280;
  font-weight: 500;
}

.krea-desk-spec-val {
  color: #111827;
  font-weight: 600;
  text-align: left;
}

/* Precio */
.krea-desk-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
  padding-top: 0;
}

.krea-desk-price {
  font-size: 1.9rem;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.02em;
}

.krea-desk-price-label {
  font-size: 0.8rem;
  color: #9ca3af;
  font-weight: 500;
}

/* Footer: cantidad + botón agregar — fijo al pie de la columna derecha */
.krea-desk-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px 18px;
  border-top: 1px solid #edf2ef;
  background: #ffffff;
  margin-top: 0;
}

/* ── Contador de cantidad: estilo cápsula ── */
.krea-desk-qty-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  background: #f4f7f5;
  border: 1px solid #dbe5df;
  border-radius: 9999px;
  padding: 4px 8px;
  height: 46px;
  box-sizing: border-box;
}

.krea-desk-qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  user-select: none;
  flex-shrink: 0;
}

.krea-desk-qty-btn:hover {
  background: var(--store-primary-green);
  border-color: var(--store-primary-green);
  color: #ffffff;
}

.krea-desk-qty-val {
  font-size: 0.95rem;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
  color: #0f172a;
  user-select: none;
}

/* Botón agregar al carrito (desktop) — ocupa todo el ancho restante */
.krea-desk-add-btn {
  flex: 1;
  height: 46px;
  border-radius: 9999px;
  background: var(--store-primary-green);
  color: #ffffff;
  border: none;
  font-family: var(--store-font);
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 135, 38, 0.28);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.krea-desk-add-btn:hover {
  background: var(--store-primary-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 135, 38, 0.42);
}

.krea-desk-add-btn.is-added {
  background: #005a18 !important;
}



.krea-app-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 24, 16, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.krea-app-sheet {
  position: relative;
  z-index: 2;
  width: 100% !important;
  max-width: 520px !important;
  height: auto !important;
  max-height: 90vh !important;
  max-height: 90dvh !important;
  background: #ffffff;
  border-radius: 26px 26px 0 0 !important;
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.28) !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translate3d(0, 100%, 0);
  transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

.krea-app-modal.open .krea-app-sheet {
  transform: translate3d(0, 0, 0) !important;
}

.krea-app-scroll-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.krea-app-hero-stage {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  min-height: 220px;
  background: radial-gradient(circle at 50% 50%, rgba(0, 135, 38, 0.08), transparent 70%), #f3f7f4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 18px 16px;
}

.krea-app-hero-stage img {
  max-height: 190px;
  max-width: 82%;
  object-fit: contain;
  transform: none;
  mix-blend-mode: multiply;
  transition: transform 0.3s ease;
}

.krea-app-back-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #11281d;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.krea-app-body {
  padding: 18px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.krea-app-sticky-footer {
  flex-shrink: 0;
  background: #ffffff;
  border-top: 1px solid #edf2ee;
  box-shadow: 0 -10px 26px rgba(10, 26, 17, 0.06);
  padding: 14px 18px max(18px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 5;
}

.krea-app-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.krea-app-price-section {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex-shrink: 0;
}

.krea-app-price-subtext {
  font-size: 0.74rem;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.2;
}

.krea-app-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.28;
  margin: 0;
}

.krea-app-unit-price {
  font-size: 1.55rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.krea-app-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.krea-app-buy-btn {
  flex: 1;
  height: 48px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #00ab33 0%, #008225 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 135, 38, 0.28);
  transition: filter 0.16s ease, transform 0.14s ease;
}

.krea-app-buy-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.krea-app-primary-btn {
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 14px;
  background: #11281d;
  color: #ffffff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: none;
  margin-top: 0;
  transition: background 0.18s ease, transform 0.16s ease;
}

.krea-app-primary-btn:hover {
  background: #1e3d2d;
  transform: translateY(-1px);
}

/* ========================================================
   CARRITO DE COMPRAS (PANEL LATERAL Y BACKDROP)
   z-index muy alto para quedar SIEMPRE sobre el topbar sticky
   ======================================================== */
.krea-cart {
  position: relative !important;
  z-index: 100000 !important;
}

.krea-cart-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100001 !important;
  background: rgba(10, 24, 16, 0.65) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.krea-cart-panel {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 100002 !important;
  width: min(450px, 100vw) !important;
  height: 100dvh !important;
  height: 100vh !important;
  background: #ffffff !important;
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.35) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.krea-cart-scroll-area[hidden],
.krea-cart-footer[hidden],
.krea-co-auth-warn[hidden],
.krea-co-error[hidden],
.krea-co-field[hidden],
.krea-co-ok-btn[hidden] {
  display: none !important;
}

.krea-co-view {
  padding: 16px 18px 24px !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.krea-co-totals-card {
  background: #f6faf7;
  border: 1px solid #dfece3;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.krea-co-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  color: #355243;
}

.krea-co-row.is-rate {
  font-size: 0.78rem;
  color: #6b7280;
}

.krea-co-row.is-bs {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed #cde0d3;
  font-weight: 700;
  color: #111827;
}

.krea-co-row.is-bs strong {
  font-size: 1.2rem;
  font-weight: 800;
  color: #008726;
}

.krea-co-paybox {
  background: #13221a;
  color: #e2e8f0;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 0.82rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.krea-co-pay-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4ade80;
}

.krea-co-pay-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.krea-co-paybox strong {
  color: #ffffff;
}

.krea-co-copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.krea-co-copy-btn {
  flex: 1;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: none;
  background: #009e2e;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.16s ease, transform 0.14s ease;
}

.krea-co-copy-btn:hover {
  filter: brightness(1.08);
}

.krea-co-copy-btn.is-sec {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.krea-co-auth-warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: #78350f;
}

.krea-co-auth-link {
  margin-top: 4px;
  align-self: flex-start;
  color: #008726;
  font-weight: 800;
  text-decoration: none;
}

.krea-co-error {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.82rem;
  font-weight: 600;
}

.krea-co-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.krea-co-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.krea-co-field span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #355243;
}

.krea-co-field input {
  height: 42px;
  border-radius: 12px;
  border: 1px solid #d5e2da;
  padding: 0 12px;
  font-family: inherit;
  font-size: 0.88rem;
  color: #111827;
  background: #ffffff;
}

.krea-co-field input:focus {
  outline: none;
  border-color: #009e2e;
  box-shadow: 0 0 0 3px rgba(0, 158, 46, 0.12);
}

.krea-co-file-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.krea-co-upload-btn {
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #cce3d4;
  background: #eef8f1;
  color: #11281d;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.krea-co-file-name {
  font-size: 0.78rem;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.krea-co-success {
  padding: 32px 20px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.krea-co-ok-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #eef8f1;
  color: #008726;
  display: flex;
  align-items: center;
  justify-content: center;
}

.krea-co-success h4 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #111827;
}

.krea-co-success p {
  margin: 0;
  font-size: 0.84rem;
  color: #6b7280;
  line-height: 1.45;
}

.krea-co-ok-meta {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f6faf7;
  border: 1px solid #dfece3;
  font-size: 0.82rem;
  color: #11281d;
  line-height: 1.55;
  text-align: left;
}

.krea-co-proof-wrap {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #cde0d3;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.krea-co-proof-wrap span {
  font-size: 0.74rem;
  font-weight: 700;
  color: #355243;
}

.krea-co-proof-thumb {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #d5e2da;
  display: block;
}

.krea-co-ok-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.krea-co-ok-btn {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.krea-co-ok-btn.is-green {
  background: linear-gradient(135deg, #00ab33 0%, #008225 100%);
  color: #ffffff;
}

.krea-co-ok-btn.is-sec {
  background: #eef4f0;
  color: #11281d;
}

.krea-cart-scroll-area {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.krea-cart-footer {
  flex-shrink: 0 !important;
  position: relative !important;
  z-index: 10 !important;
  background: #ffffff !important;
  border-top: 1px solid #eef2f0 !important;
  padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px)) !important;
}

@media (max-width: 780px) {
  .krea-cart-panel {
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .krea-cart-header {
    border-radius: 0 !important;
  }
}

.krea-empty-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 58px !important;
  height: 58px !important;
  border-radius: 9999px !important;
  background: #eef8f1 !important;
  color: #008726 !important;
  border: 1px solid rgba(0, 135, 38, 0.16) !important;
  margin: 0 auto 10px !important;
}

.krea-cart-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 10 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 16px 20px !important;
  border-bottom: 1px solid #f1f5f3 !important;
  background: #ffffff !important;
}

.krea-cart-back {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 9999px !important;
  background: #f1f5f3 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #11281d !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.krea-cart-back:hover {
  background: #e2ede6 !important;
  transform: scale(1.05) !important;
}

/* Ocultar el FAB flotante en páginas con el topbar (ya tiene botón de carrito en navbar) */
.krea-store-theme .krea-cart-fab {
  display: none !important;
}

/* Transiciones fluidas al agregar, modificar o eliminar en el carrito */
@keyframes kreaCartItemIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.krea-cart-item {
  transition: opacity 0.22s ease, transform 0.22s ease, max-height 0.22s ease, margin 0.22s ease, padding 0.22s ease;
  animation: kreaCartItemIn 0.2s ease-out;
}

.krea-cart-item.is-removing {
  opacity: 0 !important;
  transform: translateX(28px) !important;
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  overflow: hidden !important;
  border-color: transparent !important;
}

.krea-qty span {
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.krea-qty span.is-pop {
  transform: scale(1.28);
}

/* Bloquear scroll del fondo cuando cualquier modal o carrito está abierto */
html.krea-modal-open-scroll,
body.krea-modal-open-scroll,
html:has(.krea-cart-panel.open),
html:has(.design-modal.open) {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

.krea-app-scroll-content,
.krea-cart-scroll-area,
.design-modal-scroll {
  overscroll-behavior: contain !important;
  touch-action: pan-y;
}

.krea-app-backdrop,
.krea-cart-backdrop,
.design-modal-backdrop {
  touch-action: none;
}

@keyframes kreaTopbarCartBump {
  0% {
    transform: scale(1);
  }

  35% {
    transform: scale(1.22) rotate(-6deg);
    background: rgba(0, 158, 46, 0.35);
    border-color: #22c55e;
  }

  70% {
    transform: scale(0.95) rotate(3deg);
  }

  100% {
    transform: scale(1) rotate(0);
  }
}

.topbar-cart-btn.is-cart-bump {
  animation: kreaTopbarCartBump 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========================================================
   ANIMACIONES MODERNAS, ELEGANTES Y SUAVES (GLOBAL)
   ======================================================== */
@keyframes kreaFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes kreaNavDrop {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes kreaNavRise {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes kreaBottomSearchIn {
  from {
    opacity: 0;
    transform: translateY(10px) scaleY(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

@keyframes kreaCardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .topbar.store-topbar-pill {
    animation: kreaFadeUp 0.48s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .store-hero-section,
  .calc-hero,
  .designs-hero,
  .store-filter-bar-header {
    animation: kreaFadeUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.06s both;
  }

  .product-card,
  .design-card {
    animation: kreaCardIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease;
  }

  /* Scroll-reveal suave para secciones y tarjetas */
  .krea-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
  }

  .krea-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Micro-interacciones táctiles en botones y píldoras */
  .btn-primary,
  .btn-secondary,
  .krea-add-btn,
  .design-btn-calc,
  .design-btn-details,
  .store-pill-btn,
  .store-subpill-btn,
  .calc-preset-pill,
  .calc-mult-pill,
  .calc-btn-primary,
  .calc-btn-secondary,
  .calc-save-profile-btn {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }

  .btn-primary:active,
  .btn-secondary:active,
  .krea-add-btn:active:not(:disabled),
  .design-btn-calc:active,
  .design-btn-details:active,
  .store-pill-btn:active,
  .store-subpill-btn:active,
  .calc-preset-pill:active,
  .calc-mult-pill:active,
  .calc-btn-primary:active,
  .calc-save-profile-btn:active {
    transform: scale(0.97);
  }

  .design-modal.open .design-modal-dialog {
    animation: kreaCardIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

/* ═══ ESTADOS DE PRODUCTO AGOTADO ═══ */
.card-badge-top-left {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  pointer-events: none;
}

.badge-out-of-stock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}

.product-card.store-white-card.is-out-of-stock .image-wrap img {
  opacity: 0.55;
  filter: grayscale(35%);
}

.krea-add-btn.is-disabled,
.krea-add-btn:disabled,
.krea-desk-add-btn:disabled,
.krea-app-primary-btn:disabled {
  background: #e5e7eb !important;
  color: #6b7280 !important;
  border-color: #d1d5db !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

/* ═══ TOGGLES DE DISPONIBILIDAD Y BCV EN CATÁLOGO ═══ */
.store-filter-right-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.store-filter-toggles {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.store-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(17, 40, 29, 0.14);
  background: rgba(255, 255, 255, 0.88);
  color: #163a26;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.store-toggle-pill:hover {
  background: #ffffff;
  border-color: rgba(0, 158, 46, 0.45);
}

.store-toggle-pill.active {
  background: #16231c;
  color: #ffffff;
  border-color: #16231c;
  box-shadow: 0 4px 12px rgba(22, 35, 28, 0.18);
}

.store-toggle-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ca3af;
  transition: background 0.18s ease;
}

.store-toggle-pill.active .store-toggle-dot {
  background: #22c55e;
}

.product-price-bs {
  display: block;
  margin-top: 2px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #4b6355;
}

/* ═══ ESPECIFICACIONES Y CANTIDAD EN MODAL MÓVIL ═══ */
.krea-app-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 4px;
}

.krea-app-spec-chip {
  background: #f5f9f6;
  border: 1px solid #e3ede6;
  border-radius: 14px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.krea-app-spec-lbl {
  font-size: 0.68rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.krea-app-spec-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: #11281d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.krea-app-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.krea-app-qty-box {
  height: 44px;
  flex-shrink: 0;
}

/* ═══ ACCESIBILIDAD: TECLADO Y SKIP LINK ═══ */
.skip-link {
  position: fixed;
  top: -120px;
  left: 14px;
  z-index: 100005;
  padding: 10px 18px;
  border-radius: 9999px;
  background: #16231c;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid #22c55e;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 14px;
  outline: none;
}

:focus-visible {
  outline: 2.5px solid #009e2e;
  outline-offset: 2px;
}

.topbar.store-topbar-pill :focus-visible {
  outline: 2.5px solid #4ade80;
  outline-offset: 2px;
}

/* ═══ PÁGINAS LEGALES, FOOTER LEGAL Y BANNER DE COOKIES ═══ */
.krea-legal-card {
  max-width: 860px;
  margin: 12px auto 32px;
  background: #ffffff;
  border-radius: 24px;
  padding: 30px 32px;
  border: 1px solid rgba(22, 54, 36, 0.08);
  box-shadow: 0 10px 30px rgba(17, 40, 29, 0.06);
  color: #1f3529;
}

.krea-legal-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(0, 158, 46, 0.12);
  color: #008726;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.krea-legal-card h1 {
  margin: 0 0 6px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 800;
  color: #11281d;
}

.krea-legal-updated {
  margin: 0 0 22px;
  font-size: 0.82rem;
  color: #5b7265;
}

.krea-legal-card section {
  margin-bottom: 20px;
}

.krea-legal-card h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #163a26;
}

.krea-legal-card p,
.krea-legal-card li {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #354c3f;
}

.krea-legal-card ul {
  margin: 8px 0;
  padding-left: 20px;
}

.krea-legal-card a {
  color: #008726;
  font-weight: 600;
}

.krea-legal-footer {
  margin-top: 28px;
  padding: 16px 6px 8px;
  border-top: 1px solid rgba(17, 40, 29, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  font-size: 0.8rem;
  color: #355040;
}

.krea-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.krea-legal-links a,
.krea-legal-cookie-btn,
.footer-legal-link {
  color: #164428;
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

.krea-legal-links a:hover,
.krea-legal-cookie-btn:hover,
.footer-legal-link:hover {
  text-decoration: underline;
  color: #008726;
}

.krea-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: max(14px, env(safe-area-inset-bottom, 14px));
  max-width: 780px;
  margin: 0 auto;
  z-index: 950;
  background: rgba(20, 34, 26, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #ffffff;
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 20px;
  padding: 14px 18px;
  box-shadow: 0 16px 40px rgba(10, 26, 17, 0.38);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.krea-cookie-banner[hidden] {
  display: none !important;
}

.krea-cookie-text strong {
  display: block;
  font-size: 0.86rem;
  color: #4ade80;
  margin-bottom: 3px;
}

.krea-cookie-text p {
  margin: 0;
  font-size: 0.77rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
}

.krea-cookie-text a {
  color: #86efac;
  font-weight: 600;
}

.krea-cookie-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.krea-cookie-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.krea-cookie-btn-sec {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.krea-cookie-btn-sec:hover {
  background: rgba(255, 255, 255, 0.2);
}

.krea-cookie-btn-pri {
  background: #009e2e;
  color: #ffffff;
}

.krea-cookie-btn-pri:hover {
  background: #008726;
}

@media (max-width: 640px) {
  .krea-legal-card {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .krea-cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 18px;
  }

  .krea-cookie-actions {
    justify-content: flex-end;
  }
}

/* ═══ FOOTER GLOBAL E-COMMERCE (TODAS LAS PÁGINAS) ═══ */
.store-footer {
  width: 100%;
  background: linear-gradient(180deg, #09130d 0%, #030704 100%);
  border: 1px solid rgba(6, 176, 0, 0.28);
  border-radius: 24px;
  padding: 38px 40px 24px;
  box-shadow: 0 16px 40px rgba(3, 7, 4, 0.35);
  margin: 28px auto 12px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.store-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6, 176, 0, 0.45), transparent);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.15fr;
  gap: 36px;
  margin-bottom: 28px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand img {
  max-width: 140px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.footer-desc {
  margin: 0;
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.6;
}

.footer-pill-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(6, 176, 0, 0.12);
  border: 1px solid rgba(6, 176, 0, 0.28);
  color: #4ade80;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-col h4 {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.footer-col h4::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #06b000;
  box-shadow: 0 0 8px #06b000;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 600;
  transition: all 0.18s ease;
}

.footer-link-item:hover {
  background: rgba(6, 176, 0, 0.14);
  border-color: rgba(6, 176, 0, 0.32);
  color: #ffffff;
  transform: translateX(3px);
}

.footer-link-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: #4ade80;
  background: rgba(6, 176, 0, 0.18);
  padding: 2px 8px;
  border-radius: 999px;
}

.footer-payment-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
  font-size: 0.84rem;
  font-weight: 600;
}

.payment-chip svg {
  color: #4ade80;
  flex-shrink: 0;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.83rem;
  color: #94a3b8;
  line-height: 1.45;
}

.contact-item svg {
  color: #4ade80;
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-item strong {
  color: #f1f5f9;
  display: block;
  font-size: 0.84rem;
}

.footer-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  margin-top: 4px;
  border-radius: 10px;
  background: rgba(37, 211, 102, 0.14);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #25d366;
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 700;
  transition: all 0.18s ease;
}

.footer-wa-btn:hover {
  background: #20ba59;
  color: #042f1a;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #94a3b8;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4ade80;
  font-weight: 600;
}

.store-footer .krea-legal-links a,
.store-footer .footer-legal-link {
  color: #cbd5e1 !important;
  font-weight: 600;
}

.store-footer .krea-legal-links a:hover,
.store-footer .footer-legal-link:hover {
  color: #4ade80 !important;
}

@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }
}

@media (max-width: 640px) {
  .store-footer {
    padding: 18px 16px 16px;
    border-radius: 18px;
    margin-top: 20px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
  }

  .footer-col {
    gap: 8px;
  }

  .footer-brand {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }

  .footer-brand img {
    max-width: 88px;
  }

  .footer-desc {
    display: none;
  }

  .footer-pill-tag {
    font-size: 0.68rem;
    padding: 4px 9px;
  }

  .footer-col h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .footer-link-item {
    padding: 7px 9px;
    font-size: 0.73rem;
    border-radius: 10px;
  }

  .footer-link-count {
    font-size: 0.66rem;
    padding: 1px 6px;
  }

  .footer-payment-chips {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .payment-chip {
    flex: 1 1 auto;
    justify-content: center;
    padding: 6px 9px;
    font-size: 0.72rem;
    gap: 5px;
    border-radius: 999px;
  }

  .payment-chip svg {
    width: 13px;
    height: 13px;
  }

  .footer-contact-list {
    gap: 8px;
  }

  .contact-item {
    font-size: 0.75rem;
    gap: 8px;
  }

  .contact-item strong {
    font-size: 0.76rem;
  }

  .footer-wa-btn {
    width: 100%;
    padding: 9px 12px;
    font-size: 0.78rem;
    border-radius: 12px;
  }

  .footer-bottom {
    padding-top: 12px;
    gap: 6px;
    font-size: 0.72rem;
    justify-content: center;
    text-align: center;
  }
}

.krea-cart-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.krea-cart-calc-btn {
  width: 100%;
  height: 46px;
  border-radius: 9999px;
  background: var(--store-primary-green, #008726);
  color: #ffffff;
  font-family: var(--store-font);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(0, 135, 38, 0.28);
  transition: background 0.18s ease, transform 0.16s ease;
}

.krea-cart-calc-btn:hover {
  background: var(--store-primary-green-hover, #006e1f);
  transform: translateY(-1px);
}

.krea-cart-calc-btn[hidden],
.krea-cart-send[hidden] {
  display: none !important;
}

.topbar-maker-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.topbar-maker-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.topbar-maker-btn.active {
  background: var(--store-pill-active, #009e2e);
  border-color: var(--store-pill-active, #009e2e);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 158, 46, 0.34);
}

.nav-maker-mobile-link {
  display: none !important;
}

@media (max-width: 900px) {
  .topbar-maker-btn {
    display: none !important;
  }

  .nav-maker-mobile-link {
    display: inline-flex !important;
  }
}

/* ═══ MINIMALIST 2026 PRODUCT CARDS (UNIFIED HOME & CATALOG) ═══ */
.product-card.store-white-card {
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 20px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card.store-white-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.product-card.store-white-card .image-wrap {
  position: relative;
  background: #f4f5f6;
  border-radius: 14px;
  aspect-ratio: 1 / 1;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.product-card.store-white-card .image-wrap img {
  max-width: 86%;
  max-height: 86%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.25s ease;
}

.product-card.store-white-card:hover .image-wrap img {
  transform: scale(1.04);
}

.product-card.store-white-card .card-badge-top-right {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.product-card.store-white-card .badge-material-pill {
  display: inline-block;
  background: #ffffff;
  color: #374151;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.product-card.store-white-card .product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 10px 2px 2px;
  gap: 0;
}

.product-card.store-white-card .product-title {
  margin: 0 0 6px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111827 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 10px;
}

.product-meta-stock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 500;
  color: #6b7280;
  white-space: nowrap;
}

.product-meta-stock::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #10b981;
  flex-shrink: 0;
}

.product-meta-stock.is-out::before {
  background: #ef4444;
}

.product-card.store-white-card .product-price,
.product-card.store-white-card .price {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.product-card-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 7px;
}

.product-card-actions .krea-buy-now-btn {
  flex: 1;
  min-width: 0;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 12px !important;
  border-radius: 12px !important;
  border: none !important;
  background: linear-gradient(135deg, #00ab33 0%, #008225 100%) !important;
  color: #ffffff !important;
  font-family: inherit;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 135, 38, 0.22);
  transition: filter 0.16s ease, transform 0.14s ease;
}

.product-card-actions .krea-buy-now-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.product-card-actions .krea-cart-icon-btn {
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  border-radius: 12px !important;
  border: none !important;
  background: #11281d !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: none !important;
  transition: background 0.16s ease, transform 0.14s ease;
}

.product-card-actions .krea-cart-icon-btn:hover {
  background: #1e3d2d !important;
  transform: translateY(-1px);
}

.product-card-actions .krea-pill-outline {
  height: 38px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  color: #6b7280;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .product-card.store-white-card {
    padding: 9px;
    border-radius: 16px;
  }

  .product-card.store-white-card .image-wrap {
    padding: 14px;
    border-radius: 12px;
  }

  .product-card.store-white-card .card-badge-top-right {
    top: 7px;
    right: 7px;
  }

  .product-card.store-white-card .badge-material-pill {
    font-size: 0.6rem;
    padding: 2px 7px;
  }

  .product-card.store-white-card .product-title {
    font-size: 0.78rem;
    min-height: 2.5em;
    margin-bottom: 5px;
  }

  .product-meta-stock {
    font-size: 0.66rem;
  }

  .product-card.store-white-card .product-price,
  .product-card.store-white-card .price {
    font-size: 0.94rem;
  }

  .product-meta-row {
    margin-bottom: 8px;
  }

  .product-card-actions .krea-buy-now-btn {
    height: 36px !important;
    min-height: 36px !important;
    font-size: 0.76rem !important;
    border-radius: 10px !important;
  }

  .product-card-actions .krea-cart-icon-btn {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
  }
}


/* ═══ COMPACT & MINIMAL FOOTER VARIANTS ═══ */
.store-footer.is-minimal {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 14px 4px 4px;
  margin-top: 12px;
  color: #355243;
}

.store-footer.is-minimal::before {
  display: none;
}

.store-footer.is-minimal .footer-bottom-minimal {
  border-top: 1px solid rgba(17, 40, 29, 0.12);
  padding-top: 12px;
  color: #426351;
}

.store-footer.is-minimal .krea-legal-links a,
.store-footer.is-minimal .footer-legal-link {
  color: #163624 !important;
  font-weight: 700;
}

.store-footer.is-minimal .krea-legal-links a:hover,
.store-footer.is-minimal .footer-legal-link:hover {
  color: #008726 !important;
}

.store-footer.is-compact {
  padding: 20px 24px 16px;
}

.footer-compact-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.footer-compact-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-compact-brand img {
  height: 28px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  align-self: flex-start;
}

.footer-compact-meta {
  font-size: 0.78rem;
  color: #9cb8a7;
}

.footer-compact-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-compact-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-compact-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 0.16s ease;
}

.footer-compact-nav a:hover {
  color: #4ade80;
}

.footer-wa-compact {
  padding: 7px 14px !important;
  font-size: 0.8rem !important;
  border-radius: 9999px !important;
  width: auto !important;
}

@media (max-width: 640px) {
  .store-footer.is-compact {
    padding: 16px 14px 14px;
    border-radius: 18px;
    margin-top: 16px;
  }

  .footer-compact-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 12px;
  }

  .footer-compact-actions {
    width: 100%;
    justify-content: space-between;
  }

  .footer-compact-nav {
    gap: 10px;
  }

  .footer-compact-nav a {
    font-size: 0.78rem;
  }

  .store-footer.is-minimal .footer-bottom-minimal {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px 12px;
    font-size: 0.75rem;
  }
}

/* ═══ DESIGN ENGINEERING POLISH (TASTE + EMIL KOWALSKI + IMPECCABLE) ═══ */
.product-price,
.topbar-cart-badge,
.pill-badge,
.subpill-badge,
.maker-kpi-value,
.admin-inv-kpi strong,
.admin-td-price,
.designs-meta-pill,
.admin-client-orders-pill {
  font-variant-numeric: tabular-nums;
}

/* Tactile press feedback (140ms ease-out) en todos los botones e items interactivos */
.store-pill-btn,
.store-subpill-btn,
.topbar-cart-btn,
.topbar-maker-btn,
.topbar-search-toggle,
.menu-toggle,
.designs-topic-pill,
.designs-mode-btn,
.designs-calc-btn,
.designs-cart-btn,
.maker-head-cta,
.maker-head-sec,
.admin-add-btn,
.admin-save-btn,
.admin-cancel-btn,
.admin-cat-pill,
.maker-nav-item,
.maker-profile-addr-btn,
.admin-client-act-btn {
  transition: transform 0.14s var(--ease-out), background-color 0.16s var(--ease-out), border-color 0.16s var(--ease-out), color 0.16s var(--ease-out);
}

.add-to-cart-btn:active,
.store-pill-btn:active,
.store-subpill-btn:active,
.topbar-cart-btn:active,
.topbar-maker-btn:active,
.topbar-search-toggle:active,
.menu-toggle:active,
.designs-topic-pill:active,
.designs-mode-btn:active,
.designs-calc-btn:active,
.designs-cart-btn:active,
.maker-head-cta:active,
.maker-head-sec:active,
.admin-add-btn:active,
.admin-save-btn:active,
.admin-cancel-btn:active,
.admin-cat-pill:active,
.maker-nav-item:active,
.maker-profile-addr-btn:active,
.admin-client-act-btn:active {
  transform: scale(0.97) !important;
}

/* Accesibilidad: foco visible nítido al navegar con teclado */
.store-pill-btn:focus-visible,
.store-subpill-btn:focus-visible,
.add-to-cart-btn:focus-visible,
.topbar-cart-btn:focus-visible,
.topbar-maker-btn:focus-visible,
.menu-toggle:focus-visible,
.maker-nav-item:focus-visible,
.admin-add-btn:focus-visible,
.admin-save-btn:focus-visible,
.admin-cancel-btn:focus-visible {
  outline: 2px solid #009e2e;
  outline-offset: 2px;
}

/* Modales nunca parten desde scale(0): transición orgánica 0.96 -> 1 */
.admin-prod-modal.open .admin-prod-dialog,
.designs-modal.open .designs-modal-dialog {
  animation: kreaModalPop 0.2s var(--ease-out) both;
}

@keyframes kreaModalPop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Respeta preferencia del usuario por movimiento reducido */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ═══ CATALOGO FILTER PILLS & KREA-ADD-BTN POLISH ═══ */
.store-pill-btn {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(17, 40, 29, 0.09);
}

.store-pill-btn:hover {
  background: #ffffff;
  border-color: rgba(0, 135, 38, 0.24);
}

.product-card .price {
  font-variant-numeric: tabular-nums;
}

.krea-add-btn {
  transition: transform 0.14s var(--ease-out), background-color 0.16s var(--ease-out), box-shadow 0.18s var(--ease-out);
}

.krea-add-btn:active {
  transform: scale(0.97) !important;
}

.krea-add-btn:focus-visible {
  outline: 2px solid #009e2e;
  outline-offset: 2px;
}
