/*
 * components.css — Sistema de componentes FLETZO Web
 * Regla: CERO colores hardcoded. Todo vía tokens --fw-*.
 * Depende de: hero.css (tokens base en :root)
 */

/* ══════════════════════════════════════════════════════════════════════
   ANNOUNCEMENT — Motor de anuncios contextuales
   Posición: fixed top:0, empuja el nav hacia abajo via --fw-ann-h
══════════════════════════════════════════════════════════════════════ */

#fw-announcement-root {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 150;
}

.fw-ann-bar {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fw-ann-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  padding: 0 calc(var(--fw-space-md) * var(--fw-density));
  width: 100%;
  max-width: var(--fw-max-width);
  margin: 0 auto;
  min-height: 40px;
  overflow: hidden;
}

/* ── Ticker marquee ── */
.fw-ann-ticker-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  /* Fade edges para entrada/salida suave */
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.fw-ann-ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: fw-ticker-scroll 32s linear infinite;
}

.fw-ann-ticker-track:hover,
.fw-ann-ticker-track:focus-within {
  animation-play-state: paused;
}

.fw-ann-ticker-item {
  font-size: var(--fw-text-sm);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  padding: 0 20px;
  flex-shrink: 0;
}

.fw-ann-ticker-sep {
  font-size: 9px;
  opacity: 0.38;
  flex-shrink: 0;
}

@keyframes fw-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .fw-ann-ticker-track { animation: none; }
}

.fw-ann-cta {
  font-size: var(--fw-text-xs);
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--fw-radius-full);
  background: rgba(255,255,255,0.20);
  color: inherit;
  border: 1px solid rgba(255,255,255,0.30);
  cursor: pointer;
  transition: background 180ms ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.fw-ann-cta:hover,
.fw-ann-cta:focus-visible {
  background: rgba(255,255,255,0.32);
}

.fw-ann-dismiss {
  position: absolute;
  right: 12px;
  top: 50%; transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.65;
  padding: 6px;
  line-height: 1;
  color: inherit;
  transition: opacity 150ms ease;
  flex-shrink: 0;
}

.fw-ann-dismiss:hover { opacity: 1; }

.fw-ann-bar { position: relative; } /* para dismiss absolute */

/* Transición suave al aparecer/desaparecer */
#fw-announcement-root .fw-ann-bar {
  animation: fw-ann-in 280ms ease;
}

@keyframes fw-ann-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  #fw-announcement-root .fw-ann-bar { animation: none; }
}

/* ══════════════════════════════════════════════════════════════════════
   CONTENEDOR PRINCIPAL
══════════════════════════════════════════════════════════════════════ */

.fw-main {
  background: var(--fw-bg);
  color: var(--fw-text);
  font-family: var(--fw-font-body);
  /* Transición hacia el hero — el main "sube" sobre la foto como una hoja */
  box-shadow: 0 -1px 0 0 var(--fw-border), 0 -32px 48px rgba(0,0,0,.06);
  -webkit-font-smoothing: antialiased;
  position: relative;
  z-index: 1; /* Desliza sobre el hero sticky */
  transition: opacity var(--fw-transition-slow) ease;
}

.fw-main--hidden {
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

.fw-section {
  padding: calc(var(--fw-space-xl) * var(--fw-density))
           calc(var(--fw-space-md) * var(--fw-density));
  max-width: var(--fw-max-width);
  margin: 0 auto;
  width: 100%;
}

.fw-section-eyebrow {
  font-size: var(--fw-text-xs);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fw-text-muted);
  margin-bottom: var(--fw-space-xs);
}

.fw-section-title {
  font-size: clamp(var(--fw-text-xl), 3vw, var(--fw-text-3xl));
  font-weight: 900;
  letter-spacing: -0.8px;
  color: var(--fw-text);
  margin-bottom: calc(var(--fw-space-lg) * var(--fw-density));
  line-height: 1.1;
  text-wrap: balance;
}

