/* =========================================================
   Paw Pouch — styles
   ========================================================= */

:root {
  --c-text: #1c2b22;
  --c-muted: #5b6660;
  --c-bg: #fff;
  --c-soft: #f1efef;
  --c-accent: #eaaa94;
  --c-accent-2: #f2b8a4;
  --c-accent-dark: #c9745a;
  --c-dark: #2e2a39;
  --c-footer: #121212;
  --c-brand: #6d388b;
  --c-star: #ffcc00;
  --c-line: rgba(28, 43, 34, .12);

  --radius: 12px;
  --radius-lg: 24px;
  --container: 1400px;
  --gutter: clamp(16px, 4vw, 50px);
  --header-h: 118px;

  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 20px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: .02em;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
}
body.lock { overflow: hidden; }
@media (min-width: 750px) { body { font-size: 16px; } }

img, video { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; }
main:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: absolute; left: 8px; top: -80px; z-index: 1000;
  background: #fff; padding: 10px 16px; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.skip-link:focus { top: 8px; }

.ms {
  font-family: 'Material Symbols Outlined';
  font-weight: 300; font-style: normal; font-size: 24px; line-height: 1;
  display: inline-block; white-space: nowrap; direction: ltr; text-transform: none; letter-spacing: normal;
  font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased;
  overflow: hidden; max-width: 1em; flex-shrink: 0;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}
