/* ==========================================================================
   CASA NUEVA SUPERMERCADO · CATÁLOGO Y CARRITO WEB OFICIAL
   Estética homologada con https://cn.com.ar/productos (Light Mode · #d4a41e / #202020)
   ========================================================================== */

:root {
  --theme-default: #d4a41e;
  --theme-default-hover: #b88c14;
  --theme-default-soft: rgba(212, 164, 30, 0.12);
  --theme-default-border: rgba(212, 164, 30, 0.42);
  --theme-secondary: #202020;

  --surface-ground: #f8f9fa;
  --surface-card: #ffffff;
  --surface-hover: #f4f5f8;
  --surface-border: #e0e0e0;
  --surface-border-subtle: #e9ecef;

  --text-primary: #2b2b2b;
  --text-secondary: #59667a;
  --text-muted: #898989;

  --status-ok: #28a745;
  --status-ok-bg: rgba(40, 167, 69, 0.12);
  --status-danger: #dc3545;
  --status-danger-bg: rgba(220, 53, 69, 0.12);
  --status-info: #17a2b8;

  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: var(--font-sans);
  --font-mono: var(--font-sans);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --shadow-card: 0 2px 12px rgba(8, 21, 66, 0.05);
  --shadow-hover: 0 6px 18px rgba(0, 0, 0, 0.09);
  --shadow-header: 0 0 20px rgba(89, 102, 122, 0.1);
}

html[data-theme="dark"] {
  --surface-ground: #07080a;
  --surface-card: #12151a;
  --surface-hover: #191d24;
  --surface-border: rgba(255, 255, 255, 0.12);
  --surface-border-subtle: rgba(255, 255, 255, 0.07);
  --text-primary: #f5f2eb;
  --text-secondary: #a8a399;
  --text-muted: #706b62;
  --shadow-card: 0 12px 28px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 16px 36px rgba(0, 0, 0, 0.65);
  --shadow-header: 0 4px 20px rgba(0, 0, 0, 0.6);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--surface-ground);
  overflow-x: hidden;
}

/* ==========================================
   HEADER PRINCIPAL (.page-header)
   ========================================== */
.page-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: var(--surface-card);
  box-shadow: var(--shadow-header);
  border-bottom: 1px solid var(--surface-border-subtle);
}

.store-header-inner {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-logo-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.toggle-sidebar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--surface-border);
  background: var(--surface-card);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-sidebar-btn:hover {
  background: var(--theme-default-soft);
  border-color: var(--theme-default);
  color: var(--theme-default-hover);
}

.store-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.store-brand-logo {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: contain;
  background: #202020;
  padding: 3px;
  border: 1px solid var(--theme-default);
}

.store-brand-text {
  display: flex;
  flex-direction: column;
}

.store-brand-title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--theme-secondary);
  line-height: 1.15;
}

.store-brand-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--theme-default-hover);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Buscador en cabecera */
.header-search-box {
  flex: 1 1 320px;
  max-width: 520px;
}

.header-inputgroup {
  display: flex;
  align-items: center;
  position: relative;
  background: var(--surface-ground);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-inputgroup:focus-within {
  background: #ffffff;
  border-color: var(--theme-default);
  box-shadow: 0 0 0 3px rgba(212, 164, 30, 0.18);
}

.header-search-control {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.55rem 0.85rem;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text-primary);
  outline: none;
}

.btn-header-clear {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 0.5rem;
  font-size: 0.9rem;
}

.btn-header-search {
  background: var(--theme-default);
  color: #ffffff;
  border: none;
  height: 38px;
  padding: 0 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.btn-header-search:hover {
  background: var(--theme-default-hover);
}

/* Navegación superior */
.store-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--surface-ground);
  padding: 0.25rem;
  border-radius: 8px;
  border: 1px solid var(--surface-border-subtle);
}

.store-nav-tab {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.store-nav-tab:hover {
  color: var(--theme-secondary);
  background: rgba(0, 0, 0, 0.04);
}

.store-nav-tab.is-active {
  background: var(--theme-default);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(212, 164, 30, 0.3);
}

/* Acciones Usuario y Carrito */
.store-user-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.user-action-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.user-action-group[hidden] {
  display: none !important;
}

.price-lock-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: #8a6a19;
  background: #fffcf5;
  border: 1px solid #fde4a5;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.btn-primary-theme,
.btn-outline-theme,
.btn-ghost-danger,
.btn-page {
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 0.48rem 0.9rem;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.btn-primary-theme {
  background-color: var(--theme-default);
  color: #ffffff;
  border: 1px solid var(--theme-default);
}

.btn-primary-theme:hover {
  background-color: var(--theme-default-hover);
  border-color: var(--theme-default-hover);
}

.btn-outline-theme {
  background-color: #ffffff;
  color: var(--theme-secondary);
  border: 1px solid var(--surface-border);
}

.btn-outline-theme:hover {
  border-color: var(--theme-default);
  color: var(--theme-default-hover);
  background-color: #fffcf5;
}

.btn-ghost-danger {
  background: var(--status-danger-bg);
  color: var(--status-danger);
  border: 1px solid rgba(220, 53, 69, 0.25);
  padding: 0.42rem 0.7rem;
}

.btn-ghost-danger:hover {
  background: var(--status-danger);
  color: #ffffff;
}

.logged-user-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-ground);
  border: 1px solid var(--surface-border);
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
}

.logged-user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logged-user-meta strong {
  font-size: 0.8rem;
  color: var(--theme-secondary);
}

.logged-user-meta small {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--status-ok);
}

.btn-cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--theme-secondary);
  color: #ffffff;
  border: 1px solid var(--theme-secondary);
  padding: 0.42rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.84rem;
}

.cart-count-badge {
  background: var(--theme-default);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.74rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}

.cart-total-badge {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #fde4a5;
}

/* ==========================================
   MAIN CONTAINER & BREADCRUMB
   ========================================== */
.store-main {
  max-width: 1560px;
  margin: 0 auto;
  padding: 1rem 1.25rem 2.5rem;
}

.store-view[hidden] {
  display: none !important;
}

.page-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.breadcrumb-list a {
  color: var(--theme-default-hover);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb-list .active {
  font-weight: 600;
  color: var(--text-primary);
}

.catalog-stats-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.stat-pill {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 0.3rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: var(--shadow-card);
}

.stat-pill span {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.stat-pill strong {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--theme-secondary);
}

.stat-pill-ok strong {
  color: var(--status-ok);
}

.stat-pill-warn strong {
  color: var(--status-danger);
}

/* ==========================================
   HERO BANNER CARRUSEL (Medida nativa 1530x370 · Compatible 1920x370)
   ========================================== */
.productos-hero-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.productos-hero-wrap[hidden] {
  display: none !important;
}

.productos-carousel-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--surface-border);
  background: #1a1a1a;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.1);
  aspect-ratio: 1530 / 370;
  width: 100%;
  user-select: none;
}

.hero-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.hero-carousel-slide-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.productos-banner-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(6px);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.hero-carousel-nav[hidden] {
  display: none !important;
}

.hero-carousel-nav:hover {
  background: rgba(212, 164, 30, 0.94);
  border-color: #fde4a5;
  transform: translateY(-50%) scale(1.06);
}