/* Placeholder de imagen */
.fw-img-placeholder {
  background: linear-gradient(
    135deg,
    var(--fw-surface) 0%,
    color-mix(in srgb, var(--fw-accent) 12%, var(--fw-surface)) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}
.fw-img-placeholder::after {
  content: '🖼';
  font-size: 28px;
  opacity: 0.22;
}

/* ══════════════════════════════════════════════════════════════════════
   PROMO BANNER
══════════════════════════════════════════════════════════════════════ */

.fw-promo-wrap {
  padding: calc(var(--fw-space-sm) * var(--fw-density))
           calc(var(--fw-space-md) * var(--fw-density));
  background: var(--fw-accent);
}

.fw-promo-inner {
  max-width: var(--fw-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--fw-space-md);
  flex-wrap: wrap;
}

.fw-promo-badge {
  font-size: var(--fw-text-xs);
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fw-bg);
  background: rgba(0,0,0,0.18);
  padding: 3px 10px;
  border-radius: var(--fw-radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.fw-promo-text {
  flex: 1;
  font-size: var(--fw-text-sm);
  font-weight: 700;
  color: var(--fw-bg);
  line-height: 1.3;
}

.fw-promo-cta {
  font-size: var(--fw-text-xs);
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--fw-accent);
  background: var(--fw-bg);
  padding: 7px 16px;
  border-radius: var(--fw-radius-full);
  white-space: nowrap;
  cursor: pointer;
  transition: opacity var(--fw-transition) ease;
  flex-shrink: 0;
}
.fw-promo-cta:hover { opacity: 0.85; }

.fw-promo-timer {
  font-size: var(--fw-text-xs);
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════════════════════════════════
   FEATURED / TOP VENDIDOS
══════════════════════════════════════════════════════════════════════ */

.fw-featured-scroll {
  display: flex;
  gap: calc(var(--fw-space-sm) * var(--fw-density));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: calc(var(--fw-space-md) * var(--fw-density));
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--fw-space-sm);
  /* ocultar scrollbar pero mantener funcionalidad */
  scrollbar-width: none;
}
.fw-featured-scroll::-webkit-scrollbar { display: none; }

.fw-featured-card {
  flex-shrink: 0;
  width: 160px;
  scroll-snap-align: start;
  background: var(--fw-surface);
  border-radius: var(--fw-radius-md);
  overflow: hidden;
  border: 1px solid var(--fw-border);
  cursor: pointer;
  transition: transform var(--fw-transition) ease, box-shadow var(--fw-transition) ease;
  -webkit-tap-highlight-color: transparent;
}
.fw-featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

.fw-featured-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.fw-featured-card .fw-img-placeholder {
  width: 100%;
  aspect-ratio: 1;
}

.fw-featured-card-body {
  padding: 10px 12px 12px;
}

.fw-featured-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--fw-accent);
  margin-bottom: 3px;
}

.fw-featured-name {
  font-size: var(--fw-text-sm);
  font-weight: 700;
  color: var(--fw-text);
  line-height: 1.25;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fw-featured-price {
  font-size: var(--fw-text-sm);
  font-weight: 900;
  color: var(--fw-accent);
  font-variant-numeric: tabular-nums;
}

/* ══════════════════════════════════════════════════════════════════════
   BARRA DE CATEGORÍAS STICKY
══════════════════════════════════════════════════════════════════════ */

/* sticky se aplica en JS al barEl (wrapper externo) — ver categories.js mount() */
.fw-categories-bar {
  background: var(--fw-bg);
  border-bottom: 1px solid var(--fw-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.fw-categories-inner {
  max-width: var(--fw-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--fw-space-xs);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: calc(var(--fw-space-sm) * var(--fw-density))
           calc(var(--fw-space-md) * var(--fw-density));
}
.fw-categories-inner::-webkit-scrollbar { display: none; }

.fw-cat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--fw-radius-full);
  border: 1.5px solid var(--fw-border);
  background: transparent;
  font-size: var(--fw-text-sm);
  font-weight: 700;
  color: var(--fw-text-muted);
  cursor: pointer;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background var(--fw-transition) ease,
              border-color var(--fw-transition) ease,
              color var(--fw-transition) ease;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.fw-cat-pill:hover {
  background: var(--fw-surface);
  border-color: color-mix(in srgb, var(--fw-text) 25%, transparent);
  color: var(--fw-text);
}
.fw-cat-pill.fw-cat-active {
  background: var(--fw-text);
  border-color: var(--fw-text);
  color: var(--fw-bg);
}

.fw-cat-pill-icon { font-size: 14px; line-height: 1; }
.fw-cat-pill-count {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}

/* Cart button en la barra */
.fw-cat-cart-btn {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--fw-radius-full);
  background: var(--fw-text);
  border: none;
  color: var(--fw-bg);
  font-size: var(--fw-text-sm);
  font-weight: 700;
  cursor: pointer;
  transition: opacity var(--fw-transition) ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.fw-cat-cart-btn:hover { opacity: 0.85; }

.fw-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--fw-accent);
  color: var(--fw-bg);
  font-size: 9px;
  font-weight: 900;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transform: scale(0);
  transition: opacity var(--fw-transition) ease, transform var(--fw-transition) ease;
}
.fw-cart-badge.fw-cart-badge--visible {
  opacity: 1;
  transform: scale(1);
}

/* ══════════════════════════════════════════════════════════════════════
   CATÁLOGO UNIVERSAL
══════════════════════════════════════════════════════════════════════ */

.fw-catalog-section {
  padding: calc(var(--fw-space-xl) * var(--fw-density)) 0;
  max-width: var(--fw-max-width);
  margin: 0 auto;
  padding-left: calc(var(--fw-space-md) * var(--fw-density));
  padding-right: calc(var(--fw-space-md) * var(--fw-density));
}

.fw-catalog-section-title {
  font-size: var(--fw-text-lg);
  font-weight: 800;
  color: var(--fw-text);
  letter-spacing: -0.3px;
  margin-bottom: calc(var(--fw-space-md) * var(--fw-density));
  display: flex;
  align-items: center;
  gap: 10px;
}
.fw-catalog-section-title-icon { font-size: 20px; }
.fw-catalog-section-divider {
  flex: 1;
  height: 1px;
  background: var(--fw-border);
}
.fw-catalog-section-count {
  font-size: var(--fw-text-xs);
  font-weight: 700;
  color: var(--fw-text-muted);
  font-variant-numeric: tabular-nums;
}

