/* SrinakornGem V6.22.2 — mobile safe-area category/sort/search overlays. */
@media(max-width:760px){
 .catalog-minimal .catalog-quickbar .catalog-menu-anchor .catalog-popover{
  position:fixed!important;inset-inline:auto!important;
  left:max(12px,env(safe-area-inset-left))!important;
  right:max(12px,env(safe-area-inset-right))!important;
  top:var(--sg6222-top,160px)!important;
  width:auto!important;max-width:none!important;
  box-sizing:border-box!important;
  max-height:min(68dvh,calc(100dvh - var(--sg6222-top,160px) - 12px));
  overflow:hidden;
 }
 .catalog-minimal .catalog-popover .catalog-category-options{
  max-height:min(52dvh,calc(100dvh - var(--sg6222-top,160px) - 88px));
  overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;
 }
 .catalog-minimal .catalog-option{min-width:0;gap:8px}
 .catalog-minimal .catalog-option span:first-child{min-width:0;overflow-wrap:anywhere}
 .catalog-minimal .catalog-option small{flex-shrink:0}
}
/* V6272.7: manual touch swipe with up to three clickable position dots; desktop hover unchanged. */
@media(hover:none) and (pointer:coarse){
 .catalog-grid .product-thumb{position:relative;overflow:hidden;touch-action:pan-y pinch-zoom}
 .catalog-grid .product-thumb .sg222-mobile-image{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff;pointer-events:none;opacity:0;transition:opacity .28s ease}
 .catalog-grid .product-card:hover .product-thumb img{transform:none}
 .catalog-grid .sg222-mobile-dots{position:relative;display:flex;gap:0;align-items:center;justify-content:center;height:28px;margin-top:-28px;z-index:5;width:max-content;max-width:100%;margin-left:auto;margin-right:auto}
 .catalog-grid .sg222-mobile-dot{appearance:none;-webkit-appearance:none;border:0;cursor:pointer;background:transparent;width:26px;height:28px;display:grid;place-items:center;padding:0;margin:0;touch-action:manipulation}
 .catalog-grid .sg222-mobile-dot::before{content:"";display:block;width:6px;height:6px;border-radius:50%;background:#d2c7b7;transition:background .18s ease}
 .catalog-grid .sg222-mobile-dot.active::before{background:#98713b}
 .catalog-grid .sg222-mobile-dot:focus-visible{outline:2px solid #98713b;outline-offset:-3px;border-radius:10px}
}
@media(prefers-reduced-motion:reduce){.catalog-grid .product-thumb .sg222-mobile-image{transition:none!important}}
