/*
 * Enter any custom CSS here.
 * This file will not be overwritten by theme updates.
 *
 * ── Semantic class hooks (sa-*) ────────────────────────────────────────────
 * Every section, snippet and key element carries a stable `sa-` class you can
 * target with plain CSS — no Tailwind rebuild needed. These classes ship with
 * NO styles of their own; they exist purely as selectors for you to hook onto.
 *
 * Page scope   body.sa-tpl-<template>      e.g. .sa-tpl-product, .sa-tpl-shop
 *              body.sa-no-product-images / .sa-no-category-images when the
 *              matching theme setting is off
 * Chrome       .sa-header .sa-navbar .sa-footer
 *              .sa-navbar-link .sa-navbar-logo .sa-navbar-cart .sa-footer-link
 * Sections     .sa-<component>             e.g. .sa-hero, .sa-features, .sa-faq
 *   variant    .sa-<component>--<variant>  e.g. .sa-hero--split-media
 *   inner      .sa-<component>-title / -subtitle / -eyebrow / -media /
 *              -items / -item / -actions / -link / -price / -badge / -icon
 * Primitives   .sa-btn (+ .sa-btn--<variant>), .sa-section-header
 *              (.sa-section-title / -eyebrow / -subtitle),
 *              .sa-product-card (+ .sa-product-card--<style>,
 *              .sa-product-card-title / -price / -stock / -status / -badges),
 *              .sa-product-form + .sa-add-to-cart, .sa-product-gallery,
 *              .sa-cart-panel + .sa-cart-item, .sa-searchbar, .sa-pagination,
 *              .sa-breadcrumbs, .sa-toasts + .sa-toast, .sa-feedback-card
 *
 * Example — bigger hero heading only on the product page:
 *   .sa-tpl-product .sa-hero-title { font-size: 3rem; }
 * ───────────────────────────────────────────────────────────────────────────
*/


/* ── Emerald sword intro · compositor-friendly ──────────────────────────
   Motion is restricted to transforms and opacity: no width animations,
   animated shadows, blur filters or repeated JS frame calculations. */
