/* ═══════════════════════════════════════════════════════
   NEGOTIALE — CATALOG CSS
   Estilos exclusivos del catálogo público por tenant.
   tenant.negotiale.com
═══════════════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --cat-bg:          #080e1a;
  --cat-bg-mid:      #0d1628;
  --cat-bg-bottom:   #060b14;
  --cat-surface:     #ffffff;
  --cat-primary:     #1a67b3;
  --cat-primary-dk:  #144e8a;
  --cat-accent:      #10b981;
  --cat-accent-dk:   #059669;
  --cat-cart:        #0891b2;
  --cat-cart-dk:     #0e7490;
  --cat-wa:          #25d366;
  --cat-wa-dk:       #1da851;
  --cat-danger:      #e53935;
  --cat-text:        #1a1a2e;
  --cat-text-muted:  #888;
  --cat-border:      #eee;
  --cat-radius:      12px;
  --cat-font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --cat-transition:  0.2s ease;
  --cat-container:   1100px;
}

/* ── RESET MÍNIMO ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--cat-font);
  background: var(--cat-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

#catalog-view {
  color: var(--cat-text);
}

/* Gradiente de fondo global del catálogo */
#catalog-view {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(26,103,179,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 30% at 90% 60%, rgba(16,185,129,0.07) 0%, transparent 50%),
    linear-gradient(180deg, var(--cat-bg) 0%, var(--cat-bg-mid) 40%, var(--cat-bg-bottom) 100%);
}

.container {
  max-width: var(--cat-container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ════════════════════════════════════════
   HEADER DEL NEGOCIO
════════════════════════════════════════ */
.cat-header {
  padding: 52px 0 42px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(37,99,235,0.22) 0%, transparent 70%),
    linear-gradient(180deg, rgba(13,22,40,0.95) 0%, rgba(8,14,26,0.8) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Partículas decorativas */
.cat-header::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.12), transparent 70%);
  top: -120px;
  right: -80px;
  pointer-events: none;
}

.cat-header::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.08), transparent 70%);
  bottom: -80px;
  left: -60px;
  pointer-events: none;
}

.cat-name {
  font-size: 2.2rem;
  font-weight: 900;
  color: #f1f5f9;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.cat-rubro {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.cat-slogan {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  font-style: italic;
  margin-top: 8px;
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.06);
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
}

/* ════════════════════════════════════════
   INFO CARDS (tasa, ubicación, horario)
════════════════════════════════════════ */
.cat-info {
  padding: 20px 0;
  background: #eef0f3;
  border-bottom: 1px solid #d8dce2;
}

.cat-info-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cat-info-card {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-info-icon { font-size: 1.4rem; }

.cat-info-text {
  display: flex;
  flex-direction: column;
}

.cat-info-text strong {
  font-size: 0.88rem;
  color: #222;
  font-weight: 700;
}

.cat-info-text small {
  font-size: 0.72rem;
  color: var(--cat-text-muted);
}

/* ════════════════════════════════════════
   FILTROS Y BÚSQUEDA
════════════════════════════════════════ */
.cat-filters {
  padding: 18px 0;
  background: rgba(8,14,26,0.92);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.cat-filters-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.cat-search-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.08);
  color: #f1f5f9;
  font-family: var(--cat-font);
  transition: all var(--cat-transition);
}

.cat-search-input::placeholder { color: rgba(255,255,255,0.35); }

.cat-search-input:focus {
  outline: none;
  border-color: rgba(37,99,235,0.6);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.cat-filter-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cat-filter-btn {
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--cat-transition);
  font-family: var(--cat-font);
}

.cat-filter-btn:hover {
  border-color: rgba(37,99,235,0.5);
  color: #f1f5f9;
  background: rgba(37,99,235,0.12);
}

.cat-filter-btn.active {
  background: var(--cat-primary);
  color: #fff;
  border-color: var(--cat-primary);
  box-shadow: 0 2px 10px rgba(26,103,179,0.35);
}

