/* ==========================================================================
   BigFoto – komponenty
   ========================================================================== */

/* --- skip link --- */
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--brand); color: var(--brand-contrast); border-radius: var(--radius-sm); font-weight: 600; }
.skip:focus { top: 8px; }

/* --- przyciski --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px; border-radius: var(--radius-pill); font-weight: 700; font-size: var(--fs-3); line-height: 1; border: 2px solid transparent; white-space: nowrap; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease); cursor: pointer; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 18px; height: 18px; }
.btn--cta { background: var(--cta); color: var(--cta-contrast); border-color: var(--cta-border); box-shadow: 0 8px 20px -8px rgba(var(--shadow-color), .45); }
.btn--cta:hover { background: var(--cta-hover); color: var(--cta-contrast); box-shadow: 0 12px 24px -8px rgba(var(--shadow-color), .5); }
.btn--brand { background: var(--brand); color: var(--brand-contrast); }
.btn--brand:hover { background: var(--brand-hover); color: var(--brand-contrast); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn--ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost-light:hover { background: #fff; color: var(--brand); border-color: #fff; }
.btn--soft { background: var(--brand-soft); color: var(--brand); }
.btn--soft:hover { background: var(--brand); color: var(--brand-contrast); }
.btn--light { background: var(--surface); color: var(--text); border-color: var(--surface); }
.btn--light:hover { border-color: var(--text); }
.btn--link { min-height: 0; padding: 0; background: none; color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.btn--link:hover { color: var(--brand-hover); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: var(--fs-2); }
.btn--lg { min-height: 58px; padding: 0 32px; font-size: var(--fs-4); }
.btn--block { width: 100%; }
.btn--icon { padding: 0; width: 50px; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }

/* --- ikonowe przyciski --- */
.icon-btn { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 44px; min-height: 44px; padding: 4px 6px; border-radius: var(--radius-sm); color: inherit; transition: background var(--dur) var(--ease); }
.icon-btn:hover { background: rgba(127,127,127,.12); color: inherit; }
.icon-btn__label { font-size: 11px; font-weight: 500; letter-spacing: .01em; line-height: 1; }
.icon-btn--ghost { border: 1px solid var(--footer-border); color: var(--footer-text); }
.icon-btn--ghost:hover { color: var(--footer-heading); border-color: var(--footer-heading); background: transparent; }
.cart-count { position: absolute; top: 0; right: 2px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--cta); color: var(--cta-contrast); font-family: var(--font-body); font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; border: 2px solid var(--header-bg); box-sizing: content-box; }
.cart-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 30% { transform: scale(1.35); } }

