/* Three rows of new products; offers remain a single scrollable row. */
body #sidebar-tienda #home-new-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; }
@media(min-width:801px) and (max-width:1439px) {
  body #sidebar-tienda #home-new-grid>.home-product:nth-child(n+13) { display:none; }
}
@media(min-width:1440px) {
  body #sidebar-tienda #home-new-grid { grid-template-columns:repeat(5,minmax(0,1fr)); }
}
body #sidebar-tienda #home-offers-grid {
  display:grid; grid-template-columns:none; grid-auto-flow:column;
  grid-auto-columns:calc((100% - 72px)/4); gap:24px;
  overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory;
  padding-bottom:14px; scrollbar-width:thin; align-items:stretch;
}
body #sidebar-tienda #home-offers-grid>.home-product { scroll-snap-align:start; min-width:0; }
body #sidebar-tienda .home-offer-controls { display:flex; justify-content:flex-end; gap:8px; margin:-4px 0 12px; }
body #sidebar-tienda .home-offer-controls button { width:44px; height:44px; border:1px solid #d5e1f3; background:#fff; color:#173e75; border-radius:12px; font-size:28px; cursor:pointer; }
body #sidebar-tienda #home-offers-grid:focus-visible { outline:2px solid #2563eb; outline-offset:4px; }
@media(min-width:1440px) {
  body #sidebar-tienda #home-offers-grid { grid-auto-columns:calc((100% - 96px)/5); }
}
@media(max-width:800px) {
  body #sidebar-tienda #home-new-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  body #sidebar-tienda #home-offers-grid { grid-auto-columns:78%; gap:12px; }
}

/* Keep card geometry fixed while highlighting the hovered product. */
@media(hover:hover) and (pointer:fine) {
  body #sidebar-tienda .home-product:not(.home-product-placeholder):hover {
    border-color:#2563eb;
    box-shadow:0 0 0 3px #2563eb24,0 8px 22px #1d4ed812;
  }
}
body #sidebar-tienda .home-product:focus-within {
  border-color:#2563eb;
  box-shadow:0 0 0 3px #2563eb24;
}
@media(prefers-reduced-motion:no-preference) {
  body #sidebar-tienda .home-product { transition:border-color .18s ease,box-shadow .18s ease; }
}

body #sidebar-tienda .home-product:not(.home-product-placeholder) { cursor:pointer; }
