/* wowdrop.shop — design system (mobile-first) */

:root {
  --bg:           #F5F0E8;
  --bg-card:      #FFFFFF;
  --accent:       #FF6B00;
  --accent-hover: #E05A00;
  --text:         #1A1A1A;
  --text-muted:   #6B6560;
  --border:       #E8E2D9;
  --success:      #2E7D32;
  --danger:       #C62828;
  --font:         'Inter', sans-serif;
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    16px;
  --shadow:       0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.14);
  --transition:   all 0.25s ease;

  --top-bar-h:    40px;
  --header-h:     72px;
  --sticky-offset: calc(var(--top-bar-h) + var(--header-h));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  padding-top: var(--sticky-offset);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h3 { font-size: 1.125rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ─── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

.section {
  padding: 48px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 64px 0;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Top bar ─────────────────────────────────────────────────── */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  height: var(--top-bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.top-bar__rotator {
  flex: 1;
  min-width: 0;
  text-align: center;
}

@media (min-width: 480px) {
  .top-bar__rotator {
    text-align: left;
  }
}

.top-bar__cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  flex-shrink: 0;
}

.top-bar .cart-badge {
  background: #fff;
  color: var(--accent);
}

.top-bar__cart-link:hover {
  color: #fff;
  opacity: 0.9;
}

/* ─── Header ──────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: var(--top-bar-h);
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}

.logo:hover {
  color: var(--text);
  opacity: 0.85;
}

.logo__icon {
  font-size: 1.35rem;
  line-height: 1;
  align-self: center;
}

.logo__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.logo__name {
  font-size: inherit;
  font-weight: inherit;
}

.logo__domain {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.2;
}

/* Desktop nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 8px;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.nav-desktop a:hover {
  color: var(--accent);
  background: rgba(255, 107, 0, 0.08);
}

/* Dropdown Kategorie */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.nav-dropdown__toggle:hover,
.nav-dropdown:focus-within .nav-dropdown__toggle {
  color: var(--accent);
  background: rgba(255, 107, 0, 0.08);
}

.nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin: 4px 0 0;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: var(--transition);
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown__menu a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
}

.nav-dropdown__menu a:hover {
  background: var(--bg);
  color: var(--accent);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text);
  border-radius: var(--radius-sm);
}

.cart-link:hover {
  background: var(--bg);
  color: var(--accent);
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: 99px;
}

/* Burger */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  border-radius: var(--radius-sm);
}

@media (min-width: 768px) {
  .burger {
    display: none;
  }
}

.burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: var(--transition);
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.nav-mobile.is-open {
  display: flex;
}

@media (min-width: 768px) {
  .nav-mobile {
    display: none !important;
  }
}

.nav-mobile a {
  color: var(--text);
  font-weight: 500;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
}

.nav-mobile a:hover {
  background: var(--bg);
  color: var(--accent);
}

.nav-mobile__sub {
  padding-left: 12px;
  border-left: 2px solid var(--border);
  margin: 8px 0;
}

.nav-mobile__sub a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}

/* ─── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 56px;
  text-align: center;
}

@media (min-width: 768px) {
  .hero {
    padding: 80px 0 72px;
  }
}

.hero__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__circle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.12;
}

.hero__circle--1 {
  width: 280px;
  height: 280px;
  top: -80px;
  right: -60px;
}

.hero__circle--2 {
  width: 180px;
  height: 180px;
  bottom: -40px;
  left: -50px;
}

.hero__circle--3 {
  width: 120px;
  height: 120px;
  top: 40%;
  left: 15%;
  opacity: 0.08;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__lead {
  max-width: 520px;
  margin: 0 auto 24px;
  font-size: 1.0625rem;
  color: var(--text-muted);
}

/* ─── Trust strip ─────────────────────────────────────────────── */
.trust-strip {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 12px;
}

@media (min-width: 768px) {
  .trust-strip__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.trust-strip__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

@media (min-width: 480px) {
  .trust-strip__item {
    font-size: 14px;
  }
}

.trust-strip__icon {
  font-size: 1.25rem;
  line-height: 1.2;
  flex-shrink: 0;
}

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-card);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn-icon-only {
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
}