.fw-catalog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--fw-space-sm) * var(--fw-density));
}

/* ── Product Cards ───────────────────────────────────────────────────── */

.fw-product-card {
  background: var(--fw-surface);
  border: 1px solid var(--fw-border);
  border-radius: var(--fw-radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--fw-transition) ease,
              box-shadow var(--fw-transition) ease;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
  position: relative;
}
.fw-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.09);
}
.fw-product-card.fw-product-unavailable {
  opacity: 0.5;
  pointer-events: none;
}

.fw-product-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.fw-product-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--fw-transition-slow) ease;
}
.fw-product-card:hover .fw-product-card-img-wrap img {
  transform: scale(1.04);
}
.fw-product-card-img-wrap .fw-img-placeholder {
  width: 100%;
  height: 100%;
}

.fw-product-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--fw-radius-full);
  background: var(--fw-accent);
  color: var(--fw-bg);
  letter-spacing: 0.3px;
}

.fw-product-card-unavailable-chip {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--fw-radius-full);
  background: rgba(0,0,0,0.6);
  color: #fff;
}

.fw-product-card-body {
  padding: 10px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fw-product-card-name {
  font-size: var(--fw-text-sm);
  font-weight: 700;
  color: var(--fw-text);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fw-product-card-desc {
  font-size: 11px;
  color: var(--fw-text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.fw-product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 6px;
}

.fw-product-price {
  font-size: var(--fw-text-base);
  font-weight: 900;
  color: var(--fw-accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
  line-height: 1;
}
.fw-product-price-from {
  font-size: 10px;
  font-weight: 600;
  color: var(--fw-text-muted);
  margin-right: 2px;
  font-weight: 700;
}

/* .fw-product-add-btn — definición completa en sección "CONTROLES QTY INLINE" abajo */

/* ══════════════════════════════════════════════════════════════════════
   MODAL UNIVERSAL DE PRODUCTO
══════════════════════════════════════════════════════════════════════ */

.fw-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--fw-transition) ease;
}
.fw-modal-backdrop.fw-modal-open {
  opacity: 1;
  pointer-events: all;
}

.fw-modal {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--fw-bg);
  border-radius: var(--fw-radius-lg) var(--fw-radius-lg) 0 0;
  max-height: 92dvh;
  max-height: 92vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 201;
  transform: translateY(100%);
  transition: transform 320ms cubic-bezier(0.32, 0.72, 0, 1);
}
.fw-modal-backdrop.fw-modal-open .fw-modal {
  transform: translateY(0);
}

.fw-modal-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--fw-border);
  margin: 12px auto 0;
}

.fw-modal-img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}
.fw-modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fw-modal-img-wrap .fw-img-placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
}
.fw-modal-img-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--fw-radius-full);
  background: var(--fw-accent);
  color: var(--fw-bg);
}

.fw-modal-body {
  padding: calc(var(--fw-space-lg) * var(--fw-density));
  padding-bottom: calc(var(--fw-space-2xl) * var(--fw-density));
}

.fw-modal-name {
  font-size: var(--fw-text-xl);
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--fw-text);
  line-height: 1.2;
  margin-bottom: 6px;
}

.fw-modal-price {
  font-size: var(--fw-text-2xl);
  font-weight: 900;
  color: var(--fw-accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}
.fw-modal-price-from {
  font-size: var(--fw-text-sm);
  color: var(--fw-text-muted);
  font-weight: 600;
  margin-right: 4px;
}

.fw-modal-desc {
  font-size: var(--fw-text-sm);
  color: var(--fw-text-muted);
  line-height: 1.6;
  margin-bottom: calc(var(--fw-space-lg) * var(--fw-density));
}

/* Opciones del producto */
.fw-modal-option-group {
  margin-bottom: calc(var(--fw-space-md) * var(--fw-density));
}
.fw-modal-option-label {
  font-size: var(--fw-text-sm);
  font-weight: 700;
  color: var(--fw-text);
  margin-bottom: 8px;
}
.fw-modal-option-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fw-modal-option-chip {
  padding: 7px 14px;
  border-radius: var(--fw-radius-full);
  border: 1.5px solid var(--fw-border);
  font-size: var(--fw-text-sm);
  font-weight: 600;
  color: var(--fw-text-muted);
  cursor: pointer;
  transition: all var(--fw-transition) ease;
  -webkit-tap-highlight-color: transparent;
}
.fw-modal-option-chip:hover { border-color: var(--fw-text); color: var(--fw-text); }
.fw-modal-option-chip.fw-option-selected {
  background: var(--fw-text);
  border-color: var(--fw-text);
  color: var(--fw-bg);
}
.fw-modal-option-chip-delta {
  font-size: 11px;
  opacity: 0.65;
  margin-left: 3px;
}

/* Selector de cantidad */
.fw-modal-qty-row {
  display: flex;
  align-items: center;
  gap: var(--fw-space-md);
  padding: calc(var(--fw-space-md) * var(--fw-density)) 0;
  border-top: 1px solid var(--fw-border);
  border-bottom: 1px solid var(--fw-border);
  margin-bottom: calc(var(--fw-space-md) * var(--fw-density));
}
.fw-modal-qty-label {
  font-size: var(--fw-text-sm);
  font-weight: 700;
  color: var(--fw-text);
  flex: 1;
}
.fw-qty-control {
  display: flex;
  align-items: center;
  gap: 14px;
}
.fw-qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--fw-border);
  background: transparent;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--fw-text);
  transition: background var(--fw-transition) ease;
  -webkit-tap-highlight-color: transparent;
}
.fw-qty-btn:hover { background: var(--fw-surface); }
.fw-qty-btn:disabled { opacity: 0.3; pointer-events: none; }
.fw-qty-val {
  font-size: var(--fw-text-lg);
  font-weight: 900;
  color: var(--fw-text);
  min-width: 24px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.fw-modal-add-btn {
  width: 100%;
  min-height: 54px;
  border-radius: var(--fw-radius-full);
  border: none;
  background: var(--fw-text);
  color: var(--fw-bg);
  font-size: var(--fw-text-sm);
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity var(--fw-transition) ease, transform var(--fw-transition) ease;
}
.fw-modal-add-btn:hover { opacity: 0.88; }
.fw-modal-add-btn:active { transform: scale(0.98); }
.fw-modal-add-btn-price {
  font-size: var(--fw-text-base);
  opacity: 0.75;
}

.fw-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  border: none;
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
}

