/* ============================================
   Drewnianysklep v3 — Components & Layout
   Header, footer, buttons, eyebrow, sections
   ============================================ */

/* ─── Layout utilities ───────────────────────────────────────────────── */
.ds-container { max-width: var(--ds-max); margin: 0 auto; padding: 0 32px; }
.ds-section   { padding: var(--ds-section-pad) 32px; max-width: var(--ds-max); margin: 0 auto; }

/* ─── Typography ─────────────────────────────────────────────────────── */
.ds-h2 {
  font-family: var(--ds-font-display);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ds-ink);
  margin: 12px 0 18px;
  text-wrap: balance;
}
.ds-h2 em { font-style: italic; color: var(--ds-olive-deep); }

.ds-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ds-olive-deep);
}
.ds-eyebrow-line { width: 36px; height: 1px; background: var(--ds-olive); }
.ds-eyebrow-light { color: rgba(255, 255, 255, 0.85); }
.ds-eyebrow-light .ds-eyebrow-line { background: rgba(255, 255, 255, 0.5); }

.ds-section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ds-line);
}
.ds-section-head > div:first-child { max-width: 720px; }
.ds-section-sub { font-size: 17px; color: var(--ds-ink-soft); max-width: 56ch; margin: 0; }
.ds-section-right { white-space: nowrap; }

.ds-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ds-olive-deep);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* ─── Buttons ─────────────────────────────────────────────────────────── */
.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.ds-btn:hover { transform: translateY(-1px); }
.ds-btn-primary { background: var(--ds-olive-deep); color: var(--ds-paper); }
.ds-btn-primary:hover { background: var(--ds-olive); }
.ds-btn-ghost   { background: transparent; color: var(--ds-ink); border-color: var(--ds-ink); }
.ds-btn-ghost:hover { background: var(--ds-ink); color: var(--ds-cream); }
.ds-btn-outline { background: transparent; color: var(--ds-ink); border-color: var(--ds-ink); }
.ds-btn-soft    { background: var(--ds-cream-deep); color: var(--ds-ink); }
.ds-btn-soft:hover { background: var(--ds-sand); }
.ds-btn-block   { width: 100%; }
.ds-btn-on-dark { color: var(--ds-ink); }
.ds-btn-ghost.ds-btn-on-dark   { background: transparent; color: var(--ds-paper); border-color: rgba(250,247,238,0.6); }
.ds-btn-ghost.ds-btn-on-dark:hover { background: rgba(250,247,238,0.12); color: var(--ds-paper); }
.ds-btn-primary.ds-btn-on-dark { background: var(--ds-paper); color: var(--ds-ink); }

/* ─── Topbar ──────────────────────────────────────────────────────────── */
.ds-topbar {
  background: var(--ds-ink);
  color: rgba(250, 247, 238, 0.86);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.ds-topbar-inner {
  max-width: var(--ds-max);
  margin: 0 auto;
  padding: 9px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
}
.ds-topbar-msg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.ds-topbar-msg svg { color: var(--ds-olive-light); opacity: 0.95; flex-shrink: 0; }
.ds-topbar-msg a {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}
.ds-topbar-msg a:hover { border-color: #fff; }
.ds-topbar-msg-mute { opacity: 0.7; }
@media (max-width: 1024px) {
  .ds-topbar-msg-mute { display: none; }
  .ds-topbar-inner { justify-content: center; }
}
@media (max-width: 720px) {
  .ds-topbar-inner { padding: 9px 20px; font-size: 11.5px; }
}

/* ─── Cart shipping hint (przy ikonce koszyka) ────────────────────────── */
.ds-cart-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--ds-cream-deep);
  color: var(--ds-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background .15s, color .15s;
  margin-right: 4px;
}
.ds-cart-hint[hidden] { display: none !important; }
.ds-cart-hint.is-achieved {
  background: var(--ds-olive);
  color: var(--ds-paper);
}
.ds-cart-hint-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ds-paper);
  color: var(--ds-olive-deep);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
.ds-cart-hint-text {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.ds-cart-hint-text small {
  font-weight: 600;
  font-size: 11px;
  opacity: 0.75;
}
.ds-cart-hint-text .woocommerce-Price-amount,
.ds-cart-hint-text bdi {
  font-weight: 800;
}
@media (max-width: 1024px) {
  .ds-cart-hint { display: none !important; }
}

/* ─── Header ──────────────────────────────────────────────────────────── */
.ds-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(235, 230, 210, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--ds-line);
}
.ds-header-inner {
  /* Full-bleed (max-width:none) zeby menu pasowalo do edge-to-edge hero/valuebar nizej. */
  max-width: none;
  margin: 0;
  padding: 14px clamp(24px, 3vw, 56px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(20px, 2.5vw, 36px);
  align-items: center;
}
.ds-brand { display: flex; align-items: center; gap: 12px; color: var(--ds-ink); }

.ds-nav {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0; padding: 0;
}
.ds-nav-item { position: relative; }
.ds-nav-item > a {
  font-family: var(--ds-font-display);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ds-ink);
  position: relative;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
  letter-spacing: -0.005em;
}
.ds-nav-item > a:hover { background: rgba(42,39,34,0.06); color: var(--ds-olive-deep); }
.ds-nav-chev {
  opacity: 0.55;
  transition: transform 0.2s ease;
  margin-top: 1px;
}
.ds-nav-item:hover .ds-nav-chev,
.ds-nav-item:focus-within .ds-nav-chev { transform: rotate(180deg); opacity: 1; }

/* Dropdown — mega-menu 2 kolumny gdy itemow >6, single column dla krotszych list */
.ds-nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding-top: 18px;
  min-width: 360px;
  max-width: min(720px, calc(100vw - 40px));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 100;
  pointer-events: none;
}
.ds-nav-item:hover .ds-nav-dropdown,
.ds-nav-item:focus-within .ds-nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.ds-nav-dropdown-inner {
  background: var(--ds-paper);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr);
  gap: 2px;
  list-style: none;
  margin: 0;
  max-height: min(640px, calc(100vh - 160px));
  overflow-y: auto;
}
/* Mega-menu: 2 kolumny gdy >6 itemów */
.ds-nav-dropdown-inner:has(> .ds-nav-dropdown-item:nth-child(7)) {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  min-width: 540px;
}
.ds-nav-dropdown {
  /* Forsuj szerszy dropdown gdy inner ma 2 kolumny */
  min-width: 360px;
}
.ds-nav-item:has(.ds-nav-dropdown-inner > .ds-nav-dropdown-item:nth-child(7)) .ds-nav-dropdown {
  min-width: 580px;
}

