/* Max Store - custom styles */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
  overflow-x: hidden;
  max-width: 100%;
}
body {
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}
::selection {
  background: #ff6b00;
  color: #fff;
}
.swiper {
  max-width: 100%;
}
.no-scrollbar {
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Desktop: remove side padding from all sections */
@media (min-width: 1024px) {
  .max-w-7xl {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Mobile + tablet */
@media (max-width: 1023px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }
}

/* Compact product cards on phones (all product sections) */
@media (max-width: 639px) {
  [data-products] .swiper-slide > div {
    padding: 0.5rem;
    border-radius: 1.1rem;
  }
  [data-products] .swiper-slide a.relative {
    border-radius: 0.85rem;
  }
  [data-products] h3 {
    font-size: 0.85rem;
  }
  [data-products] .font-head {
    font-size: 0.95rem;
  }
  [data-products] s {
    font-size: 0.7rem;
  }
  [data-products] .swiper-slide button[type="button"] {
    padding: 0.6rem 0;
    font-size: 0.75rem;
  }
  [data-products] .swiper-slide a.relative span.absolute {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
  }
}

/* Categories: tidy card sizing on small screens */
@media (max-width: 639px) {
  #categories .swiper-slide h3 {
    font-size: 1rem;
  }
  #categories .swiper-slide > div {
    gap: 1rem;
  }
}

/* Mobile tab bar */
.tab-item {
  position: relative;
  color: #94a3b8;
  transition: color 0.25s;
}
.tab-item .tab-dot {
  position: absolute;
  top: 0;
  left: 50%;
  height: 3px;
  width: 26px;
  transform: translateX(-50%) scaleX(0);
  border-radius: 0 0 9999px 9999px;
  background: #ff6b00;
  transition: transform 0.25s;
}
.tab-item.active {
  color: #ff6b00;
}
.tab-item.active .tab-dot {
  transform: translateX(-50%) scaleX(1);
}
