* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --primary: #10b981;
  --primary-hover: #059669;
  --bg: #090d16;
  --card-bg: #131b2e;
  --card-border: #1f2b45;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
}

/* Header */
.header {
  border-bottom: 1px solid var(--card-border);
  background: rgba(9, 13, 22, 0.95);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo { font-size: 1.3rem; }
.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.menu-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.95rem;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.84rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.menu-icon {
  font-size: 1rem;
  line-height: 1;
}

/* -------------------------------------------------------------
   MENÚ DESPLEGABLE (DRAWER)
------------------------------------------------------------- */
.nav-drawer {
  display: none;
  background: #0d1424;
  border-bottom: 2px solid var(--card-border);
  box-shadow: 0 14px 28px rgba(0,0,0,0.5);
  animation: slideDown 0.22s ease-out forwards;
}

.nav-drawer.open {
  display: block;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.drawer-content {
  padding: 1.2rem 0 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.drawer-header-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.drawer-categories-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.drawer-cat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: capitalize;
}

.drawer-cat-item:hover, .drawer-cat-item.active {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.1);
  color: #fff;
}

.drawer-cat-count {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
}

.drawer-footer-admin {
  margin-top: 0.6rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--card-border);
}

.drawer-admin-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
  transition: all 0.2s;
}

.drawer-admin-link:hover {
  background: var(--accent);
  color: #090d16;
  border-color: var(--accent);
}

.admin-arrow {
  margin-left: auto;
  font-size: 1rem;
}

/* Quick Nav Bar: Buscador Limpio */
.quick-nav-bar {
  padding: 0.5rem 0 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.search-icon {
  position: absolute;
  left: 12px;
  font-size: 0.95rem;
  pointer-events: none;
  opacity: 0.6;
}

.search-box input {
  width: 100%;
  padding: 0.65rem 2.2rem 0.65rem 2.4rem;
  background-color: #050811;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.clear-search-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px;
}

/* Category Pills Bar */
.category-pills-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.category-pills-bar::-webkit-scrollbar {
  display: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.95rem;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.pill:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.pill.active {
  background-color: var(--primary);
  color: #090d16;
  border-color: var(--primary);
  font-weight: 800;
}

/* Hero */
.hero {
  padding: 1.8rem 0 0.8rem;
  text-align: center;
}

.hero h2 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  font-size: 0.9rem;
}

/* Catálogo */
.catalog {
  padding: 1rem 0 4rem;
  flex-grow: 1;
}

/* -------------------------------------------------------------
   SECCIONES HORIZONTALES POR CATEGORÍA (Modo "Todos")
------------------------------------------------------------- */
.category-section {
  margin-bottom: 2.2rem;
}

.category-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  padding: 0 0.75rem;
}

.category-section-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: capitalize;
}

.category-see-all-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  transition: color 0.2s;
}

.category-see-all-btn:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* Riel Horizontal con Scroll Snap y Margen Cómodo */
.horizontal-track {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  padding: 0.6rem 0.75rem 1.2rem;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--card-border) transparent;
}

.horizontal-track::-webkit-scrollbar {
  height: 6px;
}
.horizontal-track::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: 4px;
}

.horizontal-track .card {
  flex: 0 0 240px;
  scroll-snap-align: start;
}

@media (max-width: 640px) {
  .horizontal-track .card {
    flex: 0 0 215px;
  }
}

/* -------------------------------------------------------------
   GRID VERTICAL (Modo Categoría o Búsqueda)
------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 280px));
  justify-content: center;
  gap: 1.25rem;
}

.grid-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--card-border);
}

.grid-category-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  text-transform: capitalize;
}

.grid-count {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Tarjeta de Producto */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.6);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: #050811;
  overflow: hidden;
}

.card-img-wrapper img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.photo-count-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(6px);
  color: var(--accent);
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  letter-spacing: 0.04em;
}

.card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-main);
  line-height: 1.3;
}

