:root{
  --bg:#fff5f8;              /* fondo rosado claro */
  --card:#ffffff;           /* tarjetas blancas */
  --muted:#8b6f78;           /* gris rosado */
  --text:#b95479;            /* texto principal */
  --border:rgba(178, 119, 139, 0.25); /* rosa suave */
  --primary:#e75480;         /* rosa principal */
  --primary2:#f6a5c0; 
  --bar: rgba(164, 48, 92, 0.92);
}

*{box-sizing:border-box}
html,body{margin:0; padding:0; font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial; background:var(--bg); color:var(--text)}
a{color:inherit}

.topbar{
  position:static;
  top:0;
  z-index:5;

  display:flex;
  align-items:center;
  justify-content:center;

  padding:28px 18px;   
  background: var(--bar);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}

.brand{display:flex; align-items:center; justify-content: center;}


.logo img {
  height: 260px;  
  width: auto;
  display: block;
}

.brand h1{font-size:16px; margin:0}
.brand p{margin:2px 0 0 0; font-size:12px}

.navbar{
  position:sticky;
  top:0;             
  z-index:5;
  background: rgba(103, 13, 47, 0.92);
  border-bottom:1px solid var(--border);
}

.navInner{
  max-width:1100px;
  margin:0 auto;
  padding:10px 18px;
  display:flex;
  justify-content:flex-end;
  gap:10px;
}

.container{max-width:1100px; margin:0 auto; padding:18px}

.controls{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; flex-wrap:wrap;
  margin-bottom:16px;
}

.chips{display:flex; gap:8px; flex-wrap:wrap}
.chip{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  cursor:pointer;
  font-size:13px;
}
.chip.active{
  border-color: rgba(245,179,1,.55);
  background:rgba(245,179,1,.12);
}

.search input{
  width:min(360px, 92vw);
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--text);
  outline:none;
}

.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:16px;
}
@media (max-width: 900px){
  .grid{ grid-template-columns: 1fr; }
}


.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  display:flex; flex-direction:column;
  min-height: 270px;
}

.thumb{
  height:120px;
  display:grid; place-items:center;
  background:linear-gradient(135deg, rgba(255,255,255,.06), rgba(245,179,1,.07));
}
.thumb img{max-height:110px; max-width:85%; object-fit:contain; filter: drop-shadow(0 14px 18px rgba(0,0,0,.35));}
.thumb .emoji{font-size:48px; opacity:.95}

.content{padding:12px 12px 14px}
.titleRow{display:flex; justify-content:space-between; gap:10px; align-items:flex-start}
.content h3{margin:0; font-size:15px}
.desc{margin:8px 0 10px; color:var(--muted); font-size:12.5px; line-height:1.35; min-height:34px}
.price{font-weight:700}
.footerRow{display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:10px}

.btn{
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--text);
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
  font-weight:600;
}
.btn:hover{filter:brightness(1.05)}
.btn.primary{
  border-color: rgba(245,179,1,.45);
  background: linear-gradient(180deg, rgba(245,179,1,.95), rgba(255,212,90,.92));
  color:#1a1400;
}
.btn.ghost{background:transparent}
.btn.full{width:100%}

.pill{
  margin-left:8px;
  padding:2px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid var(--border);
  font-size:12px;
}

.muted{color:var(--muted)}
.hint{font-size:12px; margin:10px 0 0}

.drawer{
  position:fixed; top:0; right:0;
  width:min(420px, 92vw);
  height:100vh;
  background:rgba(56, 51, 55, 0.98);
  border-left:1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateX(110%);
  transition: transform .22s ease;
  z-index:20;
  display:flex;
  flex-direction:column;
}
.drawer.open{transform: translateX(0)}
.drawerHeader{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 14px;
  border-bottom:1px solid var(--border);
}
.drawerHeader h2{margin:0; font-size:16px}

.cartItems{padding:12px 14px; overflow:auto; flex:1}
.cartItem{
  border:1px solid var(--border);
  border-radius:16px;
  padding:10px;
  margin-bottom:10px;
  background:rgba(255,255,255,.02);
}
.cartItemTop{display:flex; justify-content:space-between; gap:10px}
.cartItemName{font-weight:700}
.cartItemMeta{color:var(--muted); font-size:12px; margin-top:4px}
.cartItemActions{display:flex; align-items:center; gap:8px; margin-top:10px}
.qty{
  display:flex; align-items:center; gap:8px;
  border:1px solid var(--border);
  padding:6px 8px;
  border-radius:999px;
}
.qty button{
  width:28px; height:28px; border-radius:10px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--text);
  cursor:pointer;
}
.qty span{min-width:16px; text-align:center}

.cartSummary{
  padding:14px;
  border-top:1px solid var(--border);
}
.row{display:flex; justify-content:space-between; align-items:center; margin:8px 0}
.row.total{font-size:16px}

.backdrop{
  position:fixed; inset:0;
  background:rgba(0,0,0,.55);
  z-index:10;
}