/* --- utility bar --- */
.utility { background: var(--utility-bg); color: var(--utility-text); font-family: var(--font-mono); font-size: var(--fs-0); letter-spacing: .01em; }
.utility__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: var(--utility-h); overflow: hidden; }
.utility__list { display: flex; gap: var(--space-5); }
.utility__list li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.utility__occasion { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.utility__occasion > * { flex: 0 0 auto; }
.utility__occasion strong { font-weight: 500; color: #fff; }
:root[data-scheme="sliwka"] .utility__occasion strong { color: #fff; }
@media (max-width: 1500px) { .utility__hide-md { display: none !important; } }
@media (max-width: 860px) { .utility__occasion { display: none; } .utility__list { gap: var(--space-4); } .utility__list li:nth-child(2) { display: none; } }

/* --- header --- */
.header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); color: var(--header-text); border-bottom: 1px solid var(--header-border); transition: box-shadow var(--dur) var(--ease); }
.header.is-scrolled { box-shadow: var(--shadow-2); }
.header__row { display: flex; align-items: center; gap: var(--space-5); min-height: var(--header-h); }
.header__burger { display: none; }
.header__actions { display: flex; align-items: center; gap: var(--space-1); margin-left: auto; }
.header__creator { margin-right: var(--space-2); }
.header a { color: inherit; }
.logo { display: inline-flex; align-items: baseline; gap: 8px; color: inherit; text-decoration: none; }
.logo__mark { width: 32px; height: 32px; color: var(--cta); --logo-ink: var(--cta-contrast); align-self: center; }
.logo--footer .logo__mark { color: var(--cta); --logo-ink: var(--cta-contrast); }
.logo__word { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.01em; line-height: 1; }
.logo__word-b { color: var(--cta); }
.logo--footer .logo__word-b { color: var(--cta); }
.logo__tld { font-size: 11px; opacity: .7; letter-spacing: .04em; }
.search { flex: 1 1 420px; max-width: 640px; display: flex; align-items: center; height: 48px; border-radius: var(--radius-pill); background: var(--surface); color: var(--text); border: 2px solid transparent; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.search:focus-within { border-color: var(--cta); }
.search__icon { margin-left: 16px; color: var(--text-muted); }
.search__input { flex: 1; min-width: 0; height: 100%; padding: 0 12px; background: none; border: 0; color: inherit; outline: none; }
.search__input::placeholder { color: var(--text-faint); }
.search__btn { height: calc(100% - 8px); margin-right: 4px; padding: 0 18px; background: var(--brand); color: var(--brand-contrast); font-weight: 700; font-size: var(--fs-2); border-radius: var(--radius-pill); }
.search__btn:hover { background: var(--brand-hover); }
@media (max-width: 1024px) {
  .header__burger { display: inline-flex; }
  .search { order: 3; flex-basis: 100%; max-width: none; height: 42px; }
  .header__row { flex-wrap: wrap; row-gap: var(--space-3); padding-block: var(--space-3); min-height: 0; }
  .icon-btn__label, .header__creator span { display: none; }
  .header__creator { padding: 0; width: 40px; }
  .logo__tld { display: none; }
}
@media (max-width: 640px) { .header__actions { gap: 0; } .search__btn { display: none; } }

/* --- nawigacja główna --- */
.nav { background: var(--brand-dark); }
.nav__list { display: flex; align-items: stretch; gap: 2px; }
.nav__item { position: relative; }
.nav__item--end { margin-left: auto; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; height: 36px; margin-block: 7px; padding: 0 14px; border-radius: var(--radius-pill); font-weight: 600; font-size: var(--fs-2); color: inherit; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.nav__link:hover, .nav__item.is-open > .nav__link, .nav__link[aria-current="page"] { background: rgba(255,255,255,.14); color: inherit; }
.nav__link .icon { transition: transform var(--dur) var(--ease); }
.nav__item.is-open > .nav__link .icon { transform: rotate(180deg); }
.nav__link--dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cta); margin-right: 6px; }
@media (max-width: 1024px) { .nav { display: none; } }

/* --- mega menu --- */
.mega { position: absolute; border-radius: 0 0 var(--radius-lg) var(--radius-lg); left: 0; right: 0; top: 100%; z-index: 40; background: var(--surface); color: var(--text); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-2); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur); position: fixed; left: 0; right: 0; top: auto; }
.nav__item--mega { position: static; }
.nav__item.is-open > .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega__grid { display: grid; grid-template-columns: repeat(3, 1fr) 1.4fr 1.4fr; gap: var(--space-6); padding-block: var(--space-6); }
.mega__grid--occasions, .mega__grid--products { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.mega__title { font-family: var(--font-mono); font-size: var(--fs-0); text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: var(--space-3); padding-bottom: var(--space-2); border-bottom: 1px solid var(--border); }
.mega__title--gap { margin-top: var(--space-5); }
.mega__col li + li { margin-top: 6px; }
.mega__col a { color: var(--text); font-size: 15px; display: inline-flex; gap: 8px; align-items: baseline; }
.mega__col a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.mega__featured { display: flex; flex-direction: column; gap: var(--space-3); color: var(--text); border: var(--line-w) solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.mega__featured:hover { border-color: var(--ink); color: var(--text); transform: translateY(-2px); }
.mega__featured img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.mega__featured-body { display: flex; flex-direction: column; gap: 6px; padding: 0 var(--space-4) var(--space-4); }
.mega__featured-name { font-weight: 600; }
.mega__occasion { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); background: var(--brand-soft); border-radius: var(--radius-md); align-self: start; }
.mega__occasion-title { font-family: var(--font-display); font-size: var(--fs-5); font-weight: 700; letter-spacing: -0.01em; }

/* --- drawer (mobile) --- */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: var(--overlay); opacity: 0; transition: opacity var(--dur) var(--ease); }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(88vw, 360px); background: var(--surface); color: var(--text); padding: var(--space-4); overflow-y: auto; transform: translateX(-100%); transition: transform .25s var(--ease); display: flex; flex-direction: column; gap: var(--space-4); z-index: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__list li a { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--border); color: var(--text); font-weight: 600; }
.drawer__meta li a { display: flex; align-items: center; gap: 10px; padding: 10px 4px; color: var(--text-muted); }

