/* Both listing routes use the same gutters and stretch cards across each row. */
body .ef-home .pct_gv, body .row-flex.category-page:has(> .product-grid) {
  --card-gap: 24px;
  display: grid!important; grid-template-columns: repeat(3,minmax(0,1fr))!important;
  gap: var(--card-gap)!important; margin: 0!important; align-items: stretch;
}
body .row-flex.category-page:has(> .product-grid)::before,
body .row-flex.category-page:has(> .product-grid)::after { display: none; }
body .ef-home .pct_gv > .item, body .row-flex.category-page > .product-layout.product-grid {
  width: auto!important; max-width: none!important; min-width: 0; padding: 0!important; margin: 0!important;
}
body #content .row-flex.category-page .product-grid > .product-thumb,
body .ef-home .pct_gv > .item > .product-thumb {
  width: 100%; border-radius: 16px!important; overflow: hidden;
}
@media (max-width: 991px) {
  body .ef-home .pct_gv, body .row-flex.category-page:has(> .product-grid) {
    --card-gap: 16px;
    grid-template-columns: repeat(2,minmax(0,1fr))!important;
  }
}
@media (max-width: 480px) {
  body .ef-home .pct_gv, body .row-flex.category-page:has(> .product-grid) { --card-gap: 12px; row-gap: 16px!important; }
}
body .product-thumb .image > a.ef-gallery-track {
  display: flex!important; align-items: stretch; width: 100%; height: 100%; min-width: 0;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; touch-action: pan-x pan-y pinch-zoom; user-select: none;
}
.ef-gallery-track::-webkit-scrollbar { display: none; }
body .product-thumb .image > .ef-gallery-track > img {
  position: static!important; display: block; flex: 0 0 100%; min-width: 100%; max-width: 100%;
  scroll-snap-align: start; scroll-snap-stop: always; margin: 0!important;
}
body .product-thumb .image > .ef-gallery-track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.ef-gallery-dots {
  position: absolute; z-index: 2; left: 50%; bottom: 2px; transform: translateX(-50%);
  display: flex; align-items: center; max-width: calc(100% - 8px); padding: 0 3px;
  isolation: isolate;
}
.ef-gallery-dots::before {
  content: ""; position: absolute; z-index: -1; inset: 6px 0; pointer-events: none;
  background: rgba(255,254,247,.92); border-radius: 20px; box-shadow: 0 1px 4px #29301922;
}
.ef-gallery-dots button {
  display: grid; place-items: center; flex: 0 1 24px; width: 24px; height: 32px; min-height: 32px!important; min-width: 0;
  padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
}
.ef-gallery-dots button::before {
  content: ""; width: 6px; height: 6px; box-sizing: border-box; border: 1px solid #737c43; border-radius: 50%;
}
.ef-gallery-dots button[aria-current="true"]::before { background: #545f25; transform: scale(1.3); }
.ef-gallery-dots button:focus-visible, .ef-gallery-track:focus-visible { outline: 2px solid #545f25; outline-offset: -2px; }
