/* Mock v2: komponenty sklepu. Koszyk, kasa, popupy, toasty, błędy. Kolory z site.css. */
:root {
  --error: #b42318;
  --error-bg: #fdeceb;
  --warn: #8a5a00;
  --warn-bg: #fff2d1;
  --ok-bg: #e2f3ec;
  --shadow: 0 24px 60px rgba(14,66,66,.2);
}

.ic { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
[hidden] { display: none !important; }
section[id], .input, .check input { scroll-margin-top: 110px; }

/* Przyciski, dodatki */
.btn.block,
.btn-block { width: 100%; max-width: 100%; box-sizing: border-box; }

/* Beat WooCommerce .woocommerce button.button / a.button (higher specificity). */
.woocommerce .btn.btn-primary,
.woocommerce-page .btn.btn-primary,
.woocommerce button.button.btn-primary,
.woocommerce a.button.btn-primary {
  background: var(--limonka); color: var(--teal-900); border-color: transparent;
}
.woocommerce .btn.btn-dark,
.woocommerce-page .btn.btn-dark,
.woocommerce button.button.btn-dark,
.woocommerce a.button.btn-dark {
  background: var(--teal-900); color: #fff; border-color: transparent;
}
.woocommerce .btn.btn-dark:hover,
.woocommerce-page .btn.btn-dark:hover,
.woocommerce button.button.btn-dark:hover,
.woocommerce a.button.btn-dark:hover {
  background: var(--teal-700); color: #fff;
}
.woocommerce .btn.btn-ghost,
.woocommerce-page .btn.btn-ghost,
.woocommerce button.button.btn-ghost,
.woocommerce a.button.btn-ghost {
  background: transparent; color: var(--teal-900); border-color: var(--teal-900);
}
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover { background: #8f1c13; }
.btn:disabled, .btn.is-disabled { opacity: .4; cursor: not-allowed; }
.btn-pay { background: #000; color: #fff; min-height: 52px; }
.btn-pay:hover { background: #222; }
.link-btn {
  background: none; border: 0; padding: 0; font: inherit; font-size: 15px; color: var(--teal-700);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
  display: inline-flex; gap: 6px; align-items: center;
}
.link-btn .ic { width: 18px; height: 18px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 0; background: transparent; color: inherit; cursor: pointer;
}
.icon-btn:hover { background: var(--mist); }

/* Header: koszyk z ikoną */
.cart .ic,
.cart > svg { width: 18px; height: 18px; flex: none; display: block; }

/* Header kasy: bez nawigacji, żeby nie wyprowadzać z zakupu */
.checkout-header .wrap { justify-content: space-between; }
.checkout-header .secure { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; color: var(--muted); }
.checkout-header .secure .ic { color: var(--teal-700); }

/* Stopka: kontakt i social */
.foot-contact { margin-top: 16px; }
.foot-contact a { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; }
.foot-contact a:hover { color: #fff; }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); }
.socials a:hover { background: rgba(255,255,255,.08); color: #fff; }
.socials .ic { width: 18px; height: 18px; }
.foot-bottom { align-items: center; }
.site-footer.slim { padding: 32px 0; }
.site-footer.slim .wrap { display: flex; gap: 12px 24px; flex-wrap: wrap; justify-content: space-between; }
.site-footer.slim a { text-decoration: none; }
.site-footer.slim a:hover { color: #fff; text-decoration: underline; }
.slim-links { display: flex; gap: 8px 20px; flex-wrap: wrap; }

/* Narzędzia mocka: stany i lista stron (ukrywa je przełącznik notatek) */
.mock-bar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 20px;
  border: 1.5px dashed var(--chaga); color: var(--chaga); border-radius: var(--r-md); padding: 10px 14px; font-size: 14px;
}
.mock-bar b { font-weight: 600; margin-right: 4px; }
.mock-bar button, .mock-actions button {
  font: 500 14px/1 var(--display); padding: 8px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid currentColor; background: transparent; color: var(--chaga);
}
.mock-bar button[aria-pressed="true"] { background: var(--chaga); color: #fff; }
body.hide-todo .mock-bar { display: none; }
.mock-actions { border-top: 1.5px dashed var(--chaga); margin-top: 22px; padding-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--chaga); font-size: 13px; }
.mock-pages { position: fixed; left: 16px; bottom: 62px; z-index: 60; font: 500 13px/1.3 var(--display); }
.mock-pages summary {
  list-style: none; cursor: pointer; padding: 10px 14px; border-radius: 999px;
  background: var(--surface); color: var(--chaga); border: 1.5px dashed var(--chaga);
}
.mock-pages summary::-webkit-details-marker { display: none; }
.mock-pages ul { position: absolute; bottom: calc(100% + 8px); left: 0; margin: 0; padding: 8px; list-style: none; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow); min-width: 220px; }
.mock-pages a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 15px; }
.mock-pages a:hover, .mock-pages a[aria-current] { background: var(--mist); }
.mock-pages li.sep { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.mock-pages li button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; font: inherit; color: var(--chaga); cursor: pointer; }
.mock-pages li button:hover { background: var(--mist); }
body.hide-todo .mock-pages { display: none; }

/* Kroki zamówienia: numery, nie strzałki */
.steps-bar { list-style: none; display: flex; padding: 0; margin: 0; counter-reset: s; }
.steps-bar li { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); counter-increment: s; white-space: nowrap; }
.steps-bar li:last-child { flex: none; }
.steps-bar li::before {
  content: counter(s); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; color: var(--muted);
}
.steps-bar li:not(:last-child)::after { content: ""; flex: 1; height: 1.5px; background: var(--line); margin: 0 6px; min-width: 16px; }
.steps-bar li.done { color: var(--ink); }
.steps-bar li.done::before { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.steps-bar li[aria-current] { color: var(--ink); font-weight: 600; }
.steps-bar li[aria-current]::before { background: var(--teal-900); border-color: var(--teal-900); color: #fff; }
.steps-bar a { color: inherit; }

/* Układ stron sklepu */
.page-head { padding-top: 32px; }
.page-title { font-size: clamp(36px, 4.4vw, 52px); font-weight: 600; letter-spacing: -0.03em; margin-top: 32px; }
.shop-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; padding: 28px 0 clamp(64px, 8vw, 104px); }
.card { background: var(--surface); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
.card + .card { margin-top: 16px; }
.summary { position: sticky; top: 100px; }
.summary h2 { font-size: 24px; letter-spacing: -0.01em; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 16px; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; font-size: 21px; font-weight: 600; }
.sum-row.total small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.sum-note { font-size: 14px; color: var(--muted); margin-top: 12px; }
.sum-cta { margin-top: 20px; }
.secure-note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 14px; color: var(--muted); margin-top: 12px; }
.secure-note .ic { width: 16px; height: 16px; color: var(--teal-700); }

/* Pozycja koszyka */
.line { display: grid; grid-template-columns: 88px 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line:first-child { padding-top: 0; }
.line-img { width: 88px; height: 104px; object-fit: contain; background: var(--mist); border-radius: var(--r-sm); padding: 8px; }
.line-gift { width: 88px; height: 72px; display: grid; place-items: center; background: #eef8d2; border-radius: var(--r-sm); color: var(--teal-700); }
.line-gift .ic { width: 28px; height: 28px; }
.line h3 { font-size: 18px; }
.line-meta { color: var(--muted); font-size: 15px; margin-top: 4px; }
.line-actions { display: flex; gap: 12px 20px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.line-price { text-align: right; line-height: 1.25; white-space: nowrap; }
.line-price s { display: block; color: var(--muted); font-size: 14px; }
.line-price b { font-size: 19px; font-weight: 600; }
.line.is-unavailable .line-img { opacity: .45; }
.line .alert { margin-top: 14px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); }
.qty button { width: 40px; height: 40px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--teal-900); border-radius: 50%; }
.qty button:hover { background: var(--mist); }
.qty button:disabled { opacity: .3; cursor: default; background: none; }
.qty output { min-width: 26px; text-align: center; font-weight: 600; }
.qty .ic { width: 16px; height: 16px; }
.select-inline { font: 500 15px var(--display); color: var(--ink); border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 14px; background: var(--surface); }

/* Pasek do darmowej dostawy */
.ship-progress { background: var(--mist); border-radius: var(--r-md); padding: 14px 16px; font-size: 15px; }
.ship-progress .bar { height: 8px; background: rgba(255,255,255,.85); border-radius: 999px; margin-top: 10px; overflow: hidden; }
.ship-progress .bar i { display: block; height: 100%; background: var(--teal-700); border-radius: inherit; }
.ship-progress.done { background: var(--ok-bg); }

/* Kod rabatowy */
.coupon { margin-top: 20px; }
.coupon-row { display: flex; gap: 8px; margin-top: 10px; }
.coupon-row .input { min-height: 48px; }
.coupon-row .btn { min-height: 48px; }
.coupon-applied { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--ok-bg); border-radius: var(--r-sm); padding: 8px 8px 8px 14px; font-size: 15px; margin-top: 10px; }

/* Formularze */
.field { display: grid; gap: 6px; align-content: start; }
.field > label, .label { font-weight: 500; font-size: 15px; }
.hint { font-size: 13px; color: var(--muted); }
.input, .select {
  width: 100%; min-height: 52px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--surface);
  padding: 0 16px; font: 400 17px var(--display); color: var(--ink);
}
.input::placeholder { color: #8aa3a0; }
.input:focus, .select:focus { outline: 3px solid rgba(63,198,182,.45); outline-offset: 0; border-color: var(--teal-700); }
.field.has-error .input, .field.has-error .select { border-color: var(--error); background: #fffbfa; }
.field.has-error .input:focus { outline-color: rgba(180,35,24,.25); }
.field-error { display: none; gap: 6px; align-items: flex-start; color: var(--error); font-size: 14px; line-height: 1.35; }
.field-error .ic { width: 16px; height: 16px; margin-top: 1px; }
.has-error > .field-error, .has-error .field-error { display: flex; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--teal-900); margin: 1px 0 0; flex: none; }
.check-wrap.has-error .check { color: var(--error); }
.check-wrap .field-error { margin: 6px 0 0 34px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.input.code { text-align: center; font-size: 28px; font-weight: 600; letter-spacing: .35em; max-width: 260px; padding: 0 0 0 .35em; }

/* Przełącznik (cookies) */
.switch-row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.switch-row b { display: block; font-size: 16px; }
.switch-row p { font-size: 14px; color: var(--muted); margin-top: 2px; }
.switch { appearance: none; width: 48px; height: 28px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; flex: none; margin: 2px 0 0; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch:checked { background: var(--teal-700); }
.switch:checked::after { transform: translateX(20px); }
.switch:disabled { opacity: .6; cursor: default; }

/* Karty wyboru: dostawa, płatność */
.option { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; border: 2px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; background: var(--surface); cursor: pointer; }
.option + .option, .option-extra + .option { margin-top: 10px; }
.option input[type="radio"] { width: 22px; height: 22px; accent-color: var(--teal-900); margin: 0; }
.option:has(input:checked) { border-color: var(--teal-900); box-shadow: 0 0 0 4px rgba(63,198,182,.22); }
.option b { display: block; font-weight: 600; }
.option small { color: var(--muted); font-size: 14px; }
.option .price { font-weight: 600; white-space: nowrap; }
.option-extra { margin-top: 10px; padding: 16px 18px; border-radius: var(--r-md); background: var(--bg); }
.point { display: flex; gap: 12px; align-items: flex-start; }
.point .ic { color: var(--teal-700); margin-top: 2px; }
.point b { display: block; }
.point span span { font-size: 14px; color: var(--muted); }

/* Kasa */
.co-section h2 { font-size: 24px; letter-spacing: -0.01em; display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.co-section h2 .num { width: 32px; height: 32px; border-radius: 50%; background: var(--teal-900); color: #fff; display: grid; place-items: center; font-size: 15px; flex: none; }
.co-section .aside-link { margin-left: auto; font-size: 15px; font-weight: 400; }
.express { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.divider-text { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; margin: 20px 0 0; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.consents { display: grid; gap: 14px; margin-top: 20px; }
.legal-fine { font-size: 13px; color: var(--muted); margin-top: 12px; }
.mini-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 15px; }
.mini-line img { width: 56px; height: 64px; object-fit: contain; background: var(--mist); border-radius: 8px; padding: 4px; }
.mini-line b { display: block; font-size: 16px; }

/* Komunikaty w treści */
.alert { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); font-size: 15px; align-items: start; text-align: left; }
.alert > .ic { width: 22px; height: 22px; margin-top: 1px; }
.alert b { display: block; font-size: 16px; font-weight: 600; }
.alert p { margin-top: 2px; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert a { font-weight: 500; }
.alert-actions { display: flex; gap: 10px 16px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.alert.error { background: var(--error-bg); color: #5f140d; }
.alert.error > .ic { color: var(--error); }
.alert.warn { background: var(--warn-bg); color: #4a3300; }
.alert.warn > .ic { color: var(--warn); }
.alert.ok { background: var(--ok-bg); color: var(--teal-900); }
.alert.ok > .ic { color: var(--teal-700); }
.alert.info { background: var(--mist); color: var(--teal-900); }
.alert.info > .ic { color: var(--teal-700); }

/* Toasty */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 1000; display: grid; gap: 10px; width: min(400px, calc(100vw - 32px)); }
.toast {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start;
  background: var(--teal-900); color: #fff; border-radius: var(--r-md); padding: 14px 8px 14px 16px;
  box-shadow: var(--shadow); font-size: 15px; animation: toast-in .22s ease-out;
}
.toast > .ic { width: 22px; height: 22px; margin-top: 1px; color: var(--limonka); }
.toast.info > .ic { color: var(--turkus); }
.toast.error { background: var(--error); }
.toast.error > .ic { color: #fff; }
.toast .toast-body { min-width: 0; }
.toast b { display: block; font-weight: 600; }
.toast p { opacity: .85; margin-top: 2px; }
.toast .icon-btn span { font-size: 22px; line-height: 1; }
.toast-action { background: none; border: 0; padding: 0; margin-top: 8px; color: var(--limonka); font: 600 15px var(--display); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.toast.error .toast-action { color: #fff; }
.toast .icon-btn { width: 32px; height: 32px; margin-top: -4px; }
.toast .icon-btn:hover { background: rgba(255,255,255,.14); }
.toast .icon-btn .ic { width: 18px; height: 18px; }
.toast.leaving { animation: toast-out .18s ease-in forwards; }
.toast.static { animation: none; box-shadow: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* Popupy (natywny <dialog>: fokus, Esc i tło za darmo) */
dialog { color: var(--ink); }
dialog::backdrop { background: rgba(14,46,45,.5); backdrop-filter: blur(2px); }
dialog.modal { border: 0; padding: 0; border-radius: var(--r-lg); width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); background: var(--surface); box-shadow: var(--shadow); }
dialog.modal.wide { width: min(760px, calc(100vw - 32px)); }
dialog.modal[open] { animation: pop .2s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal-inner { padding: 30px clamp(20px, 4vw, 32px) 28px; position: relative; }
.modal-close { position: absolute; top: 12px; right: 12px; }
.modal h2 { font-size: 28px; letter-spacing: -0.02em; padding-right: 44px; }
.modal .lead { color: var(--muted); margin-top: 10px; }
.modal-body { margin-top: 20px; display: grid; gap: 16px; }
.modal-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.modal-actions .btn { flex: 1 1 180px; }
.modal-alt { margin-top: 18px; font-size: 15px; color: var(--muted); text-align: center; }
.modal-visual { position: relative; overflow: hidden; background: linear-gradient(150deg, #5fd5c4 0%, #46c6b7 45%, #b4dd4a 100%); color: rgba(255,255,255,.4); }
.modal-split { display: grid; grid-template-columns: .85fr 1.15fr; }
.modal-split .modal-visual img { position: absolute; left: 50%; bottom: -6%; height: 96%; width: auto; max-width: none; transform: translateX(-50%); filter: drop-shadow(0 18px 24px rgba(14,66,66,.25)); }

dialog.drawer {
  border: 0; padding: 0; margin: 0;
  position: fixed; top: 0; right: 0; bottom: 0; left: auto;
  width: min(440px, 100vw); max-width: 100%;
  height: auto; max-height: none;
  background: var(--surface); box-shadow: var(--shadow);
  box-sizing: border-box; overflow: hidden;
  transform: none;
}
dialog.drawer::backdrop { background: rgba(14, 46, 45, 0.45); backdrop-filter: blur(2px); }
dialog.drawer.left { right: auto; left: 0; }
dialog.drawer[open] { animation: slide-r .26s ease-out both; }
dialog.drawer.left[open] { animation-name: slide-l; }
@keyframes slide-r {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
@keyframes slide-l {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}
.drawer-inner { display: flex; flex-direction: column; height: 100%; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 12px 14px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 24px; letter-spacing: -0.01em; }
.drawer-body { flex: 1; overflow: auto; padding: 20px 24px; }
.drawer-foot { padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer .line { grid-template-columns: 64px 1fr auto; gap: 14px; }
.drawer .line-img { width: 64px; height: 76px; padding: 6px; }
.drawer .line-gift { width: 64px; height: 56px; }
.drawer .line h3 { font-size: 16px; }
.drawer .ship-progress { margin-bottom: 20px; }
.added-line { display: flex; gap: 8px; align-items: center; color: var(--teal-700); font-weight: 500; font-size: 15px; margin-bottom: 16px; }
.mobile-nav { display: grid; padding: 8px 0; }
.mobile-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 22px; font-weight: 500; }
.mobile-nav-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; font-size: 16px; }

/* Mapa paczkomatów (atrapa) */
.map-ph { position: relative; height: 200px; border-radius: var(--r-md); background: var(--mist); color: rgba(23,98,95,.18); overflow: hidden; }
.map-ph .pin { position: absolute; color: var(--teal-900); }
.map-ph .pin .ic { width: 28px; height: 28px; }
.map-ph .pin.on { color: var(--chaga); }
.map-ph .ph-label { position: absolute; right: 10px; bottom: 10px; font-size: 12px; background: rgba(255,255,255,.9); padding: 4px 8px; border-radius: 6px; color: var(--muted); }
.point-list { display: grid; gap: 8px; max-height: 260px; overflow: auto; }

/* Baner cookies */
.cookie-bar { position: fixed; left: 20px; bottom: 20px; z-index: 900; width: min(460px, calc(100vw - 32px)); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px 24px; font-size: 15px; }
.cookie-bar h2 { font-size: 20px; letter-spacing: -0.01em; }
.cookie-bar p { color: var(--muted); margin-top: 6px; }
.cookie-bar .modal-actions { margin-top: 16px; }
.cookie-bar .modal-actions .btn { min-height: 48px; font-size: 15px; flex: 1 1 140px; }

/* Stany puste */
.empty { text-align: center; padding: clamp(40px, 6vw, 72px) 16px; }
.empty img { width: 104px; height: auto; display: block; margin: 0 auto 20px; }
.empty h2 { font-size: clamp(28px, 3vw, 36px); }
.empty p { color: var(--muted); margin: 10px auto 24px; max-width: 42ch; }

/* Strony błędów */
.err-page { padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 9vw, 120px); }
.err-card { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--mist); color: rgba(23,98,95,.16); padding: clamp(32px, 6vw, 80px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.err-card > :not(.topo) { position: relative; color: var(--ink); }
.err-code { font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-700); }
.err-card h1 { font-size: clamp(40px, 5.4vw, 68px); font-weight: 600; letter-spacing: -0.035em; line-height: 1; margin-top: 14px; }
.err-card p { font-size: 19px; color: var(--muted); margin-top: 18px; max-width: 42ch; }
.err-card .closing-ctas { margin-top: 28px; }
.err-card .pouch-img { max-height: 360px; width: auto; margin: 0 auto; filter: drop-shadow(0 24px 30px rgba(14,66,66,.22)); }
.err-help { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.err-help a { display: block; background: var(--surface); border-radius: var(--r-md); padding: 20px; text-decoration: none; }
.err-help a:hover { box-shadow: 0 0 0 2px var(--teal-900) inset; }
.err-help b { display: block; font-size: 18px; }
.err-help span { color: var(--muted); font-size: 15px; }
.err-ref { font-size: 13px; color: var(--muted); margin-top: 20px; font-family: ui-monospace, Consolas, monospace; }

/* Podziękowanie */
.ty-head { display: flex; gap: 18px; align-items: flex-start; }
.ty-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--ok-bg); color: var(--teal-700); }
.ty-icon .ic { width: 30px; height: 30px; }
.ty-icon.error { background: var(--error-bg); color: var(--error); }
.ty-icon.wait { background: var(--warn-bg); color: var(--warn); }
.ty-head h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 600; letter-spacing: -0.03em; }
.ty-head p { color: var(--muted); margin-top: 8px; font-size: 18px; }
.ty-head p b { color: var(--ink); }
.ty-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; font-size: 15px; }
.ty-grid h3 { font-size: 16px; margin-bottom: 4px; }
.ty-grid p { color: var(--muted); }
.order-no { font-family: ui-monospace, Consolas, monospace; font-weight: 600; }

/* Ładowanie: szkielety paneli, shimmer, przyciski w toku */
:root { --sk: #e3efeb; --sk-hi: #f3f9f7; }
.sk-wrap { display: none; gap: 14px; }
[data-sk].is-loading > :not(.sk-wrap) { display: none !important; }
[data-sk].is-loading > .sk-wrap { display: grid; }
.sk {
  display: block; height: 14px; border-radius: 8px; flex: none;
  background: linear-gradient(100deg, var(--sk) 30%, var(--sk-hi) 50%, var(--sk) 70%) var(--sk);
  background-size: 300% 100%; animation: sk-shimmer 1.4s ease-in-out infinite;
}
.sk.pill { border-radius: 999px; }
.sk.round { border-radius: 50%; }
.sk.box { border-radius: var(--r-md); }
.sk-row { display: flex; gap: 14px; align-items: center; }
.sk-row.top { align-items: flex-start; }
.sk-row.between { justify-content: space-between; }
.sk-col { flex: 1; display: grid; gap: 10px; min-width: 0; }
.sk-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sk-sep { height: 1px; background: var(--line); margin: 4px 0; }
.sk-dark { --sk: rgba(255,255,255,.1); --sk-hi: rgba(255,255,255,.22); }
@keyframes sk-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* Przeliczanie: wartości migoczą, układ zostaje */
.is-updating [data-sum-val], .is-updating .sum-row > span:last-child, .is-updating .line-price b {
  color: transparent !important; border-radius: 6px;
  background: linear-gradient(100deg, var(--sk) 30%, var(--sk-hi) 50%, var(--sk) 70%) var(--sk);
  background-size: 300% 100%; animation: sk-shimmer 1s ease-in-out infinite;
}
.is-updating .sum-row > span:last-child * { visibility: hidden; }

/* Przycisk w toku: zachowuje szerokość, tekst znika, w środku kółko */
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading:disabled, .btn.is-loading[aria-disabled] { opacity: 1; cursor: progress; }
.btn.is-loading > * { visibility: hidden; }
.btn.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
.btn-dark.is-loading::after, .btn-danger.is-loading::after, .btn-pay.is-loading::after { border-color: #fff; border-right-color: transparent; }
.btn-primary.is-loading::after, .btn-ghost.is-loading::after { border-color: var(--teal-900); border-right-color: transparent; }
.btn-ghost.is-loading { background: transparent; }
.review.is-loading { padding: 16px; }
/* Szkielet na miętowym tle strony (nie na białej karcie) potrzebuje mocniejszego koloru */
.offer-form.is-loading, .review.is-loading { --sk: #d4e7e0; --sk-hi: #e8f3ef; }
.mail-viewer.is-loading { background: var(--surface); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
.mail-list.is-loading > .sk-wrap { gap: 18px; padding: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .sk, .is-updating [data-sum-val], .is-updating .sum-row > span:last-child, .is-updating .line-price b { animation: none; }
  .btn.is-loading::after { animation-duration: 1.6s; }
}

/* Konto: logowanie, rejestracja, hasło */
.auth-page { padding: 32px var(--gutter) clamp(56px, 8vw, 96px); }
.auth-page > .mock-bar { margin-bottom: 24px; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(20px, 3vw, 32px); align-items: stretch; }
.auth-card { padding: clamp(24px, 4vw, 48px); max-width: none; }
.auth-card > * { max-width: 460px; }
.auth-title { font-size: clamp(32px, 3.6vw, 44px); font-weight: 600; letter-spacing: -0.03em; }
.auth-lead { color: var(--muted); font-size: 17px; margin-top: 10px; }
.auth-lead b { color: var(--ink); }
.auth-small { font-size: 15px; color: var(--muted); margin-top: 16px; }
.auth-card .alert { margin-top: 20px; }
.auth-fields { display: grid; gap: 16px; margin-top: 24px; }
.auth-submit { margin-top: 24px; }
.auth-back { margin-top: 20px; }
.auth-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.auth-done .ty-icon { margin-bottom: 20px; }
.seg { display: inline-flex; padding: 4px; background: var(--bg); border-radius: 999px; margin-bottom: 28px; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 10px 20px; font: 500 15px var(--display); color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(14,66,66,.14); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.label-row label { font-weight: 500; font-size: 15px; }
.label-row .link-btn { font-size: 14px; }
.pass-wrap { position: relative; }
.pass-wrap .input { padding-right: 84px; }
.pass-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: 8px 12px; border-radius: 8px; font: 500 14px var(--display); color: var(--teal-700); cursor: pointer; }
.pass-toggle:hover { background: var(--mist); }
.input[readonly] { background: var(--bg); color: var(--muted); }
.auth-side { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); background: linear-gradient(160deg, #5fd5c4 0%, #46c6b7 50%, #b4dd4a 120%); color: var(--teal-900); display: flex; flex-direction: column; justify-content: flex-end; min-height: 560px; }
.auth-side .topo { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(255,255,255,.35); }
.auth-side img { position: absolute; right: -2%; top: 3%; height: 42%; width: auto; transform: rotate(6deg); filter: drop-shadow(0 20px 28px rgba(14,66,66,.28)); }
.auth-side h2 { position: relative; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.02em; max-width: 14ch; }
.auth-perks { position: relative; list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.auth-perks li { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.72); border-radius: var(--r-sm); padding: 12px 14px; font-size: 15px; }
.auth-perks .ic { color: var(--teal-700); }
.auth-side-note { position: relative; font-size: 14px; margin-top: 14px; font-weight: 500; }

/* QoL */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
details, .option-extra, .alert, .card { scroll-margin: 110px 0 24px; }
.hint.suggest { color: var(--teal-900); font-size: 14px; }
.hint.suggest .link-btn { font-size: 14px; margin-left: 4px; }
.hint.caps { display: flex; gap: 6px; align-items: center; color: var(--warn); font-size: 14px; }
.hint.caps .ic { width: 16px; height: 16px; }
.field.is-updating .input { background: linear-gradient(100deg, var(--sk) 30%, var(--sk-hi) 50%, var(--sk) 70%) var(--sk); background-size: 300% 100%; animation: sk-shimmer 1s ease-in-out infinite; }
.nav a[aria-current] { color: var(--teal-700); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Galeria stanów */
.gallery-head { padding: 48px 0 8px; }
.gallery-head h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 600; letter-spacing: -0.035em; }
.gallery-head p { color: var(--muted); margin-top: 12px; max-width: 60ch; font-size: 18px; }
.gallery-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.gallery-nav a { padding: 8px 14px; border-radius: 999px; background: var(--surface); text-decoration: none; font-size: 15px; font-weight: 500; }
.gallery-nav a:hover { background: var(--mist); }
.gsec { padding: 48px 0; }
.gsec + .gsec { border-top: 1px solid var(--line); }
.gsec > .wrap > h2 { font-size: clamp(30px, 3.6vw, 42px); }
.gsec > .wrap > p { color: var(--muted); margin-top: 8px; max-width: 64ch; }
.gsec h3.sub { font-size: 20px; margin: 36px 0 0; }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 20px; }
.demo { background: var(--surface); border-radius: var(--r-md); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.demo h3 { font-size: 18px; }
.demo p { font-size: 15px; color: var(--muted); flex: 1; }
.demo .when { font-size: 13px; color: var(--teal-700); font-weight: 500; }
.demo .btn { align-self: flex-start; margin-top: 10px; }
.stack { display: grid; gap: 12px; margin-top: 20px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; align-items: start; }
.preview-frame { background: var(--surface); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 28px); }

@media (max-width: 900px) {
  .shop-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .err-card { grid-template-columns: 1fr; }
  .err-card .pouch-img { max-height: 220px; }
  .err-help { grid-template-columns: 1fr; }
  .two-col, .ty-grid { grid-template-columns: 1fr; }
  .modal-split { grid-template-columns: 1fr; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-side { min-height: 0; padding-top: 180px; }
  .auth-side img { height: 190px; top: 12px; right: 8%; }
  .modal-split .modal-visual { height: 160px; }
  .modal-split .modal-visual img { height: 130%; bottom: -40%; }
}

@media (max-width: 680px) {
  .steps-bar li:not([aria-current]) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .form-grid, .sk-grid2 { grid-template-columns: 1fr; }
  .express { grid-template-columns: 1fr; }
  .toasts { left: 16px; right: 16px; bottom: 16px; width: auto; }
  body[data-page="home"] .toasts { bottom: 88px; }
  .cookie-bar { left: 16px; right: 16px; bottom: 16px; width: auto; }
  .mock-pages { bottom: 132px; }
}

@media (max-width: 520px) {
  .cart-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .line { grid-template-columns: 64px 1fr; }
  .line-img { width: 64px; height: 76px; }
  .line-gift { width: 64px; height: 56px; }
  .line-price { grid-column: 2; grid-row: 2; text-align: left; display: flex; gap: 8px; align-items: baseline; }
  .line-price s { display: inline; }
  .coupon-row { flex-direction: column; }
  .socials a { width: 44px; height: 44px; }
}
body:not([data-state]) [data-when] { display: none; }
