/*
 * 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;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px calc(var(--fw-space-md) * var(--fw-density));
  width: 100%;
  max-width: var(--fw-max-width);
  margin: 0 auto;
}

.fw-ann-msg {
  font-size: var(--fw-text-sm);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.fw-ann-timer {
  font-size: var(--fw-text-xs);
  font-weight: 800;
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.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);
  -webkit-font-smoothing: antialiased;
  position: relative;
  z-index: 1; /* Desliza sobre el hero sticky */
}

.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
══════════════════════════════════════════════════════════════════════ */

.fw-categories-bar {
  position: sticky;
  top: 56px; /* altura nav mobile */
  z-index: 50;
  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 {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--fw-text);
  border: none;
  color: var(--fw-bg);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--fw-transition) ease, transform var(--fw-transition) ease;
  flex-shrink: 0;
}
.fw-product-add-btn:hover { background: var(--fw-accent); }
.fw-product-add-btn:active { transform: scale(0.88); }

/* ══════════════════════════════════════════════════════════════════════
   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) {

  .fw-categories-bar { top: 64px; } /* nav desktop height */

  .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; }
}
