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

/* meinwein storefront layer ------------------------------------------------ */
:root {
  --mw-purple: #9945ff;
  --mw-green: #14f195;
  --mw-radius: 24px;
}

[data-scheme="dark"] {
  --mw-glow-primary: rgba(153, 69, 255, 0.26);
  --mw-glow-secondary: rgba(20, 241, 149, 0.12);
  --mw-glass: rgba(16, 16, 23, 0.72);
  --mw-glass-strong: rgba(23, 23, 32, 0.9);
  --mw-line: rgba(255, 255, 255, 0.1);
  --mw-soft: rgba(255, 255, 255, 0.045);
  --mw-shadow: 0 22px 65px rgba(0, 0, 0, 0.34);
}

[data-scheme="light"] {
  --mw-glow-primary: rgba(153, 69, 255, 0.16);
  --mw-glow-secondary: rgba(20, 241, 149, 0.1);
  --mw-glass: rgba(255, 255, 255, 0.76);
  --mw-glass-strong: rgba(255, 255, 255, 0.94);
  --mw-line: rgba(43, 37, 51, 0.1);
  --mw-soft: rgba(153, 69, 255, 0.04);
  --mw-shadow: 0 22px 65px rgba(48, 33, 67, 0.13);
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 8% 12%, var(--mw-glow-primary), transparent 32rem),
    radial-gradient(circle at 92% 22%, var(--mw-glow-secondary), transparent 28rem);
  background-attachment: fixed;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: #fff;
  background: rgba(153, 69, 255, 0.75);
}

:focus-visible {
  outline: 2px solid var(--mw-green);
  outline-offset: 3px;
}

.sa-announcement {
  min-height: 2.25rem;
  border-bottom: 1px solid var(--mw-line);
  background: linear-gradient(90deg, rgba(153, 69, 255, 0.14), rgba(20, 241, 149, 0.08), rgba(153, 69, 255, 0.14));
  line-height: 1.4;
}

.sa-announcement-item {
  display: inline-flex;
  min-height: 1.5rem;
  align-items: center;
}

.sa-header {
  position: relative;
  z-index: 30;
}

.sa-navbar--floating-pill > div > div {
  border-color: var(--mw-line);
  background: var(--mw-glass);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.13);
  transition: background-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.mw-scrolled .sa-navbar--floating-pill > div > div {
  background: var(--mw-glass-strong);
  box-shadow: var(--mw-shadow);
  transform: translateY(-1px);
}

.sa-navbar-logo span {
  font-weight: 750;
  letter-spacing: -0.035em;
}

.sa-navbar-logo span::after {
  content: ".";
  color: var(--mw-green);
}

.sa-navbar-link {
  position: relative;
}

.sa-navbar-link::after {
  position: absolute;
  right: 0.8rem;
  bottom: 0.25rem;
  left: 0.8rem;
  height: 2px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mw-purple), var(--mw-green));
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 180ms ease, transform 180ms ease;
}

.sa-navbar-link:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.sa-hero {
  isolation: isolate;
  min-height: min(770px, calc(100svh - 5rem));
}

.sa-hero::before,
.sa-hero::after {
  position: absolute;
  z-index: -1;
  width: 25rem;
  height: 25rem;
  content: "";
  pointer-events: none;
  border-radius: 999px;
  filter: blur(85px);
  opacity: 0.6;
}

.sa-hero::before {
  top: 5%;
  left: -10rem;
  background: var(--mw-glow-primary);
}

.sa-hero::after {
  right: -10rem;
  bottom: 2%;
  background: var(--mw-glow-secondary);
}

