:root{
  --bg:#ffffff;
  --ink:#161616;
  --muted:#6b7280;
  --brand:#c86a2a;      /* caramelo */
  --brand2:#5c8e86;     /* verde salvia */
  --brand3:#f0d7c9;     /* crema */
  --line:#e6e6e6;
  --card:#ffffff;
  --shadow:0 16px 40px rgba(0,0,0,.08);
  --radius:22px;
  --radius2:16px;
  --ease:cubic-bezier(.2,.85,.2,1);
  font-synthesis-weight:none;
}

*{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(900px 420px at 20% -10%, rgba(200,106,42,.10), transparent 60%),
    radial-gradient(800px 420px at 95% 0%, rgba(92,142,134,.14), transparent 55%),
    linear-gradient(180deg,#fff, #fff);
}

a{color:inherit;text-decoration:none}
.container{width:min(1120px, 92vw); margin:0 auto}
.btn{
  border:0;
  background:var(--ink);
  color:#fff;
  padding:12px 16px;
  border-radius:999px;
  cursor:pointer;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), opacity .15s var(--ease);
  box-shadow: 0 10px 25px rgba(0,0,0,.14);
  font-weight:700;
}
.btn:hover{transform: translateY(-1px)}
.btn:active{transform: translateY(0); opacity:.9}
.btn.secondary{
  background:transparent;
  color:var(--ink);
  border:1px solid var(--line);
  box-shadow:none;
}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
  color:var(--muted);
  font-weight:600;
  font-size:13px;
}

.header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.7);
  backdrop-filter: blur(12px);
  border-bottom:1px solid rgba(0,0,0,.06);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 0;
}
.brand{
  display:flex; align-items:center; gap:12px;
}
.brand-logo{
  width:44px; height:44px; border-radius:14px;
  background:
    radial-gradient(60% 80% at 30% 30%, rgba(240,215,201,1), rgba(240,215,201,0) 60%),
    linear-gradient(135deg, rgba(200,106,42,.95), rgba(92,142,134,.95));
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}
.brand-logo::after{
  content:"";
  position:absolute; inset:-30%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), transparent 45%);
  transform: rotate(20deg);
}
.brand-title{
  display:flex; flex-direction:column; line-height:1.05;
}
.brand-title strong{font-size:16px; letter-spacing:.2px}
.brand-title span{font-size:12px; color:var(--muted); font-weight:600}
.header-actions{display:flex; align-items:center; gap:10px}

.hero{
  padding:28px 0 16px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:18px;
  align-items:stretch;
}
.hero-card{
  background:rgba(255,255,255,.85);
  border:1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}
.hero-left{padding:22px 20px}
.hero-left h1{
  margin:10px 0 10px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height:1.05;
  letter-spacing:-.6px;
}
.hero-left p{
  margin:0 0 14px;
  color:var(--muted);
  font-weight:600;
  line-height:1.4;
}
.hero-actions{display:flex; flex-wrap:wrap; gap:10px; margin-top:12px}
.hero-right{
  padding:0;
}
.photo{
  height:100%;
  min-height: 240px;
  background:
    radial-gradient(700px 320px at 30% 20%, rgba(240,215,201,.9), transparent 55%),
    radial-gradient(700px 360px at 90% 30%, rgba(92,142,134,.25), transparent 60%),
    radial-gradient(700px 360px at 70% 95%, rgba(200,106,42,.20), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,1), rgba(255,255,255,.6));
  position:relative;
}
.photo::before{
  content:"";
  position:absolute; inset:16px;
  border-radius: calc(var(--radius) - 8px);
  border:1px dashed rgba(0,0,0,.08);
}
.photo .stamp{
  position:absolute; left:18px; bottom:18px;
  background:rgba(255,255,255,.85);
  border:1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding:12px 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
  width:min(320px, calc(100% - 36px));
}
.stamp strong{display:block; font-size:14px}
.stamp span{display:block; font-size:12px; color:var(--muted); margin-top:4px; font-weight:600}

