﻿/* ── CATALOG VIEW ── */
#catalog-view {
  min-height: 100vh;
  background: var(--paper);
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

/* ── Wrapper banner: nav + hero como bloque unificado ── */
.cat-hero-wrap {
  color: white;
  background: color-mix(in srgb, var(--accent) 22%, #080808);
}

/* El nav siempre sólido — el banner solo aplica al hero */
.cat-hero-wrap--banner .nav { position: relative; z-index: 1; }

/* Overlay oscuro solo sobre el área del hero */
.cat-hero-wrap--banner .catalog-hero { position: relative; z-index: 1; }
.cat-hero-wrap--banner .catalog-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,.45) 0%,
    rgba(0,0,0,.32) 100%);
  pointer-events: none;
  z-index: 0;
}
.cat-hero-wrap--banner .catalog-hero-inner { position: relative; z-index: 1; }

.catalog-hero {
  background: color-mix(in srgb, var(--accent) 22%, #080808);
  background-size: cover;
  background-position: center;
  padding: 0 24px 20px;
  position: relative;
  overflow: hidden;
  border-bottom: none;
}
/* Sin overlay decorativo en modo simple */
.cat-hero-wrap:not(.cat-hero-wrap--banner) .catalog-hero::before { display: none; }
/* Banner: padding simétrico para centrar la foto visualmente */
.cat-hero-wrap--banner .catalog-hero {
  background: var(--ink);
  color: white;
  padding: 16px 24px;
  min-height: 100px;
}
.catalog-hero-inner {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.seller-avatar-lg {
  width: 64px; height: 64px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.55rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.25);
  overflow: hidden;
  position: relative;
}
/* Con banner: mismo tamaño que sin banner */
.cat-hero-wrap--banner .seller-avatar-lg {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.3);
}

.catalog-seller-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.catalog-seller-name {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.catalog-seller-desc {
  color: rgba(255,255,255,.62);
  font-size: .75rem;
  font-weight: 400;
  margin-top: 0;
  line-height: 1.3;
}

.cat-store-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.1);
}
/* mayoreo: verde */
.cat-store-mode-badge--mayoreo {
  background: rgba(22,163,74,.25);
  border-color: rgba(134,239,172,.45);
  color: #86efac;
}
/* ambos: morado */
.cat-store-mode-badge--ambos {
  background: rgba(139,92,246,.25);
  border-color: rgba(196,181,253,.45);
  color: #c4b5fd;
}
/* Dark mode */
[data-theme="dark"] .cat-store-mode-badge {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
  color: rgba(255,255,255,.65);
}
[data-theme="dark"] .cat-store-mode-badge--mayoreo {
  background: rgba(34,197,94,.18);
  border-color: rgba(34,197,94,.4);
  color: #86efac;
}
[data-theme="dark"] .cat-store-mode-badge--ambos {
  background: rgba(99,102,241,.18);
  border-color: rgba(99,102,241,.4);
  color: #c4b5fd;
}

.cat-social-links {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.cat-social-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity .2s;
}
.cat-social-link:hover { opacity: .8; }
.cat-social-link--ig { color: #f77737; }
.cat-social-link--fb { color: #90b4f0; }

.cat-horario {
  margin-top: 6px;
  color: rgba(255,255,255,.5);
  font-size: .8rem;
}

/* ── Footer catálogo ── */
.cat-footer {
  background: color-mix(in srgb, var(--accent), black 18%);
  padding: 36px 24px 44px;
}
.cat-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cat-footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
}
.cat-footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.cat-footer-col--right {
  align-items: flex-end;
  text-align: right;
}
.cat-footer-store-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .05em;
  color: white;
}
.cat-footer .cat-social-links {
  justify-content: flex-start;
  margin-top: 0;
  gap: 14px;
  flex-wrap: wrap;
}
.cat-footer-brand {
  text-align: center;
  width: 100%;
}
.cat-footer .cat-social-link {
  color: rgba(255,255,255,.58);
  font-size: .72rem;
  font-weight: 400;
  text-decoration: none;
  outline: none;
  letter-spacing: .02em;
  transition: color .2s;
}
.cat-footer .cat-social-link:hover { color: rgba(255,255,255,.9); }
.cat-footer .cat-social-link:focus { outline: none; }
.cat-footer .cat-horario {
  margin-top: 0;
  color: rgba(255,255,255,.82);
  font-size: .83rem;
}
.cat-footer-city {
  color: rgba(255,255,255,.75);
  font-size: .82rem;
  margin-top: -8px;
}
.cat-footer-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  color: rgba(255,255,255,.62);
  font-weight: 400;
  font-size: .72rem;
  padding: 0;
  text-decoration: none;
  transition: color .2s;
}
.cat-footer-wa-btn svg { width: 13px; height: 13px; opacity: .7; }
.cat-footer-wa-btn:hover { color: rgba(255,255,255,.9); }
.cat-footer-payments { text-align: right; }
.cat-footer-payments-label {
  font-size: .68rem;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 8px;
}
.cat-footer-payment-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.cat-footer-payment-chip {
  background: none;
  color: rgba(255,255,255,.62);
  padding: 0;
  font-size: .72rem;
  font-weight: 400;
}
.cat-footer-share-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.65);
  font-size: .72rem;
  font-weight: 400;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color .2s;
}
.cat-footer-share-btn svg { opacity: .7; }
.cat-footer-share-btn:hover { color: rgba(255,255,255,.75); }
.cat-footer-brand { font-size: .7rem; color: rgba(255,255,255,.52); margin-top: 4px; }
.cat-footer-brand a { color: rgba(255,255,255,.68); text-decoration: none; transition: color .2s; }
.cat-footer-brand a:hover { color: white; }

/* Back-to-top */
.back-to-top {
  position: fixed;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px) + 150px);
  right: 24px;
  width: 40px; height: 40px;
  background: var(--ink);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  box-shadow: 0 3px 14px rgba(0,0,0,.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }

/* Chips de pago — modal perfil */
.payment-chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.payment-chip-btn {
  padding: 6px 14px;
  border-radius: 100px;
  border: 1.5px solid rgba(15,14,12,.16);
  background: transparent;
  font-size: .8rem;
  font-family: inherit;
  cursor: pointer;
  color: var(--ink);
  transition: all .15s;
}
.payment-chip-btn.selected { background: var(--accent); color: white; border-color: var(--accent); }

/* ── Filtros ── */
.catalog-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  position: relative;
  z-index: 5;
}

.cat-search-wrap {
  position: relative;
}
.cat-search-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: .95rem;
  pointer-events: none;
}
.cat-search-input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1.5px solid rgba(15,14,12,.15);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
}
.cat-search-input:focus { border-color: var(--accent2); }