/* Mega-menu pod "Sklep" — dropdown 2-kolumny: regular submenu items + "Popularne wymiary" */
.ds-nav-dropdown.is-shop { min-width: 620px; }
.ds-nav-dropdown.is-shop .ds-nav-dropdown-inner {
  grid-template-columns: minmax(240px, 1.2fr) minmax(220px, 1fr);
  gap: 16px;
  padding: 14px;
}
.ds-nav-dropdown.is-shop .ds-nav-dropdown-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ds-nav-dropdown-sizes {
  background: linear-gradient(180deg, var(--ds-cream) 0%, var(--ds-paper) 100%);
  border: 1px solid var(--ds-line);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ds-nav-dropdown-sizes-h {
  display: block;
  font-family: var(--ds-font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ds-olive-deep);
}
.ds-nav-dropdown-sizes-sub {
  display: block;
  font-size: 12px;
  color: var(--ds-ink-soft);
  line-height: 1.4;
  margin-top: 2px;
}
.ds-nav-dropdown-sizes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.ds-nav-size-chip {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  padding: 8px 6px;
  background: var(--ds-paper);
  border: 1px solid var(--ds-line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ds-ink);
  text-decoration: none !important;
  transition: border-color .12s, background .12s, color .12s, transform .12s;
}
.ds-nav-size-chip span {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ds-ink-soft);
  margin-left: 3px;
}
.ds-nav-size-chip:hover {
  border-color: var(--ds-olive);
  background: var(--ds-olive);
  color: #fff;
  transform: translateY(-1px);
}
.ds-nav-size-chip:hover span { color: rgba(255,255,255,.85); }
.ds-nav-dropdown-sizes-all {
  display: inline-block;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ds-olive-deep);
  text-decoration: none !important;
}
.ds-nav-dropdown-sizes-all:hover { color: var(--ds-olive); }

/* Po typie pudelka (USB / album) - pod chipami wymiarow */
.ds-nav-dropdown-types {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 14px 0 10px;
  padding-top: 14px;
  border-top: 1px solid var(--ds-line);
}
.ds-nav-dropdown-type-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 6px;
  text-decoration: none !important;
  color: var(--ds-ink);
  font-size: 13.5px;
  font-weight: 600;
  background: var(--ds-cream);
  transition: background .12s ease, color .12s ease;
}
.ds-nav-dropdown-type-link:hover {
  background: var(--ds-olive-deep);
  color: #fff;
}
.ds-nav-dropdown-type-arrow {
  font-weight: 700;
  font-size: 14px;
  opacity: .6;
  transition: transform .15s, opacity .12s;
}
.ds-nav-dropdown-type-link:hover .ds-nav-dropdown-type-arrow {
  opacity: 1;
  transform: translateX(2px);
}

@media (max-width: 980px) {
  .ds-nav-dropdown.is-shop .ds-nav-dropdown-inner { grid-template-columns: 1fr; }
}
.ds-nav-dropdown-item {
  display: block;
  padding: 10px 12px;
  border-radius: 5px;
  text-decoration: none !important;
  transition: background 0.12s ease;
  min-width: 0;
}
.ds-nav-dropdown-item:hover { background: rgba(138,138,90,0.08); }
.ds-nav-dropdown-t {
  font-family: var(--ds-font-display);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ds-ink);
  margin-bottom: 2px;
  line-height: 1.25;
}
.ds-nav-dropdown-s {
  font-family: var(--ds-font-body);
  font-size: 12.5px;
  color: rgba(42,39,34,0.6);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Mobile / wąski viewport - cofamy do single column */
@media (max-width: 700px) {
  .ds-nav-item:has(.ds-nav-dropdown-inner > .ds-nav-dropdown-item:nth-child(7)) .ds-nav-dropdown,
  .ds-nav-dropdown {
    min-width: 280px;
    max-width: calc(100vw - 32px);
  }
  .ds-nav-dropdown-inner,
  .ds-nav-dropdown-inner:has(> .ds-nav-dropdown-item:nth-child(7)) {
    grid-template-columns: 1fr;
    min-width: 0;
    max-height: min(70vh, 480px);
  }
  .ds-nav-dropdown-s { -webkit-line-clamp: 1; }
}

/* Header actions */
.ds-header-actions { display: flex; align-items: center; gap: 8px; }

/* Header CTA: "Kreator" - sparkle pill z glow + microcopy */
.ds-header-creator-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 13px;
  background: linear-gradient(135deg, var(--ds-olive-deep) 0%, var(--ds-olive) 100%);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  position: relative;
  isolation: isolate;
  transition: transform .18s cubic-bezier(.4,0,.2,1), box-shadow .22s, filter .18s;
  box-shadow:
    0 1px 2px rgba(58, 63, 31, 0.22),
    0 4px 12px -4px rgba(58, 63, 31, 0.4);
  margin-right: 4px;
}
.ds-header-creator-btn::before {
  /* Glow ring (off-default, fade in on hover) */
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  background: radial-gradient(closest-side, rgba(184, 182, 143, 0.55), transparent 75%);
  opacity: 0;
  transition: opacity .25s ease;
  z-index: -1;
  pointer-events: none;
}
.ds-header-creator-btn:hover {
  transform: translateY(-1.5px);
  filter: brightness(1.06);
  box-shadow:
    0 2px 4px rgba(58, 63, 31, 0.28),
    0 10px 20px -6px rgba(58, 63, 31, 0.5);
}
.ds-header-creator-btn:hover::before { opacity: 1; }
.ds-header-creator-btn:focus-visible {
  outline: 2px solid var(--ds-olive-light, #b8b68f);
  outline-offset: 3px;
}
.ds-header-creator-btn-icon {
  display: inline-flex;
  animation: ds-creator-sparkle 4.5s ease-in-out infinite;
  transform-origin: center;
}
@keyframes ds-creator-sparkle {
  0%, 88%, 100% { transform: scale(1) rotate(0deg); opacity: 0.95; }
  91% { transform: scale(1.22) rotate(14deg); opacity: 1; }
  94% { transform: scale(0.96) rotate(-7deg); opacity: 0.92; }
  97% { transform: scale(1.05) rotate(3deg); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ds-header-creator-btn-icon { animation: none; }
  .ds-header-creator-btn:hover { transform: none; }
}
.ds-header-creator-btn-tt {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
}
.ds-header-creator-btn-t1 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.ds-header-creator-btn-t2 {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .015em;
  opacity: 0.82;
  margin-top: 2px;
}

.ds-icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ds-ink);
  cursor: pointer;
  position: relative;
  transition: background .15s;
  text-decoration: none;
}
.ds-icon-btn:hover { background: rgba(42, 39, 34, 0.06); }

