/* ===== BOTÓN CARGAR MÁS ===== */
.load-more-btn {
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 8px auto 0;
  padding: 14px 36px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border: none;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}
.load-more-btn:hover,
.load-more-btn:focus,
.load-more-btn:focus-visible {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  outline: none;
}
.load-more-btn:active {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

/* ===== FOOTER DEL CATÁLOGO ===== */
#catalog-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px 16px 90px;
}

.volver-todos-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  margin: 0 auto;
  padding: 15px 40px;
  background: #fff;
  border: 3px solid #1a1a1a;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 900;
  color: #1a1a1a;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0px #1a1a1a;
  transition: transform 0.1s, box-shadow 0.1s;
}
.volver-todos-btn::before {
  content: '←';
  font-size: 18px;
  line-height: 1;
}
.volver-todos-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #1a1a1a;
}
.volver-todos-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #1a1a1a;
}

:root{
  --header-h: 78px;                 
  --gap-d: 20px;                     
  --gap-m: 14px;                     
  --radius: 22px;
  --card-bg-top: #f6f7f7b9;
  --card-bg-bot: #ffffffa6;
  --text-dark: #0a0f1c;
  --btn-shadow: 0 10px 22px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.65);
}

body{
  background:linear-gradient(90deg, #ff3131 0%, #ff914d 100%);
  font-family: 'Montserrat', system-ui, sans-serif;
  margin: 0;
}

html.ofertas-page,
body.ofertas-page{
  overflow-y: auto !important;
  height: auto !important;
}

.page-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
  padding: 6px 12px;
  z-index: 20;
  background: linear-gradient(90deg, #ff3131 0%, #ff914d 100%);
}

/* Flecha de volver */
.back-arrow {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.back-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-2px);
}

.back-arrow:active {
  transform: translateX(-4px);
}

/* Logo centrado */
.page-logo-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-logo-center img {
  height: 45px;
  width: auto;
}

/* Espaciador para balance */
.header-spacer {
  width: 60px;
}


.catalogo-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);     
  grid-template-rows: auto; /* ← CAMBIO: auto en lugar de repeat(3, 1fr) */
  grid-auto-rows: min-content; /* Las filas se ajustan al contenido */
  gap: var(--gap-d);
  padding: 20px;
  padding-top: 8px; 
  box-sizing: border-box;
}

.card{
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  align-items: end;
  background: linear-gradient(180deg, var(--card-bg-top) 0%, var(--card-bg-bot) 100%);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.card-img{
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
}
.card-img img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.15));
  user-select: none; -webkit-user-drag: none;
}

.card-row{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}
.card-title{
  margin: 0;
  color: var(--text-dark);
  font-weight: 800;
  font-size: clamp(14px, 2.2vw, 20px);
  line-height: 1.1;
  display: -webkit-box;

  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price {
  margin: 8px auto 0;           
  color: #ffdd00;
  font-weight: 800;
  font-size: 21px;

  display: inline-block;        
  background-color: #ff3131;
  border-radius: 32px;
  padding: 4px 12px;           
  line-height: 1.2;
}

.card-mult{
  margin-top: 4px;
  font-weight: 700;
  font-size: 12px;
  color: #0a0f1c;
  opacity: .7;
}


.card-add {
  margin-top: 10px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: var(--text-dark);
  font-family: 'Montserrat', sans-serif;
  font-size: medium;
  font-weight: bold;
  padding: 12px 16px;
  box-shadow: var(--btn-shadow);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;   
  transition: transform .06s ease, filter .15s ease;
}

.card-add:active { 
  transform: translateY(1px); 
  filter: brightness(.95); 
}

/* Ripple más notorio */
.card-add::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 49, 49, 0.55); 
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.card-add:active::after {
  animation: ripple-strong 0.50s ease-out;
}

@keyframes ripple-strong {
  0%   { width: 0; height: 0; opacity: 0.8; }
  50%  { width: 250%; height: 250%; opacity: 0.5; }
  100% { width: 400%; height: 400%; opacity: 0; }
}

