/* SMT mobile UX: wishlist in Menu, category row arrows, edge fades.
   WhatsApp size is handled in smt-whatsapp.css. */

.smt-offcanvas-wishlist__link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:#111827;
  font-size:16px;
  font-weight:600;
  line-height:1.3;
  text-decoration:none;
}
.smt-offcanvas-wishlist__link:hover{color:#2a55a5}
.smt-offcanvas-wishlist__link .icon,
.smt-offcanvas-wishlist__link svg{
  width:22px;
  height:22px;
  flex:0 0 22px;
}

/* Category row: stop the auto-marquee and make it a swipeable scroller with arrows. */
.smt-cat-scroll{
  position:relative;
  margin-bottom:36px;
}
.smt-cat-scroll .smt-cat-marquee,
.smt-cat-scroll .tp-product-categories-slider{
  margin-bottom:0 !important;
  overflow:visible;
  -webkit-mask-image:none !important;
  mask-image:none !important;
}
.smt-cat-scroll__track,
.smt-cat-scroll .swiper-wrapper{
  display:flex !important;
  width:auto !important;
  max-width:100%;
  align-items:flex-start;
  gap:28px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x proximity;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
  animation:none !important;
  transform:none !important;
  transition:none !important;
  will-change:auto;
  scrollbar-width:none;
  padding:4px 8px 8px;
}
.smt-cat-scroll .swiper-wrapper::-webkit-scrollbar{display:none}
.smt-cat-scroll .swiper-slide{
  scroll-snap-align:start;
  flex-shrink:0;
}
.smt-cat-scroll__fade{
  position:absolute;
  top:0;
  bottom:12px;
  width:40px;
  pointer-events:none;
  z-index:2;
  opacity:0;
  transition:opacity .2s ease;
}
.smt-cat-scroll__fade.is-prev{
  left:0;
  background:linear-gradient(90deg,#fff 0%,rgba(255,255,255,0) 100%);
}
.smt-cat-scroll__fade.is-next{
  right:0;
  background:linear-gradient(270deg,#fff 0%,rgba(255,255,255,0) 100%);
}
.smt-cat-scroll.has-prev .smt-cat-scroll__fade.is-prev,
.smt-cat-scroll.has-next .smt-cat-scroll__fade.is-next{opacity:1}

.smt-cat-scroll__nav{
  position:absolute;
  top:44px;
  z-index:3;
  width:36px;
  height:36px;
  border:0;
  border-radius:50%;
  background:#2a55a5;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  padding:0;
  box-shadow:0 4px 12px rgba(12,85,170,.28);
  transition:opacity .2s ease, background-color .15s ease, transform .15s ease;
}
.smt-cat-scroll__nav:hover{background:#1e4080}
.smt-cat-scroll__nav:focus-visible{outline:2px solid #2a55a5;outline-offset:2px}
.smt-cat-scroll__nav.is-prev{left:0}
.smt-cat-scroll__nav.is-next{right:0}
.smt-cat-scroll__nav[hidden]{display:none !important}
.smt-cat-scroll__nav svg{display:block}

@media (max-width:1199px){
  .smt-cat-scroll{margin-bottom:28px}
  .smt-cat-scroll .swiper-wrapper{gap:22px}
  .smt-cat-scroll__nav{top:38px}
}
@media (max-width:767px){
  .smt-cat-scroll{margin-bottom:22px}
  .smt-cat-scroll .swiper-wrapper{gap:16px;padding:4px 0 8px}
  .smt-cat-scroll .swiper-slide{width:100px;flex-basis:100px}
  .smt-cat-scroll .tp-product-category-thumb a{width:72px;height:72px}
  .smt-cat-scroll .tp-product-category-title{max-width:96px}
  .smt-cat-scroll__nav{
    width:32px;
    height:32px;
    top:30px;
  }
  .smt-cat-scroll__fade{width:32px}
}
@media (prefers-reduced-motion:reduce){
  .smt-cat-scroll .swiper-wrapper{scroll-behavior:auto}
}