/* ─── Catalog ─────────────────────────────────────────────────── */
.catalog__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-btn {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 99px;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (min-width: 768px) {
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

/* Product card */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--border);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 1;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
  border-radius: var(--radius-sm);
  line-height: 1.2;
}

.badge--bestseller {
  background: var(--accent);
}

.badge--new {
  background: var(--success);
}

.badge--hit {
  background: var(--danger);
}

.badge--discount {
  background: #333;
}

.badge--out-of-stock {
  background: var(--text-muted);
  color: #fff;
}

.product-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.product-card__title {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.35;
  color: var(--text);
  margin: 0;
}

.product-card__title a {
  color: inherit;
}

.product-card__title a:hover {
  color: var(--accent);
}

.product-card__rating {
  font-size: 13px;
  color: var(--text-muted);
}

.product-card__price-old {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card__price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
}

.product-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.product-card__actions .btn {
  width: 100%;
}

/* Stars (simple unicode) */
.stars {
  color: var(--accent);
  letter-spacing: 1px;
}

/* ─── Reviews ─────────────────────────────────────────────────── */
.reviews__grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .reviews__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.review-card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.review-card__meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.review-card__name {
  font-weight: 600;
  color: var(--text);
}

/* ─── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  margin-top: auto;
}

.site-footer__grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.site-footer__tagline {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 280px;
  margin-top: 8px;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__nav a {
  color: var(--text);
  font-size: 15px;
}

.site-footer__nav a:hover {
  color: var(--accent);
}

.site-footer__bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── Product page gallery ───────────────────────────────────── */
.product-page.section {
  padding: 28px 0 40px;
}

@media (min-width: 768px) {
  .product-page.section {
    padding: 32px 0 48px;
  }
}

.product-detail h1 {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.35em;
}

.product-layout {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .product-layout {
    /* Galeria ~+25% vs wcześniejsze 340/380px */
    grid-template-columns: minmax(0, 425px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .product-layout {
    grid-template-columns: minmax(0, 475px) minmax(0, 1fr);
    gap: 32px;
  }
}

.product-gallery {
  min-width: 0;
}

.product-gallery__inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

@media (min-width: 768px) {
  .product-gallery__inner {
    gap: 14px;
  }
}

.product-gallery__main-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  touch-action: pan-y;
}

.product-gallery__main {
  /* ~+25% vs kwadrat, potem jeszcze +10% wysokości (4/5 → 8/11) */
  aspect-ratio: 8 / 11;
  max-height: min(583px, 66vh);
  margin: 0 auto;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--border);
  border: 1px solid var(--border);
}

@media (min-width: 768px) {
  .product-gallery__main {
    max-height: none;
    margin: 0;
  }
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 1.75rem;
  height: auto;
  min-height: 1.75rem;
  padding: 2px 4px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(30, 30, 30, 0.88);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.92),
    0 1px 2px rgba(0, 0, 0, 0.2);
  transition: color 0.15s ease, opacity 0.2s ease;
}

.gallery-arrow:hover:not(:disabled) {
  color: #111;
}

.gallery-arrow:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.gallery-arrow--prev {
  left: 2px;
}

.gallery-arrow--next {
  right: 2px;
}

@media (min-width: 768px) {
  .gallery-arrow {
    font-size: 2.25rem;
    min-width: 2rem;
    min-height: 2rem;
    padding: 4px 6px;
  }

  .gallery-arrow--prev {
    left: 6px;
  }

  .gallery-arrow--next {
    right: 6px;
  }
}

.gallery-main-slot {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.gallery-main-slot img,
.gallery-main-slot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
}

.product-gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  max-height: min(583px, 66vh);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 4px 2px 0;
  margin: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

@media (min-width: 768px) {
  .product-gallery__thumbs {
    max-height: min(660px, 86vh);
  }
}

.thumb-item {
  width: 58px;
  height: 58px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  background: var(--border);
  font: inherit;
  color: inherit;
}

