/* ============================================================================
   Walloria — arkusz stylów
   Spis treści:
     1. Zmienne i reset
     2. Typografia i przyciski
     3. Nagłówek / nawigacja / stopka
     4. Sekcje strony głównej
     5. Karty produktów
     6. Konfigurator (slider, radio-karty, upload, podsumowanie)
     7. Koszyk i kasa
     8. Komunikaty, toast, stopka
     9. Responsywność
   ========================================================================== */

/* ---------------------------------------------------- 1. Zmienne i reset */
:root {
  --ink: #16181a;
  --ink-2: #3a3f44;
  --muted: #6c737a;
  --line: #e6e1d9;
  --line-2: #f1ece5;
  --bg: #fbf9f6;
  --card: #ffffff;
  --brand: #b4551f;
  --brand-dark: #8d3f13;
  --brand-soft: #fbeee3;
  --green: #1f6b4f;
  --green-soft: #e8f4ee;
  --amber: #a86a00;
  --amber-soft: #fdf3e0;
  --red: #b42318;
  --red-soft: #fdecea;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-s: 0 1px 2px rgba(22, 24, 26, .06), 0 1px 3px rgba(22, 24, 26, .04);
  --shadow-m: 0 6px 18px rgba(22, 24, 26, .07);
  --shadow-l: 0 18px 50px rgba(22, 24, 26, .12);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------- 2. Typografia, przyciski */
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; line-height: 1.18; font-weight: 600; }
h1 { font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 400; letter-spacing: -.01em; }
h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 400; }
h3 { font-size: 1.12rem; }
h4 { font-size: .95rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .9rem;
}
.section { padding: clamp(52px, 7vw, 96px) 0; }
.section--tight { padding: clamp(36px, 5vw, 60px) 0; }
.section--alt { background: #fff; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section__head { max-width: 700px; margin-bottom: 42px; }
.section__head.center { margin-left: auto; margin-right: auto; }
.section__head p { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .97rem; cursor: pointer;
  transition: transform .12s ease, background .16s ease, box-shadow .16s ease, color .16s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-s); }
.btn--primary:hover { background: var(--brand-dark); box-shadow: var(--shadow-m); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 32px; font-size: 1.03rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn svg { width: 19px; height: 19px; }

.pill {
  display: inline-flex; align-items: center; gap: .4rem; padding: 5px 12px;
  border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark);
  font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.badge-free { background: var(--green-soft); color: var(--green); }

/* ------------------------------------------ 3. Nagłówek, nawigacja, stopka */
.topbar { background: var(--ink); color: #cfd3d6; font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; gap: 14px; height: 38px; overflow: hidden; }
.topbar__sep { width: 1px; height: 13px; background: #3b4147; }
.topbar__item { color: #cfd3d6; white-space: nowrap; }
.topbar__item:hover { color: #fff; text-decoration: none; }

.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(251, 249, 246, .93);
  backdrop-filter: saturate(160%) blur(9px); border-bottom: 1px solid var(--line);
}

/* kotwice (np. #produkty z menu) nie mogą schować się pod przyklejonym menu */
section[id], div[id="produkty"] { scroll-margin-top: 88px; }
.site-header__inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: var(--ink); color: #fff; flex: none;
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { color: var(--ink); font-size: 1.16rem; letter-spacing: -.01em; }
.brand__text small { color: var(--muted); font-size: .74rem; }

.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav__link {
  padding: 9px 13px; border-radius: 9px; color: var(--ink-2); font-size: .94rem; font-weight: 500;
}
.site-nav__link:hover { background: var(--line-2); text-decoration: none; }
.site-nav__link.is-active { color: var(--ink); background: var(--line-2); font-weight: 600; }

.site-header__actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch__btn {
  border: 0; background: transparent; padding: 6px 11px; cursor: pointer;
  font: inherit; font-size: .8rem; font-weight: 700; color: var(--muted);
}
.lang-switch__btn.is-active { background: var(--ink); color: #fff; }

.cart-btn {
  position: relative; display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 11px; background: var(--ink); color: #fff;
}
.cart-btn:hover { background: #000; text-decoration: none; }
.cart-btn svg { width: 21px; height: 21px; }
.cart-btn__count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--brand); color: #fff; font-size: .72rem;
  font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg);
}
.cart-btn__count.is-empty { display: none; }

.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

.demo-bar {
  background: var(--amber-soft); color: var(--amber); text-align: center;
  font-size: .86rem; font-weight: 600; padding: 9px 18px; border-bottom: 1px solid #f0dcb8;
}

/* ------------------------------------------- 4. Strona główna — sekcje */
.hero { padding: clamp(46px, 6vw, 86px) 0 clamp(40px, 5vw, 70px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 62px); align-items: center; }
.hero h1 { margin-bottom: .55em; }
.hero__lead { font-size: 1.1rem; color: var(--ink-2); max-width: 33em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero__stat strong { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--ink); }
.hero__stat span { font-size: .84rem; color: var(--muted); }

/* podglądowa „ściana” w hero */
.wall {
  position: relative; aspect-ratio: 4 / 3.2; border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, #e9e3da, #d8d0c4); box-shadow: var(--shadow-l);
  display: grid; place-items: center; padding: 9%;
}
.wall__art {
  width: 100%; height: 100%; border-radius: 6px; overflow: hidden; background: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22); display: grid; place-items: center;
}
.wall__art img { width: 100%; height: 100%; object-fit: cover; }
.wall__art--empty {
  background:
    repeating-linear-gradient(45deg, #f4efe7 0 12px, #eee8de 12px 24px);
  color: var(--muted); font-size: .9rem; text-align: center; padding: 20px;
}
.wall__ruler {
  position: absolute; left: 9%; right: 9%; bottom: 5%; height: 1px; background: rgba(0, 0, 0, .28);
}
.wall__label {
  position: absolute; bottom: 7.5%; left: 50%; transform: translateX(-50%);
  background: rgba(22, 24, 26, .82); color: #fff; font-size: .74rem; padding: 4px 11px;
  border-radius: 999px; white-space: nowrap;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.steps { counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.step__num {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; margin-bottom: 15px;
}
.step h3 { margin-bottom: .35em; }
.step p { margin: 0; color: var(--muted); font-size: .94rem; }

.feature { padding: 6px 0; }
.feature__icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--ink); color: #fff; margin-bottom: 16px;
}
.feature__icon svg { width: 23px; height: 23px; }
.feature p { color: var(--muted); font-size: .94rem; margin-bottom: 0; }

.faq { max-width: 850px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 10px; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-size: 1.4rem; font-weight: 400; color: var(--brand); line-height: 1; flex: none;
}
.faq details[open] summary::after { content: '–'; }
.faq details > p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-s);
}
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line-2); display: flex; gap: 14px; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list b { display: block; color: var(--ink); font-size: .84rem; text-transform: uppercase; letter-spacing: .06em; }
.contact-list span { color: var(--muted); }

/* ------------------------------------------------- 5. Karty produktów */
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-s);
  transition: box-shadow .18s ease, transform .18s ease;
}
.product-card:hover { box-shadow: var(--shadow-m); transform: translateY(-3px); }
.product-card__art {
  aspect-ratio: 16 / 10; background: linear-gradient(150deg, #ece6dd, #d9d1c5);
  display: grid; place-items: center; color: #9a938a; position: relative;
  overflow: hidden;
  /* Karta rozciąga się do wysokości sąsiadki, a bez tego blok zdjęcia
     kurczył się w karcie z dłuższym opisem — stąd różne wysokości zdjęć. */
  flex: 0 0 auto;
}
.product-card__art svg { width: 62px; height: 62px; opacity: .75; }

/* Zdjęcia produktów mają różne proporcje (16:9 i 3:2), więc nie mogą
   ustawiać wysokości bloku. Pozycjonujemy je bezwzględnie wewnątrz
   ramki 16:10 — wtedy obie karty mają identyczną wysokość zdjęcia,
   a object-fit: cover kadruje nadmiar. */
.product-card__img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* nagłówek strony produktu z mockupem */
.cfg-intro { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.cfg-intro__media img {
  width: 100%; height: auto; display: block; border-radius: 16px;
  box-shadow: var(--shadow-m); border: 1px solid var(--line);
}
@media (max-width: 900px) {
  .cfg-intro { grid-template-columns: 1fr; }
  .cfg-intro__media { order: -1; }
}

/* ------------------------------------- 12. Realizacje (zdjęcia klienta) */
.real-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.real-grid--full { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.real-card {
  margin: 0; border-radius: 12px; overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-s);
}
.real-card img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  transition: transform .3s ease;
}
.real-card:hover img { transform: scale(1.04); }

@media (max-width: 1000px) {
  .real-grid, .real-grid--full { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .real-grid, .real-grid--full { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
.product-card__badge { position: absolute; top: 16px; left: 16px; }
.product-card__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.product-card__body h3 { font-size: 1.35rem; margin-bottom: .4em; font-family: var(--serif); font-weight: 400; }
.product-card__body > p { color: var(--muted); font-size: .95rem; }
.product-card__features { list-style: none; padding: 0; margin: 0 0 22px; }
.product-card__features li { position: relative; padding-left: 24px; font-size: .92rem; margin-bottom: 7px; }
.product-card__features li::before {
  content: ''; position: absolute; left: 3px; top: .55em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--brand);
}
.product-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.price-from { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.price-from b { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--ink); font-weight: 400; letter-spacing: 0; text-transform: none; }

/* ------------------------------------------------- 6. Konfigurator */
.crumbs { font-size: .86rem; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--muted); }

.cfg { display: grid; grid-template-columns: 1.35fr .85fr; gap: clamp(26px, 4vw, 52px); align-items: start; padding: 26px 0 clamp(50px, 6vw, 80px); }
.cfg__block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 18px; }
.cfg__block > h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 1.05rem; }
.cfg__block > h3 .num {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; flex: none;
  background: var(--ink); color: #fff; font-size: .8rem; font-weight: 700;
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field .hint { font-size: .8rem; color: var(--muted); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="number"], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: .95rem; background: #fff; color: var(--ink);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(180, 85, 31, .13);
}
.field.is-invalid input, .field.is-invalid select { border-color: var(--red); background: var(--red-soft); }