/* ══════════════════════════════════════════════════════════════════════
   CARRITO DRAWER
══════════════════════════════════════════════════════════════════════ */

.fw-cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--fw-transition) ease;
}
.fw-cart-backdrop.fw-cart-open {
  opacity: 1;
  pointer-events: all;
}

.fw-cart-drawer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--fw-bg);
  border-radius: var(--fw-radius-lg) var(--fw-radius-lg) 0 0;
  max-height: 88dvh;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  z-index: 301;
  transform: translateY(100%);
  transition: transform 320ms cubic-bezier(0.32, 0.72, 0, 1);
}
.fw-cart-backdrop.fw-cart-open .fw-cart-drawer {
  transform: translateY(0);
}

.fw-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--fw-space-md) var(--fw-space-lg);
  border-bottom: 1px solid var(--fw-border);
  flex-shrink: 0;
}
.fw-cart-title {
  font-size: var(--fw-text-lg);
  font-weight: 800;
  color: var(--fw-text);
  letter-spacing: -0.3px;
}
.fw-cart-count {
  font-size: var(--fw-text-sm);
  font-weight: 600;
  color: var(--fw-text-muted);
  font-variant-numeric: tabular-nums;
}
.fw-cart-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--fw-border);
  background: var(--fw-surface);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--fw-text-muted);
  -webkit-tap-highlight-color: transparent;
}

.fw-cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0 var(--fw-space-lg);
  overscroll-behavior: contain;
}

.fw-cart-item {
  display: flex;
  gap: var(--fw-space-sm);
  align-items: center;
  padding: var(--fw-space-md) 0;
  border-bottom: 1px solid var(--fw-border);
}
.fw-cart-item:last-child { border-bottom: none; }