/* --- badge, chip, tag --- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--radius-pill); font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.badge--sticker { box-shadow: var(--sticker-sm); transform: rotate(-3deg); border: 2px solid var(--ink); }
.badge--accent { background: var(--accent); color: var(--accent-contrast); }
.badge--soft { background: var(--accent-soft); color: var(--accent-ink); }
.badge--brand { background: var(--brand); color: var(--brand-contrast); }
.badge--neutral { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }
.badge--sale { background: var(--sale); color: #fff; }
.badge--cta { background: var(--cta); color: var(--cta-contrast); }
.badge--success { background: var(--success-soft); color: var(--success); }
.badge--warning { background: var(--warning-soft); color: var(--warning); }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: var(--radius-pill); border: 2px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: var(--fs-2); font-weight: 600; cursor: pointer; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease); }
.chip:hover { border-color: var(--ink); color: var(--text); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-contrast); }
.chip .mono { opacity: .7; }
.chip--sm { min-height: 34px; padding: 0 12px; font-size: var(--fs-1); }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip__x { width: 14px; height: 14px; }

/* --- karty produktów --- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.product-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .product-grid, .product-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .product-grid, .product-grid--3, .product-grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.product-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: var(--line-w) solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: border-color var(--dur) var(--ease), transform .25s var(--ease-bounce), box-shadow var(--dur) var(--ease); }
.product-card:hover, .product-card:focus-within { border-color: var(--ink); transform: translate(-3px, -3px); box-shadow: var(--sticker); }
.product-card__media { position: relative; aspect-ratio: 4/5; background: var(--photo-tile); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.03); }
.product-card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; z-index: 2; }
.product-card__fav { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: var(--surface); color: var(--text); display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--border); transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.product-card__fav .icon { width: 18px; height: 18px; }
.product-card__fav:hover, .product-card__fav.is-active { color: var(--sale); border-color: var(--sale); }
.product-card__fav.is-active .icon { fill: currentColor; }
.product-card__hint { position: absolute; inset: 12px; border: 1.5px dashed var(--brand-contrast); border-radius: 2px; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: var(--fs-0); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(20,26,43,.42); opacity: 0; transition: opacity var(--dur) var(--ease); pointer-events: none; z-index: 1; }
.product-card:hover .product-card__hint { opacity: 1; }
@media (hover: none) { .product-card__hint { display: none; } }
.product-card__body { display: flex; flex-direction: column; gap: 6px; padding: 16px; flex: 1; }
.product-card__name { font-weight: 600; font-size: 15px; line-height: 1.3; color: var(--text); text-wrap: pretty; }
.product-card__name a { color: inherit; }
.product-card__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.product-card__spec { font-family: var(--font-mono); font-size: var(--fs-0); color: var(--text-muted); letter-spacing: .01em; }
.product-card__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; }
.price { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: 0; font-variant-numeric: tabular-nums; color: var(--text); line-height: 1; }
.price__from { font-weight: 500; font-size: var(--fs-1); color: var(--text-muted); margin-right: 3px; }
.price--old { font-weight: 500; color: var(--text-faint); text-decoration: line-through; font-size: var(--fs-2); }
.price--sale { color: var(--sale); }
.lead-time { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: var(--fs-0); color: var(--text-muted); white-space: nowrap; }
.lead-time .icon { width: 14px; height: 14px; }
.product-card__cta { position: relative; z-index: 2; margin-top: 6px; }
.stars { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-1); color: var(--text-muted); }
.stars__row { display: inline-flex; gap: 1px; color: var(--stars); }
.stars__row { color: var(--stars); }
.stars__row .icon { width: 14px; height: 14px; fill: currentColor; }
.stars__row .icon--empty { fill: none; opacity: .45; }
.swatches { display: inline-flex; gap: 6px; }
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--border-strong); display: inline-block; }
.swatch--black { background: #1a1a1a; } .swatch--white { background: #fff; } .swatch--oak { background: #C9A16B; } .swatch--none { background: repeating-linear-gradient(45deg, transparent 0 3px, var(--border-strong) 3px 4px); }

/* --- kafle kategorii (bento) --- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 200px; gap: var(--gutter); }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-5); border-radius: var(--radius-lg); overflow: hidden; background: var(--photo-tile); color: #fff; isolation: isolate; border: var(--line-w) solid transparent; transition: transform .25s var(--ease-bounce), box-shadow var(--dur) var(--ease); }
.tile:hover { transform: translate(-3px, -3px) rotate(-.6deg); box-shadow: var(--sticker); border-color: var(--ink); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(12,14,20,.78) 0%, rgba(12,14,20,.25) 45%, rgba(12,14,20,0) 70%); }
.tile:hover img { transform: scale(1.04); }
.tile__name { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-5); line-height: 1.1; }
.tile__meta { font-family: var(--font-mono); font-size: var(--fs-0); opacity: .9; margin-top: 4px; }
.tile__arrow { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.92); color: #1B2233; display: inline-flex; align-items: center; justify-content: center; opacity: 0; transform: translate(4px, -4px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.tile:hover .tile__arrow { opacity: 1; transform: none; }
.tile--2x2 { grid-column: span 2; grid-row: span 2; } .tile--2x1 { grid-column: span 2; } .tile--1x2 { grid-row: span 2; }
.tile--2x2 .tile__name { font-size: var(--fs-6); }
@media (max-width: 1024px) { .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 170px; } }
@media (max-width: 640px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 12px; } .tile--2x2 { grid-row: span 1; } .tile--1x2 { grid-row: span 1; } .tile--2x2 .tile__name { font-size: var(--fs-5); } }

/* --- kroki --- */
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.step { position: relative; padding: var(--space-5); border: var(--line-w) solid var(--border); border-radius: var(--radius-md); background: var(--surface); display: flex; flex-direction: column; gap: var(--space-3); }
.step__num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--cta); color: var(--cta-contrast); font-family: var(--font-display); font-weight: 800; font-size: 20px; box-shadow: var(--sticker-sm); }
.step__icon { position: absolute; top: var(--space-5); right: var(--space-5); width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.step__icon .icon { width: 22px; height: 22px; }
.step h3 { font-size: var(--fs-5); }
.step p { color: var(--text-muted); font-size: var(--fs-2); }
@media (max-width: 1024px) { .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps-grid { grid-template-columns: 1fr; } }

/* --- opinie --- */
.review-card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); background: var(--surface); border: var(--line-w) solid var(--border); border-radius: var(--radius-md); }
.review-card__text { font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.review-card__meta { display: flex; align-items: center; gap: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--cta); color: var(--cta-contrast); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 15px; flex: 0 0 auto; }
.review-card__who { display: flex; flex-direction: column; font-size: var(--fs-2); }
.review-card__who strong { font-weight: 600; }
.review-card__product { font-family: var(--font-mono); font-size: var(--fs-0); color: var(--text-muted); }