@media (max-width: 768px){
  .catalogo-grid{
    grid-template-columns: repeat(2, 1fr);   
    grid-template-rows: auto; /* ← CAMBIO: auto en lugar de repeat(4, 1fr) */
    grid-auto-rows: min-content; /* Las filas se ajustan al contenido */
    gap: var(--gap-m);
    padding: 12px;
    padding-top:20px;
  }

  .card-title{ font-size: 13px; }
  .card-price{ font-size: 18px; }
  .catalogo-grid .card.combo-card {
    grid-column: 1 / -1; /* Ocupa toda la fila en mobile */
  }
}


.transition-screen {
  position: fixed;
  inset: 0;
  background:linear-gradient(90deg, #ff3131 0%, #ff914d 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeOutScreen 2s forwards;
  animation-delay: 1.5s;
}

.transition-logo {
  width: 120px;
  height: auto;
  animation: spinLogo 1.5s ease-in-out forwards;
}

@keyframes spinLogo {
  0%   { transform: rotate(0deg) scale(1); opacity: 1; }
  60%  { transform: rotate(360deg) scale(1.2); opacity: 1; }
  100% { transform: rotate(720deg) scale(0.8); opacity: 0; }
}

@keyframes fadeOutScreen {
  to { opacity: 0; visibility: hidden; }
}

/* Card destacada */
.card.destacado {
  border: 2px solid #a855f7; /* violeta */
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.8),
              0 0 0px rgba(168, 85, 247, 0.6);
  animation: fuego 1.5s infinite alternate;
  position: relative;
}


/* Cinta de descuento (esquina superior izquierda) */
.discount-ribbon{
  position:absolute;
  top:0; left:0;
  width:78px;            /* tamaño del triángulo */
  height:78px;
  z-index:5;
  pointer-events:none;   /* no tapa clicks del botón Agregar */
}

/* Triángulo relleno con degradé */
.discount-ribbon::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  clip-path: polygon(0 0, 100% 0, 0 100%); /* triángulo perfecto */
}

/* Texto rotado sobre la cinta */
.discount-ribbon > span{
  position:absolute;
  top: 25px; left:6px;
  transform: rotate(-45deg);
  transform-origin: left top;
  color:#fff;
  font-weight:800;
  font-size: 18px;
  letter-spacing:.3px;
  text-shadow:0 1px 2px rgba(0,0,0,.35);
}

/* Ajuste responsive */
@media (max-width:480px){
  .discount-ribbon{ width:64px; height:64px; }
  .discount-ribbon > span{ top:20px; left:7px; font-size:14px; }
}

/* ===== RIBBON TIEMPO EXCLUSIVO ===== */
.exclusive-timer-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #000;
  padding: 10px 14px;
  z-index: 5;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 3px 12px rgba(251, 191, 36, 0.5),
              0 1px 4px rgba(0, 0, 0, 0.2);
  border-radius: 8px 8px 0 0;
}

.timer-icon {
  font-size: 24px;
  animation: pulse-icon 1.5s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes pulse-icon {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}

.timer-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.timer-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.timer-countdown {
  font-size: 18px;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
}

.card.tiempo-exclusivo {
  border: 3px solid #fbbf24;
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4),
              0 8px 30px rgba(0, 0, 0, 0.2);
  animation: glow-exclusive 2s ease-in-out infinite alternate;
}

@keyframes glow-exclusive {
  from {
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4),
                0 8px 30px rgba(0, 0, 0, 0.2);
  }
  to {
    box-shadow: 0 6px 28px rgba(251, 191, 36, 0.6),
                0 10px 35px rgba(0, 0, 0, 0.25);
  }
}

/* ===== OFERTA POR CANTIDAD ===== */
.card.oferta-cantidad {
  border: 4px solid #f5c800;
  box-shadow: 0 0 16px rgba(245, 200, 0, 0.5),
              0 8px 24px rgba(0, 0, 0, 0.25);
}