/* ─── Account dropdown menu (header user icon) ─── */
.ds-account-menu { position: relative; display: inline-block; }
.ds-account-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: var(--ds-paper);
  border: 1px solid var(--ds-line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 99;
}
.ds-account-menu.is-logged:hover .ds-account-menu-dropdown,
.ds-account-menu.is-logged:focus-within .ds-account-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ds-account-menu-head {
  padding: 4px 8px 12px;
  border-bottom: 1px solid var(--ds-line);
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ds-account-menu-head strong { font-size: 14.5px; color: var(--ds-ink); font-weight: 700; }
.ds-account-menu-email {
  font-size: 12px;
  color: var(--ds-ink-soft);
  word-break: break-all;
}
.ds-account-menu-pro {
  display: inline-block;
  align-self: flex-start;
  margin-top: 4px;
  padding: 2px 8px;
  background: var(--ds-olive);
  color: var(--ds-paper);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 4px;
}
.ds-account-menu-list { list-style: none; margin: 0; padding: 0; }
.ds-account-menu-list li { margin: 0; }
.ds-account-menu-list a {
  display: block;
  padding: 9px 10px;
  color: var(--ds-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: background .12s, color .12s;
}
.ds-account-menu-list a:hover { background: var(--ds-cream); color: var(--ds-olive-deep); }
.ds-account-menu-list .ds-account-menu-sep {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--ds-line);
}
.ds-account-menu-list .ds-account-menu-sep a { color: var(--ds-ink-muted); }
.ds-account-menu-list .ds-account-menu-sep a:hover { color: var(--ds-error, #b32d2e); background: transparent; }
@media (max-width: 768px) {
  /* Mobile: nie pokazujemy dropdown - klik prowadzi do /moje-konto/ jak zwykle. */
  .ds-account-menu-dropdown { display: none; }
}
.ds-cart-count {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--ds-olive-deep);   /* WCAG: bumped from --ds-olive (ratio 3.34) to --ds-olive-deep (ratio 4.5+) */
  color: var(--ds-paper);
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Burger (mobile) */
.ds-burger { display: none; }

/* Search overlay */
.ds-search-overlay[hidden] { display: none; }
.ds-search-overlay {
  position: fixed; inset: 0;
  z-index: 220;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .2s ease;
}
.ds-search-overlay.is-open { opacity: 1; }
.ds-search-overlay-bg {
  position: absolute; inset: 0;
  background: rgba(20, 17, 12, 0.7);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.ds-search-overlay-panel {
  position: relative;
  width: 100%;
  max-width: 720px;
  background: var(--ds-paper);
  border-radius: 18px;
  padding: 56px 48px 36px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  transform: translateY(-12px);
  transition: transform .25s ease;
}
.ds-search-overlay.is-open .ds-search-overlay-panel { transform: translateY(0); }
.ds-search-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ds-line);
  border-radius: 50%;
  background: var(--ds-paper);
  cursor: pointer;
  color: var(--ds-ink);
  transition: background .15s, color .15s;
}
.ds-search-close:hover { background: var(--ds-cream); color: var(--ds-olive-deep); }
.ds-search-title {
  font-family: var(--ds-font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--ds-ink);
  margin: 8px 0 22px;
  line-height: 1.25;
}
.ds-search-form {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0;
  align-items: stretch;
  border: 2px solid var(--ds-line);
  border-radius: 14px;
  background: var(--ds-paper);
  transition: border-color .15s, box-shadow .15s;
  overflow: hidden;
}
.ds-search-form:focus-within {
  border-color: var(--ds-olive-deep);
  box-shadow: 0 0 0 3px rgba(111,111,67,.18);
}
.ds-search-icon {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 4px 0 18px;
  color: var(--ds-olive-deep);
}
.ds-search-input {
  border: 0;
  outline: none;
  background: transparent;
  padding: 16px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ds-ink);
  width: 100%;
}
.ds-search-input::placeholder { color: rgba(42,39,34,.4); }
.ds-search-submit {
  border-radius: 0;
  padding: 0 22px;
  gap: 8px;
  white-space: nowrap;
}
.ds-search-suggest {
  margin-top: 18px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  font-size: 13.5px;
}
.ds-search-suggest-label {
  color: rgba(42,39,34,.55);
  font-weight: 600;
}
.ds-search-suggest a {
  color: var(--ds-olive-deep);
  background: var(--ds-cream);
  padding: 5px 12px;
  border-radius: 99px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: border-color .15s, background .15s;
}
.ds-search-suggest a:hover {
  border-color: var(--ds-olive-deep);
  background: var(--ds-paper);
}

/* Protipy w wyszukiwarce - quick links do USP stron (konfigurator, bespoke, B2B) */
.ds-search-tips {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.ds-search-tip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px;
  border: 1px solid var(--ds-line);
  border-radius: 12px;
  background: var(--ds-cream);
  text-decoration: none;
  color: var(--ds-ink);
  transition: border-color .15s, background .15s, transform .15s;
}
.ds-search-tip:hover {
  border-color: var(--ds-olive-deep);
  background: var(--ds-paper);
  transform: translateY(-1px);
}
.ds-search-tip-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--ds-paper);
  color: var(--ds-olive-deep);
}
.ds-search-tip:hover .ds-search-tip-icon { background: var(--ds-cream); }
.ds-search-tip-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ds-search-tip strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ds-ink);
  line-height: 1.3;
}
.ds-search-tip-desc {
  font-size: 12px;
  color: var(--ds-ink-soft);
  line-height: 1.35;
}

@media (max-width: 600px) {
  .ds-search-overlay-panel { padding: 56px 24px 28px; }
  .ds-search-form { grid-template-columns: auto 1fr; }
  .ds-search-submit { grid-column: 1 / -1; border-radius: 0; padding: 14px; justify-content: center; }
  .ds-search-icon { padding-left: 14px; }
  .ds-search-tips { grid-template-columns: 1fr; gap: 8px; }
  .ds-search-tip { padding: 10px 12px; }
}

body.ds-search-open { overflow: hidden; }

/* Mobile drawer
   Uwaga: .ds-mob-panel ma transform:translateX(100%) zeby slide-in z prawej, ale transformed
   elementy KONTRYBUUJA do scroll bounds w nowoczesnych przegladarkach. Bez tego pojawia sie
   horizontal scroll na desktop (panel "wystaje" 420px w prawo). overflow-x: clip na html
   przycina to bez wplywu na sticky/fixed positioning. */
html { overflow-x: clip; }