.section{
  padding: 14px 0 80px;
}
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:12px;
  margin: 8px 0 14px;
}
.section-head h2{margin:0; font-size:18px; letter-spacing:-.2px}
.search{
  display:flex; align-items:center; gap:10px;
  background:rgba(255,255,255,.85);
  border:1px solid rgba(0,0,0,.06);
  border-radius:999px;
  padding:10px 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
}
.search input{
  border:0; outline:0; background:transparent;
  font-size:14px; width: 220px; max-width: 46vw;
}
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.card{
  background:rgba(255,255,255,.9);
  border:1px solid rgba(0,0,0,.06);
  border-radius: var(--radius2);
  box-shadow: 0 14px 32px rgba(0,0,0,.08);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height: 250px;
}
.card .img{
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(60% 70% at 30% 30%, rgba(240,215,201,.9), transparent 60%),
    radial-gradient(60% 70% at 70% 40%, rgba(200,106,42,.22), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,1), rgba(255,255,255,.5));
  position:relative;
}
.card .img img{
  width:100%; height:100%; object-fit:cover; display:block;
}
.card .content{padding:12px 12px 14px; display:flex; flex-direction:column; gap:8px; flex:1}
.card h3{margin:0; font-size:15px}
.card p{margin:0; color:var(--muted); font-size:13px; line-height:1.35; font-weight:600; min-height: 36px}
.card .meta{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:auto}
.price{font-weight:900; letter-spacing:.1px}
.stock{font-size:12px; font-weight:700; color:var(--muted)}
.stock.ok{color: #0f766e}
.stock.no{color: #b91c1c}
.card .actions{display:flex; gap:8px; margin-top:4px}
.qty{
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid rgba(0,0,0,.10);
  border-radius:999px;
  padding:8px 10px;
}
.qty button{
  width:28px; height:28px; border-radius:999px;
  border:0; background:rgba(0,0,0,.08);
  cursor:pointer; font-weight:900;
}
.qty span{min-width:22px; text-align:center; font-weight:800}
.small{font-size:12px; color:var(--muted); font-weight:600}

/* Cart drawer */
.cart-fab{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:60;
  display:flex; align-items:center; gap:10px;
  background:var(--ink);
  color:#fff;
  padding:12px 14px;
  border-radius:999px;
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
  cursor:pointer;
}
.cart-fab .count{
  width:24px; height:24px; border-radius:999px;
  background:rgba(255,255,255,.15);
  display:grid; place-items:center;
  font-weight:900;
  font-size:12px;
}
.drawer{
  position:fixed; inset:0;
  display:none;
  background:rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
  z-index:80;
}
.drawer.open{display:block}
.drawer-panel{
  position:absolute; right:0; top:0; bottom:0;
  width:min(420px, 92vw);
  background:#fff;
  border-left:1px solid rgba(0,0,0,.08);
  box-shadow: -20px 0 60px rgba(0,0,0,.18);
  padding:14px;
  display:flex; flex-direction:column;
}
.drawer-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:6px 4px 10px;
}
.drawer-head strong{font-size:15px}
.drawer-close{border:0; background:transparent; font-size:22px; cursor:pointer}
.cart-list{display:flex; flex-direction:column; gap:10px; padding:8px 4px; overflow:auto}
.cart-item{
  display:flex; gap:10px; align-items:flex-start;
  border:1px solid rgba(0,0,0,.06);
  border-radius:16px;
  padding:10px;
}
.cart-item .thumb{
  width:64px; height:64px; border-radius:14px;
  background: linear-gradient(135deg, rgba(200,106,42,.18), rgba(92,142,134,.18));
  border:1px solid rgba(0,0,0,.06);
  overflow:hidden;
}
.cart-item .thumb img{width:100%; height:100%; object-fit:cover}
.cart-item .info{flex:1}
.cart-item .info b{display:block; font-size:13px}
.cart-item .info span{display:block; font-size:12px; color:var(--muted); font-weight:600; margin-top:4px}
.cart-item .row{display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:8px}
.cart-item .remove{
  border:0; background:transparent; color:#b91c1c; font-weight:800; cursor:pointer;
}
.cart-footer{
  margin-top:auto;
  border-top:1px solid rgba(0,0,0,.08);
  padding-top:12px;
}
.total{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:10px;
  font-weight:900;
}
.form{
  display:grid; gap:10px;
}
.field label{display:block; font-size:12px; color:var(--muted); font-weight:800; margin:0 0 6px 4px}
.field input, .field textarea{
  width:100%;
  border:1px solid rgba(0,0,0,.10);
  border-radius:14px;
  padding:12px 12px;
  outline:none;
  font-size:14px;
}
.field textarea{min-height:80px; resize:vertical}
.note{
  font-size:12px;
  color:var(--muted);
  font-weight:600;
  margin-top:8px;
  line-height:1.35;
}

/* Responsive */
@media (max-width: 900px){
  .hero-grid{grid-template-columns:1fr}
  .grid{grid-template-columns: repeat(2, 1fr)}
}
@media (max-width: 520px){
  .grid{grid-template-columns: 1fr}
  .header-actions .btn.secondary{display:none}
  .search input{width: 160px}
}