.modal{
  position:fixed; inset:0;
  display:none;             
  place-items:center;
  z-index:9999;
  background:rgba(0,0,0,.55);
}

.modal.open{
  display:grid;              
}
.modalCard{
  width:min(520px, 92vw);
  background:rgba(18,20,26,.98);
  border:1px solid var(--border);
  border-radius:22px;
  box-shadow: var(--shadow);
  padding:14px;
  position:relative;
}
.modalHeader{
  display:flex; align-items:center; justify-content:space-between;
  border-bottom:1px solid var(--border);
  padding-bottom:10px;
}
.modalHeader h3{margin:0; font-size:16px}
.field{display:flex; flex-direction:column; gap:8px; margin-top:12px}
.field span{font-size:12px; color:var(--muted)}
.field input, .field textarea{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--text);
  outline:none;
  resize:vertical;
}
.modalActions{margin-top:14px}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}
.siteFooter{
  margin-top: 26px;
  background: rgba(255,255,255,.55);
  border-top: 1px solid rgba(0,0,0,.08);
}

.footerInner{
  max-width:1100px;
  margin:0 auto;
  padding:18px 18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  font-size:12px;
  color: rgba(0,0,0,.55);
}

.footerLink{
  color: rgba(0,0,0,.70);
  text-decoration:none;
  font-weight:600;
}

.footerLink:hover{
  text-decoration:underline;
}

.dot{
  margin: 0 6px;
  color: rgba(0,0,0,.40);
}

/* En teléfono: que se apile bonito */
@media (max-width: 520px){
  .footerInner{
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
  }
}

@media (max-width: 980px){
  .grid{grid-template-columns: repeat(2, minmax(0,1fr));}
}
@media (max-width: 520px){
  .grid{grid-template-columns: 1fr;}
  .actions{gap:8px}
  #orderBtnTop{
    display:inline-flex; 
  }

  .navInner{
    justify-content:center; 
  }
}
@media (max-width: 520px){
  .topbar{
    position: static;
  }
}


#modal .field select,
#modal select {
  width: 100%;
  padding: 14px 44px 14px 16px; 
  border-radius: 18px;
  border: 1px solid rgba(255, 140, 180, 0.25);
  background: rgba(10, 12, 18, 0.55);
  color: #ffd1e2;
  outline: none;


  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  font: inherit;
  line-height: 1.2;

  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffd1e2' d='M7 10l5 5l5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
}

#modal .field select:hover {
  border-color: rgba(255, 140, 180, 0.45);
  background: rgba(10, 12, 18, 0.65);
}

#modal .field select:focus {
  border-color: rgba(255, 140, 180, 0.75);
  box-shadow: 0 0 0 4px rgba(255, 140, 180, 0.18);
}

#modal .field select option {
  background: #0b0d13;
  color: #ffd1e2;
}


#modal .field select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
@media (min-width: 900px){
  .topbar{
    position: static;
    top: 0;
    z-index: 50;
    padding: 8px 12px;   /* más pequeño */
    min-height: 44px;    /* ajusta si querés */
  }
}