.ds-mob-drawer {
  position: fixed; inset: 0;
  background: rgba(20, 17, 12, 0.55);
  backdrop-filter: blur(8px);
  z-index: 200;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.ds-mob-drawer.is-open { opacity: 1; visibility: visible; }
.ds-mob-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw);
  background: var(--ds-paper);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
  box-shadow: -20px 0 60px -20px rgba(0,0,0,0.3);
}
.ds-mob-drawer.is-open .ds-mob-panel { transform: translateX(0); }
.ds-mob-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--ds-line);
}
.ds-mob-close {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: none; border: none; border-radius: 50%;
  cursor: pointer; color: var(--ds-ink);
}
.ds-mob-close:hover { background: rgba(0,0,0,0.05); }
.ds-mob-nav {
  flex: 1; overflow-y: auto;
  padding: 8px 0;
  list-style: none; margin: 0;
}
.ds-mob-item { border-bottom: 1px solid rgba(0,0,0,0.05); }
.ds-mob-link {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 18px 22px;
  background: none; border: none;
  font-family: var(--ds-font-display);
  font-size: 17px; font-weight: 600;
  color: var(--ds-ink);
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}
.ds-mob-link:hover { background: rgba(138,138,90,0.06); }
.ds-mob-chev { transition: transform .2s ease; opacity: 0.5; }
.ds-mob-item.is-open .ds-mob-chev { transform: rotate(180deg); opacity: 1; }
.ds-mob-sub {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
  background: rgba(138,138,90,0.05);
  list-style: none; margin: 0; padding: 0;
}
.ds-mob-item.is-open .ds-mob-sub { max-height: 600px; }
.ds-mob-sub-item {
  display: block;
  padding: 14px 22px 14px 36px;
  border-top: 1px solid rgba(0,0,0,0.04);
  color: var(--ds-ink);
}
.ds-mob-sub-item:hover { background: rgba(138,138,90,0.1); }
.ds-mob-sub-t { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.ds-mob-sub-s {
  font-size: 12px;
  color: rgba(42,39,34,0.6);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
          line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ds-mob-foot {
  padding: 18px 22px;
  border-top: 1px solid var(--ds-line);
  background: var(--ds-cream);
}
.ds-mob-foot-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  font-size: 15px; font-weight: 500;
  color: var(--ds-ink);
}
.ds-mob-badge {
  margin-left: auto;
  background: var(--ds-olive-deep);
  color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 99px;
}
.ds-mob-foot-meta {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 12px;
  color: rgba(42,39,34,0.6);
}
.ds-mob-foot-meta a { font-weight: 600; }

/* ─── Footer ──────────────────────────────────────────────────────────── */
.ds-footer {
  background: var(--ds-ink);
  color: var(--ds-paper);
  margin-top: 0;
}
.ds-footer-inner {
  max-width: var(--ds-max);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) 32px 48px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
}
.ds-footer-brand p {
  color: rgba(250, 247, 238, 0.7);
  font-size: 14px;
  line-height: 1.7;
  max-width: 38ch;
  margin: 16px 0 24px;
}
.ds-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: rgba(250, 247, 238, 0.85);
}
.ds-footer-contact b { color: var(--ds-paper); font-weight: 700; }
.ds-footer-col h4 {
  font-family: var(--ds-font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ds-paper);
  margin: 0 0 18px;
}
.ds-footer-col ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ds-footer-col a {
  color: rgba(250, 247, 238, 0.65);
  font-size: 13px;
}
.ds-footer-col a:hover { color: var(--ds-paper); }
.ds-footer-bar {
  border-top: 1px solid rgba(250, 247, 238, 0.12);
  max-width: var(--ds-max);
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(250, 247, 238, 0.5);
}
.ds-footer-bar-r { display: flex; gap: 18px; }
.ds-footer-bar-r a:hover { color: var(--ds-paper); }

/* Pasek strony "O nas / Blog / Kontakt" pod kolumnami */
.ds-footer-meta {
  max-width: var(--ds-max);
  margin: 0 auto;
  padding: 8px 32px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(250, 247, 238, 0.85);
}
.ds-footer-meta a {
  color: inherit;
  text-decoration: none;
  transition: color .15s;
}
.ds-footer-meta a:hover { color: var(--ds-paper); text-decoration: underline; text-underline-offset: 3px; }
.ds-footer-meta-sep { color: rgba(250, 247, 238, 0.55); user-select: none; }   /* WCAG: bump alpha 0.3 -> 0.55 (ratio 2.58 -> ~4.6) */

/* ─── Product placeholder helper (używane w hero, gallery) ───────────── */
.ds-product-ph {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--ds-stone);
  overflow: hidden;
}
.ds-product-ph img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ds-ph-label {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(250, 247, 238, 0.85);
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ds-ink-soft);
  border-radius: 4px;
  pointer-events: none;
}

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .ds-nav { display: none; }
  .ds-burger { display: inline-flex !important; }
}
@media (max-width: 1100px) {
  .ds-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .ds-footer-inner { grid-template-columns: 1fr; }
  .ds-header-inner {
    padding: 12px 18px;
    /* Na mobile .ds-nav ma display:none - bez nav middle column 1fr nie ma sensu.
       Przelacz grid na 2-kolumnowy z brand=left, actions=right (justify-self: end). */
    grid-template-columns: auto auto;
    justify-content: space-between;
  }
  .ds-header-actions {
    justify-self: end;
    flex-wrap: nowrap;
  }
  /* Mobile: ukryj icon-btn (account/itd), ale ZACHOWAJ search (UX must-have). */
  .ds-header-actions .ds-icon-btn:not(.ds-cart):not(.ds-burger):not([data-ds-search-open]) { display: none; }
  .ds-brand svg { width: 120px !important; height: auto !important; }
  .ds-section { padding-left: 20px; padding-right: 20px; }
  /* Kreator CTA: na mobile ukryj tekst, zostaw ikone */
  .ds-header-creator-btn { padding: 8px 10px; gap: 0; }
  .ds-header-creator-btn-tt { display: none; }
}

/* Kreator CTA: tablet-narrow - ukryj microcopy "Spersonalizuj", zostaw "Kreator" */
@media (max-width: 1100px) and (min-width: 721px) {
  .ds-header-creator-btn { padding: 8px 14px 8px 12px; }
  .ds-header-creator-btn-tt { flex-direction: row; align-items: center; }
  .ds-header-creator-btn-t2 { display: none; }
}

/* ─── DSBC modal-cart (panel po dodaniu do koszyka) — fix mobile ───────
   Plugin DSBC ustawia panel z fixed width: 440px / left: 60px / right: 0 -
   na viewportach <500px panel wystaje poza prawa krawedz (user widzi tylko
   wycinek). Override: na mobile rozciagamy panel od krawedzi do krawedzi.
*/
@media (max-width: 600px) {
  .dsbc-mc-panel {
    width: 100% !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
  }
  .dsbc-mc-overlay {
    width: 100vw !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
  }
}