/* --- formularze --- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: var(--fs-2); font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.field__label .mono { font-weight: 400; color: var(--text-muted); }
.field__hint { font-size: var(--fs-1); color: var(--text-muted); }
.field__error { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-1); color: var(--danger); }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 10px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.input.is-invalid { border-color: var(--danger); }
.textarea { min-height: 96px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); flex: 0 0 auto; }
.check--strong { font-weight: 500; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--border); border-radius: var(--radius-pill); height: 48px; overflow: hidden; background: var(--surface); }
.qty button { width: 42px; height: 100%; display: inline-flex; align-items: center; justify-content: center; color: var(--text); }
.qty button:hover { background: var(--surface-2); }
.qty input { width: 48px; height: 100%; text-align: center; border: 0; border-inline: 1px solid var(--border); background: transparent; font-weight: 600; font-variant-numeric: tabular-nums; }
.qty--sm { height: 38px; } .qty--sm button { width: 34px; } .qty--sm input { width: 40px; }
.option-list { display: flex; flex-direction: column; gap: 10px; }
.option { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border: 2px solid var(--border); border-radius: var(--radius-md); background: var(--surface); cursor: pointer; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.option:hover { border-color: var(--text); }
.option.is-active { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: var(--surface); }
.option input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.option__body { display: flex; flex-direction: column; gap: 2px; }
.option__title { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.option__desc { font-size: var(--fs-1); color: var(--text-muted); }
.option__price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.option__price--free { color: var(--success); }
.option__logo { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px solid var(--border); border-radius: var(--radius-xs); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .04em; color: var(--text); background: var(--surface); }

/* --- dropzone + jakość zdjęcia --- */
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 160px; padding: var(--space-5); border: 2px dashed var(--border-strong); border-radius: var(--radius-md); background: var(--surface-2); text-align: center; cursor: pointer; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); --crop-color: var(--brand); }
.dropzone:hover { border-color: var(--brand); background: var(--brand-soft); }
.dropzone .icon--xl { color: var(--brand); }
.dropzone__title { font-weight: 600; }
.dropzone__meta { font-family: var(--font-mono); font-size: var(--fs-0); color: var(--text-muted); }
.dropzone__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.upload-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.upload-row img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-xs); }
.upload-row__body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.upload-row__name { font-family: var(--font-mono); font-size: var(--fs-0); color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quality { display: flex; flex-direction: column; gap: 6px; }
.quality__bar { display: flex; gap: 3px; height: 6px; }
.quality__bar span { flex: 1; border-radius: 2px; background: var(--border); }
.quality__bar span.is-on { background: var(--success); }
.quality__bar.is-warn span.is-on { background: var(--warning); }
.quality__text { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-1); color: var(--success); font-weight: 500; }
.quality__text .icon { width: 16px; height: 16px; }
.quality__text--warn { color: var(--warning); }