.oferta-cantidad-banner {
  position: relative;
  overflow: hidden;
  background: #f5c800;
  color: #111;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  padding: 8px 10px;
  margin: -16px -16px 12px -16px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-shadow: none;
}

.oferta-cantidad-banner::before {
  content: "🏷️";
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}


@media (max-width: 480px) {
  .oferta-cantidad-banner {
    font-size: 10px;
    padding: 7px 10px;
    letter-spacing: 0.3px;
  }

  .oferta-cantidad-banner.has-ribbon {
    padding-left: 68px;
  }

  .oferta-cantidad-banner::before {
    display: none;
  }

  .exclusive-timer-ribbon {
    padding: 8px 12px;
    gap: 8px;
  }
  
  .timer-icon {
    font-size: 20px;
  }
  
  .timer-label {
    font-size: 9px;
    letter-spacing: 0.5px;
  }
  
  .timer-countdown {
    font-size: 14px;
    letter-spacing: 1px;
    padding: 3px 6px;
  }
}

/* ===== Toolbar (buscador + filtros) ===== */
.toolbar{
  position: sticky;
  top: var(--header-h);
  z-index: 15;
  padding: 20px;
  margin-top: calc(var(--header-h) - 14px);
  background: linear-gradient(90deg, #ff3131 0%, #ff914d 100%);
}

.toolbar-row{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}

.search-box{
  height: 42px;
  border-radius: 12px;
  border: 0;
  padding: 0 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  outline: none;
  background: #ffffffea;
  color: #0a0f1c;
  box-shadow: 0 8px 16px rgba(0,0,0,.18);
}

.filters-btn{
  width: 42px; height: 42px;
  border-radius: 12px; border: 0;
  background: #ffffffea;
  font-size: 22px; font-weight: 800; line-height: 1;
  box-shadow: 0 8px 16px rgba(0,0,0,.18);
  cursor: pointer;
}

.filters-pop{
  max-width: 980px;
  margin: 10px auto 0;
  padding: 10px;
  border-radius: 14px;
  background: #ffffffc8;
  color: #0a0f1c;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.seg-group{ display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.cat-group .cat-title{ font-weight: 700; font-size: 13px; opacity: .8; }
.chips{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

.chip{
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  background: #fff;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  user-select: none;
}
.chip input{ accent-color: #ff3131; }

/* ===== FAB de búsqueda plegada ===== */
.search-fab{
  position: fixed;
  left: 10px;
  top: calc(var(--header-h) + 1000008px);
  width: 48px; height: 48px;
  border: 0;
  border-radius: 999px;
  display: grid; place-items: center;
  background: #ffffffdd;
  color: #0a0f1c;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  -webkit-tap-highlight-color: transparent;
}

.search-fab.show{
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.search-fab .ico{
  font-size: 22px;
  line-height: 1;
}

/* opcional: que no tape el carrito en pantallas chicas */
@media (max-width: 480px){
  .search-fab{ left: 10px; top: calc(var(--header-h) + 8px); }
}

.card-oldprice{
  margin-top: 6px;
  color: rgba(10,15,28,.6);
  font-weight: 700;
  font-size: 13px;
  text-decoration: line-through;
}

/* ===== COMBOS ===== */
.combo-section {
  padding: 20px;
  margin-bottom: 20px;
}

/* ===== Sobrescribir estilos de styles.css para el catálogo ===== */
.catalogo-grid .card {
  width: 100%;
  max-width: none; /* ← Importante */
  padding: 16px;
  text-align: left; /* ← Importante */
}

/* ===== Títulos de sección dentro del grid ===== */
.combo-section-title {
  grid-column: 1 / -1 !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  text-align: left !important;
  margin: 0 0 15px 0 !important;
  padding: 6px 12px !important;
  text-shadow: 0 2px 8px rgba(0,0,0,.3) !important;
  border-left: 5px solid #fbbf24 !important;
  background: rgba(0,0,0,0.15) !important;
  border-radius: 6px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: fit-content !important;
}
.products-separator {
  grid-column: 1 / -1 !important;
  margin: 15px 0 10px 0 !important;
  padding: 0 !important;
  border-top: none !important;
  height: auto !important;
  min-height: 0 !important;
}

/* ===== COMBOS ===== */
.catalogo-grid .card.combo-card {
  border: 3px solid #fbbf24;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.6),
              0 8px 20px rgba(0,0,0,.2);
  animation: glow-combo 2s ease-in-out infinite alternate;
  max-width: 900px; /* ← Importante */
  grid-column: 1 / -1; /* Ocupa toda la fila */
  margin: 0 auto; /* Centra el combo */
}

@keyframes glow-combo {
  0% { box-shadow: 0 0 15px rgba(251, 191, 36, 0.4), 0 8px 20px rgba(0,0,0,.2); }
  100% { box-shadow: 0 0 30px rgba(251, 191, 36, 0.8), 0 8px 20px rgba(0,0,0,.2); }
}

.combo-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0a0f1c;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 8px rgba(0,0,0,.25);
}

.combo-desc {
  font-size: 13px;
  color: var(--text-dark);
  opacity: 0.8;
  margin: 8px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.combo-items {
  list-style: none;
  padding: 8px 0;
  margin: 8px 0;
  font-size: 12px;
  color: var(--text-dark);
  border-top: 1px solid rgba(10, 15, 28, 0.1);
  border-bottom: 1px solid rgba(10, 15, 28, 0.1);
}

.combo-items li {
  padding: 3px 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.combo-items li::before {
  content: "✓";
  color: #10b981;
  font-weight: bold;
  font-size: 14px;
}

.combo-discount-tag {
  background: #ef4444;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  margin-left: auto;
}

.card-add.combo-add {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0a0f1c;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(251, 191, 36, .4), inset 0 1px 0 rgba(255,255,255,.65);
}

.card-add.combo-add::after {
  background: rgba(251, 191, 36, 0.6);
}

@media (max-width: 768px) {
  .combo-section-title {
    font-size: 18px;
    padding: 8px 0 8px 12px;
    margin: 0 0 12px 0;
  }
  
  .combo-items {
    font-size: 11px;
    padding: 6px 0;
  }
  
  .combo-badge {
    font-size: 10px;
    padding: 4px 10px;
  }
  
  .products-separator {
    margin: 15px 0 12px 0;
  }
}

/* ===== Modal Selector de Combo ===== */
#combo-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
}

.combo-option-group {
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 12px;
  background: rgba(15, 5, 5, 0.70);
}

.combo-option-group.required {
  border-color: #fbbf24;
  background: rgba(30, 15, 0, 0.75);
}

.combo-option-group h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #fff;
  font-weight: 700;
}

.combo-option-group h4 .badge {
  display: inline-block;
  background: #fbbf24;
  color: #0a0f1c;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: 800;
}

.combo-option-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.10);
  transition: all 0.2s;
}

.combo-option-item:hover {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.15);
}

.combo-option-item input[type="radio"],
.combo-option-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #fbbf24;
}

