/* Super Swish v1722 — portada móvil premium con datos reales.
   ÚLTIMA hoja de estilos: una sola capa final sobre los diseños anteriores.
   Excluye paneles Rider, Comercio, Admin y la versión de escritorio.
   Este archivo NO realiza lecturas, escrituras ni listeners en Firebase. */
@media (max-width:780px){
  :root{--ssw1722-gold:#ffd400;--ssw1722-black:#070809;--ssw1722-shadow:0 3px 11px rgba(8,14,19,.12)}
  html body#ssRacingPage:has(#mainContainer.ss-client-modern[data-client-page="home"]){
    background:#f5f6f8!important;background-color:#f5f6f8!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"]{
    display:flex!important;flex-direction:column!important;
    background:#f5f6f8!important;color:#101114!important;
    padding:0 10px calc(95px + env(safe-area-inset-bottom))!important;
    margin:0 auto!important;width:100%!important;max-width:540px!important;
    box-sizing:border-box!important;overflow-x:clip!important;
  }
  /* Encabezado negro + identidad Super Swish. */
  html body#ssRacingPage #mainContainer.ss-client-modern .ssw146-topnav{
    display:grid!important;grid-template-columns:42px minmax(0,1fr) 36px 36px!important;
    align-items:center!important;column-gap:6px!important;
    min-height:58px!important;height:58px!important;max-height:58px!important;
    padding:5px 9px!important;margin:0 0 10px!important;
    border-radius:0 0 16px 16px!important;box-shadow:0 5px 16px #0003!important;
    background:#030304!important;color:#fff!important;
    box-sizing:border-box!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern .ssw146-topnav .ssw147-menu-toggle{
    display:grid!important;grid-column:1!important;grid-row:1!important;
    place-items:center!important;width:39px!important;height:39px!important;
    margin:0!important;border:1px solid #4b4f54!important;border-radius:11px!important;
    background:linear-gradient(150deg,#202328,#070809)!important;color:#fff!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern .ssw146-topnav button.ssw146-logo{
    grid-column:2!important;grid-row:1!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
    height:50px!important;min-height:0!important;max-height:50px!important;
    font-size:clamp(17px,5.5vw,25px)!important;letter-spacing:-1px!important;
    white-space:nowrap!important;overflow:hidden!important;
    justify-self:center!important;justify-content:center!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern .ssw146-topnav .ssw146-alerts{
    grid-column:3!important;grid-row:1!important;position:relative!important;
    width:34px!important;height:38px!important;min-width:0!important;margin:0!important;
    color:#fff!important;background:transparent!important;display:grid!important;place-items:center!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern .ssw146-topnav .ssw1703-account-link{
    grid-column:4!important;grid-row:1!important;position:static!important;
    width:33px!important;height:37px!important;min-width:0!important;margin:0!important;
    display:grid!important;place-items:center!important;color:#fff!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern .ssw146-topnav .ssw146-toplinks{display:none!important}
  /* Ubicación actual: abrir el selector real conserva el comportamiento existente. */
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw146-home-top{
    display:block!important;margin:0 1px 10px!important;padding:0!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw146-home-top button.ss-client-location{
    display:flex!important;align-items:center!important;justify-content:flex-start!important;
    width:100%!important;max-width:none!important;min-width:0!important;
    min-height:60px!important;height:60px!important;
    padding:10px 18px!important;margin:0!important;gap:12px!important;
    border-radius:30px!important;
    background:linear-gradient(155deg,#222629,#08090b)!important;
    color:#fff!important;box-shadow:0 4px 11px #0004!important;
    border:1px solid #40454b!important;text-align:left!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw146-home-top button.ss-client-location svg{
    color:#ffd400!important;stroke:#ffd400!important;width:26px!important;height:26px!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw146-home-top button.ss-client-location span{
    display:flex!important;flex-direction:column!important;align-items:flex-start!important;
    gap:2px!important;min-width:0!important;flex:1!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw146-home-top button.ss-client-location small{
    color:#d8d8dd!important;font-size:11px!important;font-weight:600!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw146-home-top button.ss-client-location strong{
    font-size:clamp(14px,4vw,17px)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw146-home-top button.ss-client-location b{
    color:#ffd400!important;font-size:21px!important;margin:0 0 0 auto!important;
  }
  /* Buscador blanco con botón de filtros REAL (abre el diálogo existente). */
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw146-search-card{
    display:flex!important;flex-direction:row!important;align-items:center!important;
    position:relative!important;overflow:visible!important;
    width:100%!important;max-width:100%!important;box-sizing:border-box!important;
    padding:6px 61px 6px 9px!important;margin:0 0 10px!important;
    min-height:58px!important;height:58px!important;
    border-radius:30px!important;border:1px solid #dee2e7!important;
    box-shadow:var(--ssw1722-shadow)!important;background:#fff!important;color:#12151a!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw146-search-card::before{
    top:20px!important;left:17px!important;width:16px!important;height:16px!important;border-width:2.5px!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw146-search-card::after{
    top:35px!important;left:30px!important;width:9px!important;height:2.5px!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw146-search-card #clientSearchInput{
    width:100%!important;flex:1!important;height:44px!important;min-height:44px!important;
    box-sizing:border-box!important;margin:0!important;padding:7px 0 7px 38px!important;
    color:#18222e!important;background:transparent!important;border:0!important;outline:0!important;
    font-size:clamp(12px,3.4vw,15px)!important;font-weight:580!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw146-search-card .ssw1722-search-filters{
    display:grid!important;place-items:center!important;
    position:absolute!important;right:6px!important;top:6px!important;
    height:46px!important;width:46px!important;min-width:46px!important;padding:12px!important;
    border:0!important;border-radius:50%!important;background:#fff!important;color:#111!important;
    box-shadow:0 2px 7px #0002!important;cursor:pointer!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw1722-search-filters svg{
    width:23px!important;height:23px!important;
  }
  /* Categorías principales: seis botones visibles (incluido Más). */
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] nav.ssw112-types.ssw113-types.ssw146-types{
    display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;
    column-gap:5px!important;row-gap:7px!important;
    padding:0!important;margin:0 0 11px!important;
    width:100%!important;min-width:0!important;max-width:none!important;overflow:visible!important;
    background:transparent!important;border:0!important;box-shadow:none!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] nav.ssw146-types button.ssw146-category[data-value],
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] nav.ssw146-types button.ssw1678-more-categories{
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
    min-width:0!important;width:100%!important;max-width:none!important;height:68px!important;min-height:68px!important;max-height:68px!important;
    box-sizing:border-box!important;gap:4px!important;padding:5px 2px!important;
    border:1px solid #484c50!important;border-radius:14px!important;
    background:linear-gradient(150deg,#272b2d,#070809)!important;color:#fff!important;
    box-shadow:0 3px 8px #0003!important;font-size:10px!important;
    font-weight:850!important;text-align:center!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] nav.ssw146-types button.ssw146-category[data-value]::before{
    width:32px!important;height:30px!important;min-width:0!important;min-height:0!important;
    margin:0!important;background-size:contain!important;background-position:center!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] nav.ssw146-types button.ssw146-category[data-value] svg{
    width:27px!important;height:27px!important;min-width:0!important;min-height:0!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] nav.ssw146-types button.ssw146-category[data-value] span{
    font-size:clamp(8px,2.2vw,10px)!important;line-height:1.1!important;color:inherit!important;
    font-weight:850!important;white-space:normal!important;overflow-wrap:normal!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] nav.ssw146-types button.ssw146-category.active,
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] nav.ssw146-types button.ssw146-category[aria-pressed="true"]{
    color:#101010!important;background:linear-gradient(155deg,#ffe744,#ffca00)!important;
    border-color:#ffd000!important;box-shadow:0 4px 10px #d5a90065!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] nav.ssw146-types button.ssw1678-more-categories{
    font-size:0!important;white-space:nowrap!important;grid-row:1!important;
    background:linear-gradient(155deg,#202426,#070809)!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] nav.ssw146-types button.ssw1678-more-categories::before{
    content:'•••'!important;font-size:24px!important;line-height:29px!important;font-weight:900!important;letter-spacing:2px!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] nav.ssw146-types button.ssw1678-more-categories::after{
    content:'Más'!important;font-size:10px!important;line-height:13px!important;font-weight:850!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] nav.ssw146-types button.ssw1678-more-categories[aria-expanded="true"]::after{content:'Menos'!important}
  /* Las categorías extra solo aparecen al activar Más, sin dejar cajas vacías. */
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] nav.ssw146-types button.ssw1678-category-extra{display:none!important;}
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] nav.ssw146-types.ssw1678-categories-expanded button.ssw1678-category-extra{display:flex!important;grid-row:2!important;}
  /* Banner con proporción original: nunca estirado ni deformado. */
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw1678-hero-row{
    display:flex!important;flex-direction:row!important;gap:8px!important;overflow-x:auto!important;
    overflow-y:hidden!important;scroll-snap-type:x mandatory!important;scrollbar-width:none!important;
    margin:0 0 15px!important;padding:1px 1px 7px!important;
    background:transparent!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw1678-hero-row>.ssw146-banner{
    display:block!important;flex:0 0 100%!important;order:0!important;scroll-snap-align:start!important;
    aspect-ratio:1400 / 420!important;height:auto!important;min-height:0!important;max-height:none!important;
    width:100%!important;padding:0!important;margin:0!important;
    background:#080808 url('/assets/ssw155-hero-mobile.webp') center center / contain no-repeat!important;
    border:2px solid #ffcf00!important;border-radius:16px!important;box-sizing:border-box!important;
    box-shadow:0 5px 14px #0003!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw1678-hero-row>.ssw1678-hero-feature,
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw1678-hero-row>.ssw1678-hero-empty{
    order:1!important;flex:0 0 100%!important;scroll-snap-align:start!important;
    aspect-ratio:1400 / 420!important;height:auto!important;min-height:0!important;max-height:none!important;
    margin:0!important;border-radius:16px!important;overflow:hidden!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw1678-hero-row>.ssw1701-gift-hero{
    order:1!important;background:#080808 url('/assets/ssw1704-envio-gratis-referencia.webp') center/contain no-repeat!important;
    border:2px solid #ffce00!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw1678-hero-row>.ssw1701-gift-hero>*{opacity:0!important;pointer-events:none!important}
  /* Titulares en fondo claro. */
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ss-client-list{
    width:100%!important;padding:0!important;margin:0 0 12px!important;
    background:transparent!important;border:0!important;box-shadow:none!important;
    color:#101114!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ss-client-list-head{
    display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:7px!important;
    margin:3px 1px 10px!important;padding:0!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ss-client-list-head h2{
    color:#0c0f12!important;font-size:clamp(18px,5.1vw,24px)!important;
    letter-spacing:-.55px!important;line-height:1.15!important;min-width:0!important;
    text-shadow:none!important;margin:0!important;padding-left:9px!important;
    border-left:5px solid #ffd400!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ss-client-list-head h2::after{display:none!important}
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ss136-filters-trigger{
    display:flex!important;align-items:center!important;justify-content:center!important;
    border-radius:23px!important;min-height:37px!important;height:37px!important;
    padding:6px 12px!important;background:#080a0b!important;color:#fff!important;
    box-shadow:0 3px 9px #0003!important;white-space:nowrap!important;
    border:0!important;font-size:12px!important;
  }
  /* Negocio: foto izquierda, identidad y estado a la derecha, dos productos abajo. */
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .restaurant-grid.ssw146-restaurants{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    gap:14px!important;margin:0!important;padding:0!important;
    width:100%!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .restaurant-grid.ssw146-restaurants>.restaurant-card{
    display:grid!important;grid-template-columns:minmax(0,42%) minmax(0,58%)!important;
    grid-template-rows:148px auto!important;column-gap:0!important;row-gap:0!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
    min-height:218px!important;height:auto!important;max-height:none!important;
    box-sizing:border-box!important;position:relative!important;overflow:hidden!important;
    margin:0!important;padding:8px!important;
    background:#fff!important;color:#111317!important;
    border:1px solid #e1e4e8!important;border-radius:20px!important;
    box-shadow:0 5px 13px rgba(7,11,15,.16)!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .restaurant-grid.ssw146-restaurants>.restaurant-card>img.restaurant-image{
    grid-column:1!important;grid-row:1!important;
    display:block!important;position:relative!important;
    width:100%!important;height:146px!important;min-height:146px!important;max-height:146px!important;
    margin:0!important;object-fit:cover!important;object-position:center!important;
    border-radius:13px!important;box-shadow:none!important;transform:none!important;
    background:#f2f2f2!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .restaurant-grid.ssw146-restaurants>.restaurant-card[data-ss1721-little="1"]>img.restaurant-image{
    object-fit:contain!important;background:#fff!important;object-position:center center!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .restaurant-grid.ssw146-restaurants>.restaurant-card>.ssw1677-merchant-logo{
    position:absolute!important;top:99px!important;left:15px!important;z-index:4!important;
    width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;
    border-radius:50%!important;border:3px solid #fff!important;
    background:#fff!important;box-shadow:0 3px 10px #0004!important;
    box-sizing:border-box!important;overflow:hidden!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .restaurant-grid.ssw146-restaurants>.restaurant-card>.ssw1677-merchant-logo img{
    width:100%!important;height:100%!important;object-fit:contain!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .restaurant-grid.ssw146-restaurants>.restaurant-card>.ss-client-heart{
    position:absolute!important;z-index:5!important;top:14px!important;
    left:calc(42% - 29px)!important;right:auto!important;
    width:27px!important;height:27px!important;min-width:27px!important;min-height:27px!important;
    padding:4px!important;border:0!important;border-radius:50%!important;
    color:#29303a!important;background:#fff!important;box-shadow:0 2px 7px #0004!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .restaurant-grid.ssw146-restaurants>.restaurant-card>.ss-client-heart svg{
    width:18px!important;height:18px!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .restaurant-grid.ssw146-restaurants .ss-client-restaurant-body{
    grid-column:2!important;grid-row:1!important;display:flex!important;flex-direction:column!important;
    justify-content:flex-start!important;align-items:flex-start!important;
    gap:4px!important;margin:0!important;padding:4px 5px 2px 11px!important;
    min-width:0!important;width:100%!important;max-height:146px!important;box-sizing:border-box!important;
    color:#101114!important;background:#fff!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .restaurant-grid.ssw146-restaurants .restaurant-name{
    font-weight:950!important;font-size:clamp(14px,3.75vw,17px)!important;
    line-height:1.13!important;letter-spacing:-.35px!important;
    min-width:0!important;min-height:0!important;width:100%!important;
    padding:0!important;margin:0!important;overflow-wrap:anywhere!important;
    display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .restaurant-grid.ssw146-restaurants .restaurant-badge{
    display:inline-flex!important;align-items:center!important;
    position:static!important;top:auto!important;left:auto!important;
    order:0!important;margin:0!important;padding:3px 9px!important;
    border-radius:99px!important;background:#16ad5a!important;color:#fff!important;
    font-size:10px!important;font-weight:900!important;line-height:1.2!important;
    box-shadow:none!important;white-space:nowrap!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .restaurant-grid.ssw146-restaurants .restaurant-badge.closed-badge{
    background:#737982!important;color:#fff!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .restaurant-grid.ssw146-restaurants .restaurant-categories{
    font-size:10px!important;line-height:1.15!important;font-weight:550!important;
    color:#58616c!important;white-space:nowrap!important;overflow:hidden!important;
    text-overflow:ellipsis!important;width:100%!important;margin:0!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .restaurant-grid.ssw146-restaurants .ssw1691-card-metadata{
    display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;
    align-items:center!important;gap:3px 7px!important;
    padding:0!important;margin:0!important;border:0!important;min-width:0!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .restaurant-grid.ssw146-restaurants .ssw1691-card-metadata .restaurant-info{
    display:inline-flex!important;align-items:center!important;gap:2px!important;
    margin:0!important;padding:0!important;font-weight:650!important;
    color:#3a414a!important;font-size:10px!important;white-space:nowrap!important;
    max-width:100%!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw1722-free-delivery{
    display:inline-flex!important;align-items:center!important;gap:3px!important;
    max-width:100%!important;margin:0!important;padding:4px 9px!important;
    background:linear-gradient(160deg,#ffe02a,#ffcc00)!important;color:#0b0b0b!important;
    border-radius:99px!important;font-size:10px!important;font-weight:950!important;
    white-space:nowrap!important;box-shadow:0 2px 6px #f9c80055!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .restaurant-grid.ssw146-restaurants .ss-client-closed-info{
    font-size:9px!important;line-height:1.13!important;color:#a85122!important;
    display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;
    overflow:hidden!important;margin:0!important;max-width:100%!important;
  }
  /* Dos productos por negocio, tamaño uniforme. Con pizza entera: no cover. */
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .restaurant-grid.ssw146-restaurants .ssw1677-merchant-products{
    grid-column:1/-1!important;grid-row:2!important;
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;width:100%!important;min-width:0!important;
    padding:0!important;margin:2px 0 0!important;box-sizing:border-box!important;
    align-self:end!important;position:relative!important;z-index:4!important;
    border:0!important;background:transparent!important;box-shadow:none!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .restaurant-grid.ssw146-restaurants .ssw1677-merchant-products>.ssw1677-merchant-item,
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .restaurant-grid.ssw146-restaurants .ssw1677-merchant-products>.ssw1677-merchant-item.ss1715-little-pizza{
    display:grid!important;grid-template-columns:46px minmax(0,1fr) 22px!important;
    grid-template-rows:minmax(0,1fr)!important;align-items:center!important;
    column-gap:3px!important;row-gap:0!important;
    width:100%!important;height:63px!important;min-height:63px!important;max-height:63px!important;
    padding:5px!important;margin:0!important;box-sizing:border-box!important;
    min-width:0!important;overflow:hidden!important;position:relative!important;
    background:#fff!important;border:1px solid #eceef0!important;border-radius:13px!important;
    box-shadow:0 2px 6px #0002!important;color:#17191c!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .restaurant-grid.ssw146-restaurants .ssw1677-merchant-item>img,
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .restaurant-grid.ssw146-restaurants .ssw1677-merchant-item>picture.ss1716-photo-window{
    grid-column:1!important;grid-row:1!important;
    display:block!important;position:static!important;
    width:46px!important;max-width:46px!important;min-width:46px!important;
    height:51px!important;min-height:51px!important;max-height:51px!important;
    padding:1px!important;margin:0!important;border-radius:9px!important;
    overflow:hidden!important;object-fit:contain!important;object-position:center!important;
    background:#fff!important;box-shadow:none!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .restaurant-grid.ssw146-restaurants .ssw1677-merchant-item>picture.ss1716-photo-window>img{
    width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;
    transform:none!important;scale:1!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .restaurant-grid.ssw146-restaurants .ssw1677-merchant-item>span:not(.ssw1677-plus){
    grid-column:2!important;grid-row:1!important;
    display:flex!important;flex-direction:column!important;align-items:flex-start!important;
    justify-content:center!important;gap:3px!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    min-height:0!important;max-height:100%!important;padding:0!important;margin:0!important;
    overflow:hidden!important;text-align:left!important;color:#151719!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .restaurant-grid.ssw146-restaurants .ssw1677-merchant-item strong{
    font-size:clamp(9px,2.55vw,11px)!important;font-weight:850!important;
    line-height:1.13!important;text-align:left!important;white-space:normal!important;
    display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;
    overflow:hidden!important;overflow-wrap:anywhere!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .restaurant-grid.ssw146-restaurants .ssw1677-merchant-item b{
    font-size:clamp(10px,2.85vw,13px)!important;line-height:1.08!important;
    color:#101010!important;font-weight:950!important;margin:0!important;padding:0!important;
    white-space:nowrap!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .restaurant-grid.ssw146-restaurants .ssw1677-merchant-item>.ssw1677-plus,
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .restaurant-grid.ssw146-restaurants .ssw1677-merchant-item.ss1715-little-pizza>.ssw1677-plus{
    grid-column:3!important;grid-row:1!important;
    position:static!important;right:auto!important;bottom:auto!important;
    align-self:end!important;justify-self:center!important;display:grid!important;place-items:center!important;
    margin:0!important;padding:0!important;
    width:21px!important;height:21px!important;min-width:21px!important;min-height:21px!important;
    border-radius:50%!important;background:#ffd000!important;color:#000!important;
    font-weight:950!important;font-size:18px!important;line-height:1!important;
    box-shadow:0 2px 6px #0002!important;pointer-events:none!important;
  }
  /* Artículos sin menú y búsqueda conservan estado real. */
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .restaurant-grid.ssw146-restaurants .ssw1677-no-products,
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .restaurant-grid.ssw146-restaurants .matched-menu-preview{
    grid-column:1/-1!important;
  }
  /* Productos destacados: catálogo real, una fila desplazable con precios reales. */
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw1677-products{
    width:100%!important;min-width:0!important;margin:13px 0 18px!important;
    padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;
    color:#101114!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw1677-products .ssw1677-section-head{
    padding:0 3px 8px!important;margin:0!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw1677-products .ssw1677-section-head h2{
    font-size:clamp(18px,5vw,23px)!important;line-height:1.16!important;font-weight:950!important;
    color:#0a0b0c!important;margin:0!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw1677-products .ssw1677-section-head :is(small,p){
    display:none!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw1677-products-grid{
    display:flex!important;flex-wrap:nowrap!important;gap:9px!important;
    overflow-x:auto!important;scroll-snap-type:x mandatory!important;
    padding:3px 2px 12px!important;scrollbar-width:none!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw1677-products-grid>.ssw1677-product{
    scroll-snap-align:start!important;flex:0 0 138px!important;
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    height:164px!important;max-height:164px!important;min-height:164px!important;
    padding:0!important;margin:0!important;
    border-radius:14px!important;background:#fff!important;border:1px solid #e5e8ec!important;
    box-shadow:0 3px 9px #0002!important;overflow:hidden!important;position:relative!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw1677-products-grid .ssw1677-product-photo{
    display:block!important;width:100%!important;height:94px!important;min-height:94px!important;
    border-radius:0!important;overflow:hidden!important;background:#fff!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw1677-products-grid .ssw1677-product-photo img{
    display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;
    object-position:center!important;transform:none!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw1677-products-grid .ssw1677-product-copy{
    display:flex!important;flex-direction:column!important;align-items:flex-start!important;
    gap:2px!important;padding:5px 28px 7px 8px!important;overflow:hidden!important;min-height:0!important;
    color:#101114!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw1677-products-grid .ssw1677-product-copy strong{
    font-size:11px!important;line-height:1.1!important;font-weight:850!important;
    max-height:27px!important;overflow:hidden!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw1677-products-grid .ssw1677-product-copy>small{display:none!important}
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw1677-products-grid .ssw1677-product-price{
    font-size:13px!important;font-weight:950!important;color:#090909!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .ssw1677-products-grid .ssw1677-plus{
    display:grid!important;place-items:center!important;position:absolute!important;
    right:7px!important;bottom:8px!important;
    width:29px!important;height:29px!important;border-radius:50%!important;
    font-size:21px!important;font-weight:950!important;
    background:#ffd000!important;color:#000!important;box-shadow:0 2px 6px #0002!important;
  }
  /* Barra fija igual de clara que el ejemplo: Inicio, Buscar, Carrito, Favoritos, Cuenta. */
  html body#ssRacingPage #mainContainer.ss-client-modern .ss-client-bottom{
    display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
    align-items:center!important;gap:0!important;
    position:fixed!important;bottom:0!important;left:0!important;right:0!important;
    width:100%!important;max-width:none!important;height:70px!important;min-height:70px!important;max-height:70px!important;
    z-index:990!important;margin:0!important;
    padding:7px 4px calc(5px + env(safe-area-inset-bottom))!important;
    box-sizing:border-box!important;
    border-radius:20px 20px 0 0!important;border:1px solid #303030!important;
    background:linear-gradient(165deg,#101113,#000)!important;
    box-shadow:0 -4px 13px #0005!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern .ss-client-bottom>button{
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
    gap:2px!important;margin:0!important;padding:3px 0!important;min-width:0!important;width:100%!important;
    height:56px!important;min-height:0!important;max-height:56px!important;
    border:0!important;background:transparent!important;color:#fff!important;
    font-size:10px!important;line-height:1.15!important;font-weight:750!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern .ss-client-bottom>button svg{
    width:23px!important;height:23px!important;min-width:23px!important;min-height:23px!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern .ss-client-bottom>button[aria-current="page"]{
    color:#ffd000!important;background:transparent!important;border:0!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern .ss-client-bottom>button[aria-current="page"] span{
    color:#ffd000!important;
  }
  /* No bloquear gestos y respetar accesibilidad. */
  html body#ssRacingPage #mainContainer.ss-client-modern :is(button,a,input):focus-visible{
    outline:2px solid #dcab00!important;outline-offset:2px!important;
  }
  @media (prefers-reduced-motion:reduce){
    html body#ssRacingPage #mainContainer.ss-client-modern .restaurant-card{transition:none!important}
  }
}
/* En teléfonos muy estrechos, mantener nombres y botones dentro de tarjeta. */
@media (max-width:365px){
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .restaurant-grid.ssw146-restaurants>.restaurant-card{
    grid-template-columns:minmax(0,41%) minmax(0,59%)!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .restaurant-grid.ssw146-restaurants .ss-client-restaurant-body{
    padding-left:8px!important;gap:3px!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .restaurant-grid.ssw146-restaurants .ssw1677-merchant-products>.ssw1677-merchant-item{
    grid-template-columns:39px minmax(0,1fr) 19px!important;gap:2px!important;
  }
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .restaurant-grid.ssw146-restaurants .ssw1677-merchant-item>img,
  html body#ssRacingPage #mainContainer.ss-client-modern[data-client-page="home"] .restaurant-grid.ssw146-restaurants .ssw1677-merchant-item>picture.ss1716-photo-window{
    width:39px!important;min-width:39px!important;max-width:39px!important;
  }
}

/* Contador del carrito construido con el estado local, sin consultas adicionales. */
@media(max-width:780px){
 html body#ssRacingPage #mainContainer.ss-client-modern .ss-client-bottom>button.ssw1722-cart-nav{position:relative!important;}
 html body#ssRacingPage #mainContainer.ss-client-modern .ss-client-bottom .ssw1722-cart-count{
  position:absolute!important;right:calc(50% - 26px)!important;top:0!important;
  display:grid!important;place-items:center!important;
  width:17px!important;height:17px!important;min-width:17px!important;min-height:17px!important;
  border-radius:50%!important;background:#fa2933!important;color:#fff!important;
  border:1px solid #ffb7ba!important;font-size:10px!important;font-weight:900!important;
 }
}