/* --- chipy formatów w skali --- */
.format-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.format-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; border: 2px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; text-align: left; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); color: var(--text); }
.format-chip:hover { border-color: var(--text); }
.format-chip.is-active { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.format-chip__shape { display: block; height: 40px; width: 100%; display: flex; align-items: flex-end; }
.format-chip__shape i { display: block; background: var(--brand-soft); border: 1px solid var(--brand); border-radius: 1px; }
.format-chip.is-active .format-chip__shape i { background: var(--brand); }
.format-chip__size { font-family: var(--font-mono); font-size: var(--fs-1); font-weight: 500; }
.format-chip__price { font-size: var(--fs-1); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.format-chip__warn { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--warning); font-weight: 500; }
.format-chip__warn .icon { width: 13px; height: 13px; }

/* --- swatche wykończenia --- */
.finish-list { display: flex; gap: 10px; flex-wrap: wrap; }
.finish { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 2px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); cursor: pointer; font-size: var(--fs-2); font-weight: 500; color: var(--text); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.finish:hover { border-color: var(--text); }
.finish.is-active { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.finish .swatch { width: 24px; height: 24px; border-radius: var(--radius-xs); }
.finish .mono { color: var(--text-muted); }

/* --- zakładki, akordeon --- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tabs [role="tab"] { padding: 12px 16px; font-weight: 600; font-size: var(--fs-2); color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs [role="tab"]:hover { color: var(--text); }
.tabs [role="tab"][aria-selected="true"] { color: var(--text); border-bottom-color: var(--brand); }
[role="tabpanel"] { padding-top: var(--space-5); }
.accordion__item { border-top: 1px solid var(--border); }
.accordion__item:last-child { border-bottom: 1px solid var(--border); }
.accordion__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 0; font-weight: 600; text-align: left; color: var(--text); }
.accordion__head .icon { transition: transform var(--dur) var(--ease); }
.accordion__item.is-open .accordion__head .icon { transform: rotate(180deg); }
.accordion__body { display: none; padding-bottom: 16px; color: var(--text-muted); font-size: var(--fs-2); }
.accordion__item.is-open .accordion__body { display: block; }

/* --- breadcrumbs, paginacja, toolbar --- */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--fs-1); color: var(--text-muted); padding-block: var(--space-4); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs .icon { width: 14px; height: 14px; opacity: .6; }
.breadcrumbs [aria-current] { color: var(--text); font-weight: 500; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid transparent; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.pagination a:hover { border-color: var(--border-strong); }
.pagination [aria-current] { background: var(--brand); color: var(--brand-contrast); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; padding-block: var(--space-3); border-bottom: 1px solid var(--border); }
.toolbar__count { font-size: var(--fs-2); color: var(--text-muted); }
.toolbar__count strong { color: var(--text); font-weight: 600; }
.toolbar__sort { display: flex; align-items: center; gap: 10px; font-size: var(--fs-2); }
.toolbar__sort .select { min-height: 40px; width: auto; padding-block: 6px; }
.view-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.view-toggle button { width: 40px; height: 38px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-muted); }
.view-toggle button.is-active { background: var(--surface-2); color: var(--text); }

/* --- filtry --- */
.filters { display: flex; flex-direction: column; gap: var(--space-2); }
.filter-group { border-top: 1px solid var(--border); padding-block: var(--space-3); }
.filter-group__head { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 6px 0; font-weight: 600; font-size: var(--fs-2); color: var(--text); text-align: left; }
.filter-group__body { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.filter-group__body .check { font-size: var(--fs-2); }
.filter-group__body .check .mono { margin-left: auto; color: var(--text-faint); }
.range { display: flex; flex-direction: column; gap: 8px; }
.range__track { position: relative; height: 4px; background: var(--border); border-radius: 2px; margin: 12px 8px; }
.range__fill { position: absolute; left: 12%; right: 38%; top: 0; bottom: 0; background: var(--brand); border-radius: 2px; }
.range__knob { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); transform: translate(-50%, -50%); }
.range__vals { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: var(--fs-0); color: var(--text-muted); }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-block: var(--space-3); }
.active-filters .btn--link { font-size: var(--fs-2); }