.card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.price {
  font-size: 1.18rem;
  font-weight: 800;
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-whatsapp {
  background-color: #25d366;
  color: #090d16;
  font-weight: 800;
}

.btn-whatsapp:hover {
  background-color: #1eb956;
}

.btn-whatsapp-lg {
  background-color: #25d366;
  color: #090d16;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.95rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  transition: all 0.2s;
}

.btn-whatsapp-lg:hover {
  background-color: #1eb956;
  transform: translateY(-2px);
}

/* Paginación progresiva */
.load-more-wrap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.btn-load-more {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.6rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-load-more:hover {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.08);
}

/* Loading & Empty */
.loading-state, .no-results {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--text-muted);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 0.75rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Modal Detalle */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 250;
  padding: 0.75rem;
  animation: fadeIn 0.2s ease-out;
}

.modal-overlay.active { display: flex; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  max-width: 460px;
  width: 100%;
  max-height: 94vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8);
  animation: scaleUp 0.22s ease-out;
  display: flex;
  flex-direction: column;
}

@keyframes scaleUp { from { transform: scale(0.93); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover { background: #ef4444; border-color: #ef4444; }

.carousel-container {
  position: relative;
  width: 100%;
  height: 360px;
  background: #050811;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(9, 13, 22, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
}

.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.carousel-counter {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(9, 13, 22, 0.8);
  backdrop-filter: blur(6px);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 10;
}

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.carousel-dot.active {
  width: 22px;
  border-radius: 10px;
  background: var(--primary);
}

.modal-body-content {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
}

.modal-badge-row { margin-bottom: 0.4rem; }

.badge-cat {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.modal-product-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.modal-product-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.modal-divider {
  height: 1px;
  background: var(--card-border);
  margin: 0.4rem 0 1rem;
}

.modal-section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.modal-product-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  white-space: pre-line;
  margin-bottom: 1.5rem;
}

/* Footer Minimalista */
.footer {
  border-top: 1px solid var(--card-border);
  padding: 2.2rem 0 2.5rem;
  background: #070a12;
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  text-align: center;
}

.footer-copy {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 500;
}

.dngr-minimal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.9rem;
  background: rgba(19, 27, 46, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  text-decoration: none;
  color: #94a3b8;
  transition: all 0.2s ease;
}

.dngr-minimal-badge:hover {
  background: rgba(19, 27, 46, 0.95);
  border-color: rgba(255, 214, 10, 0.35);
  transform: translateY(-1px);
}

.dngr-lead-text { font-size: 0.78rem; color: #64748b; }
.dngr-brand-inline { display: inline-flex; align-items: center; gap: 0.35rem; }
.dngr-mini-icon { width: 15px; height: 14px; }
.dngr-text-bold {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: #f1f5f9;
}
.dngr-text-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  color: #FFD60A;
  background: rgba(255, 214, 10, 0.12);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.dngr-cta-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: #38bdf8;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 0.6rem;
}

@media (max-width: 640px) {
  .hero h2 { font-size: 1.7rem; }
  .carousel-container { height: 320px; }
  .dngr-minimal-badge {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 14px;
    padding: 0.6rem 0.8rem;
    gap: 0.45rem;
  }
  .dngr-cta-link { border-left: none; padding-left: 0; width: 100%; }
}


/* -------------------------------------------------------------
   BRANDING: EL FLECHAZO (Rojo #ef4444 + Celeste #38bdf8)
------------------------------------------------------------- */
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-logo-svg {
  width: 44px;
  height: 40px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.25));
}

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

.brand-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
  line-height: 1;
}

.brand-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-top: 2px;
}

.brand-logo-svg {
  width: 48px;
  height: 42px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.25));
}

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

.brand-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
  line-height: 1;
}

.brand-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-top: 2px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* -------------------------------------------------------------
   CARRITO DE COMPRAS & HEADER ACTIONS
------------------------------------------------------------- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cart-toggle-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-toggle-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cart-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.cart-badge-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--primary);
  color: #0b1120;
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg);
}