/* ════════════════════════════════════════
   GRID DE PRODUCTOS
════════════════════════════════════════ */
.cat-products {
  padding: 32px 0 60px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

/* ── CARD ── */
.cat-product-card {
  background: #f7f8fa;
  border-radius: var(--cat-radius);
  padding: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  transition: transform var(--cat-transition), box-shadow var(--cat-transition);
  opacity: 0;
  animation: catFadeUp 0.4s ease forwards;
  border: 1px solid #e8eaed;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.cat-product-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cat-primary), #33a5d5, var(--cat-accent));
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}

.cat-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.cat-product-card:hover::after { transform: scaleX(1); }

@keyframes catFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Imagen */
.cat-product-img {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  margin-bottom: 12px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s;
}

.cat-product-card:hover .cat-product-img { transform: scale(1.03); }

.cat-product-img-placeholder {
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  opacity: 0.35;
}

/* Top de la card */
.cat-product-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

/* Badges */
.cat-badge {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.cat-badge-product  { background: #e3f2fd; color: #1565c0; }
.cat-badge-service  { background: #f3e5f5; color: #7b1fa2; }
.cat-badge-promo    { background: #fff3e0; color: #e65100; }

.cat-product-code {
  font-size: 0.72rem;
  color: #bbb;
  font-family: monospace;
}

/* Nombre */
.cat-product-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
  transition: color var(--cat-transition);
  line-height: 1.3;
}

.cat-product-card:hover .cat-product-name { color: var(--cat-primary); }

/* Descripción — 2 líneas máximo */
.cat-product-desc {
  font-size: 0.82rem;
  color: var(--cat-text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Footer de la card: precios + botón carrito */
.cat-product-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
}

/* Precios */
.cat-product-prices {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cat-price-original {
  font-size: 0.75rem;
  color: #bbb;
  text-decoration: line-through;
  line-height: 1;
}

.cat-price-usd {
  font-size: 1.2rem;
  font-weight: 800;
  color: #2e7d32;
  line-height: 1;
  transition: transform var(--cat-transition);
}

.cat-product-card:hover .cat-price-usd { transform: scale(1.04); }

.cat-price-bs {
  font-size: 0.76rem;
  color: #aaa;
  line-height: 1;
}

/* ── BOTÓN AGREGAR AL CARRITO ── */
.cat-add-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--cat-cart);
  color: white;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--cat-transition), transform var(--cat-transition), box-shadow var(--cat-transition);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(8,145,178,0.3);
}

.cat-add-btn:hover {
  background: var(--cat-cart-dk);
  transform: scale(1.12);
  box-shadow: 0 4px 14px rgba(8,145,178,0.45);
}

.cat-add-btn.in-cart {
  background: #2e7d32;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 20px;
  width: auto;
  min-width: 52px;
  height: 38px;
  padding: 0 12px;
  color: #fff;
  box-shadow: 0 2px 8px rgba(46,125,50,0.35);
}

/* ════════════════════════════════════════
   MODAL DE DETALLE
════════════════════════════════════════ */
#cat-modal-root {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8999;
}

#cat-modal-root > * { pointer-events: all; }

.cat-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 20px;
  animation: catFadeUp 0.2s ease;
}

.cat-modal {
  background: #f7f8fa;
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

.cat-modal-img {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  border-radius: 16px 16px 0 0;
  cursor: zoom-in;
}

.cat-modal-body { padding: 20px; }

.cat-modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cat-modal-close {
  position: static;
  background: rgba(0,0,0,0.06);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--cat-transition);
  flex-shrink: 0;
  margin-left: auto;
}

.cat-modal-close:hover { background: rgba(0,0,0,0.14); }

.cat-modal-name {
  font-size: 1.3rem;
  color: #1a1a2e;
  margin-bottom: 10px;
  line-height: 1.3;
}

.cat-modal-desc {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
}

.cat-modal-prices {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 10px;
}

.cat-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  flex-wrap: nowrap;
}

.cat-qty-control {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  width: fit-content;
}

.cat-qty-control button {
  width: 36px;
  height: 40px;
  border: none;
  background: #f5f5f5;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--cat-transition);
}

.cat-qty-control button:hover { background: #e0e0e0; }

.cat-qty-control span {
  width: 36px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cat-text);
  background: #f2f4f7;
}

.cat-modal-add-btn {
  flex: 1;
  padding: 10px 16px;
  background: var(--cat-accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--cat-transition);
  font-family: var(--cat-font);
}

.cat-modal-add-btn:hover { background: var(--cat-accent-dk); }
.cat-modal-add-btn.in-cart { background: #2e7d32; }

/* ════════════════════════════════════════
   LIGHTBOX
════════════════════════════════════════ */
.cat-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: pointer;
  animation: catFadeUp 0.2s ease;
}