/* ── Sugerencias de búsqueda ── */
.cat-search-sugg {
  position: absolute;
  top: calc(100% + 5px);
  left: 0; right: 0;
  background: var(--paper);
  border: 1px solid rgba(15,14,12,.11);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,.13);
  z-index: 200;
  overflow: hidden;
}
.cat-sugg-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background .1s;
}
.cat-sugg-item:hover, .cat-sugg-item:active { background: var(--cream); }
.cat-sugg-item + .cat-sugg-item { border-top: 1px solid rgba(15,14,12,.06); }
.cat-sugg-thumb {
  width: 40px; height: 40px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
}
.cat-sugg-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-sugg-ph { font-size: 1.25rem; }
.cat-sugg-info { flex: 1; min-width: 0; }
.cat-sugg-name {
  font-size: .87rem; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cat-sugg-cat { font-size: .74rem; color: var(--soft); margin-top: 1px; }
.cat-sugg-price { font-size: .88rem; font-weight: 700; color: var(--accent); flex-shrink: 0; }
[data-theme="dark"] .cat-search-sugg { background: #1e1c18; border-color: rgba(255,255,255,.1); box-shadow: 0 8px 28px rgba(0,0,0,.45); }
[data-theme="dark"] .cat-sugg-item:hover { background: #2a2823; }
[data-theme="dark"] .cat-sugg-item + .cat-sugg-item { border-color: rgba(255,255,255,.06); }
[data-theme="dark"] .cat-sugg-thumb { background: #2a2823; }
[data-theme="dark"] .cat-sugg-name { color: #e8e4de; }

/* Barra de filtro activo */
#cat-active-filter { align-items: center; gap: 8px; padding: 6px 0 2px; flex-wrap: wrap; }
#cat-active-filter-label { font-size: .85rem; font-weight: 600; color: var(--accent); }
.cat-filter-clear-btn {
  font-size: .78rem; background: none;
  border: 1px solid var(--accent); color: var(--accent);
  border-radius: 20px; padding: 2px 10px; cursor: pointer;
  transition: background .15s;
}
.cat-filter-clear-btn:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }

.cat-chips {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 4px;
}
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chips { scrollbar-width: none; -ms-overflow-style: none; }

.chip {
  border: 1.5px solid rgba(15,14,12,.14);
  background: transparent;
  color: var(--soft);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: .78rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip--active {
  background: color-mix(in srgb, var(--accent) 12%, white);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.cat-results-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* obsoletos */
.view-toggle, .view-btn, .cat-view-header, .cat-view-tab,
.cat-nav-tabs, .cat-nav-tab { display: none; }

/* ── Vista lista ── */
.catalog-products-grid.list-view {
  grid-template-columns: 1fr !important;
  gap: 10px;
}
.catalog-products-grid.list-view .cat-product-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
.catalog-products-grid.list-view .cat-product-img {
  width: 100px;
  height: 100px;
  aspect-ratio: unset;
  flex-shrink: 0;
  font-size: 2.2rem;
  border-radius: 0;
}
.catalog-products-grid.list-view .cat-product-img--photo {
  display: block;
  width: 100px;
  height: 100px;
}
.catalog-products-grid.list-view .cat-product-body {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
}
.catalog-products-grid.list-view .cat-product-desc {
  flex: 1;
  -webkit-line-clamp: 1;
  line-clamp: 1;
}
.catalog-products-grid.list-view .cat-product-footer {
  margin-top: 8px;
}
.catalog-products-grid.list-view .cat-product-card:hover {
  transform: translateY(-2px);
}


.nav--white { background: white; }

/* ── Nav ligero catálogo (usa var(--accent) del vendedor) ── */
.cat-demo-banner {
  background: linear-gradient(90deg, #7c3aed, #2563eb);
  color: #fff;
  text-align: center;
  padding: 7px 16px;
  font-size: .78rem;
  letter-spacing: .01em;
  position: sticky;
  top: 0;
  z-index: 101;
}
.cat-top-nav {
  background: transparent;
  display: flex;
  flex-direction: column;
  padding: 0;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  box-shadow: none;
  transform: translateY(0);
  transition: transform .25s ease;
  will-change: transform;
}
.cat-top-nav.nav--hidden {
  transform: translateY(-100%);
}

/* Fila 1: solo acciones a la derecha — brand y center ocultos */
.cat-top-nav-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px;
  min-height: 56px;
  flex-shrink: 0;
  pointer-events: none;
}

.cat-nav-brand   { display: none; }
.cat-top-nav-center { display: none !important; }
.cat-panel-btn-label { display: none; }

.cat-top-nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  pointer-events: auto;
  background: rgba(0,0,0,.30);
  border-radius: 50px;
  padding: 3px 6px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cat-panel-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px 8px;
  min-width: 44px;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .13s;
  flex-shrink: 0;
  opacity: .9;
}
.cat-panel-btn span {
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1;
  white-space: nowrap;
}
.cat-panel-btn:active { opacity: .6; }
.cat-topnav-tab { display: none; }

/* Tooltip flotante sobre cada botón del top nav */
.cat-topnav-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(15,14,12,.88);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 400;
}
.cat-topnav-icon-btn { position: relative; overflow: visible; }
.cat-topnav-tab      { position: relative; overflow: visible; }
.cat-view-btn        { position: relative; overflow: visible; }
/* Visible al tocar */
.topnav-touched .cat-topnav-tooltip,
.cat-topnav-icon-btn:active .cat-topnav-tooltip,
.cat-topnav-tab:active .cat-topnav-tooltip,
.cat-view-btn:active .cat-topnav-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Todos los botones del top nav — mismo tamaño */
.cat-topnav-icon-btn,
.cat-topnav-tab,
.cat-view-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.22);
  border-radius: 10px;
  color: white; cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: background .13s;
  flex-shrink: 0;
  padding: 0;
  gap: 0;
}
.cat-topnav-icon-btn:active,
.cat-topnav-tab:active,
.cat-view-btn:active { background: rgba(255,255,255,.3); }
.cat-topnav-icon-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.cat-topnav-cart-badge {
  position: absolute;
  top: -6px; right: -7px;
  min-width: 16px; height: 16px;
  background: #ef4444; color: white;
  font-size: 9px; font-weight: 700;
  border-radius: 99px; padding: 0 3px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid color-mix(in srgb, var(--accent), black 18%);
}

/* ── Botón Vista fan-out (catálogo público) ── */
.cat-view-wrap {
  display: none; /* visible solo en móvil vía responsive.css */
  flex: 1;
  align-items: center;
  justify-content: center;
}
.cat-view-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.32);
  border-radius: 12px;
  color: white;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  padding: 6px 14px 5px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  transition: background .13s;
}
.cat-view-btn:active { background: rgba(255,255,255,.32); }
.cat-view-btn svg { stroke: white; fill: none; }

/* Overlay y menú: ocultos por defecto; activados en responsive.css */
.cat-view-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.32);
  z-index: 198;
  -webkit-tap-highlight-color: transparent;
}
.cat-view-overlay.open { display: none; } /* override en responsive */
.cat-view-menu { display: none; }
.cat-view-menu.open { display: none; } /* override en responsive */

/* Etiqueta tooltip del fan-out */
.cvm-label {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: rgba(20,20,20,.88);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  padding: 4px 9px;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 10;
}

