/* NovaCommerce 427 - mobile/tablet storefront stabilization */
@media (max-width:760px){
  body.nc-front-397{overflow-x:hidden!important}
  body.nc-front-397 .nc-container{width:calc(100% - 20px)!important;max-width:none!important}

  /* Catalog cards */
  body.nc-front-397 .nc-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  body.nc-front-397 .nc-product-card{min-width:0!important;width:100%!important;border-radius:16px!important;overflow:hidden!important}
  body.nc-front-397 .nc-product-card .nc-product-media{padding:8px!important}
  body.nc-front-397 .nc-product-card .nc-product-info{padding:10px!important;min-width:0!important}
  body.nc-front-397 .nc-product-card h3{font-size:13.5px!important;line-height:1.28!important;min-height:2.55em!important;margin:4px 0 8px!important}
  body.nc-front-397 .nc-product-card .nc-price{font-size:20px!important;line-height:1.1!important;white-space:nowrap!important}
  body.nc-front-397 .nc-product-card .nc-card-tax{font-size:11px!important}
  body.nc-front-397 .nc-card-actions.mode-both{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:7px!important;width:100%!important;min-width:0!important;margin-top:10px!important}
  body.nc-front-397 .nc-card-actions>*{min-width:0!important;width:100%!important;margin:0!important}
  body.nc-front-397 .nc-card-actions form{display:block!important;min-width:0!important;width:100%!important}
  body.nc-front-397 .nc-card-button{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;max-width:100%!important;min-width:0!important;height:42px!important;min-height:42px!important;padding:0 5px!important;border-radius:11px!important;font-size:12px!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;box-sizing:border-box!important}
  body.nc-front-397 .t401-add-desktop{display:none!important}
  body.nc-front-397 .t401-add-mobile{display:inline!important;white-space:nowrap!important}

  /* Product buy box */
  body.nc-front-397 .nc-buybox.v3{padding:14px!important;border-radius:16px!important}
  body.nc-front-397 .nc-quick-trust-list{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;margin:14px 0!important}
  body.nc-front-397 .nc-quick-trust-list>div{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:2px!important;min-height:0!important;padding:10px 12px!important;border-radius:12px!important}
  body.nc-front-397 .nc-quick-trust-list b{font-size:14px!important;line-height:1.2!important;margin:0!important}
  body.nc-front-397 .nc-quick-trust-list span{font-size:12px!important;line-height:1.35!important;margin:0!important}
  body.nc-front-397 .nc-purchase-form .nc-purchase-row{display:grid!important;grid-template-columns:92px minmax(0,1fr)!important;gap:8px!important;align-items:stretch!important}
  body.nc-front-397 .nc-qty{height:46px!important;min-width:0!important}
  body.nc-front-397 .nc-add-cart-btn{height:46px!important;min-height:46px!important;font-size:14px!important}
  body.nc-front-397 .nc-product-whatsapp-wrap{margin:12px 0 0!important}
  body.nc-front-397 .nc-product-whatsapp-action{min-height:44px!important;width:auto!important;max-width:100%!important;padding:0 14px!important;border-radius:12px!important;font-size:13px!important}
  body.nc-front-397 .nc-product-secondary-actions{margin-top:8px!important}
  body.nc-front-397 .nc-product-secondary-actions .nc-secondary-btn{min-height:42px!important;font-size:13px!important;padding:0 12px!important}

  /* Mobile cart */
  body.nc-front-397 .t400-cart-page{padding-top:10px!important;padding-bottom:92px!important}
  body.nc-front-397 .t400-cart-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important}
  body.nc-front-397 .t400-cart-head h1{font-size:26px!important;line-height:1.1!important}
  body.nc-front-397 .t400-cart-item{display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;grid-template-areas:'media info' 'media total'!important;gap:7px 10px!important;align-items:start!important;padding:12px!important;border-radius:16px!important;position:relative!important}
  body.nc-front-397 .t400-cart-media{grid-area:media!important;width:72px!important;height:72px!important;border-radius:12px!important;align-self:start!important}
  body.nc-front-397 .t400-cart-info{grid-area:info!important;min-width:0!important;padding-right:0!important}
  body.nc-front-397 .t400-cart-name{font-size:13px!important;line-height:1.28!important;padding-right:0!important;-webkit-line-clamp:2!important;min-height:2.55em!important}
  body.nc-front-397 .t400-cart-unit{font-size:12px!important;line-height:1.2!important}
  body.nc-front-397 .t400-cart-line-total{grid-area:total!important;position:static!important;justify-self:end!important;font-size:15px!important;line-height:1.15!important;margin-top:0!important}
  body.nc-front-397 .t400-cart-qty{display:grid!important;grid-template-columns:40px 54px 40px minmax(72px,auto)!important;gap:6px!important;align-items:center!important;width:max-content!important;max-width:100%!important;margin-top:8px!important}
  body.nc-front-397 .t400-cart-qty button,body.nc-front-397 .t400-cart-qty input{box-sizing:border-box!important;margin:0!important;height:40px!important;min-height:40px!important;border-radius:10px!important}
  body.nc-front-397 .t400-cart-qty button{width:40px!important;min-width:40px!important;padding:0!important;font-size:18px!important}
  body.nc-front-397 .t400-cart-qty input{width:54px!important;min-width:54px!important;max-width:54px!important;padding:0 4px!important;text-align:center!important;font-size:16px!important}
  body.nc-front-397 .t400-cart-qty .t400-cart-update{width:auto!important;min-width:72px!important;max-width:none!important;padding:0 10px!important;font-size:11px!important;white-space:nowrap!important;overflow:visible!important}
  body.nc-front-397 .t400-cart-summary{padding:14px!important;border-radius:16px!important}
  body.nc-front-397 .t400-continue-link{display:inline-flex!important;align-items:center!important;min-height:42px!important;font-size:13px!important}

  /* Bottom navigation + product buy bar */
  body.nc-mobile-ui-399 .t399-mobile-dock{left:10px!important;right:10px!important;bottom:max(8px,env(safe-area-inset-bottom))!important;min-height:64px!important;height:64px!important;border-radius:18px!important;padding:2px 4px!important}
  body.nc-mobile-ui-399 .t399-mobile-dock a{min-height:58px!important;font-size:10px!important;gap:2px!important}
  body.nc-mobile-ui-399 .t399-mobile-dock a span{font-size:17px!important}
  body.nc-mobile-ui-399 .t399-mobile-dock a b{font-size:10px!important;line-height:1.05!important;white-space:nowrap!important}
  body.nc-mobile-ui-399 .t399-mobile-dock em{top:2px!important;right:calc(50% - 20px)!important;min-width:18px!important;height:18px!important;font-size:10px!important}
  body.nc-mobile-ui-399 .t399-mobile-buybar{bottom:calc(72px + env(safe-area-inset-bottom))!important;min-height:64px!important;padding:8px 10px!important;grid-template-columns:minmax(82px,.7fr) minmax(0,1.4fr)!important;gap:8px!important}
  body.nc-mobile-ui-399 .t399-buybar-price{min-width:0!important}
  body.nc-mobile-ui-399 .t399-buybar-price span{font-size:11px!important}
  body.nc-mobile-ui-399 .t399-buybar-price strong{font-size:16px!important}
  body.nc-mobile-ui-399 .t399-buybar-actions{grid-template-columns:minmax(0,.9fr) minmax(0,1.25fr)!important;gap:7px!important}
  body.nc-mobile-ui-399 .t399-buybar-actions button{height:46px!important;min-height:46px!important;padding:0 8px!important;border-radius:12px!important;font-size:13px!important;white-space:nowrap!important}
  body.nc-mobile-ui-399:has(.t399-mobile-buybar){padding-bottom:154px!important}
  body.nc-mobile-ui-399:not(:has(.t399-mobile-buybar)){padding-bottom:82px!important}
}

