:root{--pg-red:#e30613;--pg-red-dark:#b9000b;--pg-black:#101010;--pg-soft:#f4f4f5;--pg-gold:#ffc928}
html{scroll-behavior:smooth}
body{background:var(--pg-soft)!important;color:#151515!important}

/* Categorías visuales */
.quick-cats.visual-cats{max-width:1040px!important;margin:0 auto 20px!important;gap:14px!important;background:transparent!important;padding:16px!important}
.quick-cats.visual-cats button{position:relative!important;min-height:168px!important;border:0!important;border-radius:18px!important;box-shadow:0 8px 24px rgba(0,0,0,.14)!important;transform:translateY(0);transition:transform .18s ease,box-shadow .18s ease!important}
.quick-cats.visual-cats button:active{transform:scale(.98)!important}
.quick-cats.visual-cats img{height:126px!important;filter:saturate(1.08) contrast(1.03)!important}
.quick-cats.visual-cats span{position:absolute!important;left:0;right:0;bottom:0;min-height:48px!important;color:#fff!important;background:linear-gradient(transparent,rgba(0,0,0,.92))!important;text-shadow:0 2px 5px #000!important;font-size:15px!important;letter-spacing:.35px!important;padding:24px 7px 8px!important}
.quick-cats.visual-cats button[data-cat-open="ofertas"]{box-shadow:0 0 0 3px var(--pg-gold),0 9px 25px rgba(227,6,19,.28)!important}
.quick-cats.visual-cats button[data-cat-open="ofertas"] span{background:linear-gradient(transparent,rgba(185,0,11,.98))!important}

/* Navegación horizontal que permanece visible */
.pg-sticky-cats{position:sticky;top:66px;z-index:800;display:flex;gap:8px;max-width:1060px;margin:0 auto 14px;padding:10px 12px;overflow-x:auto;overscroll-behavior-x:contain;background:rgba(16,16,16,.96);border-bottom:3px solid var(--pg-red);box-shadow:0 7px 18px rgba(0,0,0,.22);scrollbar-width:none;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.pg-sticky-cats::-webkit-scrollbar{display:none}
.pg-sticky-cats button{flex:0 0 auto;min-height:42px;padding:9px 15px;border:1px solid #555;border-radius:999px;background:#262626;color:#fff;font-size:14px;font-weight:900;white-space:nowrap;cursor:pointer}
.pg-sticky-cats button.active{background:var(--pg-red);border-color:#fff;box-shadow:0 0 0 2px var(--pg-red)}

/* Carta y tarjetas */
#carta{max-width:1080px!important;margin:0 auto!important;padding:16px!important}
#carta>h2{font-size:clamp(28px,5vw,42px)!important;letter-spacing:-.6px!important;text-align:center!important;margin:8px 0 18px!important}
.cat{margin:0 0 16px!important;border:1px solid #dedede!important;border-radius:20px!important;background:#fff!important;box-shadow:0 7px 22px rgba(0,0,0,.08)!important;overflow:hidden!important}
.cat>summary{padding:18px!important;background:var(--pg-black)!important;color:#fff!important;font-size:20px!important;font-weight:1000!important;letter-spacing:.3px!important;cursor:pointer!important}
.cat[data-cat="ofertas"]{border:3px solid var(--pg-gold)!important;box-shadow:0 8px 26px rgba(227,6,19,.18)!important}
.cat[data-cat="ofertas"]>summary{background:linear-gradient(135deg,var(--pg-red-dark),var(--pg-red))!important;color:#fff!important}
.products{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;padding:15px!important;background:#f7f7f8!important}
.product{position:relative!important;display:grid!important;grid-template-columns:104px minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;column-gap:14px!important;row-gap:9px!important;align-items:center!important;min-height:132px!important;margin:0!important;padding:14px!important;border:1px solid #e1e1e1!important;border-radius:18px!important;background:#fff!important;box-shadow:0 5px 16px rgba(0,0,0,.07)!important;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease!important;box-sizing:border-box!important}
.product:active{transform:scale(.993)!important}
.product .thumb,.product .photo-thumb{grid-column:1!important;grid-row:1/span 2!important;width:104px!important;height:104px!important;min-width:104px!important;max-width:104px!important;border-radius:15px!important;overflow:hidden!important;background:#eee!important;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)!important}
.product .thumb img,.product .photo-thumb img,.product img{width:104px!important;height:104px!important;max-width:104px!important;max-height:104px!important;object-fit:cover!important;display:block!important}
.product>div:nth-child(2){grid-column:2!important;grid-row:1!important;min-width:0!important;align-self:start!important}
.product h3{margin:0 0 5px!important;font-size:18px!important;line-height:1.15!important;color:#111!important}
.product p{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden!important;margin:0 0 8px!important;color:#626262!important;font-size:14px!important;line-height:1.32!important}
.product strong{display:inline-block!important;color:var(--pg-red)!important;font-size:19px!important;line-height:1.1!important;font-weight:1000!important}
.product .size-box{grid-column:2!important;grid-row:2!important;display:flex!important;flex-wrap:wrap!important;gap:7px!important;margin:0!important}
.product.variant-product .size-box{grid-column:2/-1!important}
.product .size-option,.product .opcion-unidad{min-height:38px!important;border:2px solid #ddd!important;border-radius:11px!important;background:#f5f5f5!important;color:#202020!important;font-size:14px!important;font-weight:900!important;padding:8px 10px!important}
.product .size-option.active,.product .opcion-unidad.active{border-color:var(--pg-red)!important;background:#fff0f1!important;color:var(--pg-red-dark)!important}
.product>.add{grid-column:3!important;grid-row:1/span 2!important;align-self:center!important;min-width:54px!important;min-height:54px!important;border:0!important;border-radius:16px!important;background:linear-gradient(145deg,var(--pg-red),var(--pg-red-dark))!important;color:#fff!important;font-size:17px!important;font-weight:1000!important;padding:12px 14px!important;box-shadow:0 6px 14px rgba(227,6,19,.3)!important;cursor:pointer!important}
.cat[data-cat="ofertas"] .product{border:2px solid #ffd64e!important;background:linear-gradient(145deg,#fffdf2,#fff)!important}

/* Carrito inferior */
#cartBar.cart-bar{position:fixed!important;left:50%!important;right:auto!important;bottom:82px!important;transform:translateX(-50%)!important;z-index:950!important;width:min(620px,calc(100% - 24px))!important;min-height:58px!important;border:2px solid #fff!important;border-radius:18px!important;background:linear-gradient(135deg,var(--pg-red),var(--pg-red-dark))!important;color:#fff!important;font-size:17px!important;font-weight:1000!important;box-shadow:0 10px 28px rgba(0,0,0,.38)!important;padding:12px 18px!important}
#cartBar .pg-cart-count{display:inline-block;margin:0 6px;padding:4px 9px;border-radius:999px;background:#fff;color:var(--pg-red-dark);font-size:14px;vertical-align:middle}
#cartTotal{font-size:19px!important}

@media(min-width:701px){.quick-cats.visual-cats button:hover,.product:hover{transform:translateY(-2px)!important;box-shadow:0 11px 28px rgba(0,0,0,.13)!important;border-color:#ccc!important}}
@media(max-width:760px){
  .quick-cats.visual-cats{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:12px!important;padding-bottom:24px!important}
  .quick-cats.visual-cats button{min-height:144px!important}.quick-cats.visual-cats img{height:144px!important}
  .products{grid-template-columns:1fr!important;gap:11px!important;padding:11px!important}
  .pg-sticky-cats{top:62px;margin-bottom:10px}
}
@media(max-width:430px){
  #carta{padding:8px!important}
  .cat>summary{padding:16px!important;font-size:19px!important}
  .product{grid-template-columns:94px minmax(0,1fr) auto!important;column-gap:11px!important;min-height:122px!important;padding:11px!important}
  .product .thumb,.product .photo-thumb,.product .thumb img,.product .photo-thumb img,.product img{width:94px!important;height:94px!important;min-width:94px!important;max-width:94px!important;max-height:94px!important}
  .product h3{font-size:17px!important}.product p{font-size:13px!important}.product strong{font-size:18px!important}
  .product>.add{min-width:48px!important;min-height:50px!important;padding:10px!important;border-radius:14px!important}
  #cartBar.cart-bar{bottom:76px!important;min-height:56px!important;font-size:16px!important}
}
@media(max-width:365px){.product{grid-template-columns:82px minmax(0,1fr) auto!important}.product .thumb,.product .photo-thumb,.product .thumb img,.product .photo-thumb img,.product img{width:82px!important;height:82px!important;min-width:82px!important;max-width:82px!important;max-height:82px!important}.product p{display:none!important}}

/* PIZZAGOO V180 - barra inferior estable en Chrome/Safari movil */
html{
  min-height:100%;
  -webkit-text-size-adjust:100%;
}
body{
  min-height:100%;
  padding-bottom:calc(92px + env(safe-area-inset-bottom, 0px))!important;
}
.bottom-nav{
  position:fixed!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  width:100%!important;
  height:calc(82px + env(safe-area-inset-bottom, 0px))!important;
  padding:0 0 env(safe-area-inset-bottom, 0px)!important;
  margin:0!important;
  z-index:2147483000!important;
  box-sizing:border-box!important;
  transform:translate3d(0,0,0)!important;
  -webkit-transform:translate3d(0,0,0)!important;
  backface-visibility:hidden!important;
  -webkit-backface-visibility:hidden!important;
  will-change:transform!important;
  isolation:isolate!important;
}
#cartBar.cart-bar{
  bottom:calc(82px + env(safe-area-inset-bottom, 0px))!important;
}
@media(max-width:430px){
  #cartBar.cart-bar{bottom:calc(76px + env(safe-area-inset-bottom, 0px))!important;}
}