/* Ocultar chips vacíos — sin espacio fantasma */
.catalog-filter-bar .cat-chips:empty,
.catalog-filter-bar .cat-tag-chips:empty { display: none; }

/* Separador vertical en la barra inferior */
.cat-btab-sep {
  width: 1px;
  align-self: stretch;
  background: rgba(255,255,255,.18);
  margin: 10px 0;
  flex-shrink: 0;
}

/* Carrito y Menú como tabs de acción — mayor especificidad para ganar cascada */
.cat-btab.cat-btab--action {
  color: rgba(255,255,255,.92);
}
.cat-btab.cat-btab--action:hover,
.cat-btab.cat-btab--action:active { color: #fff; }

/* Wrapper del ícono carrito para el badge */
.cat-btab-icon-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.cat-btab-icon-wrap .cat-nav-cart-badge {
  top: -6px; right: -8px;
}

/* cat-more-wrap como tab */
.cat-btab-more {
  flex: 1;
  position: relative;
  display: flex;
  align-items: stretch;
}
.cat-btab-more > .cat-btab {
  flex: 1;
  width: 100%;
}

/* ── Barra de vistas (catálogo público) — ahora en la parte superior ── */
.cat-bottom-tabs {
  position: fixed;
  bottom: 0; top: auto; left: 0; right: 0;
  z-index: 40;
  display: none; /* solo visible con body.catalog-open */
  background: color-mix(in srgb, var(--accent), black 18%);
  border-top: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 -4px 20px rgba(0,0,0,.18);
  transform: translateY(0);
  transition: transform .25s ease;
  will-change: transform;
}
body.catalog-open .cat-bottom-tabs { display: flex; }
/* Ocultar nav del dashboard cuando el catálogo está abierto (todos los tamaños) */
body.catalog-open #dash-nav     { display: none !important; }
body.catalog-open #dash-top-bar { display: none !important; }

.cat-bottom-tabs.nav--hidden {
  transform: translateY(100%);
}
.cat-btab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 4px 8px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,.75);
  cursor: pointer;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: color .13s, background .13s;
  position: relative;
}
.cat-btab:active { background: rgba(255,255,255,.1); }
.cat-btab--active {
  color: #fff;
}
.cat-btab--active::before {
  content: '';
  position: absolute;
  top: 0; left: 25%; right: 25%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: #fff;
}
.cat-btab--active svg { filter: drop-shadow(0 0 5px rgba(255,255,255,.5)); }
.cat-btab--reel.cat-btab--active { color: #fff; }
.cat-btab--story.cat-btab--active { color: #fff; }
@keyframes cat-tab-flash {
  0%   { background: rgba(255,255,255,.28); }
  100% { background: transparent; }
}
.cat-btab--swipe-flash { animation: cat-tab-flash .35s ease-out; }

.cat-nav-btn {
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.28);
  color: white;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
  white-space: nowrap;
  display: flex; align-items: center;
}
.cat-nav-btn:hover { background: rgba(255,255,255,.28); }
.cat-nav-btn--cta {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.5);
}

/* ── Carrito nav: animaciones ── */
@keyframes cartBounce {
  0%          { transform: scale(1); }
  25%         { transform: scale(1.35) rotate(-8deg); }
  50%         { transform: scale(1.2) rotate(6deg); }
  70%         { transform: scale(1.1) rotate(-3deg); }
  100%        { transform: scale(1) rotate(0); }
}
@keyframes cartWiggle {
  0%,100%     { transform: rotate(0); }
  20%         { transform: rotate(-10deg); }
  40%         { transform: rotate(10deg); }
  60%         { transform: rotate(-6deg); }
  80%         { transform: rotate(6deg); }
}
@keyframes flyDot {
  0%   { transform: translate(0,0) scale(1); opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translate(var(--fly-x), var(--fly-y)) scale(.3); opacity: 0; }
}
@keyframes badgePop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.cat-nav-cart-btn--bounce svg  { animation: cartBounce .5s cubic-bezier(.36,.07,.19,.97) forwards; }
.cat-nav-cart-btn--wiggle svg  { animation: cartWiggle .6s ease forwards; }
.cat-nav-cart-badge--pop       { animation: badgePop .35s cubic-bezier(.36,.07,.19,.97) forwards; }

.cart-fly-dot {
  position: fixed;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 9999;
  animation: flyDot .55s cubic-bezier(.4,0,.2,1) forwards;
}

/* ── Catálogo nav: carrito ── */
.cat-nav-cart-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.28);
  border-radius: 8px;
  cursor: pointer;
  color: white;
  transition: background .15s;
  padding: 0;
}
.cat-nav-cart-btn:hover { background: rgba(255,255,255,.28); }
.cat-nav-cart-badge {
  display: none;
  position: absolute;
  top: -6px; right: -6px;
  background: white;
  color: var(--accent);
  font-size: .65rem;
  font-weight: 800;
  min-width: 17px; height: 17px;
  border-radius: 99px;
  align-items: center; justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

/* ── Catálogo nav: menú de más opciones ── */
.cat-more-wrap { position: relative; }
.cat-menu-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15,14,12,.4);
  z-index: 98;
}
.cat-menu-overlay.open { display: block; }
.cat-more-btn {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.28);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  transition: background .15s;
}
.cat-more-btn span {
  display: block;
  width: 16px; height: 2px;
  border-radius: 2px;
  background: white;
}
.cat-more-btn:hover { background: rgba(255,255,255,.28); }
.cat-more-menu {
  display: none;
  position: fixed;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.08);
  padding: 8px;
  min-width: 230px;
  z-index: 999;
  border: 1px solid rgba(0,0,0,.06);
}
.cat-more-menu.open { display: block; }
.cat-more-menu button {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: none; background: none;
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background .13s;
}
.cat-more-menu button:hover { background: var(--paper); }
.cat-more-menu .dash-more-sep { height: 1px; background: rgba(15,14,12,.07); margin: 6px 4px; }

.cat-menu-icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
}
.cat-menu-icon--teal {
  background: #f0fdfa;
  color: #0f766e;
}
.cat-menu-icon--amber {
  background: #fff7ed;
  color: #c2410c;
}
.cat-menu-icon--blue {
  background: #eff6ff;
  color: #2563eb;
}
.cat-menu-icon--pink {
  background: #fdf2f8;
  color: #db2777;
}
.cat-menu-icon--green {
  background: #f0fdf4;
  color: #15803d;
}

.cat-menu-text {
  display: flex; flex-direction: column; gap: 1px;
}
.cat-menu-label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.cat-menu-sub {
  font-size: .74rem;
  color: var(--soft);
  line-height: 1.2;
}