/* ===== Product Split Card (imagen izq / info der) ===== */
.card.productSplit{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 220px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* Reemplaza thumb/content en este modo */
.pMedia{
  background: rgba(255,255,255,.4);
  position: relative;
}
.pMedia img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

/* Panel derecho como tu referencia */
.pInfo{
  padding: 16px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  background: rgba(18,20,26,.45); /* gris oscuro */
  color: #fff;
}

.pHead{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items: baseline;
}

.pName{
  margin:0;
  font-size: 18px;
  font-weight: 800;
}

.pPrice{
  font-weight: 900;
  font-size: 16px;
  white-space: nowrap;
}

.pDesc{
  margin:0;
  line-height: 1.35;
  opacity: .92;
  font-size: 13px;
}

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

.pMeta{
  font-size: 12px;
  opacity: .85;
}

@media (max-width: 520px){

  /* Panel derecho más angosto (lo que pediste) */
  .card.productSplit{
    grid-template-columns: 1fr 150px;
    min-height: 240px; 
    align-items: stretch; /* 🔑 */
  }

  /* Izquierda: que NO se vea blanco vacío */
  .pMedia img{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;  
    object-position: center;
    display: block;
  }

  /* Imagen completa sin recorte, pero más grande */
  .pMedia{
    padding: 0;
    display: block;
    position: relative;
    overflow: hidden;      /* 🔑 recorta dentro del marco (no cambia la caja) */
    background: transparent;
  }

  /* Derecha: compacto */
  .pInfo{
    padding: 12px;
    gap: 10px;
    display:flex;
    flex-direction: column;
    justify-content: space-between; /* título arriba, botón abajo */
  }

  .pHead{
    display:flex;
    flex-direction: column;
    align-items:flex-start;
    gap: 6px;
  }

  .pName{ font-size: 16px; line-height: 1.1; }
  .pPrice{ font-size: 14px; }

  /* Botón full dentro del panel */
  .pFoot{
    margin-top: 10px;
  }

  .pAddBtn{
    width: 100%;
    height: 44px;
    border-radius: 14px;
  }
}



.card.productSplit{
  border: 2px solid rgba(231, 84, 128, 0.55); /* fucsia */
  box-shadow:
    0 10px 30px rgba(21, 20, 21, 0.149),
    inset 0 0 0 1px rgba(239, 4, 196, 0.982);
}

/* efecto sutil al pasar el dedo/mouse */
.card.productSplit:hover{
  border-color: rgba(231, 84, 128, 0.9);
}

.btn.comboBtn{
  border: 1.5px rgba(255, 209, 226, 0.55);
  background: linear-gradient(180deg, rgba(221, 50, 102, 0.752), rgba(185, 6, 66, 0.735));
  color: #dfd0d5;
  font-weight: 800;
  letter-spacing: .2px;
  box-shadow: 0 8px 20px rgba(231, 84, 128, 0.15);
  backdrop-filter: blur(6px);
}

.btn.comboBtn:hover{
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn.comboBtn:active{
  transform: translateY(0);
  filter: brightness(1.02);
}

/* En móvil, que se vea “doble botón” más ordenado */
@media (max-width: 520px){
  .pFoot{
    flex-direction: column;
    align-items: stretch;
  }
  .pMeta{ display:none; } /* opcional: quita “En carrito” para dar espacio */
  .btn.comboBtn{
    width: 100%;
  }
}

/* ===== Banner "Cerrado" (modo solo menú) ===== */
.closedBanner{
  max-width: 1100px;
  margin: 12px auto 0;
  padding: 0 18px;
}

.closedCard{
  border: 2px solid rgba(231, 84, 128, 0.55); /* match card.productSplit */
  background: linear-gradient(
    180deg,
    rgba(255, 245, 248, 0.95),
    rgba(255, 255, 255, 0.65)
  );
  border-radius: 18px;
  padding: 14px 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.closedCard strong{
  color: rgba(103, 13, 47, 0.92); /* parecido al navbar */
  font-size: 14px;
  letter-spacing: .2px;
}

.closedCard .muted{
  color: rgba(0,0,0,.55); /* como footer */
  font-size: 12.5px;
  line-height: 1.35;
}

/* En móvil: que no se vea apretado */
@media (max-width: 520px){
  .closedBanner{ padding: 0 12px; }
  .closedCard{ padding: 12px; border-radius: 16px; }
}

.category-message{
  margin: 10px 0 14px;
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(231, 84, 128, 0.08);
  border: 1px dashed rgba(231, 84, 128, 0.35);
}

.category-message-title{
  font-weight: 800;
  margin-bottom: 8px;
}

.category-message-text{
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-line; /* respeta \n del json */
  margin-bottom: 12px;
}

.waBtn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

/* ===== Lightbox de Imagen ===== */
.imgModal{
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 10000;
  background: rgba(0,0,0,.70);
  padding: 14px;
}

.imgModal.open{
  display: grid;
}

.imgModalCard{
  width: min(980px, 96vw);
  max-height: 92vh;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 18px 60px rgba(0,0,0,.40);
  background: rgba(18,20,26,.92);
}

.imgModalCard img{
  width: 100%;
  height: 100%;
  max-height: 92vh;
  object-fit: contain; /* ✅ NO recorta, muestra completa */
  display: block;
  background: rgba(0,0,0,.35);
}

.imgClose{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.35);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.imgClose:hover{ filter: brightness(1.08); }

/* ===== Drink Picker ===== */
.drinkModal{
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 10001;
  background: rgba(0,0,0,.65);
  padding: 14px;
}
.drinkModal.open{ display:grid; }

.drinkModalCard{
  width: min(520px, 92vw);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(18,20,26,.96);
  box-shadow: 0 18px 60px rgba(0,0,0,.40);
  padding: 14px;
  color: #ffd1e2;
}

.drinkModalHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 140, 180, 0.18);
}

.drinkOptions{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
@media (max-width: 420px){
  .drinkOptions{ grid-template-columns: 1fr; }
}

.drinkOptBtn{
  border-radius: 16px;
  padding: 12px;
  border: 1px solid rgba(255, 140, 180, 0.22);
  background: rgba(255,255,255,.05);
  color: #ffd1e2;
  cursor: pointer;
  font-weight: 800;
}
.drinkOptBtn:hover{ filter: brightness(1.06); }

/* SOLO la categoría Promos Dia del Cariño */
#categoryChips button[data-category="Promos Dia del Cariño"]{
  border:2px solid var(--primary);
  box-shadow: 0 10px 22px rgba(0,0,0,.14);
  transform: translateY(-1px);
}
#categoryChips button[data-category="Promos Dia del Cariño"]::before{
  content:"💘 ";
}

/* ===== Tipo de orden (activo) ===== */

#btnDineIn.active {
  background: #c04a73;
  border-color: #c04a73;
  color: white;
}

#btnTakeaway.active {
  background: #c04a73;
  border-color: #c04a73;
  color: white;
}

#btnPickup.active {
  background: #c04a73;
  border-color: #c04a73;
  color: white;
}