/* =========================================================
   El Pan Divino · Prototipo navegable
   HTML + CSS puro. Sin frameworks, sin JS, sin imágenes.
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root{
  --bg:#FBF5ED;
  --surface:#FFFFFF;
  --surface-2:#F4EADD;
  --ink:#2A1B12;
  --muted:#7C6A5C;
  --line:#EADCCB;
  --accent:#B4451F;
  --accent-ink:#8D3415;
  --accent-soft:#FBE6D8;
  --ok:#2F6B4F;
  --ok-soft:#E3F0E8;
  --warm-soft:#FAEFD9;
  --radius:16px;
  --sans:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --serif:Georgia,"Times New Roman",serif;
  --ease:cubic-bezier(.2,.7,.3,1);
}

/* ---------- 2. Reset ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:#EFE4D6;
  background-image:radial-gradient(900px 520px at 50% -10%,#F8EFE4,transparent 70%);
  color:var(--ink);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
h1,h2,h3,p,ul,figure{margin:0}
ul{list-style:none;padding:0}
a{color:inherit}
button{font:inherit;color:inherit}
svg{display:block}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}

.sprite{position:absolute;width:0;height:0;overflow:hidden}

/* Icono base: los <symbol> heredan trazo y color */
.i{
  width:22px;height:22px;flex:none;
  fill:none;stroke:currentColor;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round;
}

/* ---------- 3. Shell + navegación entre pantallas ---------- */
.app{
  width:100%;
  max-width:430px;
  margin-inline:auto;
  min-height:100vh;
  min-height:100dvh;
  background:var(--bg);
  display:flex;
  flex-direction:column;
}
main{display:flex;flex-direction:column;flex:1}

.screen{
  display:none;
  flex-direction:column;
  min-height:100vh;
  min-height:100dvh;
}
.screen:target{display:flex}

/* Pantalla inicial cuando no hay hash */
@supports selector(:has(*)){
  body:not(:has(.screen:target)) #splash{display:flex}
}

/* Las pantallas con barra inferior reservan su espacio */
.screen[data-tab]{padding-bottom:78px}

/* ---------- 4. Barra superior ---------- */
.topbar{
  position:sticky;
  top:0;
  z-index:10;
  display:flex;
  align-items:center;
  gap:8px;
  min-height:56px;
  padding:8px 12px;
  padding-top:max(8px,env(safe-area-inset-top));
  background:rgba(251,245,237,.92);
  border-bottom:1px solid var(--line);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}
.topbar--plain{background:transparent;border-bottom:0;-webkit-backdrop-filter:none;backdrop-filter:none}

.topbar__title{
  flex:1;
  min-width:0;
  font-size:16px;
  font-weight:600;
  letter-spacing:-.01em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.iconbtn{
  position:relative;
  display:grid;
  place-items:center;
  width:40px;height:40px;
  border-radius:12px;
  color:var(--ink);
  text-decoration:none;
  -webkit-tap-highlight-color:transparent;
}
.iconbtn:active{background:var(--surface-2)}

.badge{
  position:absolute;
  top:2px;right:0;
  min-width:17px;height:17px;
  padding:0 4px;
  display:grid;place-items:center;
  border-radius:999px;
  background:var(--accent);
  color:#fff;
  font-size:10px;
  font-weight:700;
  line-height:1;
  border:2px solid var(--bg);
}

/* ---------- 5. Marca ---------- */
.brand{display:flex;align-items:center;gap:8px;min-width:0}
.brand__mark{width:30px;height:30px;color:var(--accent);fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.brand__name{
  font-family:var(--serif);
  font-size:15px;
  font-weight:400;
  letter-spacing:.14em;
  text-transform:uppercase;
  white-space:nowrap;
}
.brand__tag{margin-top:6px;font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}

.brand--sm{flex:1}
.brand--md,.brand--xl{flex-direction:column;gap:6px;text-align:center}
.brand--md .brand__mark{width:46px;height:46px}
.brand--md .brand__name{font-size:19px}
.brand--xl .brand__mark{width:68px;height:68px}
.brand--xl .brand__name{font-size:28px;letter-spacing:.13em}
.brand--xl .brand__tag{font-size:11.5px}

/* ---------- 6. Botones ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:52px;
  padding:0 20px;
  border:0;
  border-radius:14px;
  font-size:15px;
  font-weight:700;
  text-decoration:none;
  cursor:pointer;
  transition:transform .15s var(--ease),filter .15s var(--ease);
  -webkit-tap-highlight-color:transparent;
}
.btn:active{transform:scale(.985)}
.btn--primary{background:var(--accent);color:#fff;box-shadow:0 10px 22px -12px rgba(180,69,31,.85)}
.btn--ghost{background:var(--surface);color:var(--ink);border:1px solid var(--line)}
.btn--danger{background:#FBEAE6;color:#A2352A;border:1px solid #F2D5CE}
.btn--block{width:100%}
.btn .i{width:19px;height:19px}

/* ---------- 7. Formularios ---------- */
.form{display:grid;gap:12px}
.field{display:grid;gap:6px}
.field__label{
  font-size:11px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--muted);
}
.input{
  width:100%;
  height:50px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--surface);
  color:var(--ink);
  font:inherit;
  font-size:15px;
}
.input::placeholder{color:#A99A8C}
.input:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(180,69,31,.12);
}