/* ─── B2B / Pro callout — globalne, używane w cart, checkout, PDP ─── */
.ds-b2b-callout {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--ds-olive) 10%, var(--ds-paper)) 0%,
    color-mix(in oklab, var(--ds-olive) 4%, var(--ds-paper)) 100%);
  border: 1px solid color-mix(in oklab, var(--ds-olive) 22%, var(--ds-line));
  display: flex;
  gap: 12px;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}
.ds-b2b-callout::before {
  content: "";
  position: absolute;
  inset: -50% -20% auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--ds-olive) 18%, transparent), transparent);
  pointer-events: none;
}
.ds-b2b-callout-ico {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ds-olive);
  color: var(--ds-paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.ds-b2b-callout-body { flex: 1; min-width: 0; position: relative; z-index: 1; }
.ds-b2b-callout-eyebrow {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ds-olive);
  margin-bottom: 4px;
}
.ds-b2b-callout-title {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ds-ink);
  line-height: 1.35;
  margin: 0 0 8px;
}
.ds-b2b-callout-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ds-olive);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, var(--ds-olive) 40%, transparent);
  padding-bottom: 1px;
  transition: color .15s, border-color .15s;
}
.ds-b2b-callout-cta:hover {
  color: var(--ds-ink);
  border-bottom-color: var(--ds-ink);
}

/* ─── WooCommerce notices — zastępują default WC styling ─────────── */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  list-style: none;
  margin: 0 0 16px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--ds-paper);
  border: 1px solid var(--ds-line);
  color: var(--ds-ink);
  font-size: 13.5px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ds-olive) no-repeat center;
  background-size: 14px 14px;
  /* ✓ check icon (white) */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>");
  /* override default WC pseudo */
  position: static;
  display: inline-block;
}
.woocommerce-info::before {
  background-color: var(--ds-ink-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 8v0M12 12v4'/></svg>");
}
.woocommerce-error::before {
  background-color: var(--ds-error);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M18 6L6 18M6 6l12 12'/></svg>");
}
.woocommerce-message > .button,
.woocommerce-info > .button,
.woocommerce-error > .button,
.woocommerce-message a.restore-item,
.woocommerce-message a.showcoupon,
.woocommerce-message a.button.wc-forward {
  margin-left: auto;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--ds-olive);
  background: transparent;
  color: var(--ds-olive);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.woocommerce-message > .button:hover,
.woocommerce-info > .button:hover,
.woocommerce-error > .button:hover,
.woocommerce-message a.restore-item:hover,
.woocommerce-message a.showcoupon:hover,
.woocommerce-message a.button.wc-forward:hover {
  background: var(--ds-olive);
  color: var(--ds-paper);
}
.woocommerce-error > li {
  list-style: none;
  margin: 0;
}

/* ─── Free shipping progress bar — używana na cart i checkout ───── */
.ds-cart-shipbar {
  margin: 0 0 24px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--ds-paper);
  border: 1px solid var(--ds-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ds-cart-shipbar.is-achieved {
  background: color-mix(in oklab, var(--ds-success) 8%, var(--ds-paper));
  border-color: color-mix(in oklab, var(--ds-success) 40%, var(--ds-line));
}
.ds-cart-shipbar-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ds-ink);
  line-height: 1.35;
}
.ds-cart-shipbar-ico {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--ds-olive) 12%, var(--ds-paper));
  color: var(--ds-olive);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ds-cart-shipbar.is-achieved .ds-cart-shipbar-ico {
  background: var(--ds-success);
  color: var(--ds-paper);
}
.ds-cart-shipbar-text strong {
  font-weight: 800;
  color: var(--ds-olive-deep);
}
.ds-cart-shipbar.is-achieved .ds-cart-shipbar-text strong {
  color: var(--ds-success);
}
.ds-cart-shipbar-track {
  width: 100%;
  height: 8px;
  background: var(--ds-cream);
  border-radius: 999px;
  overflow: hidden;
}
.ds-cart-shipbar-fill {
  height: 100%;
  background: linear-gradient(90deg,
    color-mix(in oklab, var(--ds-olive) 70%, var(--ds-success)) 0%,
    var(--ds-olive) 100%);
  border-radius: 999px;
  transition: width .4s ease;
}
.ds-cart-shipbar.is-achieved .ds-cart-shipbar-fill {
  background: var(--ds-success);
}

/* ─── Shipping method radio cards — cart, checkout (#shipping_method) ─── */
.woocommerce ul#shipping_method,
.woocommerce ul#shipping_method.woocommerce-shipping-methods {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.woocommerce ul#shipping_method li {
  margin: 0;
  padding: 0;
  position: relative;
  list-style: none;
}
.woocommerce ul#shipping_method li::before {
  display: none;
}
.woocommerce ul#shipping_method input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.woocommerce ul#shipping_method li label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 0;
  border: 1px solid var(--ds-line);
  border-radius: 12px;
  background: var(--ds-paper);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ds-ink);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.woocommerce ul#shipping_method li label::before {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--ds-ink-muted);
  background: var(--ds-paper);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.woocommerce ul#shipping_method li label:hover {
  border-color: color-mix(in oklab, var(--ds-olive) 50%, var(--ds-line));
  background: color-mix(in oklab, var(--ds-olive) 4%, var(--ds-paper));
}
.woocommerce ul#shipping_method input[type="radio"]:checked + label {
  border-color: var(--ds-olive);
  background: color-mix(in oklab, var(--ds-olive) 8%, var(--ds-paper));
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ds-olive) 12%, transparent);
}
.woocommerce ul#shipping_method input[type="radio"]:checked + label::before {
  border-color: var(--ds-olive);
  background: radial-gradient(circle, var(--ds-olive) 0 5px, var(--ds-paper) 6px 100%);
}
.woocommerce ul#shipping_method input[type="radio"]:focus-visible + label {
  outline: 2px solid var(--ds-olive);
  outline-offset: 2px;
}
.woocommerce ul#shipping_method li label .woocommerce-Price-amount {
  margin-left: auto;
  font-weight: 700;
  color: var(--ds-olive-deep);
  white-space: nowrap;
}

/* Ukryj logo InPost przy nazwach metod wysyłki — zachowujemy spójny wygląd radio cards bez ikon */
.woocommerce ul#shipping_method .inpost_pl_shipping_meta,
.woocommerce ul#shipping_method .easypack-custom-shipping-method-logo,
.inpost_pl_shipping_meta,
.easypack-custom-shipping-method-logo { display: none !important; }

/* ============================================================
   404 PAGE - drewnianysklep-v3
   Dedicated layout (nie polega na home.css ktore tylko front-page)
   ============================================================ */