.input-with-unit { position: relative; }
.input-with-unit input { padding-right: 62px !important; }
.input-with-unit .unit {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: .82rem; color: var(--muted); pointer-events: none;
}

.dim-slider { margin-bottom: 6px; }
input[type="range"] {
  width: 100%; accent-color: var(--brand); height: 26px; margin: 0; cursor: pointer;
}
.dim-scale { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); margin-top: -4px; }

.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 15px;
  font: inherit; font-size: .87rem; cursor: pointer; color: var(--ink-2); transition: .14s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }

.opt-list { display: grid; gap: 10px; }
.opt {
  display: flex; gap: 13px; align-items: flex-start; padding: 15px 17px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
  background: #fff; transition: border-color .14s, background .14s;
}
.opt:hover { border-color: #cfc7ba; }
.opt input { margin: 4px 0 0; accent-color: var(--brand); flex: none; width: 17px; height: 17px; }
.opt__body { flex: 1; }
.opt__title { font-weight: 600; color: var(--ink); font-size: .95rem; display: flex; justify-content: space-between; gap: 14px; }
.opt__title em { font-style: normal; color: var(--muted); font-weight: 500; font-size: .86rem; white-space: nowrap; }
.opt__note { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.opt.is-selected { border-color: var(--brand); background: var(--brand-soft); }
.opt.is-selected .opt__title { color: var(--brand-dark); }

/* upload */
.drop {
  border: 2px dashed #d5cdc0; border-radius: var(--radius); padding: 30px 22px; text-align: center;
  background: #fdfcfa; cursor: pointer; transition: .16s;
}
.drop:hover, .drop.is-over { border-color: var(--brand); background: var(--brand-soft); }
.drop__icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 12px;
  border-radius: 12px; background: var(--ink); color: #fff;
}
.drop__icon svg { width: 24px; height: 24px; }
.drop strong { display: block; color: var(--ink); margin-bottom: 4px; }
.drop small { color: var(--muted); font-size: .85rem; }
.drop input[type="file"] { display: none; }

.file-card { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.file-card__thumb {
  width: 96px; height: 96px; border-radius: 9px; object-fit: cover; flex: none;
  background: var(--line-2); border: 1px solid var(--line);
}
.file-card__meta { flex: 1; min-width: 0; }
.file-card__meta strong { display: block; color: var(--ink); word-break: break-all; font-size: .94rem; }
.file-card__meta small { color: var(--muted); font-size: .83rem; }
.file-card__actions { display: flex; gap: 8px; margin-top: 10px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: .85rem; color: var(--brand-dark); cursor: pointer; text-decoration: underline; }

.dpi { margin-top: 14px; border-radius: var(--radius-sm); padding: 14px 16px; font-size: .89rem; border: 1px solid; }
.dpi strong { display: block; margin-bottom: 3px; }
.dpi--great { background: var(--green-soft); border-color: #bfe0d0; color: var(--green); }
.dpi--ok { background: var(--amber-soft); border-color: #f0dcb8; color: var(--amber); }
.dpi--low { background: var(--red-soft); border-color: #f3c9c5; color: var(--red); }
.dpi__bar { height: 7px; border-radius: 999px; background: rgba(0, 0, 0, .1); overflow: hidden; margin: 9px 0 7px; }
.dpi__bar i { display: block; height: 100%; border-radius: 999px; background: currentColor; }

/* podsumowanie (kolumna prawa) */
.summary { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-m); overflow: hidden; }
.summary__head { padding: 18px 24px; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; }
.summary__head h3 { margin: 0; font-size: 1rem; }
.summary__body { padding: 20px 24px; }
.summary__preview {
  aspect-ratio: 4 / 3; border-radius: 10px; background: var(--line-2); overflow: hidden;
  display: grid; place-items: center; margin-bottom: 18px; border: 1px solid var(--line);
}
.summary__preview img { width: 100%; height: 100%; object-fit: cover; }
.summary__preview span { color: var(--muted); font-size: .84rem; text-align: center; padding: 16px; }

.line-items { list-style: none; margin: 0 0 4px; padding: 0; font-size: .9rem; }
.line-items li { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; }
.line-items li span:first-child { color: var(--ink-2); }
.line-items li b { font-weight: 600; color: var(--ink); white-space: nowrap; }
.line-items li small { display: block; color: var(--muted); font-size: .78rem; }

.summary__total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding-top: 16px; margin-top: 10px; border-top: 1px solid var(--line);
}
.summary__total span { font-size: .9rem; color: var(--muted); }
.summary__total b { font-family: var(--serif); font-size: 1.85rem; color: var(--ink); font-weight: 400; }
.summary__note { font-size: .8rem; color: var(--muted); margin: 12px 0 18px; }
.summary__trust { display: flex; gap: 14px; align-items: center; padding: 14px 24px 20px; color: var(--muted); font-size: .8rem; }
.summary__trust svg { width: 18px; height: 18px; flex: none; color: var(--green); }

/* ------------------------------------------------- 7. Koszyk i kasa */
.page-head { padding: 34px 0 10px; }
.page-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: .2em; }

.cart-layout, .co-layout { display: grid; grid-template-columns: 1.5fr .85fr; gap: clamp(24px, 3.5vw, 44px); align-items: start; padding-bottom: clamp(50px, 6vw, 80px); }

.cart-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; }
.cart-item__thumb { width: 120px; height: 120px; border-radius: 10px; overflow: hidden; background: var(--line-2); border: 1px solid var(--line); display: grid; place-items: center; }
.cart-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__thumb span { color: var(--muted); font-size: .76rem; text-align: center; padding: 8px; }
.cart-item__body h3 { font-size: 1.05rem; margin-bottom: .25em; }
.cart-item__spec { font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.cart-item__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 34px; height: 34px; border: 0; background: #fff; cursor: pointer; font-size: 1.05rem; color: var(--ink); }
.qty button:hover { background: var(--line-2); }
.qty span { min-width: 30px; text-align: center; font-weight: 600; font-size: .92rem; }
.cart-item__price { text-align: right; }
.cart-item__price b { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--ink); font-weight: 400; }
.cart-item__price small { color: var(--muted); font-size: .8rem; }

.empty-state { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 60px 24px; text-align: center; }

.notice { display: flex; gap: 12px; padding: 14px 18px; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 18px; border: 1px solid; }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.notice--info { background: #f4f7fb; border-color: #d5e1ef; color: #234a7a; }
.notice--warn { background: var(--amber-soft); border-color: #f0dcb8; color: var(--amber); }
.notice--error { background: var(--red-soft); border-color: #f3c9c5; color: var(--red); }
.notice--ok { background: var(--green-soft); border-color: #bfe0d0; color: var(--green); }

.co-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 18px; }
.co-block > h3 { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; font-size: 1.05rem; }
.co-block > h3 .num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 700; flex: none; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--ink-2); padding: 11px 0; cursor: pointer; }
.check input { margin: 4px 0 0; accent-color: var(--brand); width: 17px; height: 17px; flex: none; }
.check.is-invalid { color: var(--red); }

.pay-methods { display: grid; gap: 10px; }
.pay { display: flex; gap: 13px; align-items: flex-start; padding: 15px 17px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.pay.is-selected { border-color: var(--brand); background: var(--brand-soft); }
.pay input { margin: 4px 0 0; accent-color: var(--brand); width: 17px; height: 17px; flex: none; }
.pay__title { font-weight: 600; color: var(--ink); font-size: .95rem; }
.pay__note { font-size: .84rem; color: var(--muted); }

.pay-logos { display: flex; gap: 8px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.pay-logos span {
  border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 5px 11px;
  font-size: .74rem; font-weight: 700; color: var(--ink-2); letter-spacing: .02em;
}

.thanks { max-width: 720px; margin: 0 auto; text-align: center; padding: clamp(40px, 6vw, 80px) 0; }
.thanks__icon { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--green-soft); color: var(--green); margin: 0 auto 24px; }
.thanks__icon svg { width: 38px; height: 38px; }
.thanks__number { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 22px; font-weight: 700; color: var(--ink); margin: 6px 0 30px; letter-spacing: .04em; }
.thanks__list { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px; margin-top: 26px; }
.thanks__list ol { margin: 0; padding-left: 20px; color: var(--muted); }
.thanks__list li { margin-bottom: 10px; }

/* ------------------------------------------ 8. Toast, dokumenty, stopka */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 999px;
  font-size: .9rem; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 200; box-shadow: var(--shadow-l);
  max-width: calc(100% - 40px); text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.doc { max-width: 780px; margin: 0 auto; padding-bottom: 70px; }
.doc h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.doc h2 { font-size: 1.3rem; margin-top: 2em; font-family: var(--sans); font-weight: 700; }
.doc h3 { margin-top: 1.6em; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .92rem; }
.doc th, .doc td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.doc th { background: #fff; color: var(--ink); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }

.site-footer { background: var(--ink); color: #a9b0b6; padding: 56px 0 26px; font-size: .92rem; }
.site-footer h4 { color: #fff; }
.site-footer a { color: #cfd3d6; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; }
.site-footer__grid .muted { color: #8b9299; font-size: .88rem; }
.brand--footer .brand__mark { background: #2a2e32; }
.brand--footer .brand__text strong { color: #fff; }
.brand--footer .brand__text small { color: #8b9299; }
.brand--footer { margin-bottom: 16px; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 9px; }
.site-footer__bottom {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid #2c3135; font-size: .84rem; color: #8b9299;
}
.site-footer__pay b { color: #cfd3d6; }

/* ------------------------------------------------- 9. Responsywność */
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; }
  .wall { order: -1; aspect-ratio: 4 / 2.6; }
  .cfg, .cart-layout, .co-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px; gap: 2px;
    box-shadow: var(--shadow-m); display: none;
  }
  .site-nav.is-open { display: flex; }
  .burger { display: block; }
  .site-header__inner { position: relative; }
  .topbar__sep, .topbar__item:nth-child(n+3) { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .grid-2, .grid-3, .grid-4, .field-row { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 84px 1fr; }
  .cart-item__thumb { width: 84px; height: 84px; }
  .cart-item__price { grid-column: 2; text-align: left; }
  .hero__stats { gap: 20px; }
  .cfg__block, .co-block, .contact-card { padding: 20px 17px; }
  .summary__body, .summary__head, .summary__trust { padding-left: 18px; padding-right: 18px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .file-card { flex-direction: column; }
  .file-card__thumb { width: 100%; height: 160px; }
}

@media print {
  .site-header, .site-footer, .topbar, .demo-bar, .btn { display: none !important; }
}

/* ---------------------------------------- 10. Galeria wzorów */
.chiprow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

.tabs {
  display: flex; gap: 6px; background: var(--line-2); padding: 5px;
  border-radius: 999px; margin-bottom: 20px;
}
.tab {
  flex: 1; border: 0; background: transparent; padding: 11px 16px; border-radius: 999px;
  font: inherit; font-size: .92rem; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: background .16s, color .16s;
}
.tab:hover { color: var(--ink); }
.tab.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-s); }

.gal-pick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gal-pick {
  position: relative; padding: 0; border: 2px solid transparent; border-radius: 11px;
  overflow: hidden; background: var(--line-2); cursor: pointer; aspect-ratio: 4 / 3;
  transition: border-color .15s, transform .15s;
}
.gal-pick:hover { transform: translateY(-2px); }
.gal-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-pick__t {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px;
  font-size: .72rem; color: #fff; text-align: left; line-height: 1.2;
  background: linear-gradient(transparent, rgba(0, 0, 0, .78));
}
.gal-pick__check {
  position: absolute; top: 6px; right: 6px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--brand); color: #fff; font-size: .8rem;
  display: none; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
.gal-pick.is-selected { border-color: var(--brand); }
.gal-pick.is-selected .gal-pick__check { display: grid; }

.gal-chosen {
  display: flex; justify-content: space-between; gap: 14px; align-items: flex-start;
  margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand-dark); font-size: .88rem;
}
.gal-chosen .link-btn { color: var(--brand-dark); flex: none; }

.preview-multi { display: grid; grid-template-columns: 1fr 1fr; width: 100%; height: 100%; }
.preview-multi img { width: 100%; height: 100%; object-fit: cover; }

/* wybrane wzory w konfiguratorze — każdy z własnym wymiarem */
.gal-sel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 20px 0 10px; }
.gal-sel-list { display: grid; gap: 8px; }
.gal-sel-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 11px; background: #fff; flex-wrap: wrap;
}
.gal-sel-row__img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; }
.gal-sel-row__t { flex: 1 1 130px; min-width: 0; display: flex; flex-direction: column; }
.gal-sel-row__t b { font-size: .9rem; color: var(--ink); }
.gal-sel-row__t small {
  font-size: .78rem; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gal-sel-row__size { display: flex; align-items: center; gap: 5px; flex: none; }
.gal-sel-row__size input {
  width: 66px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: .86rem; text-align: center; background: #fff; color: var(--ink);
}
.gal-sel-row__size input:focus {
  outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(180, 85, 31, .13);
}
.gal-sel-row__unit { font-size: .76rem; color: var(--muted); }
.gal-sel-row__p { font-size: .88rem; color: var(--ink); white-space: nowrap; min-width: 88px; text-align: right; }
.gal-sel-row__x {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  color: var(--muted); cursor: pointer; font-size: 1.05rem; line-height: 1; flex: none;
}
.gal-sel-row__x:hover { border-color: var(--red); color: var(--red); }

/* podsumowanie: siatka osobnych fototapet */
.gal-sum-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.gal-sum-card {
  border: 1px solid var(--line); border-radius: 11px; overflow: hidden;
  background: #fff; display: flex; flex-direction: column;
}
.gal-sum-card__img { aspect-ratio: 4 / 3; background: var(--line-2); }
.gal-sum-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-sum-card__meta { padding: 8px 9px 4px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gal-sum-card__meta b { font-size: .84rem; color: var(--ink); }
.gal-sum-card__meta small {
  font-size: .74rem; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gal-sum-card__size { font-size: .74rem; color: var(--brand-dark); }
.gal-sum-card__price { padding: 0 9px 9px; font-weight: 700; font-size: .86rem; color: var(--ink); }

/* menu przełączania fototapet w podsumowaniu (po prawej) */
.gal-switch { display: grid; gap: 6px; margin-bottom: 14px; }
.gal-switch__row {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 7px 9px; border: 2px solid var(--line); border-radius: 9px;
  background: #fff; cursor: pointer; font: inherit; color: inherit;
  transition: border-color .14s, background .14s;
}
.gal-switch__row:hover { border-color: #cfc7ba; }
.gal-switch__row.is-active { border-color: var(--brand); background: var(--brand-soft); }
.gal-switch__row img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; flex: none; }
.gal-switch__t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gal-switch__t b { font-size: .82rem; color: var(--ink); }
.gal-switch__t small {
  font-size: .72rem; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gal-switch__size { font-size: .74rem; color: var(--muted); white-space: nowrap; }
.gal-switch__p { font-size: .8rem; color: var(--ink); white-space: nowrap; }

.gal-sel-row.is-active { border-color: var(--brand); background: var(--brand-soft); }
.gal-sel-row__img[data-pick], .gal-sel-row__t[data-pick] { cursor: pointer; }

.sum-mult {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 10px;
  padding: 10px 12px; border-radius: 9px; font-size: .88rem;
  background: var(--brand-soft); color: var(--brand-dark);
}

.gal-section { padding: 34px 0; border-bottom: 1px solid var(--line-2); }
.gal-section:last-child { border-bottom: 0; }
.gal-section__head {
  display: flex; justify-content: space-between; gap: 20px;
  align-items: flex-start; margin-bottom: 22px; flex-wrap: wrap;
}
.gal-section__head h2 { margin: 0; font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gal-card { display: block; text-decoration: none; }
.gal-card:hover { text-decoration: none; }
.gal-card__img {
  position: relative;
  display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
  background: var(--line-2); border: 1px solid var(--line);
}
.gal-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gal-card:hover .gal-card__img img { transform: scale(1.05); }
.gal-card__t { display: block; margin-top: 10px; font-weight: 600; color: var(--ink); font-size: .94rem; }
.gal-card__use { display: block; font-size: .82rem; color: var(--brand-dark); margin-top: 2px; }

@media (max-width: 1000px) {
  .gal-grid, .gal-pick-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .gal-grid, .gal-pick-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gal-chosen { flex-direction: column; }
}

/* ------------------------------------------- 13. Dokumenty dwujęzyczne */
/* Strony prawne mają obie wersje w HTML; pokazujemy tylko aktualny język
   (atrybut lang na <html> ustawia js/i18n.js). */
html[lang="pl"] .t-en,
html[lang="en"] .t-pl { display: none; }

/* ============================== 11. PANEL ADMINISTRATORA ============= */
.admin-body { background: #f1eeea; min-height: 100vh; }

/* ---------- logowanie ---------- */
.admin-login {
  min-height: 100vh; display: grid; place-items: center;
  padding: 32px 20px; position: relative; overflow: hidden;
}
.admin-login__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 520px at 12% 8%, rgba(180, 85, 31, .20), transparent 62%),
    radial-gradient(720px 520px at 92% 92%, rgba(31, 92, 74, .16), transparent 62%),
    linear-gradient(160deg, #faf7f2, #e7e0d5);
}
.admin-login__card {
  position: relative; width: 100%; max-width: 400px; text-align: center;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, .06); border-radius: 20px;
  padding: 34px 30px 26px; box-shadow: 0 24px 60px rgba(22, 24, 26, .16);
}
.admin-login__logo {
  width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 15px;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(22, 24, 26, .25);
}
.admin-login__logo svg { width: 26px; height: 26px; }
.admin-login__card h1 { font-family: var(--serif); font-size: 1.5rem; margin: 0; font-weight: 400; }
.admin-login__sub { color: var(--muted); font-size: .88rem; margin: 4px 0 24px; }
.admin-login__hint { font-size: .78rem; color: var(--muted); margin: 16px 0 0; }

.admin-floating { display: block; position: relative; margin-bottom: 12px; text-align: left; }
.admin-floating input {
  width: 100%; padding: 20px 14px 8px; border: 1px solid var(--line); border-radius: 11px;
  font: inherit; font-size: .95rem; background: #fff; color: var(--ink); transition: .15s;
}
.admin-floating span {
  position: absolute; left: 14px; top: 14px; font-size: .92rem; color: var(--muted);
  pointer-events: none; transition: all .14s ease;
}
.admin-floating input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(180, 85, 31, .13); }
.admin-floating input:focus + span,
.admin-floating input:not(:placeholder-shown) + span {
  top: 6px; font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; color: var(--brand);
}

/* ---------- przyciski i alerty ---------- */
.admin-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 11px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font: inherit; font-weight: 600; font-size: .92rem;
  cursor: pointer; transition: .15s; white-space: nowrap;
}
.admin-btn:hover { border-color: #cfc7ba; transform: translateY(-1px); }
.admin-btn:active { transform: translateY(0); }
.admin-btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.admin-btn--primary {
  background: var(--brand); border-color: var(--brand); color: var(--admin-accent-text, #fff);
  box-shadow: 0 6px 16px rgba(180, 85, 31, .24);
}
.admin-btn--primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.admin-btn--block { width: 100%; margin-top: 6px; }

.admin-alert { border-radius: 10px; padding: 12px 15px; font-size: .88rem; margin-bottom: 18px; }
.admin-alert--error { background: var(--red-soft); color: var(--red); border: 1px solid #f3c9c5; }
.admin-alert--ok { background: var(--green-soft); color: var(--green); border: 1px solid #bfe0d0; }

/* ---------- szkielet ---------- */
/* Motyw panelu — te zmienne ustawia js/admin.js na podstawie ustawień
   zapisanych w panelu (zakładka „Wygląd”). Dotyczą tylko panelu.
   Tekst na tle panelu bierze kolor z ustawień; białe powierzchnie (karty,
   przyciski, pola) zachowują własną, ciemną paletę — patrz niżej. */
.admin-shell {
  display: grid; grid-template-columns: 250px 1fr; min-height: 100vh;
  background: var(--admin-bg, #f6f3ee);
  font-family: var(--admin-font, var(--sans));
  color: var(--admin-text, #16181a);
  --ink: var(--admin-text, #16181a);
  --ink-2: color-mix(in srgb, var(--admin-text, #16181a) 80%, var(--admin-bg, #f6f3ee));
  --muted: color-mix(in srgb, var(--admin-text, #16181a) 58%, var(--admin-bg, #f6f3ee));
  --brand: var(--admin-accent, #b4551f);
  --brand-dark: color-mix(in srgb, var(--admin-accent, #b4551f) 78%, #000);
  --brand-soft: color-mix(in srgb, var(--admin-accent, #b4551f) 12%, #fff);
}

/* Jasne powierzchnie mają własne, ciemne kolory tekstu — inaczej po zmianie
   tła panelu na ciemne napisy na białych kartach zniknęłyby. */
.admin-card,
.admin-table,
.admin-kpi,
.admin-empty,
.admin-alert,
.admin-gear__menu,
.admin-btn,
.admin-chip,
.admin-filter,
.admin-search,
.admin-user,
.admin-pager select,
.admin-pager__btn {
  --ink: #16181a;
  --ink-2: #3a3f44;
  --muted: #6c737a;
}

.admin-side {
  background: var(--admin-side, #15181b);
  color: var(--admin-side-text, #a8b0b7);
  display: flex; flex-direction: column;
  padding: 22px 16px; position: sticky; top: 0; height: 100vh;
}
.admin-side__brand { display: flex; align-items: center; gap: 11px; padding: 0 6px 22px; }
/* wyszukiwanie sekcji w menu */
.admin-nav-search {
  position: relative; display: flex; align-items: center;
  margin: 0 4px 14px;
}
.admin-nav-search svg {
  position: absolute; left: 11px; width: 15px; height: 15px;
  color: color-mix(in srgb, var(--admin-side-text, #fff) 55%, transparent);
  pointer-events: none;
}
.admin-nav-search input {
  width: 100%; padding: 9px 30px 9px 33px;
  border: 1px solid color-mix(in srgb, var(--admin-side-text, #fff) 16%, transparent);
  border-radius: 10px; font: inherit; font-size: .85rem;
  background: color-mix(in srgb, var(--admin-side-text, #fff) 7%, transparent);
  color: var(--admin-side-text, #fff); transition: .15s;
}
.admin-nav-search input::placeholder {
  color: color-mix(in srgb, var(--admin-side-text, #fff) 45%, transparent);
}
.admin-nav-search input:focus {
  outline: 0;
  border-color: color-mix(in srgb, var(--admin-side-text, #fff) 42%, transparent);
  background: color-mix(in srgb, var(--admin-side-text, #fff) 12%, transparent);
}
.admin-nav-search__key {
  position: absolute; right: 9px; pointer-events: none;
  font-size: .7rem; font-weight: 700; line-height: 1;
  padding: 3px 6px; border-radius: 5px;
  color: color-mix(in srgb, var(--admin-side-text, #fff) 50%, transparent);
  border: 1px solid color-mix(in srgb, var(--admin-side-text, #fff) 20%, transparent);
}
.admin-nav__item.is-filtered-out,
.admin-nav__sep.is-filtered-out { display: none; }
.admin-nav__empty {
  margin: 10px 6px; font-size: .8rem;
  color: color-mix(in srgb, var(--admin-side-text, #fff) 55%, transparent);
}

.admin-side__mark {
  width: 38px; height: 38px; border-radius: 11px; background: #2a2f34; color: #fff;
  display: grid; place-items: center; flex: none;
}
.admin-side__mark svg { width: 20px; height: 20px; }
.admin-side__name {
  display: flex; flex-direction: column; line-height: 1.2;
  color: var(--admin-side-text, #fff); font-weight: 600; font-size: 1rem;
}
.admin-side__name small {
  color: color-mix(in srgb, var(--admin-side-text, #fff) 62%, var(--admin-side, #15181b));
  font-weight: 400; font-size: .72rem;
}

.admin-nav { display: flex; flex-direction: column; gap: 3px; }

/* linia oddzielająca codzienną pracę (pulpit, produkty, zamówienia, klienci)
   od ustawień sklepu (dane firmy, wygląd, hasło) */
.admin-nav__sep {
  height: 1px; margin: 11px 8px;
  background: color-mix(in srgb, var(--admin-side-text, #fff) 18%, transparent);
}
.admin-nav__item {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 11px 12px; border: 0; border-radius: 10px; background: transparent;
  font: inherit; font-size: .92rem;
  color: color-mix(in srgb, var(--admin-side-text, #fff) 68%, var(--admin-side, #15181b));
  cursor: pointer; transition: .14s;
}
.admin-nav__item svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.admin-nav__item:hover {
  background: color-mix(in srgb, var(--admin-side-text, #fff) 8%, transparent);
  color: var(--admin-side-text, #fff);
}
.admin-nav__item.is-active {
  background: var(--brand); color: var(--admin-accent-text, #fff);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .22);
}
.admin-nav__item.is-active svg { opacity: 1; }
.admin-nav__badge {
  margin-left: auto; font-size: .72rem; font-weight: 700; padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--admin-side-text, #fff) 14%, transparent);
  color: var(--admin-side-text, #fff);
}
.admin-nav__item.is-active .admin-nav__badge { background: rgba(0, 0, 0, .22); }

.admin-side__foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 20px; }
.admin-side__link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; border-radius: 10px;
  background: color-mix(in srgb, var(--admin-side-text, #fff) 6%, transparent);
  color: color-mix(in srgb, var(--admin-side-text, #fff) 82%, var(--admin-side, #15181b));
  font-size: .86rem; text-decoration: none;
}
.admin-side__link:hover {
  background: color-mix(in srgb, var(--admin-side-text, #fff) 12%, transparent);
  color: var(--admin-side-text, #fff); text-decoration: none;
}
.admin-side__link svg { width: 15px; height: 15px; }
.admin-side__logout {
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--admin-side-text, #fff) 18%, transparent);
  background: transparent;
  color: color-mix(in srgb, var(--admin-side-text, #fff) 68%, var(--admin-side, #15181b));
  font: inherit; font-size: .86rem; cursor: pointer; transition: .14s;
}
.admin-side__logout:hover { border-color: var(--red); color: #ff9c92; }

/* ---------- treść ---------- */
.admin-main { padding: 30px clamp(18px, 3vw, 40px) 70px; max-width: 1080px; }
.admin-topbar {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
.admin-topbar h1 { font-family: var(--serif); font-size: 1.8rem; margin: 0; font-weight: 400; }
.admin-topbar__sub { color: var(--muted); font-size: .88rem; margin: 3px 0 0; }
.admin-user {
  font-size: .78rem; color: var(--muted); background: #fff;
  border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px;
}

.admin-pane { display: none; }
.admin-pane.is-active { display: block; animation: adminFade .18s ease; }
@keyframes adminFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.admin-card {
  background: #fff; border: 1px solid #e7e1d8; border-radius: 16px;
  padding: 24px; box-shadow: 0 2px 6px rgba(22, 24, 26, .04); margin-bottom: 24px;
}
.admin-card__head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; margin-bottom: 20px; flex-wrap: wrap;
}
.admin-card__head h2 { margin: 0; font-size: 1.02rem; font-weight: 700; }
.admin-card__foot {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-2);
}

/* ---------- Pomoc: przewodnik po panelu ---------- */
.help-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px; margin-bottom: 8px;
}
.help-grid .admin-card { margin-bottom: 0; }
.help-card .admin-card__head { margin-bottom: 12px; }
.help-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.help-list li {
  position: relative; padding-left: 20px; font-size: .9rem; line-height: 1.55; color: var(--ink-2);
}
.help-list li::before {
  content: ''; position: absolute; left: 2px; top: .62em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand); opacity: .55;
}
.help-list b { font-weight: 700; color: var(--ink); }
.help-list code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .8em; background: var(--line-2); padding: 1px 6px; border-radius: 4px;
}
.admin-chip {
  font-size: .74rem; color: var(--muted); background: var(--line-2);
  padding: 4px 10px; border-radius: 999px;
}
.admin-chip--strong { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }
.admin-opt { color: var(--muted); font-weight: 400; font-size: .76rem; }

.admin-grid-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 16px; }
.admin-grid-form--wide { grid-template-columns: 1fr; }
.admin-card .field--area { grid-column: 1 / -1; }
.admin-card .field--wide { grid-column: 1 / -1; }
.admin-card .field label code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .68rem; color: #b0a89c; background: var(--line-2);
  padding: 1px 5px; border-radius: 4px; margin-left: 4px;
}

/* przełącznik języka w edytorze tekstów */
.admin-langswitch { display: inline-flex; background: var(--line-2); border-radius: 999px; padding: 3px; }
.admin-lang {
  border: 0; background: transparent; padding: 7px 16px; border-radius: 999px;
  font: inherit; font-size: .82rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: .14s;
}
.admin-lang.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-s); }

/* filtry zamówień */
.admin-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.admin-filter {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border: 1px solid #e2dbd0; background: #fff; border-radius: 999px;
  font: inherit; font-size: .84rem; color: var(--ink-2); cursor: pointer; transition: .14s;
}
.admin-filter:hover { border-color: #cfc7ba; }
.admin-filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.admin-filter b {
  font-size: .74rem; background: rgba(0, 0, 0, .07); padding: 1px 7px; border-radius: 999px;
}
.admin-filter.is-active b { background: rgba(255, 255, 255, .2); }

/* statusy */
.admin-status {
  display: inline-block; margin-top: 4px; font-size: .66rem; font-weight: 700;
  padding: 2px 7px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em;
}
.admin-status--new { background: #e8edf7; color: #33507f; }
.admin-status--in_progress { background: var(--amber-soft); color: var(--amber); }
.admin-status--done { background: var(--green-soft); color: var(--green); }
.admin-status--cancelled { background: var(--red-soft); color: var(--red); }

.admin-order__head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-order__status { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.admin-order__status select {
  padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px;
  font: inherit; font-size: .86rem; background: #fff; color: var(--ink);
}
.admin-order__sums {
  display: flex; flex-wrap: wrap; gap: 22px; margin-top: 16px;
  padding-top: 14px; border-top: 1px solid var(--line-2);
  font-size: .86rem; color: var(--muted);
}
.admin-order__sums b { color: var(--ink); margin-left: 4px; }

/* ---------- pulpit ---------- */
.admin-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.admin-kpi {
  background: #fff; border: 1px solid #e7e1d8; border-radius: 14px;
  padding: 18px 20px; display: flex; flex-direction: column; gap: 4px;
  box-shadow: 0 2px 6px rgba(22, 24, 26, .04);
  /* kafelek jest przyciskiem — przełącza wykres */
  font: inherit; text-align: left; cursor: pointer; appearance: none;
  transition: transform .15s, box-shadow .15s, border-color .15s, background .15s;
}
.admin-kpi:hover {
  transform: translateY(-1px); border-color: #d8cfc0;
  box-shadow: 0 7px 18px rgba(22, 24, 26, .09);
}
.admin-kpi:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* wybrany kafelek = metryka pokazywana na wykresie */
.admin-kpi.is-active {
  background: linear-gradient(150deg, var(--brand), var(--brand-dark));
  border-color: transparent; color: #fff;
  box-shadow: 0 10px 24px rgba(180, 85, 31, .25);
}
.admin-kpi.is-active .admin-kpi__label,
.admin-kpi.is-active .admin-kpi__note { color: rgba(255, 255, 255, .82); }
.admin-kpi.is-active .admin-kpi__value { color: #fff; }

.admin-kpi__label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); font-weight: 700;
}
.admin-kpi__value { font-family: var(--serif); font-size: 1.65rem; font-weight: 400; color: var(--ink); line-height: 1.15; }
.admin-kpi__note { font-size: .76rem; color: var(--muted); }

/* ---------- wykres: pasek zakresu dat ---------- */
.admin-chart-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.admin-filters--chart { margin-bottom: 0; }
.admin-filters--chart .admin-filter { padding: 6px 13px; font-size: .8rem; }

.admin-range { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-range label {
  display: flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 600; color: var(--muted);
}
.admin-range input[type="date"] {
  padding: 7px 10px; border: 1px solid #e2dbd0; border-radius: 9px;
  font: inherit; font-size: .84rem; background: #fff; color: var(--ink); cursor: pointer;
}
.admin-range input[type="date"]:focus {
  outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(180, 85, 31, .13);
}

/* przycisk „zobacz na stronie" obok edytowanego pola */
.admin-preview {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; margin-left: 8px; vertical-align: middle;
  border-radius: 7px; border: 1px solid #e2dbd0; background: #fff;
  color: var(--muted); text-decoration: none; transition: .14s; flex: none;
}
.admin-preview svg { width: 14px; height: 14px; }
.admin-preview:hover {
  background: var(--brand); border-color: var(--brand); color: #fff; text-decoration: none;
}
.admin-text-row__head { display: flex; align-items: center; gap: 4px; }

/* ---------- obrazy: siatka miejsc na zdjęcia ---------- */
.img-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px;
}

.img-slot {
  margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: #fff; display: flex; flex-direction: column; transition: .15s;
}
.img-slot:hover { box-shadow: 0 6px 18px rgba(22, 24, 26, .08); }
.img-slot.is-uploading { opacity: .5; pointer-events: none; }

.img-slot__thumb {
  position: relative; aspect-ratio: 4 / 3; background: var(--line-2); overflow: hidden;
}
.img-slot__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-slot__badge {
  position: absolute; top: 8px; left: 8px;
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 999px; background: var(--green); color: #fff;
}

.img-slot__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.img-slot__label { font-size: .86rem; font-weight: 600; color: var(--ink); line-height: 1.35; display: block; }
.img-slot__note { font-size: .76rem; color: var(--muted); display: block; }
.img-slot__actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.img-slot__btn { padding: 8px 14px !important; font-size: .82rem !important; cursor: pointer; }
.img-slot__reset { padding: 8px 12px; font-size: .82rem; }

/* ---------- podświetlenie elementu po kliknięciu „zobacz na stronie" ---------- */
@keyframes hlPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(180, 85, 31, 0); }
  45%      { box-shadow: 0 0 0 7px rgba(180, 85, 31, .28); }
}

.is-highlighted {
  animation: hlPulse 1s ease-in-out 4;
  outline: 3px solid rgba(180, 85, 31, .75);
  outline-offset: 5px;
  border-radius: 8px;
  background-color: rgba(180, 85, 31, .12);
  scroll-margin-top: 90px;
  transition: background-color .4s ease, outline-color .4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .is-highlighted { animation: none; outline-width: 3px; }
}

/* ---------- 2FA ---------- */
.admin-login__back {
  display: block; width: 100%; margin-top: 10px; padding: 6px;
  background: none; border: 0; font: inherit; font-size: .84rem;
  color: var(--muted); cursor: pointer;
}
.admin-login__back:hover { color: var(--brand); }

.admin-2fa__lead { margin: 0 0 14px; font-size: .93rem; color: var(--ink-2); line-height: 1.55; }
.admin-2fa__lead b { color: var(--ink); }

.admin-2fa__qr {
  display: inline-block; padding: 12px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px;
}
.admin-2fa__qr svg { display: block; width: 180px; height: 180px; }

.admin-2fa__secret { margin: 12px 0 0; font-size: .86rem; color: var(--muted); }
.admin-2fa__secret code {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92rem;
  color: var(--ink); background: var(--line-2); padding: 4px 10px;
  border-radius: 6px; letter-spacing: .08em; user-select: all;
}

.admin-2fa__recovery {
  border: 1px solid #e3c9b4; background: #fdf7f2;
  border-radius: 12px; padding: 20px 22px;
}
.admin-2fa__recovery h3 { margin: 0 0 8px; font-size: 1rem; color: var(--ink); }
.admin-2fa__recovery p { margin: 0 0 14px; font-size: .86rem; color: var(--ink-2); line-height: 1.55; }

.admin-2fa__codes {
  list-style: none; margin: 0 0 16px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px;
}
.admin-2fa__codes li code {
  display: block; text-align: center; padding: 8px 6px;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9rem;
  letter-spacing: .06em; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; color: var(--ink); user-select: all;
}

/* ---------- „Edytuj stronę": jedna zakładka, pięć obszarów ---------- */
.site-toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.site-toolbar .admin-search { margin-left: 0; flex: 1; min-width: 260px; }
.site-tabs { margin-bottom: 20px; }

.site-sub { display: none; }
.site-sub.is-active { display: block; }
#site-body.is-searching .site-sub { display: block; }

/* wynik wyszukiwania ukryty przez filtr „Edytuj stronę" */
.sq-hidden { display: none !important; }

/* podczas szukania widać wszystkie obszary — nagłówek mówi, który to */
#site-body.is-searching .site-sub:not(.sq-hidden) { margin-bottom: 26px; }
#site-body.is-searching .site-sub:not(.sq-hidden)::before {
  content: attr(data-site-label);
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--admin-muted, #7a736b);
  border-bottom: 1px solid var(--admin-line, #e3ddd4);
  padding-bottom: 6px;
}
#site-body.is-searching .site-sub.sq-section-hit::before {
  content: attr(data-site-label) " — cała sekcja";
}

/* ---------- treści: edytor tekstów stron ---------- */
.admin-texts-tools {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px;
}
.admin-texts-tools .admin-search { margin-left: 0; flex: 1; min-width: 240px; }
.admin-texts-lang {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .84rem; color: var(--muted); white-space: nowrap; cursor: pointer;
}
.admin-texts-lang input { accent-color: var(--brand); }

.admin-text-group { margin-bottom: 26px; }
.admin-text-group:last-child { margin-bottom: 0; }

.admin-text-row {
  border: 1px solid var(--line-2); border-radius: 11px;
  padding: 12px 14px; margin-bottom: 10px; background: #fdfcfa;
}
.admin-text-row.is-changed { border-color: #e3c9b4; background: #fdf7f2; }
.admin-text-row__head { margin-bottom: 8px; }
.admin-text-row__head code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .72rem; color: var(--muted); background: var(--line-2);
  padding: 2px 7px; border-radius: 5px;
}
.admin-text-row__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-text-row__fields label { display: block; }
.admin-text-row__fields span {
  display: block; font-size: .68rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px;
}
.admin-text-row__fields input,
.admin-text-row__fields textarea {
  width: 100%; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: .86rem; background: #fff; color: var(--ink); transition: .15s;
}
.admin-text-row__fields textarea { resize: vertical; min-height: 62px; line-height: 1.45; }
.admin-text-row__fields input:focus,
.admin-text-row__fields textarea:focus {
  outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(180, 85, 31, .13);
}

.admin-texts-features {
  margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line);
}
.admin-texts-features .admin-opt { margin: 0 0 10px; }

/* zakładki sekcji w edytorze tekstów */
.admin-texts-groups { margin-bottom: 18px; }
.admin-texts-groups .admin-filter { padding: 6px 12px; font-size: .8rem; }

/* ---------- okno potwierdzenia ---------- */
.admin-modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 20px;
  background: rgba(22, 24, 26, .55);
  animation: adminModalIn .14s ease;
}
.admin-modal-open { overflow: hidden; }
@keyframes adminModalIn { from { opacity: 0; } to { opacity: 1; } }

.admin-modal__card {
  width: min(560px, 100%); max-height: 84vh; overflow-y: auto;
  background: #fff; border-radius: 16px; padding: 26px 26px 20px;
  box-shadow: 0 26px 70px rgba(22, 24, 26, .34);
}
.admin-modal__title {
  margin: 0 0 14px; font-family: var(--serif); font-size: 1.35rem; font-weight: 400; color: #16181a;
}
.admin-modal__body { font-size: .92rem; color: #3a3f44; }
.admin-modal__lead { margin: 0 0 14px; }
.admin-modal__lead b { color: #16181a; }
.admin-modal__note { margin: 0 0 14px; font-size: .84rem; color: #6c737a; }

.admin-modal__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
  max-height: 300px; overflow-y: auto;
}
.admin-modal__list li {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 8px 11px; border-radius: 9px;
  background: #f7f4f0; border-left: 2px solid var(--brand);
  font-size: .84rem;
}
.admin-modal__list code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .72rem; color: #6c737a; background: #ece7e0;
  padding: 1px 6px; border-radius: 4px;
}
.admin-modal__from {
  color: var(--red); background: var(--red-soft); padding: 1px 6px;
  border-radius: 5px; text-decoration: line-through;
}
.admin-modal__to {
  color: var(--green); background: var(--green-soft); padding: 1px 6px; border-radius: 5px;
  font-weight: 600;
}
.admin-modal__detail { color: #3a3f44; line-height: 1.5; }
.admin-modal__list--detail li { display: block; }
.admin-modal__list--detail code { display: inline-block; margin-bottom: 4px; }
.admin-modal__more { margin: 10px 0 0; font-size: .8rem; color: #6c737a; }

.admin-modal__foot {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 20px; padding-top: 18px; border-top: 1px solid #f1ece5;
}

@media (max-width: 700px) {
  .admin-text-row__fields { grid-template-columns: 1fr; }
  .admin-modal { padding: 12px; }
  .admin-modal__card { padding: 20px 18px 16px; }
  .admin-modal__foot { flex-direction: column-reverse; }
  .admin-modal__foot .admin-btn { width: 100%; }
}

/* ---------- ceny i opcje: pola dwujęzyczne ---------- */
.admin-bi { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.admin-bi input {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px;
  font: inherit; font-size: .88rem; background: #fff; color: var(--ink); min-width: 0;
}
.admin-bi input:focus {
  outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(180, 85, 31, .13);
}

.admin-opts-block {
  border: 1px solid var(--line-2); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 12px; background: #fdfcfa;
}
.admin-opts-block .field { margin-bottom: 12px; }
.admin-opts-block .field:last-child { margin-bottom: 0; }
.admin-opts-block__title {
  margin: 0 0 10px; font-size: .78rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
}

@media (max-width: 700px) {
  .admin-bi { grid-template-columns: 1fr; }
}

/* Wykres: stała wysokość, bo Chart.js rysuje na canvasie (maintainAspectRatio: false) */
.admin-chart { position: relative; height: 320px; padding: 4px 0 0; }
.admin-chart canvas { display: block; }
.admin-chart__svg { width: 100%; height: 100%; display: block; }
.admin-chart__hint { font-size: .78rem; color: var(--muted); margin: 14px 0 0; }

@media (max-width: 700px) {
  .admin-chart { height: 250px; }
}

.admin-table--dash .admin-table__head,
.admin-table--dash .admin-table__row { grid-template-columns: 132px 1fr 128px 116px 108px; }

/* ---------- aktywność ---------- */
.admin-activity { list-style: none; margin: 0; padding: 0; }
.admin-activity__item {
  display: flex; align-items: flex-start; gap: 12px; padding: 11px 0;
  border-bottom: 1px solid var(--line-2); font-size: .88rem;
}
.admin-activity__item:last-child { border-bottom: 0; }
.admin-activity__dot {
  width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--muted);
}
.admin-activity__item--order .admin-activity__dot { background: var(--brand); }
.admin-activity__item--category .admin-activity__dot { background: #33507f; }
.admin-activity__item--client .admin-activity__dot { background: var(--amber); }
.admin-activity__item--login .admin-activity__dot { background: var(--green); }
.admin-activity__text { flex: 1; color: var(--ink-2); }
.admin-activity__text b { color: var(--ink); }
.admin-activity__item time { font-size: .76rem; color: var(--muted); white-space: nowrap; }

/* ---------- dziennik: lista konkretnych zmian ---------- */
.admin-activity__text { min-width: 0; }

.chg-list {
  list-style: none; margin: 7px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.chg-list li {
  font-size: .82rem; color: var(--ink-2); line-height: 1.45;
  padding: 4px 9px; border-radius: 7px; background: var(--line-2);
  border-left: 2px solid var(--brand);
}
.chg { color: var(--ink-2); }
.chg__old {
  font-weight: 600; color: var(--red);
  background: var(--red-soft); padding: 1px 6px; border-radius: 5px;
  text-decoration: line-through; text-decoration-color: rgba(180, 35, 24, .45);
}
.chg__new {
  font-weight: 600; color: var(--green);
  background: var(--green-soft); padding: 1px 6px; border-radius: 5px;
}
.chg__arrow {
  font-style: normal; color: var(--muted); font-weight: 700;
  padding: 0 2px; font-size: .9rem;
}

.admin-activity-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-search--sm { min-width: 260px; }
.admin-search--sm input { padding: 8px 12px 8px 32px; font-size: .82rem; }
.admin-search--sm svg { width: 14px; height: 14px; left: 10px; }

.admin-id {
  display: inline-block; margin-left: 6px; font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .72rem; color: var(--muted); background: var(--line-2);
  padding: 1px 6px; border-radius: 4px;
}
.admin-activity-note {
  font-size: .8rem; color: var(--muted); padding: 10px 0 0; display: flex;
  justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

@media (max-width: 1000px) {
  .admin-kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .admin-kpis { grid-template-columns: 1fr; }
  .admin-table--dash .admin-table__row { grid-template-columns: 1fr 1fr; }
}

/* ---------- zamówienia: tabela CRUD ---------- */
.admin-actions-right { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }

.admin-table--orders .admin-table__head,
.admin-table--orders .admin-table__row {
  grid-template-columns: 118px minmax(0, 1fr) 116px 96px 92px 92px 116px 104px 40px;
  gap: 16px; font-size: .84rem;
}
.admin-table--orders .admin-table__cell,
.admin-table--orders span { min-width: 0; }

/* kolumna klienta: nazwa i e-mail nie mogą skleić się z datą */
.admin-table--orders .admin-table__row span:nth-child(2) {
  padding-right: 4px; overflow: hidden;
}

/* menu zębatki */
.admin-gear { position: relative; display: flex; justify-content: flex-end; }
.admin-gear__btn {
  width: 30px; height: 30px; display: grid; place-items: center; padding: 0;
  border: 1px solid #e2dbd0; border-radius: 8px; background: #fff;
  color: var(--muted); cursor: pointer; transition: .14s;
}
.admin-gear__btn svg { width: 16px; height: 16px; }
.admin-gear__btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.admin-gear__menu {
  position: absolute; top: 34px; right: 0; z-index: 60; display: none;
  min-width: 170px; background: #fff; border: 1px solid #e7e1d8; border-radius: 10px;
  box-shadow: 0 12px 30px rgba(22, 24, 26, .16); padding: 6px; text-align: left;
}
.admin-gear__menu.is-open { display: block; }

/* przy dolnych wierszach menu otwiera się w górę (ustawia js/admin.js) */
.admin-gear__menu.is-up { top: auto; bottom: 34px; }
.admin-gear__menu button {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 8px 11px; border-radius: 7px; font: inherit; font-size: .84rem;
  color: var(--ink-2); cursor: pointer;
}
.admin-gear__menu button:hover { background: var(--line-2); color: var(--ink); }
.admin-gear__danger { color: var(--red) !important; }
.admin-gear__sep {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); padding: 8px 11px 4px; border-top: 1px solid var(--line-2); margin-top: 4px;
}

/* formularz zamówienia */
.admin-order-form { margin-bottom: 22px; border-color: #d9cfc0; }

@media (max-width: 1200px) {
  .admin-table--orders { overflow-x: auto; }
  .admin-table--orders .admin-table__head,
  .admin-table--orders .admin-table__row { min-width: 1040px; }
}
@media (max-width: 700px) {
  .admin-table--orders .admin-table__head { display: none; }
  .admin-table--orders .admin-table__row {
    grid-template-columns: 1fr 1fr; min-width: 0; gap: 6px 12px;
  }
}

/* ---------- produkty: tabela ---------- */
.admin-table--products .admin-table__head,
.admin-table--products .admin-table__row {
  grid-template-columns: 92px 56px 1fr 84px 100px 58px 96px 76px 62px 40px;
  gap: 10px; font-size: .84rem;
}

/* ---------- klienci: tabela ---------- */
.admin-table--clients .admin-table__head,
.admin-table--clients .admin-table__row {
  grid-template-columns: 100px minmax(0, 1.2fr) minmax(0, 1.4fr) 94px 122px 86px 100px 40px;
  gap: 14px; font-size: .84rem;
}
.admin-table--clients .admin-table__row span { min-width: 0; }
.admin-table--clients .admin-table__row b { font-weight: 600; }

.admin-group {
  display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 9px;
  border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark);
  border: 1px solid rgba(180, 85, 31, .18); max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

@media (max-width: 1200px) {
  .admin-table--clients { overflow-x: auto; }
  .admin-table--clients .admin-table__head,
  .admin-table--clients .admin-table__row { min-width: 980px; }
}
@media (max-width: 700px) {
  .admin-table--clients .admin-table__head { display: none; }
  .admin-table--clients .admin-table__row { grid-template-columns: 1fr 1fr; min-width: 0; gap: 6px 12px; }
}

/* wyszukiwarka w filtrach */
.admin-search {
  position: relative; display: flex; align-items: center; margin-left: auto; min-width: 240px;
}
.admin-search svg {
  position: absolute; left: 12px; width: 16px; height: 16px; color: var(--muted); pointer-events: none;
}
.admin-search input {
  width: 100%; padding: 9px 14px 9px 36px; border: 1px solid #e2dbd0; border-radius: 999px;
  font: inherit; font-size: .86rem; background: #fff; color: var(--ink);
}
.admin-search input:focus {
  outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(180, 85, 31, .13);
}

.admin-type {
  display: inline-block; font-size: .66rem; font-weight: 700; padding: 2px 7px;
  border-radius: 999px; text-transform: uppercase; letter-spacing: .04em;
  background: var(--line-2); color: var(--muted);
}
.admin-type--variant { background: #e8edf7; color: #33507f; }
.admin-type--set { background: var(--brand-soft); color: var(--brand-dark); }

/* ---------- paginacja tabel ---------- */
.admin-pager {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 14px; padding: 10px 4px; font-size: .84rem; color: var(--muted);
  flex-wrap: wrap;
}
.admin-pager__info b { color: var(--ink); }
.admin-pager__nav { display: flex; align-items: center; gap: 8px; }
.admin-pager__nav label { display: flex; align-items: center; gap: 6px; font-size: .82rem; }
.admin-pager__nav select {
  padding: 6px 9px; border: 1px solid #e2dbd0; border-radius: 8px;
  font: inherit; font-size: .82rem; background: #fff; color: var(--ink); cursor: pointer;
}
.admin-pager__btn {
  width: 30px; height: 30px; display: grid; place-items: center; padding: 0;
  border: 1px solid #e2dbd0; border-radius: 8px; background: #fff;
  color: var(--ink-2); font-size: 1rem; line-height: 1; cursor: pointer; transition: .14s;
}
.admin-pager__btn:hover:not([disabled]) { background: var(--ink); border-color: var(--ink); color: #fff; }
.admin-pager__btn[disabled] { opacity: .4; cursor: not-allowed; }
.admin-pager__num { min-width: 56px; text-align: center; color: var(--ink-2); font-weight: 600; }
.admin-thumb {
  width: 56px; height: 42px; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line); background: var(--line-2); display: block;
}
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* przełącznik aktywności */
.admin-switch {
  width: 40px; height: 22px; border-radius: 999px; border: 0; padding: 0;
  background: #d8d0c4; cursor: pointer; position: relative; transition: .16s;
}
.admin-switch i {
  position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; transition: .16s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.admin-switch.is-on { background: var(--green); }
.admin-switch.is-on i { left: 21px; }

@media (max-width: 1200px) {
  .admin-table--products { overflow-x: auto; }
  .admin-table--products .admin-table__head,
  .admin-table--products .admin-table__row { min-width: 860px; }
}
@media (max-width: 700px) {
  .admin-table--products .admin-table__head { display: none; }
  .admin-table--products .admin-table__row { grid-template-columns: 1fr 1fr; min-width: 0; }
}
.admin-card .field { margin: 0 0 16px; }
.admin-card .field label {
  display: block; font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: 7px;
}
.admin-card .field input, .admin-card .field select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .92rem; background: #fff; color: var(--ink); transition: .15s;
}
.admin-card .field input:focus, .admin-card .field select:focus {
  outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(180, 85, 31, .13);
}
.admin-card .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .92rem; background: #fff; color: var(--ink);
  resize: vertical; min-height: 76px; transition: .15s;
}
.admin-card .field textarea:focus {
  outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(180, 85, 31, .13);
}

/* ---------- wygląd: wybór kolorów ---------- */
.admin-color { display: flex; align-items: center; gap: 10px; }
.admin-color input[type="color"] {
  width: 48px; height: 42px; padding: 3px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; cursor: pointer; flex: none;
}
.admin-color input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.admin-color input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 7px; }
.admin-color input[type="color"]::-moz-color-swatch { border: 0; border-radius: 7px; }
.admin-color input[type="text"] {
  flex: 1; min-width: 0; font-family: ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: .04em; text-transform: lowercase;
}

/* ---------- tabela zamówień ---------- */
/* Bez overflow: hidden — inaczej menu zębatki w ostatnim wierszu było
   obcinane przez krawędź tabeli. Zaokrąglenie robią nagłówek i ostatni wiersz. */
.admin-table {
  background: #fff; border: 1px solid #e7e1d8; border-radius: 14px;
  overflow: visible;
}
.admin-table__head, .admin-table__row {
  display: grid; grid-template-columns: 150px 130px 1fr 130px 90px;
  gap: 14px; padding: 12px 18px; align-items: center;
}
.admin-table__head {
  background: #faf8f5; border-bottom: 1px solid var(--line-2);
  font-size: .72rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); font-weight: 700;
  border-radius: 13px 13px 0 0;
}
.admin-table__row { border-bottom: 1px solid var(--line-2); font-size: .9rem; }
.admin-table__row:last-child {
  border-bottom: 0; border-radius: 0 0 13px 13px;
}
.admin-table__row:hover { background: #fcfbf9; }
.admin-table__row small {
  display: block; font-size: .76rem; color: var(--muted); line-height: 1.35;
  /* długi e-mail bez spacji nie może wjechać na sąsiednią kolumnę */
  overflow-wrap: anywhere; word-break: break-word; hyphens: auto;
}
.admin-mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .84rem; color: var(--ink); }
.admin-dim { color: var(--muted); font-size: .84rem; }
.admin-paid {
  display: inline-block; margin-left: 8px; font-size: .68rem; padding: 2px 7px;
  border-radius: 999px; background: var(--green-soft); color: var(--green); font-weight: 700;
}
.admin-warn { color: var(--red); }

.admin-empty {
  display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center;
  padding: 46px 20px; border: 1px dashed #ddd4c7; border-radius: 14px; background: #fdfcfa;
}
.admin-empty strong { color: var(--ink); }
.admin-empty span { color: var(--muted); font-size: .88rem; max-width: 42ch; }

.admin-order { margin-top: 18px; }
.admin-order__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.admin-order__grid h4, .admin-order__notes h4 {
  margin: 0 0 6px; font-size: .74rem; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted);
}
.admin-order__grid p, .admin-order__notes p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.admin-order__notes { margin-top: 16px; padding: 12px 14px; background: #faf8f5; border-radius: 10px; }
.admin-order__items { list-style: none; margin: 18px 0 0; padding: 0; }
.admin-order__items li {
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: .9rem;
}
.admin-order__items li span { display: flex; flex-direction: column; }
.admin-order__items li small { font-size: .76rem; color: var(--muted); }
.admin-order__items li em { font-style: normal; font-size: .8rem; }
.admin-order__items a { color: var(--brand-dark); }
.admin-order__total {
  display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px;
  padding-top: 14px; border-top: 2px solid var(--line-2);
}
.admin-order__total b { font-family: var(--serif); font-size: 1.6rem; }

@media (max-width: 800px) {
  .admin-table__head { display: none; }
  .admin-table__row { grid-template-columns: 1fr 1fr; gap: 6px 14px; }
  .admin-order__grid { grid-template-columns: 1fr; }
}

.admin-section-head { display: flex; align-items: center; gap: 12px; margin: 30px 0 16px; }
.admin-section-head h2 { margin: 0; font-size: 1.02rem; font-weight: 700; }

/* ---------- lista wzorów ---------- */
.admin-cat { margin-bottom: 28px; }
.admin-cat h3 { display: flex; align-items: center; gap: 10px; font-size: .95rem; margin: 0 0 14px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }

.admin-item {
  background: #fff; border: 1px solid #e7e1d8; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; transition: .16s;
}
.admin-item:hover { box-shadow: 0 10px 24px rgba(22, 24, 26, .09); transform: translateY(-2px); }
.admin-item--editing { grid-column: span 2; transform: none; }
.admin-item--editing:hover { box-shadow: none; }
.admin-item__img { aspect-ratio: 4 / 3; background: var(--line-2); overflow: hidden; }
.admin-item__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-item__body { padding: 12px 13px 13px; display: flex; flex-direction: column; gap: 2px; }
.admin-item__body strong { font-size: .9rem; color: var(--ink); }
.admin-item__body small { font-size: .76rem; color: var(--muted); }
.admin-item__actions { display: flex; gap: 14px; margin-top: 9px; }
.link-btn--danger { color: var(--red); }

.admin-edit { padding: 16px; display: grid; gap: 12px; }
.admin-edit .field { margin: 0; }
.admin-edit .field label { font-size: .78rem; }
.admin-edit .field input, .admin-edit .field select {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px;
  font: inherit; font-size: .88rem;
}
.admin-edit__actions { display: flex; gap: 8px; }
.admin-edit__actions .admin-btn { padding: 9px 16px; font-size: .86rem; }

.admin-sub {
  margin: 24px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2);
  font-size: .76rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 700;
}
.admin-sub:first-child { margin-top: 0; }

/* ---------- lista kategorii ---------- */
.admin-row {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px;
  background: #fff; border: 1px solid #e7e1d8; border-radius: 12px; margin-bottom: 10px;
  transition: .15s;
}
.admin-row:hover { border-color: #d8d0c4; box-shadow: 0 4px 14px rgba(22, 24, 26, .06); }
.admin-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.admin-row__main strong { font-size: .95rem; color: var(--ink); }
.admin-row__main small { font-size: .78rem; color: var(--muted); }
.admin-row__actions { display: flex; gap: 14px; flex: none; }
.admin-row--editing { display: block; padding: 0; }
.admin-row--editing .admin-edit { border: 0; }

/* ---------- responsywność ---------- */
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side {
    position: static; height: auto; flex-direction: row; align-items: center;
    gap: 14px; padding: 12px 16px; overflow-x: auto;
  }
  .admin-side__brand { padding: 0; flex: none; }
  .admin-side__name small { display: none; }
  .admin-nav { flex-direction: row; gap: 6px; flex: 1; }
  .admin-nav-search { flex: none; width: 170px; margin: 0; }
  .admin-nav-search__key { display: none; }
  .admin-nav__sep { width: 1px; height: 22px; margin: 0 5px; flex: none; align-self: center; }
  .admin-nav__item { white-space: nowrap; padding: 9px 13px; }
  .admin-nav__item span { display: none; }
  .admin-nav__item.is-active span { display: inline; }
  .admin-nav__badge { display: none; }
  .admin-side__foot { flex-direction: row; padding: 0; margin: 0; flex: none; }
  .admin-side__link { display: none; }
  .admin-main { padding: 22px 16px 60px; }
}
@media (max-width: 640px) {
  .admin-grid-form { grid-template-columns: 1fr; }
  .admin-item--editing { grid-column: span 1; }
  .admin-login__card { padding: 26px 20px; }
  .admin-topbar h1 { font-size: 1.5rem; }
}

/* ============================================================================
   Podgląd zdjęcia na cały ekran (lightbox) + kafelki rozmiarów
   ========================================================================== */

body.no-scroll { overflow: hidden; }

.lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(14, 16, 18, .86);
  backdrop-filter: blur(3px);
  animation: lightboxIn .16s ease;
}
@keyframes lightboxIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox__box {
  position: relative;
  display: flex; flex-direction: column;
  max-width: min(1180px, 100%);
  max-height: 100%;
  background: #101214;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 190px);
  width: auto; height: auto;
  margin: 0 auto;
  object-fit: contain;
  background: #000;
}
.lightbox__bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 18px;
  background: #17191c; color: #f2efe9;
}
.lightbox__cap { display: flex; flex-direction: column; gap: 2px; margin-right: auto; }
.lightbox__cap strong { font-size: .98rem; font-weight: 700; }
.lightbox__cap small { font-size: .82rem; color: #b3ada4; }
.lightbox__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lightbox__actions .btn { padding: 10px 16px; font-size: .86rem; }
.lightbox__x {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18); background: transparent;
  color: #f2efe9; font-size: 1.4rem; line-height: 1; cursor: pointer;
  transition: background .14s;
}
.lightbox__x:hover { background: rgba(255, 255, 255, .1); }

@media (max-width: 640px) {
  .lightbox { padding: 0; }
  .lightbox__box { border-radius: 0; max-height: 100vh; }
  .lightbox__img { max-height: calc(100vh - 200px); }
  .lightbox__actions { width: 100%; }
  .lightbox__actions .btn { flex: 1 1 auto; text-align: center; }
}

/* lupa na kafelku galerii i wzorze w konfiguratorze.
   Widoczna ZAWSZE (także na telefonie, gdzie nie ma „hover") — wcześniej
   pokazywała się tylko po najechaniu myszką. */
.gal-card__zoom, .gal-pick__zoom {
  position: absolute; right: 8px; bottom: 8px;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16, 18, 20, .72); color: #fff;
  font-size: .95rem; line-height: 1; cursor: zoom-in;
  opacity: .9; transition: opacity .14s, transform .14s, background .14s;
}
.gal-card:hover .gal-card__zoom,
.gal-pick:hover .gal-pick__zoom { opacity: 1; background: rgba(16, 18, 20, .9); }
.gal-pick__zoom:hover { transform: scale(1.1); }
.gal-pick__zoom { z-index: 3; }
.gal-pick { position: relative; }

/* kafelki stałych rozmiarów (fotopuzzle) */
.size-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
}
.size-tile {
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
  padding: 14px 16px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff;
  font: inherit; text-align: left; color: var(--ink);
  transition: border-color .14s, box-shadow .14s, background .14s;
}
.size-tile strong { font-size: .95rem; font-weight: 700; }
.size-tile small { font-size: .82rem; color: var(--muted); }
.size-tile:hover { border-color: var(--brand); }
.size-tile.is-active {
  border-color: var(--brand); background: var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(180, 85, 31, .12);
}
.size-tile.is-active small { color: var(--brand-dark); font-weight: 600; }

/* ---------- panel: kafelki trzech produktów sklepu (zakładka Produkty) ---------- */
.prod-strip {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px;
}
.prod-tile {
  margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: #fff; display: flex; flex-direction: column; transition: .15s;
}
.prod-tile:hover { box-shadow: 0 6px 18px rgba(22, 24, 26, .08); }
.prod-tile.is-uploading { opacity: .5; pointer-events: none; }
.prod-tile__img { aspect-ratio: 4 / 3; background: var(--line-2); overflow: hidden; }
.prod-tile__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-tile figcaption {
  padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px;
  font-size: .9rem; color: var(--ink);
}
.prod-tile__act { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.prod-tile__act .admin-btn { padding: 6px 12px; font-size: .8rem; cursor: pointer; }

/* ---------- panel: lista rozmiarów fotopuzzli ---------- */
.pz-list { display: flex; flex-direction: column; gap: 8px; }
.pz-row {
  display: grid; grid-template-columns: 150px 1fr 170px; gap: 14px; align-items: end;
  padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fffdfa;
}
.pz-row .field { margin: 0; }
.pz-size { font-weight: 600; font-size: .92rem; padding-bottom: 10px; }
.pz-total { font-size: .88rem; color: var(--muted); padding-bottom: 10px; text-align: right; }
.pz-total b { color: var(--ink); }

@media (max-width: 700px) {
  .pz-row { grid-template-columns: 1fr; gap: 8px; }
  .pz-size, .pz-total { padding-bottom: 0; text-align: left; }
}

/* ---------- panel: dopłaty za liczbę elementów puzzli ---------- */
.pz-frag {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px;
}
.pz-frag__item {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 8px;
  background: #fffdfa; font-size: .82rem;
}
.pz-frag__n { min-width: 54px; font-weight: 600; color: var(--muted); }
.pz-frag__item input {
  width: 64px; padding: 4px 6px; border: 1px solid var(--line);
  border-radius: 6px; font: inherit; font-size: .82rem;
}
.pz-frag__zl { color: var(--muted); }

/* kafelki rozmiarów puzzli — dopłata jako wyraźna kwota */
.size-tile small {
  font-size: .9rem; font-weight: 700; color: var(--brand-dark);
}
.size-tile.is-active small { color: var(--brand-dark); }