.fw-cart-item-img {
  width: 56px;
  height: 56px;
  border-radius: var(--fw-radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.fw-cart-item-img.fw-img-placeholder {
  width: 56px;
  height: 56px;
  border-radius: var(--fw-radius-sm);
}
.fw-cart-item-img.fw-img-placeholder::after { font-size: 18px; }

.fw-cart-item-info { flex: 1; min-width: 0; }
.fw-cart-item-name {
  font-size: var(--fw-text-sm);
  font-weight: 700;
  color: var(--fw-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fw-cart-item-opts {
  font-size: 11px;
  color: var(--fw-text-muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fw-cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.fw-cart-item-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--fw-border);
  background: transparent;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--fw-text);
  -webkit-tap-highlight-color: transparent;
  transition: background var(--fw-transition) ease;
}
.fw-cart-item-qty-btn:hover { background: var(--fw-surface); }
.fw-cart-item-qty {
  font-size: var(--fw-text-sm);
  font-weight: 800;
  min-width: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.fw-cart-item-price {
  font-size: var(--fw-text-sm);
  font-weight: 800;
  color: var(--fw-text);
  min-width: 60px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Estado vacío */
.fw-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--fw-space-sm);
  padding: calc(var(--fw-space-2xl) * 1.5) var(--fw-space-lg);
  text-align: center;
}
.fw-cart-empty-icon { font-size: 48px; opacity: 0.35; }
.fw-cart-empty-text {
  font-size: var(--fw-text-base);
  font-weight: 700;
  color: var(--fw-text-muted);
}
.fw-cart-empty-sub {
  font-size: var(--fw-text-sm);
  color: var(--fw-text-muted);
  opacity: 0.6;
}

/* Footer del carrito */
.fw-cart-footer {
  padding: var(--fw-space-md) var(--fw-space-lg);
  border-top: 1px solid var(--fw-border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fw-cart-totals {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fw-cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--fw-text-sm);
  color: var(--fw-text-muted);
  font-variant-numeric: tabular-nums;
}
.fw-cart-total-row.fw-cart-grand {
  font-size: var(--fw-text-lg);
  font-weight: 900;
  color: var(--fw-text);
  padding-top: 6px;
  border-top: 1px solid var(--fw-border);
}

.fw-cart-wa-btn {
  width: 100%;
  min-height: 54px;
  border-radius: var(--fw-radius-full);
  border: none;
  background: #25D366;
  color: #fff;
  font-size: var(--fw-text-sm);
  font-weight: 800;
  letter-spacing: 0.6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity var(--fw-transition) ease;
}
.fw-cart-wa-btn:hover { opacity: 0.88; }
.fw-cart-wa-btn svg { width: 20px; height: 20px; }

/* ══════════════════════════════════════════════════════════════════════
   WHATSAPP FLOATING CTA
══════════════════════════════════════════════════════════════════════ */

.fw-whatsapp-fab {
  position: fixed;
  bottom: calc(var(--fw-space-lg) * var(--fw-density));
  right: calc(var(--fw-space-md) * var(--fw-density));
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.fw-whatsapp-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: transform var(--fw-transition) ease, box-shadow var(--fw-transition) ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.fw-whatsapp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,0.45);
}
.fw-whatsapp-btn svg { width: 28px; height: 28px; }

/* Pulso de atención */
.fw-whatsapp-btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.4);
  animation: fw-pulse 2.5s ease-out infinite;
}
@keyframes fw-pulse {
  0%   { transform: scale(0.9); opacity: 1; }
  70%  { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0; }
}

.fw-whatsapp-tooltip {
  background: var(--fw-text);
  color: var(--fw-bg);
  font-size: var(--fw-text-sm);
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--fw-radius-full);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity var(--fw-transition) ease, transform var(--fw-transition) ease;
  pointer-events: none;
}
.fw-whatsapp-fab:hover .fw-whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ══════════════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════════════ */

.fw-footer {
  background: var(--fw-text);
  color: var(--fw-bg);
  padding: calc(var(--fw-space-2xl) * var(--fw-density))
           calc(var(--fw-space-md) * var(--fw-density));
  padding-bottom: calc(var(--fw-space-xl) * var(--fw-density));
}

.fw-footer-inner {
  max-width: var(--fw-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--fw-space-xl) * var(--fw-density));
}

.fw-footer-brand { grid-column: 1 / -1; }

.fw-footer-logo {
  font-size: var(--fw-text-xl);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: var(--fw-space-xs);
}

.fw-footer-tagline {
  font-size: var(--fw-text-sm);
  opacity: 0.5;
  max-width: 300px;
  line-height: 1.5;
}

.fw-footer-col-title {
  font-size: var(--fw-text-xs);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: var(--fw-space-md);
}

.fw-footer-hours {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fw-footer-hour-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: var(--fw-text-sm);
  gap: var(--fw-space-md);
}
.fw-footer-hour-day {
  opacity: 0.55;
  min-width: 80px;
}
.fw-footer-hour-time {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.fw-footer-hour-row.fw-hour-today .fw-footer-hour-day,
.fw-footer-hour-row.fw-hour-today .fw-footer-hour-time {
  color: var(--fw-accent);
  opacity: 1;
}
.fw-footer-hour-closed {
  opacity: 0.35;
  font-style: italic;
}

.fw-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fw-footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fw-text-sm);
}
.fw-footer-contact-icon { font-size: 16px; opacity: 0.6; flex-shrink: 0; }
.fw-footer-contact-link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.85;
  transition: opacity var(--fw-transition) ease;
}
.fw-footer-contact-link:hover { opacity: 1; }

.fw-footer-social {
  display: flex;
  gap: var(--fw-space-sm);
  margin-top: var(--fw-space-sm);
}
.fw-footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-decoration: none;
  transition: background var(--fw-transition) ease;
}
.fw-footer-social-link:hover { background: rgba(255,255,255,0.1); }

.fw-footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--fw-space-lg);
  border-top: 1px solid rgba(255,255,255,0.10);
  flex-wrap: wrap;
  gap: var(--fw-space-sm);
}
.fw-footer-copy {
  font-size: 11px;
  opacity: 0.35;
}
.fw-footer-fletzo {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  opacity: 0.45;
  text-decoration: none;
  color: inherit;
  transition: opacity var(--fw-transition) ease;
}
.fw-footer-fletzo:hover { opacity: 0.8; }

/* Open/Closed pill */
.fw-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--fw-radius-full);
}
.fw-status-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.fw-status-open {
  background: rgba(37,211,102,0.15);
  color: #1a9d4e;
}
.fw-status-open::before { background: #25D366; }
.fw-status-closed {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4);
}
.fw-status-closed::before { background: rgba(255,255,255,0.25); }