@media (min-width:761px) and (max-width:1180px){
  body.nc-front-397 .nc-container{width:min(calc(100% - 32px),1100px)!important}
  body.nc-front-397 .nc-product-grid{grid-template-columns:repeat(var(--cols-tablet,3),minmax(0,1fr))!important;gap:14px!important}
  body.nc-front-397 .nc-product-card .nc-product-info{padding:13px!important}
  body.nc-front-397 .nc-card-button{min-height:42px!important;font-size:13px!important;padding:0 10px!important}
  body.nc-front-397 .nc-product-topgrid{display:grid!important;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr)!important;gap:18px!important;align-items:start!important}
  body.nc-front-397 .nc-buybox.v3{padding:18px!important}
  body.nc-front-397 .nc-quick-trust-list{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
  body.nc-front-397 .nc-quick-trust-list>div{padding:10px!important;min-height:74px!important}
  body.nc-front-397 .nc-quick-trust-list b{font-size:13px!important}
  body.nc-front-397 .nc-quick-trust-list span{font-size:11px!important}
  body.nc-front-397 .t400-cart-layout{display:grid!important;grid-template-columns:minmax(0,1.4fr) minmax(280px,.6fr)!important;gap:18px!important;align-items:start!important}
  body.nc-front-397 .t400-cart-item{grid-template-columns:90px minmax(0,1fr) auto!important;gap:14px!important;padding:14px!important}
  body.nc-front-397 .t400-cart-media{width:90px!important;height:90px!important}
  body.nc-front-397 .t400-cart-qty{display:grid!important;grid-template-columns:38px 54px 38px auto!important;gap:6px!important;width:max-content!important}
  body.nc-front-397 .t400-cart-qty input{width:54px!important;max-width:54px!important;text-align:center!important}
  body.nc-front-397 .t400-cart-qty .t400-cart-update{width:auto!important;white-space:nowrap!important}
  body.nc-mobile-ui-399 .t399-mobile-dock,body.nc-mobile-ui-399 .t399-mobile-buybar{display:none!important}
  body.nc-mobile-ui-399{padding-bottom:0!important}
}

@media (max-width:360px){
  body.nc-front-397 .nc-product-grid{gap:7px!important}
  body.nc-front-397 .nc-product-card .nc-product-info{padding:8px!important}
  body.nc-front-397 .nc-card-button{font-size:11px!important;height:40px!important;min-height:40px!important}
  body.nc-front-397 .t400-cart-qty{grid-template-columns:38px 50px 38px 68px!important;gap:4px!important}
  body.nc-front-397 .t400-cart-qty button{width:38px!important;min-width:38px!important}
  body.nc-front-397 .t400-cart-qty input{width:50px!important;min-width:50px!important;max-width:50px!important}
  body.nc-front-397 .t400-cart-qty .t400-cart-update{min-width:68px!important;padding:0 6px!important;font-size:10px!important}
}