/* ── Página "Acerca de" ── */
.cat-about-page {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: var(--bg, #fff);
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.32,.72,0,1);
}
.cat-about-page.open { transform: translateY(0); }
.cat-about-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg, #fff);
  border-bottom: 1px solid var(--border);
}
.cat-about-back {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-size: .88rem;
  color: var(--ink);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 500;
}
.cat-about-back:hover { background: var(--cream); }
.cat-about-nav-title {
  font-weight: 700;
  font-size: .92rem;
  color: var(--ink);
}
.cat-about-banner {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.cat-about-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.cat-about-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  overflow: hidden;
}
.cat-about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat-about-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}
.cat-about-desc {
  font-size: .84rem;
  color: var(--soft);
  margin-top: 4px;
  line-height: 1.45;
}
.cat-about-section {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.cat-about-section-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--soft);
  margin-bottom: 10px;
}
.cat-about-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 0;
}
.cat-about-info-ic { font-size: 1rem; flex-shrink: 0; line-height: 1.4; }
.cat-about-info-txt { font-size: .88rem; color: var(--ink); line-height: 1.45; }
.cat-about-socials {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cat-about-social {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-size: .86rem;
  font-weight: 600;
  transition: opacity .13s;
  border: 1.5px solid transparent;
}
.cat-about-social:hover { opacity: .8; }
.cat-about-social--ig { background: #fdf2f8; color: #db2777; border-color: #fbcfe8; }
.cat-about-social--fb { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.cat-about-social--tt { background: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }
.cat-about-social-ic {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: rgba(0,0,0,.07);
}
.cat-about-social-text { display: flex; flex-direction: column; gap: 1px; }
.cat-about-social-label { font-size: .76rem; opacity: .7; font-weight: 400; }
.cat-about-pay-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.cat-about-pay-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: .82rem;
  color: var(--ink);
}
.cat-about-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: calc(100% - 40px);
  margin: 20px;
  padding: 14px;
  background: #25d366;
  color: white;
  border: none;
  border-radius: 14px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s;
}
.cat-about-wa-btn:hover { opacity: .88; }

.cat-menu-cta-btn {
  background: var(--accent) !important;
  color: white !important;
  font-weight: 700 !important;
  border-radius: 11px !important;
  margin: 4px 0 2px !important;
  padding: 13px 14px !important;
  gap: 8px;
  justify-content: center;
  letter-spacing: .02em;
  font-size: .87rem !important;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 40%, transparent);
  transition: opacity .15s, box-shadow .15s, transform .15s !important;
}
.cat-menu-cta-btn:hover {
  background: var(--accent) !important;
  opacity: .9;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 50%, transparent) !important;
}