.ds-404-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 32px 96px;
  text-align: center;
}
.ds-404-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ds-404-illustration {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--ds-cream);
  color: var(--ds-olive-deep);
  border: 1px solid var(--ds-line);
  margin-bottom: 24px;
}
.ds-404-page .ds-eyebrow { justify-content: center; }
.ds-404-title {
  font-family: var(--ds-font-display);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ds-ink);
  margin: 14px 0 18px;
  text-wrap: balance;
}
.ds-404-title em {
  font-style: normal;
  color: var(--ds-olive-deep);
}
.ds-404-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ds-ink-soft);
  max-width: 56ch;
  margin: 0 0 28px;
}
.ds-404-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  width: 100%;
  max-width: 540px;
  border: 2px solid var(--ds-line);
  border-radius: 14px;
  background: var(--ds-paper);
  overflow: hidden;
  margin-bottom: 22px;
  transition: border-color .15s, box-shadow .15s;
}
.ds-404-search:focus-within {
  border-color: var(--ds-olive-deep);
  box-shadow: 0 0 0 3px rgba(111, 111, 67, .18);
}
.ds-404-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px 0 16px;
  color: var(--ds-olive-deep);
}
.ds-404-search input[type="search"] {
  border: 0;
  outline: none;
  background: transparent;
  padding: 14px 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ds-ink);
  width: 100%;
}
.ds-404-search input[type="search"]::placeholder {
  color: rgba(42, 39, 34, .4);
}
.ds-404-search .ds-btn {
  border-radius: 0;
  padding: 0 20px;
  white-space: nowrap;
}
.ds-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}
.ds-404-suggest {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 32px;
  border-top: 1px solid var(--ds-line);
  width: 100%;
  max-width: 540px;
}
.ds-404-suggest-label {
  font-size: 13px;
  color: var(--ds-ink-muted);
  font-weight: 600;
}
.ds-404-suggest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.ds-404-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ds-ink);
  background: var(--ds-cream);
  border: 1px solid var(--ds-line);
  border-radius: 999px;
  text-decoration: none;
  transition: border-color .15s, background .15s, color .15s;
}
.ds-404-chip:hover {
  border-color: var(--ds-olive);
  background: var(--ds-olive);
  color: #fff;
}

@media (max-width: 600px) {
  .ds-404-page { padding: 40px 20px 60px; }
  .ds-404-search { grid-template-columns: auto 1fr; }
  .ds-404-search .ds-btn {
    grid-column: 1 / -1;
    border-top: 1px solid var(--ds-line);
    padding: 14px;
    justify-content: center;
  }
  .ds-404-actions .ds-btn { flex: 1 1 calc(50% - 5px); justify-content: center; }
}

/* ─── /konfigurator/ — landing wybierania produktu ───────────────────── */
.ds-cfg-page {
  max-width: var(--ds-max);
  margin: 0 auto;
  padding: 16px 32px 60px;
}
.ds-cfg-hero {
  padding: 32px 0 40px;
  border-bottom: 1px solid var(--ds-line);
  margin-bottom: 40px;
}
.ds-cfg-hero-inner { max-width: 760px; }
.ds-cfg-hero-title {
  font-family: var(--ds-font-display, serif);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 8px 0 14px;
}
.ds-cfg-hero-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ds-ink-soft);
  margin: 0 0 22px;
}
.ds-cfg-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 13.5px;
  color: var(--ds-olive-deep);
  font-weight: 600;
}
.ds-cfg-hero-meta-item { display: inline-flex; align-items: center; gap: 6px; }

.ds-cfg-section { margin-bottom: 48px; }
.ds-cfg-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.ds-cfg-section-title {
  font-family: var(--ds-font-display, serif);
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 6px 0 6px;
}
.ds-cfg-section-sub {
  font-size: 15px;
  color: var(--ds-ink-soft);
  margin: 0;
  max-width: 640px;
}
.ds-cfg-section-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ds-olive-deep);
  white-space: nowrap;
}
.ds-cfg-section-all:hover { color: var(--ds-ink); }

.ds-cfg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.ds-cfg-card {
  display: flex;
  flex-direction: column;
  background: var(--ds-paper);
  border: 1px solid var(--ds-line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ds-ink);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ds-cfg-card:hover {
  transform: translateY(-3px);
  border-color: var(--ds-olive-deep);
  box-shadow: 0 14px 32px -16px rgba(42, 39, 34, 0.18);
}
.ds-cfg-card-img {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--ds-stone);
  overflow: hidden;
}
.ds-cfg-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.ds-cfg-card:hover .ds-cfg-card-img img { transform: scale(1.04); }

.ds-cfg-card-overlay {
  position: absolute;
  inset: auto 12px 12px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--ds-olive-deep);
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.ds-cfg-card:hover .ds-cfg-card-overlay { opacity: 1; transform: translateY(0); }
.ds-cfg-card-overlay-icon { display: inline-flex; }

.ds-cfg-card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.ds-cfg-card-name {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ds-cfg-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 10px;
}
.ds-cfg-card-price { font-weight: 700; color: var(--ds-ink); font-size: 15.5px; }
.ds-cfg-card-price .ds-from { font-size: 12px; color: var(--ds-ink-soft); font-weight: 500; margin-right: 3px; }
.ds-cfg-card-arrow {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ds-cream);
  color: var(--ds-ink);
  font-size: 14px;
  transition: background .2s, color .2s, transform .2s;
}
.ds-cfg-card:hover .ds-cfg-card-arrow {
  background: var(--ds-olive-deep);
  color: #fff;
  transform: translateX(2px);
}

.ds-cfg-help {
  margin-top: 32px;
  padding: 22px 28px;
  background: var(--ds-cream);
  border-radius: 14px;
}
.ds-cfg-help-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}
.ds-cfg-help-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ds-paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ds-olive-deep);
}
.ds-cfg-help h3 { margin: 0 0 4px; font-size: 18px; }
.ds-cfg-help p { margin: 0; color: var(--ds-ink-soft); font-size: 14.5px; }

@media (max-width: 720px) {
  .ds-cfg-page { padding: 12px 18px 50px; }
  .ds-cfg-section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ds-cfg-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ds-cfg-help-inner { grid-template-columns: 1fr; text-align: center; }
  .ds-cfg-help-icon { margin: 0 auto; }
}

/* ─── Trusted Shops widget kill-switch (mobile <=600px) ─────────────
   Widget renderowany przez script ts-easy-integration → DOM:
   #trustbadge-container, #trustbadge-iframe, #trustbadge-floating,
   .trustbadge-* etc. Iframe ma inline style position:fixed bottom-left
   ktory przykrywa hero title na mobile. Kompletnie ukrywamy na mobile. */
