/* ============================================
   EVOLOXX Custom Theme
   One CSS file. No Dawn. No conflicts.
   ============================================ */

/* ── Hide Shopify's native cookie banner (we have our own) ── */
#shopify-pc__banner,
#shopify-pc__modal,
.shopify-pc__banner,
[id^="shopify-pc"],
.shopify-cleanslate { display: none !important; }

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Typography ────────────────────────────── */
body {
  font-family: var(--font-body);
  font-weight: var(--font-body-weight);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

h1, h2, h3, .heading-xl {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  color: var(--color-text);
  letter-spacing: -0.01em;
}

h1, .heading-xl {
  font-size: clamp(var(--text-2xl), 5vw, var(--text-3xl));
  line-height: 1.05;
}
h2 {
  font-size: clamp(var(--text-xl), 4vw, var(--text-2xl));
  line-height: 1.1;
}
h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.25;
}
h4 {
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.3;
}

p, li {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text-light);
}
p + p { margin-top: 1em; }

strong { color: var(--color-text); font-weight: 600; }
em { font-style: italic; }

small { font-size: var(--text-sm); color: var(--gray-500); }

.tag {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
}

/* ── Layout ────────────────────────────────── */
.page-width {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 750px) {
  .page-width { padding: 0 40px; }
}

@media (min-width: 990px) {
  .page-width { padding: 0 60px; }
}

.section { padding: clamp(var(--space-7), 6vw, var(--space-10)) 0; }
.section--dark { background: var(--color-dark); color: #fff; }
.section--dark p, .section--dark li { color: rgba(255,255,255,0.7); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--gray { background: var(--gray-50); }

main > .shopify-section.section:first-child {
  padding-top: 0;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 749px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

@media (min-width: 750px) and (max-width: 989px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

.flex { display: flex; }
.flex--center { align-items: center; justify-content: center; }
.flex--between { align-items: center; justify-content: space-between; }
.flex--col { flex-direction: column; }
.flex--wrap { flex-wrap: wrap; }
.flex--gap { gap: 16px; }

.text-center { text-align: center; }
.text-left { text-align: left; }

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-7);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn--primary {
  background: var(--color-dark);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-accent);
  color: var(--color-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn--accent {
  background: var(--color-accent);
  color: var(--color-dark);
}
.btn--accent:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-text);
}
.btn--outline:hover {
  background: var(--color-text);
  color: #fff;
}

.btn--small { padding: 10px 24px; font-size: 0.9rem; }
.btn--large { padding: 18px 56px; font-size: 1.1rem; }

/* ── Header ────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid rgba(45,41,38,0.08);
  box-shadow:
    0 18px 45px rgba(45,41,38,0.10),
    0 1px 0 rgba(255,255,255,0.85) inset;
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  isolation: isolate;
}

.header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -24px;
  height: 24px;
  background: linear-gradient(180deg, rgba(45,41,38,0.08), rgba(45,41,38,0));
  pointer-events: none;
}

.header__inner {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 4px 20px;
  padding: 12px 0;
}

.header__logo {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
}

.header__logo img {
  height: auto;
  max-width: 200px;
}

.header__search {
  grid-column: 2;
  grid-row: 1;
  padding: 0;
  width: 100%;
}

.header__search-form {
  position: relative;
  width: 100%;
}

.header__search-input {
  width: 100%;
  height: 40px;
  padding: 0 42px 0 18px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  background: var(--color-bg);
  font-size: var(--text-sm);
  outline: none;
  transition: border-color 0.2s;
}

.header__search-input::placeholder { color: var(--gray-400); }
.header__search-input:focus { border-color: var(--color-accent); }

.header__search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  padding: 4px;
  cursor: pointer;
}

.header__search-btn svg { width: 18px; height: 18px; }

.header__icons {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-text);
  transition: opacity 0.2s;
}
.header__icon:hover { opacity: 0.6; }
.header__icon svg { width: 22px; height: 22px; }

.header__nav {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  justify-content: center;
  gap: 0;
}

.header__nav-link {
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color 0.2s;
}
.header__nav-link:hover { color: var(--color-accent); }
.header__nav-link.active {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--color-accent);
}

/* Mobile header */
@media (max-width: 989px) {
  .header__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding: 10px 0;
    position: relative;
  }
  .header__logo { justify-self: center; }
  .header__logo img { max-width: 160px; }
  .header__search { grid-column: 1; grid-row: 2; padding: 0; max-width: 100%; }
  .header__icons { position: absolute; right: 0; top: 10px; }
  .header__nav { grid-column: 1; grid-row: 3; flex-wrap: wrap; }
  .header__nav-link { font-size: 12px; padding: 4px 12px; }
}

/* Echtes Mobile (alle Handys): Logo + Konto + Warenkorb + Burger in EINER Reihe */
@media (max-width: 749px) {
  .header__inner {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .header__mobile-toggle { order: 1; padding: 8px 8px 8px 0; }
  .header__logo { order: 2; margin-right: auto; justify-self: auto; }
  .header__logo img { max-width: min(160px, 44vw); }
  .header__icons { order: 3; position: static; right: auto; top: auto; gap: 4px; }
  .header__icon { width: 38px; height: 38px; }
}

/* ── Footer ────────────────────────────────── */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.7);
  padding: var(--space-9) 0 var(--space-6);
}

.footer h3 { color: #fff; margin-bottom: var(--space-4); }
.footer p, .footer li { color: rgba(255,255,255,0.7); }
.footer a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer a:hover { color: var(--color-accent); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-7); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: var(--space-7); padding-top: var(--space-5); font-size: var(--text-xs); }

