/*
 * 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; }
 * ───────────────────────────────────────────────────────────────────────────
*/

/* ============================================================
   Nebula-style glow pass — buttons, cards, navbar
   ============================================================ */

/* Primary buttons: soft pink glow underneath, slight lift on hover */
.sa-btn--primary.sa-btn--solid {
  box-shadow: 0 10px 30px -10px rgba(var(--cl-accent), 0.55);
  transition: transform var(--dur) ease, box-shadow var(--dur) ease, background-color var(--dur) ease;
}
.sa-btn--primary.sa-btn--solid:hover {
  box-shadow: 0 14px 38px -8px rgba(var(--cl-accent), 0.7);
  transform: translateY(-1px);
}

/* Product cards: pink glow + border on hover, and let the CTA button
   sit flush at the bottom of every card regardless of title length */
.sa-product-card {
  transition: transform var(--dur) ease, box-shadow var(--dur) ease, border-color var(--dur) ease;
}
.sa-product-card:hover {
  border-color: rgba(var(--cl-accent), 0.55);
  box-shadow: 0 16px 40px -16px rgba(var(--cl-accent), 0.45);
}
.sa-product-card--padded-detail {
  height: 100%;
}

/* Floating navbar: extra separation from the page background */
.sa-navbar {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Animated "live" dot used by status chips / trust badges */
.pulsating {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  animation: sa-pulse 1.8s ease-out infinite;
  opacity: 0.65;
}
@keyframes sa-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Feedback cards: subtle pink edge on hover */
.sa-feedback-card {
  transition: border-color var(--dur) ease, transform var(--dur) ease;
}
.sa-feedback-card:hover {
  border-color: rgba(var(--cl-accent), 0.4);
}

/* Discreet themed scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(var(--cl-accent), 0.35);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--cl-accent), 0.55);
}

/* ============================================================
   Featured Carousel — standalone section (own CSS, no Tailwind
   utility dependency, so it always works regardless of what got
   pre-compiled into built.css).
   ============================================================ */
.sa-featured-carousel { overflow-x: hidden; }

.sa-fc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.sa-fc-head-text { max-width: 640px; }
.sa-fc-eyebrow {
  margin: 0 0 10px;
  color: rgb(var(--cl-accent));
  font-size: 0.85rem;
  font-weight: 700;
}
.sa-fc-title {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.2;
  font-weight: 700;
  color: rgb(var(--cl-t-primary));
}
.sa-fc-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgb(var(--cl-accent));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}
.sa-fc-subtitle {
  margin: 10px 0 0;
  color: rgb(var(--cl-t-muted));
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 560px;
}
.sa-fc-head-cta { flex-shrink: 0; }

.sa-fc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(var(--cl-border), var(--o-border, 0.16));
  color: rgb(var(--cl-t-primary));
  background: transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
}
.sa-fc-btn:hover { transform: translateY(-2px); border-color: rgba(var(--cl-accent), 0.55); }
.sa-fc-btn--primary {
  background: rgb(var(--cl-accent));
  color: rgb(var(--cl-on-accent));
  border-color: transparent;
  box-shadow: 0 10px 30px -10px rgba(var(--cl-accent), 0.55);
}
.sa-fc-btn--primary:hover { box-shadow: 0 14px 38px -8px rgba(var(--cl-accent), 0.7); }
.sa-fc-btn--ghost { background: rgba(var(--cl-t-primary), 0.03); }

.sa-fc-all { display: flex; justify-content: center; margin-top: 30px; }

.sa-fc-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 6px 0 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  cursor: grab;
  touch-action: pan-y;
}
.sa-fc-carousel:active { cursor: grabbing; }
.sa-fc-track { display: flex; width: max-content; will-change: transform; }
.sa-fc-item { flex: none; width: 260px; padding: 0 10px; }
@media (min-width: 640px) {
  .sa-fc-item { width: 290px; }
}

.sa-fc-badge--cycle { min-width: 6ch; }
.sa-fc-badge__cursor {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 2px;
  background: currentColor;
  vertical-align: -0.15em;
  animation: sa-fc-blink 0.9s step-end infinite;
}
@keyframes sa-fc-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sa-fc-badge__cursor { animation: none; opacity: 1; }
}

.sa-fc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(var(--cl-border), 0.16);
  border-radius: 20px;
  background: rgb(var(--cl-surface));
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.5);
  height: 100%;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.sa-fc-card:hover {
  border-color: rgba(var(--cl-accent), 0.5);
  box-shadow: 0 20px 48px -18px rgba(var(--cl-accent), 0.4);
  transform: translateY(-3px);
}
.sa-fc-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  background: rgba(var(--cl-t-primary), 0.04);
}
.sa-fc-card__media-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: blur(20px) brightness(0.55); transform: scale(1.2); opacity: 0.7;
}
.sa-fc-card__media-fg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 10px;
}
.sa-fc-card__placeholder {
  display: grid; place-items: center; width: 100%; height: 100%;
  color: rgb(var(--cl-accent)); font-size: 2rem;
}
.sa-fc-card__badges { position: absolute; top: 8px; right: 8px; z-index: 2; }
.sa-fc-card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.sa-fc-card__meta {
  display: flex; align-items: center; justify-content: space-between;
  color: rgb(var(--cl-accent)); font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.sa-fc-card__stock { color: rgb(var(--cl-success)); text-transform: none; letter-spacing: 0; font-weight: 600; }
.sa-fc-card__stock--out { color: rgb(var(--cl-error)); }
.sa-fc-card__name {
  margin: 0; font-weight: 600; color: rgb(var(--cl-t-primary));
  font-size: 0.98rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sa-fc-card__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sa-fc-card__price-label { font-size: 0.68rem; color: rgb(var(--cl-t-muted)); }
.sa-fc-card__price s { color: rgb(var(--cl-t-muted)); font-size: 0.8rem; }
.sa-fc-card__price strong { color: rgb(var(--cl-accent)); font-size: 1rem; font-weight: 700; }
.sa-fc-card__actions { display: flex; gap: 8px; margin-top: 8px; }
.sa-fc-card__actions .sa-fc-btn { flex: 1; padding: 9px 12px; font-size: 0.78rem; }

@media (max-width: 639px) {
  .sa-fc-head { flex-direction: column; }
  .sa-fc-head-cta { width: 100%; }
}

/* ── Auto-translate polish ───────────────────────────────────────────────
   The auto-translate script (assets/auto-translate.js) swaps text node
   values in place once a translation comes back. Without any transition
   that read as an abrupt flicker across the page. These two rules give it
   a small, deliberate crossfade instead, plus a quiet "Translating…" pill
   so the wait has a visible reason instead of the page looking half-broken. */
.sa-i18n-updating {
  opacity: 0.35;
  transition: opacity 0.18s ease;
}

.sa-i18n-indicator {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translate(-50%, 0);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-button, 9999px);
  border: 1px solid var(--cl-border);
  background: rgb(var(--cl-surface-raised));
  box-shadow: var(--shadow-nav, 0 4px 16px rgba(0,0,0,.12));
  color: rgb(var(--cl-t-primary));
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.sa-i18n-indicator.is-visible {
  opacity: 1;
  transform: translate(-50%, -0.25rem);
}
.sa-i18n-indicator__spinner {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  border: 2px solid rgba(var(--cl-t-muted), 0.35);
  border-top-color: rgb(var(--cl-accent));
  animation: sa-i18n-spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes sa-i18n-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .sa-i18n-updating { transition: none; }
  .sa-i18n-indicator { transition: none; }
  .sa-i18n-indicator__spinner { animation: none; }
}
