/* Mobile-only stability fixes. Desktop design is unchanged. */
@media (max-width:800px) {
  html {scroll-behavior:auto!important;scroll-padding-top:14px!important;overflow-x:clip}
  body {overflow-x:clip;min-width:320px}
  header#site-header {position:relative!important;top:auto!important;height:auto!important;min-height:72px!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  header#site-header .header-row {height:72px;min-height:72px!important}
  header#site-header .brand img {display:block;width:110px;height:59px!important;max-height:59px!important;object-fit:contain}
  #nav {top:100%}
  .category-tile,.category-tile img,.product,.product img,.btn,.cart-nav,.nav a,.cart-announcement {transition:none!important;animation:none!important}
  .category-tile:hover,.category-tile:active,.category-tile:hover img,.category-tile:active img {transform:none!important}
  .category-tile:hover {box-shadow:0 4px 16px #20101b0a!important}
  .hero-grid {min-height:0}
  .hero-photo {height:clamp(220px,58vw,325px)!important;min-height:0!important;overflow:hidden}
  .hero-photo img {display:block;width:100%;height:100%;object-fit:cover}
  .category-grid {align-items:stretch}
  .category-tile {height:100%}
  .category-tile img {aspect-ratio:4/3;height:auto;object-fit:cover}
  .category-tile-copy {display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;min-height:76px}
  .category-tile-copy span {white-space:normal}
  .products {align-items:stretch;min-height:220px}
  .product-top .wine-photo {display:block;object-fit:contain}
  input,select,textarea,.drawer input,.drawer textarea,.catalogue-controls input[type=search],.catalogue-controls select {font-size:16px!important}
  .overlay .drawer {max-height:100dvh;overscroll-behavior:contain}
  .cart-announcement,.cart-announcement.show {transform:none!important}
}
@media (max-width:520px) {
  .hero-copy {padding-block:42px 38px}
  .hero h1 {line-height:1.08}
  .hero-actions {width:100%}
  .hero-photo {height:clamp(220px,59vw,300px)!important}
  .category-tile-copy {min-height:82px}
  .products {grid-template-columns:1fr}
  .product {display:grid;grid-template-columns:112px minmax(0,1fr);align-items:stretch;min-height:226px}
  .product-top {height:auto!important;min-height:226px;padding:13px 6px;align-self:stretch}
  .product-top .wine-photo {width:95px;height:163px;max-width:100%}
  .product-top:has(.tag) {justify-content:flex-start;gap:8px;padding-top:10px}
  .product-top .tags:has(.tag) {position:static;justify-content:center;text-align:center;flex:none}
  .product-top:has(.tag) .wine-photo {flex:none;object-position:center top}
  .product-body {min-width:0;padding:14px 12px}
  .product h3 {min-height:64px;line-height:1.26!important;margin-bottom:5px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .product .price {margin:auto 0 11px;min-height:31px;flex-wrap:wrap}
  .product-bottom {width:100%;display:grid;grid-template-columns:54px minmax(0,1fr);gap:7px;align-items:stretch}
  .product-bottom input {width:54px;min-height:44px}
  .product-bottom .btn {display:flex;justify-content:center;align-items:center;width:100%;min-height:44px;font-size:12px}
  #nav.open {max-height:calc(100dvh - 72px);overflow-y:auto}
  .cart-announcement {left:16px;right:16px;bottom:16px;text-align:center}
}
@media (prefers-reduced-motion:reduce) {
  html {scroll-behavior:auto!important}
  *,*::before,*::after {animation:none!important;transition:none!important}
}