@media (max-width: 749px) {
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ── Cards ──────────────────────────────────── */
.card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.card__image { aspect-ratio: 1; overflow: hidden; background: var(--gray-50); }
.card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card__image img { transform: scale(1.03); }
.card__body { padding: var(--space-4); }
.card__title { font-size: var(--text-base); font-weight: 600; margin-bottom: var(--space-1); }
.card__price { font-weight: 600; }
.card__subtitle { font-size: var(--text-sm); color: var(--gray-500); }

/* ── Product Page ──────────────────────────── */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
  padding: var(--space-7) 0;
}

.product__media { position: sticky; top: var(--space-11); }
.product__image { border-radius: var(--radius-md); overflow: hidden; }
.product__image img { width: 100%; }
.product__thumbs { display: flex; gap: var(--space-2); margin-top: var(--space-3); }
.product__thumb {
  width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden;
  border: 2px solid transparent; cursor: pointer; transition: border-color 0.2s;
}
.product__thumb.active, .product__thumb:hover { border-color: var(--color-accent); }
.product__thumb img { width: 100%; height: 100%; object-fit: cover; }

.product__info { padding-top: var(--space-2); }
.product__title { margin-bottom: var(--space-2); }
.product__price { font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--space-5); }
.product__desc { margin-bottom: var(--space-6); }

.product__buy {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}

.product__qty {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.product__qty-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.product__qty-input button {
  width: 40px; height: 40px; border: none; background: none;
  font-size: 1.2rem; color: var(--color-text);
}
.product__qty-input button:hover { background: var(--gray-100); }
.product__qty-input input {
  width: 48px; height: 40px; border: none; text-align: center;
  font-size: 1.1rem; background: none;
}

.product__add-btn {
  width: 100%;
  padding: var(--space-4);
  background: var(--color-dark);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.3s;
}
.product__add-btn:hover { background: var(--color-accent); color: var(--color-dark); }

@media (max-width: 749px) {
  .product { grid-template-columns: 1fr; gap: 24px; }
  .product__media { position: static; }
}

/* ── Trust Badges ──────────────────────────── */
.trust { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.trust__item { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--gray-500); }
.trust__item svg { width: 16px; height: 16px; stroke: var(--color-accent); fill: none; stroke-width: 1.5; }

/* ── Accordion ─────────────────────────────── */
.accordion { border-top: 1px solid var(--color-border); }
.accordion__item { border-bottom: 1px solid var(--color-border); }
.accordion__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-4) 0; cursor: pointer; font-weight: 500; color: var(--color-text);
}
.accordion__header svg { width: 16px; height: 16px; stroke: var(--gray-400); fill: none; stroke-width: 2; transition: transform 0.3s; }
.accordion__body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.accordion__body-inner { padding: 0 0 var(--space-4); color: var(--color-text-light); line-height: 1.6; }
.accordion__item.open .accordion__body { max-height: 500px; }
.accordion__item.open .accordion__header svg { transform: rotate(180deg); }

/* ── Marquee ───────────────────────────────── */
.marquee-wrap { overflow: hidden; }
.marquee {
  display: inline-block;
  white-space: nowrap;
  animation: marquee-scroll 20s linear infinite;
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ── Animations ────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger > *.revealed {
  opacity: 1;
  transform: translateY(0);
}

.lift {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

/* Reveal from left / right */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Scale reveal */
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Blur reveal */
.reveal-blur {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(16px);
  transition: opacity 0.8s ease, filter 0.8s ease, transform 0.8s ease;
}
.reveal-blur.revealed {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* Auto section reveal (JS adds .ev-hidden, observer adds .ev-shown) */
.ev-hidden {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.ev-hidden.ev-shown {
  opacity: 1;
  transform: translateY(0);
}

/* Parallax image */
.parallax-wrap {
  overflow: hidden;
}
.parallax-img {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Image zoom on hover */
.zoom-hover {
  overflow: hidden;
}
.zoom-hover img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.zoom-hover:hover img {
  transform: scale(1.05);
}

/* Text gradient shimmer */
.shimmer {
  background: linear-gradient(90deg, var(--color-text) 40%, var(--color-accent) 50%, var(--color-text) 60%);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Floating animation (for decorative elements) */
.float {
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Pulse glow */
.pulse-glow {
  animation: pulse-glow 2.5s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 210, 167, 0.4); }
  50% { box-shadow: 0 0 20px 8px rgba(239, 210, 167, 0.15); }
}

/* Line draw (for SVG icons) */
.line-draw svg path,
.line-draw svg line,
.line-draw svg circle,
.line-draw svg polyline {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1s ease;
}
.line-draw.revealed svg path,
.line-draw.revealed svg line,
.line-draw.revealed svg circle,
.line-draw.revealed svg polyline {
  stroke-dashoffset: 0;
}

/* Counter number style */
[data-count] {
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-blur,
  .reveal-stagger > *, .ev-hidden, .parallax-img, .shimmer, .float {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
    animation: none;
  }
}

/* ── Utilities ──────────────────────────────── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.skip-link:focus { position: static; width: auto; height: auto; clip: auto; overflow: visible; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: var(--space-2); }
.mb-1 { margin-bottom: var(--space-2); }
.mt-2 { margin-top: var(--space-4); }
.mb-2 { margin-bottom: var(--space-4); }
.mt-3 { margin-top: var(--space-5); }
.mb-3 { margin-bottom: var(--space-5); }
.mt-4 { margin-top: var(--space-7); }
.mb-4 { margin-bottom: var(--space-7); }

/* ── Mobile Touch Targets & Overrides ──────── */
.header__icon { min-width: 44px; min-height: 44px; }
.btn { min-height: 44px; }
/* v3 */