.hero-carousel-prev {
  left: 0.85rem;
}

.hero-carousel-next {
  right: 0.85rem;
}

.hero-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 0.65rem;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(5px);
}

.hero-carousel-dots[hidden] {
  display: none !important;
}

.hero-carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.22s ease, background 0.22s ease;
}

.hero-carousel-dot.is-active {
  width: 24px;
  background: #f5c542;
}

@media (max-width: 768px) {
  .productos-carousel-banner {
    border-radius: 10px;
    min-height: 96px;
  }

  .hero-carousel-nav {
    width: 32px;
    height: 32px;
  }

  .hero-carousel-prev {
    left: 0.45rem;
  }

  .hero-carousel-next {
    right: 0.45rem;
  }

  .hero-carousel-dots {
    bottom: 0.38rem;
    padding: 0.2rem 0.5rem;
  }
}

.guest-promo-banner {
  background: linear-gradient(135deg, #ffffff 0%, #fffdf7 100%);
  border: 1px solid var(--theme-default-border);
  border-left: 5px solid var(--theme-default);
  border-radius: var(--radius-md);
  padding: 1rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-card);
}

.guest-promo-banner[hidden] {
  display: none !important;
}

.promo-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--theme-default-hover);
  margin-bottom: 0.2rem;
}

.guest-promo-copy h1 {
  margin: 0 0 0.25rem;
  font-family: var(--font-heading);
  font-size: 1.18rem;
  color: var(--theme-secondary);
}

.guest-promo-copy p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.86rem;
  max-width: 820px;
}

.guest-promo-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ==========================================
   LAYOUT DE 2 COLUMNAS: SIDEBAR IZQUIERDO + PRODUCTOS
   ========================================== */
.product-wrapper {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.product-wrapper.sidebar-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.product-wrapper.sidebar-collapsed .product-sidebar {
  display: none;
}

/* SIDEBAR DE FILTROS (.product-sidebar) */
.product-sidebar {
  position: sticky;
  top: 76px;
}

.filter-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.filter-card-header {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--surface-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafafa;
}

.filter-title-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--theme-secondary);
}

.filter-title-group h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.filter-count-badge {
  background: var(--theme-default);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}

.btn-reset-filters {
  background: transparent;
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 5px;
  cursor: pointer;
}

.btn-reset-filters:hover {
  border-color: var(--status-danger);
  color: var(--status-danger);
}

/* Chips de filtros activos (p-chip) */
.active-filter-chips {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--surface-border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  background: #fffcf5;
}

.active-filter-chips[hidden] {
  display: none !important;
}

.p-chip-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--theme-default-soft);
  border: 1px solid var(--theme-default-border);
  color: var(--theme-secondary);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.p-chip-tag button {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  font-size: 0.78rem;
  line-height: 1;
}

.filter-card-body {
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.filter-block-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.sidebar-input,
.sidebar-select,
.listbox-search-input {
  width: 100%;
  padding: 0.48rem 0.7rem;
  font-family: inherit;
  font-size: 0.83rem;
  color: var(--text-primary);
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 6px;
}

.sidebar-input:focus,
.sidebar-select:focus,
.listbox-search-input:focus {
  outline: none;
  border-color: var(--theme-default);
  box-shadow: 0 0 0 2px rgba(212, 164, 30, 0.16);
}

/* Acordeones en Sidebar (p-accordionTab) */
.filter-accordion {
  border: 1px solid var(--surface-border-subtle);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.filter-accordion-header {
  list-style: none;
  padding: 0.6rem 0.75rem;
  background: #f8f9fa;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--theme-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.filter-accordion-header::-webkit-details-marker {
  display: none;
}

.filter-accordion-content {
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--surface-border-subtle);
}

.stock-quick-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}

.stock-pill-btn {
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.38rem 0.3rem;
  border-radius: 6px;
  border: 1px solid var(--surface-border);
  background: #ffffff;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.stock-pill-btn.is-active {
  background: var(--theme-default);
  border-color: var(--theme-default);
  color: #ffffff;
}

/* Lista desplazable tipo PrimeNG p-listbox */
.p-listbox-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--surface-border-subtle);
  border-radius: 6px;
}

.p-listbox-item {
  padding: 0.42rem 0.65rem;
  font-size: 0.79rem;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  border-bottom: 1px solid #f4f4f4;
  transition: background-color 0.14s ease;
}

.p-listbox-item:last-child {
  border-bottom: none;
}

.p-listbox-item:hover {
  background-color: var(--surface-hover);
}

.p-listbox-item.is-selected {
  background-color: var(--theme-default-soft);
  color: #644d12;
  font-weight: 700;
}

.p-listbox-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  background: #f1f3f5;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
}

/* ==========================================
   BARRA DE CONTROL DE GRILLA (.feature-products-bar)
   ========================================== */
.product-grid-column {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.feature-products-bar {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-card);
}

.feature-bar-left,
.feature-bar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.view-toggle-group {
  display: inline-flex;
  gap: 0.35rem;
}

.square-setting-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--surface-border);
  background: #ffffff;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.16s ease;
}

.square-setting-btn.is-active,
.square-setting-btn:hover {
  border-color: var(--theme-default);
  color: var(--theme-default);
  background: #fffcf5;
}

/* Selector de columnas con barritas (.line-grid.bg-primary de cn.com.ar) */
.grid-cols-options {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.col-layout-btn {
  height: 36px;
  padding: 0 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--surface-border);
  background: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.16s ease;
}

.col-layout-btn .line-grid {
  width: 4px;
  height: 15px;
  background-color: #cbd3da;
  border-radius: 1px;
  transition: background-color 0.16s ease;
}

.col-layout-btn.is-active,
.col-layout-btn:hover {
  border-color: var(--theme-default);
  background: #fffcf5;
}

.col-layout-btn.is-active .line-grid,
.col-layout-btn:hover .line-grid {
  background-color: var(--theme-default);
}

.results-summary-text {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.sort-select-wrap,
.page-size-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.sort-select,
.page-size-select {
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--surface-border);
  background: #ffffff;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text-primary);
}

.btn-copy-url {
  background: #f8f9fa;
  border: 1px solid var(--surface-border);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-copy-url:hover {
  border-color: var(--theme-default);
  background: #fffcf5;
  color: var(--theme-default-hover);
}

/* Barra de paginación */
.catalog-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 0.55rem 1rem;
  box-shadow: var(--shadow-card);
}

.catalog-pagination {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.pagination-numbers {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-page-num {
  min-width: 32px;
  height: 32px;
  padding: 0 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--surface-border);
  background: #ffffff;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-page-num.is-active {
  background: var(--theme-default);
  border-color: var(--theme-default);
  color: #ffffff;
}

.btn-page {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--surface-border);
  padding: 0.38rem 0.75rem;
}

.btn-page:hover:not(:disabled) {
  border-color: var(--theme-default);
  color: var(--theme-default-hover);
}

.btn-page:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-indicator {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0 0.35rem;
}

/* ==========================================
   PRODUCT CARD GRID (.store-product-grid & .ppcard / .product-box)
   ========================================== */
.store-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.store-product-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.store-product-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.store-product-grid.cols-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.store-product-grid.list-view {
  grid-template-columns: 1fr;
}