.cat-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  cursor: default;
}

.cat-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.12);
  border: none;
  color: white;
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--cat-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* ════════════════════════════════════════
   CARRITO FLOTANTE
════════════════════════════════════════ */
.cat-cart-float-btn {
  position: fixed;
  bottom: 96px;
  right: 26px;
  width: 58px;
  height: 58px;
  background: var(--cat-cart);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 0;          /* oculta el emoji 🛒 */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(8,145,178,0.45);
  transition: transform var(--cat-transition), box-shadow var(--cat-transition);
  z-index: 200;
  opacity: 0;
  animation: catBounceIn 0.5s ease 1.2s forwards;
}

/* SVG del carrito en blanco */
.cat-cart-float-btn::before {
  content: '';
  display: block;
  width: 26px;
  height: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") center/contain no-repeat;
}

.cat-cart-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 26px rgba(8,145,178,0.55);
}

.cat-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--cat-danger);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  font-size: 0.65rem;
}

@keyframes catBounceIn {
  0%   { opacity: 0; transform: scale(0.5); }
  60%  { opacity: 1; transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}

/* ════════════════════════════════════════
   DRAWER DEL CARRITO
════════════════════════════════════════ */
.cat-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 8000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cat-cart-overlay.open { opacity: 1; pointer-events: all; }

.cat-cart-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100%;
  background: white;
  color: #1a1a2e;
  z-index: 8001;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
}

.cat-cart-drawer.open { right: 0; }

.cat-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid #eee;
}