/* --- koszyk / podsumowanie --- */
.summary { position: sticky; top: calc(var(--header-h) + var(--nav-h) + 24px); display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5); background: var(--surface); border: var(--line-w) solid var(--border); border-radius: var(--radius-md); }
.summary__row { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-2); }
.summary__row--total { font-size: var(--fs-4); font-weight: 700; padding-top: var(--space-3); border-top: 1px solid var(--border); }
.summary__row .muted { font-size: var(--fs-1); }
.ship-bar { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: var(--success-soft); border-radius: var(--radius-md); font-size: var(--fs-2); color: var(--success); }
.ship-bar__track { height: 6px; background: rgba(0,0,0,.08); border-radius: 3px; overflow: hidden; }
.ship-bar__fill { height: 100%; width: 0; background: var(--success); border-radius: 3px; transition: width .6s var(--ease); }
.ship-bar strong { font-weight: 600; }
.promo { display: flex; gap: 8px; }
.promo .input { min-height: 44px; }
.promo .btn { min-height: 44px; }

/* --- powiadomienia --- */
.notice { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--radius-md); font-size: var(--fs-2); border: 1px solid transparent; }
.notice .icon { flex: 0 0 auto; margin-top: 1px; }
.notice--info { background: var(--brand-soft); color: var(--text); border-color: transparent; }
.notice--info .icon { color: var(--brand); }
.notice--success { background: var(--success-soft); color: var(--success); }
.notice--warning { background: var(--warning-soft); color: var(--warning); }
.notice--danger { background: var(--danger-soft); color: var(--danger); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; background: var(--ink); color: #fff; border-radius: var(--radius-pill); box-shadow: var(--shadow-3); font-weight: 500; font-size: var(--fs-2); transform: translate(-50%, 20px); opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s; max-width: min(92vw, 520px); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); visibility: visible; transition-delay: 0s; }
.toast .icon { color: var(--success); }
.toast .icon { color: var(--mint); }

/* --- listy cech (USP) --- */
.usp-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.usp { display: flex; align-items: flex-start; gap: 12px; }
.usp .icon { width: 24px; height: 24px; color: var(--brand); flex: 0 0 auto; stroke-width: 1.75; }
.usp__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--brand-soft); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.usp strong { display: block; font-weight: 600; font-size: 15px; }
.usp span { font-size: var(--fs-1); color: var(--text-muted); }
@media (max-width: 900px) { .usp-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.spec-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; font-size: var(--fs-2); }
.spec-list dt { font-family: var(--font-mono); font-size: var(--fs-0); color: var(--text-muted); padding-top: 3px; }
.spec-list dd { margin: 0; }
.check-list { display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-2); }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { width: 18px; height: 18px; color: var(--success); flex: 0 0 auto; margin-top: 2px; }

/* --- stopka --- */
.footer { background: var(--footer-bg); color: var(--footer-text); margin-top: calc(var(--space-9) + 20px); }
.footer a { color: inherit; }
.footer a:hover { color: var(--footer-heading); text-decoration: underline; text-underline-offset: 3px; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr 1.4fr; gap: var(--space-6); padding-block: var(--space-8) var(--space-6); }
.footer__brand { display: flex; flex-direction: column; gap: var(--space-4); }
.logo--footer { color: var(--footer-heading); }
.footer__tagline { font-size: var(--fs-2); max-width: 32ch; }
.footer__contact { display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-2); }
.footer__contact li { display: flex; align-items: center; gap: 8px; }
.footer__social { display: flex; gap: 8px; }
.footer__heading { font-family: var(--font-display); font-size: var(--fs-4); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; color: var(--footer-heading); margin-bottom: var(--space-3); }
.footer__col ul { display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-2); }
.footer__spec li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; font-size: var(--fs-1); }
.footer__spec .mono { color: var(--footer-heading); }
.footer__text { font-size: var(--fs-2); margin-bottom: var(--space-3); }
.newsletter { display: flex; gap: 8px; }
.newsletter .input { min-height: 48px; background: rgba(255,255,255,.08); border-color: var(--footer-border); color: var(--footer-heading); border-radius: var(--radius-pill); }
.newsletter .input::placeholder { color: var(--footer-text); opacity: .7; }
.footer__legal { font-size: 11px; opacity: .7; margin-top: 8px; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; padding-block: var(--space-4); border-top: 1px solid var(--footer-border); font-size: var(--fs-1); }
.pay { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pay__item { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; }
.pay__badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 1px solid var(--footer-border); border-radius: var(--radius-xs); font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--footer-heading); }
@media (max-width: 1024px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } .newsletter { flex-direction: column; } }