/* Tarjeta estilo ppcard / product-box de cn.com.ar/productos */
.product-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: var(--theme-default-border);
}

/* Vista Lista */
.store-product-grid.list-view .product-card {
  flex-direction: row;
  align-items: center;
  padding: 0.5rem 1rem;
  gap: 1.25rem;
}

.store-product-grid.list-view .product-card-media {
  width: 160px;
  min-width: 160px;
  aspect-ratio: 1 / 1;
  border-bottom: none;
  border-right: 1px solid var(--surface-border-subtle);
}

.store-product-grid.list-view .product-card > header {
  flex: 1;
}

.store-product-grid.list-view .product-card-pricing {
  min-width: 210px;
}

.store-product-grid.list-view .product-card > footer {
  min-width: 220px;
  border-top: none;
  background: transparent;
}

/* 1. Contenedor de Imagen sobre Fondo Blanco Puro (.ppcard__img-wrap) */
.product-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 220px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-bottom: 1px solid #f2f4f7;
  cursor: pointer;
}

.product-card-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.product-card:hover .product-card-media img {
  transform: scale(1.04);
}

/* Placeholder limpio en fondo blanco cuando no hay foto */
.product-media-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px dashed #e2e6ea;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem;
  text-align: center;
}

.product-media-placeholder .placeholder-logo-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #202020;
  color: var(--theme-default);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--theme-default);
}

.product-media-placeholder .placeholder-brand {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Botón flotante de vista rápida (QuickView de cn.com.ar) */
.btn-quickview-eye {
  position: absolute;
  bottom: 0.55rem;
  right: 0.55rem;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-quickview-eye:hover {
  background: var(--theme-default);
  border-color: var(--theme-default);
  color: #ffffff;
}

/* Etiquetas de Código y Estado de Stock (.badge-success / .badge-danger) */
.code-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  background: #f8f9fa;
  color: var(--text-secondary);
  padding: 0.16rem 0.48rem;
  border-radius: 4px;
  border: 1px solid var(--surface-border);
}

.stock-badge {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  line-height: 1.1;
}

.stock-badge.in-stock {
  background-color: var(--status-ok);
  color: #ffffff;
}

.stock-badge.out-stock {
  background-color: var(--status-danger);
  color: #ffffff;
}

/* 2. Cuerpo de Detalles (.ppcard__body) */
.product-card > header {
  padding: 0.75rem 0.9rem 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.product-meta-tags {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-meta-marca {
  color: var(--theme-default-hover);
  font-weight: 700;
}

.product-card > header h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.48rem;
  cursor: pointer;
}

.product-card > header h3:hover {
  color: var(--theme-default-hover);
}

.product-code-line {
  margin: 0.15rem 0 0;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* 3. Región de Precio (.product-price) */
.product-card-pricing {
  padding: 0.35rem 0.9rem 0.65rem;
}

.price-locked-box {
  background: #fffcf5;
  border: 1px dashed var(--theme-default-border);
  border-radius: 6px;
  padding: 0.45rem 0.65rem;
  font-size: 0.74rem;
  color: #8a6a19;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.price-unlocked-box {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  background: #f6fbf6;
  border: 1px solid #d4ecd5;
  border-radius: 6px;
  padding: 0.45rem 0.7rem;
}

.price-unlocked-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
}

.price-unlocked-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.price-unlocked-value {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--status-ok);
}

.price-neto-normativa {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* 4. Pie de Tarjeta / Controles de Carrito (.bootstrap-touchspin) */
.product-card > footer {
  padding: 0.65rem 0.9rem;
  border-top: 1px solid var(--surface-border-subtle);
  background: #fafafa;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.touchspin-group {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.btn-touchspin {
  width: 28px;
  height: 32px;
  border: none;
  background: var(--theme-default);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-touchspin:hover {
  background: var(--theme-default-hover);
}

.qty-stepper {
  width: 44px;
  height: 32px;
  border: none;
  background: #ffffff;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
}

.qty-stepper::-webkit-outer-spin-button,
.qty-stepper::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-card-action {
  flex: 1;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.48rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.16s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.btn-card-add {
  background: var(--theme-default);
  color: #ffffff;
}

.btn-card-add:hover {
  background: var(--theme-default-hover);
}

.btn-card-login {
  background: #ffffff;
  color: var(--theme-secondary);
  border-color: var(--theme-default);
}

.btn-card-login:hover {
  background: var(--theme-default);
  color: #ffffff;
}

.btn-card-out {
  background: #f8f9fa;
  color: var(--status-danger);
  border-color: rgba(220, 53, 69, 0.3);
  cursor: not-allowed;
}

/* ==========================================
   QUICKVIEW MODAL (Detalle de Producto)
   ========================================== */
.quickview-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: center;
}

.quickview-img-box {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.quickview-img-box img {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.quickview-details h4 {
  margin: 0.25rem 0 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--theme-secondary);
}

.quickview-meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

/* ==========================================
   SECCIÓN DE REGISTRACIÓN ONLINE DE CLIENTES
   ========================================== */
.registration-container {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.registration-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.15rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--surface-border-subtle);
}

.registration-header h2 {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.35rem;
  color: var(--theme-secondary);
}

.registration-header p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 780px;
  font-size: 0.88rem;
}

.reg-grid-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.reg-fieldset {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem 1.25rem;
  margin: 0;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.reg-fieldset-highlight {
  border-color: var(--theme-default);
  background: #fffdf7;
}

.reg-fieldset legend {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--theme-secondary);
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  padding: 0.2rem 0.65rem;
}

.fieldset-helper {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.form-row-grid {
  display: grid;
  gap: 0.85rem;
}

.form-row-grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.form-row-grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.form-row-grid.cols-4 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-field label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.form-field input,
.form-field select {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.86rem;
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--theme-default);
  box-shadow: 0 0 0 3px rgba(212, 164, 30, 0.15);
}

.uppercase-input {
  text-transform: uppercase;
}

.inline-select-Action {
  display: flex;
  gap: 0.4rem;
}

.inline-select-Action select {
  flex: 1;
}

.btn-mini-add {
  background: var(--theme-default);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  width: 38px;
  font-weight: 700;
  cursor: pointer;
}

.reg-form-footer {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--surface-border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.form-feedback {
  margin-top: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.form-feedback.is-error {
  background: var(--status-danger-bg);
  color: var(--status-danger);
  border: 1px solid rgba(220, 53, 69, 0.35);
}

.form-feedback.is-success {
  background: var(--status-ok-bg);
  color: var(--status-ok);
  border: 1px solid rgba(40, 167, 69, 0.35);
}

/* ==========================================
   DIALOGS (LOGIN, QUICKVIEW, CARRITO)
   ========================================== */
.store-dialog {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  color: var(--text-primary);
  padding: 0;
  width: min(92vw, 480px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.store-dialog-wide {
  width: min(94vw, 760px);
}

.store-dialog::backdrop {
  background: rgba(32, 32, 32, 0.6);
  backdrop-filter: blur(2px);
}

.dialog-card {
  display: flex;
  flex-direction: column;
}

.dialog-header {
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--surface-border-subtle);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background: #fafafa;
}

.dialog-header h3 {
  margin: 0.15rem 0 0;
  font-size: 1.1rem;
  color: var(--theme-secondary);
}

.dialog-close-btn {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
}

.dialog-body {
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  max-height: 72vh;
  overflow-y: auto;
}

.dialog-lead {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.dialog-footer {
  padding: 0.95rem 1.35rem;
  border-top: 1px solid var(--surface-border-subtle);
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dialog-footer-right {
  display: flex;
  gap: 0.6rem;
}

/* Botón Oficial Continuar / Registrarse con Google */
.google-auth-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.google-gsi-host {
  display: flex;
  justify-content: center;
}

.google-gsi-host[hidden] {
  display: none !important;
}

.btn-google-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: #ffffff;
  color: #3c4043;
  border: 1.5px solid #dadce0;
  border-radius: 8px;
  padding: 0.68rem 1.15rem;
  font-family: 'Roboto', var(--font-body), sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.12);
}

.btn-google-auth--full {
  width: 100%;
}

.btn-google-auth:hover {
  background: #f8fafe;
  border-color: #4285f4;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.18);
}

.btn-google-auth:active {
  background: #eef3fc;
}

.google-g-icon {
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0.15rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--surface-border);
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrap input {
  width: 100%;
  padding-right: 2.6rem;
}

.btn-toggle-pwd {
  position: absolute;
  right: 0.45rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem 0.4rem;
  line-height: 1;
  border-radius: 4px;
  opacity: 0.75;
}

.btn-toggle-pwd:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.05);
}

.google-admin-cfg {
  margin-top: 0.35rem;
  border: 1px dashed var(--surface-border);
  border-radius: 8px;
  background: #fafafa;
  padding: 0.55rem 0.75rem;
}

.google-admin-cfg summary {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.google-admin-cfg-body {
  margin-top: 0.6rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--surface-border-subtle);
}

.google-admin-cfg-body label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

/* Items del Carrito */
.cart-items-container {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.9rem;
  background: #f8f9fa;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
}

.cart-item-info strong {
  display: block;
  font-size: 0.86rem;
  color: var(--theme-secondary);
}

.cart-item-info small {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.cart-summary-box {
  margin-top: 0.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--surface-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cart-totals-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f6fbf6;
  border: 1px solid #b2ddb4;
  padding: 0.8rem 1rem;
  border-radius: 8px;
}

.cart-totals-panel strong {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--status-ok);
}

/* Toast */
.store-toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 95;
  background: var(--theme-secondary);
  color: #ffffff;
  border-left: 4px solid var(--theme-default);
  padding: 0.8rem 1.15rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

/* ==========================================
   FOOTER OSCURO (.footer-dark de cn.com.ar)
   Deferred rendering para contenido bajo el pliegue
   ========================================== */
.store-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 260px;
  background-color: var(--theme-secondary);
  color: #e9ecef;
  margin-top: 2.5rem;
  border-top: 3px solid var(--theme-default);
}

.footer-columns {
  max-width: 1560px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.footer-brand-row img {
  border-radius: 8px;
  border: 1px solid var(--theme-default);
}

.footer-brand-row strong {
  display: block;
  color: #ffffff;
  font-size: 0.95rem;
}

.footer-brand-row span {
  font-size: 0.75rem;
  color: var(--theme-default);
}

.footer-desc {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: #adb5bd;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.social-pill {
  font-size: 0.76rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  text-decoration: none;
}

.social-pill:hover {
  border-color: var(--theme-default);
  color: var(--theme-default);
}

.footer-col h4 {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--theme-default);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.83rem;
  color: #dee2e6;
}

.footer-col a {
  color: #dee2e6;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--theme-default);
}

.store-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.9rem 1.25rem;
  text-align: center;
  font-size: 0.78rem;
  color: #adb5bd;
}

.store-footer-bottom p {
  margin: 0;
}

/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */
@media (max-width: 1280px) {
  .store-product-grid.cols-6 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .product-wrapper {
    grid-template-columns: 1fr;
  }

  .product-sidebar {
    position: static;
  }

  .store-product-grid,
  .store-product-grid.cols-4,
  .store-product-grid.cols-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .store-product-grid,
  .store-product-grid.cols-3,
  .store-product-grid.cols-4,
  .store-product-grid.cols-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-cols-options {
    display: none;
  }

  .quickview-grid {
    grid-template-columns: 1fr;
  }

  .store-product-grid.list-view .product-card {
    flex-direction: column;
    align-items: stretch;
  }

  .store-product-grid.list-view .product-card-media {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--surface-border-subtle);
  }
}