.group{border:0;padding:0;margin:0;min-width:0;display:grid;gap:8px}
.group legend{padding:0}

.chips{display:flex;gap:8px;flex-wrap:wrap}
.chips input{
  position:absolute;
  width:1px;height:1px;
  opacity:0;
  pointer-events:none;
}
.chips label{
  flex:1;
  min-width:0;
  display:grid;
  place-items:center;
  height:46px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--surface);
  font-size:13.5px;
  font-weight:600;
  color:var(--muted);
  text-align:center;
  cursor:pointer;
  transition:background .15s,border-color .15s,color .15s;
}
.chips input:checked + label{
  border-color:var(--accent);
  background:var(--accent-soft);
  color:var(--accent-ink);
  box-shadow:inset 0 0 0 1px var(--accent);
}
.chips input:focus-visible + label{outline:2px solid var(--accent);outline-offset:2px}

/* ---------- 8. Estructura de página ---------- */
.page{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:16px 16px 28px;
}
.page--cta{padding-bottom:104px}
.page--center{justify-content:center;align-items:center;text-align:center;padding:32px 24px;gap:14px}
.page__lead{
  font-size:11.5px;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:var(--muted);
  font-weight:600;
}
.section-title{
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--muted);
  margin-top:2px;
}
.note{font-size:12px;color:var(--muted);text-align:center}
.footnote{font-size:11px;color:#A99A8C;text-align:center;margin-top:2px}

/* ---------- 9. Splash ---------- */
.screen--splash{background:
  radial-gradient(600px 380px at 50% 6%,#FFF9F1,transparent 70%),
  var(--bg);
}
.splash{
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:32px;
  padding:calc(36px + env(safe-area-inset-top)) 28px calc(28px + env(safe-area-inset-bottom));
  text-align:center;
}
.splash .brand{margin-top:12vh}
.splash__bottom{display:grid;gap:16px;justify-items:center}
.splash__hint{font-size:11.5px;letter-spacing:.04em;color:var(--muted)}
.loader{
  width:132px;height:4px;
  border-radius:999px;
  background:var(--surface-2);
  overflow:hidden;
}
.loader span{
  display:block;
  width:42%;height:100%;
  border-radius:999px;
  background:var(--accent);
  animation:slide 1.6s var(--ease) infinite;
}
@keyframes slide{
  0%{transform:translateX(-110%)}
  100%{transform:translateX(340%)}
}

/* ---------- 10. Login ---------- */
.page--auth{gap:20px;padding-top:8px}
.auth__head{display:grid;gap:6px;text-align:center}
.auth__title{font-family:var(--serif);font-size:24px;font-weight:400;letter-spacing:.01em}
.auth__sub{font-size:13.5px;color:var(--muted);max-width:30ch;margin-inline:auto}

.divider{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.12em}
.divider::before,.divider::after{content:"";flex:1;height:1px;background:var(--line)}

.social{display:grid;gap:10px}
.btn--social{justify-content:flex-start;gap:12px;font-weight:600;font-size:14px}
.social__mark{
  width:24px;height:24px;
  display:grid;place-items:center;
  border:1px solid var(--line);
  border-radius:50%;
  font-family:var(--serif);
  font-size:13px;
  font-weight:700;
  flex:none;
}

.register{border-top:1px solid var(--line);padding-top:14px}
.register__summary{
  list-style:none;
  text-align:center;
  font-size:13.5px;
  color:var(--muted);
  cursor:pointer;
  padding:6px;
}
.register__summary::-webkit-details-marker{display:none}
.register__summary strong{color:var(--accent);font-weight:700}
.register__form{margin-top:12px}
.register[open] .register__summary strong{text-decoration:underline}

/* ---------- 11. Inicio ---------- */
.search{
  display:flex;
  align-items:center;
  gap:10px;
  height:48px;
  padding:0 14px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:14px;
}
.search__icon{width:19px;height:19px;color:var(--muted);stroke-width:1.9}
.search__input{
  flex:1;min-width:0;
  height:100%;
  border:0;background:none;
  font:inherit;font-size:14.5px;
  color:var(--ink);
}
.search__input::placeholder{color:#A99A8C}
.search__input:focus{outline:none}
.search:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px rgba(180,69,31,.1)}

.promo{
  position:relative;
  display:flex;
  align-items:flex-end;
  min-height:148px;
  padding:18px;
  border-radius:18px;
  overflow:hidden;
  text-decoration:none;
  color:#FFF6EC;
  background:linear-gradient(135deg,#3A2116 0%,#6B3820 55%,#8C4B26 100%);
  isolation:isolate;
}
.promo__text{position:relative;z-index:1;max-width:220px}
.promo__kicker{font-size:10px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#F0BE94}
.promo__title{font-family:var(--serif);font-size:21px;line-height:1.2;margin-top:6px}
.promo__meta{font-size:11.5px;color:rgba(255,246,236,.72);margin-top:8px}
.promo__art{
  position:absolute;
  right:-14px;bottom:-26px;
  width:150px;height:150px;
  color:#F6DCC2;
  opacity:.16;
  fill:none;stroke:currentColor;
  stroke-width:1.2;
  stroke-linecap:round;stroke-linejoin:round;
  transform:rotate(-14deg);
  z-index:0;
}

.tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tile{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
  padding:12px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  text-decoration:none;
  transition:background .15s var(--ease),transform .15s var(--ease);
  -webkit-tap-highlight-color:transparent;
}
.tile:active{transform:scale(.985)}
.tile__label{font-size:13.5px;font-weight:600;line-height:1.25;max-width:12ch}
.tile__chev{position:absolute;top:12px;right:10px;width:16px;height:16px;color:#C9B7A6}
.tile--wide{grid-column:1/-1;flex-direction:row;align-items:center;gap:12px;padding:12px 14px}
.tile--wide .tile__label{flex:1;max-width:none;font-size:14px}
.tile--wide .tile__chev{position:static;margin-left:auto;width:18px;height:18px}

/* ---------- 12. Miniatura de producto ---------- */
.thumb{
  display:grid;
  place-items:center;
  width:54px;height:54px;
  flex:none;
  border-radius:14px;
  border:1px solid rgba(90,60,35,.07);
  color:#8A5A2B;
}
.thumb .i{width:26px;height:26px}
.thumb--panes{background:linear-gradient(150deg,#F8EADA,#EFD9BC);color:#8B5A2B}
.thumb--dulces{background:linear-gradient(150deg,#FCE9DE,#F4D2BE);color:#A9542F}
.thumb--bocaditos{background:linear-gradient(150deg,#FAF0DA,#EEDDB8);color:#8A682A}
.thumb--tortas{background:linear-gradient(150deg,#F9E4E2,#EFCDCB);color:#9C4A4A}
.thumb--combos{background:linear-gradient(150deg,#EAF0E2,#D5E2C9);color:#4F6B45}

/* ---------- 13. Listado de productos ---------- */
.products{display:grid;gap:10px}
.product{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
}
.product__info{flex:1;min-width:0}
.product__name{
  font-size:14.5px;
  font-weight:600;
  line-height:1.3;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.product__link{text-decoration:none}
.product__meta{font-size:11.5px;color:var(--muted);margin-top:2px}
.product__price{font-size:14.5px;font-weight:700;margin-top:3px;letter-spacing:-.01em}
.product__actions{display:grid;justify-items:end;gap:6px;flex:none}

.stepper{
  display:inline-flex;
  align-items:center;
  height:30px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface);
  overflow:hidden;
}
.stepper__btn{
  width:28px;height:100%;
  display:grid;place-items:center;
  border:0;background:none;
  color:var(--ink);
  cursor:pointer;
}
.stepper__btn:active{background:var(--surface-2)}
.stepper__btn .i{width:14px;height:14px;stroke-width:2.2}
.stepper__val{min-width:20px;text-align:center;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}

.stepper--lg{height:42px;border-radius:13px}
.stepper--lg .stepper__btn{width:44px}
.stepper--lg .stepper__val{min-width:30px;font-size:16px}

.cartbtn{
  display:grid;place-items:center;
  width:32px;height:32px;
  border:0;border-radius:10px;
  background:var(--accent-soft);
  color:var(--accent);
  cursor:pointer;
  text-decoration:none;
}
.cartbtn .i{width:17px;height:17px;stroke-width:1.9}
.cartbtn:active{background:#F7D8C4}

/* ---------- 14. Detalle ---------- */
.hero{
  display:grid;place-items:center;
  height:180px;
  border-radius:20px;
  border:1px solid rgba(90,60,35,.08);
  background:linear-gradient(150deg,#F9E4E2,#EBC8C6 60%,#E3BBB9);
  color:#9C4A4A;
}
.hero .i{width:76px;height:76px;stroke-width:1.2}

.detail__head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-top:2px}
.detail__name{font-family:var(--serif);font-size:23px;font-weight:400;line-height:1.15}
.detail__price{font-size:19px;font-weight:700;color:var(--accent);white-space:nowrap}
.detail__desc{font-size:14px;color:var(--muted);line-height:1.6}
.detail__meta{display:flex;flex-wrap:wrap;gap:8px}

.pill{
  display:inline-flex;align-items:center;gap:5px;
  height:28px;padding:0 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--surface);
  font-size:11.5px;
  font-weight:600;
  color:var(--muted);
  white-space:nowrap;
}
.pill .i{width:13px;height:13px;stroke-width:2}
.pill--warm{background:var(--warm-soft);border-color:#F0DFBE;color:#8A6420}

.qty{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:2px;padding-top:14px;border-top:1px solid var(--line)}

/* ---------- 15. Carrito ---------- */
.cart{display:grid;gap:10px}
.cart-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
}
.cart-item .thumb{width:50px;height:50px;border-radius:12px}
.cart-item .thumb .i{width:24px;height:24px}
.cart-item__info{flex:1;min-width:0}
.cart-item__name{font-size:14px;font-weight:600;line-height:1.3}
.cart-item__unit{font-size:12px;color:var(--muted);margin-top:2px}
.cart-item__side{display:grid;justify-items:end;gap:8px;flex:none}
.trash{
  display:grid;place-items:center;
  width:30px;height:30px;
  border:0;border-radius:9px;
  background:none;
  color:#B0A091;
  cursor:pointer;
}
.trash .i{width:16px;height:16px}
.trash:active{background:var(--surface-2);color:var(--accent)}

.totals{
  display:grid;
  gap:8px;
  padding:14px 16px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
}
.row{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:14px;color:var(--muted)}
.row strong{color:var(--ink)}
.row--total{
  margin-top:4px;padding-top:10px;
  border-top:1px dashed var(--line);
  font-size:16px;font-weight:700;color:var(--ink);
}
.row--total span:last-child{font-size:18px}

/* ---------- 16. Barra de acción fija ---------- */
.sticky-cta{
  position:fixed;
  bottom:0;left:50%;
  transform:translateX(-50%);
  width:min(100%,430px);
  z-index:20;
  padding:12px 16px calc(12px + env(safe-area-inset-bottom));
  background:var(--bg);
  border-top:1px solid var(--line);
}

/* ---------- 17. Confirmación ---------- */
.success{
  display:grid;place-items:center;
  width:92px;height:92px;
  border-radius:50%;
  background:var(--ok-soft);
  color:var(--ok);
  animation:pop .45s var(--ease) both;
}
.success .i{
  width:46px;height:46px;
  stroke-width:2.3;
  stroke-dasharray:30;
  stroke-dashoffset:30;
  animation:draw .5s .18s ease-out forwards;
}
@keyframes pop{from{transform:scale(.72);opacity:0}}
@keyframes draw{to{stroke-dashoffset:0}}

.confirm__title{font-family:var(--serif);font-size:26px;font-weight:400;line-height:1.2;margin-top:4px}
.confirm__sub{font-size:13.5px;color:var(--muted);max-width:32ch}

.ticket{
  width:100%;
  padding:2px 16px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  text-align:left;
}
.ticket .row{padding:11px 0;border-bottom:1px dashed var(--line);font-size:13px}
.ticket .row:last-child{border-bottom:0}
.ticket .row strong{font-size:13.5px}

.actions{width:100%;display:grid;gap:10px;margin-top:6px}

/* ---------- 18. Cuenta ---------- */
.profile{
  display:flex;align-items:center;gap:14px;
  padding:14px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
}
.avatar{
  display:grid;place-items:center;
  width:54px;height:54px;flex:none;
  border-radius:50%;
  background:linear-gradient(145deg,#B4451F,#8D3415);
  color:#FFF3E9;
  font-family:var(--serif);
  font-size:19px;
  letter-spacing:.03em;
}
.profile__name{font-size:16px;font-weight:600}
.profile__mail{font-size:12.5px;color:var(--muted)}

.menu{
  display:grid;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
}
.menu li + li .menu__row{border-top:1px solid var(--line)}
.menu__row{
  display:flex;align-items:center;gap:12px;
  padding:14px;
  font-size:14.5px;
  font-weight:500;
  color:var(--ink);
  text-decoration:none;
  -webkit-tap-highlight-color:transparent;
}
.menu__row > .i:first-child{color:var(--accent);width:20px;height:20px}
.menu__row:active{background:var(--surface-2)}
.menu__chev{margin-left:auto;width:18px;height:18px;color:#C9B7A6}

/* ---------- 19. Barra inferior ---------- */
.tabbar{
  display:none;
  position:fixed;
  bottom:0;left:50%;
  transform:translateX(-50%);
  width:min(100%,430px);
  z-index:30;
  grid-template-columns:repeat(4,1fr);
  padding:6px 8px calc(6px + env(safe-area-inset-bottom));
  background:rgba(255,252,247,.94);
  border-top:1px solid var(--line);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
}
@supports selector(:has(*)){
  body:has(.screen[data-tab]:target) .tabbar{display:grid}
  body:has([data-tab="home"]:target) .tab--inicio,
  body:has([data-tab="cuenta"]:target) .tab--cuenta{color:var(--accent)}
}
.tab{
  display:grid;
  justify-items:center;
  gap:3px;
  padding:6px 0;
  border-radius:12px;
  font-size:10.5px;
  font-weight:600;
  letter-spacing:.01em;
  color:var(--muted);
  text-decoration:none;
  -webkit-tap-highlight-color:transparent;
}
.tab .i{width:22px;height:22px}
.tab:active{background:var(--surface-2)}

/* ---------- 20. Escritorio ---------- */
@media (min-width:520px){
  .app{
    box-shadow:0 0 0 1px rgba(72,46,26,.09),0 40px 90px -40px rgba(72,46,26,.45);
  }
}

/* ---------- 21. Ajustes para pantallas muy pequeñas ---------- */
@media (max-width:359px){
  .page{padding-inline:12px}
  .thumb{width:48px;height:48px;border-radius:12px}
  .thumb .i{width:23px;height:23px}
  .product{gap:10px;padding:9px}
  .stepper__btn{width:26px}
  .stepper__val{min-width:18px}
  .chips label{font-size:12.5px;height:44px}
  .brand--xl .brand__name{font-size:24px}
  .detail__name{font-size:20px}
  .promo{min-height:136px;padding:16px}
  .promo__title{font-size:19px}
}

/* ---------- 22. Hover (solo puntero fino) ---------- */
@media (hover:hover){
  .tile:hover{background:#FFFAF4;transform:translateY(-1px)}
  .btn--primary:hover{filter:brightness(1.07)}
  .btn--ghost:hover{background:#FFFBF6}
  .iconbtn:hover{background:var(--surface-2)}
  .menu__row:hover{background:#FFFBF6}
  .cartbtn:hover{background:#F9DCCA}
  .stepper__btn:hover{background:var(--surface-2)}
}

/* ---------- 23. Accesibilidad: movimiento reducido ---------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
  .loader span{width:100%;transform:none}
}


/* ---------- 24. Componentes dinámicos (JS) ---------- */
[hidden]{display:none !important}

.empty{
  display:grid;
  justify-items:center;
  gap:12px;
  padding:44px 20px 24px;
  text-align:center;
  color:var(--muted);
}
.empty__icon{
  display:grid;place-items:center;
  width:74px;height:74px;
  border-radius:50%;
  background:var(--surface-2);
  color:#B99C82;
}
.empty__icon .i{width:32px;height:32px}
.empty__title{font-family:var(--serif);font-size:20px;color:var(--ink)}
.empty p{font-size:13.5px;max-width:26ch}
.empty .btn{margin-top:6px;min-height:46px;padding:0 22px}

.toast{
  position:fixed;
  left:50%;
  bottom:calc(96px + env(safe-area-inset-bottom));
  transform:translate(-50%,10px);
  z-index:60;
  display:flex;align-items:center;gap:8px;
  max-width:calc(100% - 32px);
  padding:11px 16px;
  border-radius:999px;
  background:#2A1B12;
  color:#FFF6EC;
  font-size:12.5px;
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s var(--ease),transform .2s var(--ease);
  box-shadow:0 14px 30px -14px rgba(42,27,18,.7);
}
.toast.is-on{opacity:1;transform:translate(-50%,0)}
.toast .i{width:15px;height:15px;color:#8FD3AE;stroke-width:2.4}

.search-panel{display:grid;gap:8px}
.search-hit{
  display:flex;align-items:center;gap:8px;
  padding:8px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:13px;
}
.search-hit__open{
  display:flex;align-items:center;gap:10px;
  flex:1;min-width:0;
  padding:2px;
  text-decoration:none;
  color:inherit;
}
.search-hit .thumb{width:40px;height:40px;border-radius:11px}
.search-hit .thumb .i{width:20px;height:20px}
.search-hit__name{
  flex:1;min-width:0;
  font-size:13.5px;font-weight:600;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.search-hit__price{font-size:12.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.search-hit__add{
  display:grid;place-items:center;
  width:34px;height:34px;flex:none;
  border:0;border-radius:10px;
  background:var(--accent-soft);
  color:var(--accent);
  cursor:pointer;
}
.search-hit__add .i{width:16px;height:16px;stroke-width:2.4}

#home.is-searching .promo,
#home.is-searching .tiles,
#home.is-searching .section-title{display:none}


/* ---------- 25. Ajustes de plataforma ---------- */
/* iOS no debe hacer zoom al enfocar un campo */
@supports (-webkit-touch-callout:none){
  .input,.search__input{font-size:16px}
}
/* Sin retardo ni doble toque en controles */
.btn,.iconbtn,.tab,.stepper__btn,.cartbtn,.trash,.chips label,.search-hit__add{
  touch-action:manipulation;
}
