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

*{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:sticky; top:0; z-index:5;
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
  padding:14px 18px;
  background:rgba(11,12,16,.85);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}

.brand{display:flex; align-items:center; gap:12px}
.logo{
  width:44px; height:44px; display:grid; place-items:center;
  border-radius:14px;
  background:linear-gradient(135deg, rgba(245,179,1,.25), rgba(255,212,90,.10));
  border:1px solid var(--border);
}
.brand h1{font-size:16px; margin:0}
.brand p{margin:2px 0 0 0; font-size:12px}

.actions{display:flex; align-items:center; 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(4, minmax(0,1fr));
  gap:14px;
}

.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(18,20,26,.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}

@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:none;}
}