.ms--fill { font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 24; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 30px;
  border: 2px solid var(--c-accent); border-radius: 6px;
  background: var(--c-accent); color: #fff;
  font-weight: 700; font-size: 16px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  transition: filter .2s, transform .1s, background-color .2s;
}
.btn:hover { filter: brightness(.94); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--full { width: 100%; }
.btn--light { background: #fff; border-color: #fff; color: var(--c-footer); }
.btn.is-added { background: var(--c-brand); border-color: var(--c-brand); }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 0; background: none; border-radius: 50%;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .icon-cart { width: 26px; height: 30px; }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; background: var(--c-accent); color: #fff; padding-block: 12px; }
.ticker__track { display: flex; width: max-content; animation: ticker var(--ticker-duration, 40s) linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { margin: 0; padding-right: 60px; white-space: nowrap; font-size: 16px; font-weight: 600; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (min-width: 750px) {
  .ticker { padding-block: 16px; }
  .ticker__item { font-size: 18px; padding-right: 100px; }
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--c-line);
  transition: transform .3s var(--ease);
}
.header.is-hidden { transform: translateY(-100%); }
.header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-block: 10px; }
.header__burger { justify-self: start; margin-left: -10px; }
.header__nav { display: none; }
.header__logo { display: block; }
.header__logo img { width: 130px; height: auto; }
.header__icons { justify-self: end; display: flex; margin-right: -10px; }
.header__nav a { text-decoration: none; font-size: 15px; color: rgba(28, 43, 34, .8); padding-block: 6px; white-space: nowrap; }
.header__nav a:hover { color: var(--c-text); text-decoration: underline; text-underline-offset: 5px; }
.pill { display: inline-block; background: var(--c-accent); color: #fff; padding: 4px 14px; border-radius: 40px; }
.header__nav a:hover .pill { text-decoration: none; }

@media (min-width: 990px) {
  .header__inner { padding-block: 20px; }
  .header__burger { display: none; }
  .header__nav { display: flex; align-items: center; gap: 28px; }
  .header__logo img { width: 140px; }
}

.cart-count {
  position: absolute; right: 2px; bottom: 4px;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--c-accent); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; letter-spacing: 0;
}
.cart-count.is-bump { animation: bump .4s var(--ease); }
@keyframes bump { 50% { transform: scale(1.35); } }

/* ---------- Product ---------- */
.product { display: grid; padding-block: 0 16px; }
.product__media, .product__info { min-width: 0; }
.product__media { margin-inline: calc(var(--gutter) * -1); }

@media (min-width: 750px) {
  .product { grid-template-columns: 1fr 1fr; gap: 40px; padding-block: 36px; }
  .product__media {
    margin-inline: 0;
    position: sticky; top: 20px; align-self: start;
    transition: top .3s var(--ease);
  }
  body.header-shown .product__media { top: calc(var(--header-h) + 20px); }
}
@media (min-width: 990px) {
  .product { grid-template-columns: 55% 1fr; gap: 60px; }
}

/* Gallery */
.gallery__viewport { position: relative; }
.gallery__track {
  display: flex; margin: 0; padding: 0; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 1; background: #f7f5f4; }
.gallery__slide img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }

.gallery__arrow {
  position: absolute; top: 50%; translate: 0 -50%;
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: rgba(28, 43, 34, .75); color: #fff;
}
.gallery__arrow svg { width: 13px; height: 13px; }
.gallery__arrow--prev { left: 12px; }
.gallery__arrow--prev svg { transform: scaleX(-1); }
.gallery__arrow--next { right: 12px; }

.gallery__dots, .slider__dots { display: flex; justify-content: center; }
.gallery__dots { position: absolute; left: 50%; bottom: 8px; translate: -50% 0; }
.dot { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; background: none; }
.dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: rgba(28, 43, 34, .3); transition: transform .2s, background-color .2s;
}
.dot.is-active::before { background: var(--c-text); transform: scale(1.45); }

.gallery__thumbs { display: none; }

@media (min-width: 750px) {
  .gallery__track { border-radius: var(--radius); }
  .gallery__arrow, .gallery__dots { display: none; }
  .gallery__thumbs {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
    margin: 12px 0 0; padding: 0; list-style: none;
  }
  .thumb {
    display: block; width: 100%; aspect-ratio: 1; padding: 0; overflow: hidden;
    border: 2px solid transparent; border-radius: 8px; background: #f7f5f4;
    transition: border-color .2s;
  }
  .thumb:hover { border-color: rgba(28, 43, 34, .3); }
  .thumb.is-active { border-color: var(--c-text); }
  .thumb img { width: 100%; height: 100%; object-fit: cover; }
}

/* Social proof */
.social-proof { display: flex; align-items: center; margin: 18px 0 14px; }
.avatars { position: relative; z-index: 1; display: flex; }
.avatars__item { position: relative; width: 40px; height: 40px; margin-left: -10px; }
.avatars__item:first-child { margin-left: 0; }
.avatars__item img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 2px solid #fff; }
.avatars__item svg { position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; color: var(--c-accent); }
.social-proof__text {
  margin: 0 0 0 -30px; padding: 4px 14px 4px 44px;
  background: #f7e9e9; border-radius: 30px; line-height: 1.3;
}
.social-proof__text strong { display: block; font-size: 14px; }
.social-proof__text span { font-size: 12px; }

.product__title { font-size: clamp(28px, 3.2vw, 42px); margin: 0 0 6px; }

/* Stars */
.stars { position: relative; display: inline-flex; line-height: 0; color: #ececec; font-size: 16px; vertical-align: middle; }
.stars__bg, .stars__fg { display: inline-flex; gap: 2px; white-space: nowrap; }
.stars__fg { position: absolute; inset: 0 auto 0 0; overflow: hidden; width: calc(var(--rating, 5) / 5 * 100%); color: var(--c-star); }
.stars svg { width: 1em; height: 1em; flex-shrink: 0; fill: currentColor; }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 15px; }

/* Price */
.price { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 16px; }
.price__current { font-size: 28px; font-weight: 700; color: var(--c-accent-dark); }
.price__compare { font-size: 18px; color: var(--c-muted); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: 6px; background: var(--c-accent); color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: .05em; white-space: nowrap;
}
.badge svg { width: 12px; height: 12px; }

.benefits { display: grid; gap: 14px; margin: 16px 0; padding: 0; list-style: none; }

.size-link {
  display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 0; padding: 0;
  border: 0; background: none; font-size: 16px; text-decoration: underline; text-underline-offset: 4px;
}

/* Bundle */
.bundle { margin: 24px 0 16px; padding: 0; border: 0; min-width: 0; }
.bundle__title { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 14px; font-weight: 700; }
.bundle__title::before, .bundle__title::after { content: ""; flex: 1; height: 2px; background: var(--c-accent); }
.bundle__list { display: grid; gap: 14px; }

.bundle-option {
  position: relative; border: 2px solid transparent; border-radius: 8px;
  background: var(--c-soft); transition: background-color .2s, border-color .2s;
}
.bundle-option:hover { border-color: rgba(234, 170, 148, .5); }
.bundle-option.is-selected { background: #fff; border-color: var(--c-accent); }
.bundle-bar { display: flex; align-items: center; gap: 12px; padding: 16px 14px; cursor: pointer; }
.bundle-bar input { position: absolute; opacity: 0; pointer-events: none; }
.bundle-bar__radio {
  display: grid; place-items: center; flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .35); background: #fff;
}
.bundle-bar input:focus-visible ~ .bundle-bar__radio { outline: 2px solid var(--c-brand); outline-offset: 2px; }
.is-selected .bundle-bar__radio { border-color: var(--c-accent); }
.is-selected .bundle-bar__radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c-accent); }
.bundle-bar__main { flex: 1; min-width: 0; }
.bundle-bar__title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 20px; font-weight: 700; line-height: 1.25; }
.bundle-bar__label {
  padding: 2px 8px; border-radius: 4px; background: var(--c-accent); color: #fff;
  font-size: 12px; font-style: normal; font-weight: 500; letter-spacing: .03em;
}
.bundle-bar__sub { display: block; margin-top: 2px; font-size: 14px; color: #555; }
.bundle-bar__prices { text-align: right; line-height: 1.3; }
.bundle-bar__prices strong { display: block; font-size: 18px; }
.bundle-bar__prices s { font-size: 14px; color: #555; }
.bundle-bar__badge {
  position: absolute; top: -11px; right: 14px; z-index: 1;
  padding: 2px 10px; border-radius: 6px; background: var(--c-accent); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
}

.bundle-variants { display: none; gap: 8px; padding: 0 14px 14px 46px; }
.is-selected .bundle-variants { display: grid; }
.variant-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.variant-row__num { min-width: 24px; font-size: 13px; font-weight: 600; color: #555; }
.select { position: relative; flex: 1; min-width: 100px; }
.select select {
  width: 100%; padding: 8px 32px 8px 12px; appearance: none;
  border: 1px solid rgba(0, 0, 0, .25); border-radius: 6px; background: #fff; font-size: 14px; cursor: pointer;
}
.select svg { position: absolute; right: 12px; top: 50%; width: 10px; height: 6px; translate: 0 -50%; pointer-events: none; }
@media (max-width: 420px) {
  .bundle-variants { padding-left: 14px; }
  .bundle-bar__title { font-size: 18px; }
}

/* Upsell toggle */
.upsell {
  display: flex; align-items: center; gap: 12px; margin: 20px 0; padding: 10px 12px;
  border: 2px solid #e6e6e6; background: #f2f2f2; cursor: pointer; transition: border-color .2s;
}
.upsell:has(input:checked) { border-color: var(--c-brand); }
.upsell img { width: 50px; height: 50px; object-fit: cover; flex-shrink: 0; }
.upsell__text { flex: 1; min-width: 0; line-height: 1.35; }
.upsell__title { display: block; font-size: 14px; font-weight: 700; }
.upsell__price { font-size: 14px; color: var(--c-accent-dark); font-weight: 600; }
.upsell--compact { margin: 10px 0; border-radius: 10px; }
.upsell--compact:has(input:checked) { border-color: #dd1d1d; }
.upsell--compact img { border-radius: 4px; }

.switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { position: absolute; inset: 0; z-index: 1; margin: 0; opacity: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 24px; background: #c9c9c9; transition: background-color .2s; }
.switch span::before {
  content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s var(--ease);
}
.switch input:checked + span { background: var(--c-accent); }
.switch input:checked + span::before { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--c-brand); outline-offset: 2px; }

/* Payment chips */
.payments { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; padding: 0; list-style: none; }
.payments--center { justify-content: center; }
.pay {
  display: grid; place-items: center; height: 24px; min-width: 38px; padding: 0 6px;
  border: 1px solid rgba(0, 0, 0, .1); border-radius: 4px; background: #fff; color: #222;
  font-size: 9px; font-weight: 700; letter-spacing: 0; line-height: 1; white-space: nowrap;
}
.pay--amex { background: #0071ce; color: #fff; border-color: transparent; }
.pay--apple { background: #000; color: #fff; border-color: transparent; }
.pay--diners { color: #3086c8; }
.pay--discover { color: #f48120; }
.pay--gpay { color: #5f6368; }
.pay--paypal { color: #003087; font-style: italic; }
.pay--shop { background: #5a31f4; color: #fff; border-color: transparent; }
.pay--visa { background: #1532cb; color: #fff; border-color: transparent; font-style: italic; font-size: 10px; }
.pay--mc { display: flex; justify-content: center; gap: 0; background: #232323; border-color: transparent; }
.pay--mc i { width: 13px; height: 13px; border-radius: 50%; background: #eb001b; }
.pay--mc i + i { margin-left: -5px; background: #f79e1b; mix-blend-mode: screen; }

/* Generic slider */
.slider { position: relative; }
.slider__track {
  position: relative; display: flex; gap: 16px; margin: 0; padding: 4px 2px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > li { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.slider__dots { margin-top: 8px; }
.slider.is-static .slider__dots, .slider.is-static .slider__nav { display: none; }

/* Mini review */
.mini-reviews { margin: 24px 0; }
.review { display: flex; gap: 14px; height: 100%; margin: 0; padding: 16px; border-radius: 12px; background: #f2f2f2; }
.review__avatar { width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.review__text { margin: 0 0 6px; font-size: 14px; }
.review__author { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; font-style: italic; font-weight: 600; }
.review__author .stars { font-size: 13px; }
.verified { width: 15px; height: 15px; color: var(--c-brand); }

/* Accordion */
.accordion { border-top: 1px solid var(--c-line); }
.accordion:last-child { border-bottom: 1px solid var(--c-line); }
.product__info .accordion + .accordion { margin-top: 0; }
.product__info .accordion:first-of-type { margin-top: 24px; }
.accordion summary { display: flex; align-items: center; gap: 12px; padding: 16px 0; cursor: pointer; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion__title { flex: 1; margin: 0; font-size: 16px; font-weight: 600; }
.accordion__caret { width: 10px; height: 6px; flex-shrink: 0; transition: transform .25s var(--ease); }
.accordion[open] .accordion__caret { transform: rotate(180deg); }
.accordion__content { padding: 0 0 18px 36px; }
.accordion__content p { margin-bottom: .5em; }
.accordion__emoji { width: 24px; font-size: 20px; line-height: 1; text-align: center; }
.accordion[open] .accordion__content { animation: reveal .3s var(--ease); }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- Sections ---------- */
.section { padding-block: 16px; }
@media (min-width: 750px) { .section { padding-block: 36px; } }
.section-title { margin-bottom: 28px; text-align: center; font-size: clamp(28px, 4vw, 44px); }

/* Story / video */
.story { display: grid; overflow: hidden; border-radius: var(--radius-lg); background: var(--c-dark); color: #fff; }
.story__media { aspect-ratio: 3 / 4; background: #000; }
.story__media video { width: 100%; height: 100%; object-fit: cover; }
.story__content { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; text-align: center; }
.story__content h2 { font-size: clamp(30px, 4vw, 52px); }
.story__content p { max-width: 460px; margin-bottom: 28px; font-size: 17px; opacity: .9; }
@media (min-width: 750px) {
  .story { grid-template-columns: 1fr 1fr; }
  .story__content { padding: 60px 50px; }
}

/* Waves */
.wave { line-height: 0; background: var(--wave-bg); color: var(--wave-fg); }
.wave svg { display: block; width: 100%; height: 40px; }
@media (min-width: 750px) { .wave svg { height: 70px; } }
.wave--flip svg { transform: scale(-1, -1); }
.wave use { fill: currentColor; animation: wave-move 25s cubic-bezier(.55, .5, .45, .5) infinite; }
.wave g:nth-child(1) use { animation-delay: -2s; animation-duration: 7s; opacity: .7; }
.wave g:nth-child(2) use { animation-delay: -3s; animation-duration: 10s; opacity: .5; }
.wave g:nth-child(3) use { animation-delay: -4s; animation-duration: 13s; opacity: .3; }
.wave g:nth-child(4) use { animation-delay: -5s; animation-duration: 20s; }
@keyframes wave-move {
  0% { transform: translate3d(-90px, 0, 0); }
  100% { transform: translate3d(85px, 0, 0); }
}

/* FAQ */
.faq { padding-block: 27px; background: var(--c-accent-2); color: var(--c-dark); }
.faq__inner { max-width: 850px; }
.faq .accordion { border-color: rgba(46, 42, 57, .2); }
@media (min-width: 750px) { .faq { padding-block: 36px; } }

/* Testimonials */
.testimonials .slider__track > li { flex-basis: 88%; }
.t-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--radius); background: #f3f3f3; color: var(--c-dark); text-align: center; }
.t-card__img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.t-card__body { display: flex; flex: 1; flex-direction: column; align-items: center; padding: 20px 22px 26px; }
.t-card__body .stars { font-size: 18px; }
.t-card__quote { width: 32px; height: 32px; margin: 12px 0; color: var(--c-accent); }
.t-card h3 { font-size: 18px; }
.t-card p { font-size: 15px; }
.t-card__author { margin-top: auto; padding-top: 10px; font-style: italic; font-weight: 700; }

.slider__nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; }
.slider__nav .slider__dots { margin-top: 0; }
.slider__arrow { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--c-dark); }
.slider__arrow svg { width: 14px; height: 14px; }
.slider__arrow--prev svg { transform: scaleX(-1); }
.slider__arrow:disabled { opacity: .3; cursor: default; }

@media (min-width: 750px) {
  .testimonials .slider__track > li { flex-basis: calc(50% - 8px); }
}
@media (min-width: 990px) {
  .testimonials .slider__track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; overflow: visible; }
  .testimonials .slider__nav { display: none; }
}

/* ---------- Footer ---------- */
.footer { padding-block: 24px 15px; background: var(--c-footer); color: #fff; }
.footer__top { display: grid; gap: 30px; padding-bottom: 30px; }
.footer__heading { font-size: 18px; }
.footer__text { color: rgba(255, 255, 255, .75); }
.footer__links { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.footer__links a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.footer__links a:hover { color: #fff; text-decoration: underline; }
.footer__bottom {
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12px; color: rgba(255, 255, 255, .7);
}
.footer__bottom a { text-decoration: none; }
.footer .payments { margin: 0; }
@media (min-width: 750px) {
  .footer { padding-block: 32px 20px; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.newsletter { display: grid; gap: 10px; max-width: 440px; }
.field {
  width: 100%; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 6px;
  background: transparent; color: #fff; transition: border-color .2s;
}
.field::placeholder { color: rgba(255, 255, 255, .6); }
.field:focus { border-color: #fff; outline: none; }
.field--light { margin-top: 4px; border-color: rgba(28, 43, 34, .35); color: var(--c-text); }
.field--light:focus { border-color: var(--c-text); }
textarea.field { resize: vertical; }
.form-msg { min-height: 1.4em; margin: 0; font-size: 14px; }
.form-msg.is-error { color: #ff8a80; }
.contact-form .form-msg.is-error { color: #c62828; }

/* ---------- Sticky ATC ---------- */
.sticky-atc {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding-bottom: env(safe-area-inset-bottom);
  background: #fff; box-shadow: 0 -4px 20px rgba(0, 0, 0, .08);
  transform: translateY(110%); transition: transform .3s var(--ease);
}
.sticky-atc.is-visible { transform: none; }
.sticky-atc__inner { display: flex; align-items: center; gap: 14px; padding-block: 10px; }
.sticky-atc__img { display: none; width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.sticky-atc__info { flex: 1; min-width: 0; line-height: 1.35; }
.sticky-atc__title { margin: 0; overflow: hidden; font-size: 15px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.sticky-atc__price { margin: 0; font-size: 14px; }
.sticky-atc__price strong { color: var(--c-accent-dark); }
.sticky-atc__price s { color: var(--c-muted); }
.sticky-atc .btn { min-height: 46px; padding: 10px 20px; font-size: 14px; }
@media (min-width: 750px) { .sticky-atc__img { display: block; } }

.to-top {
  position: fixed; right: 15px; bottom: 84px; z-index: 30;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: var(--c-accent); color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s, transform .2s, visibility 0s .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
.to-top svg { width: 16px; height: 16px; }
@media (min-width: 750px) { .to-top { right: 20px; bottom: 96px; } }

/* ---------- Overlays: drawers & modals ---------- */
.overlay { position: absolute; inset: 0; background: rgba(18, 18, 18, .5); opacity: 0; transition: opacity .3s; }

.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; transition: visibility 0s .3s; }
.drawer.is-open { visibility: visible; transition: none; }
.drawer.is-open .overlay { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; display: flex; flex-direction: column;
  width: min(420px, 100%); height: 100%; background: #fff;
  transform: translateX(100%); transition: transform .3s var(--ease);
}
.drawer__panel:focus { outline: none; }
.drawer--left .drawer__panel { left: 0; right: auto; transform: translateX(-100%); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--c-line); }
.drawer__title { margin: 0; font-size: 20px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 0 20px; overscroll-behavior: contain; }
.drawer__foot { padding: 16px 20px 20px; border-top: 1px solid var(--c-line); }
.drawer__foot .payments { margin: 12px 0 0; }

.menu { display: grid; padding: 12px 20px; }
.menu a { padding: 14px 0; border-bottom: 1px solid var(--c-line); font-size: 18px; text-decoration: none; }
.menu a[aria-current] { color: var(--c-accent-dark); font-weight: 600; }

/* Cart */
.cart-empty { display: grid; justify-items: center; gap: 20px; padding-block: 60px; text-align: center; }
.cart-empty__title { margin: 0; font-size: 22px; font-weight: 700; }
.cart-lines { margin: 0; padding: 0; list-style: none; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding-block: 16px; border-bottom: 1px solid var(--c-line); }
.cart-line img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: #f7f5f4; }
.cart-line__title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
.cart-line__meta { margin: 3px 0 8px; font-size: 13px; line-height: 1.4; color: var(--c-muted); }
.cart-line__price { display: flex; flex-direction: column; align-items: flex-end; font-size: 14px; }
.cart-line__price s { font-size: 12px; color: var(--c-muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid rgba(0, 0, 0, .2); border-radius: 8px; }
.qty button { width: 32px; height: 32px; padding: 0; border: 0; background: none; font-size: 18px; line-height: 1; }
.qty span { min-width: 26px; font-size: 14px; text-align: center; }
.link-btn { display: block; margin-top: 6px; padding: 0; border: 0; background: none; font-size: 12px; color: var(--c-muted); text-decoration: underline; }
.cart-upsells { padding-block: 10px; }
.cart-total { display: flex; justify-content: space-between; margin: 0; font-size: 20px; font-weight: 700; }
.cart-savings { min-height: 1.2em; margin: 2px 0 12px; font-size: 14px; font-weight: 600; text-align: right; color: var(--c-accent-dark); }

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px;
  visibility: hidden; opacity: 0; transition: opacity .25s, visibility 0s .25s;
}
.modal.is-open { visibility: visible; opacity: 1; transition: opacity .25s; }
.modal.is-open .overlay { opacity: 1; }
.modal__panel {
  position: relative; width: 100%; max-width: 800px; max-height: calc(100dvh - 40px); overflow: auto;
  padding: 36px 24px 24px; border-radius: 14px; background: #fff; box-shadow: 10px 12px 20px rgba(0, 0, 0, .1);
  transform: translateY(12px); transition: transform .25s var(--ease);
}
.modal.is-open .modal__panel { transform: none; }
.modal__panel:focus { outline: none; }
.modal__panel--narrow { max-width: 480px; }
.modal__close { position: absolute; top: 8px; right: 8px; z-index: 1; background: rgba(255, 255, 255, .9); }
.modal__title { text-align: center; }

/* ---------- Checkout-Seite (checkout.html) ---------- */
.co { min-height: 100dvh; display: flex; flex-direction: column; background: var(--c-soft); }
.co__header { background: var(--c-bg); border-bottom: 1px solid var(--c-line); }
.co__header-inner { max-width: 1000px; margin: 0 auto; padding: 16px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.co__logo img { display: block; height: auto; width: 110px; }
.co__back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 6px 8px 0; background: none; border: 0; font: inherit; font-weight: 600; color: var(--c-text); text-decoration: none; }
.co__back:hover { color: var(--c-accent-dark); }
.co__back-icon { width: 13px; height: 13px; transform: rotate(180deg); }
.co__main { flex: 1; width: 100%; max-width: 1000px; margin: 0 auto; padding: 28px var(--gutter) 64px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.co__pay { min-width: 0; }
.co__title { margin: 0 0 4px; font-size: 22px; }
.co__note { margin: 0 0 16px; font-size: 13px; color: var(--c-muted); }
#invoice-pay { max-width: 460px; }
.co__summary { min-width: 0; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 20px; position: sticky; top: 20px; }
.co__summary h2 { margin: 0 0 14px; font-size: 16px; }
.co__lines { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.co-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: start; }
.co-line img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--c-soft); }
.co-line__title { margin: 0; font-weight: 600; font-size: 14px; }
.co-line__meta { margin: 2px 0 0; font-size: 12px; color: var(--c-muted); }
.co-line__qty { margin: 2px 0 0; font-size: 12px; color: var(--c-muted); }
.co-line__price { text-align: right; font-weight: 600; font-size: 14px; white-space: nowrap; }
.co-line__price s { display: block; font-weight: 400; color: var(--c-muted); font-size: 12px; }
.co__row { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 14px; }
.co__row--sep { padding-top: 14px; border-top: 1px solid var(--c-line); }
.co__row--total { font-size: 20px; font-weight: 700; }
.co__savings { color: var(--c-accent-dark); font-weight: 600; }
.co__pay-chips { margin: 14px 0 0; }
.co__empty { text-align: center; padding: 60px var(--gutter); }
.co__empty p { font-size: 18px; font-weight: 600; margin: 0 0 16px; }
@media (max-width: 800px) {
  .co__main { grid-template-columns: 1fr; gap: 20px; }
  .co__summary { position: static; order: -1; }
  #invoice-pay { max-width: none; }
}

/* Bezahl-Widget: sein eigenes graues Overlay ausblenden und die von ihm gesetzte Scroll-Sperre lösen */
#invoice-pay-page-overlay { display: none !important; }
html:has(#invoice-pay) { overflow: auto !important; }

.lightbox .modal__panel { max-width: 1100px; padding: 0; }
.lightbox__list { display: grid; gap: 10px; }
.lightbox__list img { width: 100%; height: auto; }
.contact-form { display: grid; gap: 14px; }
.contact-form label { font-size: 14px; font-weight: 600; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .ticker__track { animation: none; }
}
