:root{
  --bg:#fbfbfe;
  --card:#ffffff;
  --ink:#141826;
  --muted:#667085;
  --line:rgba(20,24,38,.10);
  --shadow:0 18px 60px rgba(17,24,39,.10);

  --p1:#ffd6e7;   /* rosa pastel */
  --p2:#d9f2ff;   /* celeste pastel */
  --p3:#e7f7e7;   /* verde pastel */
  --acc:#7c5cff;  /* acento */
  --acc2:#ff7aa2; /* acento 2 */
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--ink);
  background:radial-gradient(1200px 600px at 20% 10%, var(--p2), transparent 60%),
             radial-gradient(900px 500px at 90% 0%, var(--p1), transparent 55%),
             radial-gradient(900px 600px at 10% 95%, var(--p3), transparent 55%),
             var(--bg);
}

a{color:inherit; text-decoration:none}
.container{max-width:1140px;margin:0 auto;padding:18px}
.nav{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background:rgba(255,255,255,.70);
  border-bottom:1px solid var(--line);
}
.nav-inner{display:flex; align-items:center; gap:12px; justify-content:space-between}
.brand{display:flex;align-items:center;gap:10px;font-weight:800}
.badge{
  font-size:12px; padding:4px 10px; border-radius:999px;
  background:rgba(124,92,255,.12); border:1px solid rgba(124,92,255,.18); color:var(--acc);
}
.search{
  flex:1; max-width:520px; display:flex; gap:10px; align-items:center;
  border:1px solid var(--line); border-radius:14px; padding:10px 12px;
  background:rgba(255,255,255,.90);
}
.search input{
  width:100%; border:0; outline:none; background:transparent; font-size:14px;
}
.btn{
  border:0; cursor:pointer;
  border-radius:14px;
  padding:10px 14px;
  font-weight:700;
  background:var(--acc);
  color:white;
  box-shadow:0 10px 20px rgba(124,92,255,.18);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:hover{transform: translateY(-1px); box-shadow:0 14px 26px rgba(124,92,255,.22)}
.btn:active{transform: translateY(0px); opacity:.95}
.btn.secondary{
  background:#fff; color:var(--ink);
  border:1px solid var(--line);
  box-shadow:none;
}
.btn.danger{background:#ff3b5c}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px; border-radius:999px;
  background:rgba(255,255,255,.88);
  border:1px solid var(--line);
}
.grid{
  display:grid; gap:14px;
}
.grid.products{grid-template-columns: repeat(4, 1fr)}
@media (max-width: 980px){ .grid.products{grid-template-columns: repeat(3, 1fr)} }
@media (max-width: 740px){
  .nav-inner{flex-wrap:wrap}
  .search{order:3; max-width:none; width:100%}
  .grid.products{grid-template-columns: repeat(2, 1fr)}
}
@media (max-width: 420px){
  .grid.products{grid-template-columns: 1fr}
}

.card{
  background:rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card .p{padding:14px}
.hero{
  display:grid; grid-template-columns: 1.3fr .7fr; gap:14px;
  align-items:stretch; margin-top:14px;
}
@media (max-width: 860px){ .hero{grid-template-columns:1fr} }

.h-title{font-size:34px;line-height:1.05;margin:0}
.h-sub{color:var(--muted);margin:10px 0 0}
.soft{
  background:linear-gradient(135deg, rgba(255,214,231,.65), rgba(217,242,255,.65));
  border:1px solid var(--line);
  border-radius:18px;
}
.product{
  display:flex; flex-direction:column; height:100%;
  transition: transform .16s ease, box-shadow .16s ease;
}
.product:hover{transform: translateY(-2px)}
.thumb{
  width:100%; aspect-ratio: 1/1;
  background: linear-gradient(135deg, rgba(124,92,255,.08), rgba(255,122,162,.10));
  display:flex; align-items:center; justify-content:center;
}
.thumb img{width:100%; height:100%; object-fit:cover}
.pname{font-weight:800; margin:0; font-size:15px}
.pmeta{color:var(--muted); font-size:12px; margin-top:6px}
.price{font-weight:900; font-size:16px}
.row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.kbd{
  font-size:12px; color:var(--muted);
  border:1px solid var(--line); padding:2px 8px; border-radius:999px;
  background:#fff;
}
.footer{color:var(--muted); padding:22px 0 40px}

/* Modal */
.modal{
  position:fixed; inset:0; display:none; align-items:center; justify-content:center;
  background:rgba(15,23,42,.35); z-index:80; padding:18px;
}
.modal.open{display:flex}
.modal-box{
  width:min(560px, 100%);
  background:rgba(255,255,255,.96);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 30px 90px rgba(0,0,0,.20);
  overflow:hidden;
  animation: pop .16s ease-out;
}
@keyframes pop{from{transform:translateY(6px) scale(.98);opacity:.6}to{transform:none;opacity:1}}
.modal-h{padding:14px 14px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:center}
.modal-b{padding:14px}
.field{display:flex; flex-direction:column; gap:6px; margin:10px 0}
.field input, .field textarea, .field select{
  border:1px solid var(--line); border-radius:14px; padding:10px 12px; outline:none;
  background:#fff;
}
.table{
  width:100%; border-collapse:collapse; font-size:14px;
}
.table th,.table td{padding:10px 8px; border-bottom:1px solid var(--line); vertical-align:top}
.table th{font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.06em}
.small{font-size:12px; color:var(--muted)}
.toast{
  position:fixed; right:16px; bottom:16px; z-index:200;
  background:rgba(255,255,255,.95); border:1px solid var(--line);
  box-shadow:0 18px 60px rgba(0,0,0,.12);
  padding:10px 12px; border-radius:14px; display:none; max-width:320px;
}
.toast.show{display:block; animation: pop .14s ease-out}