.thumb-item.active {
  border-color: var(--accent);
}

.thumb-item img,
.thumb-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-video-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.thumb-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 18px;
  pointer-events: none;
}

.product-detail__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 10px 0 8px;
}

.product-detail__price-old {
  font-size: 1rem;
  text-decoration: line-through;
  color: var(--text-muted);
}

.product-detail__price {
  font-size: clamp(1.35rem, 2.8vw, 1.65rem);
  font-weight: 700;
  color: var(--accent);
}

.product-detail__qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
}

.product-detail__qty button {
  width: 38px;
  height: 38px;
  border: 0;
  background: var(--bg);
  font-size: 1.1rem;
  color: var(--text);
}

.product-detail__qty button:hover {
  background: var(--border);
}

.product-detail__qty input {
  width: 42px;
  height: 38px;
  border: 0;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}

.product-detail__features {
  margin: 16px 0 12px;
  padding: 0;
  font-size: 14px;
}

.product-detail__features li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.product-detail__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.product-detail__trust {
  padding-top: 14px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.product-detail__trust p {
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.product-page__loading {
  color: var(--text-muted);
  padding: 24px 0;
}

.product-detail__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 6px;
}

.product-detail .product-card__rating {
  font-size: 13px;
  margin-bottom: 2px;
}

.product-detail__desc {
  color: var(--text-muted);
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
}

.product-detail__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 16px;
}

.product-detail__actions .btn {
  padding: 10px 18px;
  font-size: 14px;
}

.product-detail__qty input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.product-detail__qty input::-webkit-outer-spin-button,
.product-detail__qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.reviews-section {
  margin-top: 48px;
  padding: 32px 12px;
  border-top: 1px solid var(--border);
}

.reviews-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.reviews-header h2 {
  margin: 0;
  font-size: 1.35rem;
}

.reviews-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.reviews-stars {
  color: var(--accent);
  font-size: 18px;
  font-weight: 500;
}

.reviews-count {
  font-size: 14px;
}

.reviews-carousel-wrap {
  position: relative;
  overflow: hidden;
}

.reviews-carousel {
  display: flex;
  gap: 16px;
  will-change: transform;
  transition: transform 0.4s ease;
}

.reviews-carousel .review-card {
  flex: 0 0 auto;
  width: min(380px, calc(100vw - 120px));
  max-width: 100%;
  box-sizing: border-box;
}

.reviews-section .review-media {
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.reviews-section .review-media img,
.reviews-section .review-media video {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-sm);
}

.reviews-section .review-stars {
  color: #f5a623;
  font-size: 16px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.reviews-section .review-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 14px;
  font-style: italic;
}

.reviews-section .review-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reviews-section .review-name {
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
}

.reviews-section .review-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.buyer-photos-section {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.buyer-photos-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.buyer-photos-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 16px;
  line-height: 1.45;
}

.buyer-photos-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.buyer-photo-item {
  flex: 0 0 auto;
  width: min(300px, 82vw);
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--border);
  border: 1px solid var(--border);
}

.buyer-photo-item img,
.buyer-photo-item video {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.reviews-section .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: var(--transition);
  box-shadow: var(--shadow);
  padding: 0;
}

.reviews-section .carousel-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.reviews-section .carousel-btn--prev {
  left: -20px;
}

.reviews-section .carousel-btn--next {
  right: -20px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.carousel-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .reviews-carousel .review-card {
    width: min(380px, calc(100vw - 56px));
  }

  .reviews-section .carousel-btn--prev {
    left: 4px;
  }

  .reviews-section .carousel-btn--next {
    right: 4px;
  }
}

