/* ============================================================
   METOD PAGE — extends pax.css for kitchen-specific layout
   ============================================================ */

/* Sticky buy bar — appears after hero scrolls away (desktop) */
.sticky-buy-bar {
    position: fixed;
    top: var(--desktop-nav-h);
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 0 0 0 var(--radius-md);
    padding: var(--sp-3) var(--sp-5);
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    box-shadow: var(--shadow-sm);
    transform: translateX(110%);
    transition: transform var(--dur-slow) var(--ease-spring);
    z-index: 99;
}

.sticky-buy-bar.is-visible { transform: translateX(0); }

/* Product option rows */
.metod-options {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    margin-top: var(--sp-8);
}

.metod-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    padding: var(--sp-5);
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
}

.metod-option--featured { border-color: var(--forest); background: var(--forest-tint); }

.metod-option__info { flex: 1; min-width: 0; }
.metod-option__title { font: 600 var(--text-base)/1.3 var(--font-body); color: var(--ink); margin-bottom: 3px; }
.metod-option__desc  { font: 400 var(--text-xs)/1.4 var(--font-body); color: var(--ink-2); }

.metod-option__price { font: 600 var(--text-xl)/1 var(--font-display); color: var(--ink); flex-shrink: 0; }

/* ── CHECKLIST (Sam eBook) ───────────────────────────────── */

.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin: var(--sp-6) 0;
}

.checklist li {
  font: 400 var(--text-sm)/1.65 var(--font-body);
  color: var(--ink-2);
  padding-left: var(--sp-6);
  position: relative;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--forest-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8l3.5 3.5 6.5-7' stroke='%233A6B52' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── FLIPBOOK WRAPPER (DearFlip podgląd eBooka) ─────────── */

.metod-flipbook {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metod-flipbook__fallback {
  text-align: center;
  color: var(--ink-3);
  font: 400 var(--text-sm)/1.6 var(--font-body);
  max-width: 40ch;
}

.metod-flipbook__fallback svg {
  width: 40px;
  height: 40px;
  stroke: var(--tan);
  fill: none;
  margin-bottom: var(--sp-4);
}

/* Dostosuj kolory wtyczki DearFlip do motywu Japandi */
.metod-flipbook .df-ui-btn,
.metod-flipbook .df-button {
  background: var(--espresso) !important;
  color: var(--bg-base) !important;
  border-radius: var(--radius-xs) !important;
}

/* ── PASEK CTA PRZED FAQ ─────────────────────────────────── */

.metod-band {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-5);
  padding: var(--sp-10) 0;
  border-top: 1px solid var(--border-s);
}

@media (min-width: 768px) {
  .metod-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-8);
  }
}

.metod-band__sub {
  font: 400 var(--text-sm)/1.5 var(--font-body);
  color: var(--ink-2);
  margin-top: var(--sp-2);
  max-width: 50ch;
}

/* ── PRZEWODNIK 2-KOL (tekst + 4 karty) ──────────────────── */

.metod-guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}

@media (min-width: 900px) {
  .metod-guide-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-12);
    align-items: start;
  }
}

.metod-guide-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.guide-card {
  background: var(--bg-surface);
  padding: var(--sp-5);
  transition: background var(--dur-fast);
}

.guide-card:hover { background: var(--forest-tint); }

.guide-card__title {
  font: 600 var(--text-xs)/1.3 var(--font-body);
  color: var(--ink);
  margin-bottom: var(--sp-2);
}

.guide-card__desc {
  font: 400 var(--text-xs)/1.6 var(--font-body);
  color: var(--ink-2);
}

/* ── GALERIA KLIENTÓW (karuzela 9:16) ────────────────────── */

.metod-gallery-track {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.metod-gallery-track::-webkit-scrollbar { display: none; }

.metod-gallery-item {
  flex: 0 0 65%;
  scroll-snap-align: start;
  aspect-ratio: 9/16;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--tan-light);
  border: none;
  padding: 0;
}

@media (min-width: 640px) {
  .metod-gallery-item { flex: 0 0 32%; }
}

@media (min-width: 1024px) {
  .metod-gallery-item { flex: 0 0 23%; }
}

.metod-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease);
}

.metod-gallery-item:hover img { transform: scale(1.04); }

/* ── STICKY CTA — MOBILE (dolny pasek "Kup teraz") ───────── */

.m-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--tab-h) + var(--tab-safe));
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(44,25,14,0.08);
}

@media (max-width: 899px) {
  .m-sticky-cta { display: flex; }
}

.m-sticky-cta__left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.m-sticky-cta__label {
  font: 600 10px/1 var(--font-mono);
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.m-sticky-cta__price {
  font: 600 var(--text-lg)/1 var(--font-display);
  color: var(--espresso);
  white-space: nowrap;
}

.m-sticky-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  height: 44px;
  padding: 0 var(--sp-5);
  border-radius: var(--radius-pill);
  background: var(--forest);
  color: #fff;
  font: 600 var(--text-sm)/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--dur-fast);
}

.m-sticky-cta__btn:hover { background: var(--forest-hover); }

.m-sticky-cta__btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}

/* Dodatkowy odstęp na dole strony METOD (mobile), żeby sticky CTA + tab-bar nie zasłaniały treści */
@media (max-width: 899px) {
  body.has-m-sticky-cta {
    padding-bottom: calc(var(--tab-h) + var(--tab-safe) + 64px);
  }
}