/* Card Button: Add to Cart */
.card-actions-row {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.btn-card-cart {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--accent);
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-card-cart:hover {
  background: var(--accent);
  color: #0b1120;
}

/* Modal Quantity & Action buttons */
.modal-quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  padding: 0.6rem 0.85rem;
  background: #0b1120;
  border: 1px solid var(--card-border);
  border-radius: 12px;
}

.quantity-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.qty-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.qty-val {
  font-size: 1rem;
  font-weight: 800;
  min-width: 22px;
  text-align: center;
  color: #fff;
}

.modal-actions-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.btn-add-cart {
  width: 100%;
  background: #38bdf8;
  color: #090d16;
  font-weight: 800;
  font-size: 0.98rem;
  padding: 0.9rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.25);
}

.btn-add-cart:hover {
  background: #0ea5e9;
  transform: translateY(-1px);
}

.btn-whatsapp-direct {
  width: 100%;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #25d366;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0.75rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-whatsapp-direct:hover {
  background: #25d366;
  color: #090d16;
}

/* Toast Notificación */
.cart-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: #10b981;
  color: #090d16;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.65rem 1.15rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
}

.cart-toast.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast-icon {
  background: #090d16;
  color: #10b981;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.toast-btn {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #090d16;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  cursor: pointer;
  margin-left: 0.2rem;
}

/* Botón Flotante de Carrito */
.floating-cart-pill {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 200;
  background: #10b981;
  color: #090d16;
  border: none;
  padding: 0.75rem 1.15rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  animation: bounceIn 0.3s ease-out;
}

.floating-cart-pill:hover {
  background: #059669;
  transform: scale(1.04);
}

@keyframes bounceIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.float-cart-count {
  background: #090d16;
  color: #10b981;
  font-size: 0.74rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
}

.float-cart-total {
  border-left: 1px solid rgba(0, 0, 0, 0.2);
  padding-left: 0.55rem;
}

/* Modal del Carrito */
.cart-modal-card {
  max-width: 520px;
  max-height: 90vh;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.3rem;
  border-bottom: 1px solid var(--card-border);
}

.cart-header-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-header-title h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.cart-body {
  padding: 1rem 1.3rem;
  overflow-y: auto;
  max-height: 48vh;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cart-empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
}
.cart-empty-icon {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

/* Item del Carrito */
.cart-item {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  background: #0b1120;
  border: 1px solid var(--card-border);
  padding: 0.75rem;
  border-radius: 14px;
}

.cart-item-thumb {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  background: #000;
  flex-shrink: 0;
}

.cart-item-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow: hidden;
}

.cart-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-unit-price {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.cart-qty-btn {
  width: 26px;
  height: 26px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.cart-qty-btn:hover {
  border-color: var(--primary);
}

.cart-qty-num {
  font-size: 0.88rem;
  font-weight: 800;
  min-width: 18px;
  text-align: center;
}

.cart-item-subtotal {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  text-align: right;
  flex-shrink: 0;
}

.cart-item-del-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.cart-item-del-btn:hover { opacity: 1; }

/* Footer del Carrito */
.cart-footer {
  padding: 1rem 1.3rem 1.4rem;
  border-top: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(11, 17, 32, 0.6);
}

.cart-meta-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cart-meta-group label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
}

.cart-meta-group input {
  padding: 0.55rem 0.8rem;
  background: #070a12;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: #fff;
  font-size: 0.86rem;
  outline: none;
}
.cart-meta-group input:focus {
  border-color: var(--primary);
}

.cart-summary-box {
  background: #070a12;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.cart-total-amount {
  font-size: 1.25rem;
  color: var(--primary);
}

.cart-currency-note {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.btn-whatsapp-cart {
  width: 100%;
}

.btn-clear-cart {
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
  text-align: center;
}
.btn-clear-cart:hover { color: #ef4444; }
