/*
Theme Name: NaPortalach Studio
Description: Lawendowy motyw katalogu publikacji NaPortalach.pl.
Author: NaPortalach.pl
Version: 1.0.6
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: naportalach-studio
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
:root {
  --np-ink: #351635;
  --np-text: #563651;
  --np-muted: #70596f;
  --np-dark: #552351;
  --np-purple: #865598;
  --np-lav: #f0e8f7;
  --np-paper: #fffaf3;
  --np-rule: #d8c8df;
  --np-orange: #ff853e;
  --np-orange-dark: #a34017;
  --np-focus: #733794;
  --np-width: 1216px;
  --np-pad: clamp(18px, 4.6vw, 76px);
  --np-font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--np-lav); color: var(--np-ink); font: 400 16px/1.55 var(--np-font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
a { color: var(--np-dark); text-underline-offset: .18em; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 760; line-height: 1.1; }
h1 { font-size: clamp(2.6rem, 5.7vw, 5.4rem); letter-spacing: -.063em; }
h2 { font-size: clamp(1.75rem, 3.35vw, 2.9rem); letter-spacing: -.047em; }
h3 { font-size: 1.35rem; letter-spacing: -.029em; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--np-focus); outline-offset: 3px; }
.np-budget :focus-visible, .np-filter :focus-visible { outline-color: #ffa569; }
.np-wrap { width: min(calc(100% - 2 * var(--np-pad)), var(--np-width)); margin-inline: auto; }
.np-header { border-bottom: 1px solid var(--np-rule); }
.np-header > .np-wrap, .np-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: clamp(62px, 6.8vw, 89px); }
.np-brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: .36em; color: var(--np-ink); text-decoration: none; font-size: clamp(1.35rem, 2.3vw, 2rem); font-weight: 790; line-height: 1; letter-spacing: -.06em; white-space: nowrap; }
.np-brand img, .np-brand svg { width: 1.36em; height: 1.18em; object-fit: contain; }
.np-nav, .np-header nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: clamp(12px, 2.8vw, 42px); }
.np-nav a, .np-header nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; color: var(--np-ink); text-decoration: none; font-size: .92rem; font-weight: 650; }
.np-nav a:hover, .np-header nav a:hover { text-decoration: underline; }
.np-selected, .np-cart { display: inline-flex; align-items: center; gap: .43em; min-height: 42px; padding: 7px 17px; border: 1.3px solid var(--np-dark); border-radius: 25px; color: var(--np-ink); background: transparent; text-decoration: none; font-size: .93rem; font-weight: 650; line-height: 1.2; white-space: nowrap; }
.np-selected svg, .np-cart svg { width: 19px; height: 19px; }
.np-skip, .skip-link, .screen-reader-text, .np-sr, .np-hp { position: absolute!important; width: 1px!important; height: 1px!important; overflow: hidden!important; margin: -1px!important; padding: 0!important; border: 0!important; clip: rect(0,0,0,0)!important; clip-path: inset(50%)!important; white-space: nowrap!important; }
.np-skip:focus, .skip-link:focus { top: 8px; left: 8px; width: auto!important; height: auto!important; margin: 0!important; padding: 10px 16px!important; clip: auto!important; clip-path: none!important; background: var(--np-paper); z-index: 100; }
.np-main { padding-bottom: clamp(38px, 6vw, 80px); }
.np-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr); align-items: center; column-gap: clamp(8px, 2.4vw, 32px); padding-block: clamp(24px, 2.6vw, 38px) clamp(16px, 1.7vw, 25px); }
.np-hero-copy { min-width: 0; }
.np-eyebrow, .np-card-type { color: #79445e; font-size: .67rem; font-weight: 750; line-height: 1.45; text-transform: uppercase; letter-spacing: .14em; }
.np-hero .np-eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: clamp(12px, 1.25vw, 18px); }
.np-hero .np-eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--np-orange); border-radius: 2px; }
.np-hero h1 { max-width: none; font-size: clamp(2.35rem, 4.55vw, 4.1rem); line-height: 1.005; }
.np-lead { max-width: 43ch; margin-top: clamp(14px, 1.6vw, 24px); color: var(--np-text); font-size: clamp(.99rem, 1.45vw, 1.22rem); line-height: 1.48; }
.np-hero-art { display: block; width: 100%; max-height: 258px; object-fit: contain; align-self: center; }
#katalog, #wybrane, #kontakt, #main { scroll-margin-top: 22px; }
.np-demo-note { display: block; width: fit-content; max-width: 100%; margin: 0 0 13px; padding: 5px 11px; border: 1px solid var(--np-rule); border-radius: 7px; color: var(--np-muted); font-size: .79rem; line-height: 1.45; }
.np-filter { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); padding: clamp(14px, 1.8vw, 24px) clamp(16px, 2.3vw, 32px); color: #fff7fb; background: var(--np-dark); border-radius: 18px; }
.np-filter label { font-size: clamp(1.1rem, 2.1vw, 1.65rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.2; }
.np-money { position: relative; display: inline-flex; flex: 1 1 260px; min-width: 0; align-items: center; gap: 6px; padding: 0 17px; border: 1px solid #fff8f5; border-radius: 10px; background: #fffaf6; color: var(--np-dark); font-size: clamp(1.05rem, 1.7vw, 1.35rem); font-weight: 650; }
.np-money input { width: 100%; min-width: 0; min-height: 46px; padding: 2px 0; border: 0; border-radius: 5px; outline: 0; background: transparent; color: inherit; font-weight: inherit; }
.np-money input:focus-visible { outline: none; }
.np-money > span { padding-left: 14px; border-left: 1px solid var(--np-rule); }
.np-money:focus-within { outline: 3px solid #ffa569; outline-offset: 3px; }
.np-btn, .np-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px 20px; border: 1px solid transparent; border-radius: 9px; font-size: .95rem; font-weight: 690; line-height: 1.25; text-decoration: none; }
.np-btn-dark { background: var(--np-dark); color: #fff8fc; }
.np-btn-dark:hover { background: #401b3f; }
.np-filter .np-btn { min-width: min(22%, 235px); min-height: 47px; border: 1.5px solid #fff8f9; }
.np-formats { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin: 15px 0 0; }
.np-chip { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 7px clamp(12px, 1.5vw, 23px); border: 1px solid #dbcde0; border-radius: 100px; color: var(--np-text); background: var(--np-paper); font-size: .92rem; font-weight: 620; line-height: 1.25; }
.np-chip::before { content: ""; width: 13px; height: 13px; border: 1.4px solid #886c83; border-radius: 50%; flex: 0 0 auto; }
.np-chip[aria-pressed="true"] { border-color: #c65f29; color: var(--np-ink); background: #fff6ec; }
.np-chip[aria-pressed="true"]::before { border-color: #a44719; background: #d26126; box-shadow: inset 0 0 0 2.1px #fff6ec; }
.np-chip:hover { border-color: var(--np-purple); }
.np-section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin: clamp(25px, 3vw, 42px) 0 clamp(12px, 1.25vw, 18px); }
.np-section-head .np-eyebrow, .np-order .np-eyebrow { margin-bottom: 7px; }
.np-count { color: var(--np-muted); font-size: .87rem; line-height: 1.35; }
.np-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(12px, 1.4vw, 20px); }
.np-card { display: flex; align-items: center; gap: clamp(13px, 1.65vw, 24px); min-width: 0; padding: clamp(14px, 1.45vw, 21px); border: 1px solid #e3d6e4; border-radius: 17px; background: var(--np-paper); }
.np-card:has(.np-btn[aria-pressed="true"]) { border-color: #90649c; box-shadow: inset 0 0 0 1px #90649c; }
.np-cover { flex: 0 0 33%; min-width: 0; width: 33%; aspect-ratio: 5 / 4; align-self: center; object-fit: cover; border-radius: 9px; background: #e7d5ed; }
.np-card-body { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.np-card-title { overflow-wrap: anywhere; font-size: clamp(1.12rem, 1.85vw, 1.65rem); line-height: 1.16; }
.np-card-meta { overflow-wrap: anywhere; color: var(--np-muted); font-size: .91rem; line-height: 1.35; }
.np-card-type { font-size: .62rem; }
.np-price { color: var(--np-orange-dark); font-weight: 730; font-size: clamp(1rem, 1.55vw, 1.3rem); letter-spacing: -.028em; }
.np-btn-add { margin-top: 4px; padding: 8px 15px; background: var(--np-orange); color: #35182b; }
.np-btn-add:hover { background: #ff9a60; }
.np-btn-add[aria-pressed="true"] { background: #ebddef; color: var(--np-dark); }
.np-empty { padding: clamp(24px, 4vw, 50px); background: #f8f2fa; border: 1px dashed #ad91b5; border-radius: 15px; text-align: center; }
.np-empty p { margin-top: 7px; color: var(--np-muted); }
.np-order { margin-top: clamp(28px, 4.6vw, 66px); padding: clamp(20px, 3.35vw, 46px); border: 1px solid var(--np-rule); background: #fbf5fd; border-radius: 19px; }
.np-order h2 { font-size: clamp(1.65rem, 2.8vw, 2.3rem); }
.np-order h2 + p, .np-order h3 + p { margin-top: 8px; }
.np-order h3 { margin-block: 20px 8px; }
.np-selection { list-style: none; margin: 17px 0 0; padding: 0; }
.np-selection li { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--np-rule); padding-block: 8px; }
.np-selection li > :first-child { flex-grow: 1; min-width: 0; overflow-wrap: anywhere; }
.np-selection li small { color: var(--np-muted); font-size: .86rem; }
.np-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; padding: 5px; background: transparent; color: var(--np-dark); text-decoration: underline; text-underline-offset: .17em; font-weight: 620; }
.np-totals { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 25px; padding-block: 17px 7px; font-size: 1.08rem; }
.np-totals strong { font-size: 1.25rem; }
.np-warning, .np-status:not(:empty) { margin: 13px 0 5px; padding: 10px 14px; border-radius: 7px; color: var(--np-dark); background: #eee0f2; font-size: .9rem; }
.np-warning { color: #792f1a; background: #ffead7; }
.np-enquiry { margin-top: 22px; }
.np-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 20px; margin-block: 12px 18px; }
.np-enquiry label { color: var(--np-text); font-size: .92rem; font-weight: 640; }
.np-fields label { display: flex; flex-direction: column; gap: 6px; }
.np-fields label:has(textarea), .np-fields .np-wide { grid-column: 1/-1; }
.np-enquiry :is(input:not([type="checkbox"]):not([type="hidden"]),textarea) { width: 100%; max-width: 100%; min-height: 45px; border: 1px solid #b69bbb; border-radius: 8px; padding: 9px 12px; background: #fffdfa; color: var(--np-ink); font-size: 1rem; font-weight: 400; }
.np-enquiry textarea { min-height: 106px; resize: vertical; }
.np-enquiry .np-btn { margin-top: 10px; }
.np-footer { border-top: 1px solid var(--np-rule); color: var(--np-text); }
.np-footer > .np-wrap, .np-footer-inner { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-block: 29px 38px; }
.np-footer a { color: var(--np-dark); }
.np-footer-copy, .np-footer p { font-size: .92rem; }
.np-footer .np-brand { margin-bottom: 7px; }
.np-footer-links { display: flex; flex-direction: column; gap: 7px; }
.np-dock { display: none; }
[hidden] { display: none!important; }
::selection { color: #321633; background: #ffc89e; }
/* Supporting pages retain the same readable measure as the catalog. */
.np-brand .custom-logo { display: block; width: auto; max-width: min(185px,34vw); height: auto; max-height: 45px; }
.np-document { min-height: 55vh; padding-block: clamp(32px,5vw,70px); }
.np-document h1 { max-width: 25ch; margin-bottom: .5em; font-size: clamp(2.1rem,4.8vw,4rem); }
.np-document :is(p,ul,ol,h2,h3,blockquote) { max-width: 76ch; }
.np-document :is(p,ul,ol,blockquote) { margin-block: 1em; }
.np-document :is(h2,h3) { margin-block: 1.15em .5em; }
.np-document article + article { margin-top: 25px; }
.np-order > .np-section-head { margin-top: 0; }
.np-empty .np-btn { margin-top: 17px; }
.np-more { display: flex; margin: 18px auto 0; color: var(--np-ink); background: transparent; border-color: var(--np-purple); }
.np-more:hover { background: #f8f1fb; }
.np-footer h2 { margin-bottom: 9px; font-size: 1.25rem; }
.np-footer address { margin-top: 8px; color: var(--np-muted); font-size: .86rem; font-style: normal; }
@media (max-width: 859px) {
  .np-hero { grid-template-columns: minmax(0,1.15fr) minmax(0,.86fr); }
  .np-card { padding: 13px; gap: 12px; }
  .np-cover { width: 30%; flex-basis: 30%; }
}
@media (max-width: 690px) {
  :root { --np-pad: clamp(15px, 4.25vw, 24px); }
  .np-header > .np-wrap, .np-header-inner { gap: 10px; min-height: 62px; }
  .np-nav, .np-header nav { gap: 10px; }
  .np-header nav a { font-size: .84rem; }
  .np-selected, .np-cart { padding: 6px 11px; font-size: .85rem; }
  .np-hero { grid-template-columns: minmax(0,1fr) minmax(0,.56fr); column-gap: 4px; padding-block: 24px 22px; }
  .np-hero h1 { font-size: clamp(2rem, 6.25vw, 2.77rem); line-height: 1.015; }
  .np-hero .np-eyebrow { font-size: .58rem; letter-spacing: .09em; gap: 6px; margin-bottom: 9px; }
  .np-hero .np-eyebrow::before { width: 12px; height: 2px; }
  .np-hero-art { align-self: center; }
  .np-lead { font-size: .91rem; line-height: 1.43; }
  .np-filter { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: 8px 10px; border-radius: 12px; }
  .np-filter label { grid-column: 1/-1; }
  .np-filter .np-btn { min-width: 0; padding-inline: 12px; font-size: .88rem; }
  .np-money { min-width: 0; width: 100%; padding-inline: 11px; }
  .np-formats { justify-content: flex-start; gap: 6px; margin-top: 12px; }
  .np-chip { padding-inline: 11px; font-size: .81rem; gap: 6px; }
  .np-chip::before { width: 10px; height: 10px; }
  .np-grid { grid-template-columns: 1fr; }
  .np-card { padding: 14px; gap: 16px; }
  .np-cover { width: clamp(80px,26%,145px); flex: 0 0 auto; }
  .np-card-title { font-size: clamp(1.2rem,4vw,1.55rem); }
  .np-count { font-size: .8rem; }
  .np-order { padding: 18px; }
  .np-fields { grid-template-columns: 1fr; }
  .np-dock:not([hidden]) { position: fixed; z-index: 5; bottom: max(10px,env(safe-area-inset-bottom)); left: var(--np-pad); right: var(--np-pad); display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 9px 15px; border: 1px solid #f7e4fc; border-radius: 12px; box-shadow: 0 3px 15px #32142d35; color: white; background: var(--np-dark); font-size: .94rem; font-weight: 670; text-decoration: none; }
  body:has(.np-dock:not([hidden])) { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}
@media (max-width: 480px) {
  .np-nav a[href="#katalog"], .np-header nav a[href$="#katalog"] { display: none; }
  .np-header nav a { font-size: .78rem; }
  .np-brand { font-size: 1.18rem; }
  .np-selected svg, .np-cart svg { width: 15px; }
  .np-header nav:has(.np-selected) a[href="#kontakt"] { display: none; }
  .np-hero { grid-template-columns: minmax(0,1fr) clamp(60px,20vw,86px); column-gap: 4px; padding-block: 22px 20px; }
  .np-hero-copy { display: contents; }
  .np-hero .np-eyebrow { grid-column: 1/-1; }
  .np-hero h1 { grid-column: 1; grid-row: 2; font-size: clamp(1.58rem,7vw,2.03rem); line-height: 1.06; }
  .np-hero-art { grid-column: 2; grid-row: 2; width: 100%; position: static; align-self: end; }
  .np-lead { grid-column: 1/-1; grid-row: 3; max-width: 42ch; margin-top: 12px; }
  .np-format, .np-chip { font-size: .78rem; padding-inline: 8px; }
  .np-format::before, .np-chip::before { display: none; }
  .np-card { gap: 12px; }
  .np-section-head { flex-wrap: wrap; align-items: baseline; gap: 5px; }
  .np-selection li { flex-wrap: wrap; gap: 4px 7px; }
}
@media (prefers-reduced-motion: no-preference) {
  .np-btn, .np-chip, .np-card { transition: background-color .14s ease, border-color .14s ease; }
}

@media (max-width: 360px) {
  .np-header > .np-wrap { gap: 6px; }
  .np-brand { font-size: 1.05rem; }
  .np-header .np-selected { gap: 4px; padding-inline: 8px; font-size: .74rem; }
}

#np-enquiry { border-top: 1px solid var(--np-rule); margin-top: 18px; padding-top: 3px; }
#np-enquiry > p, .np-form-note { max-width: 72ch; }
.np-form-note, .np-fields label small { color: var(--np-muted); font-weight: 400; }
.np-privacy { flex: 1 0 100%; min-width: 0; border-top: 1px solid var(--np-rule); padding-top: 12px; }
.np-privacy summary { width: fit-content; min-height: 44px; align-content: center; cursor: pointer; font-size: .92rem; font-weight: 650; }
.np-privacy > div { max-width: 78ch; }
.np-privacy h3 { margin: 1.1em 0 .4em; font-size: 1.05rem; }
.np-privacy p + p { margin-top: .55em; }

.np-refine { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr) auto; align-items: end; gap: 12px 20px; margin: 0 0 18px; }
.np-refine label { display: grid; gap: 4px; color: var(--np-muted); font-size: .85rem; font-weight: 650; }
.np-refine input, .np-refine select { width: 100%; min-width: 0; min-height: 44px; padding: 7px 12px; border: 1px solid var(--np-rule); border-radius: 10px; color: var(--np-ink); background: var(--np-paper); font-size: 1rem; font-weight: 400; }
.np-refine .np-link { min-height: 44px; }
#np-use-min { margin-top: 10px; background: var(--np-dark); color: var(--np-paper); }
@media (max-width: 580px) {
  .np-refine { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .np-refine label:first-child { grid-column: 1/-1; }
}