.related-block {
  margin-top: 8px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.related-block h2 {
  margin-bottom: 24px;
}

.related__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (min-width: 768px) {
  .related__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ─── Cart & checkout ─────────────────────────────────────────── */
.cart-layout {
  display: grid;
  gap: 32px;
}

@media (min-width: 768px) {
  .cart-layout {
    grid-template-columns: 3fr 2fr;
    align-items: start;
    gap: 40px;
  }
}

.cart-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item__img {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--border);
}

.cart-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__title {
  font-weight: 500;
  margin-bottom: 8px;
}

.cart-item__title a {
  color: var(--text);
}

.cart-item__body {
  min-width: 0;
}

.cart-item__line-total {
  margin-left: auto;
  font-weight: 600;
  white-space: nowrap;
}

.cart-item__qty span {
  min-width: 36px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  padding: 0 8px;
}

.cart-item__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-item__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.cart-item__qty button {
  width: 36px;
  height: 36px;
  border: 0;
  background: var(--bg);
  font-size: 1.125rem;
}

.cart-item__remove {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: underline;
}

.cart-item__remove:hover {
  color: var(--danger);
}

.cart-empty {
  text-align: center;
  padding: 48px 16px;
}

.order-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.order-summary + .order-summary {
  margin-top: 16px;
}

.order-summary__title,
.checkout-form__title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 16px;
}

.cart-aside {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cart-aside .btn-checkout {
  margin-top: 16px;
}

.form-field {
  margin-bottom: 4px;
}

.form-field .field-error {
  margin: 4px 0 8px;
}

.checkout-form__title {
  margin-top: 8px;
}

.checkout-form__hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0 0 14px;
}

.order-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  font-size: 15px;
}

.order-summary__row--total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 1.25rem;
  font-weight: 700;
}

.order-summary__gratis {
  color: var(--success);
  font-weight: 600;
}

.promo-row {
  display: flex;
  gap: 8px;
  margin: 20px 0;
}

.promo-row input {
  flex: 1;
}

.form-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
}

#checkoutForm {
  margin-top: 20px;
}

#checkoutForm input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  transition: var(--transition);
}

#checkoutForm input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

#checkoutForm .form-row {
  display: grid;
  gap: 12px;
}

@media (min-width: 480px) {
  #checkoutForm .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field-error {
  font-size: 13px;
  color: var(--danger);
  margin: -8px 0 8px;
}

.input--error {
  border-color: var(--danger) !important;
}

.promo-msg {
  font-size: 13px;
  margin-bottom: 8px;
}

.promo-msg--ok {
  color: var(--success);
}

.promo-msg--err {
  color: var(--danger);
}

/* ─── Legal & result pages ────────────────────────────────────── */
.legal-page {
  padding: 32px 0 64px;
  max-width: 720px;
}

.legal-placeholder {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.legal-date {
  color: var(--text-muted);
  font-size: 14px;
  margin: -0.25rem 0 1.5rem;
}

.legal-prose section {
  margin-bottom: 2rem;
}

.legal-prose h2 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.legal-prose p,
.legal-prose li {
  color: var(--text-muted);
  line-height: 1.65;
}

.legal-prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-prose li {
  margin-bottom: 0.35rem;
}

.legal-prose a {
  font-weight: 500;
}

.legal-back {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ─── Content pages (O nas, Dostawa, Kontakt) ──────────────────── */
.content-page__inner {
  max-width: 720px;
}

.content-page__lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.content-page h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.content-page p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.content-page p strong {
  color: var(--text);
}

.content-page__muted {
  font-size: 15px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}

.contact-card p {
  margin-bottom: 0.5rem;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.result-page {
  min-height: calc(100vh - var(--sticky-offset) - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px;
}

.result-page h1 {
  margin-bottom: 16px;
}

.result-page p {
  max-width: 420px;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.result-page .btn {
  margin: 8px 6px;
}

.result-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.result-page--success .result-icon {
  background: rgba(46, 125, 50, 0.15);
  color: var(--success);
}

.result-page--failed .result-icon {
  background: rgba(198, 40, 40, 0.12);
  color: var(--danger);
}

/* ─── Toast ───────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  opacity: 0;
  transition: var(--transition);
  z-index: 9999;
  max-width: calc(100vw - 32px);
  text-align: center;
  box-shadow: var(--shadow-hover);
}

.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Page header (inner pages) ───────────────────────────────── */
.page-hero {
  padding: 24px 0 8px;
}

.page-hero h1 {
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--text-muted);
}
