/* ==========================================================================
   AWAAL — main.css
   Tokeny (docs/DESIGN_SYSTEM.md) → base → layout → header/footer → komponenty → strony.
   Mobile-first. Prefiks klas: aw-. Zero zależności.
   ========================================================================== */

/* ---------- 1. Fonty (self-hosted, latin + latin-ext) ---------- */
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/anton-400-latin-ext.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: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/anton-400-latin.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: "Space Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/spacemono-400-latin-ext.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: "Space Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/spacemono-400-latin.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: "Space Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/spacemono-700-latin-ext.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: "Space Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/spacemono-700-latin.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; }

/* ---------- 2. Tokeny ---------- */
:root {
  --aw-c-primary: #1a1a1a;
  --aw-c-primary-dark: #111111;
  --aw-c-primary-light: #2e2e2e;
  --aw-c-secondary: #3a3a3a;
  --aw-c-bg: #ffffff;
  --aw-c-surface: #f4f4f4;
  --aw-c-surface-2: #f7f7f7;
  --aw-c-text: #282828;
  --aw-c-heading: #1a1a1a;
  --aw-c-muted: #616161;
  --aw-c-disabled: #9b9b9b;
  --aw-c-border: #e6e6e6;
  --aw-c-on-dark: #f5f5f5;
  --aw-c-on-dark-muted: rgba(255, 255, 255, 0.6);
  --aw-c-sale: #e30613;
  --aw-c-success: #1d9a4b;
  --aw-c-error: #d32f2f;
  --aw-c-image-bg: #ededed;

  --aw-f-display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --aw-f-body: "Space Mono", ui-monospace, "Courier New", monospace;

  --aw-s-1: 4px; --aw-s-2: 8px; --aw-s-3: 12px; --aw-s-4: 16px; --aw-s-5: 20px; --aw-s-6: 24px;
  --aw-s-7: 32px; --aw-s-8: 40px; --aw-s-9: 48px; --aw-s-10: 64px; --aw-s-11: 80px; --aw-s-12: 120px;

  --aw-container: 1320px;
  --aw-gutter: 16px;
  --aw-header-h: 64px;
  --aw-announce-h: 40px;
  --aw-drawer-w: 400px;
  --aw-radius: 0;
  --aw-section-pad: var(--aw-s-10);

  --aw-ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --aw-t-fast: 0.15s;
  --aw-t-base: 0.25s;
  --aw-t-slow: 0.4s;

  --aw-z-dropdown: 100; --aw-z-sticky: 200; --aw-z-header: 300; --aw-z-drawer: 400; --aw-z-modal: 500;
}
@media (min-width: 900px) {
  :root { --aw-gutter: 20px; --aw-header-h: 80px; --aw-section-pad: var(--aw-s-11); }
}
@media (prefers-reduced-motion: reduce) {
  :root { --aw-t-fast: 0s; --aw-t-base: 0s; --aw-t-slow: 0s; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--aw-header-h) + 16px); }
body { margin: 0; background: var(--aw-c-bg); color: var(--aw-c-text); font: 400 16px/1.55 var(--aw-f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.is-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
img { background: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--aw-f-display); font-weight: 400; line-height: 1.1; color: var(--aw-c-heading); letter-spacing: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--aw-c-primary); outline-offset: 2px; }
::selection { background: var(--aw-c-primary); color: #fff; }
.aw-icon { flex: 0 0 auto; }

.aw-visually-hidden, .aw-skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.aw-skip:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 10px 14px; background: var(--aw-c-primary); color: #fff; }

/* ---------- 4. Layout ---------- */
.aw-container { width: 100%; max-width: var(--aw-container); margin-inline: auto; padding-inline: var(--aw-gutter); }
.aw-section { padding-block: var(--aw-section-pad); }
.aw-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--aw-s-4); margin-bottom: var(--aw-s-7); }
.aw-section__title { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; }
.aw-kicker { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--aw-c-muted); margin-bottom: var(--aw-s-4); }
.aw-kicker--light { color: var(--aw-c-on-dark-muted); }
.aw-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--aw-f-display); font-size: 16px; white-space: nowrap; border-bottom: 2px solid transparent; transition: border-color var(--aw-t-fast); }
.aw-link:hover { border-color: currentColor; }
.aw-link .aw-icon { transition: transform var(--aw-t-fast); }
.aw-link:hover .aw-icon { transform: translateX(3px); }