.combo-option-item label {
  flex: 1;
  cursor: pointer;
  font-size: 13px;
  color: #fff;
  font-weight: 600;
  margin: 0;
}

.combo-option-discount {
  background: #ef4444;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

/* ===== Card de Combo ===== */
.combo-items {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  font-size: 12px;
  color: var(--text-dark);
}

/* ===== Card de Combo ===== */
.combo-items {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  font-size: 12px;
  color: var(--text-dark);
}

/* Grupo de productos */
.combo-item-group {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px dashed rgba(10, 15, 28, 0.15);
}

.combo-item-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Header del grupo */
.combo-group-header {
  font-size: 12px;
  font-weight: 800;
  color: #0a0f1c;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding: 6px 10px;
  background: #fbbf24;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.combo-group-header .group-title {
  flex: 1;
}

.combo-group-discount {
  background: #ef4444;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

/* Items dentro del grupo */
.combo-items li {
  padding: 4px 0 4px 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}

.combo-items li::before {
  content: "✓";
  color: #10b981;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
}

.combo-discount-tag {
  background: #ef4444;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  margin-left: auto;
}

/* ===== Toast Notifications ===== */
/* ===== Toast Notifications ===== */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, #ff3131 0%, #ff914d 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(255, 49, 49, 0.5);
  z-index: 100000 !important;
  min-width: 240px;
  max-width: 340px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease-out;
  white-space: pre-line;
  line-height: 1.3;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.toast::before {
  font-size: 16px;
  margin-right: 6px;
  display: inline-block;
  vertical-align: middle;
}

/* Toast de éxito - más discreto */
.toast.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
}

.toast.success::before {
  content: "✓";
  background: white;
  color: #10b981;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

@media (max-width: 480px) {
  .toast {
    font-size: 13px;
    padding: 10px 18px;
    min-width: 220px;
    max-width: 85vw;
    bottom: 80px;
  }
}

/* ===== Modal de selección de combos ===== */
#combo-selector-modal {
  z-index: 10000 !important;
}

#combo-selector-backdrop {
  z-index: 9999 !important;
}

