/* ============================================================
   Shi-Ma Webshop – Design System
   Brand: Primary #612E7B · Secondary #C18F21
   ============================================================ */

/* ── Fonts ─────────────────────────────────────────────────── */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: optional;
}

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --color-primary:        #612E7B;
  --color-primary-dark:   #4a2260;
  --color-primary-light:  #7d3d9e;
  --color-secondary:      #C18F21;
  --color-secondary-dark: #a07519;
  --color-on-primary:     #ffffff;
  --color-on-secondary:   #1a1a2e;

  --color-bg:             #ffffff;
  --color-bg-alt:         #faf8fc;
  --color-bg-soft:        #f5f0fa;
  --color-surface:        #ffffff;
  --color-border:         #e8dff0;
  --color-border-soft:    #f0e8f8;

  --color-text:           #1a1a2e;
  --color-text-muted:     #6b6b8a;
  --color-text-light:     #9898b0;

  --color-success:        #1a7f4b;
  --color-success-bg:     #e8f5ee;
  --color-error:          #c0392b;
  --color-error-bg:       #fdecea;

  --font-sans:            'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm:            6px;
  --radius-md:            12px;
  --radius-lg:            20px;
  --radius-full:          9999px;

  --shadow-sm:            0 1px 3px rgba(97,46,123,.08);
  --shadow-md:            0 4px 16px rgba(97,46,123,.12);
  --shadow-lg:            0 8px 32px rgba(97,46,123,.16);

  --transition:           0.22s ease;
  --transition-slow:      0.4s ease;

  --header-h:             72px;
  --container-max:        1280px;
  --container-narrow:     760px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
input, textarea, select { font: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ── Accessibility ─────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 9999;
  padding: .5rem 1rem; background: var(--color-primary);
  color: #fff; border-radius: var(--radius-sm);
  font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 1rem; }
:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: 5rem; background: #f3eef9; }
.section--alt { background: var(--color-bg-alt); }
.text-center { text-align: center; }
.text-primary       { color: var(--color-primary)       !important; }
.text-primary-light { color: var(--color-primary-light) !important; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

.section-eyebrow {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: .5rem;
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 3rem;
}
.section-header h2 { margin-bottom: .75rem; }
.section-header p { color: var(--color-text-muted); font-size: 1.05rem; }
.section-cta { text-align: center; margin-top: 3rem; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1;
  transition: background var(--transition), color var(--transition),
              box-shadow var(--transition), border-color var(--transition);
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: .5; cursor: not-allowed;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }

.btn-outline-light {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.85);
}
.btn-outline-light:hover { background: rgba(255,255,255,.22); border-color: #fff; }

.btn-sm { padding: .45rem 1rem; font-size: .875rem; }
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-link {
  background: none; border: none; padding: 0;
  color: var(--color-primary); font-weight: 600;
  display: inline-flex; align-items: center; gap: .25rem;
  transition: gap var(--transition);
}
.btn-link:hover { gap: .5rem; text-decoration: none; }

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}
.site-logo img { height: 40px; width: auto; }

.main-nav { flex: 1; }
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-wrap: wrap;
}
.main-nav a, .main-nav .nav-dropdown-toggle {
  padding: .5rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--color-text);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav .nav-dropdown-toggle:hover,
.main-nav a[aria-current="page"] {
  background: var(--color-bg-soft);
  color: var(--color-primary);
  text-decoration: none;
}
.main-nav a[aria-current="page"] { font-weight: 700; }