.aw-grid { display: grid; gap: var(--aw-s-7) var(--aw-s-5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aw-grid::before, .aw-grid::after { content: none !important; display: none !important; } /* clearfix WooCommerce (.products ul::before) psuł siatkę */
@media (min-width: 900px) { .aw-grid--products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .aw-grid--products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.aw-grid--posts { grid-template-columns: 1fr; }
@media (min-width: 700px) { .aw-grid--posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .aw-grid--posts { grid-template-columns: repeat(3, 1fr); } }

/* scroll-snap row (mobile) → grid (desktop) */
.aw-snap { display: flex; gap: var(--aw-s-4); overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin-inline: calc(var(--aw-gutter) * -1); padding-inline: var(--aw-gutter); padding-bottom: 4px; scrollbar-width: none; }
.aw-snap::-webkit-scrollbar { display: none; }
.aw-snap > * { scroll-snap-align: start; flex: 0 0 72%; }
@media (min-width: 600px) { .aw-snap > * { flex-basis: 44%; } }
@media (min-width: 900px) {
  .aw-snap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--aw-s-5); overflow: visible; margin-inline: 0; padding-inline: 0; }
  .aw-snap > * { flex: initial; }
}

/* ---------- 5. Buttons ---------- */
.aw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; font-family: var(--aw-f-display); font-size: 16px; line-height: 1; letter-spacing: 0.01em; border: 2px solid var(--aw-c-primary); border-radius: var(--aw-radius); background: var(--aw-c-primary); color: #fff; white-space: nowrap; transition: background var(--aw-t-fast) ease-in-out, color var(--aw-t-fast) ease-in-out, border-color var(--aw-t-fast); }
@media (min-width: 900px) { .aw-btn { min-height: 56px; padding-inline: 32px; } }
.aw-btn--primary:hover { background: var(--aw-c-secondary); border-color: var(--aw-c-secondary); }
.aw-btn--outline { background: transparent; color: var(--aw-c-primary); }
.aw-btn--outline:hover { background: var(--aw-c-primary); color: #fff; }
.aw-btn--white { background: #fff; border-color: #fff; color: var(--aw-c-primary); }
.aw-btn--white:hover { background: var(--aw-c-surface); border-color: var(--aw-c-surface); }
.aw-btn--outline-white { background: transparent; border-color: #fff; color: #fff; }
.aw-btn--outline-white:hover { background: #fff; color: var(--aw-c-primary); }
.aw-btn--ghost { min-height: 0; padding: 0; border: 0; background: none; color: var(--aw-c-primary); border-bottom: 2px solid var(--aw-c-primary); }
.aw-btn__icon { transition: transform var(--aw-t-fast) var(--aw-ease); }
.aw-btn:hover .aw-btn__icon { transform: translate(2px, -2px); }
.aw-btn:disabled, .aw-btn.is-disabled { background: var(--aw-c-disabled); border-color: var(--aw-c-disabled); color: #fff; cursor: not-allowed; }

.aw-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--aw-radius); color: var(--aw-c-primary); position: relative; transition: background var(--aw-t-fast); }
.aw-iconbtn:hover { background: var(--aw-c-surface); }

/* ---------- 6. Inputs ---------- */
.aw-input { width: 100%; min-height: 52px; padding: 0 18px; border: 2px solid var(--aw-c-border); border-radius: var(--aw-radius); background: #fff; transition: border-color var(--aw-t-fast); }
.aw-input::placeholder { color: var(--aw-c-disabled); }
.aw-input:focus { outline: none; border-color: var(--aw-c-primary); }
.aw-searchform { display: flex; gap: var(--aw-s-2); max-width: 560px; }
.aw-searchform .aw-btn { padding-inline: 20px; }

/* ---------- 7. Badge / price ---------- */
.aw-badge { display: inline-block; padding: 4px 10px; font-size: 12px; font-weight: 700; line-height: 1.2; letter-spacing: 0.02em; text-transform: uppercase; background: var(--aw-c-primary); color: #fff; }
.aw-badge--sale { background: var(--aw-c-sale); }
.aw-badge--soldout { background: var(--aw-c-disabled); }
.aw-price { font-weight: 700; font-size: 16px; }
.aw-price del { color: var(--aw-c-disabled); font-weight: 400; font-size: 0.875em; margin-right: 6px; }
.aw-price ins { color: var(--aw-c-sale); text-decoration: none; }

/* ---------- 8. Announcement bar ---------- */
.aw-announce { background: var(--aw-c-primary-dark); color: var(--aw-c-on-dark); font-size: 13px; line-height: 1.3; }
.aw-announce__inner { min-height: var(--aw-announce-h); display: flex; align-items: center; justify-content: center; }
.aw-announce__link { display: block; width: 100%; }
.aw-announce__list { display: flex; align-items: center; justify-content: center; gap: var(--aw-s-6); flex-wrap: nowrap; padding-block: 6px; }
.aw-announce__item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.aw-announce__item .aw-icon { color: var(--aw-c-success); }
.aw-announce__item--desktop { display: none; }
@media (min-width: 900px) { .aw-announce__item--desktop { display: inline-flex; } .aw-announce__list { gap: var(--aw-s-8); } }

/* ---------- 9. Header ---------- */
.aw-header { position: sticky; top: 0; z-index: var(--aw-z-header); background: #fff; border-bottom: 1px solid var(--aw-c-border); transition: box-shadow var(--aw-t-base); }
.aw-header.is-scrolled { box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08); }
.aw-header__inner { height: var(--aw-header-h); display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: var(--aw-s-3); }
.aw-header__logo { display: flex; justify-content: center; }
.aw-logo img { height: 34px; width: auto; }
.aw-header__actions { display: flex; align-items: center; gap: 2px; }
.aw-header__account { display: none; }
.aw-header__count { position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--aw-c-primary); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.aw-header__count.is-empty { display: none; }
.aw-nav { display: none; }
@media (min-width: 1024px) {
  .aw-header__inner { grid-template-columns: auto 1fr auto; gap: var(--aw-s-8); }
  .aw-header__burger { display: none; }
  .aw-header__logo { justify-content: flex-start; }
  .aw-logo img { height: 40px; }
  .aw-header__account { display: inline-flex; }
  .aw-nav { display: block; justify-self: center; }
  .aw-nav__list { display: flex; gap: var(--aw-s-2); }
  .aw-nav__list > li { position: relative; }
  .aw-nav__list > li > a { display: inline-flex; align-items: center; height: var(--aw-header-h); padding: 0 14px; font-family: var(--aw-f-display); font-size: 16px; color: var(--aw-c-primary); position: relative; }
  .aw-nav__list > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 22px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--aw-t-base) var(--aw-ease); }
  .aw-nav__list > li:hover > a::after, .aw-nav__list > li.current-menu-item > a::after, .aw-nav__list > li.current-menu-ancestor > a::after, .aw-nav__list > li:focus-within > a::after { transform: scaleX(1); }
  .aw-nav__list .sub-menu { position: absolute; top: 100%; left: 0; z-index: var(--aw-z-dropdown); min-width: 235px; padding: 12px 0; background: #fff; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity var(--aw-t-fast), transform var(--aw-t-fast), visibility 0s linear var(--aw-t-fast); }
  .aw-nav__list > li:hover > .sub-menu, .aw-nav__list > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .aw-nav__list .sub-menu a { display: block; padding: 9px 20px; font-family: var(--aw-f-display); font-size: 15px; color: var(--aw-c-muted); }
  .aw-nav__list .sub-menu a:hover { color: var(--aw-c-primary); background: var(--aw-c-surface-2); }
}

/* ---------- 10. Drawers / overlay ---------- */
.aw-drawer { position: fixed; inset: 0; z-index: var(--aw-z-drawer); visibility: hidden; pointer-events: none; }
.aw-drawer.is-open { visibility: visible; pointer-events: auto; }
.aw-drawer__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); opacity: 0; transition: opacity var(--aw-t-base); cursor: pointer; }
.aw-drawer.is-open .aw-drawer__overlay, .aw-search.is-open .aw-drawer__overlay { opacity: 1; }
.aw-drawer__panel { position: absolute; top: 0; bottom: 0; width: min(360px, 88vw); background: #fff; display: flex; flex-direction: column; z-index: 1; transition: transform var(--aw-t-slow) var(--aw-ease); }
.aw-drawer--left .aw-drawer__panel { left: 0; transform: translateX(-100%); }
.aw-drawer--right .aw-drawer__panel { right: 0; width: min(var(--aw-drawer-w), 100vw); transform: translateX(100%); }
.aw-drawer.is-open .aw-drawer__panel { transform: none; }
.aw-drawer__head { display: flex; align-items: center; justify-content: space-between; height: var(--aw-header-h); padding: 0 12px 0 20px; border-bottom: 1px solid var(--aw-c-border); }
.aw-drawer__head .aw-logo img { height: 30px; }
.aw-drawer__body { flex: 1; overflow-y: auto; padding: var(--aw-s-2) 0; }
.aw-drawer__foot { padding: var(--aw-s-5); border-top: 1px solid var(--aw-c-border); background: var(--aw-c-surface-2); }

.aw-navm__list > li > a { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; font-family: var(--aw-f-display); font-size: 18px; color: var(--aw-c-primary); border-bottom: 1px solid var(--aw-c-border); }
.aw-navm__list .sub-menu a { display: block; padding: 10px 20px 10px 32px; font-size: 14px; color: var(--aw-c-muted); }
.aw-navm__usp { display: grid; gap: 10px; font-size: 13px; }
.aw-navm__usp li { display: flex; align-items: center; gap: 10px; }
.aw-navm__usp .aw-icon { color: var(--aw-c-success); }

/* ---------- 11. Search overlay ---------- */
.aw-search { position: fixed; inset: 0; z-index: var(--aw-z-modal); visibility: hidden; pointer-events: none; }
.aw-search.is-open { visibility: visible; pointer-events: auto; }
.aw-search__panel { position: relative; z-index: 1; background: #fff; transform: translateY(-100%); transition: transform var(--aw-t-slow) var(--aw-ease); border-bottom: 1px solid var(--aw-c-border); }
.aw-search.is-open .aw-search__panel { transform: none; }
.aw-search__inner { position: relative; padding-block: var(--aw-s-8) var(--aw-s-7); }
.aw-search__label { display: block; font-family: var(--aw-f-display); font-size: clamp(24px, 3vw, 36px); margin-bottom: var(--aw-s-4); }
.aw-search__row { display: flex; align-items: center; gap: var(--aw-s-3); border-bottom: 2px solid var(--aw-c-primary); padding-bottom: 8px; }
.aw-search__input { flex: 1; min-width: 0; border: 0; background: none; font-size: clamp(18px, 2.5vw, 26px); padding: 10px 0; }
.aw-search__input:focus { outline: none; }
.aw-search__submit { display: none; }
@media (min-width: 700px) { .aw-search__submit { display: inline-flex; min-height: 48px; } }
.aw-search__hint { margin-top: var(--aw-s-4); font-size: 13px; color: var(--aw-c-muted); }
.aw-search__hint a { text-decoration: underline; text-underline-offset: 3px; margin-right: 4px; }
.aw-search__close { position: absolute; top: 12px; right: var(--aw-gutter); }

/* ---------- 12. Footer ---------- */
.aw-footer { background: var(--aw-c-primary-dark); color: var(--aw-c-on-dark); margin-top: auto; }
.aw-footer__trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--aw-s-4); padding-block: var(--aw-s-6); border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.aw-footer__trust-item { display: flex; align-items: center; gap: 10px; font-family: var(--aw-f-display); font-size: 15px; }
.aw-footer__trust-item .aw-icon { color: var(--aw-c-success); }
@media (min-width: 900px) { .aw-footer__trust { grid-template-columns: repeat(4, 1fr); } }
.aw-footer__grid { display: grid; gap: var(--aw-s-8) var(--aw-s-6); padding-block: var(--aw-s-9); }
@media (min-width: 700px) { .aw-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .aw-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; padding-block: var(--aw-s-10); } }
.aw-footer__col--about p { margin-top: var(--aw-s-4); font-size: 14px; color: var(--aw-c-on-dark-muted); max-width: 34ch; }
.aw-footer__social { display: flex; gap: 8px; margin-top: var(--aw-s-4); }
.aw-footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.2); transition: background var(--aw-t-fast); }
.aw-footer__social a:hover { background: rgba(255, 255, 255, 0.1); }
.aw-footer__title { font-size: 18px; color: #fff; margin-bottom: var(--aw-s-4); }
.aw-footer__list { display: grid; gap: 10px; font-size: 14px; }
.aw-footer__list a { color: var(--aw-c-on-dark); border-bottom: 1px solid transparent; transition: border-color var(--aw-t-fast); }
.aw-footer__list a:hover { border-color: currentColor; }
.aw-footer__list--contact li { display: flex; align-items: center; gap: 8px; }
.aw-footer__muted { color: var(--aw-c-on-dark-muted); }
.aw-footer__payments { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--aw-s-5); }
.aw-footer__payments span { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; padding: 4px 8px; border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; }
.aw-footer__bottom { display: grid; gap: 6px; padding-block: var(--aw-s-5); border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 12px; }
@media (min-width: 900px) { .aw-footer__bottom { grid-template-columns: auto 1fr; justify-content: space-between; } .aw-footer__bottom p:last-child { text-align: right; } }

/* ---------- 13. Back to top ---------- */
.aw-totop { position: fixed; right: 16px; bottom: 16px; z-index: var(--aw-z-sticky); width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--aw-c-primary); color: #fff; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity var(--aw-t-base), transform var(--aw-t-base), visibility 0s linear var(--aw-t-base); }
.aw-totop.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

/* ---------- 14. Product card (docs/ECOMMERCE_UX.md §1) ---------- */
.aw-card { position: relative; }
.aw-card__frame { position: relative; overflow: hidden; }
.aw-card__media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--aw-c-image-bg); }
.aw-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aw-card__img--alt { opacity: 0; transition: opacity var(--aw-t-slow) ease; }
.aw-card.is-soldout .aw-card__img { opacity: 0.6; }
.aw-card__badges { position: absolute; top: 12px; left: 12px; z-index: 1; display: grid; justify-items: start; gap: 4px; }
.aw-card__wish { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--aw-c-primary); transition: opacity var(--aw-t-fast), color var(--aw-t-fast); }
.aw-card__wish[aria-pressed="true"] { color: var(--aw-c-sale); }
.aw-card__wish[aria-pressed="true"] svg { fill: currentColor; }
.aw-card__actions { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; display: none; }
.aw-card__atc { width: 100%; min-height: 48px; padding-inline: 12px; }
.aw-card__body { display: grid; gap: 6px; padding-top: var(--aw-s-4); }
.aw-card__brand { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--aw-c-muted); }
.aw-card__title { font-size: 16px; line-height: 1.25; min-height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 600px) { .aw-card__title { font-size: 18px; } }
@media (min-width: 900px) { .aw-card__title { font-size: 20px; } }
.aw-card__title a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.aw-card .aw-price { font-size: 15px; }
@media (min-width: 900px) { .aw-card .aw-price { font-size: 16px; } }
.aw-card__sizes { font-size: 12px; color: var(--aw-c-muted); letter-spacing: 0.04em; word-spacing: 4px; }
.aw-card__media:focus-visible, .aw-card__title a:focus-visible { outline: 2px solid var(--aw-c-heading); outline-offset: 2px; }
@media (hover: hover) and (min-width: 900px) {
  .aw-card__actions { display: block; transform: translateY(120%); opacity: 0; transition: transform var(--aw-t-base) var(--aw-ease), opacity 0.2s; }
  .aw-card__wish { opacity: 0; }
  .aw-card:hover .aw-card__img--alt, .aw-card:focus-within .aw-card__img--alt { opacity: 1; }
  .aw-card:hover .aw-card__actions, .aw-card:focus-within .aw-card__actions { transform: none; opacity: 1; }
  .aw-card:hover .aw-card__wish, .aw-card:focus-within .aw-card__wish, .aw-card__wish[aria-pressed="true"] { opacity: 1; }
}