@media (max-width: 480px) {
  .store-product-grid,
  .store-product-grid.cols-3,
  .store-product-grid.cols-4,
  .store-product-grid.cols-6 {
    grid-template-columns: 1fr;
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PANEL DEL CLIENTE REGISTRADO · ESTÉTICA NARANJA X / APP MÓVIL
   - Secciones desplegables hacia la derecha (scroll-snap)
   - Grilla de "Tus atajos" con íconos circulares
   - Barra fija inferior con botón central flotante (Soy Cajero)
   ========================================================================== */
body.has-nx-bottom-nav {
  padding-bottom: 88px;
}

.nx-client-portal {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1rem 2.5rem;
}

/* Cabecera superior del Panel */
.nx-portal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.5rem 0.25rem 1rem;
}

.nx-user-greeting {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nx-avatar-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #f0e6d2;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ff6b00 0%, #d4a41e 55%, #5b19b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-color: #ffffff;
  position: relative;
}

.nx-avatar-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #ffffff;
  z-index: -1;
}

.nx-greeting-texts {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nx-greeting-texts strong {
  font-size: 1.08rem;
  font-weight: 700;
  color: #1f1f24;
}

.nx-greeting-texts span {
  font-size: 0.76rem;
  color: #6c6c78;
  font-weight: 500;
}

.nx-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nx-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ece8f4;
  background: #ffffff;
  color: #5b19b6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(91, 25, 182, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.nx-icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(91, 25, 182, 0.16);
}

.nx-help-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: #f6f0ff;
  border: 1px solid #e6d8fc;
  color: #5b19b6;
  font-weight: 700;
  font-size: 0.84rem;
  text-decoration: none;
  transition: background 0.18s ease;
}

.nx-help-pill:hover {
  background: #ede0ff;
}

.nx-help-q {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.8px solid #5b19b6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 800;
}

/* Carrusel de tarjetas desplegables hacia la derecha */
.nx-cards-track-wrap {
  position: relative;
  margin-bottom: 1.35rem;
}

.nx-cards-track {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.35rem 0.2rem 0.75rem;
  scrollbar-width: none;
}

.nx-cards-track::-webkit-scrollbar {
  display: none;
}

.nx-slide-card {
  flex: 0 0 86%;
  max-width: 440px;
  scroll-snap-align: start;
  background: #ffffff;
  border-radius: 20px;
  padding: 1.25rem 1.3rem;
  border: 1px solid #eceaf2;
  box-shadow: 0 8px 24px rgba(26, 18, 48, 0.07);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.nx-slide-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #ff6b00 0%, #d4a41e 50%, #6b21a8 100%);
}

.nx-slide-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.nx-slide-title-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.nx-slide-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #27272a;
}

.nx-pill-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.58rem;
  border-radius: 999px;
}