.catalog-body {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.cat-count { color: var(--soft); font-size: .82rem; flex: 1; }

/* ── View Switcher (control segmentado arriba del grid) ── */
/* Base = móvil: ancho completo, ícono + etiqueta */
#cat-view-switcher {
  display: flex;
  width: 100%;
  gap: 3px;
  padding: 4px;
  margin: 4px 0 10px;
  background: rgba(0,0,0,.05);
  border-radius: 11px;
}
.cvs-btn {
  flex: 1;
  height: 46px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--soft);
  transition: color .15s, background .15s, box-shadow .15s;
  padding: 0;
}
.cvs-btn.cvs-active {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.cvs-label { font-size: .6rem; font-weight: 700; letter-spacing: .03em; line-height: 1; }
[data-theme="dark"] #cat-view-switcher { background: rgba(255,255,255,.07); }
[data-theme="dark"] .cvs-btn.cvs-active { background: #2a2a2a; box-shadow: 0 1px 4px rgba(0,0,0,.4); }

/* ── Sort select ── */
.cat-sort-select {
  appearance: none;
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E") no-repeat right 8px center;
  border: 1.5px solid #e5e3df;
  border-radius: 8px;
  padding: 5px 26px 5px 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.cat-sort-select:focus { outline: none; border-color: var(--accent); }

/* ── Filtro precio ── */
.cat-price-toggle-btn {
  appearance: none;
  background: var(--cream);
  border: 1.5px solid #e5e3df;
  border-radius: 8px;
  padding: 5px 9px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--soft);
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
  transition: border-color .15s, color .15s;
}
.cat-price-toggle-btn:hover,
.cat-price-toggle-btn--active { border-color: var(--accent); color: var(--accent); }
.cat-price-filter {
  display: none;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.cat-price-input {
  width: 64px;
  padding: 5px 6px;
  border: 1.5px solid #e5e3df;
  border-radius: 8px;
  font-size: .82rem;
  background: var(--cream);
  color: var(--ink);
  text-align: center;
}
.cat-price-input:focus { outline: none; border-color: var(--accent); }
.cat-price-sep { font-size: .78rem; color: var(--soft); }
.cat-price-clear {
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--soft);
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}
.cat-price-clear:hover { color: var(--ink); }

.catalog-cta {
  margin-top: 20px;
  padding: 6px 16px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  opacity: .45;
  transition: opacity .25s;
}
.catalog-cta:hover { opacity: .75; }
.catalog-cta p {
  color: var(--soft);
  font-size: .65rem;
  margin: 0;
}
.catalog-cta .btn {
  font-size: .65rem;
  padding: 2px 10px;
  border-radius: 20px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.catalog-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cat-product-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid rgba(15,14,12,.06);
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
}

.cat-product-img {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  background: var(--cream);
  overflow: hidden;
  -webkit-touch-callout: none;
}
.cat-product-img--photo {
  display: block;
  width: 100%;
  object-fit: cover;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

/* Modal y carrusel */
.pd-img-col img,
.pd-carousel-img {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.cat-product-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cat-product-name {
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 3px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.cat-product-desc {
  color: var(--soft);
  font-size: .78rem;
  font-weight: 300;
  line-height: 1.4;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}

.cat-product-price {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.contact-btn {
  background: #25d366;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: background .2s, transform .15s;
}
.contact-btn:hover { background: #1da851; transform: translateY(-1px); }
.contact-btn svg { flex-shrink: 0; }

/* ── Store Spotlight ── */
.store-spotlight {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}
/* ── Toggle de dispositivo ── */
.spotlight-top-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.device-toggle {
  display: flex;
  background: var(--cream);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}
.dev-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--soft);
  font-size: .8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
}
.dev-btn--active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
/* ── Marco de dispositivo ── */
.device-preview {
  position: relative;
  margin: 0 auto;
  transition: max-width .4s cubic-bezier(.34,1.3,.64,1);
}
/* ─ Teléfono ─ */
[data-device="mobile"].device-preview  { max-width: 300px; }
[data-device="mobile"] .dev-screen {
  background: #fff;
  border-radius: 38px;
  border: 5px solid #1c1c1e;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.12),
    0 0 0 6px #2c2c2e,
    0 0 0 7px rgba(255,255,255,.06),
    0 50px 100px rgba(0,0,0,.45),
    0 8px 24px rgba(0,0,0,.3);
  overflow: hidden;
  height: 570px;
  display: flex;
  flex-direction: column;
}
/* Botones laterales del teléfono */
.dev-phone-btn { position: absolute; background: #2c2c2e; border-radius: 3px; z-index: 2; }
.dev-phone-btn--power {
  right: -10px; top: 110px;
  width: 3px; height: 52px;
  border-radius: 0 3px 3px 0;
}
.dev-phone-btn--vol {
  left: -10px; top: 90px;
  width: 3px; height: 30px;
  border-radius: 3px 0 0 3px;
  box-shadow: 0 46px 0 #2c2c2e, 0 86px 0 #2c2c2e;
}
[data-device="desktop"] .dev-phone-btn { display: none; }
/* Dynamic island */
[data-device="mobile"] .dev-island {
  width: 92px; height: 28px;
  background: #1c1c1e;
  border-radius: 20px;
  margin: 12px auto 6px;
  flex-shrink: 0;
}
[data-device="desktop"] .dev-island { display: none; }
/* Home bar */
[data-device="mobile"] .dev-home-bar {
  width: 100px; height: 4px;
  background: rgba(0,0,0,.18);
  border-radius: 3px;
  margin: 6px auto 10px;
  flex-shrink: 0;
}
[data-device="desktop"] .dev-home-bar { display: none; }
/* ─ Escritorio / Browser ─ */
[data-device="desktop"].device-preview { max-width: 760px; }
[data-device="desktop"] .dev-screen {
  background: #fff;
  border-radius: 10px 10px 8px 8px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.14),
    0 30px 80px rgba(0,0,0,.18),
    0 8px 20px rgba(0,0,0,.1);
  overflow: hidden;
}
[data-device="mobile"] .dev-browser-bar { display: none; }
[data-device="desktop"] .dev-browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: #ebebeb;
  border-bottom: 1px solid rgba(0,0,0,.1);
  flex-shrink: 0;
}
.dev-browser-dots { display: flex; gap: 6px; flex-shrink: 0; }
.dev-browser-dots span { width: 12px; height: 12px; border-radius: 50%; }
.dev-browser-dots span:nth-child(1) { background: #ff5f57; }
.dev-browser-dots span:nth-child(2) { background: #febc2e; }
.dev-browser-dots span:nth-child(3) { background: #28c840; }
.dev-browser-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: .76rem;
  color: #444;
  border: 1px solid #d8d8d8;
  max-width: 360px;
  margin: 0 auto;
}
.dev-browser-url svg { flex-shrink: 0; color: #16a34a; }
#dev-url-text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* ─ Contenido scrolleable ─ */
[data-device="mobile"] .dev-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
[data-device="desktop"] .dev-content {
  max-height: 480px;
  overflow-y: auto;
  overflow-x: hidden;
}
/* Ajustes del card dentro del marco */
.device-preview .spotlight-card {
  border-radius: 0;
  box-shadow: none;
  border: none;
}
/* Mobile: 2 cols; Desktop: 4 cols */
[data-device="mobile"] .spotlight-products-wrap {
  grid-template-columns: repeat(2, 1fr);
  gap: 6px; padding: 8px;
}
[data-device="desktop"] .spotlight-products-wrap {
  grid-template-columns: repeat(4, 1fr);
}
[data-device="mobile"] .spotlight-store-header {
  padding: 12px 14px;
}
[data-device="mobile"] .spotlight-avatar {
  width: 38px; height: 38px; font-size: 1.1rem;
}
[data-device="mobile"] .spotlight-store-name { font-size: .9rem; }
[data-device="mobile"] .spotlight-store-desc { font-size: .75rem; }
/* Tarjetas compactas en modo móvil */
[data-device="mobile"] .spotlight-products-wrap .cat-product-price { font-size: .95rem; }
[data-device="mobile"] .spotlight-products-wrap .cat-product-body { padding: 7px 8px 8px; }
[data-device="mobile"] .spotlight-products-wrap .cat-product-name { font-size: .78rem; }
[data-device="mobile"] .spotlight-products-wrap .cat-product-desc { font-size: .7rem; }
[data-device="mobile"] .spotlight-products-wrap .add-cart-btn { font-size: .7rem; padding: 5px 8px; gap: 3px; }
[data-device="mobile"] .spotlight-products-wrap .add-cart-btn svg { width: 10px; height: 10px; }
/* Tarjetas compactas en modo escritorio */
[data-device="desktop"] .spotlight-products-wrap .cat-product-price { font-size: .9rem; }
[data-device="desktop"] .spotlight-products-wrap .cat-product-body { padding: 6px 8px 8px; }
[data-device="desktop"] .spotlight-products-wrap .cat-product-name { font-size: .72rem; }
[data-device="desktop"] .spotlight-products-wrap .cat-product-desc { display: none; }
[data-device="desktop"] .spotlight-products-wrap .add-cart-btn { font-size: .66rem; padding: 4px 7px; gap: 3px; }
[data-device="desktop"] .spotlight-products-wrap .add-cart-btn svg { width: 9px; height: 9px; }
[data-device="desktop"] .spl-search-bar { font-size: .75rem; padding: 6px 10px; }
[data-device="desktop"] .spl-chips .chip { font-size: .68rem; padding: 3px 10px; }
/* Footer debajo del marco */
.device-preview + .spotlight-footer {
  margin-top: 20px;
  border-top: none;
  padding: 0 4px;
}
/* Dark mode */
[data-theme="dark"] .dev-browser-bar { background: #2a2a2a; border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .dev-browser-url { background: #1a1a1a; border-color: rgba(255,255,255,.1); color: #bbb; }
[data-theme="dark"] .dev-browser-dots span:nth-child(1) { background: #c0392b; }
[data-theme="dark"] .dev-browser-dots span:nth-child(2) { background: #d4ac0d; }
[data-theme="dark"] .dev-browser-dots span:nth-child(3) { background: #1e8449; }
[data-theme="dark"] .dev-btn--active { background: #333; color: #eee; }
[data-theme="dark"] .device-toggle { background: #222; }
.spotlight-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 20px;
}
.spotlight-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 28px rgba(15,14,12,.1);
  overflow: hidden;
  border: 1.5px solid rgba(15,14,12,.06);
}
.spotlight-store-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  border-bottom: 1px solid rgba(15,14,12,.06);
}
.spotlight-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  overflow: hidden;
}
.spotlight-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.spotlight-store-text { flex: 1; min-width: 0; }
.spotlight-store-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.15rem; }
.spotlight-store-desc { font-size: .84rem; color: var(--soft); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ── Mini-catálogo UI dentro del spotlight ── */
.spl-catalog-ui {
  padding: 10px 12px 6px;
  background: var(--bg);
  border-bottom: 1px solid rgba(15,14,12,.06);
}
.spl-search-bar {
  display: flex; align-items: center; gap: 8px;
  background: white;
  border: 1.5px solid rgba(15,14,12,.1);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: .82rem;
  color: var(--soft);
  margin-bottom: 8px;
}
.spl-chips {
  display: flex; gap: 6px; flex-wrap: nowrap;
  overflow-x: auto; padding-bottom: 2px;
  scrollbar-width: none;
  margin-bottom: 6px;
}
.spl-chips::-webkit-scrollbar { display: none; }
.spl-chips .chip { flex-shrink: 0; font-size: .72rem; padding: 4px 12px; }
.spl-prod-count {
  font-size: .72rem; color: var(--soft); font-weight: 500;
  padding-bottom: 4px;
}
.spotlight-products-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px;
  background: rgba(15,14,12,.04);
}
.spotlight-loading { padding: 52px; text-align: center; color: var(--soft); font-size: .9rem; }
.spotlight-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
}
.spotlight-nav-hint {
  font-size: .78rem;
  color: var(--soft);
  margin: 0;
}
.spotlight-nav { display: flex; align-items: center; gap: 14px; }
.spotlight-nav-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s, transform .18s, box-shadow .18s;
  color: white;
  box-shadow: 0 3px 10px rgba(15,14,12,.22);
  flex-shrink: 0;
}
.spotlight-nav-btn:hover  { background: var(--accent); transform: scale(1.08); box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent); }
.spotlight-nav-btn:active { transform: scale(.95); }
.spotlight-dots { display: flex; gap: 6px; align-items: center; }
.spotlight-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(15,14,12,.18);
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.spotlight-dot.active { background: var(--ink); transform: scale(1.3); }

.sellers-demo {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 24px;
}
.sellers-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  text-align: center;
}

.sellers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.seller-card {
  background: white;
  border: 1.5px solid rgba(15,14,12,.07);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all .2s;
  box-shadow: var(--shadow);
}
.seller-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--accent); }

.seller-avatar {
  width: 46px; height: 46px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.seller-info strong { display: block; font-weight: 600; font-size: .95rem; }
.seller-info span { color: var(--soft); font-size: .78rem; font-weight: 300; }

.seller-arrow { margin-left: auto; color: var(--soft); font-size: 1.1rem; }

/* ── Pantalla de error ── */
#error-view {
  min-height: 100vh;
  flex-direction: column;
  background: var(--paper);
}
#error-view.active { display: flex; }

.error-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.error-code {
  font-family: 'Syne', sans-serif;
  font-size: clamp(5rem, 20vw, 9rem);
  font-weight: 800;
  color: var(--cream);
  line-height: 1;
  letter-spacing: 0.04em;
  margin-bottom: -16px;
}

.error-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.error-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  color: var(--ink);
}

.error-desc {
  color: var(--soft);
  font-size: .95rem;
  font-weight: 300;
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: 36px;
}

.error-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}