@media (max-width: 600px) {
  html body #trustbadge-container,
  html body #trustbadge-iframe,
  html body #trustbadge-floating,
  html body [id^="trustbadge-"],
  html body [id*="trustbadge"],
  html body [class*="trustbadge"],
  html body [class*="etrusted"],
  html body iframe[src*="trustedshops"],
  html body iframe[src*="trustbadge"],
  html body iframe[src*="etrusted"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
  }
}

/* ─── Trusted Shops widget kill-switch (kreator pudelek + odbitek) ─
   Widget Trusted Shops naklada sie na UI kreatorow (przyciski/panel).
   Ukrywamy na PDP (single-product) i na stronach FPU (page-template-
   fpu-kreator). Static CSS w pliku - WP Rocket UCSS NIE strippuje
   regul z plikow CSS dodanych do safelist. Inline <style> bylby
   stripowany jako "unused".

   UWAGA: dodac do WP Rocket UCSS safelist:
     #trustbadge-iframe, [id^="trustbadge"], [class*="trustbadge"] */
body.single-product #trustbadge-container,
body.single-product #trustbadge-iframe,
body.single-product #trustbadge-floating,
body.single-product [id^="trustbadge"],
body.single-product [id*="trustbadge"],
body.single-product [class*="trustbadge"],
body.single-product [class*="etrusted"],
body.single-product iframe[src*="trustedshops"],
body.single-product iframe[src*="trustbadge"],
body.single-product iframe[src*="etrusted"],
body.page-template-fpu-kreator #trustbadge-container,
body.page-template-fpu-kreator #trustbadge-iframe,
body.page-template-fpu-kreator #trustbadge-floating,
body.page-template-fpu-kreator [id^="trustbadge"],
body.page-template-fpu-kreator [id*="trustbadge"],
body.page-template-fpu-kreator [class*="trustbadge"],
body.page-template-fpu-kreator [class*="etrusted"],
body.page-template-fpu-kreator iframe[src*="trustedshops"],
body.page-template-fpu-kreator iframe[src*="trustbadge"],
body.page-template-fpu-kreator iframe[src*="etrusted"],
body.fpu-standalone #trustbadge-container,
body.fpu-standalone #trustbadge-iframe,
body.fpu-standalone #trustbadge-floating,
body.fpu-standalone [id^="trustbadge"],
body.fpu-standalone [id*="trustbadge"],
body.fpu-standalone [class*="trustbadge"],
body.fpu-standalone [class*="etrusted"],
body.fpu-standalone iframe[src*="trustedshops"],
body.fpu-standalone iframe[src*="trustbadge"],
body.fpu-standalone iframe[src*="etrusted"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  left: -99999px !important;
  top: -99999px !important;
}

/* ─────────────────────────────────────────────────────────────────────────
 * InPost Paczkomat - geowidget modal (jBox modal z plugin'u inpost-for-woocommerce).
 * Default 800x848 px - za mały żeby wybrać paczkomat. Powiększamy do 95vw / 90vh
 * (max 1400x900). Mapa wewnątrz wypełnia 100% kontenera.
 * Dodano 2026-05-09 v0.18.118 (klient: "czy mapka może być większa?").
 * ───────────────────────────────────────────────────────────────────────── */
.jBox-Modal.jBox-Default {
  width: 95vw !important;
  max-width: 1400px !important;
  height: 90vh !important;
  max-height: 900px !important;
}
.jBox-Modal.jBox-Default .jBox-container {
  width: 100% !important;
  height: 100% !important;
}
.jBox-Modal.jBox-Default .jBox-content {
  width: 100% !important;
  height: calc(100% - 56px) !important;
}
.jBox-Modal.jBox-Default .easypack-widget,
.jBox-Modal.jBox-Default #widget-container,
.jBox-Modal.jBox-Default [class*="widget"] {
  width: 100% !important;
  height: 100% !important;
}

/* ─────────────────────────────────────────────────────────────────────────
 * "Wybierz paczkomat" trigger button - olive (theme CTA color), aplikuje sie
 * na cart, checkout, i wszedzie gdzie plugin inpost-for-woocommerce renderuje
 * widget. Dodano 2026-05-09 v0.18.119 (klient: "nie pasuje stylistycznie do szablonu" - na checkout button byl rozowy bo cart.css nie laduje sie na checkout).
 * ───────────────────────────────────────────────────────────────────────── */
#easypack_show_geowidget,
.easypack_show_geowidget {
  background: var(--ds-olive) !important;
  color: var(--ds-paper) !important;
  border: 1px solid var(--ds-olive) !important;
  border-radius: 999px !important;
  padding: 11px 18px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: 0.01em !important;
  cursor: pointer !important;
  box-shadow: none !important;
  text-transform: none !important;
  transition: background .15s, border-color .15s !important;
  width: 100% !important;
  max-width: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-family: var(--ds-font, Nunito), Inter, ui-sans-serif, system-ui, sans-serif !important;
}
#easypack_show_geowidget:hover,
.easypack_show_geowidget:hover {
  background: var(--ds-olive-deep) !important;
  border-color: var(--ds-olive-deep) !important;
  color: var(--ds-paper) !important;
}

/* Wrapper "ds-cart-inpost-wrap-mounted" - dashed olive border, indented pod radio */
.ds-cart-inpost-wrap-mounted {
  margin-top: 8px !important;
  padding: 10px 12px !important;
  background: color-mix(in oklab, var(--ds-olive) 4%, var(--ds-paper)) !important;
  border: 1px dashed color-mix(in oklab, var(--ds-olive) 30%, var(--ds-line)) !important;
  border-radius: 10px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

/* ─────────────────────────────────────────────────────────────────────────
 * 2026-05-09 v0.18.124: po update plugin'u inpost-for-woocommerce, theme'owy
 * olive button #easypack_show_geowidget juz nie triggeruje plugin's JS dla mapy.
 * Plugin renderuje WLASNY <button class="select-paczkomat-button"> ktory dziala.
 *
 * Strategia:
 * 1. Ukryj theme's olive button + theme's pusty "Wybrany paczkomat" placeholder
 * 2. Stylizuj plugin's szary button na olive (zgodnie z theme CTA)
 * Klient klika tylko plugin's button -> dziala -> mapa -> wybor paczkomatu.
 * ───────────────────────────────────────────────────────────────────────── */
#easypack_show_geowidget,
#selected-parcel-machine {
  display: none !important;
}

.select-paczkomat-button {
  background: var(--ds-olive) !important;
  color: var(--ds-paper) !important;
  border: 1px solid var(--ds-olive) !important;
  border-radius: 999px !important;
  padding: 11px 18px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: 0.01em !important;
  cursor: pointer !important;
  box-shadow: none !important;
  text-transform: none !important;
  transition: background .15s, border-color .15s !important;
  width: 100% !important;
  max-width: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 8px 0 !important;
  font-family: var(--ds-font, Nunito), Inter, ui-sans-serif, system-ui, sans-serif !important;
}
.select-paczkomat-button:hover {
  background: var(--ds-olive-deep) !important;
  border-color: var(--ds-olive-deep) !important;
  color: var(--ds-paper) !important;
}

