/* ==========================================================================
   Meble Węgrzyn — "liquid glass" UI
   ========================================================================== */
@view-transition { navigation: auto; }

:root {
  --ink: #1d2220;
  --ink-2: #4a524e;
  --ink-3: #7b847f;
  --paper: #f3f1ec;
  --sage: #9db5a5;
  --sage-deep: #5f7f6c;
  --oak: #c9a574;
  --clay: #e3c4b2;
  --accent: #2f5a45;
  --accent-ink: #fff;
  --danger: #b4452f;
  --ok: #2f7a4f;

  --glass-bg: linear-gradient(135deg, rgba(255,255,255,.52), rgba(255,255,255,.18));
  --glass-bg-strong: linear-gradient(135deg, rgba(255,255,255,.78), rgba(255,255,255,.46));
  --glass-border: rgba(255,255,255,.62);
  --glass-shadow: 0 1px 0 rgba(255,255,255,.85) inset, 0 -1px 0 rgba(255,255,255,.2) inset,
                  0 0 0 .5px rgba(29,34,32,.06), 0 12px 40px -12px rgba(33,48,40,.28), 0 2px 6px rgba(33,48,40,.06);
  --blur: blur(22px) saturate(185%);

  --r-sm: 14px; --r-md: 22px; --r-lg: 32px; --r-pill: 999px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1240px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
::selection { background: rgba(95,127,108,.28); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Ambient background (to przez nie "prześwituje" szkło) ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background:
  radial-gradient(1200px 800px at 10% -10%, #e9efe9 0%, transparent 60%),
  radial-gradient(900px 700px at 110% 10%, #f4e8dc 0%, transparent 60%),
  linear-gradient(180deg, #f5f3ee, #efece5); }
.ambient::after { content: ""; position: absolute; inset: -10%; background: url(/img/akwarela.jpg) center/cover; opacity: .28; mix-blend-mode: multiply; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform; }
.blob.b1 { width: 46vmax; height: 46vmax; left: -12vmax; top: 18vh; background: radial-gradient(circle at 30% 30%, #a9c3b1, #7fa08b 60%, transparent 70%); animation: drift1 26s var(--ease) infinite alternate; }
.blob.b2 { width: 38vmax; height: 38vmax; right: -10vmax; top: -8vh; background: radial-gradient(circle at 60% 40%, #e2c29a, #cfa574 55%, transparent 70%); animation: drift2 30s var(--ease) infinite alternate; }
.blob.b3 { width: 30vmax; height: 30vmax; right: 12vw; bottom: -12vh; background: radial-gradient(circle, #ecc9b8, #d9a996 55%, transparent 70%); animation: drift3 34s var(--ease) infinite alternate; opacity: .45; }
@keyframes drift1 { to { transform: translate(14vw, -10vh) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-12vw, 16vh) scale(.92); } }
@keyframes drift3 { to { transform: translate(-18vw, -14vh) scale(1.18); } }

/* ---------- Liquid glass ---------- */
.glass {
  position: relative; isolation: isolate;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--r-md);
}
.glass.strong { background: var(--glass-bg-strong); }
/* krawędź świetlna (specular rim) */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  padding: 1px;
  background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(255,255,255,0) 32%, rgba(255,255,255,0) 68%, rgba(255,255,255,.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
/* odblask podążający za kursorem */
.glass.shine::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(255,255,255,.55), transparent 42%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.glass.shine:hover::after { opacity: 1; }
/* Refrakcja (zniekształcenie tła) — Chrome/Edge; inne przeglądarki: zwykłe rozmycie */
html.lg-refract .glass.refract { -webkit-backdrop-filter: url(#lg-refract) blur(6px) saturate(190%); backdrop-filter: url(#lg-refract) blur(6px) saturate(190%); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(250,249,246,.94); }
}

/* ---------- Layout ---------- */
.wrap { width: min(var(--maxw), 100% - 32px); margin-inline: auto; }
main { display: block; padding-top: 108px; min-height: 70vh; view-transition-name: main; }
section { padding: clamp(40px, 6vw, 84px) 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-3); }
.center { text-align: center; }
.stack > * + * { margin-top: 12px; }
.grid { display: grid; gap: 22px; }

/* ---------- Nawigacja (pływająca pastylka) ---------- */
.nav {
  position: fixed; top: 16px; left: 50%; translate: -50% 0; z-index: 50;
  display: flex; align-items: center; gap: 6px; padding: 7px 7px 7px 16px;
  width: min(var(--maxw), 100% - 24px); border-radius: var(--r-pill);
  view-transition-name: site-nav;
  transition: padding .4s var(--ease), width .5s var(--ease), background .4s;
}
.nav.scrolled { width: min(980px, 100% - 24px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; font-weight: 800; letter-spacing: .12em; }
.brand img { height: 30px; width: auto; }
.brand span { font-size: 1.02rem; }
.brand small { display: block; font-size: .56rem; font-weight: 500; letter-spacing: .34em; color: var(--ink-3); margin-top: -3px; }
.nav-links { display: flex; gap: 2px; position: relative; }
.nav-links a {
  position: relative; z-index: 1; text-decoration: none; padding: 9px 16px; border-radius: var(--r-pill);
  font-size: .94rem; font-weight: 550; color: var(--ink-2); transition: color .3s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-pill { /* wskaźnik aktywnej zakładki, przesuwany jak w iOS */
  position: absolute; z-index: 0; top: 0; height: 100%; border-radius: var(--r-pill);
  background: rgba(255,255,255,.7); box-shadow: 0 1px 0 #fff inset, 0 4px 14px -4px rgba(33,48,40,.25);
  transition: left .55s var(--spring), width .55s var(--spring), opacity .3s; opacity: 0;
}
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--r-pill);
  border: 0; background: var(--ink); color: #fff; cursor: pointer; font-weight: 600; font-size: .92rem;
  transition: transform .45s var(--spring), background .3s;
}
.cart-btn:hover { transform: scale(1.04); background: #000; }
.cart-btn:active { transform: scale(.94); }
.cart-btn svg { width: 18px; height: 18px; }
.badge {
  min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 10px;
  background: #fff; color: var(--ink); font-size: .74rem; font-weight: 800;
}
.badge.bump { animation: bump .6s var(--spring); }
@keyframes bump { 30% { transform: scale(1.5); } }

/* Dolny pasek zakładek na telefonie — styl iOS */
.tabbar { display: none; }
@media (max-width: 860px) {
  .nav-links, .cart-btn .label { display: none; }
  .nav { padding: 6px 6px 6px 14px; }
  .tabbar {
    display: flex; position: fixed; z-index: 50; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); translate: -50% 0;
    width: min(460px, 100% - 24px); padding: 6px; border-radius: var(--r-pill); justify-content: space-between;
    view-transition-name: tabbar;
  }
  .tabbar a {
    flex: 1; display: grid; justify-items: center; gap: 1px; padding: 7px 4px 5px; border-radius: var(--r-pill);
    text-decoration: none; font-size: .66rem; font-weight: 600; color: var(--ink-3); position: relative; z-index: 1;
    transition: color .3s, transform .4s var(--spring);
  }
  .tabbar a:active { transform: scale(.9); }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--ink); }
  .tabbar .nav-pill { opacity: 1; }
  body { padding-bottom: 96px; }
  main { padding-top: 90px; }
}

/* ---------- Przyciski ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  padding: 15px 26px; border-radius: var(--r-pill); border: 0; text-decoration: none; font-weight: 650; font-size: 1rem;
  background: var(--bg); color: var(--fg); position: relative; overflow: hidden;
  transition: transform .5s var(--spring), box-shadow .4s var(--ease), background .3s;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 10px 26px -10px rgba(29,34,32,.55);
}
.btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 18px 34px -12px rgba(29,34,32,.55); }
.btn:active { transform: scale(.95); transition-duration: .15s; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn.accent { --bg: var(--accent); }
.btn.ghost { --bg: transparent; --fg: var(--ink); }
.btn.glass { color: var(--ink); background: var(--glass-bg); box-shadow: var(--glass-shadow); }
.btn.small { padding: 10px 18px; font-size: .9rem; }
.btn.block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.45); transform: scale(0); animation: ripple .7s var(--ease) forwards; pointer-events: none; }
.btn.glass .ripple { background: rgba(255,255,255,.9); }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
.link { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid rgba(29,34,32,.25); transition: border-color .3s; }
.link:hover { border-color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(24px, 5vw, 60px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.hero h1 .soft { color: var(--sage-deep); font-weight: 300; font-style: italic; letter-spacing: -.03em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-visual { position: relative; aspect-ratio: 4/3.7; }
.hero-photo { position: absolute; inset: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(33,48,40,.45); view-transition-name: hero-photo; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% center; transform: scale(1.08); transition: transform 1.4s var(--ease); }
.hero-visual:hover .hero-photo img { transform: scale(1.02); }
.chip-float {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 12px; border-radius: var(--r-pill);
  font-weight: 650; font-size: .92rem; animation: float 7s ease-in-out infinite;
}
.chip-float .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; }
.chip-float .dot svg { width: 18px; height: 18px; }
.chip-float.c1 { left: -6%; top: 12%; }
.chip-float.c2 { right: -5%; top: 46%; animation-delay: -2.4s; }
.chip-float.c3 { left: 8%; bottom: 7%; animation-delay: -4.6s; }
@keyframes float { 50% { transform: translateY(-12px); } }
.hero-stats { display: flex; gap: 12px; margin-top: 38px; flex-wrap: wrap; }
.stat { padding: 14px 20px; border-radius: var(--r-md); min-width: 130px; }
.stat b { display: block; font-size: 1.5rem; letter-spacing: -.03em; }
.stat span { font-size: .82rem; color: var(--ink-2); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 4/3.4; }
  .chip-float { font-size: .8rem; padding: 8px 14px 8px 8px; }
  .chip-float .dot { width: 28px; height: 28px; }
  .chip-float.c1 { left: 10px; top: 14px; } .chip-float.c2 { right: 10px; top: auto; bottom: 22%; } .chip-float.c3 { left: 10px; bottom: 14px; }
}

/* ---------- Sekcje / nagłówki sekcji ---------- */
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; }

/* Kategorie */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat {
  display: grid; justify-items: center; gap: 6px; padding: 20px 12px 16px; text-decoration: none; text-align: center;
  transition: transform .55s var(--spring);
}
.cat:hover { transform: translateY(-6px) scale(1.03); }
.cat:active { transform: scale(.96); }
.cat img { width: 92px; height: 70px; object-fit: contain; }
.cat b { font-size: .96rem; }
.cat small { color: var(--ink-3); font-size: .78rem; }

/* ---------- Karty produktów ---------- */
.products { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); text-decoration: none;
  transition: transform .6s var(--spring), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--glass-shadow), 0 34px 60px -26px rgba(33,48,40,.45); }
.card-media { position: relative; aspect-ratio: 4/3; margin: 10px 10px 0; border-radius: calc(var(--r-lg) - 10px); overflow: hidden; display: grid; place-items: center; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card-media img.art { object-fit: contain; padding: 12% 10%; }
.card:hover .card-media img { transform: scale(1.06); }
.tint-biurka { background: linear-gradient(145deg, #e8efe9, #cfdcd2); }
.tint-stoliki { background: linear-gradient(145deg, #f3e9dd, #e4cfb4); }
.tint-szafy { background: linear-gradient(145deg, #eceae4, #d6d2c7); }
.tint-komody { background: linear-gradient(145deg, #efe3dc, #dfc3b3); }
.tint-rtv { background: linear-gradient(145deg, #e3e9ec, #c9d5da); }
.tint-regaly { background: linear-gradient(145deg, #eef0e4, #d5dbbf); }
.tint-sypialnia { background: linear-gradient(145deg, #eee6ee, #d9cbd8); }
.tint-default { background: linear-gradient(145deg, #eeece6, #dcd8cd); }
.card-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.12rem; }
.card-body p { margin: 0; font-size: .9rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.price { font-weight: 750; font-size: 1.18rem; letter-spacing: -.02em; }
.price s { font-weight: 500; color: var(--ink-3); font-size: .85em; margin-left: 6px; }
.add-quick {
  width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--ink); color: #fff; transition: transform .5s var(--spring), background .3s;
}
.add-quick:hover { transform: scale(1.12) rotate(90deg); }
.add-quick:active { transform: scale(.88); }
.add-quick svg { width: 20px; height: 20px; }
.tag { position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: var(--r-pill); font-size: .72rem; font-weight: 700; letter-spacing: .04em; }

/* ---------- Segmentowy przełącznik (filtry) ---------- */
.segmented { display: inline-flex; gap: 2px; padding: 5px; border-radius: var(--r-pill); position: relative; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.segmented::-webkit-scrollbar { display: none; }
.segmented a, .segmented button, .segmented label {
  position: relative; z-index: 1; white-space: nowrap; padding: 9px 16px; border-radius: var(--r-pill); border: 0; background: none;
  text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--ink-2); cursor: pointer; transition: color .3s;
}
.segmented [aria-current="true"], .segmented .on { color: var(--ink); }
.segmented .nav-pill { opacity: 1; }
.toolbar { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 28px; }
.select { padding: 11px 38px 11px 16px; border-radius: var(--r-pill); border: 1px solid var(--glass-border); appearance: none; cursor: pointer;
  background: rgba(255,255,255,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231d2220' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 15px center;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); font-weight: 600; font-size: .9rem; }

/* ---------- Strona produktu ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.pdp-media { padding: 12px; border-radius: var(--r-lg); position: sticky; top: 100px; }
.pdp-main { aspect-ratio: 1/1; border-radius: calc(var(--r-lg) - 12px); overflow: hidden; display: grid; place-items: center; }
.pdp-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease), transform .6s var(--ease); }
.pdp-main img.art { object-fit: contain; padding: 14%; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.thumbs button { width: 74px; height: 74px; flex: none; border-radius: 16px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: #fff; transition: border-color .3s, transform .4s var(--spring); }
.thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.thumbs button:hover { transform: scale(1.06); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); }
.pdp-info h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 8px; }
.pdp-price { font-size: 2rem; font-weight: 750; letter-spacing: -.03em; margin: 10px 0 18px; }
.field-label { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 22px 0 10px; display: block; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px 8px 8px; border-radius: var(--r-pill); cursor: pointer;
  border: 1.5px solid rgba(29,34,32,.12); background: rgba(255,255,255,.5); font-weight: 600; font-size: .9rem; transition: border-color .3s, transform .4s var(--spring), background .3s; }
.swatch:hover { transform: scale(1.04); }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch:has(input:checked) { border-color: var(--ink); background: #fff; }
.swatch i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); background: #ddd; }
.buy-row { display: flex; gap: 12px; margin-top: 26px; }
.qty { display: inline-flex; align-items: center; border-radius: var(--r-pill); padding: 4px; }
.qty button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; font-size: 1.2rem; transition: background .3s, transform .3s var(--spring); }
.qty button:hover { background: rgba(255,255,255,.8); }
.qty button:active { transform: scale(.85); }
.qty input { width: 38px; text-align: center; border: 0; background: none; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.specs { margin: 26px 0 0; display: grid; gap: 0; border-top: 1px solid rgba(29,34,32,.1); }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(29,34,32,.1); font-size: .94rem; }
.specs dt { color: var(--ink-3); margin: 0; } .specs dd { margin: 0; font-weight: 600; text-align: right; }
.perks { display: grid; gap: 10px; margin-top: 22px; }
.perk { display: flex; gap: 12px; align-items: center; font-size: .92rem; color: var(--ink-2); }
.perk svg { width: 20px; height: 20px; flex: none; color: var(--sage-deep); }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; } .prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.crumbs { font-size: .86rem; color: var(--ink-3); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--ink); }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; } .pdp-media { position: static; } }

/* ---------- Na wymiar ---------- */
.band { border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.band-photo { min-height: 420px; background: url(/img/realizacja-kuchnia.jpg) 45% center/cover; }
.band-body { padding: clamp(28px, 5vw, 60px); }
.steps { display: grid; gap: 14px; margin: 26px 0 30px; counter-reset: s; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step::before { counter-increment: s; content: counter(s); flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; font-size: .9rem; }
.step b { display: block; } .step span { color: var(--ink-2); font-size: .94rem; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } .band-photo { min-height: 260px; } }
.features { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.feature { padding: 26px; }
.feature .ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--ink); color: #fff; margin-bottom: 16px; }
.feature .ico svg { width: 24px; height: 24px; }
.feature p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ---------- Formularze ---------- */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.fld { display: grid; gap: 6px; }
.fld > span { font-size: .85rem; font-weight: 650; color: var(--ink-2); }
.input, .fld input:not([type=checkbox]):not([type=radio]), .fld select, .fld textarea {
  width: 100%; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(29,34,32,.12);
  background: rgba(255,255,255,.62); transition: border-color .3s, box-shadow .3s, background .3s; outline: none;
}
.fld textarea { min-height: 130px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--sage-deep); background: #fff; box-shadow: 0 0 0 4px rgba(95,127,108,.18); }
.fld input:user-invalid, .fld textarea:user-invalid { border-color: var(--danger); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.options { display: grid; gap: 10px; }
.option { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 18px; cursor: pointer;
  border: 1.5px solid rgba(29,34,32,.1); background: rgba(255,255,255,.45); transition: border-color .3s, background .3s, transform .4s var(--spring); }
.option:hover { transform: scale(1.01); }
.option:has(input:checked) { border-color: var(--ink); background: rgba(255,255,255,.85); }
.option input { accent-color: var(--ink); width: 20px; height: 20px; }
.option div { flex: 1; } .option small { display: block; color: var(--ink-3); }
.option b.price { font-size: 1rem; }
.alert { padding: 14px 18px; border-radius: 16px; font-size: .94rem; }
.alert.err { background: rgba(180,69,47,.1); color: #7d2a19; border: 1px solid rgba(180,69,47,.25); }
.alert.ok { background: rgba(47,122,79,.1); color: #1d5234; border: 1px solid rgba(47,122,79,.25); }

/* ---------- Koszyk / checkout ---------- */
.checkout { display: grid; grid-template-columns: 1.25fr .85fr; gap: 28px; align-items: start; }
.summary { padding: 26px; border-radius: var(--r-lg); position: sticky; top: 100px; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .summary { position: static; } }
.panel { padding: clamp(22px, 3vw, 34px); border-radius: var(--r-lg); }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(29,34,32,.08); }
.line:last-child { border-bottom: 0; }
.line .thumb { width: 72px; height: 72px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; }
.line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.line .thumb img.art { object-fit: contain; padding: 10%; }
.line b { display: block; font-size: .98rem; } .line small { color: var(--ink-3); }
.line .ctrl { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.line .qty { padding: 2px; } .line .qty button { width: 30px; height: 30px; font-size: 1rem; } .line .qty input { width: 28px; font-size: .9rem; }
.rm { border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: .82rem; text-decoration: underline; }
.totals { display: grid; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(29,34,32,.1); }
.totals div { display: flex; justify-content: space-between; font-size: .95rem; }
.totals .grand { font-size: 1.3rem; font-weight: 750; letter-spacing: -.02em; margin-top: 6px; }
.empty { text-align: center; padding: 40px 10px; }
.empty img { width: 160px; margin: 0 auto 16px; opacity: .8; }

/* Szuflada koszyka (sheet) */
.sheet-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(29,34,32,.18); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .45s var(--ease); }
.sheet {
  position: fixed; z-index: 91; top: 12px; right: 12px; bottom: 12px; width: min(430px, 100% - 24px);
  border-radius: var(--r-lg); display: flex; flex-direction: column; padding: 22px;
  transform: translateX(calc(100% + 30px)) scale(.96); transition: transform .65s var(--spring);
  background: var(--glass-bg-strong);
}
.sheet-open .sheet-backdrop { opacity: 1; pointer-events: auto; }
.sheet-open .sheet { transform: none; }
.sheet header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sheet header h3 { margin: 0; font-size: 1.35rem; }
.sheet .lines { flex: 1; overflow: auto; margin: 0 -6px; padding: 0 6px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(255,255,255,.7); transition: transform .4s var(--spring); }
.icon-btn:hover { transform: rotate(90deg) scale(1.05); }
.icon-btn svg { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .sheet { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 84vh; transform: translateY(calc(100% + 30px)); }
}

/* Toast */
.toast {
  position: fixed; z-index: 120; left: 50%; top: 96px; translate: -50% 0; padding: 12px 20px 12px 12px; border-radius: var(--r-pill);
  display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .94rem;
  transform: translateY(-140%) scale(.9); opacity: 0; transition: transform .6s var(--spring), opacity .3s;
}
.toast.show { transform: none; opacity: 1; }
.toast img { width: 38px; height: 38px; border-radius: 50%; object-fit: contain; background: #fff; padding: 4px; }
@media (max-width: 860px) { .toast { top: auto; bottom: 104px; transform: translateY(140%) scale(.9); } }

/* ---------- Potwierdzenie zamówienia ---------- */
.success-mark { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; background: var(--ok); color: #fff; animation: pop .8s var(--spring); }
.success-mark svg { width: 42px; height: 42px; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .35s var(--ease) forwards; }
@keyframes pop { from { transform: scale(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pay-box { display: grid; gap: 10px; margin: 20px 0; }
.pay-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.6); }
.pay-row small { display: block; color: var(--ink-3); font-size: .78rem; }
.pay-row b { font-size: 1.02rem; word-break: break-all; }
.copy { flex: none; border: 0; background: var(--ink); color: #fff; border-radius: var(--r-pill); padding: 8px 14px; font-size: .8rem; font-weight: 600; cursor: pointer; transition: transform .4s var(--spring); }
.copy:active { transform: scale(.9); }

/* ---------- Stopka ---------- */
.footer { margin: 60px auto 20px; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg); display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; font-size: .92rem; }
.footer h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.footer a { text-decoration: none; color: var(--ink-2); display: block; padding: 3px 0; } .footer a:hover { color: var(--ink); }
.footer .logo { width: 150px; margin-bottom: 12px; }
.footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(29,34,32,.1); padding-top: 18px; font-size: .8rem; color: var(--ink-3); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .footer { grid-template-columns: 1fr 1fr; } .footer > :first-child { grid-column: 1 / -1; } }

/* ---------- Animacje wejścia ---------- */
.reveal { opacity: 0; transform: translateY(28px) scale(.985); filter: blur(6px); transition: opacity .9s var(--ease), transform 1s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.no-js .reveal { opacity: 1; transform: none; filter: none; }

/* Przejścia między stronami (View Transitions API) */
::view-transition-old(main) { animation: vt-out .35s var(--ease) both; }
::view-transition-new(main) { animation: vt-in .55s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px) scale(.99); filter: blur(8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px) scale(.99); filter: blur(8px); } }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  @view-transition { navigation: none; }
}

/* ---------- O nas ---------- */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: start; }
.about-name { text-align: center; position: sticky; top: 100px; }
.about-name img { margin: 0 auto 18px; }
.initials { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.initials span { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.7); font-size: .9rem; color: var(--ink-2); }
.initials b { color: var(--ink); font-size: 1.1rem; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: t; }
.timeline li { padding: 24px 24px 24px 64px; position: relative; }
.timeline li::after { counter-increment: t; content: counter(t); position: absolute; left: 20px; top: 22px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; font-size: .85rem; }
.timeline b { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.timeline span { color: var(--ink-2); font-size: .95rem; }
.quote { margin: 0; text-align: center; }
.quote p { font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.25; margin-bottom: 12px; }
.quote footer { color: var(--ink-3); margin-bottom: 24px; }
.teaser { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-lg); }
.teaser img { width: 120px; }
.teaser h2 { margin-bottom: 6px; }
.teaser p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .about-grid, .teaser { grid-template-columns: 1fr; } .about-name { position: static; } .teaser { text-align: center; } .teaser img { margin: 0 auto; } }
