/*
Theme Name: Webben
Theme URI: https://webben.pl
Author: Webben
Description: Autorski motyw sklepu Webben (słodycze i zabawki) — WooCommerce, kierunek wizualny "pastelowa 2" (kartkowy/półkowy).
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: webben
*/

@font-face {
  font-family: "Quicksand";
  font-weight: 700;
  font-display: swap;
  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;
  src: url("assets/fonts/quicksand-700-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Quicksand";
  font-weight: 700;
  font-display: swap;
  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;
  src: url("assets/fonts/quicksand-700-ext.woff2") format("woff2");
}
@font-face {
  font-family: "Mulish";
  font-weight: 400;
  font-display: swap;
  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;
  src: url("assets/fonts/mulish-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Mulish";
  font-weight: 400;
  font-display: swap;
  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;
  src: url("assets/fonts/mulish-400-ext.woff2") format("woff2");
}
@font-face {
  font-family: "Mulish";
  font-weight: 700;
  font-display: swap;
  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;
  src: url("assets/fonts/mulish-700-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Mulish";
  font-weight: 700;
  font-display: swap;
  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;
  src: url("assets/fonts/mulish-700-ext.woff2") format("woff2");
}
@font-face {
  font-family: "Mulish";
  font-weight: 800;
  font-display: swap;
  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;
  src: url("assets/fonts/mulish-800-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Mulish";
  font-weight: 800;
  font-display: swap;
  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;
  src: url("assets/fonts/mulish-800-ext.woff2") format("woff2");
}

:root {
  --paper: #fdf4ec;
  --paper-deep: #f7e7da;
  --card: #fffdf9;
  --ink: #4b3b47;
  --ink-soft: #756472;
  --lavender: #b9a6e0;
  --lavender-deep: #7a679d;
  --peach: #ffb88c;
  --peach-deep: #996445;
  --sage: #9fbf8f;
  --butter: #ffde85;
  --hairline: rgba(75, 59, 71, 0.16);
  --shadow: 0 18px 36px -18px rgba(75, 59, 71, 0.3);
  --radius: 22px;
}
/* Strona zawsze w jasnej wersji — także gdy telefon/komputer ma tryb ciemny (decyzja: 2026-10-13). */
:root { color-scheme: only light; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper); color: var(--ink); font-family: "Mulish", system-ui, sans-serif;
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
h1, h2, h3 { font-family: "Quicksand", system-ui, sans-serif; font-weight: 700; text-wrap: balance; margin: 0; color: var(--ink); }
a { color: inherit; }
img, svg { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 10px 18px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }

/* Header */
/* Pasek nad nagłówkiem: prezent za newsletter (2026-10-14). Nie jest przyklejony — znika przy przewijaniu; można zamknąć (localStorage). */
.topbar { background: color-mix(in srgb, var(--lavender) 30%, var(--paper)); border-bottom: 1px dashed var(--hairline); font-size: 0.86rem; }
.topbar[hidden] { display: none; }
#newsletter { scroll-margin-top: 100px; } /* link z paska — sekcja nie chowa się pod przyklejonym nagłówkiem */
.topbar__in { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; position: relative; padding-right: 44px; padding-left: 44px; }
.topbar__link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 700; padding: 6px 0; }
.topbar__link:hover .topbar__more, .topbar__link:focus-visible .topbar__more { text-decoration: underline; }
.topbar__link:focus-visible { outline: 2px solid var(--lavender-deep); outline-offset: 2px; border-radius: 6px; }
.topbar__ico { width: 18px; height: 18px; flex: none; color: #5f4d84; }
.topbar__more { color: #5f4d84; white-space: nowrap; } /* kontrast 5,5:1 na tle paska (lavender-deep dawał 3,75) */
.topbar__x { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.topbar__x:hover, .topbar__x:focus-visible { background: rgba(255,255,255,.6); color: var(--ink); }
@media (max-width: 560px) { .topbar { font-size: 0.8rem; } .topbar__in { padding-left: 16px; justify-content: flex-start; } .topbar__more, .topbar__extra { display: none; } }
.topbar__extra { font-weight: 400; }
@media (max-width: 760px) { .topbar__extra { display: none; } } /* węższe ekrany: bez dopisku, żeby pasek został w 1 linii */
header.site { position: sticky; top: 0; z-index: 120; /* > lupa galerii WooCommerce (99), < podgląd zdjęcia PhotoSwipe (1500) i baner zgód (9999) */ background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px dashed var(--hairline); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; gap: 24px; }
.logo { display: flex; align-items: center; text-decoration: none; transition: transform 0.2s ease; }
.logo:hover { transform: translateY(-1px); }
.logo:focus-visible { outline: 3px solid var(--lavender-deep); outline-offset: 4px; border-radius: 6px; }
.logo-img { display: block; max-width: 100%; height: auto; }
.newsletter .logo-img { margin-bottom: 14px; }
.navlinks { display: flex; gap: 28px; font-weight: 700; font-size: 0.95rem; }
.navlinks > li { position: relative; }
.navlinks a { text-decoration: none; position: relative; padding-bottom: 4px; display: inline-flex; align-items: center; gap: 5px; }
.navlinks a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 6px; border-radius: 6px; background: var(--butter); z-index: -1; transition: right 0.3s cubic-bezier(.22,1,.36,1); opacity: 0.7; }
.navlinks a:hover::after, .navlinks a:focus-visible::after { right: 0; }
.navlinks a:focus-visible { outline: 2px solid var(--lavender-deep); outline-offset: 4px; border-radius: 4px; }

/* Strzałka przy pozycjach z podmenu */
.navlinks li.menu-item-has-children > a::before {
	content: "";
	width: 6px; height: 6px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	margin-left: 1px;
	transition: transform 0.2s ease;
}
.navlinks li.menu-item-has-children:hover > a::before,
.navlinks li.menu-item-has-children:focus-within > a::before {
	transform: rotate(225deg) translateY(2px);
}

/* Podmenu (rozwijane "Sklep") */
.navlinks .sub-menu {
	position: absolute;
	top: calc(100% + 14px);
	left: -18px;
	min-width: 220px;
	background: var(--card);
	border: 1px dashed var(--hairline);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 10px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	z-index: 50;
}
.navlinks li.menu-item-has-children:hover > .sub-menu,
.navlinks li.menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.navlinks .sub-menu li { position: relative; }
.navlinks .sub-menu a {
	display: block;
	padding: 10px 14px;
	border-radius: 12px;
	font-weight: 700;
	white-space: nowrap;
}
.navlinks .sub-menu a::after { display: none; }
.navlinks .sub-menu a:hover,
.navlinks .sub-menu a:focus-visible { background: var(--paper-deep); color: var(--peach-deep); }
.sub-toggle { display: none; } /* tylko na telefonie/tablecie */
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Hamburger (menu mobilne) — ukryty na desktopie, pokazywany w media query. */
.nav-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 0; border: none; border-radius: 50%; background: var(--paper-deep); cursor: pointer; transition: background 0.2s ease; }
.nav-toggle:hover { background: var(--lavender); }
.nav-toggle__bar { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform 0.25s ease, opacity 0.2s ease; }
body.nav-open .nav-toggle__bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-deep); border: none; cursor: pointer; transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), background 0.2s ease; text-decoration: none; position: relative; }
.icon-btn:hover { background: var(--lavender); transform: rotate(-10deg) scale(1.06); }
.icon-btn svg { stroke: var(--ink); }
.cart-count { position: absolute; top: -4px; right: -4px; background: var(--peach-deep); color: #402616; font-size: 0.68rem; font-weight: 800; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; }

/* Wyszukiwarka w nagłówku — pole rozwijane po kliknięciu lupy (JS dodaje .is-open). */
.header-search { display: flex; align-items: center; }
.header-search__input {
	width: 0; min-width: 0; opacity: 0; padding: 0; border: 1px dashed transparent;
	background: var(--card); border-radius: 999px; font-family: "Mulish"; font-size: 0.92rem;
	color: var(--ink); outline: none; transition: width 0.28s ease, opacity 0.2s ease, padding 0.28s ease;
}
.header-search__input::placeholder { color: var(--ink-soft); }
.header-search.is-open .header-search__input {
	width: clamp(150px, 26vw, 220px); opacity: 1; padding: 9px 16px;
	border-color: var(--hairline); margin-right: 8px;
}
.header-search.is-open .header-search__input:focus { border-style: solid; border-color: var(--lavender); }
@media (max-width: 560px) {
	.header-search.is-open .header-search__input { width: clamp(120px, 42vw, 180px); }
}

.btn { display: inline-flex; align-items: center; gap: 10px; font-family: "Mulish"; font-weight: 800; font-size: 0.97rem; padding: 15px 28px; border-radius: 999px; border: none; cursor: pointer; text-decoration: none; transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s ease, background 0.2s ease; }
.btn-primary { background: var(--peach); color: #402616; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-3px) rotate(-1deg); background: var(--peach-deep); }
.btn-ghost { background: var(--card); color: var(--ink); border: 2px solid var(--hairline); }
.btn-ghost:hover { border-color: var(--lavender-deep); transform: translateY(-3px); }

/* Hero */
.hero { padding: 70px 0 34px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1.12; }
.hero h1 .hl { color: var(--peach-deep); }
.hero .hero-tagline { font-family: "Quicksand"; font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--peach-deep); margin: 16px 0 0; }
.hero p.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 46ch; margin: 12px 0 34px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-art { position: relative; height: 520px; }
.stack-card { position: absolute; width: 244px; height: 324px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); padding: 12px 12px 16px; display: flex; flex-direction: column; justify-content: flex-start; transition: transform 0.45s cubic-bezier(.22,1,.36,1); border: 1px solid var(--hairline); }
a.stack-card { color: var(--ink); text-decoration: none; }
a.stack-card:focus-visible { outline: 3px solid var(--lavender-deep); outline-offset: 4px; z-index: 4; }
/* Zdjęcie produktu w karteczce: białe tło jak zdjęcia produktów, cały produkt widoczny (contain, nie przycinamy). */
/* Zdjęcie ma stałą wysokość i nie może się kurczyć — wcześniej dłuższy opis ściskał je (Facy 157×99 px). */
.stack-card .swatch { display: block; width: 100%; height: 222px; flex-shrink: 0; border-radius: 18px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.stack-card .swatch img { display: block; width: 100%; height: 100%; object-fit: contain; }
.stack-card strong { font-family: "Quicksand"; font-size: 1.08rem; white-space: nowrap; }
.stack-card > span:last-child { font-size: 0.82rem; color: var(--ink-soft); }
/* Większe karteczki (2026-10-14, user): 206×276 → 244×324 px, kolumna hero 0.95fr → 1.05fr.
   Luźny wachlarz (2026-09-27): wcześniej karteczki leżały w ciasnym stosie — zdjęcie jeździków widoczne w 24%, rowerków w 1%.
   Większe zdjęcia (user): 166×140 → ~198×196 px; zmierzone przy 515 px: widoczne 100% / 90% / 88%, napisy 100%.
   Kotwice: lewa krawędź / środek / prawa krawędź — układ trzyma się też na węższych laptopach. */
.stack-card.c3 { left: -24px; top: 168px; transform: rotate(-6deg); z-index: 1; }
.stack-card.c2 { left: calc(50% - 116px); top: 0; transform: rotate(2deg); z-index: 2; }
.stack-card.c1 { right: -16px; top: 186px; transform: rotate(6deg); z-index: 3; }
/* Karteczka pod kursorem/fokusem prostuje się i wychodzi na wierzch — łatwiej kliknąć. */
.stack-card:hover, .stack-card:focus-visible { transform: rotate(0deg) translateY(-8px); z-index: 5; }

.usp { padding: 14px 0 46px; }
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.usp-item { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px dashed var(--hairline); border-radius: var(--radius); padding: 18px 20px; transition: transform 0.25s ease, border-color 0.25s ease; }
.usp-item:hover { transform: translateY(-5px); border-color: var(--lavender-deep); }
.usp-item strong { display: block; font-size: 0.94rem; }
.usp-item span { font-size: 0.82rem; color: var(--ink-soft); }
/* Ikony korzyści (2026-10-14): ten sam styl co ikony kategorii — białe linie na pastelowym kółku (wcześniej małe emoji). */
.usp-item .usp-ico { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.usp-item .usp-ico svg { width: 24px; height: 24px; display: block; }
.usp-ico--peach { background: var(--peach); }
.usp-ico--lavender { background: var(--lavender); }
.usp-ico--sage { background: var(--sage); }
.usp-ico--butter { background: #f5c94f; }

section.block { padding: 60px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; gap: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { color: var(--ink-soft); max-width: 50ch; margin: 10px 0 0; }

/* Categories as a "shelf" */
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; max-width: 620px; margin: 0 auto; }
.shelf-item { text-align: center; padding: 10px 16px 26px; text-decoration: none; color: var(--ink); position: relative; }
.shelf-item .puck { width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 14px; background: var(--shelf-color, var(--peach)); box-shadow: var(--shadow); transition: transform 0.3s cubic-bezier(.34,1.56,.64,1); overflow: hidden; }
.shelf-item .puck img { width: 100%; height: 100%; object-fit: cover; }
.shelf-item:hover .puck { transform: translateY(-8px) scale(1.06); }
.shelf-item strong { font-family: "Quicksand"; font-size: 1.02rem; display: block; }
.shelf-item span { font-size: 0.8rem; color: var(--ink-soft); }
.shelf-line { position: absolute; left: -4%; right: -4%; bottom: 8px; height: 0; border-bottom: 3px dashed var(--hairline); z-index: -1; }

/* Products */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.prod-card { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 2px dashed var(--hairline); transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s ease, border-color 0.3s ease; text-decoration: none; color: var(--ink); display: block; }
.prod-card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow); border-color: var(--lavender-deep); }
.prod-thumb { height: 190px; display: block; background: #fff; overflow: hidden; }
.prod-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 12px; box-sizing: border-box; transition: transform 0.35s cubic-bezier(.34,1.56,.64,1); }
.prod-card:hover .prod-thumb img { transform: scale(1.08); }
.prod-badge { position: absolute; top: 12px; left: 12px; background: var(--butter); color: #4b3b16; font-weight: 800; font-size: 0.7rem; padding: 5px 11px; border-radius: 999px; }
.prod-body { padding: 28px 16px 18px; }   /* 28px u góry: miejsce na badge „na krawędzi" zdjęcia (równo we wszystkich kartach) */
.prod-cat { font-size: 0.74rem; font-weight: 800; color: var(--lavender-deep); text-transform: uppercase; letter-spacing: 0.05em; }
.prod-name { font-weight: 800; margin: 6px 0 10px; font-size: 0.98rem; }
.prod-row { display: flex; align-items: center; justify-content: space-between; }
.prod-price { font-family: "Quicksand"; font-size: 1.2rem; }
.prod-price del { opacity: 0.5; font-size: 0.85rem; margin-right: 6px; }
.add-btn { width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--ink); color: var(--paper); font-size: 1.15rem; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease; text-decoration: none; display: grid; place-items: center; }
.add-btn:hover { background: var(--peach-deep); color: #402616; transform: scale(1.1) rotate(90deg); }

.newsletter { background: linear-gradient(135deg, var(--lavender), var(--lavender-deep)); border-radius: 34px; padding: 52px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; align-items: center; color: #2b1f45; }
.newsletter > * { min-width: 0; } /* inaczej pole e-mail (domyślna szerokość inputa) rozpycha kolumnę na telefonie */
.newsletter h2 { color: #2b1f45; }
.newsletter p { color: rgba(43,31,69,0.75); margin: 12px 0 0; max-width: 44ch; }
/* Formularz na jasnej karcie: drobny tekst zgody/RODO ma kontrast ≥8:1 także przy ciemnym końcu gradientu
   (bez karty było 2,5–3,1:1 — poniżej WCAG AA 4,5:1, zmierzone). */
.nl-form { display: flex; flex-direction: column; gap: 12px; background: rgba(255,255,255,0.7); padding: 16px; border-radius: 26px; }
.nl-row { display: flex; gap: 10px; background: #fff; padding: 6px; border-radius: 999px; }
.nl-row:focus-within { box-shadow: 0 0 0 3px #2b1f45; }
.nl-row input { flex: 1; min-width: 0; width: 100%; border: none; background: transparent; padding: 12px 18px; font-family: "Mulish"; font-size: 0.95rem; outline: none; color: #2b1f45; }
.nl-row input::placeholder { color: rgba(43,31,69,0.55); }
.nl-row button { border: none; background: #2b1f45; color: #fff; font-weight: 800; padding: 12px 24px; border-radius: 999px; cursor: pointer; transition: transform 0.2s ease; font-family: "Mulish"; }
.nl-row button:hover { transform: scale(1.05); }
.nl-row button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
/* Zgoda na newsletter: pole NIEzaznaczone domyślnie (PKE/RODO), duże pole kliknięcia. */
.nl-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; line-height: 1.45; color: #2b1f45; cursor: pointer; }
.nl-consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: #2b1f45; cursor: pointer; }
.newsletter .nl-info { margin: 0; max-width: none; font-size: 0.74rem; line-height: 1.5; color: #3a2d52; }
.newsletter .nl-info a { color: #2b1f45; font-weight: 700; }
.nl-msg { margin-top: 16px; padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,0.85); color: #2b1f45; font-size: 0.9rem; line-height: 1.5; border-left: 4px solid #287849; }
.nl-msg--error { border-left-color: #b3261e; }
/* Pułapka na boty — niewidoczna dla ludzi i czytników ekranu. */
.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

footer.site { background: var(--paper-deep); color: var(--ink); margin-top: 30px; padding: 56px 0 28px; border-top: 1px dashed var(--hairline); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.foot-grid h3 { font-family: "Quicksand"; margin-bottom: 14px; font-size: 0.98rem; }
.foot-grid ul { display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.foot-grid a { text-decoration: none; opacity: 0.8; transition: opacity 0.2s ease, padding-left 0.2s ease; }
.foot-grid a:hover { opacity: 1; padding-left: 4px; color: var(--peach-deep); }
.foot-bottom { border-top: 1px dashed var(--hairline); padding-top: 22px; display: flex; justify-content: space-between; font-size: 0.82rem; color: #665563; flex-wrap: wrap; gap: 10px; } /* kontrast 5,7:1 (wcześniej przezroczystość 0.75 dawała 4,48 — poniżej WCAG) */

/* Generic page content (non-front-page) */
.page-content { padding: 60px 0; }
.page-content .wrap { max-width: 800px; }
.page-content .page-title { margin-bottom: 22px; }
.page-content h3 {
	font-size: 1.5rem;
	margin: 44px 0 20px;
	padding-bottom: 10px;
	border-bottom: 2px dashed var(--hairline);
}
.page-content h3:first-of-type { margin-top: 8px; }
.page-content h4 {
	font-family: "Quicksand";
	font-size: 1.08rem;
	color: var(--peach-deep);
	margin: 26px 0 8px;
}
.page-content p { color: var(--ink-soft); }
.page-content ol,
.page-content ul { padding-left: 22px; color: var(--ink-soft); margin: 0 0 16px; }
.page-content li { margin-bottom: 10px; }
.page-content a { color: var(--lavender-deep); text-decoration: underline; text-decoration-color: var(--hairline); }
.page-content a:hover { color: var(--peach-deep); }

/* Rozwijane FAQ (accordion) */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.faq-item {
	background: var(--card);
	border: 1px dashed var(--hairline);
	border-radius: var(--radius);
	padding: 4px 20px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item:hover { border-color: var(--lavender-deep); }
.faq-item[open] { box-shadow: var(--shadow); border-color: var(--lavender-deep); }
.faq-item summary {
	list-style: none;
	cursor: pointer;
	padding: 16px 34px 16px 0;
	font-family: "Quicksand";
	font-weight: 700;
	font-size: 1.02rem;
	color: var(--ink);
	position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: "";
	position: absolute;
	right: 4px; top: 50%;
	width: 10px; height: 10px;
	border-right: 2px solid var(--peach-deep);
	border-bottom: 2px solid var(--peach-deep);
	transform: translateY(-70%) rotate(45deg);
	transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--lavender-deep); outline-offset: 4px; border-radius: 8px; }
.faq-answer { padding: 0 0 20px; color: var(--ink-soft); }
.faq-answer p:last-child { margin-bottom: 0; }

/* Strona Kontakt */
.kontakt-page .wrap { max-width: 1180px; }
.kontakt-page .section-head { border-bottom: none; margin-bottom: 40px; padding-bottom: 0; }
.kontakt-page .section-head p { color: var(--ink-soft); margin-top: 10px; }
.kontakt-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; margin-bottom: 48px; }
.kontakt-grid h2 { font-size: 1.5rem; margin-bottom: 22px; }

.kontakt-form-col {
	background: var(--card);
	border: 1px dashed var(--hairline);
	border-radius: var(--radius);
	padding: 32px;
}
.kontakt-form .form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.kontakt-form label { font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.kontakt-form input,
.kontakt-form select,
.kontakt-form textarea {
	font-family: "Mulish";
	font-size: 0.95rem;
	border: 1px dashed var(--hairline);
	border-radius: 14px;
	padding: 12px 16px;
	background: var(--paper);
	color: var(--ink);
	resize: vertical;
}
.kontakt-form input:focus,
.kontakt-form select:focus,
.kontakt-form textarea:focus { outline: 2px solid var(--lavender-deep); outline-offset: 1px; border-color: var(--lavender-deep); }
.kontakt-form button { margin-top: 6px; }

.kontakt-info-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 34px; }
.kontakt-info-list li { display: flex; align-items: flex-start; gap: 14px; }
.kontakt-info-icon { font-size: 1.3rem; line-height: 1.4; }
.kontakt-info-list strong { display: block; font-family: "Quicksand"; font-size: 0.98rem; margin-bottom: 2px; }
.kontakt-info-list span { color: var(--ink-soft); font-size: 0.92rem; }
.kontakt-info-list a { color: var(--ink-soft); text-decoration: underline; text-decoration-color: var(--hairline); }
.kontakt-info-list a:hover { color: var(--peach-deep); }
.kontakt-map { border-radius: var(--radius); overflow: hidden; border: 1px dashed var(--hairline); box-shadow: var(--shadow); }
.kontakt-map iframe { width: 100%; height: 380px; border: none; display: block; }
.kontakt-map-side iframe { height: 240px; }

@media (max-width: 900px) {
	.kontakt-grid { grid-template-columns: minmax(0, 1fr); } /* samo 1fr = min. szerokość treści (357 px) → strona wystawała w bok na telefonie */
	.kontakt-grid > * { min-width: 0; }
}

/* Strona O nas */
.onas-page .page-title { text-align: center; margin-bottom: 30px; }
.onas-body { max-width: 760px; margin: 0 auto; }
.onas-body h2:first-child { margin-top: 0; }
.onas-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.onas-tag {
	display: inline-flex; align-items: center; gap: 6px;
	background: var(--card); border: 1px dashed var(--hairline); border-radius: 999px;
	padding: 9px 16px; font-size: 0.85rem; font-weight: 700; color: var(--ink);
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { height: 530px; max-width: 640px; width: 100%; margin: 0 auto; order: -1; } /* karteczki: c1 top 186 + 324 wys. + obrót — mniej wchodzi na napis pod spodem */
  .usp-grid, .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .shelf-line { display: none; }
  .nav { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  body.nav-open header.site { background: var(--paper); }
  .navlinks {
    display: none; order: 3; flex-basis: 100%; width: 100%;
    flex-direction: column; gap: 2px; margin-top: 12px; padding-top: 10px;
    border-top: 1px dashed var(--hairline);
  }
  body.nav-open .navlinks { display: flex; }
  .navlinks > li { position: static; }
  .navlinks > li > a { padding: 12px 6px; font-size: 1.05rem; }
  .navlinks li.menu-item-has-children > a::before { display: none; }
  /* Podmenu na telefonie: zwinięte, rozwijane przyciskiem ze strzałką (JS dodaje .sub-toggle). Panel przewijany, gdy dłuższy niż ekran. */
  body.nav-open .navlinks { max-height: calc(100vh - 90px); overflow-y: auto; overscroll-behavior: contain; }
  .navlinks > li.menu-item-has-children { display: flex; flex-wrap: wrap; align-items: center; }
  .navlinks > li.menu-item-has-children > a { flex: 1; }
  .navlinks .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    min-width: 0; box-shadow: none; border: none; background: transparent;
    padding: 0 0 6px 18px; display: none; flex-basis: 100%;
  }
  .navlinks li.is-open > .sub-menu { display: block; }
  .sub-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
  .sub-toggle:hover, .sub-toggle:focus-visible { background: var(--paper-deep); }
  .sub-toggle::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.2s ease; }
  li.is-open > .sub-toggle::before { transform: rotate(225deg) translateY(-2px); }
  .navlinks .sub-menu a { padding: 10px 8px; }
  .newsletter { grid-template-columns: minmax(0, 1fr); padding: 36px; border-radius: 26px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .usp-grid, .prod-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
}

/* Baner sezonowy — kalendarz adwentowy (front-page) */
.promo-banner { margin-top: 30px; }
.promo-banner .pb {
  display: grid; grid-template-columns: 132px 1fr auto; gap: clamp(16px, 3vw, 30px); align-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--sage) 26%, var(--card)), var(--card));
  border: 2px dashed var(--sage); border-radius: var(--radius); padding: 20px clamp(18px, 3vw, 30px);
  box-shadow: var(--shadow);
}
.promo-banner .pb__img { width: 132px; height: 132px; border-radius: 16px; overflow: hidden; background: #fff; display: block; }
.promo-banner .pb__img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; display: block; }
.promo-banner .pb__eyebrow { display: inline-block; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.72rem; color: #287849; }
.promo-banner .pb__body h2 { margin: 0.22em 0 0.28em; font-size: clamp(1.25rem, 2.5vw, 1.7rem); }
.promo-banner .pb__body p { margin: 0; color: var(--ink-soft); max-width: 52ch; }
.promo-banner .pb__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.promo-banner .pb__cta .btn-primary { white-space: nowrap; }
.promo-banner .pb__more { font-weight: 700; font-size: 0.9rem; color: var(--lavender-deep, var(--lavender)); text-decoration: none; white-space: nowrap; }
.promo-banner .pb__more:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .promo-banner .pb { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .promo-banner .pb__cta { align-items: center; }
  .promo-banner .pb__body p { max-width: none; }
}

/* Badge „funkcje" (muzyka i światła) — nakładka HTML/CSS na zdjęcie (plik zdjęcia zostaje czysty) */
/* Karta .prod-card (strona główna/wyszukiwarka): badge kotwiczy się do KARTY, nie do
   ramki .prod-thumb — ramka ma overflow:hidden (przycina powiększenie zdjęcia na
   hover) i obcinałaby badge wystający poza zdjęcie. Element absolutny, którego
   kontener pozycjonowania leży POZA ramką z overflow:hidden, nie jest przez nią przycinany. */
.prod-card { position: relative; }
.prod-card .webben-fbadge { top: 177px; bottom: auto; }
@media (max-width: 980px) { .prod-card .webben-fbadge { top: 179px; } }
/* Badge wyśrodkowany na dolnej krawędzi zdjęcia (decyzja usera 2026-09-25). Reguła
   bazowa; siatka sklepu i strona produktu mają kotwiczenie w woocommerce.css. */
.webben-fbadge {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); z-index: 3;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(120deg, var(--butter), var(--peach));
  color: #402616; font-family: "Quicksand", sans-serif; font-weight: 800; font-size: 0.7rem; line-height: 1;
  padding: 5px 10px; border-radius: 999px; border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(75, 59, 71, 0.20); pointer-events: none;
}
.webben-fbadge .fbadge__ic { width: 1.05em; height: 1.05em; flex: none; }
/* 2 kolumny (tablet/duży telefon) — mniejsze kafelki, więc badge nieco mniejszy */
@media (max-width: 980px) { .webben-fbadge { font-size: 0.64rem; padding: 4px 8px; gap: 5px; bottom: 8px; } }
/* 1 kolumna (telefon w pionie) — kafelek na całą szerokość, badge normalny */
@media (max-width: 560px) { .webben-fbadge { font-size: 0.68rem; padding: 4px 9px; } }

/* ===== Baner zgód na cookies (Consent Mode v2) =====
   Nie zasłania strony (brak „cookie wall"), stały na dole — nie przesuwa treści (CLS 0).
   „Odrzuć" i „Akceptuj wszystkie" celowo wyglądają identycznie (równorzędny wybór). */
.webben-zgody { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.webben-zgody__box {
	pointer-events: auto; max-width: 980px; margin: 0 auto; background: var(--card, #fff); color: var(--ink);
	border: 2px dashed var(--hairline); border-radius: var(--radius, 18px); box-shadow: 0 10px 30px rgba(75, 59, 71, 0.18);
	padding: 16px 18px; display: grid; gap: 10px;
}
.webben-zgody__t { margin: 0; font-family: "Quicksand", sans-serif; font-weight: 700; font-size: 1.05rem; }
.webben-zgody__txt { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--ink-soft); }
.webben-zgody__txt a { color: var(--ink); }
.webben-zgody__opts { display: grid; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--paper, #fdf4ec); font-size: 0.88rem; }
.webben-zgody__opt { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.webben-zgody__opt input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.webben-zgody__btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.webben-zgody__b {
	font: 800 0.9rem "Mulish", sans-serif; padding: 10px 18px; border-radius: 999px; cursor: pointer; min-height: 44px;
	border: 2px solid var(--ink); background: var(--ink); color: var(--paper); /* tło strony: jasne w trybie jasnym, ciemne w ciemnym — zawsze kontrastuje z --ink */
}
.webben-zgody__b:focus-visible { outline: 3px solid var(--lavender-deep); outline-offset: 2px; }
@media (max-width: 560px) {
	.webben-zgody__btns { display: grid; grid-template-columns: 1fr 1fr; }
	.webben-zgody__b[data-z="ustawienia"], .webben-zgody__b[data-z="zapisz"] { grid-column: 1 / -1; order: 3; }
}
/* atrybut hidden musi wygrywać z display:grid/flex powyżej */
.webben-zgody[hidden], .webben-zgody [hidden] { display: none !important; }
@media (max-width: 560px) {
	.webben-zgody { padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)); }
	.webben-zgody__box { padding: 12px 14px; gap: 8px; }
	.webben-zgody__t { font-size: 0.95rem; }
	.webben-zgody__txt { font-size: 0.8rem; line-height: 1.42; }
	.webben-zgody__b { font-size: 0.82rem; padding: 8px 10px; white-space: nowrap; }
}
.webben-zgody__opt span { line-height: 1.45; }
.webben-zgody__opt a { color: var(--ink); }
@media (max-width: 560px) { .webben-zgody__opts { max-height: 38vh; overflow-y: auto; font-size: 0.8rem; } }
.webben-zgody__link { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: var(--ink); text-decoration: underline; cursor: pointer; }
.webben-zgody__link:focus-visible { outline: 3px solid var(--lavender-deep); outline-offset: 2px; border-radius: 4px; }

/* Newsletter na telefonie: mniej wewnętrznego marginesu, żeby formularz miał miejsce (390 px). */
@media (max-width: 560px) {
  .newsletter { padding: 26px 18px; }
  .nl-form { padding: 12px; border-radius: 22px; }
  .nl-row input { padding: 12px 12px; }
  .nl-row button { padding: 12px 16px; }
}

/* Karteczki hero na telefonie: mniejsze, obok siebie, sama nazwa kategorii (opis by się nie zmieścił).
   Zmierzone przy 390 px: zdjęcia i napisy 100% widoczne (przy 200 px szerokości zasłaniały się — rowerki 39%). */
@media (max-width: 560px) {
  .nav { gap: 8px; }
  .nav-actions { gap: 8px; } /* 360 px: logo 130 + 24 + ikony 150 = dokładnie 304 → ikony spadały do 2. linii (nagłówek 135 px) */
  .hero { padding-top: 14px; }
  .hero-grid { gap: 14px; }
  .hero-art { height: 186px; } /* telefon: mniej pustego miejsca nad i pod karteczkami (user, 2026-10-14) */
  .stack-card { width: 108px; height: 150px; padding: 9px; border-radius: 18px; }
  .stack-card .swatch { height: 62%; margin-bottom: 7px; border-radius: 12px; }
  .stack-card strong { font-size: 0.78rem; line-height: 1.2; white-space: normal; text-align: center; } /* telefon: nazwa kategorii wyśrodkowana (user, 2026-10-14) */
  .stack-card > span:last-child { display: none; }
  .stack-card.c3 { left: 0; top: 22px; transform: rotate(-5deg); }
  .stack-card.c2 { left: calc(50% - 54px); top: 4px; }
  .stack-card.c1 { right: 0; top: 26px; transform: rotate(5deg); }
}

/* Karteczki hero na węższych laptopach (obszar ~470 px): odrobinę mniejsze, żeby tylne nie chowały się pod przednią. */
@media (min-width: 981px) and (max-width: 1200px) {
  .stack-card { width: 214px; height: 290px; }
  .stack-card .swatch { height: 192px; }
  .stack-card.c2 { left: calc(50% - 100px); }
  .stack-card.c3 { left: 0; }
  .stack-card.c1 { right: 0; }
}
@media (min-width: 981px) and (max-width: 1080px) {
  .stack-card { width: 196px; height: 270px; }
  .stack-card .swatch { height: 174px; }
  .stack-card strong { font-size: 0.9rem; }
  .stack-card.c2 { left: calc(50% - 92px); }
}

/* Karty bestsellerów: równe wysokości elementów — kategoria w 1 linii, nazwa rezerwuje 2 linie, cena zawsze przy dole karty */
.prod-card { display: flex; flex-direction: column; }
.prod-body { flex: 1; display: flex; flex-direction: column; }
.prod-cat { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prod-name { min-height: calc(2 * 1.35em); line-height: 1.35; }
.prod-row { margin-top: auto; }

/* Kafelki korzyści: nagłówek zawsze w jednej linii (równe podpisy we wszystkich kafelkach);
   na pośrednich szerokościach (4 kolumny w wąskim oknie) nieco mniejsza czcionka i odstępy. */
.usp-item strong { white-space: nowrap; }
.usp-item > div { min-width: 0; }
@media (min-width: 981px) and (max-width: 1240px) {
  .usp-item { padding: 16px 14px; gap: 10px; }
  .usp-item .usp-ico { width: 40px; height: 40px; }
  .usp-item .usp-ico svg { width: 21px; height: 21px; }
  .usp-item strong { font-size: 0.86rem; }
}