.has-dropdown { position: relative; }
.nav-dropdown {
  position: absolute; top: calc(100% + .5rem); left: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: .5rem;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 200;
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown,
.nav-dropdown-toggle[aria-expanded="true"] + .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown li a {
  display: block;
  padding: .5rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.header-search {
  display: flex;
  align-items: center;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  overflow: visible;
  transition: border-color var(--transition);
  position: relative;
}
.header-search:focus-within { border-color: var(--color-primary); }
.header-search__field {
  position: relative;
  display: flex;
  align-items: center;
}
.header-search input {
  border: none; background: none;
  padding: .4rem .75rem;
  font-size: .875rem;
  width: 160px;
  outline: none;
}
.header-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.header-search__autocomplete {
  left: auto;
  right: 0;
  width: min(420px, calc(100vw - 2rem));
}
.header-search button {
  padding: .4rem .6rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-search button:hover { color: var(--color-primary); }

.header-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.header-icon-btn:hover { background: var(--color-bg-soft); color: var(--color-primary); text-decoration: none; }
.cart-count {
  position: absolute; top: 2px; right: 2px;
  background: #d7c0e6;
  color: var(--color-on-secondary);
  font-size: .65rem; font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.cart-count[hidden] { display: none; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.hamburger, .hamburger::before, .hamburger::after {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger { position: relative; }
.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
.hamburger::before { top: -6px; }
.hamburger::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle[aria-expanded="true"] .hamburger::after  { transform: rotate(-45deg) translate(4px, -4px); }

/* ── Hero ──────────────────────────────────────────────────── */

@keyframes hero-fade-up {
  from { opacity: 0; visibility: hidden; transform: translateY(28px); }
  to   { opacity: 1; visibility: visible; transform: translateY(0); }
}
@keyframes hero-particle-float {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: .6; }
  100% { transform: translateY(-140px) translateX(var(--drift, 30px)) scale(.3); opacity: 0; }
}
@keyframes hero-shimmer {
  0%, 100% { opacity: .18; }
  50%       { opacity: .38; }
}

.hero {
  position: relative;
  height: calc(100vh - var(--header-h));
  min-height: 520px;
  max-height: 860px;
  overflow: hidden;
}
.hero-slides { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}
.hero-slide--active { opacity: 1; z-index: 1; }
.hero-bg {
  position: absolute; inset: -20% 0;
  width: 100%;
  height: 140%;
  object-fit: cover;
  object-position: center top;
  will-change: transform;
  transform: translateY(0);
}
.hero-bg-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(135deg, rgba(97,46,123,.68) 0%, rgba(26,26,46,.45) 100%);
  pointer-events: none;
}
.hero-bg-overlay::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 60%, rgba(255,255,255,.06) 0%, transparent 70%);
  animation: hero-shimmer 6s ease-in-out infinite;
}

.hero__mystic-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 40%, #1a1a2e 100%);
  background-size: 300% 300%;
  animation: mystic-gradient-shift 14s ease infinite;
  mix-blend-mode: color;
  opacity: .45;
  pointer-events: none;
  z-index: 2;
}

.hero__mystic-orbs,
.hero__mystic-rings,
.hero__mystic-symbols,
.hero__mystic-canvas {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__mystic-orbs  { z-index: 2; }
.hero__mystic-rings { z-index: 2; display: flex; align-items: center; justify-content: center; }
.hero__mystic-symbols { z-index: 2; }
.hero__mystic-canvas { z-index: 2; width: 100%; height: 100%; }

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform, opacity;
}
.hero__orb--1 {
  width: 55%; height: 200%;
  top: -50%; left: -10%;
  background: radial-gradient(circle, rgba(193,143,33,.45) 0%, transparent 70%);
  animation: mystic-orb-drift 20s ease-in-out infinite;
}
.hero__orb--2 {
  width: 45%; height: 180%;
  top: -30%; right: -8%;
  background: radial-gradient(circle, rgba(125,61,158,.55) 0%, transparent 70%);
  animation: mystic-orb-drift-2 25s ease-in-out infinite;
}
.hero__orb--3 {
  width: 40%; height: 150%;
  bottom: -20%; left: 30%;
  background: radial-gradient(circle, rgba(97,46,123,.5) 0%, transparent 70%);
  animation: mystic-orb-drift 32s ease-in-out infinite reverse;
}

.hero__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
  will-change: transform, opacity;
}
.hero__ring--1 { width: 320px; height: 320px; animation: mystic-pulse-ring 9s ease-in-out infinite; }
.hero__ring--2 { width: 560px; height: 560px; animation: mystic-pulse-ring 13s ease-in-out infinite 2.5s; }
.hero__ring--3 { width: 800px; height: 800px; animation: mystic-pulse-ring 17s ease-in-out infinite 5s; }

.hero__mystic-symbols .page-hero__symbol { opacity: .07; }

.hero-particles {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.hero-particle {
  position: absolute;
  bottom: -10px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  animation: hero-particle-float linear infinite;
  will-change: transform, opacity;
}

.hero-content {
  position: relative; z-index: 4;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  padding-block: 4rem;
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}
.hero-content > * {
  opacity: 0;
  visibility: hidden;
  animation: hero-fade-up .8s cubic-bezier(.22,1,.36,1) forwards;
}
.hero-content > *:nth-child(1) { animation-delay: .15s; }
.hero-content > *:nth-child(2) { animation-delay: .35s; }
.hero-content > *:nth-child(3) { animation-delay: .55s; }
.hero-content > *:nth-child(4) { animation-delay: .75s; }

.hero-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-bottom: 1rem;
}
.hero-content h1, .hero-content .hero-h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
  color: #fff;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: .9;
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .btn-primary {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}
.hero .btn-primary:hover {
  background: rgba(255,255,255,.88);
  border-color: rgba(255,255,255,.88);
  box-shadow: var(--shadow-md);
}

.hero-controls {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex; align-items: center; gap: 1rem;
}
.hero-prev, .hero-next {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.2);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  backdrop-filter: blur(4px);
}
.hero-prev:hover, .hero-next:hover { background: rgba(255,255,255,.35); }
.hero-dots { display: flex; gap: .5rem; }
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  transition: background var(--transition), width var(--transition);
}
.hero-dot--active { background: #fff; width: 24px; border-radius: 4px; }