/* ─────────────────────────────────────────────────────────────────────────
 * 2026-05-09 v0.18.126: plugin renderuje .select-paczkomat-button per-rate
 * (do_action woocommerce_after_shipping_rate w kazdym shipping_method <li>:
 * prepaid InPost, cod InPost). Plus theme renderuje .ds-cart-inpost-wrap z
 * #easypack_show_geowidget (theme's olive button - po plugin update martwy,
 * nie triggeruje mapy). Razem 3x "Wybierz paczkomat" widoczne klientowi.
 *
 * Fix:
 * 1. Schowaj theme's wrap calkowicie - po plugin update bezuzyteczna,
 *    plugin's per-rate buttony (dzialajace) sa wystarczajace.
 * 2. Schowaj plugin's button w NIEwybranej metodzie shipping (`:has(input:checked)`
 *    ogranicza tylko do wybranej metody InPost - klient widzi 1 button).
 * ───────────────────────────────────────────────────────────────────────── */
.ds-cart-inpost-wrap,
.ds-cart-inpost-wrap-mounted {
  display: none !important;
}
ul#shipping_method li:not(:has(input[type="radio"]:checked)) .select-paczkomat-button,
.woocommerce-shipping-methods li:not(:has(input[type="radio"]:checked)) .select-paczkomat-button {
  display: none !important;
}

/* ─────────────────────────────────────────────────────────────────────────
 * 2026-05-09 v0.18.127: pay-for-order page (/podsumowanie/zaplac/{id}/)
 * - body.woocommerce-order-pay
 * Bez override'u form-pay.php WC renderuje plain `.order_details ul` pelnej
 * szerokosci + form Przelewy24 (.p24-payment-container) ktory ma 500px ale
 * jest rozjechany w kontekscie strony bez container'u/paddingu. Klient zglosil
 * "podsumowanie i platnosc karta troche zle wyglada".
 * ───────────────────────────────────────────────────────────────────────── */
.woocommerce-order-pay main#main.ds-wc-page {
  max-width: 720px;
  margin: 32px auto 64px;
  padding: 0 16px;
}
.woocommerce-order-pay main#main.ds-wc-page .woocommerce {
  background: var(--ds-paper, #faf6ee);
  border: 1px solid var(--ds-line, #e6e0d0);
  border-radius: 16px;
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.woocommerce-order-pay .order_details {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 0 20px !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  border-bottom: 1px solid var(--ds-line, #e6e0d0);
}
/* WC/theme dodaje ::before/::after { content: " "; display: table } jako clearfix.
 * W kontekscie grid te pseudo-elementy staja sie grid-items i zajmuja
 * pierwsza/ostatnia komorke -> 4 li sa pchniete o 1 pole, "Metoda" wpada
 * w drugi rzad. Override: schowaj clearfix w grid context. */
.woocommerce-order-pay .order_details::before,
.woocommerce-order-pay .order_details::after {
  content: none !important;
  display: none !important;
}
@media (max-width: 600px) {
  .woocommerce-order-pay .order_details {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
.woocommerce-order-pay .order_details li {
  display: flex !important;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ds-ink-muted, #897f6b);
  list-style: none;
}
.woocommerce-order-pay .order_details li::marker { content: ''; }
.woocommerce-order-pay .order_details li strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ds-ink, #2a2722);
  margin-top: 2px;
}
.woocommerce-order-pay .order_details li .woocommerce-Price-amount {
  font-size: 18px;
  font-weight: 700;
  color: var(--ds-olive-deep, #6f6f43);
}
.woocommerce-order-pay form.p24-payment-container,
.woocommerce-order-pay form.p24-payment-card {
  margin: 0 auto !important;
  max-width: 520px !important;
  width: 100% !important;
}
.woocommerce-order-pay #card-tokenizer iframe {
  width: 100% !important;
  max-width: 100% !important;
}
/* Submit button "Plac karta platnicza" - WC default jasnoszary -> olive CTA */
.woocommerce-order-pay form.p24-payment-container button#submit,
.woocommerce-order-pay form.p24-payment-card button#submit,
.woocommerce-order-pay button#submit.woocommerce-button {
  background: var(--ds-olive, #6f6f43) !important;
  color: var(--ds-paper, #faf6ee) !important;
  border: 1px solid var(--ds-olive, #6f6f43) !important;
  border-radius: 999px !important;
  padding: 14px 22px !important;
  font-family: var(--ds-font, Nunito), Inter, ui-sans-serif, system-ui, sans-serif !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  cursor: pointer !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 48px !important;
  box-shadow: 0 8px 22px -10px rgba(111, 111, 67, 0.45) !important;
  transition: background .15s, border-color .15s, transform .1s !important;
}
.woocommerce-order-pay form.p24-payment-container button#submit:hover,
.woocommerce-order-pay form.p24-payment-card button#submit:hover,
.woocommerce-order-pay button#submit.woocommerce-button:hover {
  background: var(--ds-olive-deep, #5a5a36) !important;
  border-color: var(--ds-olive-deep, #5a5a36) !important;
  color: var(--ds-paper, #faf6ee) !important;
}
.woocommerce-order-pay form.p24-payment-container button#submit:active,
.woocommerce-order-pay button#submit.woocommerce-button:active {
  transform: translateY(1px);
}
@media (max-width: 600px) {
  .woocommerce-order-pay main#main.ds-wc-page {
    margin: 16px auto 32px;
  }
  .woocommerce-order-pay main#main.ds-wc-page .woocommerce {
    padding: 18px 16px 24px;
    border-radius: 12px;
  }
}

/* ─── Cena Pro na kartach produktow (v0.18.244) ─────────────────────
   Markup z ds_pro_price_html_filter() (inc/b2b.php): przekreslony retail
   + cena Pro + badge. Globalnie, bo karty wystepuja w archiwum, na home,
   w upsellach PDP, cross-sellach koszyka, ulubionych i Strefie Pro. */
span.ds-pro-price del {
  color: var(--ds-ink-muted, #8a857c);
  font-weight: 500;
  font-size: 0.8em;
  margin-right: 4px;
}
span.ds-pro-price ins {
  text-decoration: none;
  color: var(--ds-olive-deep, #5a5a36);
}
.ds-pro-price-badge {
  display: inline-block;
  vertical-align: 2px;
  margin-left: 6px;
  background: var(--ds-olive-deep, #5a5a36);
  color: var(--ds-paper, #faf6ee);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 3px;
  letter-spacing: 0.06em;
}