/* ══════════════════════════════════════════════════════════════════════
   DESKTOP — breakpoint 768px
══════════════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {

  /* sticky top se gestiona en categories.js sobre el barEl externo */

  .fw-catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .fw-featured-card { width: 200px; }

  /* Modal: dialog centrado */
  .fw-modal {
    bottom: auto;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, calc(-50% + 40px));
    width: min(540px, 92vw);
    border-radius: var(--fw-radius-lg);
    max-height: 88dvh;
    max-height: 88vh;
  }
  .fw-modal-backdrop.fw-modal-open .fw-modal {
    transform: translate(-50%, -50%);
  }
  .fw-modal-handle { display: none; }

  /* Cart drawer: desde la derecha */
  .fw-cart-drawer {
    bottom: 0;
    top: 0;
    left: auto;
    right: 0;
    width: min(420px, 92vw);
    border-radius: var(--fw-radius-lg) 0 0 var(--fw-radius-lg);
    max-height: none;
    transform: translateX(100%);
  }
  .fw-cart-backdrop.fw-cart-open .fw-cart-drawer {
    transform: translateX(0);
  }

  /* Footer: 3 columnas */
  .fw-footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .fw-footer-brand { grid-column: auto; }
}

/* ══════════════════════════════════════════════════════════════════════
   BÚSQUEDA — Barra de búsqueda sobre el catálogo
══════════════════════════════════════════════════════════════════════ */

.fw-search-wrap {
  position: sticky;
  top: calc(var(--fw-ann-h, 0px) + var(--fw-cats-h, 49px));
  z-index: 49;
  background: var(--fw-bg);
  border-bottom: 1px solid var(--fw-border);
  padding: var(--fw-space-sm) var(--fw-space-md);
}

.fw-search-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--fw-surface);
  border: 1.5px solid var(--fw-border);
  border-radius: var(--fw-radius-full);
  padding: 10px 16px;
  transition: border-color var(--fw-transition) ease;
}
.fw-search-inner:focus-within {
  border-color: var(--fw-accent);
}

.fw-search-icon {
  width: 17px; height: 17px;
  flex-shrink: 0;
  color: var(--fw-text-muted);
}

.fw-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font: inherit;
  font-size: var(--fw-text-base);
  color: var(--fw-text);
  outline: none;
}
.fw-search-input::placeholder { color: var(--fw-text-muted); }
/* Ocultar los controles nativos de <input type="search"> */
.fw-search-input::-webkit-search-cancel-button { display: none; }

.fw-search-clear {
  background: none; border: none; cursor: pointer;
  font-size: 13px; color: var(--fw-text-muted);
  padding: 0 2px;
  transition: color var(--fw-transition) ease;
}
.fw-search-clear:hover { color: var(--fw-text); }

.fw-catalog-empty {
  padding: 48px var(--fw-space-md);
  text-align: center;
  color: var(--fw-text);
  font-size: var(--fw-text-base);
}

/* ══════════════════════════════════════════════════════════════════════
   CONTROLES QTY INLINE — En la card del producto
══════════════════════════════════════════════════════════════════════ */

.fw-product-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  border-radius: var(--fw-radius-full);
  background: var(--fw-accent);
  color: #fff;
  font-size: var(--fw-text-sm);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: opacity var(--fw-transition) ease, transform var(--fw-transition) ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.fw-product-add-btn:hover  { opacity: 0.88; }
.fw-product-add-btn:active { transform: scale(0.96); }

.fw-product-qty-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border-radius: var(--fw-radius-full);
  border: 2px solid var(--fw-accent);
  overflow: hidden;
}

.fw-product-qty-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  color: var(--fw-accent);
  background: transparent;
  border: none; cursor: pointer;
  transition: background var(--fw-transition) ease;
  line-height: 1;
}
.fw-product-qty-btn:hover { background: rgba(0,0,0,0.06); }

.fw-product-qty-num {
  min-width: 28px;
  text-align: center;
  font-size: var(--fw-text-sm);
  font-weight: 800;
  color: var(--fw-accent);
  font-variant-numeric: tabular-nums;
}

.fw-product-unit {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.6;
}

/* ══════════════════════════════════════════════════════════════════════
   BARRA FLOTANTE DE PEDIDO
══════════════════════════════════════════════════════════════════════ */

.fw-order-bar {
  position: fixed;
  bottom: -80px;   /* oculta debajo de la pantalla */
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--fw-text);
  color: var(--fw-bg);
  padding: 12px 16px 12px 20px;
  border-radius: var(--fw-radius-full);
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
  min-width: min(340px, 90vw);
  max-width: 480px;
  transition: bottom 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  opacity: 0;
}

.fw-order-bar--on {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  pointer-events: auto;
  opacity: 1;
}

.fw-order-bar-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.fw-order-bar-count {
  font-size: var(--fw-text-sm);
  font-weight: 700;
  opacity: 0.7;
}

.fw-order-bar-sep { opacity: 0.4; font-size: 12px; }