.cat-cart-header h3 { font-size: 1.05rem; color: #1a1a2e; }

.cat-cart-header button {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #666;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--cat-transition);
}

.cat-cart-header button:hover { background: #f0f0f0; }

.cat-cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #aaa;
  padding: 40px;
  text-align: center;
}

.cat-cart-empty span { font-size: 3rem; }
.cat-cart-empty p { font-size: 1rem; font-weight: 600; color: #888; }
.cat-cart-empty small { font-size: 0.85rem; }

.cat-cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cat-cart-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.cat-cart-item-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.cat-cart-item-name { font-size: 0.9rem; font-weight: 600; color: #333; line-height: 1.3; }
.cat-cart-item-price { font-size: 0.9rem; font-weight: 700; color: #2e7d32; white-space: nowrap; }

.cat-cart-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cat-cart-item-controls button {
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f5f5f5;
  color: #1a1a2e;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--cat-transition);
}

.cat-cart-item-controls button:hover { background: #e0e0e0; }

.cat-cart-item-controls span {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #1a1a2e;
}

.cat-cart-remove {
  margin-left: auto;
  background: none !important;
  border: none !important;
  font-size: 1rem !important;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity var(--cat-transition) !important;
}

.cat-cart-remove:hover { opacity: 1 !important; }

.cat-cart-total {
  padding: 16px 20px;
  border-top: 2px solid #eee;
  background: #fafafa;
}

.cat-cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.cat-cart-total-row span { font-size: 1rem; color: #555; }
.cat-cart-total-row strong { font-size: 1.2rem; color: #1a1a2e; display: block; text-align: right; }
.cat-cart-total-row small { font-size: 0.8rem; color: #aaa; display: block; text-align: right; }

.cat-cart-checkout-btn {
  width: 100%;
  padding: 14px;
  background: var(--cat-primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--cat-transition);
  font-family: var(--cat-font);
}

.cat-cart-checkout-btn:hover { background: var(--cat-primary-dk); }

/* ════════════════════════════════════════
   FORMULARIO DE PEDIDO
════════════════════════════════════════ */
.cat-order-modal { max-width: 500px; }

.cat-order-summary {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 18px;
}

.cat-order-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #555;
  padding: 4px 0;
  border-bottom: 1px solid #eee;
}

.cat-order-item:last-of-type { border-bottom: none; }

.cat-order-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 2px solid #e0e0e0;
}

.cat-order-total strong { font-size: 1.05rem; color: #1a1a2e; }
.cat-order-total small  { font-size: 0.82rem; color: #aaa; }

.cat-order-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cat-order-form input,
.cat-order-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: var(--cat-font);
  transition: border-color var(--cat-transition);
  box-sizing: border-box;
  color: #1a1a2e;
}

.cat-order-form input:focus,
.cat-order-form textarea:focus {
  outline: none;
  border-color: var(--cat-primary);
  box-shadow: 0 0 0 3px rgba(26,103,179,0.1);
}

.cat-delivery-options {
  display: flex;
  gap: 10px;
}

.cat-delivery-opt {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color var(--cat-transition), background var(--cat-transition);
  color: #333;
}

.cat-delivery-opt:has(input:checked) {
  border-color: var(--cat-primary);
  background: #e3f2fd;
  color: var(--cat-primary);
}

.cat-delivery-opt input {
  width: auto;
  padding: 0;
  border: none;
  box-shadow: none;
  accent-color: var(--cat-primary);
}

.cat-order-submit-btn {
  padding: 14px;
  background: var(--cat-accent);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--cat-transition);
  font-family: var(--cat-font);
}

.cat-order-submit-btn:hover    { background: var(--cat-accent-dk); }
.cat-order-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.cat-order-msg {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  min-height: 20px;
}

/* ════════════════════════════════════════
   CONFIRMACIÓN DE PEDIDO
════════════════════════════════════════ */
.cat-confirm-modal { max-width: 400px; }

.cat-confirm-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
}

.cat-confirm-id {
  display: inline-block;
  background: #e3f2fd;
  color: var(--cat-primary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 20px;
  border-radius: 20px;
  margin: 12px 0 20px;
}

.cat-confirm-wa-btn {
  display: block;
  background: var(--cat-wa);
  color: white;
  text-decoration: none;
  padding: 13px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
  transition: background var(--cat-transition);
  text-align: center;
}

.cat-confirm-wa-btn:hover { background: var(--cat-wa-dk); }

.cat-confirm-close-btn {
  width: 100%;
  padding: 11px;
  background: #f0f0f0;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: #555;
  transition: background var(--cat-transition);
  font-family: var(--cat-font);
}

.cat-confirm-close-btn:hover { background: #e0e0e0; }

/* ════════════════════════════════════════
   WHATSAPP FLOTANTE
════════════════════════════════════════ */
.cat-whatsapp-btn {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px;
  height: 58px;
  background: var(--cat-wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(37,211,102,0.45);
  transition: transform var(--cat-transition), box-shadow var(--cat-transition);
  z-index: 200;
  opacity: 0;
  animation: catBounceIn 0.5s ease 1s forwards;
}

.cat-whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 26px rgba(37,211,102,0.6);
}

/* ════════════════════════════════════════
   TOAST
════════════════════════════════════════ */
.cat-toast {
  position: fixed;
  bottom: 172px;
  right: 26px;
  background: #1a1a2e;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  max-width: 260px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.cat-toast.show { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════
   FOOTER DEL CATÁLOGO
════════════════════════════════════════ */
.cat-footer {
  background: rgba(0,0,0,0.4);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
}

.cat-footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.cat-footer-content p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

.cat-powered {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color var(--cat-transition);
}

.cat-powered:hover { color: rgba(255,255,255,0.7); }
.cat-powered strong { color: rgba(255,255,255,0.55); }

/* ── VARIANTES: fila cantidad + botón ── */
.cat-variant-info {
  display: none;
  font-size: 0.85rem;
  color: var(--cat-text-muted);
  margin-bottom: 4px;
}

.cat-variant-add-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.cat-variant-add-row .cat-modal-add-btn {
  flex: 1;
}

/* ════════════════════════════════════════
   LOADING
════════════════════════════════════════ */
.loading {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255,255,255,0.4);
  font-size: 0.95rem;
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 600px) {
  .cat-name          { font-size: 1.7rem; }
  .cat-grid          { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .cat-product-img   { height: 140px; }
  .cat-filters-row   { flex-direction: column; align-items: stretch; }
  .cat-search-input  { min-width: 100%; }
  .cat-filter-buttons { justify-content: center; }
  .cat-modal         { max-height: 95vh; border-radius: 16px 16px 0 0; }
  .cat-modal-overlay { align-items: flex-end; padding: 0; }
  .cat-cart-drawer   { max-width: 100%; }
  .cat-delivery-options { flex-direction: column; }
  .cat-info-grid     { gap: 16px; }
}

@media (max-width: 400px) {
  .cat-grid { grid-template-columns: 1fr; }
}
