
:root{
  --bg:#070707;--panel:#11110f;--panel2:#191814;--gold:#d9ad35;--gold2:#f5cc55;
  --red:#b92720;--text:#f5f2ea;--muted:#b9b4a8;--line:rgba(217,173,53,.28);
  --shadow:0 24px 70px rgba(0,0,0,.44);--radius:22px
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,Segoe UI,Arial,sans-serif}
img{max-width:100%;display:block}a{color:inherit;text-decoration:none}button,input,textarea{font:inherit}.hidden{display:none!important}
.header{position:sticky;top:0;z-index:80;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px clamp(16px,5vw,72px);background:rgba(7,7,7,.94);backdrop-filter:blur(16px);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:12px}.brand img{width:58px;height:58px;border-radius:50%;border:1px solid var(--gold);object-fit:cover}.brand strong{display:block;color:var(--gold2);letter-spacing:.04em}.brand small{color:var(--muted)}
.nav{display:flex;gap:24px;font-weight:750}.nav a:hover,.nav a.active{color:var(--gold2)}.mobile-menu{display:none;background:none;border:1px solid var(--line);color:white;border-radius:10px;padding:9px 12px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:12px 20px;border-radius:13px;border:1px solid transparent;font-weight:850;cursor:pointer;transition:.2s}
.btn:hover{transform:translateY(-2px);filter:brightness(1.06)}.btn-gold{background:linear-gradient(135deg,var(--gold2),var(--gold));color:#111}.btn-red{background:var(--red);color:white}.btn-outline{border-color:var(--gold);color:var(--gold2);background:transparent}
.hero{position:relative;min-height:calc(100vh - 83px);display:grid;align-items:center;overflow:hidden;padding:70px clamp(20px,7vw,100px);background:linear-gradient(90deg,rgba(0,0,0,.96) 0%,rgba(0,0,0,.82) 47%,rgba(0,0,0,.32)),url('../img/brand/hero-food.png') center/cover no-repeat}
.hero::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 25% 50%,rgba(217,173,53,.15),transparent 35%)}.hero-content{position:relative;z-index:2;max-width:820px}.kicker{color:var(--gold2);font-weight:900;letter-spacing:.18em;font-size:.78rem}.hero h1,.page-hero h1,.title{font-family:Impact,'Arial Narrow',sans-serif;text-transform:uppercase;line-height:.92;letter-spacing:.015em}.hero h1{font-size:clamp(4rem,9vw,8rem);margin:15px 0}.hero h1 span{display:block;color:var(--gold2)}.hero p{max-width:680px;color:#ddd;font-size:1.08rem;line-height:1.75}.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:25px}
.pills{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}.pill{padding:9px 13px;border:1px solid var(--line);border-radius:999px;background:rgba(17,17,15,.76);font-size:.88rem}
.section{padding:85px clamp(18px,6vw,90px)}.section-head{max-width:760px;margin-bottom:30px}.title{font-size:clamp(2.8rem,6vw,5.5rem);margin:8px 0}.lead{color:var(--muted);line-height:1.75}
.feature-grid,.social-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.feature{padding:25px;border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(145deg,rgba(217,173,53,.10),transparent 40%),var(--panel)}.feature .icon{font-size:2.2rem}.feature h3{color:var(--gold2)}
.featured-products,.products-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.product-card{overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);box-shadow:var(--shadow);transition:.22s}.product-card:hover{transform:translateY(-5px);border-color:rgba(245,204,85,.65)}
.product-card img{width:100%;height:160px;object-fit:cover;object-position:center}.product-body{padding:18px}.product-cat{color:var(--gold2);text-transform:uppercase;font-size:.72rem;font-weight:900;letter-spacing:.12em}.product-card h3{margin:8px 0;font-size:1.08rem}.product-card p{color:var(--muted);font-size:.9rem;line-height:1.55;min-height:45px}.product-foot{display:flex;align-items:center;justify-content:space-between;gap:12px}.price{color:var(--gold2);font-size:1.17rem;font-weight:900}.add{border:0;background:var(--red);color:white;font-weight:850;padding:10px 13px;border-radius:10px;cursor:pointer}
.page-hero{padding:72px clamp(18px,6vw,90px) 50px;background:linear-gradient(90deg,rgba(0,0,0,.95),rgba(0,0,0,.60)),url('../img/brand/hero-food.png') center/cover}.page-hero h1{font-size:clamp(4rem,9vw,7rem);margin:12px 0}
.filters{position:sticky;top:83px;z-index:30;display:flex;gap:9px;overflow-x:auto;padding:14px clamp(18px,6vw,90px);background:rgba(7,7,7,.94);border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}.filter{white-space:nowrap;padding:10px 15px;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:white;cursor:pointer}.filter.active{background:var(--gold2);color:#111;font-weight:900}
.cart-fab{position:fixed;right:18px;bottom:18px;z-index:60;border:0;border-radius:999px;padding:14px 18px;background:var(--gold2);color:#111;font-weight:950;box-shadow:var(--shadow);cursor:pointer}
.cart-panel{position:fixed;z-index:100;top:0;right:0;width:min(440px,100%);height:100dvh;display:flex;flex-direction:column;padding:22px;background:#0d0d0c;border-left:1px solid var(--line);transform:translateX(105%);transition:.25s}.cart-panel.open{transform:translateX(0)}.cart-head{display:flex;justify-content:space-between;align-items:flex-start}.close{width:42px;height:42px;border-radius:50%;border:1px solid var(--line);background:transparent;color:white;cursor:pointer}.cart-items{flex:1;overflow:auto;margin:14px 0}.cart-item{display:grid;grid-template-columns:70px 1fr;gap:12px;padding:14px 0;border-bottom:1px solid rgba(255,255,255,.08)}.cart-item img{width:70px;height:62px;object-fit:cover;border-radius:10px}.qty{display:flex;align-items:center;gap:8px;margin-top:9px}.qty button{width:31px;height:31px;border:1px solid var(--line);border-radius:8px;background:var(--panel2);color:white;cursor:pointer}.delete{margin-left:auto;border:0;background:transparent;color:#ff817b;cursor:pointer}.cart-total{padding-top:15px;border-top:1px solid var(--line)}.cart-total-row{display:flex;justify-content:space-between;font-size:1.2rem;margin-bottom:14px}.backdrop{display:none;position:fixed;z-index:90;inset:0;background:rgba(0,0,0,.76)}.backdrop.show{display:block}
.checkout-layout,.location-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:18px}.panel{padding:25px;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel)}.panel-title{font-family:Impact,'Arial Narrow',sans-serif;font-size:2.6rem;text-transform:uppercase;margin:5px 0 20px}
.service-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0 20px}.service-options input{position:absolute;opacity:0}.service-options span{display:block;padding:17px;border:1px solid var(--line);border-radius:14px;cursor:pointer}.service-options input:checked+span{background:rgba(217,173,53,.18);border-color:var(--gold2);color:var(--gold2);font-weight:850}
.field{display:grid;gap:7px;margin-bottom:15px}.field label{font-weight:750}.field input,.field textarea{width:100%;padding:13px 14px;border:1px solid var(--line);border-radius:11px;background:#090908;color:white;outline:none}.field input:focus,.field textarea:focus{border-color:var(--gold2)}
.location-actions{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0 15px}.location-status{color:var(--muted);font-size:.87rem}.summary-line{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid rgba(255,255,255,.08)}.summary-controls{display:flex;align-items:center;gap:7px;margin-top:8px}.summary-controls button{border:1px solid var(--line);background:var(--panel2);color:white;border-radius:8px;padding:7px 10px;cursor:pointer}.summary-controls .remove{color:#ff8d86}.summary-total{display:flex;justify-content:space-between;margin-top:18px;padding:18px;background:rgba(217,173,53,.13);border-radius:13px;font-size:1.25rem;color:var(--gold2);font-weight:950}
.map-card img{width:100%;border-radius:16px;border:1px solid var(--line)}.network{display:flex;gap:10px;flex-wrap:wrap}.network a{padding:11px 14px;border:1px solid var(--line);border-radius:11px;background:var(--panel)}
.toast{position:fixed;z-index:120;left:50%;bottom:25px;transform:translate(-50%,140%);padding:13px 18px;background:#191814;border:1px solid var(--gold);border-radius:12px;box-shadow:var(--shadow);transition:.25s}.toast.show{transform:translate(-50%,0)}
.footer{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:15px;padding:30px clamp(18px,6vw,90px);border-top:1px solid var(--line);background:#030303}.footer img{width:65px;height:65px;border-radius:50%}.footer small,.footer p{color:var(--muted)}
@media(max-width:950px){.featured-products,.products-grid{grid-template-columns:repeat(2,1fr)}.feature-grid,.social-grid{grid-template-columns:1fr}.checkout-layout,.location-grid{grid-template-columns:1fr}.nav{display:none;position:absolute;top:83px;left:0;right:0;flex-direction:column;background:#080808;padding:20px;border-bottom:1px solid var(--line)}.nav.open{display:flex}.mobile-menu{display:block}}
@media(max-width:600px){.brand small{display:none}.hero{min-height:80dvh;padding-top:55px;background-position:58% center}.hero h1{font-size:clamp(3.5rem,18vw,5.4rem)}.featured-products,.products-grid{grid-template-columns:1fr}.product-card img{height:140px}.service-options{grid-template-columns:1fr}.footer{grid-template-columns:auto 1fr}.footer>p{grid-column:1/-1}.section{padding:65px 16px}.page-hero{padding-left:16px;padding-right:16px}}


/* Imágenes de referencia:
   Solo se muestran fotos reales cuando corresponden al plato.
   Los demás productos usan un espacio visual uniforme hasta recibir su fotografía. */
.product-placeholder{
  width:100%;
  height:160px;
  display:grid;
  place-items:center;
  align-content:center;
  gap:10px;
  background:
    radial-gradient(circle at 50% 35%,rgba(245,204,85,.18),transparent 36%),
    linear-gradient(145deg,#15140f,#090909);
  border-bottom:1px solid var(--line);
  color:var(--gold2);
}
.product-placeholder span{font-size:4rem;filter:drop-shadow(0 12px 18px rgba(0,0,0,.35))}
.product-placeholder small{
  color:var(--muted);
  font-weight:800;
  letter-spacing:.04em;
}
.cart-placeholder{
  width:70px;
  height:62px;
  display:grid;
  place-items:center;
  border-radius:10px;
  border:1px solid var(--line);
  background:linear-gradient(145deg,#17150f,#090909);
  font-size:1.8rem;
}
@media(max-width:600px){
  .product-placeholder{height:140px}
}

/* Redes sociales - versión visual */
.social-link{display:inline-flex;align-items:center;gap:9px;padding:10px 14px;border:1px solid rgba(245,196,61,.35);border-radius:12px;background:#111;color:#fff!important;text-decoration:none;font-weight:800}
.social-icon{width:29px;height:29px;display:grid;place-items:center;border-radius:50%;font-weight:900;color:#fff}
.social-facebook .social-icon{background:#1877F2}.social-instagram .social-icon{background:linear-gradient(135deg,#833AB4,#E1306C,#FCAF45)}
.social-tiktok .social-icon{background:#050505;border:1px solid #555}.social-whatsapp .social-icon{background:#25D366}

/* Redes oficiales: iconos más claros y uniformes */
.social-network{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.social-network .social-link{
  min-width:145px;
  min-height:52px;
  padding:10px 16px;
  border:1px solid rgba(217,173,53,.45);
  border-radius:14px;
  background:#10100f;
  color:#fff !important;
  font-weight:800;
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
.social-network .social-link:hover{
  transform:translateY(-2px);
  border-color:var(--gold2);
  background:#171613;
}
.social-network .social-icon{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:9px;
  flex:0 0 32px;
}
.social-network .social-icon svg{
  width:20px;
  height:20px;
  fill:#fff;
}
.social-facebook .social-icon{background:#1877F2}
.social-instagram .social-icon{
  background:radial-gradient(circle at 30% 110%,#fdf497 0 5%,#fdf49700 6%),
             linear-gradient(135deg,#833AB4 0%,#E1306C 52%,#FCAF45 100%);
}
.social-tiktok .social-icon{background:#000;border:1px solid #333}
.social-whatsapp .social-icon{background:#25D366}
@media(max-width:600px){
  .social-network .social-link{
    min-width:calc(50% - 6px);
    flex:1 1 calc(50% - 6px);
  }
}

/* Tarjetas horizontales del menú */
.products-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.product-card{
  display:grid;
  grid-template-columns:150px minmax(0,1fr);
  min-height:170px;
  overflow:hidden;
  align-items:stretch;
}

.product-card > img,
.product-card > .product-placeholder{
  width:150px !important;
  height:100% !important;
  min-height:170px;
  max-height:none !important;
  border-bottom:0 !important;
  border-right:1px solid var(--line);
}

.product-card > img{
  object-fit:contain !important;
  object-position:center !important;
  background:#0b0b0b;
  padding:8px;
}

.product-placeholder{
  border-bottom:0 !important;
  display:grid;
  place-items:center;
  align-content:center;
  background:
    radial-gradient(circle at 50% 35%,rgba(245,204,85,.16),transparent 38%),
    linear-gradient(145deg,#15140f,#090909);
}

.product-placeholder span{
  font-size:2.8rem;
}

.product-placeholder small{
  font-size:.72rem;
  text-align:center;
  padding:0 8px;
}

.product-body{
  padding:16px 16px 14px;
  display:flex;
  flex-direction:column;
  min-width:0;
}

.product-card h3{
  margin:6px 0 7px;
  font-size:1.04rem;
  line-height:1.25;
}

.product-card p{
  min-height:0;
  margin:0 0 12px;
  font-size:.86rem;
  line-height:1.45;
}

.product-foot{
  margin-top:auto;
}

@media(max-width:1050px){
  .products-grid{
    grid-template-columns:1fr;
  }
  .product-card{
    grid-template-columns:145px minmax(0,1fr);
  }
  .product-card > img,
  .product-card > .product-placeholder{
    width:145px !important;
  }
}

@media(max-width:600px){
  .product-card{
    grid-template-columns:112px minmax(0,1fr);
    min-height:145px;
    border-radius:16px;
  }
  .product-card > img,
  .product-card > .product-placeholder{
    width:112px !important;
    min-height:145px;
    padding:5px;
  }
  .product-body{
    padding:12px 12px 11px;
  }
  .product-cat{
    font-size:.64rem;
  }
  .product-card h3{
    font-size:.95rem;
    margin:4px 0 6px;
  }
  .product-card p{
    font-size:.78rem;
    line-height:1.35;
    margin-bottom:9px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }
  .price{
    font-size:1rem;
  }
  .add{
    padding:8px 10px;
    font-size:.82rem;
  }
}

/* Vista ampliada de las fotografías del menú */
.product-card > img{
  cursor:zoom-in;
  transition:transform .22s ease, filter .22s ease;
}
.product-card > img:hover{
  filter:brightness(1.08);
}
.image-lightbox{
  position:fixed;
  inset:0;
  z-index:99999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px;
  background:rgba(0,0,0,.86);
  backdrop-filter:blur(5px);
  opacity:0;
  visibility:hidden;
  transition:opacity .22s ease, visibility .22s ease;
}
.image-lightbox.open{
  opacity:1;
  visibility:visible;
}
.image-lightbox img{
  max-width:min(900px,92vw);
  max-height:88vh;
  width:auto;
  height:auto;
  object-fit:contain;
  border-radius:18px;
  box-shadow:0 24px 80px rgba(0,0,0,.65);
  transform:scale(.92);
  transition:transform .22s ease;
}
.image-lightbox.open img{transform:scale(1)}
.image-lightbox-close{
  position:absolute;
  top:18px;
  right:22px;
  width:44px;
  height:44px;
  border:1px solid rgba(255,255,255,.25);
  border-radius:50%;
  background:#111;
  color:#fff;
  font-size:26px;
  line-height:1;
  cursor:pointer;
}
@media (hover:hover) and (pointer:fine){
  .product-card > img:hover{
    transform:scale(1.04);
  }
}

/* =========================================================
   OPTIMIZACIÓN MÓVIL - Goldo Huancayo
   Solo aplica a teléfonos. La vista de escritorio se conserva.
   ========================================================= */
@media (max-width:600px){
  html,body{max-width:100%;overflow-x:hidden}

  .header{
    padding:10px 14px;
    gap:10px;
  }
  .brand{min-width:0;gap:9px}
  .brand img{width:52px;height:52px;flex:0 0 52px}
  .brand strong{font-size:1rem;white-space:nowrap}
  .mobile-menu{min-width:46px;min-height:46px}

  /* Portada */
  .hero{
    min-height:auto;
    padding:42px 18px 34px;
    background-position:62% center;
  }
  .hero-content{max-width:100%}
  .kicker{
    font-size:.68rem;
    line-height:1.5;
    letter-spacing:.13em;
  }
  .hero h1{
    font-size:clamp(2.9rem,15vw,4.25rem);
    line-height:.91;
    margin:13px 0 16px;
    overflow-wrap:normal;
    word-break:normal;
  }
  .hero p{
    font-size:.95rem;
    line-height:1.55;
    margin:0;
  }
  .actions{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
    margin-top:20px;
  }
  .actions .btn{width:100%;min-height:48px}
  .pills{gap:8px;margin-top:18px}
  .pill{font-size:.78rem;padding:8px 11px}

  /* Filtros del menú: desplazamiento horizontal con el dedo */
  .filters{
    top:73px;
    width:100%;
    max-width:100vw;
    padding:10px 12px 11px;
    gap:8px;
    overflow-x:auto;
    overflow-y:hidden;
    flex-wrap:nowrap;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .filters::-webkit-scrollbar{display:none}
  .filter{
    flex:0 0 auto;
    padding:10px 14px;
    font-size:.9rem;
  }

  /* Una tarjeta por fila, fotografía completa arriba */
  .products-grid{
    grid-template-columns:1fr !important;
    gap:14px;
    width:100%;
  }
  .product-card{
    display:block !important;
    width:100%;
    min-height:0 !important;
    border-radius:17px;
    overflow:hidden;
  }
  .product-card > img,
  .product-card > .product-placeholder{
    display:block;
    width:100% !important;
    height:190px !important;
    min-height:190px !important;
    max-height:190px !important;
    border-right:0 !important;
    border-bottom:1px solid var(--line) !important;
    padding:7px !important;
    background:#0b0b0b;
  }
  .product-card > img{
    object-fit:contain !important;
    object-position:center !important;
  }
  .product-placeholder{
    display:grid !important;
    place-items:center;
    align-content:center;
  }
  .product-placeholder span{font-size:3rem}
  .product-placeholder small{font-size:.75rem}

  .product-body{
    padding:14px 15px 15px;
    min-width:0;
  }
  .product-cat{font-size:.66rem}
  .product-card h3{
    font-size:1.05rem;
    line-height:1.25;
    margin:5px 0 7px;
  }
  .product-card p{
    display:block !important;
    overflow:visible !important;
    -webkit-line-clamp:unset !important;
    font-size:.84rem;
    line-height:1.45;
    margin:0 0 13px;
  }
  .product-foot{
    margin-top:8px;
    align-items:center;
  }
  .price{font-size:1.08rem}
  .add{
    min-width:100px;
    min-height:44px;
    padding:10px 14px;
    font-size:.9rem;
    touch-action:manipulation;
  }

  /* Evita que el carrito tape demasiado contenido */
  .cart-fab{
    right:12px;
    bottom:12px;
    padding:12px 15px;
    font-size:.9rem;
  }

  .section{padding:52px 14px}
  .page-hero{padding:46px 14px 34px}
  .page-hero h1{font-size:clamp(3rem,16vw,4.6rem)}
}

@media (max-width:380px){
  .brand strong{font-size:.92rem}
  .hero h1{font-size:clamp(2.7rem,15vw,3.8rem)}
  .product-card > img,
  .product-card > .product-placeholder{
    height:175px !important;
    min-height:175px !important;
    max-height:175px !important;
  }
  .product-body{padding:13px}
}

/* =========================================================
   MOBILE-FIRST v2 — menú y carrito optimizados para teléfono
   Prioridad: 360–430 px. Escritorio/tablet no se modifica.
   ========================================================= */
@media (max-width:600px){
  /* Portada del menú más compacta para mostrar productos antes */
  .page-hero{
    padding:34px 16px 28px;
    min-height:0;
    background-position:center;
  }
  .page-hero h1{
    font-size:clamp(2.75rem,14vw,4rem);
    line-height:.9;
    margin:10px 0 16px;
  }
  .page-hero .lead{
    font-size:.94rem;
    line-height:1.55;
    margin:0;
  }

  /* El contenido siempre cabe dentro de la pantalla */
  main,.section,.products-grid,.product-card{min-width:0;max-width:100%}
  .section{padding:34px 12px 90px}

  /* Carrito: panel real de teléfono, sin cortes laterales */
  .cart-panel{
    top:0;
    right:0;
    left:auto;
    width:100vw;
    max-width:100vw;
    height:100dvh;
    padding:18px 16px max(16px,env(safe-area-inset-bottom));
    border-left:0;
    overflow:hidden;
  }
  .cart-head{flex:0 0 auto;align-items:flex-start;gap:12px}
  .cart-head .panel-title{
    font-size:2.75rem;
    line-height:.95;
    margin:6px 0 8px;
  }
  .close{
    flex:0 0 48px;
    width:48px;
    height:48px;
    font-size:1.15rem;
  }

  /* Solo la lista de productos hace scroll */
  .cart-items{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
    margin:6px 0 10px;
    padding-right:2px;
    -webkit-overflow-scrolling:touch;
  }
  .cart-item{
    grid-template-columns:76px minmax(0,1fr);
    gap:12px;
    padding:14px 0 16px;
    width:100%;
  }
  .cart-item img,
  .cart-placeholder{
    width:76px;
    height:70px;
    border-radius:11px;
  }
  .cart-item strong{
    display:block;
    font-size:1rem;
    line-height:1.25;
    overflow-wrap:anywhere;
  }
  .cart-item .price{font-size:1.08rem;margin-top:3px}

  /* Cantidad + Quitar: nunca se sale por la derecha */
  .qty{
    display:grid;
    grid-template-columns:38px auto 38px 1fr;
    align-items:center;
    gap:8px;
    width:100%;
    margin-top:10px;
  }
  .qty button{
    width:38px;
    height:38px;
    min-width:38px;
  }
  .qty b{text-align:center;min-width:14px}
  .qty .delete{
    width:auto;
    min-width:0;
    height:38px;
    margin-left:4px;
    padding:0 10px;
    justify-self:end;
    border:1px solid rgba(255,129,123,.32);
    border-radius:9px;
    background:rgba(255,129,123,.06);
    color:#ff918b;
    white-space:nowrap;
  }

  /* Total y CTA permanecen visibles al pie */
  .cart-total{
    flex:0 0 auto;
    padding:14px 0 0;
    background:#0d0d0c;
  }
  .cart-total-row{
    font-size:1.18rem;
    margin-bottom:12px;
  }
  #checkoutButton{min-height:54px;font-size:1rem}

  /* Botón flotante más compacto y dentro del safe-area */
  .cart-fab{
    right:12px;
    bottom:max(12px,env(safe-area-inset-bottom));
    max-width:calc(100vw - 24px);
  }
}

@media (max-width:380px){
  .cart-panel{padding-left:12px;padding-right:12px}
  .cart-item{grid-template-columns:68px minmax(0,1fr);gap:10px}
  .cart-item img,.cart-placeholder{width:68px;height:64px}
  .qty{grid-template-columns:36px auto 36px 1fr;gap:6px}
  .qty button{width:36px;height:36px;min-width:36px}
  .qty .delete{height:36px;padding:0 8px;font-size:.8rem}
}

/* =========================================================
   MOBILE v3 — filtros visibles + carrito sin tapar contenido
   ========================================================= */
@media (max-width:600px){
  .filters{
    position:sticky;
    top:73px;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
    width:100%;
    max-width:100%;
    padding:12px;
    overflow:visible;
  }
  .filter{
    width:100%;
    min-width:0;
    padding:10px 8px;
    text-align:center;
    white-space:normal;
    line-height:1.15;
  }
  .cart-fab{
    right:10px;
    bottom:max(10px,env(safe-area-inset-bottom));
    padding:11px 14px;
    font-size:.88rem;
    max-width:calc(100vw - 20px);
  }
  .section{padding-bottom:100px}
}

@media (max-width:360px){
  .filters{gap:7px;padding:10px}
  .filter{font-size:.82rem;padding:9px 6px}
  .cart-fab{padding:10px 12px;font-size:.82rem}
}
