:root{
  --bg:#120b0b;
  --panel:#1b1010;
  --card:#241515;
  --line:#3a2323;

  --text:#f3eeee;
  --muted:#cdbcbc;

  --red:#e03434;
  --green:#2dbb66;

  --shadow: 0 14px 35px rgba(0,0,0,.35);
  --radius: 18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background: radial-gradient(1200px 700px at 20% -10%, rgba(224,52,52,.18), transparent 60%),
              radial-gradient(900px 600px at 100% 0%, rgba(45,187,102,.10), transparent 55%),
              var(--bg);
  color:var(--text);
}

.top{
  padding:16px 14px 12px;
  position:sticky; top:0;
  backdrop-filter: blur(8px);
  background: rgba(18,11,11,.86);
  border-bottom:1px solid rgba(255,255,255,.06);
  z-index:10;
}

.brand{display:flex; gap:10px; align-items:center;}
.logo{
  width:44px; height:44px; border-radius:14px;
  background: linear-gradient(135deg, rgba(224,52,52,.25), rgba(45,187,102,.18));
  border:1px solid rgba(255,255,255,.10);
  display:grid; place-items:center;
}
.logoDot{
  width:14px; height:14px; border-radius:999px;
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(224,52,52,.15);
}
.bizName{font-weight:900; letter-spacing:.3px; font-size:18px;}
.bizNote{color:var(--muted); font-size:12.5px; margin-top:2px}

.actions{display:flex; gap:10px; margin-top:10px;}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:var(--text);
  text-decoration:none;
  font-weight:800;
  cursor:pointer;
}
.btn.primary{
  background: linear-gradient(135deg, rgba(224,52,52,.95), rgba(224,52,52,.75));
  border-color: rgba(224,52,52,.25);
}
.btn.danger{
  background: rgba(224,52,52,.12);
  border-color: rgba(224,52,52,.30);
  color: var(--text);
}
.btn.w100{width:100%}

.searchRow{margin-top:10px}
.search{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:var(--text);
  outline:none;
}
.search::placeholder{color: rgba(255,255,255,.45)}

.chips{
  display:flex; gap:8px; overflow:auto;
  padding-top:10px;
  scrollbar-width:none;
}
.chips::-webkit-scrollbar{display:none}
.chip{
  flex:0 0 auto;
  padding:9px 11px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color:var(--text);
  font-weight:800;
  font-size:13px;
  cursor:pointer;
  white-space:nowrap;
}
.chip.active{
  background: rgba(45,187,102,.18);
  border-color: rgba(45,187,102,.40);
}

.app{padding:14px}

.section{
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding:12px;
  margin-bottom:12px;
}
.section h2{
  margin:0 0 10px;
  display:flex; align-items:baseline; justify-content:space-between;
  gap:10px;
}
.section h2 span{
  font-size:15px;
  font-weight:950;
  color: var(--red);
  letter-spacing:.4px;
}
.section h2 small{
  color:var(--muted);
  font-weight:700;
  font-size:12px;
}

.grid{display:flex; flex-direction:column; gap:10px;}

.item{
  background: var(--card);
  border:1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding:12px;
  position:relative;
  box-shadow: 0 10px 20px rgba(0,0,0,.18);
  cursor:pointer;
}
.item .badge{
  position: absolute;
  bottom: 10px;      /* abajo */
  right: 10px;       /* derecha */
  display: none;

  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(224,52,52,.18);
  border: 1px solid rgba(224,52,52,.35);
  color: var(--text);
  font-weight: 900;
  font-size: 12px;
}


  background: rgba(224,52,52,.18);
  border:1px solid rgba(224,52,52,.35);
  color: var(--text);
  padding:6px 8px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  display:none;
}
.item.soldout{opacity:.65}
.item.soldout .badge{display:inline-flex}

.row{display:flex; justify-content:space-between; gap:12px; align-items:flex-start}
.name{font-weight:950; font-size:14px}
.desc{color:var(--muted); font-size:12.5px; margin-top:4px; line-height:1.25}
.price{font-weight:950; color: var(--red); white-space:nowrap}

.tag{display:flex; align-items:center; gap:8px; margin-top:10px; color:var(--muted); font-weight:800; font-size:12px}
.dot{width:9px; height:9px; border-radius:50%; background: var(--green)}
.dot.out{background: var(--red)}
.star{
  margin-left:auto;
  padding:4px 8px;
  border-radius:999px;
  background: rgba(45,187,102,.14);
  border:1px solid rgba(45,187,102,.32);
  color: var(--text);
  font-weight:950;
}

.secretCorner{
  position:fixed;
  right:10px; bottom:10px;
  width:44px; height:44px;
  background: transparent;
  border:0;
  z-index:20;
}

/* Modal */
.modal{
  position:fixed; inset:0;
  background: rgba(0,0,0,.55);
  display:none;
  padding:16px;
  z-index:30;
}
.modal.open{display:flex; align-items:flex-end; justify-content:center;}
.modalCard{
  width:min(680px, 100%);
  background: var(--panel);
  border:1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding:14px;
}
.modalHead{display:flex; align-items:flex-start; justify-content:space-between; gap:10px}
.mTitle{color:var(--muted); font-weight:800; font-size:12px}
.mName{font-weight:950; font-size:18px; margin-top:2px}
.xBtn{
  width:40px; height:40px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
}
.metaRow{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px}
.pill2{
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  font-weight:900;
  font-size:12px;
}
.mDesc{margin-top:10px; color:var(--text); line-height:1.35}

.photos{
  margin-top:12px;
  display:flex;
  gap:10px;
  overflow:auto;
  padding-bottom:6px;
  scrollbar-width:none;
}
.photos::-webkit-scrollbar{display:none}
.ph{
  flex: 0 0 auto;
  width: 210px;
  height: 140px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  overflow:hidden;
  display:grid;
  place-items:center;
  color: rgba(255,255,255,.55);
  font-weight:800;
  font-size:12px;
}
.ph img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Admin */
.admin{
  position:fixed; inset:0;
  background: rgba(0,0,0,.55);
  display:none;
  padding:16px;
  z-index:40;
}
.admin.open{display:flex; align-items:flex-end; justify-content:center;}
.adminCard{
  width:min(720px, 100%);
  background: var(--panel);
  border:1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding:14px;
}
.adminHead{display:flex; justify-content:space-between; align-items:center;}
.adminTitle{font-weight:950; font-size:16px}
.hint{color:var(--muted); font-weight:700; font-size:12.5px; margin:10px 0}
.field{
  width:100%;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color:var(--text);
  outline:none;
}
.adminActions{display:flex; gap:10px; margin-bottom:10px;}
.adminListWrap{max-height:55vh; overflow:auto; padding-right:2px;}
.adminList{display:flex; flex-direction:column; gap:10px;}

.prodRow{
  background: var(--card);
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  padding:12px;
  display:flex;
  gap:10px;
  justify-content:space-between;
  align-items:center;
}
.prodRow .left{min-width:0}
.prodRow b{display:block; font-weight:950}
.prodRow span{display:block; color:var(--muted); font-weight:700; font-size:12px; margin-top:2px}
.tog{display:flex; gap:8px; align-items:center}
.field.mini{width:90px}

.toast{
  margin-top:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.35);
  font-weight:900;
}