.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  opacity: 0;
  background: var(--ink);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: transform .3s, opacity .3s;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ── Onboarding checklist ── */
.onboarding-box {
  background: #fafbff;
  border: 1.5px solid #e0e7ff;
  border-radius: 14px;
  padding: 16px 20px;
  margin: 16px 0;
}
.onboarding-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.onboarding-title {
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
}
.onboarding-prog {
  font-size: .78rem;
  color: #6366f1;
  margin-top: 2px;
}
.onboarding-dismiss {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #9ca3af;
  line-height: 1;
  padding: 0 0 0 8px;
}
.onboarding-steps { display: flex; flex-direction: column; gap: 8px; }
.onboarding-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .875rem;
}
.onboarding-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  flex-shrink: 0;
  font-weight: 700;
}
.onboarding-step--done .onboarding-check { background: #16a34a; color: #fff; }
.onboarding-step--done .onboarding-label { color: #9ca3af; text-decoration: line-through; }
.onboarding-step--todo .onboarding-check { border: 2px solid rgba(15,14,12,.15); }
.onboarding-action {
  margin-left: auto;
  font-size: .78rem;
  color: #6366f1;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  white-space: nowrap;
}
.onboarding-bar-wrap {
  height: 5px;
  background: #e0e7ff;
  border-radius: 99px;
  margin-top: 14px;
  overflow: hidden;
}
.onboarding-bar-fill {
  height: 100%;
  background: #6366f1;
  border-radius: 99px;
  transition: width .4s ease;
}

.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--soft);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state p { font-size: .9rem; font-weight: 300; }

.product-code, .cat-product-code {
  font-size: 0.68rem;
  font-family: monospace;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.product-tag {
  font-size: .55rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  background: var(--cream);
  color: var(--soft);
  border-radius: 3px;
  padding: 1px 4px;
  display: inline-block;
  font-weight: 600;
  white-space: nowrap;
}
.product-tag--code {
  background: transparent;
  color: var(--soft);
  padding-left: 0;
  font-weight: 500;
  letter-spacing: .02em;
}



/* ── Productos ocultos por límite de plan ── */
.over-limit-banner {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 0.84rem;
  color: #9a3412;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.over-limit-banner--temporal {
  background: #fef2f2;
  border-color: #fecaca;
  color: #7f1d1d;
}
.olb-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.olb-text strong { font-size: .86rem; }
.olb-text span { font-size: .8rem; opacity: .85; }
.over-limit-banner button {
  margin-left: auto;
  background: #ea580c;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.over-limit-banner button:hover { background: #c2410c; }
.hidden-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: #64748b;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 2;
  letter-spacing: .02em;
}
.product-card--hidden { opacity: 0.5; }

/* ── Agotado ── */
.product-card, .cat-product-card { position: relative; }

.out-of-stock-badge {
  background: #dc2626;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

.product-card--out .product-img,
.cat-product-card--out .cat-product-img { opacity: 0.45; }

.contact-btn--disabled {
  background: #e5e7eb !important;
  color: #9ca3af !important;
  cursor: not-allowed;
  pointer-events: none;
}

.stock-toggle-row {
  padding: 0 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.stock-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}
.stock-label input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ── Precio con descuento ── */
.price-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.price-was {
  font-size: .72rem;
  color: var(--soft);
  text-decoration: line-through;
  line-height: 1;
  font-weight: 400;
}

/* ── Campo opcional en modal ── */
.field-optional {
  color: var(--soft);
  font-weight: 400;
  font-size: .75rem;
}

/* ── Botón Agregar al carrito (tarjeta) ── */
.add-cart-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.add-cart-btn:hover { background: color-mix(in srgb, var(--accent) 82%, #000); transform: translateY(-1px); }
.add-cart-btn--added { background: #16a34a !important; cursor: default; transform: none !important; }
.add-cart-btn--added:hover { background: #16a34a !important; transform: none !important; }

/* Stepper inline en tarjeta */
.cart-stepper {
  display: flex; align-items: center; gap: 6px;
}
.cart-stepper-btn {
  width: 28px; height: 28px;
  border: 1.5px solid rgba(15,14,12,.15);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
  line-height: 1;
  color: var(--ink);
}
.cart-stepper-btn:hover { background: var(--cream); border-color: var(--ink); }
.cart-stepper-num {
  font-weight: 700; font-size: .92rem;
  min-width: 20px; text-align: center;
  color: var(--accent);
}

/* ── WA FAB vendedor ── */
/* Cart FAB */
.cart-fab {
  position: fixed;
  bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  right: 16px;
  z-index: 150;
  width: 58px; height: 58px;
  background: var(--accent, #f97316);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,.22);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s, box-shadow .2s, opacity .2s, visibility 0s;
}
.cart-fab:hover { transform: scale(1.08); box-shadow: 0 8px 28px rgba(0,0,0,.28); }
.cart-fab.hidden { opacity: 0; pointer-events: none; transform: scale(.8); visibility: hidden; transition: transform .2s, box-shadow .2s, opacity .2s, visibility 0s .2s; }

/* WA FAB */
.wa-seller-fab {
  position: fixed;
  bottom: calc(90px + env(safe-area-inset-bottom, 0px) + 68px);
  right: 16px;
  z-index: 150;
  width: 58px; height: 58px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s, opacity .2s, visibility 0s;
  text-decoration: none;
  transform: translateZ(0);
}
.wa-seller-fab:hover { transform: scale(1.08); box-shadow: 0 8px 28px rgba(37,211,102,.55); }
.wa-seller-fab.hidden { opacity: 0; pointer-events: none; visibility: hidden; transition: transform .2s, opacity .2s, visibility 0s .2s; }


/* ── Cart FAB pulse ── */
@keyframes cartPing {
  0%        { transform: scale(1);    opacity: .55; }
  75%, 100% { transform: scale(1.9);  opacity: 0;   }
}
@keyframes badgeHeartbeat {
  0%, 60%, 100% { transform: scale(1);    }
  20%           { transform: scale(1.35); }
  40%           { transform: scale(1.15); }
}

.cart-fab--pulse { overflow: visible; }
.cart-fab--pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  pointer-events: none;
  animation: cartPing 2.4s ease-out infinite;
}

.cat-nav-cart-badge--pulse {
  animation: badgeHeartbeat 2.4s ease-in-out infinite;
}


.cart-fab-inner {
  position: relative;
  z-index: 1;
  display: flex; align-items: center; justify-content: center;
}
.cart-fab-icon {
  width: 26px; height: 26px;
  fill: none; stroke: white;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.cart-fab-badge {
  position: absolute;
  top: -12px; right: -14px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  min-width: 20px; height: 20px;
  font-size: .68rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white;
  padding: 0 3px;
}

/* ── Modal nombre cliente (encima del cart drawer) ── */
#cart-name-modal { z-index: 400; }
#restore-confirm-modal { z-index: 500; }

/* ── Cart overlay ── */
.cart-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15,14,12,.5);
  z-index: 650;
}
.cart-overlay.open {
  display: block;
  touch-action: none; /* bloquea scroll táctil en el overlay (iOS) */
}
/* Bloquear scroll del product-page cuando el carrito está abierto */
body.cart-open #product-page { overflow: hidden; }

/* ── Página de producto ── */
#product-page {
  background: #fff;
  min-height: 100vh;
  overflow-y: auto;
}
.prod-page-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  height: 52px;
  background: #fff;
  border-bottom: 1px solid #f0ede8;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}
.prod-page-back-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  border-radius: 8px; color: var(--ink);
  transition: background .13s;
}
.prod-page-back-btn:hover { background: rgba(0,0,0,.06); }
.prod-page-nav-store {
  font-family: 'Syne', sans-serif;
  font-size: .92rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.prod-page-body {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px 80px;
  box-sizing: border-box;
}
.pd-layout {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
}
.pd-img-wrapper {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 10px;
}
.pd-img-col {
  background: var(--cream);
  width: min(420px, 42vw);
  aspect-ratio: 4 / 5;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7rem;
  overflow: hidden;
  -webkit-touch-callout: none;
  border-radius: 16px;
  border: 1.5px solid rgba(15,14,12,.08);
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
}
.pd-img-col--square  { width: min(420px, 42vw); aspect-ratio: 4 / 5; }
.pd-img-col--portrait { width: min(380px, 38vw); aspect-ratio: 3 / 4; }
.pd-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 14px;
}
.pd-info-col {
  flex: 1;
  min-width: 0;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (max-width: 700px) {
  .prod-page-body { padding: 0 0 90px; }
  .pd-layout { flex-direction: column; gap: 0; }
  .pd-img-wrapper { width: 100%; gap: 8px; }
  .pd-img-col,
  .pd-img-col--square,
  .pd-img-col--portrait {
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .pd-info-col { padding: 20px 16px 16px; }
  /* Nav transparente flotando sobre la imagen */
  .prod-page-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: transparent;
    border: none;
    z-index: 50;
    transition: background .22s ease, backdrop-filter .22s ease;
  }
  .prod-page-nav--solid {
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0,0,0,.07);
  }
  .prod-page-nav:not(.prod-page-nav--solid) .prod-page-back-btn,
  .prod-page-nav:not(.prod-page-nav--solid) .prod-more-btn,
  .prod-page-nav:not(.prod-page-nav--solid) .pd-nav-cart-btn {
    color: #fff;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.55));
  }
  .prod-page-nav:not(.prod-page-nav--solid) .prod-page-nav-store {
    color: rgba(255,255,255,.92);
    text-shadow: 0 1px 5px rgba(0,0,0,.6);
  }
  /* Ocultar botones prev/next del carrusel en móvil (swipe con dedos) */
  .pd-carousel-nav { display: none; }
  /* Footer bar: ocultar pd-share existente */
  .pd-info-col .pd-share { display: none; }
}
.pd-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.pd-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.25;
  color: var(--ink);
}
.pd-code { font-size: .76rem; color: var(--soft); font-family: monospace; letter-spacing: .05em; }
.pd-desc { font-size: .92rem; color: #555; line-height: 1.7; white-space: pre-wrap; }
.pd-price-row { display: flex; align-items: baseline; gap: 12px; padding-top: 8px; border-top: 1.5px solid rgba(15,14,12,.06); }
.pd-price { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.8rem; color: var(--accent); }
.pd-price-was { font-size: .92rem; color: var(--soft); text-decoration: line-through; }
.pd-action { margin-top: auto; padding-top: 10px; }
.pd-action .add-cart-btn { width: 100%; justify-content: center; font-size: 1rem; padding: 14px; border-radius: 12px; }
.pd-action .cart-stepper { width: 100%; justify-content: center; }
.pd-action .contact-btn--disabled { width: 100%; text-align: center; }

/* ── Botón carrito en nav de página de producto ── */
.pd-nav-cart-btn {
  position: relative;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  border-radius: 8px; color: var(--ink);
  transition: background .13s, color .13s, filter .13s;
  flex-shrink: 0;
}
.pd-nav-cart-btn:hover { background: rgba(0,0,0,.06); }
.pd-nav-cart-badge {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--accent);
  color: #fff;
  font-size: .58rem;
  font-weight: 700;
  min-width: 15px; height: 15px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  pointer-events: none;
}
.prod-page-nav-right {
  display: flex;
  align-items: center;
  gap: 0;
}

/* ── Footer bar página de producto público (móvil) ── */
.pd-footer-bar {
  display: none;
}
@media (max-width: 700px) {
  .pd-footer-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 62px;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1.5px solid rgba(0,0,0,.07);
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    z-index: 50;
    box-shadow: 0 -2px 12px rgba(0,0,0,.06);
  }
}
.pd-fbar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 18px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #57534e;
  transition: background .13s, color .13s;
  min-width: 60px;
  -webkit-tap-highlight-color: transparent;
}
.pd-fbar-btn svg { flex-shrink: 0; }
.pd-fbar-btn:active { background: rgba(0,0,0,.06); }
.pd-fbar-btn--save.pd-fbar-saved { color: var(--accent); }
.pd-fbar-btn--save.pd-fbar-saved svg { fill: var(--accent); stroke: var(--accent); }
.pd-fbar-btn--edit { color: var(--accent); }
.pd-fbar-divider {
  width: 1px;
  height: 28px;
  background: rgba(0,0,0,.09);
  flex-shrink: 0;
}

/* ── Compartir producto ── */
.pd-share { margin-top: 10px; }
.pd-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: transparent;
  color: var(--ink-light, #888);
  border: 1px solid #e5e3df;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  font-weight: 400;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.pd-share-btn:hover { background: #f0ede9; border-color: #ccc9c3; color: var(--ink); }
.pd-edit-btn { border-color: rgba(var(--accent-rgb,232,93,38),.35); color: var(--accent); }
.pd-edit-btn:hover { background: rgba(var(--accent-rgb,232,93,38),.07); border-color: var(--accent); }

/* ── Botón editar al pie de tarjeta del catálogo (solo dueño) ── */
/* ── Nombre + colores en tarjeta ── */
.cat-product-name-row {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 3px;
  min-width: 0; overflow: hidden;
}
.cat-card-colors-inline {
  display: flex; flex-wrap: wrap; gap: 3px;
  flex-shrink: 0; padding-top: 3px;
}
.cat-card-color {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.7);
  box-shadow: 0 0 0 1px rgba(0,0,0,.14);
  display: inline-block; flex-shrink: 0;
}

/* ── Fila de colores en tarjeta catálogo (fila propia, visible) ── */
.cat-card-colors-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 2px 0 4px;
}