/* Pasek trybu podglądu (inc/preview.php) */
.aw-preview-bar { padding: 8px var(--aw-gutter); background: #fff3c4; color: #5c4400; font-size: 13px; line-height: 1.4; text-align: center; }

/* ---------- 15. Strony statyczne / blog ---------- */
.aw-page { padding-block: var(--aw-s-8) var(--aw-section-pad); }
.aw-page--narrow { max-width: 840px; }
.aw-page__head { margin-bottom: var(--aw-s-7); }
.aw-page__title { font-size: clamp(30px, 4vw, 48px); line-height: 1.1; }
.aw-prose { max-width: 760px; font-size: 16px; }
.aw-prose > * + * { margin-top: 1.2em; }
.aw-prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin-top: 1.6em; }
.aw-prose h3 { font-size: 22px; margin-top: 1.4em; }
.aw-prose ul, .aw-prose ol { padding-left: 1.3em; list-style: disc; }
.aw-prose ol { list-style: decimal; }
.aw-prose li + li { margin-top: 0.4em; }
.aw-prose a { text-decoration: underline; text-underline-offset: 3px; }
.aw-prose a:hover { color: var(--aw-c-muted); }
.aw-prose blockquote { margin: 0; padding-left: 20px; border-left: 3px solid var(--aw-c-primary); font-family: var(--aw-f-display); font-size: 22px; line-height: 1.35; }
.aw-prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.aw-prose th, .aw-prose td { padding: 10px 12px; border: 1px solid var(--aw-c-border); text-align: left; }
.aw-prose th { background: var(--aw-c-surface); font-weight: 700; }
.aw-prose details { border-top: 1px solid var(--aw-c-border); border-bottom: 1px solid var(--aw-c-border); padding: 0; }
.aw-prose details + details { border-top: 0; }
.aw-prose summary { cursor: pointer; padding: 18px 0; font-family: var(--aw-f-display); font-size: 18px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.aw-prose summary::-webkit-details-marker { display: none; }
.aw-prose summary::after { content: "+"; font-size: 22px; line-height: 1; }
.aw-prose details[open] summary::after { content: "–"; }
.aw-prose details > *:not(summary) { padding-bottom: 20px; }
.aw-prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.aw-prose .wp-block-button__link { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; font-family: var(--aw-f-display); font-size: 16px; background: var(--aw-c-primary); color: #fff; border: 2px solid var(--aw-c-primary); text-decoration: none; }
.aw-prose .is-style-outline .wp-block-button__link { background: transparent; color: var(--aw-c-primary); }
.aw-prose .wp-block-columns { display: grid; gap: 24px; }
@media (min-width: 800px) { .aw-prose .wp-block-columns { grid-template-columns: repeat(var(--cols, 2), 1fr); } }
.aw-prose figure { margin: 0; }
.aw-prose img { width: 100%; }

.aw-post__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--aw-c-image-bg); }
.aw-post__media img { width: 100%; height: 100%; object-fit: cover; }
.aw-post__body { padding-top: var(--aw-s-4); display: grid; gap: 8px; }
.aw-post__title { font-size: 22px; line-height: 1.2; }
.aw-post__excerpt { font-size: 14px; color: var(--aw-c-muted); }
.aw-post__date { font-size: 12px; color: var(--aw-c-muted); }
.aw-post__hero { margin: 0 0 var(--aw-s-7); }
.aw-pagination { margin-top: var(--aw-s-9); font-size: 14px; }
.aw-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.aw-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--aw-c-border); }
.aw-pagination .page-numbers.current { background: var(--aw-c-primary); color: #fff; border-color: var(--aw-c-primary); }
.aw-empty { display: grid; gap: var(--aw-s-5); justify-items: start; }
.aw-404 { display: grid; gap: var(--aw-s-5); justify-items: start; }
.aw-404__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* WordPress admin bar */
.admin-bar .aw-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .aw-header { top: 46px; } }