.nx-pill-badge--green {
  background: #dcfce7;
  color: #15803d;
}

.nx-pill-badge--gold {
  background: #fef3c7;
  color: #b45309;
}

.nx-pill-badge--purple {
  background: #f3e8ff;
  color: #6b21a8;
}

.nx-chevron-btn {
  background: transparent;
  border: none;
  color: #6b21a8;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
}

.nx-slide-balance-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.65rem 0 0.25rem;
}

.nx-slide-balance {
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #18181b;
}

.nx-eye-toggle {
  background: #f5f0ff;
  border: 1px solid #e9d5ff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.nx-slide-helper {
  margin: 0 0 0.95rem;
  font-size: 0.78rem;
  color: #6b7280;
}

.nx-slide-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 0.5rem;
  padding-top: 0.35rem;
  border-top: 1px solid #f4f3f8;
}

.nx-circle-action {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
}

.nx-circle-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f5f0ff;
  color: #6b21a8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: transform 0.16s ease, background 0.16s ease;
}

.nx-circle-action:hover .nx-circle-icon {
  transform: scale(1.06);
  background: #ede0ff;
}

.nx-circle-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #3f3f46;
}

.nx-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.nx-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #d4d4d8;
  transition: all 0.2s ease;
}

.nx-dot.is-active {
  width: 20px;
  background: #6b21a8;
}

/* Encabezado "Tus atajos" */
.nx-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0.4rem 0.15rem 0.85rem;
}

.nx-section-heading h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #18181b;
}

.nx-section-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: #6b21a8;
}

/* Grilla 4 columnas para "Tus atajos" (igual a la foto adjunta) */
.nx-shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.nx-shortcut-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #eceaf2;
  border-radius: 16px;
  padding: 1rem 0.5rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(24, 24, 27, 0.05);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  min-height: 112px;
  text-align: center;
}

.nx-shortcut-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(91, 25, 182, 0.12);
  border-color: #d8b4fe;
}

.nx-shortcut-card--highlight {
  border-color: rgba(234, 88, 12, 0.35);
  background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
}

.nx-shortcut-badge {
  position: absolute;
  top: -8px;
  background: #6b21a8;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.12rem 0.48rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(107, 33, 168, 0.25);
}

.nx-shortcut-badge--orange {
  background: #ea580c;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3);
}

.nx-shortcut-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f5f0ff;
  color: #6b21a8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nx-shortcut-card--highlight .nx-shortcut-icon {
  background: #ffedd5;
  color: #ea580c;
}

.nx-shortcut-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #27272a;
  line-height: 1.2;
}

/* Tarjeta promocional inferior estilo "NX Crédito / Disponible" */
.nx-promo-feature-card {
  background: #ffffff;
  border: 1px solid #eceaf2;
  border-radius: 18px;
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 6px 18px rgba(24, 24, 27, 0.06);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.nx-promo-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(24, 24, 27, 0.1);
}

.nx-promo-card-visual {
  flex: 0 0 112px;
  height: 92px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff5f00 0%, #f59e0b 75%, #fbbf24 100%);
  color: #ffffff;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 4px 0 0 #fde047;
}

.nx-promo-card-visual span {
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.92;
}

.nx-promo-card-visual strong {
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.1;
}

.nx-promo-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.nx-promo-kicker {
  font-size: 0.78rem;
  color: #52525b;
  font-weight: 600;
}

.nx-promo-card-info strong {
  font-size: 1.08rem;
  font-weight: 800;
  color: #18181b;
}

.nx-promo-card-info p {
  margin: 0;
  font-size: 0.78rem;
  color: #52525b;
}

/* Subvistas internas del Panel del Cliente */
.nx-subview-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.nx-subview-bar h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: #18181b;
}

.nx-back-btn {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  font-weight: 700;
  font-size: 0.82rem;
  color: #5b19b6;
  cursor: pointer;
}

.nx-back-btn:hover {
  background: #f5f0ff;
  border-color: #d8b4fe;
}

.nx-panel-box {
  background: #ffffff;
  border: 1px solid #eceaf2;
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 6px 20px rgba(24, 24, 27, 0.05);
}

.nx-profile-header-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid #f1f1f5;
}

.nx-badge-origin {
  display: inline-block;
  background: #f3e8ff;
  color: #6b21a8;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
}

/* Buscador + Botón Escáner */
.nx-search-scanner-bar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.nx-scanner-input {
  flex: 1 1 240px;
  padding: 0.68rem 0.9rem;
  border: 1.5px solid #d4d4d8;
  border-radius: 10px;
  font-size: 0.92rem;
  font-family: inherit;
}

.nx-scanner-input:focus {
  outline: none;
  border-color: #6b21a8;
  box-shadow: 0 0 0 3px rgba(107, 33, 168, 0.14);
}

.nx-camera-box {
  margin-top: 0.85rem;
  background: #09090b;
  border-radius: 14px;
  padding: 0.75rem;
  text-align: center;
  color: #ffffff;
}

.nx-camera-box video {
  width: 100%;
  max-width: 420px;
  max-height: 250px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid #d4a41e;
}

.nx-camera-overlay {
  font-size: 0.8rem;
  color: #fde047;
  margin-top: 0.35rem;
  font-weight: 600;
}

/* Consultador de Precios */
.nx-cons-featured {
  margin-top: 1rem;
  background: linear-gradient(145deg, #fffdf7 0%, #fef9e7 100%);
  border: 2px solid #d4a41e;
  border-radius: 16px;
  padding: 1.15rem;
}

.nx-cons-results-list {
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.nx-cons-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #eceaf2;
  border-radius: 12px;
  background: #fafafa;
}

/* Soy Cajero */
.nx-soycajero-intro {
  background: #f8f5ff;
  border: 1px solid #e9d5ff;
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.nx-sc-code-banner {
  margin-top: 0.9rem;
  background: linear-gradient(135deg, #2e1065 0%, #5b19b6 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: 0 10px 24px rgba(91, 25, 182, 0.25);
}

.nx-sc-code-banner-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.nx-sc-code-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  color: #fde047;
  letter-spacing: 0.04em;
}

.nx-sc-code-big {
  font-size: 2.35rem;
  font-weight: 900;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  line-height: 1.05;
}

.nx-sc-code-meta {
  font-size: 0.82rem;
  opacity: 0.9;
}

.nx-sc-suggestions {
  margin-top: 0.5rem;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  max-height: 260px;
  overflow-y: auto;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.nx-sc-sug-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid #f4f4f5;
  cursor: pointer;
}

.nx-sc-sug-item:hover {
  background: #f5f0ff;
}

.nx-sc-items-wrap {
  margin-top: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.nx-sc-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 0.9rem;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  background: #ffffff;
}

.nx-sc-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #f4f4f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.nx-sc-totals {
  display: flex;
  flex-direction: column;
}

.nx-sc-totals span {
  font-size: 0.78rem;
  color: #71717a;
  font-weight: 600;
}

.nx-sc-totals strong {
  font-size: 1.55rem;
  font-weight: 900;
  color: #18181b;
}

.nx-sc-footer-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* KPIs Puntos y listas compactas */
.nx-points-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
}