.fw-order-bar-total {
  font-size: var(--fw-text-lg);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.fw-order-bar-btn {
  padding: 9px 18px;
  border-radius: var(--fw-radius-full);
  background: var(--fw-accent);
  color: #fff;
  font-size: var(--fw-text-sm);
  font-weight: 800;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity var(--fw-transition) ease;
}
.fw-order-bar-btn:hover { opacity: 0.88; }

/* ══════════════════════════════════════════════════════════════════════
   MODAL DE REVISIÓN DE PEDIDO
══════════════════════════════════════════════════════════════════════ */

.fw-order-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 240ms ease;
}
.fw-order-backdrop--open {
  opacity: 1;
}
.fw-order-backdrop[hidden] { display: none !important; }

.fw-order-modal {
  width: 100%;
  max-height: 85dvh;
  max-height: 85vh;
  background: var(--fw-bg);
  border-radius: var(--fw-radius-lg) var(--fw-radius-lg) 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(40px);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
.fw-order-backdrop--open .fw-order-modal {
  transform: translateY(0);
}

.fw-order-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--fw-border);
  flex-shrink: 0;
}

.fw-order-modal-title {
  font-size: var(--fw-text-lg);
  font-weight: 900;
  color: var(--fw-text);
}

.fw-order-modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--fw-surface);
  border: none; cursor: pointer;
  font-size: 14px;
  color: var(--fw-text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--fw-transition) ease;
}
.fw-order-modal-close:hover { background: var(--fw-border); }

.fw-order-modal-items {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0;
}

.fw-order-item {
  display: grid;
  grid-template-columns: 44px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--fw-border);
}
.fw-order-item:last-child { border-bottom: none; }

.fw-order-item-img {
  width: 44px; height: 44px;
  border-radius: var(--fw-radius-sm);
  object-fit: cover;
  background: var(--fw-surface);
  flex-shrink: 0;
}

.fw-order-item-name {
  font-size: var(--fw-text-sm);
  font-weight: 600;
  color: var(--fw-text);
  line-height: 1.3;
}

.fw-order-item-qty {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1.5px solid var(--fw-border);
  border-radius: var(--fw-radius-full);
  padding: 2px;
}

.fw-order-qty-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: transparent;
  border: none; cursor: pointer;
  font-size: 16px; font-weight: 700;
  color: var(--fw-text);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--fw-transition) ease;
}
.fw-order-qty-btn:hover { background: var(--fw-surface); }

.fw-order-qty-num {
  min-width: 22px;
  text-align: center;
  font-size: var(--fw-text-sm);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--fw-text);
}

.fw-order-item-price {
  font-size: var(--fw-text-sm);
  font-weight: 800;
  color: var(--fw-accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fw-order-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--fw-text-muted);
  font-size: var(--fw-text-base);
}

.fw-order-modal-footer {
  flex-shrink: 0;
  padding: 16px 20px calc(env(safe-area-inset-bottom, 0px) + 16px);
  border-top: 1px solid var(--fw-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fw-order-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fw-text-base);
  color: var(--fw-text);
  margin-bottom: 4px;
}
.fw-order-total-row strong {
  font-size: var(--fw-text-xl);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.fw-order-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px;
  border-radius: var(--fw-radius-md);
  background: #25D366;
  color: #fff;
  font-size: var(--fw-text-base);
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: opacity var(--fw-transition) ease;
}
.fw-order-wa-btn:hover { opacity: 0.9; }

.fw-order-keep-btn {
  padding: 13px;
  border-radius: var(--fw-radius-md);
  background: var(--fw-surface);
  color: var(--fw-text-muted);
  font-size: var(--fw-text-sm);
  font-weight: 700;
  border: 1.5px solid var(--fw-border);
  cursor: pointer;
  transition: background var(--fw-transition) ease;
}
.fw-order-keep-btn:hover { background: var(--fw-border); }

/* Desktop: modal centrado */
@media (min-width: 600px) {
  .fw-order-backdrop { align-items: center; }
  .fw-order-modal {
    width: min(460px, 92vw);
    max-height: 80dvh;
    max-height: 80vh;
    border-radius: var(--fw-radius-lg);
    transform: translateY(20px) scale(0.97);
  }
  .fw-order-backdrop--open .fw-order-modal {
    transform: translateY(0) scale(1);
  }
  .fw-order-bar { bottom: -80px; }
  .fw-order-bar--on { bottom: 28px; }
}

/* ══════════════════════════════════════════════════════════════════════
   CHECKOUT FORM — Formulario adaptativo por giro
   Food: tipo entrega + nombre + wapp + dirección/mesa + pago
   Service: nombre + wapp + nota
   Store: solo WA (sin form)
══════════════════════════════════════════════════════════════════════ */

.fw-checkout-section {
  padding: 16px 20px 8px;
  border-top: 1px solid var(--fw-border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fw-step-badge {
  padding: 14px 20px 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--fw-accent);
}

.fw-checkout-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fw-checkout-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--fw-text-muted);
}

.fw-checkout-req { color: var(--fw-accent); }