/* ===== Modal de vendedores ===== */
.seller-modal,
#seller-modal {
  z-index: 10000 !important;
}

.seller-backdrop,
#seller-backdrop {
  z-index: 9999 !important;
}


/* ===== Combo Colapsado/Expandido ===== */
.combo-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.combo-card.collapsed .combo-items,
.combo-card.collapsed .card-price,
.combo-card.collapsed .combo-add {
  display: none;
}

.combo-card.collapsed {
  padding: 12px;
}

.combo-card.collapsed .card-img {
  aspect-ratio: 1/1;
  width: 80px;
  margin: 0;
}

.combo-card.collapsed .card-img img {
  width: 60px;
}


.combo-card.collapsed .card-title {
  font-size: 14px;
  margin-bottom: 4px;
}

.combo-card.collapsed .combo-desc {
  font-size: 11px;
  margin: 0;
  -webkit-line-clamp: 1;
}


.combo-card.collapsed .combo-badge {
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  font-size: 10px;
}

@media (max-width: 768px) {
  .combo-card.collapsed .card-img {
    width: 60px;
  }
  
  .combo-card.collapsed .card-img img {
    width: 50px;
  }
}
/* ===== Imágenes más pequeñas solo para combos ===== */
.combo-card .card-img {
  aspect-ratio: 1/0.5;
}

.combo-card .card-img img {
  width: 100px;
}

/* ===== Layout horizontal para combos en desktop ===== */
@media (min-width: 769px) {
  .combo-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
    padding: 20px;
  }
  
  .combo-card .card-img {
    flex-shrink: 0;
    width: 180px;
    height: auto;
    aspect-ratio: 1/1;
  }
  
  .combo-card .card-img img {
    width: 140px;
  }
  
  .combo-card .combo-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .combo-card .card-title {
    font-size: 22px;
    margin: 0;
  }
  
  .combo-card .combo-desc {
    font-size: 14px;
    margin: 0;
  }
  
  .combo-card .card-price {
    margin: auto 0 0 0;
  }
  
  .combo-card .combo-add {
    margin-top: 12px;
  }
}

/* ===== Botón Vaciar Carrito en el Header del Drawer ===== */
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

#cart-clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  color: #ef4444;
  border: 2px solid #ef4444;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

#cart-clear:hover {
  background: #ef4444;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

#cart-clear:active {
  transform: translateY(0);
}

/* Responsive: en móviles pequeños, solo icono */
@media (max-width: 380px) {
  #cart-clear {
    padding: 8px 10px;
    font-size: 16px;
  }
  
  #cart-clear .btn-text {
    display: none;
  }
}

/* Si el botón está dentro del header junto al título */
.cart-header #cart-clear {
  margin-left: auto;
}