.nx-points-kpi {
  border: 1px solid #e4e4e7;
  border-radius: 14px;
  padding: 0.95rem 1.05rem;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.nx-points-kpi--primary {
  background: linear-gradient(135deg, #fffdf5 0%, #fef3c7 100%);
  border-color: #f59e0b;
}

.nx-points-kpi span {
  font-size: 0.76rem;
  font-weight: 700;
  color: #52525b;
  text-transform: uppercase;
}

.nx-points-kpi strong {
  font-size: 1.5rem;
  font-weight: 900;
  color: #18181b;
}

.nx-points-kpi small {
  font-size: 0.74rem;
  color: #71717a;
}

.nx-compact-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.nx-compact-card {
  border: 1px solid #eceaf2;
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Catálogo de Premios */
.nx-premios-header-banner {
  background: linear-gradient(135deg, #fffdf7 0%, #fef9e7 100%);
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.nx-premios-cart-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.nx-premios-cart-summary span {
  font-size: 0.8rem;
  font-weight: 700;
  color: #92400e;
}

.nx-premios-cart-box {
  margin-top: 0.8rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.8rem;
}

.nx-premios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}

.nx-premio-product-card .nx-premio-pts-box.is-locked {
  background: #f4f4f5;
  border-color: #d4d4d8;
}

.nx-premio-product-card .nx-premio-pts-box.is-locked .price-unlocked-value {
  color: #52525b;
}

.nx-premio-product-card .nx-premio-pts-box.is-locked .price-neto-normativa {
  color: #71717a;
  font-weight: 600;
}

.btn-card-action.btn-premio-disabled,
.nx-premios-grid button[disabled] {
  width: 100%;
  background: #d4d4d8 !important;
  border: 1px solid #bdbdc2 !important;
  color: #71717a !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 0.9;
  font-weight: 700;
}

/* Barra Fija Inferior estilo Naranja X */
.nx-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  height: 68px;
  background: #ffffff;
  border-top: 1px solid #eceaf2;
  box-shadow: 0 -4px 20px rgba(24, 24, 27, 0.08);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  max-width: 100%;
  padding: 0 0.5rem;
}

.nx-bottom-nav[hidden] {
  display: none !important;
}

.nx-bottom-item {
  background: transparent;
  border: none;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: #52525b;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
}

.nx-bottom-item.is-active {
  color: #6b21a8;
  font-weight: 800;
}

.nx-bottom-item.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 36px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: #6b21a8;
}

.nx-bottom-fab-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nx-bottom-fab {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  background: linear-gradient(135deg, #7e22ce 0%, #5b19b6 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translateY(-16px);
  box-shadow: 0 8px 20px rgba(91, 25, 182, 0.38);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.nx-bottom-fab:hover {
  transform: translateY(-18px) scale(1.04);
  box-shadow: 0 10px 24px rgba(91, 25, 182, 0.48);
}

.nx-bottom-fab-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: #5b19b6;
  margin-top: -14px;
}

@media (max-width: 640px) {
  .nx-slide-card {
    flex: 0 0 88%;
  }

  .nx-shortcuts-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .nx-shortcut-card {
    padding: 0.75rem 0.3rem;
    min-height: 98px;
  }

  .nx-shortcut-label {
    font-size: 0.7rem;
  }
}

/* =========================================================
   BOTONES FLOTANTES FIJOS ABAJO (Diseño y ubicación Reikionline + WhatsApp, colores Casa Nueva)
   ========================================================= */
.store-floating-dock {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;
  transition: bottom 0.22s ease;
}

.store-floating-dock > * {
  pointer-events: auto;
}

body.has-nx-bottom-nav .store-floating-dock {
  bottom: calc(68px + 0.85rem);
}

.floating-login-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.95rem 0.45rem 0.48rem;
  border-radius: 999px;
  border: 2px solid #f3d791;
  background: #202020;
  color: #ffffff;
  font-family: var(--font-heading, 'Rubik', sans-serif);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(32, 32, 32, 0.36);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.floating-login-pill[hidden] {
  display: none !important;
}

.floating-login-pill:hover {
  transform: scale(1.03);
  background: #2c2920;
  border-color: #d4a41e;
  box-shadow: 0 16px 32px rgba(32, 32, 32, 0.44);
}

.floating-login-pill:active {
  transform: scale(0.98);
}

.floating-login-brand {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(243, 215, 145, 0.65);
  background: #171717;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.floating-login-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.floating-login-label {
  white-space: nowrap;
  color: #ffffff;
}

.floating-login-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #d4a41e;
  color: #202020;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.floating-login-pill:hover .floating-login-arrow {
  transform: translateX(2px);
  background: #f3d791;
}

.floating-whatsapp-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, #25d366 0%, #16a34a 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 2px solid #ffffff;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.42);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  flex-shrink: 0;
}

.floating-whatsapp-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 28px rgba(22, 163, 74, 0.52);
  filter: brightness(1.04);
  color: #ffffff;
}

.floating-whatsapp-fab:active {
  transform: translateY(0) scale(0.98);
}

/* =========================================================
   MODAL DE ACCESO Y REGISTRACIÓN ESTILO REIKIONLINE
   (Colores institucionales Casa Nueva: Dorado #d4a41e + Carbón #202020 + Crema #fdf5dc)
   ========================================================= */
.store-dialog.reiki-auth-dialog {
  width: min(calc(100% - 1.5rem), 680px);
  max-height: 92dvh;
  border: 0;
  border-radius: 26px;
  background: #ffffff;
  padding: 0;
  box-shadow: 0 28px 65px rgba(32, 32, 32, 0.34);
  overflow-y: auto;
}

.store-dialog.reiki-auth-dialog::backdrop {
  background: rgba(32, 32, 32, 0.72);
  backdrop-filter: blur(4px);
}

.reiki-auth-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: #202020;
}

.reiki-auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.75rem 1.15rem;
  border-bottom: 1px solid #f0ece1;
  background: #ffffff;
}

.reiki-auth-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.reiki-brand-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #202020;
  border: 1.5px solid #d4a41e;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(212, 164, 30, 0.18);
  overflow: hidden;
}

.reiki-brand-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.reiki-auth-header h3 {
  margin: 0;
  font-family: var(--font-heading, 'Rubik', sans-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: #202020;
  letter-spacing: -0.01em;
}

.reiki-close-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid #d4a41e;
  background: #ffffff;
  color: #202020;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.reiki-close-btn:hover {
  background: #d4a41e;
  border-color: #d4a41e;
  color: #ffffff;
}

.reiki-auth-body {
  padding: 1.45rem 1.75rem 1.75rem;
}

.reiki-auth-pane[hidden] {
  display: none !important;
}