.fw-checkout-input {
  border: 1.5px solid var(--fw-border);
  border-radius: var(--fw-radius-md);
  padding: 11px 14px;
  font-size: var(--fw-text-sm);
  color: var(--fw-text);
  background: var(--fw-surface);
  font-family: inherit;
  outline: none;
  width: 100%;
  transition: border-color var(--fw-transition) ease;
}
.fw-checkout-input:focus      { border-color: var(--fw-accent); }
.fw-checkout-input::placeholder { color: var(--fw-text-muted); opacity: 0.7; }

/* Tipo de entrega */
.fw-tipo-opts {
  display: flex;
  gap: 6px;
}

.fw-tipo-btn {
  flex: 1;
  padding: 9px 8px;
  border-radius: var(--fw-radius-md);
  border: 1.5px solid var(--fw-border);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  color: var(--fw-text-muted);
  cursor: pointer;
  transition: all var(--fw-transition) ease;
  text-align: center;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.fw-tipo-btn:hover    { border-color: var(--fw-text); color: var(--fw-text); }
.fw-tipo-btn--on      { background: var(--fw-text); border-color: var(--fw-text); color: var(--fw-bg); }

/* Forma de pago */
.fw-pago-opts {
  display: flex;
  gap: 8px;
}

.fw-pago-btn {
  flex: 1;
  padding: 10px 8px;
  border-radius: var(--fw-radius-md);
  border: 1.5px solid var(--fw-border);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  color: var(--fw-text-muted);
  cursor: pointer;
  transition: all var(--fw-transition) ease;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.fw-pago-btn:hover  { border-color: var(--fw-text); color: var(--fw-text); }
.fw-pago-btn--on    { border-color: var(--fw-accent); color: var(--fw-accent); background: color-mix(in srgb, var(--fw-accent) 8%, transparent); }

/* Botón confirmar (food/service) */
.fw-order-confirm-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px;
  border-radius: var(--fw-radius-md);
  background: var(--fw-text);
  color: var(--fw-bg);
  font-size: var(--fw-text-base);
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: opacity var(--fw-transition) ease;
}
.fw-order-confirm-btn:hover { opacity: 0.88; }

/* Estado éxito — rediseño v2 */
.fw-order-success {
  padding: 24px 20px 12px;
  text-align: center;
  color: var(--fw-text);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fw-suc-check {
  font-size: 52px;
  line-height: 1;
}
.fw-suc-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--fw-text);
  margin-top: -4px;
}
.fw-suc-biz {
  font-size: 13px;
  color: #888;
  margin-top: -6px;
}

/* Banner verde */
.fw-suc-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
}
.fw-suc-banner-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.fw-suc-banner-title { font-size: 14px; font-weight: 700; color: #2e7d32; margin-bottom: 2px; }
.fw-suc-banner-sub   { font-size: 13px; color: #388e3c; line-height: 1.4; }

/* Número de pedido — navy + gold */
.fw-suc-num-card {
  background: #0b1f3a;
  border-radius: 16px;
  padding: 16px 20px 18px;
  text-align: center;
}
.fw-suc-num-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: rgba(255,255,255,.55);
  margin-bottom: 4px;
  text-transform: uppercase;
}
.fw-suc-num-val {
  font-size: 40px;
  font-weight: 900;
  color: #e8b84b;
  letter-spacing: -.01em;
  line-height: 1;
}

/* Cards de info (entrega / pago) */
.fw-suc-info-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--fw-surface, #f8f8f8);
  border: 1px solid var(--fw-border, #eee);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: left;
}
.fw-suc-info-icon  { font-size: 24px; flex-shrink: 0; margin-top: 1px; }
.fw-suc-info-title { font-size: 14px; font-weight: 700; color: var(--fw-text); }
.fw-suc-info-sub   { font-size: 12px; color: #888; margin-top: 2px; line-height: 1.4; }
.fw-suc-info-monto { font-size: 20px; font-weight: 900; color: var(--fw-text); margin-top: 6px; }
.fw-suc-info-cambio { font-size: 13px; color: #388e3c; margin-top: 4px; }
.fw-suc-info-cambio strong { font-weight: 900; }

/* Denominación de efectivo */
.fw-denom-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 8px;
}
.fw-denom-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fw-denom-chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--fw-border, #e0e0e0);
  background: var(--fw-bg, #fff);
  color: var(--fw-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.fw-denom-chip--on {
  background: #0b1f3a;
  border-color: #0b1f3a;
  color: #e8b84b;
}
.fw-denom-cambio {
  margin-top: 10px;
  font-size: 13px;
  color: var(--fw-text);
  min-height: 20px;
}

/* Clases antiguas — mantener por si acaso */
.fw-success-num   { font-size: 20px; font-weight: 900; }
.fw-success-sub   { font-size: 13px; color: #888; }
.fw-success-card  { background: var(--fw-surface,#f8f8f8); border-radius: 14px; padding: 14px 16px; text-align: left; }
.fw-success-item  { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; }
.fw-success-divider { border-top: 1px solid var(--fw-border,#eee); margin: 8px 0; }
.fw-success-total { font-weight: 900; font-size: 17px; }
.fw-success-meta  { font-size: 12px; color: #888; border-top: 1px solid var(--fw-border,#eee); padding-top: 10px; }
