html {
  scroll-behavior: smooth;
}

:root {
  --header-height: 0px;
  --header-topbar-height: 0px;
}

html,
body {
  font-family: var(--site-font-sans);
  overflow-x: hidden;
}

body.is-menu-open {
  overflow: hidden;
}

.pink-glow {
  text-shadow: 0 0 20px rgba(255, 0, 127, 0.4);
}

.pink-border {
  border-color: #ff007f;
}

.pink-bg {
  background-color: #ff007f;
}

.writing-mode-vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.text-xs,
.text-\[9px\],
.text-\[10px\],
.text-\[11px\],
.text-\[12px\],
.text-\[13px\] {
  font-size: 14px !important;
  line-height: 1.45 !important;
}

.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-1 {
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #ff007f;
}

::-webkit-scrollbar-thumb:hover {
  background: #e60072;
}

@keyframes scan-line {
  0% {
    top: -10%;
  }

  100% {
    top: 110%;
  }
}

@keyframes soft-blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

@keyframes soft-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes slow-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.animate-scan-line {
  top: -10%;
  animation: scan-line 8s linear infinite;
}

.animate-soft-blink {
  animation: soft-blink 1.5s ease-in-out infinite;
}

.animate-soft-float {
  animation: soft-float 4s ease-in-out infinite;
}

.animate-slow-spin {
  animation: slow-spin 20s linear infinite;
}

[data-mobile-menu] {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

[data-mobile-menu].is-open {
  max-height: calc(100vh - var(--header-topbar-height, 0px));
  max-height: calc(100svh - var(--header-topbar-height, 0px));
  opacity: 1;
  overflow-y: auto;
  pointer-events: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

[data-header-topbar] {
  max-height: 12rem;
  opacity: 1;
  overflow: hidden;
  transition:
    max-height 0.25s ease,
    opacity 0.2s ease,
    border-color 0.25s ease;
}

@media (min-width: 1024px) {
  [data-fixed-header].is-condensed [data-header-topbar] {
    display: none;
  }
}

[data-menu-button] .icon-close {
  display: none;
}

[data-menu-button][aria-expanded="true"] .icon-menu {
  display: none;
}

[data-menu-button][aria-expanded="true"] .icon-close {
  display: block;
}

[data-products-menu-group].is-open [data-products-menu-panel] {
  opacity: 1;
  pointer-events: auto;
}

[data-back-to-top] {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

[data-back-to-top].is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

[data-product-tab-content] {
  display: none;
}

[data-product-tab-content].is-active {
  display: block;
}

.product-richtext > * + * {
  margin-top: 1rem;
}

.product-richtext p,
.product-richtext li {
  color: rgba(0, 0, 0, 0.68);
  line-height: 1.9;
}

.product-richtext h1,
.product-richtext h2,
.product-richtext h3,
.product-richtext h4,
.product-richtext h5,
.product-richtext h6 {
  color: #111827;
  font-weight: 600;
  line-height: 1.35;
}

.product-richtext img {
  display: block;
  max-width: 100%;
  height: auto;
}

.product-richtext ul,
.product-richtext ol {
  padding-left: 1.25rem;
}

[data-product-toolbar] {
  top: var(--header-height, 0px);
}

[data-primary-category-buttons],
[data-secondary-category-buttons] {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
}

[data-primary-category-buttons] > *,
[data-secondary-category-buttons] > * {
  scroll-snap-align: start;
}

[data-product-filter-backdrop] {
  display: none;
}

[data-product-filter-backdrop].is-open {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 54;
  background: rgba(15, 23, 42, 0.38);
}

[data-product-mobile-panel] {
  display: none;
}

[data-product-mobile-panel].is-open {
  display: block;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  max-height: min(78vh, 680px);
  overflow-y: auto;
  border-top: 1px solid #e5e7eb;
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
  background: #fff;
  padding: 1.25rem 1rem calc(1rem + env(safe-area-inset-bottom));
  box-shadow: 0 -18px 48px rgba(15, 23, 42, 0.16);
}

[data-product-filter-toggle][aria-expanded="true"] svg {
  transform: rotate(180deg);
}

@media (min-width: 1024px) {
  [data-product-mobile-panel] {
    display: block !important;
    position: static;
    max-height: none;
    overflow: visible;
    border-top: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }

  [data-product-filter-backdrop] {
    display: none !important;
  }
}

[data-sort-menu] {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

[data-sort-group]:hover [data-sort-menu],
[data-sort-group].is-open [data-sort-menu] {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

[data-home-hero] {
  --hero-media-ratio: 16 / 9;
}

.hero-aspect-spacer {
  aspect-ratio: var(--hero-media-ratio);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  overflow: hidden;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide-image {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: center;
}

.hero-copy-shadow {
  text-shadow:
    0 2px 14px rgba(0, 0, 0, 0.55),
    0 8px 28px rgba(0, 0, 0, 0.35);
}

.home-categories-section {
  position: relative;
  overflow: hidden;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.home-categories-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0, rgba(0, 0, 0, 0.04) 40%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0, rgba(0, 0, 0, 0.02) 36%, rgba(0, 0, 0, 0.2) 100%);
  opacity: 1;
  pointer-events: none;
}

.home-categories-section > * {
  position: relative;
  z-index: 1;
}

[data-hero-pagination] [data-hero-dot] {
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.4);
  transition:
    width 0.3s ease,
    background-color 0.3s ease;
}

[data-hero-pagination] [data-hero-dot].is-active {
  background: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
