/* Fonty (OFL, lokalnie – bez łączenia z Google) */
@font-face { font-family: "Bodoni Moda"; font-weight: 400; font-display: swap; src: url(../fonts/bodoni-moda-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bodoni Moda"; font-weight: 400; font-display: swap; src: url(../fonts/bodoni-moda-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bodoni Moda"; font-weight: 500; font-display: swap; src: url(../fonts/bodoni-moda-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bodoni Moda"; font-weight: 500; font-display: swap; src: url(../fonts/bodoni-moda-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(../fonts/barlow-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(../fonts/barlow-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url(../fonts/barlow-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url(../fonts/barlow-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(../fonts/barlow-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(../fonts/barlow-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url(../fonts/barlow-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url(../fonts/barlow-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Kolory marki GIERLIK: czerń logo, złoto hasła, jasnoszare tło baneru */
:root {
  --ink: #111111;
  --ink-soft: #4a4a4a;
  --muted: #7a7a7a;
  --line: #e4e2dd;
  --bg: #f0f0f0;
  --surface: #ffffff;
  --soft: #f7f5f0;
  --gold-dark: #8d7446;
  --gold: #b09860;
  --gold-light: #d8c990;
  --gold-text: #7a6236;
  --gold-gradient: linear-gradient(90deg, #8d7446 0%, #b09860 35%, #d8c990 60%, #b09860 80%, #8d7446 100%);
  --sale: #a33b2b;
  --ok: #2f6b3f;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 8px 24px rgba(0, 0, 0, .06);
  --serif: "Bodoni Moda", Didot, "Times New Roman", serif;
  --sans: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--sans); color: var(--ink); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-text); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 500; }
h1, h2 { font-family: var(--serif); }
h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h2 { font-size: 1.5rem; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); font-size: .9rem; }
.gold-text { background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Pasek kontaktowy */
.topbar { background: var(--ink); color: #cfcfcf; font-size: .85rem; letter-spacing: .02em; }
.topbar .container { display: flex; gap: 1.5rem; align-items: center; min-height: 36px; flex-wrap: wrap; }
.topbar a { color: #cfcfcf; text-decoration: none; }
.topbar a:hover { color: var(--gold-light); }
.topbar .fb { margin-left: auto; }
@media (max-width: 760px) { .topbar .addr, .topbar .mail { display: none; } }

/* Nagłówek */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .container { display: flex; align-items: center; gap: 2rem; min-height: 88px; }
.logo { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; align-items: center; line-height: 1; flex-shrink: 0; }
.logo:hover { color: var(--ink); }
.logo-name { font-family: var(--serif); font-size: 2.35rem; letter-spacing: .02em; }
.logo-tag { font-family: var(--sans); font-weight: 700; font-size: .56rem; letter-spacing: .32em; margin-top: .35rem; padding-left: .32em; white-space: nowrap; }
.header-search { flex: 1; max-width: 560px; display: flex; }
.header-search input { flex: 1; min-width: 0; border-radius: var(--radius) 0 0 var(--radius); border-right: 0; }
.header-search .btn { border-radius: 0 var(--radius) var(--radius) 0; }
.header-search { position: relative; }
.search-suggest { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 28px rgba(0, 0, 0, .12); overflow: hidden; }
.suggest-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .5rem .75rem; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.suggest-item:hover, .suggest-item[aria-selected="true"], .suggest-all:hover, .suggest-all[aria-selected="true"] { background: var(--soft); }
.suggest-thumb { width: 48px; border-radius: 6px; }
.suggest-thumb .ph { font-size: 1.4rem; }
.suggest-thumb .sale { display: none; }
.suggest-name { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; font-size: .95rem; }
.suggest-price { font-weight: 700; white-space: nowrap; text-align: right; }
.suggest-price small { display: block; font-weight: 400; color: var(--muted); font-size: .75rem; }
.suggest-all { display: block; padding: .6rem .75rem; text-align: center; font-weight: 600; color: var(--gold-text); text-decoration: none; }
.suggest-empty { margin: 0; padding: .75rem; color: var(--muted); }
.cart-link { margin-left: auto; position: relative; display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); font-weight: 600; padding: .6rem 1rem; border: 1px solid var(--ink); border-radius: var(--radius); white-space: nowrap; }
.cart-link:hover { background: var(--ink); color: #fff; }
.cart-count { background: var(--gold); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.cart-count[data-n="0"] { background: var(--line); color: var(--muted); }
@media (max-width: 760px) {
  .site-header { position: static; }
  .site-header .container { flex-wrap: wrap; gap: .75rem 1rem; padding-top: .75rem; padding-bottom: .75rem; min-height: 0; }
  .logo-name { font-size: 1.9rem; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
}

/* Baner jak okładka na Facebooku */
.hero { background: var(--bg); border-bottom: 1px solid var(--line); text-align: center; padding: 3.25rem 16px 3rem; }
.hero-tag { font-weight: 700; letter-spacing: .35em; font-size: clamp(1.1rem, 3.6vw, 2.6rem); text-transform: uppercase; margin: 0 0 1.1rem; padding-left: .35em; line-height: 1.2; }
.hero p:not(.hero-tag) { color: var(--ink-soft); max-width: 52ch; margin: 0 auto 1.5rem; font-size: 1.05rem; }
.hero-cats { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.hero-cats a { background: var(--surface); color: var(--ink); text-decoration: none; padding: .55rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; }
.hero-cats a:hover { border-color: var(--gold); color: var(--gold-text); }

/* Układ: drzewo kategorii + kontakt po lewej, treść po prawej */
.shop-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); grid-template-rows: auto auto 1fr; grid-template-areas: "tree main" "contact main" "info main"; gap: 1.5rem 2rem; padding-top: 1.75rem; padding-bottom: 3rem; align-items: start; }
.shop-layout > .tree-box { grid-area: tree; }
.shop-layout > .contact-box { grid-area: contact; }
.shop-layout > .info-box { grid-area: info; }
.shop-layout > .shop-main { grid-area: main; min-width: 0; }
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "tree" "main" "contact" "info"; padding-top: 1rem; }
}

.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.side-box > h2, .tree-box > summary { font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin: 0; padding: .9rem 1rem; border-bottom: 1px solid var(--line); position: relative; }
.side-box > h2::after, .tree-box > summary::after { content: ""; position: absolute; left: 1rem; bottom: -1px; width: 40px; height: 2px; background: var(--gold-gradient); }
.tree-box > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.tree-box > summary::-webkit-details-marker { display: none; }
.tree-box > summary .chev { transition: transform .15s; }
.tree-box[open] > summary .chev { transform: rotate(180deg); }
@media (min-width: 901px) { .tree-box > summary { pointer-events: none; } .tree-box > summary .chev { display: none; } }

.tree { list-style: none; margin: 0; padding: .4rem 0; font-size: .95rem; position: relative; }
@media (min-width: 901px) { .tree { max-height: min(60vh, 560px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; } }
.tree ul { list-style: none; margin: 0; padding: 0 0 0 .9rem; border-left: 1px solid var(--line); margin-left: 1.15rem; }
.tree li { margin: 0; }
.tree-row { display: flex; align-items: flex-start; }
.tree-toggle { flex: 0 0 28px; height: 30px; border: 0; background: none; cursor: pointer; color: var(--muted); font-size: .8rem; display: grid; place-items: center; transition: transform .15s; }
.tree-toggle[aria-expanded="true"] { transform: rotate(90deg); color: var(--gold-text); }
.tree-spacer { flex: 0 0 28px; }
.tree a { flex: 1; display: block; padding: .3rem .75rem .3rem 0; text-decoration: none; color: var(--ink-soft); line-height: 1.35; }
.tree > li > .tree-row a { font-weight: 600; color: var(--ink); }
.tree a:hover { color: var(--gold-text); }
.tree a.active { color: var(--gold-text); font-weight: 700; }
.tree-all { padding: .6rem 1rem .2rem 1.75rem; display: block; text-decoration: none; color: var(--ink-soft); font-size: .95rem; }

.contact-box { padding-bottom: 1rem; }
.contact-box .brand { text-align: center; padding: 1.25rem 1rem .75rem; }
.contact-box .brand .logo-name { font-size: 1.8rem; }
.contact-box .brand .logo-tag { font-size: .48rem; }
.contact-list { list-style: none; margin: 0; padding: 0 1rem; display: grid; gap: .65rem; font-size: .95rem; }
.contact-list li { display: grid; grid-template-columns: 22px 1fr; gap: .5rem; align-items: start; }
.contact-list .ico { color: var(--gold); text-align: center; }
.contact-list a { text-decoration: none; word-break: break-word; }
.hours { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hours td { padding: .1rem 0; }
.hours td:last-child { text-align: right; font-weight: 600; }
.contact-box .map-link { display: block; margin: 1rem 1rem 0; text-align: center; }

/* Lista produktów */
.breadcrumbs { font-size: .88rem; color: var(--muted); margin: 0 0 .75rem; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs:empty { display: none; }
.shop-bar { display: flex; gap: 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: .9rem; }
.shop-bar h1 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.chips:empty { display: none; }
.chip { border: 1px solid var(--line); background: var(--surface); padding: .35rem .85rem; border-radius: 999px; text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .9rem; }
.chip:hover { border-color: var(--gold); color: var(--gold-text); }
.filters { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.25rem; }
.filters label { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9rem; }
.filters select { width: auto; margin: 0; padding: .4rem .7rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
@media (max-width: 520px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
.card:hover { box-shadow: var(--shadow); border-color: #d6d1c4; }
.card a.card-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; flex: 1; }
.card-body { padding: .8rem .9rem .9rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.card-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-text); font-weight: 600; }
.card-title { font-weight: 500; font-size: .95rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .add-btn, .card .ask-btn { margin: 0 .9rem .9rem; }

.thumb { aspect-ratio: 1; background: var(--soft); position: relative; display: grid; place-items: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.has-img { background: #fff; }
.thumb.has-img img { object-fit: contain; padding: 8%; }
.thumb .ph { font-size: 3rem; opacity: .7; }
.sale { position: absolute; top: .6rem; left: .6rem; background: var(--sale); color: #fff; font-size: .75rem; font-weight: 700; padding: .2rem .5rem; border-radius: 2px; }

.price { font-weight: 700; font-size: 1.1rem; }
.price del { color: var(--muted); font-weight: 400; font-size: .85em; margin-left: .35rem; }
.price.sale-price { color: var(--sale); }
.stock-low { color: var(--sale); font-size: .85rem; font-weight: 600; }
.stock-out { color: var(--muted); font-size: .85rem; font-weight: 600; }
.stock-ok { color: var(--ok); font-size: .9rem; font-weight: 600; }

.pagination { display: flex; gap: .35rem; justify-content: center; flex-wrap: wrap; margin: 0 0 1rem; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 .6rem; display: grid; place-items: center; border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.pagination a { background: var(--surface); border: 1px solid var(--line); }
.pagination a:hover { border-color: var(--gold); color: var(--gold-text); }
.pagination .current { background: var(--ink); color: #fff; }
.pagination .gap { color: var(--muted); min-width: 20px; }

/* Przyciski i formularze */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-weight: 600; letter-spacing: .03em; padding: .7rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; text-decoration: none; transition: background .15s, color .15s; }
.btn:hover { background: #333; color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-accent { background: var(--gold-gradient); background-size: 200% 100%; border-color: var(--gold-dark); color: var(--ink); }
.btn-accent:hover { background-position: 100% 0; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-small { padding: .45rem .8rem; font-size: .9rem; }
.btn-block { width: 100%; }
input, select, textarea { font: inherit; padding: .65rem .8rem; border: 1px solid #cfccc4; border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold-light); border-color: var(--gold); }
label { display: block; font-weight: 600; font-size: .9rem; }
label > input, label > select, label > textarea { margin-top: .3rem; font-weight: 400; }
.field-hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.point-picker { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.point-picked { flex: 1 1 220px; border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .9rem; background: var(--soft); font-size: .92rem; line-height: 1.45; }
.point-picked .alert { display: block; margin: 0; }

/* Strona produktu */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.product .thumb { border: 1px solid var(--line); }
.product .thumb .ph { font-size: 6rem; }
.product h1 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.product .price { font-size: 1.8rem; margin: .5rem 0 1rem; }
.product-desc { color: var(--ink-soft); white-space: pre-line; }
.buy-row { display: flex; gap: .75rem; margin: 1.25rem 0; align-items: stretch; }
.buy-row input { width: 90px; text-align: center; }
.inquiry { margin: 1.25rem 0; }
.inquiry > .field-hint { margin: .5rem 0 0; }
.inquiry-form { margin-top: .5rem; padding: 1rem; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: .75rem; }
.inquiry-form .form-msg:empty { display: none; }
.inquiry-form .form-msg .alert { margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ask-btn { text-align: center; text-decoration: none; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: .5rem; margin-top: .75rem; }
.gallery button { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px; background: #fff; cursor: pointer; aspect-ratio: 1; }
.gallery button.active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.gallery img { width: 100%; height: 100%; object-fit: contain; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .92rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }
@media (max-width: 1100px) { .product { grid-template-columns: 1fr; } }

/* Koszyk i zamówienie */
.page-title { margin: 2rem 0 1.25rem; }
.layout-2 { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; margin-bottom: 3rem; }
@media (max-width: 900px) { .layout-2 { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.panel + .panel { margin-top: 1rem; }
.panel h2 { font-size: 1.25rem; }
.summary { position: sticky; top: 110px; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; }
.summary-row.total { font-weight: 700; font-size: 1.2rem; border-top: 2px solid var(--ink); margin-top: .5rem; padding-top: .75rem; }
.summary .btn { margin-top: 1rem; }

.cart-item { display: grid; grid-template-columns: 80px 1fr auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-item:first-child { padding-top: 0; }
.cart-item .thumb .ph { font-size: 2rem; }
.cart-item-name { font-weight: 600; text-decoration: none; }
.cart-item-meta { color: var(--muted); font-size: .9rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid #cfccc4; border-radius: var(--radius); overflow: hidden; margin-top: .4rem; }
.qty button { border: 0; background: var(--soft); width: 34px; height: 34px; font-size: 1.1rem; cursor: pointer; color: var(--ink); }
.qty span { min-width: 40px; text-align: center; font-weight: 700; }
.cart-item-right { text-align: right; }
.remove { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: .85rem; text-decoration: underline; margin-top: .4rem; padding: 0; }
@media (max-width: 520px) { .cart-item { grid-template-columns: 64px 1fr; } .cart-item-right { grid-column: 2; text-align: left; } }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }
.options { display: grid; gap: .5rem; }
.option { display: flex; align-items: center; gap: .75rem; border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; cursor: pointer; font-weight: 600; }
.option:has(input:checked) { border-color: var(--gold); background: var(--soft); }
.option input { width: auto; margin: 0; accent-color: var(--ink); }
.option .option-price { margin-left: auto; font-weight: 700; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.check input { width: auto; margin-top: .3rem; accent-color: var(--ink); }
.payu-note { display: flex; gap: .6rem; align-items: center; color: var(--ink-soft); font-size: .9rem; }
.payu-badge { background: #a6c307; color: #fff; font-weight: 900; padding: .15rem .45rem; border-radius: 3px; letter-spacing: .02em; }

.alert { padding: .8rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.alert-error { background: #fbeeec; color: var(--sale); }
.alert-ok { background: #edf5ef; color: var(--ok); }
.alert-info { background: var(--soft); color: var(--gold-text); border-left: 3px solid var(--gold); }
.pickup-info { margin: 1rem 0 0; line-height: 1.5; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }
.empty-state .big { font-size: 3rem; }
.loading { color: var(--muted); padding: 2rem 0; text-align: center; }

.status-hero { text-align: center; padding: 2.5rem 1rem 1.5rem; }
.status-hero .big { font-size: 3.5rem; }
.order-lines { list-style: none; padding: 0; margin: 0; }
.order-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--line); }

/* Teksty prawne */
.prose { max-width: 760px; margin: 2rem auto 3rem; background: var(--surface); padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); }
.prose h2 { margin-top: 1.75rem; font-size: 1.3rem; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: .75rem 1.1rem; border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; transition: .2s; z-index: 50; display: flex; gap: 1rem; align-items: center; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast a { color: var(--gold-light); font-weight: 700; white-space: nowrap; }

/* Stopka */
.site-footer { background: var(--ink); color: #bdbdbd; padding: 2.5rem 0 1.5rem; font-size: .92rem; border-top: 3px solid transparent; border-image: var(--gold-gradient) 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { color: #fff; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; }
.site-footer a { color: #bdbdbd; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.site-footer .logo { color: #fff; align-items: flex-start; }
.site-footer .logo-tag { padding-left: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1rem; color: #8a8a8a; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; } }
#sklep { scroll-margin-top: 100px; }

/* Konto klienta */
.account-link { margin-left: auto; text-decoration: none; font-weight: 600; white-space: nowrap; }
.account-link + .cart-link { margin-left: 0; }
.stack { display: grid; gap: .9rem; }
.stack h2 { margin: 0; }
.narrow { max-width: 440px; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; margin: 2rem 0 3rem; }
@media (max-width: 760px) { .auth-grid { grid-template-columns: 1fr; } }
.google-btn { gap: .6rem; }
.or { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .85rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.account-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 2rem 0 1rem; }
.account-head h1 { margin: 0; }
.account-head p { margin: .25rem 0 0; }
.account-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; overflow-x: auto; overflow-y: hidden; }
.account-tabs button { font: inherit; font-weight: 600; background: none; border: 0; border-bottom: 2px solid transparent; padding: .7rem 1rem; cursor: pointer; color: var(--ink-soft); white-space: nowrap; margin-bottom: -1px; }
.account-tabs button[aria-selected="true"] { color: var(--ink); border-image: var(--gold-gradient) 1; border-bottom: 2px solid; }
main > .container > #account > .panel { margin-bottom: 3rem; }
.orders { display: grid; }
.order-row { display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 1rem; align-items: center; padding: .9rem .25rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.order-row:last-child { border-bottom: 0; }
.order-row:hover { background: var(--soft); }
.order-total { font-size: 1.05rem; }
@media (max-width: 600px) { .order-row { grid-template-columns: 1fr auto; } .order-row > span:nth-child(2) { grid-column: 1; } .order-total { grid-row: 1; grid-column: 2; } }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); }
.danger-zone { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.btn-danger { background: #fff; color: var(--sale); border-color: var(--sale); }
.btn-danger:hover { background: var(--sale); color: #fff; }
@media (max-width: 760px) { .account-link { order: 2; } .cart-link { order: 2; } }

/* Zwroty w koncie klienta */
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--gold-text); text-decoration: underline; cursor: pointer; justify-self: start; }
.order-item { border-bottom: 1px solid var(--line); }
.order-item:last-child { border-bottom: 0; }
.order-item .order-row { border-bottom: 0; }
.order-actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; padding: 0 .25rem .9rem; }
.return-row:hover { background: none; }
.return-note { display: inline-block; margin-top: .3rem; color: var(--sale); font-size: .9rem; }
.badge-zgloszony { background: #fff7e6; border-color: #f0d9a8; }
.badge-odebrany { background: #eef4fb; border-color: #c9dbef; }
.badge-zwrocono { background: #edf5ef; border-color: #bfdcc7; color: var(--ok); }
.badge-odrzucony { background: #fbeeec; border-color: #efc7c0; color: var(--sale); }
.back { margin-bottom: .75rem; }
.return-items { display: grid; border: 1px solid var(--line); border-radius: var(--radius); }
.return-item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); font-weight: 400; }
.return-item:last-child { border-bottom: 0; }
.return-item select { width: auto; flex: none; }
.return-sum { font-size: 1.15rem; margin: 0; }

/* Promocje */
.lowest-price { font-size: .75rem; color: var(--muted); margin-top: .15rem; line-height: 1.3; }
.sale-end { display: inline-block; margin-right: .5rem; font-size: .85rem; font-weight: 600; color: var(--sale); background: #fbeeec; padding: .25rem .6rem; border-radius: var(--radius); margin: -.25rem 0 .75rem; }
.product .lowest-price { font-size: .85rem; margin: -.75rem 0 .75rem; }
.promo-strip { margin-bottom: 2rem; padding: 1rem 1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid; border-image: var(--gold-gradient) 1; }
.promo-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .9rem; }
.promo-head h2 { margin: 0; font-size: 1.5rem; }
.promo-head a { font-weight: 600; font-size: .9rem; }
.promo-nav { margin-left: auto; display: flex; gap: .4rem; }
.promo-arrow { width: 36px; height: 36px; border: 1px solid var(--ink); background: var(--surface); color: var(--ink); font-size: 1.4rem; line-height: 1; border-radius: 50%; cursor: pointer; }
.promo-arrow:hover:not(:disabled) { background: var(--ink); color: #fff; }
.promo-arrow:disabled { opacity: .3; cursor: default; }
.promo-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 1rem) / 4); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.promo-track::-webkit-scrollbar { display: none; }
.promo-track > .card { scroll-snap-align: start; }
.promo-track:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
@media (max-width: 1100px) { .promo-track { grid-auto-columns: calc((100% - 2 * 1rem) / 3); } }
@media (max-width: 700px) { .promo-track { grid-auto-columns: 46%; gap: .6rem; } .promo-strip { padding: .8rem; } .promo-head h2 { font-size: 1.25rem; } }
@media (max-width: 400px) { .promo-nav { display: none; } }
.parcel-note { margin: .75rem 0 0; font-size: .9rem; }

/* Kod rabatowy, paczki */
.discount-row { color: var(--ok); }
.discount-row .link { font-size: .8rem; margin-left: .35rem; }
.code-form { display: grid; grid-template-columns: 1fr auto; gap: .5rem; margin-top: 1rem; }
.code-form input { margin: 0; text-transform: uppercase; }
.code-form .alert { grid-column: 1 / -1; margin: 0; }
.option-price small { display: block; font-weight: 400; font-size: .75rem; color: var(--muted); text-align: right; }

/* Dokument sprzedaży */
.doc-choice { border: 0; padding: 0; margin: 1.25rem 0 0; }
.doc-choice legend { font-weight: 700; margin-bottom: .5rem; padding: 0; }
.options-inline { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
#invoice-fields { margin-top: .9rem; }
.order-docs { padding-top: 0; gap: .5rem .9rem; }
.doc-link { font-weight: 600; white-space: nowrap; }
.footer-company { margin: 0 0 .4rem; font-size: .8rem; opacity: .85; }
[data-company].missing, [data-shop].missing { background: #fff3cd; color: #7a5b00; padding: 0 .25rem; }

/* Bezpieczeństwo produktu (GPSR) */
.safety { margin-top: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem 1rem; background: var(--surface); }
.safety summary { cursor: pointer; font-weight: 700; }
.safety .warnings { list-style: none; padding: .6rem .8rem; margin: .75rem 0; background: #fff6e0; border-left: 3px solid #d9a100; font-size: .9rem; }
.safety .specs { margin-top: .5rem; }
.badge-rk-zgloszona { background: #fff7e6; border-color: #f0d9a8; }
.badge-rk-uznana { background: #eef4fb; border-color: #c9dbef; }
.badge-rk-odrzucona { background: #fbeeec; border-color: #efc7c0; color: var(--sale); }
.badge-rk-zakonczona { background: #edf5ef; border-color: #bfdcc7; color: var(--ok); }
.complaint-text { display: inline-block; margin-top: .3rem; font-size: .9rem; }
.unit-price { font-size: .75rem; color: var(--muted); margin-top: .1rem; }
.product .unit-price { font-size: .9rem; margin: -.6rem 0 .9rem; }

/* Box: płatności i wysyłka */
.info-box { padding-bottom: 1rem; }
.info-box h2 + * { margin-top: .75rem; }
.pay-box { padding: 0 1rem; }
.pay-list { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: .6rem 0; }
.pay-list li { border: 1px solid var(--line); border-radius: 999px; padding: .15rem .6rem; font-size: .8rem; font-weight: 600; }
.pay-box .muted { font-size: .8rem; margin: 0; }
.ship-list { list-style: none; padding: 0 1rem; margin: 0; }
.ship-list li { display: grid; grid-template-columns: 1.5rem 1fr auto; gap: .5rem; align-items: start; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.ship-list li:last-child { border-bottom: 0; }
.ship-list small { display: block; color: var(--muted); font-size: .75rem; }
.ship-notes { padding: 0 1rem 0 2rem; margin: .5rem 0 0; font-size: .8rem; color: var(--ink-soft); }
.ship-notes li { margin-bottom: .25rem; }
.info-box > h2:not(:first-child) { margin-top: 1rem; border-top: 1px solid var(--line); }

/* Wybór płatności przy odbiorze osobistym */
.payment-choice { margin-top: 1.25rem; }
.payment-choice h3 { font-size: 1rem; margin: 0 0 .5rem; }
.payment-choice .field-hint { margin: .5rem 0 0; }

/* Powiadom mnie o dostępności */
.notify-form { margin: 1.25rem 0 0; padding: 1rem; border: 1px solid var(--gold); border-radius: var(--radius); background: var(--soft); display: grid; gap: .5rem; }
.notify-form h2 { font-size: 1.05rem; margin: 0; }
.notify-form .field-hint { margin: 0; }
.notify-form .form-msg:empty { display: none; }
.notify-form .alert { margin: 0; }
.notify-row { display: flex; gap: .5rem; }
.notify-row input { flex: 1; min-width: 0; }
@media (max-width: 480px) { .notify-row { flex-direction: column; } }

/* Ostrzeżenie: PayU w trybie testowym na serwerze */
.test-mode-bar { background: #b42318; color: #fff; text-align: center; font-weight: 600; font-size: .9rem; padding: .5rem 16px; }