.reiki-form-stack {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.reiki-field {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.reiki-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.reiki-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #202020;
  letter-spacing: 0;
  text-transform: none;
}

.reiki-forgot-btn {
  background: transparent;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: #a67c0e;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.reiki-forgot-btn:hover {
  color: #7c5c08;
}

.reiki-input {
  width: 100%;
  height: 48px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 164, 30, 0.38);
  background: #fcfbf7;
  color: #202020;
  font-family: inherit;
  font-size: 0.94rem;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.reiki-input::placeholder {
  color: rgba(32, 32, 32, 0.42);
}

.reiki-input:focus {
  outline: none;
  border-color: #d4a41e;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(212, 164, 30, 0.16);
}

.reiki-pwd-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.reiki-input--pwd {
  padding-right: 6.4rem;
}

.reiki-pwd-toggle {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.32rem 0.55rem;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: #a67c0e;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.reiki-pwd-toggle:hover {
  background: rgba(212, 164, 30, 0.12);
  color: #7c5c08;
}

.reiki-pwd-toggle svg[hidden] {
  display: none !important;
}

.reiki-btn-primary {
  width: 100%;
  height: 50px;
  margin-top: 0.15rem;
  padding: 0 1.25rem;
  border-radius: 12px;
  border: 0;
  background: #d4a41e;
  color: #ffffff;
  font-family: var(--font-heading, 'Rubik', sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(212, 164, 30, 0.28);
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}

.reiki-btn-primary:hover {
  background: #b88c14;
  box-shadow: 0 8px 22px rgba(184, 140, 20, 0.36);
}

.reiki-btn-primary:active {
  transform: translateY(1px);
}

.reiki-btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.reiki-or-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.1rem 0;
  color: rgba(32, 32, 32, 0.55);
  font-size: 0.8rem;
  font-weight: 500;
}

.reiki-or-divider::before,
.reiki-or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(212, 164, 30, 0.22);
}

.reiki-alt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.reiki-btn-google {
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 164, 30, 0.38);
  background: #ffffff;
  color: #202020;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.reiki-btn-google:hover {
  border-color: #d4a41e;
  background: #fcf9ef;
}

.reiki-btn-secondary-gold {
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  border-radius: 12px;
  border: 1.5px solid #d4a41e;
  background: #fdf5dc;
  color: #202020;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.reiki-btn-secondary-gold:hover {
  background: #f8e6b0;
  border-color: #b88c14;
}

.reiki-register-footer {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 164, 30, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.reiki-register-footer--plain {
  border-top: 0;
  padding-top: 0.25rem;
}

.reiki-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a67c0e;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.reiki-back-link:hover {
  text-decoration: underline;
  color: #7c5c08;
}

.reiki-google-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #202020;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.reiki-google-link:hover {
  color: #a67c0e;
}

.reiki-recover-sent {
  margin-top: 0.95rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(212, 164, 30, 0.38);
  background: #fdf8e7;
  color: #202020;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 640px) {
  .store-floating-dock {
    right: 0.9rem;
    bottom: 0.95rem;
    gap: 0.55rem;
  }

  .floating-login-pill {
    padding: 0.36rem 0.8rem 0.36rem 0.38rem;
    font-size: 0.8rem;
    gap: 0.48rem;
  }

  .floating-login-brand {
    width: 34px;
    height: 34px;
  }

  .floating-login-arrow {
    width: 22px;
    height: 22px;
  }

  .floating-whatsapp-fab {
    width: 50px;
    height: 50px;
  }

  .floating-whatsapp-fab svg {
    width: 25px;
    height: 25px;
  }

  .reiki-auth-header {
    padding: 1.1rem 1.2rem 0.95rem;
  }

  .reiki-auth-body {
    padding: 1.15rem 1.2rem 1.35rem;
  }

  .reiki-alt-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   FICHA DE CLIENTE 2 SOLAPAS (ESTILO ERP EN CARRITO WEB)
   + FOTO GOOGLE + CORROBORACIÓN ERP + REGISTRO WHATSAPP
   ========================================================= */
.badge-reg-status {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.78rem;
  border-radius: 999px;
  background: rgba(212, 164, 30, 0.14);
  border: 1px solid rgba(212, 164, 30, 0.45);
  color: #8a6405;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reg-erp-tabs-bar {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  border-bottom: 1px solid #dde3ec;
  margin-bottom: 1rem;
  padding-top: 0.25rem;
}

.reg-erp-tab-btn {
  appearance: none;
  border: 1px solid #dde3ec;
  border-bottom: none;
  background: #f8fafc;
  color: #475569;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.reg-erp-tab-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.reg-erp-tab-btn.is-active {
  background: #ffffff;
  color: #8a6405;
  border-color: #d4a41e;
  border-top-width: 2px;
  box-shadow: 0 -2px 8px rgba(212, 164, 30, 0.12);
  position: relative;
  top: 1px;
}

.reg-erp-fieldset {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.15rem 1.25rem 1.25rem;
}

.reg-erp-fieldset > legend {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #8a6405;
  padding: 0 0.5rem;
  text-transform: uppercase;
}

.req-star {
  color: #d97706;
  font-weight: 900;
  margin-right: 2px;
}

.reg-row-doc-name {
  grid-template-columns: minmax(250px, 1.05fr) minmax(280px, 1.95fr);
}

.reg-address-grid-6 {
  grid-template-columns: 2.2fr 0.9fr 0.65fr 0.65fr 0.65fr 1.25fr;
}

.cuit-arca-group {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
}

.cuit-arca-group input {
  flex: 1;
}

.mono-input {
  font-family: var(--font-mono);
  font-weight: 700;
}

.btn-arca-lupa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 0 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(212, 164, 30, 0.55);
  background: #fdf8e7;
  color: #8a6405;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-arca-lupa:hover {
  background: #d4a41e;
  color: #ffffff;
}

.btn-repeat-personal {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.95rem;
  border-radius: 8px;
  border: 1px solid rgba(212, 164, 30, 0.45);
  background: #fdf8e7;
  color: #5c4204;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-repeat-personal:hover {
  background: #f8ecc2;
}

.reg-phone-wa-row {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.reg-phone-country-select {
  width: 145px;
  flex-shrink: 0;
  font-weight: 700;
}

.reg-phone-wa-row input {
  flex: 1;
  min-width: 135px;
}

.btn-wa-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #16a34a;
  background: #dcfce7;
  color: #166534;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-wa-register:hover {
  background: #16a34a;
  color: #ffffff;
}

.btn-wa-register.is-verified {
  background: #16a34a;
  color: #ffffff;
}

.field-mini-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.74rem;
  color: #64748b;
}

.reg-google-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.9rem;
  border-radius: 12px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
}

.reg-google-banner[hidden],
.reg-erp-match-banner[hidden] {
  display: none !important;
}

.reg-google-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #3b82f6;
  background: #ffffff;
  flex-shrink: 0;
}

.reg-google-banner-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.reg-google-banner-text strong {
  font-size: 0.92rem;
  color: #1e3a8a;
}

.reg-google-banner-text span {
  font-size: 0.8rem;
  color: #334155;
}

.reg-erp-match-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.9rem;
  border-radius: 12px;
  border: 1px solid #86efac;
  background: #f0fdf4;
}

.reg-erp-match-icon {
  font-size: 1.3rem;
}

.reg-erp-match-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.reg-erp-match-text strong {
  font-size: 0.9rem;
  color: #166534;
}

.reg-erp-match-text span {
  font-size: 0.8rem;
  color: #15803d;
}

.form-field textarea {
  width: 100%;
  padding: 0.52rem 0.68rem;
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.86rem;
  resize: vertical;
}

.form-field textarea:focus {
  outline: none;
  border-color: var(--theme-default);
  box-shadow: 0 0 0 3px rgba(212, 164, 30, 0.15);
}

