/*
 * Quinns Vault — custom theme overrides
 * Stable sa-* hooks only; safe across Canvas theme updates.
 */

/* ── Atmosphere ─────────────────────────────────────────────────────────── */
body.sa-tpl-shop,
body.sa-tpl-products,
body.sa-tpl-product,
body.sa-tpl-cart,
body.sa-tpl-feedback,
body.sa-tpl-faq {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(var(--cl-accent), 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(var(--cl-accent), 0.05), transparent 50%),
    radial-gradient(ellipse 50% 35% at 0% 60%, rgba(var(--cl-accent), 0.04), transparent 45%);
  background-attachment: scroll;
}

html[data-scheme="light"] body.sa-tpl-shop,
html[data-scheme="light"] body.sa-tpl-products,
html[data-scheme="light"] body.sa-tpl-product {
  background-image:
    radial-gradient(ellipse 80% 45% at 50% -8%, rgba(var(--cl-accent), 0.1), transparent 55%),
    radial-gradient(ellipse 50% 30% at 90% 10%, rgba(20, 24, 32, 0.03), transparent 50%);
}

/* Soft vault grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

html[data-scheme="light"] body::before {
  opacity: 0.025;
  mix-blend-mode: multiply;
}

/* ── Brand / navbar ─────────────────────────────────────────────────────── */
.sa-navbar-logo span {
  font-family: var(--ff-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}

.sa-navbar-logo img {
  border-radius: 6px;
}

.sa-header {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.sa-navbar-link {
  letter-spacing: 0.01em;
}

/* ── Hero: brand-led first viewport ─────────────────────────────────────── */
.sa-hero--centered {
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
}

.sa-hero--centered .sa-hero-title {
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 700;
  max-width: 14ch;
}

.sa-hero--centered .sa-hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.9;
}

.sa-hero--centered .sa-hero-subtitle {
  max-width: 34rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.55;
  margin-top: 1.25rem;
}

.sa-hero--centered .sa-hero-actions {
  margin-top: 2rem;
}

.sa-hero .hero-bg-glow {
  width: 52rem;
  height: 36rem;
  margin-left: -26rem;
  top: -10rem;
  opacity: 0.85;
  filter: blur(40px);
  animation: qv-glow-breathe 8s ease-in-out infinite alternate;
}

@keyframes qv-glow-breathe {
  from { opacity: 0.55; transform: scale(1); }
  to { opacity: 0.95; transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .sa-hero .hero-bg-glow {
    animation: none !important;
  }
}

/* ── Section headers ────────────────────────────────────────────────────── */
.sa-section-title,
.sa-hero-title,
.sa-features-title,
.sa-faq-title,
.sa-products-title,
.sa-categories-title,
.sa-feedbacks-title,
.sa-steps-title,
.sa-text-block-title {
  letter-spacing: -0.03em;
}

/* ── Product cards: display-case feel ───────────────────────────────────── */
.sa-product-card {
  transition: transform var(--dur) ease, border-color var(--dur) ease, box-shadow var(--dur) ease;
}

.sa-product-card:hover {
  border-color: rgba(var(--cl-accent), 0.35);
  box-shadow: 0 12px 40px -16px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(var(--cl-accent), 0.12);
}

html[data-scheme="light"] .sa-product-card:hover {
  box-shadow: 0 14px 36px -18px rgba(20, 24, 32, 0.2), 0 0 0 1px rgba(var(--cl-accent), 0.18);
}

.sa-product-card-title {
  font-family: var(--ff-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.sa-product-card-price {
  color: rgb(var(--cl-accent));
  font-weight: 600;
}

/* Square product media framed like a display case */
.sa-product-card img,
.sa-product-card-media img {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.sa-product-card:hover img,
.sa-product-card:hover .sa-product-card-media img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .sa-product-card img,
  .sa-product-card-media img {
    transition: none;
  }
  .sa-product-card:hover img {
    transform: none;
  }
}

/* ── Categories ─────────────────────────────────────────────────────────── */
.sa-categories-item,
.sa-categories .sa-item {
  transition: border-color var(--dur) ease, transform var(--dur) ease;
}

.sa-categories a:hover .sa-categories-item,
.sa-categories a:hover {
  border-color: rgba(var(--cl-accent), 0.4);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.sa-btn--primary,
.sa-btn.sa-btn--primary,
a.sa-btn[class*="primary"],
button.sa-btn[class*="primary"] {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.sa-hero-actions .sa-btn {
  min-height: 2.85rem;
  padding-inline: 1.35rem;
}

/* ── Features / steps ───────────────────────────────────────────────────── */
.sa-features-item .sa-features-icon,
.sa-features .sa-icon,
.sa-steps-item i {
  color: rgb(var(--cl-accent));
}

.sa-steps-item {
  position: relative;
}

/* ── Footer brand ───────────────────────────────────────────────────────── */
.sa-footer .font-heading {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sa-footer {
  background: linear-gradient(180deg, transparent, rgba(var(--cl-accent), 0.03) 40%);
}

/* ── Cart / PDP polish ──────────────────────────────────────────────────── */
.sa-add-to-cart,
.sa-product-form .sa-btn--primary {
  font-weight: 600;
}

.sa-cart-panel {
  border-left: 1px solid rgba(var(--cl-accent), 0.12);
}

/* ── FAQ accent ─────────────────────────────────────────────────────────── */
.sa-faq details[open] summary,
.sa-faq-item[open] {
  border-color: rgba(var(--cl-accent), 0.25);
}

/* ── Entrance motion (pairs with scroll reveal) ─────────────────────────── */
@keyframes qv-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sa-tpl-shop .sa-hero-eyebrow,
.sa-tpl-shop .sa-hero-title,
.sa-tpl-shop .sa-hero-subtitle,
.sa-tpl-shop .sa-hero-actions {
  animation: qv-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sa-tpl-shop .sa-hero-title { animation-delay: 0.08s; }
.sa-tpl-shop .sa-hero-subtitle { animation-delay: 0.16s; }
.sa-tpl-shop .sa-hero-actions { animation-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .sa-tpl-shop .sa-hero-eyebrow,
  .sa-tpl-shop .sa-hero-title,
  .sa-tpl-shop .sa-hero-subtitle,
  .sa-tpl-shop .sa-hero-actions {
    animation: none;
  }
}

/* ── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .sa-hero--centered {
    min-height: auto;
    padding-block: 3.5rem;
  }

  .sa-hero--centered .sa-hero-title {
    max-width: none;
  }
}