/* ── Tarjeta "Nuevo producto" en grid del catálogo (solo dueño) ── */
.cat-add-product-card {
  cursor: pointer;
  overflow: visible !important;
  border: 2px dashed rgba(var(--accent-rgb,232,93,38),.35) !important;
  background: rgba(var(--accent-rgb,232,93,38),.04) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  position: relative;
  transition: border-color .2s, background .2s;
}
.cat-add-product-card:hover,
.cat-add-product-card:active {
  border-color: var(--accent) !important;
  background: rgba(var(--accent-rgb,232,93,38),.09) !important;
}
.cat-add-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
}
.cat-add-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb,232,93,38),.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-add-card-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: .82rem;
  color: var(--accent);
  text-align: center;
}
.cat-add-card-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,.12);
  background: white;
  color: #555;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  transition: background .15s, color .15s;
}
.cat-add-card-close:hover,
.cat-add-card-close:active { background: #f3f3f3; color: #111; }

/* ── Nombre + colores en modal ── */
.pd-name-row {
  display: flex; align-items: flex-start;
  gap: 10px; margin-bottom: 4px;
}
.pd-name-row .pd-name { flex: 1; margin-bottom: 0; }
.pd-color-selector { flex-shrink: 0; }
.pd-color-circles { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 4px; }
.pd-color-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.7);
  box-shadow: 0 0 0 1.5px rgba(0,0,0,.15);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.pd-color-circle:hover { transform: scale(1.15); }