@media (max-width: 960px) {
  .reg-row-doc-name,
  .reg-address-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .reg-row-doc-name,
  .reg-address-grid-6 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MIS COMPRAS: PAGINACIÓN POR TRAMOS DE 10 (1 A 10, 11 A 20...) + FORMATO A4
   ========================================================================== */
.nx-compras-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.nx-compras-range-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  background: #fafafa;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.75rem;
}

.nx-compras-range-bar--bottom {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.nx-compras-range-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #52525b;
  margin-right: 0.35rem;
}

.nx-compras-range-pills {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nx-range-pill,
.nx-range-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.34rem 0.68rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  border: 1px solid #d4d4d8;
  background: #ffffff;
  color: #3f3f46;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nx-range-pill:hover:not(.is-active),
.nx-range-nav-btn:hover:not(:disabled) {
  background: #f3e8ff;
  border-color: #c084fc;
  color: #6b21a8;
}

.nx-range-pill.is-active {
  background: linear-gradient(135deg, #7e22ce 0%, #6b21a8 100%);
  border-color: #581c87;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(107, 33, 168, 0.25);
}

.nx-range-nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.nx-compra-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding: 0.72rem 0.95rem !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nx-compra-row:hover {
  border-color: #d8b4fe;
  box-shadow: 0 3px 10px rgba(107, 33, 168, 0.06);
}

.nx-compra-row-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.nx-compra-short-code {
  font-size: 0.96rem;
  font-weight: 800;
  color: #18181b;
  letter-spacing: 0.01em;
}

.nx-compra-date {
  font-size: 0.8rem;
  color: #71717a;
  font-weight: 600;
}

.nx-compra-row-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.nx-compra-amount {
  font-size: 1.04rem;
  font-weight: 800;
  color: #18181b;
  min-width: 110px;
  text-align: right;
}

.nx-compra-card-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.btn-compra-a4-view,
.btn-compra-a4-pdf {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.38rem 0.7rem;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-compra-a4-view {
  background: #f3e8ff;
  border: 1px solid #d8b4fe;
  color: #6b21a8;
}

.btn-compra-a4-view:hover {
  background: #e9d5ff;
}

.btn-compra-a4-pdf {
  background: linear-gradient(135deg, #d4a41e 0%, #b88c14 100%);
  border: 1px solid #a37a0e;
  color: #ffffff;
}

.btn-compra-a4-pdf:hover {
  filter: brightness(1.06);
}

/* Modal A4 Comprobante */
.store-dialog.nx-a4-dialog,
.nx-a4-dialog {
  width: min(98vw, 920px);
  max-width: 920px;
}

.nx-a4-dialog-surface {
  max-height: 94vh;
  display: flex;
  flex-direction: column;
}

.nx-a4-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nx-a4-dialog-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nx-a4-dialog-body {
  overflow: auto;
  background: #334155;
  padding: 1.25rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.nx-a4-preview-stage {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow-x: auto;
}

/* Hoja A4 Oficial Casa Nueva Supermercado */
.invoice-a4-sheet {
  width: 210mm;
  min-height: 282mm;
  max-width: 100%;
  background: #ffffff;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  line-height: 1.3;
  padding: 9mm 10mm;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.38);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.invoice-a4-sheet * {
  color: #000000;
  box-sizing: border-box;
}

.a4-header-grid {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  border-bottom: 1px solid #000000;
  position: relative;
  padding-bottom: 6px;
}

.a4-header-left {
  padding-right: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.a4-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 92px;
  border-bottom: none;
  padding-bottom: 4px;
}

.a4-logo-img {
  max-height: 88px;
  max-width: 220px;
  object-fit: contain;
}

.a4-emisor-info {
  text-align: center;
  padding-top: 4px;
  font-size: 11px;
  line-height: 1.35;
}

.a4-emisor-info strong {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  margin-top: 2px;
}

.a4-header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.a4-letra-square {
  width: 46px;
  height: 52px;
  border: 1px solid #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 800;
  background: #ffffff;
}

.a4-letra-cod {
  width: 46px;
  background: #000000;
  color: #ffffff !important;
  font-size: 9.5px;
  font-weight: 700;
  text-align: center;
  padding: 2px 0;
}

.a4-center-vline {
  flex: 1;
  width: 1px;
  background: #000000;
}

.a4-header-right {
  padding-left: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.a4-comp-top {
  min-height: 68px;
  border-bottom: 1px solid #000000;
  padding-bottom: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.a4-comp-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}

.a4-comp-nro,
.a4-comp-fecha {
  font-size: 13.5px;
  margin-bottom: 2px;
}

.a4-comp-nro strong,
.a4-comp-fecha strong {
  display: inline-block;
  width: 58px;
}

.a4-fiscal-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 5px;
  font-size: 9.5px;
  line-height: 1.35;
}

.a4-page-badge {
  text-align: left;
  font-size: 11px;
  padding-right: 12px;
}

.a4-client-box {
  margin-top: 5px;
  border-top: 1px solid #000000;
}

.a4-client-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  border: 1px solid #000000;
  padding: 3px 6px;
  margin-bottom: 3px;
  font-size: 11.5px;
}

.a4-client-row--full {
  grid-template-columns: 1fr;
}

.a4-lbl {
  font-weight: 700;
  margin-right: 8px;
}

.a4-items-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
}

.a4-items-table thead th {
  background: #bfbfbf;
  border-top: 1px solid #000000;
  border-bottom: 1px solid #000000;
  padding: 4px 6px;
  font-size: 10.5px;
  font-weight: 700;
  text-align: left;
}

.a4-items-table tbody td {
  padding: 3px 6px;
  font-size: 11.5px;
  vertical-align: top;
}

.a4-num {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
}

.a4-center {
  text-align: center !important;
}

.a4-bottom-block {
  margin-top: auto;
  padding-top: 10px;
}

.a4-total-qty-line {
  font-size: 9.5px;
  margin-bottom: 2px;
}

.a4-totals-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #000000;
  margin-bottom: 4px;
}

.a4-totals-table thead th {
  background: #bfbfbf;
  border-bottom: 1px solid #000000;
  padding: 3px 6px;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.a4-totals-table tbody td {
  padding: 6px 6px 12px;
  font-size: 13px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.a4-totals-table tbody td.a4-grand-total-cell {
  font-weight: 800;
  font-size: 14px;
}

.a4-arca-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  margin-bottom: 4px;
}

.a4-arca-box {
  grid-column: 2;
  border: 1px solid #000000;
  padding: 6px 10px;
}

.a4-arca-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.a4-arca-qr {
  width: 86px;
  height: 86px;
  flex-shrink: 0;
}

.a4-arca-brand {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #333333 !important;
  line-height: 1;
}

.a4-arca-sub {
  font-size: 6.5px;
  letter-spacing: 0.04em;
  color: #444444 !important;
  margin-bottom: 4px;
}

.a4-arca-auth {
  font-size: 9.5px;
  font-weight: 700;
  margin-bottom: 5px;
}

.a4-arca-cae {
  font-size: 9px;
}

.a4-arca-disclaimer {
  font-size: 7.5px;
  margin-top: 4px;
}

.a4-caja-footer-box {
  border: 1px solid #000000;
  padding: 5px 7px;
  min-height: 44px;
  font-size: 10.5px;
}