.sa-intro {
  --sa-cut-width: min(138vmax, 1900px);
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #080a10;
  color: #fff;
  opacity: 1;
  visibility: visible;
  cursor: default;
  animation: sa-intro-exit .62s cubic-bezier(.22,.68,.2,1) 2.16s both;
}
.sa-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 52%, rgba(25,141,73,.13), transparent 60%);
  opacity: 0;
  animation: sa-intro-halo 1.18s ease-out .42s both;
}
.sa-intro-slash {
  position: absolute;
  width: var(--sa-cut-width);
  height: 12px;
  left: 50%;
  top: 49%;
  transform: translate3d(-50%,-50%,0) rotate(-33deg);
  pointer-events: none;
}
.sa-intro-trail,
.sa-intro-slash::before,
.sa-intro-slash::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
}
.sa-intro-trail {
  top: 5px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #1dbf6c 12%, #b6ffd1 73%, #eafff3);
  box-shadow: 0 0 10px rgba(53,242,123,.65), 0 0 20px rgba(25,166,91,.28);
  animation: sa-intro-cut .81s cubic-bezier(.16,.78,.22,1) .19s both;
}
.sa-intro-slash::before {
  top: 3px;
  height: 6px;
  background: linear-gradient(90deg, transparent, rgba(47,240,120,.1) 20%, rgba(49,235,121,.27) 80%, transparent);
  animation: sa-intro-cut .82s cubic-bezier(.16,.78,.22,1) .23s both;
}
.sa-intro-slash::after {
  top: 5px;
  height: 1px;
  background: rgba(225,255,237,.82);
  animation: sa-intro-cut .66s cubic-bezier(.16,.78,.22,1) .29s both;
}
.sa-intro-blade {
  position: absolute;
  left: 0;
  top: 1px;
  width: 66px;
  height: 10px;
  z-index: 1;
  border-radius: 2px 80% 80% 2px;
  background: linear-gradient(180deg, #eafff2 0%, #a0ffc6 43%, #28e67a 77%, #0f9d55 100%);
  box-shadow: 0 0 8px rgba(231,255,241,.8), 0 0 22px rgba(33,244,122,.67);
  opacity: 0;
  transform: translate3d(0,0,0) scaleX(.9);
  animation: sa-intro-blade-sweep .82s cubic-bezier(.16,.78,.22,1) .17s both;
}
.sa-intro-brand {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: min(90vw, 550px);
  opacity: 0;
  transform: translate3d(0,14px,0) scale(.97);
  animation: sa-intro-brand-in .66s cubic-bezier(.16,.9,.24,1) 1.04s both;
}
.sa-intro-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(180px,42vw);
  max-height: 108px;
  object-fit: contain;
}
.sa-intro-name {
  color: #fff;
  font-family: var(--ff-heading, ui-sans-serif), sans-serif;
  font-size: clamp(1.4rem, 4vw, 2.45rem);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(30,205,107,.22);
  overflow-wrap: anywhere;
}
.sa-intro-brand::after {
  content: "";
  width: 88px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #43ed88 50%, transparent);
  transform: scaleX(0);
  opacity: 0;
  animation: sa-intro-underline .54s cubic-bezier(.2,.75,.2,1) 1.48s both;
}
@keyframes sa-intro-cut {
  0% { transform: scaleX(0); opacity: 0; }
  12% { opacity: 1; }
  75% { opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
@keyframes sa-intro-blade-sweep {
  0% { transform: translate3d(0,0,0) scaleX(.8); opacity: 0; }
  9% { opacity: 1; }
  82% { opacity: 1; }
  100% { transform: translate3d(calc(var(--sa-cut-width) - 66px),0,0) scaleX(.7); opacity: 0; }
}
@keyframes sa-intro-halo {
  0% { opacity: 0; }
  42% { opacity: 1; }
  100% { opacity: .48; }
}
@keyframes sa-intro-brand-in {
  from { opacity: 0; transform: translate3d(0,14px,0) scale(.97); }
  to { opacity: 1; transform: translate3d(0,0,0) scale(1); }
}
@keyframes sa-intro-underline {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}
@keyframes sa-intro-exit {
  0% { opacity: 1; visibility: visible; }
  99% { opacity: 0; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}
/* Can be dismissed immediately by click or when opening in a hidden tab. */
.sa-intro.sa-intro--done {
  animation: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .36s ease-out, visibility .36s step-end;
}
/* Only hide repeat internal navigation; reloading intentionally previews the intro. */
.sa-intro-skip .sa-intro { display: none !important; }
/* Avoid playing the sword while the storefront tab isn't visible. */
.sa-intro.sa-intro--paused,
.sa-intro.sa-intro--paused::before,
.sa-intro.sa-intro--paused *,
.sa-intro.sa-intro--paused *::before,
.sa-intro.sa-intro--paused *::after {
  animation-play-state: paused !important;
}
/* Reduced-motion users still see a brief static logo, never a sword sweep. */
@media (prefers-reduced-motion: reduce) {
  .sa-intro, .sa-intro::before,
  .sa-intro *, .sa-intro *::before, .sa-intro *::after {
    animation: none !important;
  }
  .sa-intro-slash { display: none !important; }
  .sa-intro-brand { opacity: 1 !important; transform: none !important; }
  .sa-intro-brand::after { opacity: 1 !important; transform: scaleX(1) !important; }
}

/* Floating navbar: retain the theme's original colors/border; only animate its size on scroll. */
.sa-navbar--floating-pill {
  position: sticky;
  top: 0;
  z-index: 1000;
}
.sa-navbar--floating-pill > div:first-child,
.sa-navbar--floating-pill > div:first-child > div,
.sa-navbar--floating-pill > div:first-child > div > div,
.sa-navbar--floating-pill .sa-navbar-link,
.sa-navbar--floating-pill .sa-navbar-logo img {
  transition: padding .32s cubic-bezier(.2,.75,.25,1),
              min-height .32s cubic-bezier(.2,.75,.25,1),
              height .32s cubic-bezier(.2,.75,.25,1),
              max-width .32s cubic-bezier(.2,.75,.25,1),
              border-radius .32s cubic-bezier(.2,.75,.25,1),
              transform .32s cubic-bezier(.2,.75,.25,1),
              gap .32s cubic-bezier(.2,.75,.25,1);
}
.sa-navbar--floating-pill.sa-navbar--scrolled > div:first-child {
  padding-top: 5px;
}
.sa-navbar--floating-pill.sa-navbar--scrolled > div:first-child > div {
  max-width: min(1100px, 86vw);
  border-radius: 999px;
}
.sa-navbar--floating-pill.sa-navbar--scrolled > div:first-child > div > div {
  min-height: 46px;
  height: 46px;
  padding-left: 16px;
  padding-right: 16px;
}
.sa-navbar--floating-pill.sa-navbar--scrolled .sa-navbar-link {
  padding-top: 6px;
  padding-bottom: 6px;
}
.sa-navbar--floating-pill.sa-navbar--scrolled .sa-navbar-logo img {
  max-height: 27px;
}
@media (max-width: 1023px) {
  .sa-navbar--floating-pill.sa-navbar--scrolled > div:first-child > div {
    max-width: calc(100vw - 24px);
  }
  .sa-navbar--floating-pill.sa-navbar--scrolled > div:first-child > div > div {
    min-height: 48px;
    height: 48px;
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sa-navbar--floating-pill,
  .sa-navbar--floating-pill * { transition-duration: .01ms !important; }
}


/* Fix hover effects on cards that also use scroll-reveal.
   ScrollReveal writes an inline transform, so the hover transform needs
   higher priority on these specific interactive cards. */
.sa-features-item.hfx-lift:hover,
.sa-faq-item.hfx-lift:hover,
.sa-faq-support-card.hfx-lift:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--shadow-card);
}
.sa-features-item.hfx-grow:hover,
.sa-faq-item.hfx-grow:hover,
.sa-faq-support-card.hfx-grow:hover {
  transform: scale(1.02) !important;
}

/* Two-row, continuous review marquee (reference-inspired).
   Scoped to the storefront feedback component; no dependencies or scroll handlers. */
.sa-feedbacks-marquee {
  --sa-review-gap: clamp(12px, 1.5vw, 22px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.5vw, 22px);
  position: relative;
  width: min(1700px, calc(100vw - 24px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
  padding: 6px 0;
}
.sa-feedbacks-marquee-row {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.sa-feedbacks-marquee-track {
  display: flex;
  align-items: stretch;
  width: max-content;
  animation: sa-feedbacks-flow-left 68s linear infinite;
  will-change: transform;
}
.sa-feedbacks-marquee-row--right .sa-feedbacks-marquee-track {
  animation-name: sa-feedbacks-flow-right;
  animation-duration: 74s;
}
.sa-feedbacks-marquee-group {
  display: flex;
  align-items: stretch;
  gap: var(--sa-review-gap);
  flex: none;
  /* The trailing gap makes each duplicated group exactly repeatable. */
  padding-right: var(--sa-review-gap);
}
.sa-feedbacks-marquee-item {
  display: flex;
  flex: 0 0 clamp(260px, 23vw, 345px);
  width: clamp(260px, 23vw, 345px);
  box-sizing: border-box;
  padding: 4px 1px;
}
.sa-feedbacks-marquee-item > .sa-feedback-card {
  flex: 1;
  width: 100%;
  min-height: 178px;
}
@keyframes sa-feedbacks-flow-left {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@keyframes sa-feedbacks-flow-right {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}
/* Reading a review should never be a race against the scrolling animation. */
.sa-feedbacks-marquee:hover .sa-feedbacks-marquee-track,
.sa-feedbacks-marquee:focus-within .sa-feedbacks-marquee-track,
.sa-feedbacks-marquee:active .sa-feedbacks-marquee-track {
  animation-play-state: paused;
}
@media (max-width: 640px) {
  .sa-feedbacks-marquee { width: calc(100vw - 12px); --sa-review-gap: 12px; gap: 12px; }
  .sa-feedbacks-marquee-item { flex-basis: min(78vw, 300px); width: min(78vw, 300px); }
  .sa-feedbacks-marquee-item > .sa-feedback-card { min-height: 155px; }
}
@media (prefers-reduced-motion: reduce) {
  .sa-feedbacks-marquee-row {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .sa-feedbacks-marquee-track {
    animation: none !important;
    will-change: auto;
    transform: none !important;
  }
}