/* --- przełącznik schematów (element mockupu) --- */
.scheme-switch { position: fixed; left: 16px; bottom: 16px; z-index: 80; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; background: var(--surface); color: var(--text); border: 2px solid var(--ink); border-radius: var(--radius-pill); box-shadow: var(--sticker-sm); }
.scheme-switch__label { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.scheme-switch__opts { display: inline-flex; gap: 6px; }
.scheme-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; padding: 0; position: relative; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); overflow: hidden; }
.scheme-dot::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--dot-a) 50%, var(--dot-b) 50%); }
.scheme-dot:hover { transform: scale(1.1); }
.scheme-dot.is-active { border-color: var(--text); }
.scheme-dot--ocean { --dot-a: #0B7A94; --dot-b: #FFC72C; }
.scheme-dot--grafit { --dot-a: #1D1C1A; --dot-b: #D9A441; }
.scheme-dot--atrament { --dot-a: #1F2D52; --dot-b: #FF6B4A; }
.scheme-dot--galeria { --dot-a: #141618; --dot-b: #F0B34A; }
.scheme-dot--butelka { --dot-a: #1E4C3B; --dot-b: #E7B94D; }
.scheme-dot--sliwka { --dot-a: #5B2A5C; --dot-b: #FFB067; }
.scheme-switch__more { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: var(--text-muted); }
.scheme-switch__more:hover { background: var(--surface-2); color: var(--text); }
@media (max-width: 1024px) { .scheme-switch { bottom: 88px; } }
@media (max-width: 640px) { .scheme-switch__label { display: none; } .scheme-switch { left: 12px; padding: 6px 8px; } }

/* --- mockupy produktów (CSS) – to samo zdjęcie na różnych nośnikach --- */
.mock { position: relative; --photo: url("../img/photo-source.webp"); }
.mock-canvas { position: relative; background: var(--photo) center / cover; box-shadow: 6px 6px 0 -1px rgba(0,0,0,.28), 0 12px 24px rgba(0,0,0,.18); }
.mock-canvas::before { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.mock-cover { position: relative; background: var(--photo) center / cover; border: 8px solid #141418; box-shadow: 0 12px 24px rgba(0,0,0,.18); overflow: hidden; color: #fff; container-type: inline-size; }
.mock-cover--white { border-color: #FFFFFF; }
.mock-cover__mast { position: absolute; top: 5cqw; left: 0; right: 0; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 17cqw; letter-spacing: .08em; line-height: 1; text-shadow: 0 1px 8px rgba(0,0,0,.4); font-variation-settings: "opsz" 96, "wdth" 80; }
.mock-cover__lines { position: absolute; left: 7cqw; right: 7cqw; bottom: 7cqw; display: flex; flex-direction: column; gap: 2cqw; font-family: var(--font-mono); font-size: 5cqw; text-transform: uppercase; letter-spacing: .08em; text-shadow: 0 1px 6px rgba(0,0,0,.6); line-height: 1.2; }
.mock-cover__lines b { font-family: var(--font-display); font-size: 11cqw; letter-spacing: -0.01em; text-transform: none; font-weight: 700; line-height: 1; }
.mock-cover__bar { position: absolute; right: 7cqw; bottom: 7cqw; width: 18cqw; height: 9cqw; background: #fff; opacity: .95; -webkit-mask: repeating-linear-gradient(90deg, #000 0 1px, transparent 1px 3px, #000 3px 4px, transparent 4px 6px); mask: repeating-linear-gradient(90deg, #000 0 1px, transparent 1px 3px, #000 3px 4px, transparent 4px 6px); }
.mock-mug { position: relative; width: 100%; aspect-ratio: 1 / 1; }
.mock-mug__body { position: absolute; left: 6%; top: 14%; width: 66%; height: 72%; background: #f4f4f2; border-radius: 6% 6% 22% 22% / 6% 6% 14% 14%; box-shadow: inset -18px 0 24px -14px rgba(0,0,0,.28), inset 12px 0 20px -14px rgba(0,0,0,.15), 0 14px 22px -8px rgba(0,0,0,.35); overflow: hidden; }
.mock-mug__print { position: absolute; left: 14%; top: 14%; width: 74%; height: 62%; background: var(--photo) center / cover; border-radius: 3px; }
.mock-mug__print::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(255,255,255,.08) 40%, rgba(0,0,0,.22)); }
.mock-mug__handle { position: absolute; left: 66%; top: 26%; width: 30%; height: 44%; border: 9% solid #efefec; border-left: 0; border-radius: 0 50% 50% 0 / 0 50% 50% 0; box-shadow: 4px 6px 12px -6px rgba(0,0,0,.35); }
.mock-pillow { position: relative; aspect-ratio: 1; background: #f6f5f2; border-radius: 12% / 12%; box-shadow: inset 0 0 40px rgba(0,0,0,.08), 0 14px 26px -10px rgba(0,0,0,.3); overflow: hidden; }
.mock-pillow::before { content: ""; position: absolute; inset: 14%; background: var(--photo) center / cover; border-radius: 3px; }
.mock-pillow::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0,0,0,.14) 100%); }
.mock-glass { position: relative; aspect-ratio: 3/4; background: linear-gradient(160deg, rgba(255,255,255,.35), rgba(255,255,255,.05)), var(--photo) center / cover; border: 1px solid rgba(255,255,255,.6); box-shadow: 0 16px 30px -10px rgba(0,0,0,.4); overflow: hidden; }
.photo-source { position: relative; background: #fff; padding: 8px 8px 30px; box-shadow: 0 10px 24px -8px rgba(0,0,0,.35); border-radius: 6px; --crop-color: var(--text); }
.photo-source__img { aspect-ratio: 4/3; background: var(--photo) center / cover; }
.photo-source__cap { position: absolute; left: 8px; right: 8px; bottom: 8px; font-family: var(--font-mono); font-size: 10px; color: #444; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.placeholder { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(127,127,127,.06) 10px 11px), var(--surface-2); border: 2px dashed var(--border-strong); border-radius: var(--radius-sm); color: var(--text-muted); font-family: var(--font-mono); font-size: var(--fs-0); text-transform: uppercase; letter-spacing: .08em; text-align: center; --crop-color: var(--text-muted); }
.placeholder .icon { width: 22px; height: 22px; }

/* Logo jako obraz — kwadratowy JPG klienta dostaje tło marki i zaokrąglenie,
   inaczej na jasnym nagłówku widać jego białe obrzeże. */
.logo__img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--brand); flex: none; }
.logo--footer .logo__img { width: 40px; height: 40px; }
/* Logo wgrane przez klienta pokazujemy samodzielnie, bez napisu obok.
   Zachowujemy proporcje oryginału (600×580), stąd width:auto. */
.logo__img--solo { width: auto; height: 44px; max-width: 168px; border-radius: 8px; background: transparent; }
.logo--footer .logo__img--solo { height: 40px; }

/* Pole newslettera dostawało resztkę miejsca po przycisku i mieściło 8 znaków. */
.newsletter { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.newsletter .input { flex: 1 1 190px; min-width: 0; }
.newsletter .btn { flex: 0 0 auto; }

/* Wyszukiwarka dokładnie na środku nagłówka.
   Flex tego nie da: logo i przyciski mają różną szerokość, więc pole zawsze
   uciekało w bok. Siatka 1fr / auto / 1fr wyrównuje to niezależnie od tego,
   jak szerokie jest logo i ile ikon stoi po prawej. Poniżej 1024 px wracamy
   do zawijanego flexa, bo tam wyszukiwarka i tak idzie do własnego wiersza. */
@media (min-width: 1025px) {
  /* Środkowa kolumna musi mieć własny wymiar — przy `auto` zwężała się
     do zawartości i placeholder był ucinany. */
  .header__row { display: grid; grid-template-columns: 1fr minmax(360px, 620px) 1fr; align-items: center; }
  .header__row > .logo { justify-self: start; }
  .header__row > .search { justify-self: stretch; width: 100%; flex-basis: auto; max-width: none; }
  .header__row > .header__actions { justify-self: end; margin-left: 0; }
}
/* Wyższa specyficzność niż `.woocommerce img` — na wypadek, gdyby jakaś
   wtyczka wczytała własny arkusz sklepu mimo wyłączenia domyślnych. */
.logo .logo__img--solo { width: auto; height: 44px; max-width: 168px; }
.logo--footer .logo__img--solo { height: 40px; }