.sa-hero-title {
  max-width: 12ch;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.sa-hero-title .hl-accent,
.sa-hero-title.hl-accent em,
.sa-hero-title.hl-accent strong {
  color: transparent;
  background: linear-gradient(110deg, var(--mw-purple) 15%, #c28cff 52%, var(--mw-green));
  background-clip: text;
  -webkit-background-clip: text;
}

.sa-hero-subtitle {
  max-width: 36rem;
  line-height: 1.7;
}

.sa-hero-eyebrow {
  border-color: rgba(153, 69, 255, 0.25);
  background: var(--mw-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sa-hero-eyebrow > span:first-child {
  background: linear-gradient(135deg, var(--mw-purple), #7f31dc);
}

.sa-hero--product-spotlight .sa-product-card {
  position: relative;
  border-color: rgba(153, 69, 255, 0.24);
  background: var(--mw-glass);
  box-shadow: var(--mw-shadow), 0 0 0 1px rgba(153, 69, 255, 0.04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.sa-hero--product-spotlight .sa-product-card::before {
  position: absolute;
  z-index: -1;
  inset: -1px;
  content: "";
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(153, 69, 255, 0.22), transparent 45%, rgba(20, 241, 149, 0.12));
  filter: blur(16px);
  opacity: 0.6;
}

.sa-btn,
.sa-add-to-cart,
.sa-cart-panel button[class*="bg-accent-500"] {
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.sa-btn--primary,
.sa-add-to-cart,
.sa-cart-panel button[class*="bg-accent-500"] {
  border-color: transparent;
  background: linear-gradient(115deg, #8536e8, var(--mw-purple) 58%, #aa63ff);
  box-shadow: 0 10px 28px rgba(153, 69, 255, 0.24);
}

.sa-btn--primary:hover,
.sa-add-to-cart:hover,
.sa-cart-panel button[class*="bg-accent-500"]:hover {
  filter: brightness(1.08);
  box-shadow: 0 14px 36px rgba(153, 69, 255, 0.34);
  transform: translateY(-2px);
}

.sa-trust-badges-items,
.sa-features-items,
.sa-steps-items,
.sa-feedbacks-items,
.sa-faq-items {
  gap: 1rem;
}

.sa-trust-badges-items > *,
.sa-features-item,
.sa-steps-item,
.sa-feedback-card,
.sa-faq-item,
.sa-faq-support-card {
  border-color: var(--mw-line);
  background: var(--mw-glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sa-features-item,
.sa-steps-item,
.sa-feedback-card {
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.sa-features-item:hover,
.sa-steps-item:hover,
.sa-feedback-card:hover {
  border-color: rgba(153, 69, 255, 0.35);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.sa-features-item .sa-features-icon,
.sa-steps-icon {
  color: var(--mw-green);
  background: linear-gradient(145deg, rgba(153, 69, 255, 0.14), rgba(20, 241, 149, 0.1));
}

.sa-section-title {
  letter-spacing: -0.04em;
}

.sa-products-items:has(> :only-child) {
  grid-template-columns: minmax(0, 34rem);
  justify-content: center;
}

.sa-product-card {
  overflow: hidden;
  border-color: var(--mw-line);
  background: var(--mw-glass);
  transform: translateZ(0);
}

.sa-product-card-media img {
  transition: transform 450ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 300ms ease;
}

.sa-product-card:hover .sa-product-card-media img {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.035);
}

.sa-product-card-title {
  letter-spacing: -0.02em;
}

.sa-product-card-price {
  font-variant-numeric: tabular-nums;
}

.sa-product-card-status {
  backdrop-filter: blur(8px);
}

.sa-tpl-product .sa-page-product > div,
.sa-product-form,
.sa-product-gallery,
.sa-page-cart-items,
.sa-page-customer-dashboard-items,
.sa-page-customer-invoices-items,
.sa-page-customer-tickets-items,
.sa-page-customer-subscriptions-items {
  border-color: var(--mw-line);
}

.sa-product-form {
  padding: clamp(1rem, 2.6vw, 1.75rem);
  border: 1px solid var(--mw-line);
  border-radius: var(--mw-radius);
  background: var(--mw-glass);
  box-shadow: var(--mw-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.sa-product-form button[type="button"][class*="border"] {
  position: relative;
  overflow: hidden;
}

.sa-product-form button[type="button"][class*="border-accent-500"] {
  box-shadow: inset 3px 0 0 var(--mw-purple), 0 8px 26px rgba(153, 69, 255, 0.09);
}

.sa-add-to-cart {
  min-height: 3.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sa-cart-panel,
.sa-search-modal > *,
.sa-customer-login-modal > *,
.sa-ticket-create-modal > * {
  border-color: var(--mw-line);
  background: var(--mw-glass-strong);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.sa-cart-item,
.sa-page-cart-item,
.sa-page-customer-dashboard-item,
.sa-page-customer-invoices-item,
.sa-page-customer-tickets-item,
.sa-page-customer-subscriptions-item,
.sa-status-card {
  border-color: var(--mw-line);
  background: var(--mw-soft);
  transition: border-color 180ms ease, transform 180ms ease;
}

.sa-cart-item:hover,
.sa-page-cart-item:hover,
.sa-page-customer-dashboard-item:hover,
.sa-status-card:hover {
  border-color: rgba(153, 69, 255, 0.3);
}

.input,
.input-stepper {
  border-color: var(--mw-line);
  background-color: var(--mw-soft);
}

.input:focus,
.input:focus-within {
  border-color: rgba(153, 69, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(153, 69, 255, 0.1);
}

.sa-footer {
  position: relative;
  overflow: hidden;
  border-top-color: var(--mw-line);
  background: linear-gradient(180deg, transparent, var(--mw-soft));
}

.sa-footer::before {
  position: absolute;
  top: -1px;
  left: 50%;
  width: min(34rem, 70vw);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--mw-purple), var(--mw-green), transparent);
  transform: translateX(-50%);
}

.sa-footer-link:hover {
  color: var(--mw-green);
}

.sa-footer-partner {
  border-color: rgba(20, 241, 149, 0.2);
  background: linear-gradient(135deg, rgba(20, 241, 149, 0.07), rgba(153, 69, 255, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sa-footer-partner:hover {
  border-color: rgba(20, 241, 149, 0.45);
  box-shadow: 0 8px 24px rgba(20, 241, 149, 0.08);
}

.sa-footer-partner img {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(20, 241, 149, 0.2);
}

@media (max-width: 1023px) {
  .sa-hero {
    min-height: auto;
  }

  .sa-hero--product-spotlight .sa-hero-title {
    max-width: 13ch;
  }

  .sa-hero--product-spotlight .sa-product-card {
    max-width: 34rem;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  body {
    background-attachment: scroll;
  }

  .sa-navbar--floating-pill > div {
    padding-inline: 0.65rem;
  }

  .sa-navbar--floating-pill > div > div {
    border-radius: 1.15rem;
  }

  .sa-hero-title {
    font-size: clamp(2.7rem, 14vw, 4.25rem);
  }

  .sa-product-form {
    padding: 1rem;
    border-radius: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