.pd-color-circle--active {
  box-shadow: 0 0 0 2.5px var(--accent);
  transform: scale(1.1);
}

/* ── Editor de colores en dashboard ── */
.color-picker-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.color-picker-row input[type="color"] {
  width: 38px; height: 38px;
  border: 1.5px solid #e0dbd3;
  border-radius: 8px; padding: 2px; cursor: pointer;
}
.color-swatches-edit {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px;
}
.color-swatch-edit {
  position: relative;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.6);
  box-shadow: 0 0 0 1.5px rgba(0,0,0,.15);
  display: flex; align-items: center; justify-content: center;
}
.color-swatch-remove {
  position: absolute; top: -5px; right: -5px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #ef4444; color: #fff;
  border: none; font-size: .7rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  padding: 0;
}

.cat-card-edit-btn {
  display: block;
  width: 100%;
  padding: 6px;
  border: none;
  border-top: 1px solid rgba(15,14,12,.07);
  background: transparent;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: opacity .15s;
  opacity: .75;
}
.cat-card-edit-btn:hover { opacity: 1; }

/* ── Tag input de tallas (modal vendedor) ── */
.sizes-tag-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  border: 1.5px solid rgba(15,14,12,.15);
  border-radius: 10px;
  padding: 7px 10px;
  cursor: text;
  min-height: 44px;
  background: var(--paper);
  transition: border-color .15s;
}
.sizes-tag-wrap:focus-within { border-color: var(--accent2); }
#sizes-chips { display: contents; }
.sizes-tag-wrap input {
  border: none !important;
  background: transparent !important;
  padding: 3px 4px;
  flex: 1;
  min-width: 80px;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.sizes-tag-wrap input:focus { outline: none; border: none !important; }
.size-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent);
  color: white;
  border-radius: 6px;
  padding: 3px 6px 3px 10px;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.4;
}
.size-tag-remove {
  background: none;
  border: none;
  color: rgba(255,255,255,.75);
  cursor: pointer;
  font-size: 1rem;
  padding: 0 2px;
  line-height: 1;
  display: flex;
  align-items: center;
}
.size-tag-remove:hover { color: white; }

/* ── Stock por talla (sección debajo del tag input) ── */
.sizes-stock-section {
  margin-top: 10px;
  background: var(--cream);
  border-radius: 10px;
  padding: 12px 14px;
}
.sizes-stock-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.sizes-stock-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sizes-stock-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sizes-stock-name {
  font-size: .88rem;
  font-weight: 700;
  min-width: 40px;
  color: var(--ink);
}
.sizes-stock-input {
  width: 120px;
  padding: 6px 10px;
  font-size: .85rem;
  border: 1.5px solid rgba(15,14,12,.15);
  border-radius: 8px;
  background: white;
}

/* ── Chip de talla agotada en modal público ── */
.pd-size-chip--oos {
  opacity: .4;
  cursor: not-allowed;
  text-decoration: line-through;
  border-color: rgba(15,14,12,.1);
}

/* ── Stock qty badge en modal detalle ── */
.pd-stock-qty {
  font-size: .82rem;
  font-weight: 600;
  color: #b45309;
  background: #fef9c3;
  border-radius: 8px;
  padding: 5px 10px;
  display: inline-block;
}

/* ── Selector de tallas en modal detalle ── */
.pd-size-selector { display: flex; flex-direction: column; gap: 8px; }
.pd-size-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--soft);
}
.pd-size-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-size-chip {
  border: 1.5px solid rgba(15,14,12,.18);
  background: transparent;
  color: var(--ink);
  border-radius: 8px;
  padding: 7px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  min-width: 44px;
  text-align: center;
}
.pd-size-chip:hover { border-color: var(--accent); color: var(--accent); }
.pd-size-chip--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff !important;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}

/* ── Talla en ítem del carrito ── */
.cart-item-size {
  font-size: .75rem;
  font-weight: 600;
  color: var(--soft);
  margin-bottom: 2px;
}

