/* === Storefront common styles === */

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, sans-serif;
}

.content-prose {
  color: rgb(71 85 105);
  font-size: 0.975rem;
  line-height: 1.8;
}

.content-prose > :first-child {
  margin-top: 0;
}

.content-prose > :last-child {
  margin-bottom: 0;
}

.content-prose h1,
.content-prose h2,
.content-prose h3,
.content-prose h4 {
  margin: 1.35rem 0 0.75rem;
  color: rgb(15 23 42);
  font-weight: 800;
  line-height: 1.25;
}

.content-prose h2 {
  font-size: 1.45rem;
}

.content-prose h3 {
  font-size: 1.2rem;
}

.content-prose p,
.content-prose ul,
.content-prose ol,
.content-prose blockquote,
.content-prose pre {
  margin: 0.85rem 0;
}

.content-prose ul,
.content-prose ol {
  padding-left: 1.25rem;
}

.content-prose a {
  color: rgb(67 56 202);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.content-prose blockquote {
  border-left: 3px solid rgb(129 140 248);
  padding-left: 1rem;
  color: rgb(51 65 85);
}

.content-prose img {
  display: block;
  max-width: 100%;
  border-radius: 1.25rem;
}

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

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* === Toast notifications === */

.toast-container {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  width: auto;
  pointer-events: none;
}

.toast-item {
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.12);
  backdrop-filter: blur(10px);
  animation: toastIn 0.28s ease-out both;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Pulse animation (search/loading) === */

@keyframes pulseSoft {
  0% {
    transform: scaleX(1);
    opacity: 0.25;
  }
  50% {
    transform: scaleX(1.08);
    opacity: 0.7;
  }
  100% {
    transform: scaleX(1);
    opacity: 0.25;
  }
}
.search-pulse-soft {
  animation: pulseSoft 1.35s ease-in-out infinite;
}

/* === Hero carousel (index) === */

.hero-slide-layer {
  transition: opacity 0.55s ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide-layer {
    transition: none;
  }
}

/* === Lightbox ===  */

.cursor-zoom-in {
  cursor: zoom-in;
}

/* === Mobile menu drawer === */

#mobileMenuDrawer [data-panel] {
  transition: transform 0.3s ease;
}
#mobileMenuBackdrop {
  transition: opacity 0.3s ease;
}

/* === Mobile filter drawer === */

body.filter-drawer-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

.filter-drawer-panel:not([open]) {
  margin: 0;
  padding: 0;
  border: none;
  height: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.filter-drawer-header {
  display: none;
}

@media (max-width: 1023px) {
  .filter-drawer-panel[open] {
    position: fixed;
    inset: 0;
    z-index: 50;
    margin: 0;
    border-radius: 0;
    border: none;
    background: white;
    box-shadow: none;
    overflow: hidden;
    animation: filterDrawerSlideUp 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .filter-drawer-panel[open] .filter-drawer-body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  .filter-drawer-panel[open] .filter-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgb(241 245 249);
    background: white;
    flex-shrink: 0;
  }

  .filter-drawer-panel[open] #catalogSidebar {
    flex: 1;
    min-height: 0;
    max-height: none;
    border-top: none;
    padding-bottom: 0;
    overflow: hidden;
  }

  .filter-drawer-panel[open] .catalog-sidebar-scroll {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }
}

@keyframes filterDrawerSlideUp {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Catalog sidebar === */

.catalog-sidebar .sidebar-zone-rule {
  height: 1px;
  margin: 0.125rem 0 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgb(203 213 225 / 0.72) 18%,
    rgb(203 213 225 / 0.72) 82%,
    transparent 100%
  );
}

.catalog-sidebar .catalog-sidebar-action-dock {
  box-shadow: 0 -12px 24px -20px rgba(15, 23, 42, 0.14);
}

.catalog-sidebar .sidebar-facet-label {
  position: relative;
}

/* === Baseline interactive transitions === */

button,
[role="button"],
a,
input,
select,
textarea,
summary {
  transition-property: color, background-color, border-color, box-shadow, opacity, transform;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Bottom navigation bar (mobile) === */

#bottomNav {
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 -1px 4px 0 rgba(0, 0, 0, 0.04);
}

/* === Bottom-sheet modal (mobile ≤639px) === */

@media (max-width: 639px) {
  #variantSelectorBlock .variant-option {
    padding-inline: 0.875rem;
  }

  #variantSelectorBlock [data-field="color"] .variant-option {
    width: 100%;
    max-width: 6.5rem;
  }

  #variantSelectorBlock [data-field="color"] .variant-option span:last-child {
    max-width: 100%;
  }

  #mobileSelectionSummary,
  #stickyCta {
    box-shadow: 0 10px 28px -22px rgba(15, 23, 42, 0.42);
  }

  .bottom-sheet-backdrop {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .bottom-sheet-dialog {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 85vh;
    border-radius: 1.5rem 1.5rem 0 0 !important;
    margin: 0;
    animation: bottomSheetUp 0.3s ease-out;
  }
  .bottom-sheet-dialog::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    margin: 10px auto 8px;
    border-radius: 9999px;
    background: #cbd5e1;
    flex-shrink: 0;
  }
}

@keyframes bottomSheetUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
