/**
 * Custom Website — production stylesheet
 * Migrated from TanStack Start / Tailwind design tokens.
 */

:root {
  --cw-brand-navy: #252540;
  --cw-brand-navy-deep: #16162a;
  --cw-brand-orange: #f0a62e;
  --cw-brand-blue: #1674c3;
  --cw-brand-violet: #935eb2;
  --cw-brand-red: #b81a34;
  --cw-brand-cream: #f5f2ea;
  --cw-brand-silver: #d9d9e0;
  --cw-background: #faf8f2;
  --cw-foreground: #252540;
  --cw-border: rgba(37, 37, 64, 0.1);
  --cw-content-max: 1400px;
  --cw-font-display: "Archivo Black", "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --cw-font-sans: "Hind", "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --cw-font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--cw-background);
  color: var(--cw-foreground);
  font-family: var(--cw-font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.cw-menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--cw-brand-red);
}

::selection {
  background: var(--cw-brand-blue);
  color: #fff;
}

/* Layout */
.cw-container {
  width: min(100% - 3rem, var(--cw-content-max));
  margin-inline: auto;
}

.cw-section {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.cw-section--tight {
  padding-block: clamp(2rem, 4vw, 3rem);
}

.font-display {
  font-family: var(--cw-font-display);
  letter-spacing: -0.02em;
}

.font-mono-tech {
  font-family: var(--cw-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-accent {
  color: var(--cw-brand-red);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cw-border);
}

.site-header__bar {
  height: 4px;
  background: var(--cw-brand-orange);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.site-header__brand {
  flex: 0 0 auto;
  min-width: 0;
}

.site-header__brand-link {
  display: inline-block;
  line-height: 0;
}

.site-header__logo {
  display: block;
  width: auto;
  height: clamp(3rem, 5vw, 4rem);
  max-height: 4rem;
  object-fit: contain;
  object-position: left center;
}

.site-header__nav {
  display: none;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.cw-btn:focus-visible,
.cw-nav-toggle:focus-visible,
.cw-hero__nav:focus-visible {
  outline: 2px solid var(--cw-brand-blue);
  outline-offset: 2px;
}

.cw-btn--primary {
  background: var(--cw-brand-red);
  color: var(--cw-brand-cream);
}

.cw-btn--primary:hover {
  transform: translateY(-2px);
  background: var(--cw-brand-navy-deep);
  color: var(--cw-brand-cream);
}

.cw-btn--dark {
  background: var(--cw-brand-navy);
  color: var(--cw-brand-cream);
}

.cw-btn--outline {
  background: transparent;
  border-color: rgba(245, 242, 234, 0.3);
  color: var(--cw-brand-cream);
}

.cw-btn--outline:hover {
  background: var(--cw-brand-cream);
  color: var(--cw-brand-navy);
}

.cw-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--cw-border);
  background: #fff;
  cursor: pointer;
}

.cw-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  /* Several 3rd-party widgets on this site (cookie consent banner, the
     WooCommerce side-cart panel/basket button) use extremely high z-index
     values (100000 and up to ~9999997) to always float above content. Those
     values beat this menu's old z-index:200, so they visually punched
     through the full-screen navy overlay and page/widget content showed
     in patches behind the menu links. Use a value clearly above any of
     those so the menu always wins once opened. */
  z-index: 999999999;
  background: var(--cw-brand-navy-deep);
  color: var(--cw-brand-cream);
  padding: 5rem 2rem 2rem;
}

.cw-mobile-nav.is-open {
  display: block;
}

/* Belt-and-suspenders: also hide the known high z-index floating widgets
   while the menu is open, so they can't flash on top during the opening
   transition and there's nothing to accidentally interact with underneath. */
body.cw-menu-open #cookie-notice,
body.cw-menu-open .xoo-wsc-container,
body.cw-menu-open .xoo-wsc-basket,
body.cw-menu-open .xoo-wsc-overlay,
body.cw-menu-open .cmplz-cookiebanner {
  display: none !important;
}

.cw-mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cw-mobile-nav a {
  display: block;
  padding: 1rem 0;
  font-size: 1.25rem;
  font-family: var(--cw-font-display);
  color: var(--cw-brand-cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cw-mobile-nav__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

@media (min-width: 768px) {
  .site-header__nav {
    display: block;
  }

  .cw-nav-toggle {
    display: none;
  }

  .site-header .wp-block-navigation {
    gap: 2rem;
  }

  .site-header .wp-block-navigation ul {
    flex-wrap: nowrap;
  }
}

.site-header .wp-block-navigation {
  font-weight: 500;
}

.site-header .wp-block-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}

.site-header .wp-block-navigation a {
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}

.site-header .wp-block-navigation a:hover {
  color: var(--cw-brand-red);
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links li + li {
  margin-top: 0.5rem;
}

/* Hero carousel block */
.cw-hero {
  position: relative;
  min-height: min(92vh, 820px);
  overflow: hidden;
  background: var(--cw-brand-navy-deep);
  color: var(--cw-brand-cream);
}

.cw-hero__slides {
  position: absolute;
  inset: 0;
}

.cw-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  pointer-events: none;
}

.cw-hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.cw-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.06);
  transition: transform 10s linear;
}

.cw-hero__slide.is-active img {
  transform: scale(1);
}

.cw-hero__slide--wide img,
.cw-hero__slide:nth-child(3) img {
  object-position: 58% 42%;
  transform: scale(1.02);
}

.cw-hero__slide--wide.is-active img,
.cw-hero__slide:nth-child(3).is-active img {
  transform: scale(1);
}

.cw-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(22, 22, 42, 0.95), rgba(22, 22, 42, 0.55) 55%, rgba(22, 22, 42, 0.15)),
    linear-gradient(to top, rgba(22, 22, 42, 0.8), transparent 45%);
}

.cw-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: min(92vh, 820px);
  padding-block: 3rem;
}

.cw-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(245, 242, 234, 0.25);
  background: rgba(245, 242, 234, 0.05);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.cw-hero__title {
  margin: 1.25rem 0 0;
  font-family: var(--cw-font-display);
  font-size: clamp(2.5rem, 6.5vw, 5.25rem);
  line-height: 0.95;
}

.cw-hero__accent {
  background: linear-gradient(90deg, #b81a34, #f0a62e, #935eb2, #1674c3, #b81a34);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: cw-gradient-shift 4s linear infinite alternate;
}

@keyframes cw-gradient-shift {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

.cw-hero__desc {
  max-width: 32rem;
  margin-top: 1.5rem;
  color: rgba(245, 242, 234, 0.8);
  line-height: 1.6;
}

.cw-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.cw-hero__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 32rem;
  margin-top: 2.5rem;
}

.cw-hero__feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  line-height: 1.3;
}

.cw-hero__feature-icon {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  color: var(--cw-brand-cream);
  flex-shrink: 0;
}

.cw-hero__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: rgba(245, 242, 234, 0.6);
  cursor: pointer;
  padding: 0.5rem;
}

.cw-hero__nav--prev { left: 0.25rem; }
.cw-hero__nav--next { right: 0.25rem; }

.cw-hero__dots {
  position: absolute;
  inset-inline: 0;
  bottom: 1.5rem;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.cw-hero__dot {
  width: 3rem;
  height: 4px;
  border: 0;
  background: rgba(245, 242, 234, 0.25);
  cursor: pointer;
  overflow: hidden;
}

.cw-hero__dot span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--cw-brand-cream);
}

.cw-hero__dot.is-active span {
  animation: cw-hero-progress 6s linear forwards;
}

@keyframes cw-hero-progress {
  from { width: 0; }
  to { width: 100%; }
}

.cw-hero__counter {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 3;
  display: none;
  gap: 0.5rem;
  align-items: center;
  font-family: var(--cw-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 242, 234, 0.7);
}

@media (min-width: 768px) {
  .cw-hero__counter { display: flex; }
  .cw-hero__nav { display: inline-flex; }
}

/* Category tiles */
.cw-category-tiles.alignwide {
  max-width: var(--cw-content-max);
  width: 100%;
  margin-inline: auto;
}

/* Break out of WP 720px constrained post-content (stare szablony / cache) */
main .wp-block-post-content.is-layout-constrained > .cw-section,
main .wp-block-post-content.is-layout-constrained > .cw-stats-band,
main .wp-block-post-content.is-layout-constrained > .cw-features-band,
main .wp-block-post-content.is-layout-constrained > .cw-bestsellers-band,
main .wp-block-post-content.is-layout-constrained > .alignwide,
main .wp-block-post-content.is-layout-constrained > .alignfull {
  max-width: var(--cw-content-max);
  width: min(100vw - 3rem, var(--cw-content-max));
  margin-left: auto;
  margin-right: auto;
}

main .wp-block-post-content.is-layout-constrained > .cw-bestsellers-band {
  max-width: min(100vw - 2rem, 1720px);
  width: min(100vw - 2rem, 1720px);
}

.cw-tiles {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .cw-tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .cw-tiles { grid-template-columns: repeat(4, 1fr); }
}

.cw-tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--cw-brand-navy-deep);
  color: var(--cw-brand-cream);
  text-decoration: none;
}

.cw-tile__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--cw-brand-navy-deep);
}

.cw-tile__glow {
  position: absolute;
  top: -4rem;
  right: -4rem;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.7;
  pointer-events: none;
  z-index: 1;
}

.cw-tile__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cw-tile__placeholder {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(37, 37, 64, 0.12);
}

.cw-tile:hover .cw-tile__media img {
  transform: scale(1.05);
}

.cw-tile__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(22, 22, 42, 0.95), rgba(22, 22, 42, 0.3) 55%, transparent);
  pointer-events: none;
}

.cw-tile__body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}

.cw-tile__name {
  font-family: var(--cw-font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.15;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.cw-tile__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid currentColor;
  background: transparent;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.cw-tile:hover .cw-tile__cta {
  color: var(--cw-brand-navy) !important;
  background: var(--cw-brand-cream);
}

/* Steps — jak na localhost React */
.cw-steps-band.alignwide {
  max-width: var(--cw-content-max);
  width: 100%;
  margin-inline: auto;
}

.cw-steps-band__head {
  margin-bottom: 3.5rem;
  text-align: center;
}

.cw-steps-band__title {
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.cw-steps-band__subtitle {
  max-width: 36rem;
  margin: 0.75rem auto 0;
  color: rgba(37, 37, 64, 0.6);
  font-size: 1rem;
  line-height: 1.6;
}

.cw-steps-band__grid-wrap {
  position: relative;
}

.cw-steps-band__line {
  display: none;
}

@media (min-width: 1024px) {
  .cw-steps-band__line {
    display: block;
    position: absolute;
    top: 3rem;
    left: 0;
    right: 0;
    height: 0;
    border-top: 2px dashed rgba(184, 26, 52, 0.2);
    pointer-events: none;
    z-index: 0;
  }
}

.cw-steps {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .cw-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .cw-steps { grid-template-columns: repeat(4, 1fr); }
}

.cw-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cw-step__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 6rem;
  margin-bottom: 1.5rem;
  border: 1px solid #fff;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 20px 25px -5px rgba(184, 26, 52, 0.05), 0 8px 10px -6px rgba(184, 26, 52, 0.05);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cw-step:hover .cw-step__icon {
  transform: translateY(-0.5rem);
  border-color: rgba(184, 26, 52, 0.3);
  box-shadow: 0 20px 25px -5px rgba(184, 26, 52, 0.1), 0 8px 10px -6px rgba(184, 26, 52, 0.08);
}

.cw-step__svg {
  display: flex;
  color: var(--cw-brand-red);
  transition: transform 0.3s ease;
}

.cw-step:hover .cw-step__svg {
  transform: scale(1.1);
}

.cw-step__num {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--cw-brand-red);
  color: var(--cw-brand-cream);
  font-family: var(--cw-font-display);
  font-size: 1.125rem;
  line-height: 1;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
}

.cw-step__title {
  margin: 0;
  font-family: var(--cw-font-display);
  font-size: 1.125rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.cw-step:hover .cw-step__title {
  color: var(--cw-brand-red);
}

.cw-step__text {
  max-width: 13.75rem;
  margin: 0.5rem 0 0;
  color: rgba(37, 37, 64, 0.6);
  font-size: 0.875rem;
  line-height: 1.5;
}

.cw-steps-band__cta {
  margin-top: 3.5rem;
  text-align: center;
}

.cw-btn--steps {
  border-radius: 999px;
  padding: 0.875rem 2rem;
  background: var(--cw-brand-red);
  color: var(--cw-brand-cream);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  box-shadow: 0 10px 15px -3px rgba(184, 26, 52, 0.2);
}

.cw-btn--steps:hover {
  transform: translateY(-2px);
  background: var(--cw-brand-navy-deep);
  box-shadow: 0 20px 25px -5px rgba(22, 22, 42, 0.15);
}

/* Stats */
.cw-stats {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .cw-stats { grid-template-columns: 1fr 1.2fr; }
}

.cw-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.cw-stat {
  text-align: center;
}

.cw-stat__value {
  font-family: var(--cw-font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cw-stat__value--boxed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  padding: 0.45rem 0.85rem;
  color: var(--cw-brand-cream) !important;
  background: var(--cw-brand-blue);
}

.cw-stat__label {
  margin-top: 0.25rem;
  color: rgba(37, 37, 64, 0.65);
  font-size: 0.9rem;
}

/* Features strip */
.cw-features {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .cw-features { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .cw-features { grid-template-columns: repeat(4, 1fr); }
}

.cw-feature {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--cw-border);
  background: #fff;
}

.cw-feature__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}

/* Gallery */
.cw-gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .cw-gallery { grid-template-columns: repeat(3, 1fr); }
}

.cw-gallery__item {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--cw-muted, #f7f5ef);
  border: 1px solid var(--cw-border);
}

.cw-gallery__item a {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.cw-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Testimonials marquee */
@keyframes cw-marquee-up {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -50%, 0); }
}

@keyframes cw-marquee-down {
  from { transform: translate3d(0, -50%, 0); }
  to { transform: translate3d(0, 0, 0); }
}

.cw-testimonials-section.alignwide {
  max-width: var(--cw-content-max);
  width: 100%;
  margin-inline: auto;
}

.cw-testimonials-section__title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.cw-testimonials-section__title {
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.cw-testimonials-section__heart {
  flex-shrink: 0;
  color: var(--cw-brand-red);
}

.cw-testimonials {
  position: relative;
}

.cw-testimonials__fade-top,
.cw-testimonials__fade-bottom {
  pointer-events: none;
  position: absolute;
  inset-inline: 0;
  z-index: 2;
  height: 6rem;
}

.cw-testimonials__fade-top {
  top: 0;
  background: linear-gradient(to bottom, var(--cw-background), transparent);
}

.cw-testimonials__fade-bottom {
  bottom: 0;
  background: linear-gradient(to top, var(--cw-background), transparent);
}

.cw-testimonials__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .cw-testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cw-testimonials__column {
  position: relative;
  height: 560px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .cw-testimonials__column {
    height: 620px;
  }
}

@media (max-width: 767px) {
  .cw-testimonials__column--desktop {
    display: none;
  }
}

.cw-testimonials__track {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  animation-duration: var(--cw-marquee-duration, 40s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-play-state: running;
}

.cw-testimonials__track--up {
  animation-name: cw-marquee-up;
}

.cw-testimonials__track--down {
  animation-name: cw-marquee-down;
}

.cw-testimonials-section.cw-reveal,
.cw-testimonials-section {
  transform: none;
  opacity: 1;
}

.cw-testimonials-section.cw-reveal.is-visible,
.cw-testimonials-section.is-visible {
  transform: none;
  opacity: 1;
}

.cw-testimonial {
  position: relative;
  flex-shrink: 0;
  padding: 1.5rem;
  border: 1px solid rgba(37, 37, 64, 0.1);
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.cw-testimonial__accent {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 3px;
}

.cw-testimonial__stars {
  display: flex;
  gap: 2px;
  color: var(--cw-brand-orange);
}

.cw-testimonial__text {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(37, 37, 64, 0.8);
}

.cw-testimonial__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid currentColor;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cw-testimonial__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  flex-shrink: 0;
}

.cw-testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(37, 37, 64, 0.1);
}

.cw-testimonial__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--cw-brand-cream);
  font-family: var(--cw-font-display);
  flex-shrink: 0;
}

.cw-testimonial__name {
  font-size: 0.875rem;
}

.cw-testimonial__role {
  margin-top: 0.15rem;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(37, 37, 64, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .cw-testimonials__track {
    animation: none !important;
    transform: none !important;
  }
}

/* FAQ */
.cw-faq details {
  border: 1px solid var(--cw-border);
  background: #fff;
  margin-bottom: 0.75rem;
}

.cw-faq summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  list-style: none;
}

.cw-faq summary::-webkit-details-marker {
  display: none;
}

.cw-faq__answer {
  padding: 0 1.25rem 1.25rem;
  color: rgba(37, 37, 64, 0.75);
}

/* Footer */
.site-footer {
  margin-top: 6rem;
  background: var(--cw-foreground);
  color: var(--cw-brand-cream);
  border-top: 1px solid var(--cw-border);
}

.site-footer__bar {
  height: 4px;
  background: var(--cw-brand-red);
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 4rem;
}

@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .site-footer__grid { grid-template-columns: 1.2fr repeat(3, 1fr); }
}

.site-footer h4 {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 242, 234, 0.5);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.5rem;
}

.site-footer a {
  color: rgba(245, 242, 234, 0.8);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--cw-brand-blue);
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1rem;
  font-size: 0.75rem;
  color: rgba(245, 242, 234, 0.5);
}

.site-footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .site-footer__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Reveal animation */
.cw-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.cw-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-header__brand-link {
  text-decoration: none;
  color: inherit;
}

/* WooCommerce: blokuj rozciąganie logo do 100% szerokości — bez zmiany rozmiaru */
body.woocommerce-page .site-header .site-header__logo,
body.woocommerce-page .site-footer .site-footer__logo,
body.woocommerce-cart .site-header .site-header__logo,
body.woocommerce-checkout .site-header .site-header__logo,
body.is-cart-page .site-header .site-header__logo,
body.is-checkout-page .site-header .site-header__logo,
body.is-woocommerce .site-header .site-header__logo,
body.is-woocommerce .site-footer .site-footer__logo {
  width: auto !important;
  max-width: 200px !important;
  height: clamp(3rem, 5vw, 4rem) !important;
  max-height: 4rem !important;
  object-fit: contain !important;
}

body.woocommerce-page .site-footer .site-footer__logo,
body.is-woocommerce .site-footer .site-footer__logo {
  max-width: 200px !important;
  height: 3rem !important;
  max-height: 3rem !important;
}

.site-header__site-title {
  font-family: var(--cw-font-display);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  align-items: center;
}

.site-header__menu a {
  text-decoration: none;
  color: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.site-header__menu a:hover {
  color: var(--cw-brand-red);
}

.site-header__search-form input[type="search"] {
  min-width: 11rem;
  max-width: 14rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--cw-border);
  background: #fff;
  font: inherit;
  font-size: 0.875rem;
}

.site-header .wp-block-woocommerce-customer-account,
.site-header .wc-block-customer-account,
.site-header .wp-block-woocommerce-mini-cart,
.site-header .wc-block-mini-cart,
header .wc-block-components-drawer,
.wp-block-woocommerce-customer-account,
.wc-block-customer-account {
  display: none !important;
}

.site-footer__brand {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.site-footer__logo {
  display: block;
  width: auto;
  max-width: 200px;
  height: 3rem;
  max-height: 3rem;
  object-fit: contain;
  object-position: left center;
}

.site-footer__logo-text {
  margin: 0;
  font-family: var(--cw-font-display);
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer__intro,
.site-footer__company {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(245, 242, 234, 0.8);
}

/* Hide duplicate page titles when custom hero exists */
.page main .wp-block-post-title,
.page main > .entry-title,
.page main h1.wp-block-heading:first-child:not(.cw-page-hero *) {
  display: none;
}

/* Nagłówek podstrony — jak nolight PageHeader */
.cw-page-hero {
  margin-bottom: 3.5rem;
}

.cw-page-hero--light {
  position: relative;
  color: var(--cw-foreground);
  background: transparent;
}

.cw-page-hero--light .cw-container {
  position: relative;
}

.cw-page-hero__accent-bar {
  display: none;
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 4px;
  height: 4rem;
  background: var(--cw-brand-red);
}

@media (min-width: 768px) {
  .cw-page-hero__accent-bar {
    display: block;
  }
}

.cw-page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.cw-page-hero--light .cw-page-hero__eyebrow {
  color: var(--cw-brand-red);
}

.cw-page-hero__eyebrow-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--cw-brand-red);
}

.cw-page-hero__title {
  margin: 1rem 0 0;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.cw-page-hero__subtitle {
  max-width: 42rem;
  margin: 1.25rem 0 0;
  font-size: 1rem;
  line-height: 1.65;
}

.cw-page-hero--light .cw-page-hero__subtitle {
  color: rgba(37, 37, 64, 0.7);
}

.cw-page-hero--dark {
  background: var(--cw-brand-navy-deep);
  color: var(--cw-brand-cream);
}

.cw-page-hero--dark .cw-page-hero__eyebrow {
  color: var(--cw-brand-orange);
}

.cw-page-hero--dark .cw-page-hero__subtitle {
  color: rgba(245, 242, 234, 0.8);
}

.cw-page-hero--dark .cw-container {
  padding-block: 3rem;
}

.woocommerce ul.products,
.cw-section .woocommerce ul.products,
main .woocommerce ul.products,
.is-woocommerce .woocommerce ul.products {
  display: grid !important;
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
  margin: 0 !important;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .woocommerce ul.products,
  .cw-section .woocommerce ul.products,
  .is-woocommerce .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .woocommerce ul.products,
  .cw-section .woocommerce ul.products,
  .is-woocommerce .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
}

.woocommerce ul.products li.product,
.cw-section .woocommerce ul.products li.product,
.is-woocommerce .woocommerce ul.products li.product {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  border: 1px solid var(--cw-border);
  background: #fff;
  padding: 1rem;
}

.woocommerce ul.products li.product .price,
.cw-section .woocommerce ul.products li.product .price,
.is-woocommerce .woocommerce ul.products li.product .price {
  color: var(--cw-brand-red) !important;
  font-family: var(--cw-font-display);
  font-weight: 700;
}

.woocommerce-loop-product__title,
.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
  text-transform: uppercase;
}

body.cw-single-product .cw-product-breadcrumbs .woocommerce-breadcrumb,
body.single-product .cw-product-breadcrumbs .woocommerce-breadcrumb {
  text-transform: uppercase;
}

.woocommerce-cart .product-name,
.woocommerce-cart .product-name a,
.woocommerce-checkout-review-order-table .product-name,
.woocommerce-table--order-details .product-name {
  text-transform: uppercase;
}

/* Contact form (plugin) */
.cw-contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.cw-contact-form input,
.cw-contact-form select,
.cw-contact-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.625rem 1rem;
  border: 1px solid var(--cw-border);
  background: #fff;
  font: inherit;
}

.cw-contact-form textarea {
  min-height: 9rem;
  resize: vertical;
}

.cw-contact-form .cw-form-row {
  margin-bottom: 1.25rem;
}

.cw-contact-form .cw-form-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--cw-border);
}

.cw-contact-form .cw-form-message.is-error {
  border-color: var(--cw-brand-red);
  color: var(--cw-brand-red);
}

.cw-contact-form .cw-form-message.is-success {
  border-color: var(--cw-brand-blue);
  color: var(--cw-brand-blue);
}

/* Editor compatibility */
.editor-styles-wrapper .cw-hero,
.editor-styles-wrapper .cw-testimonials__column {
  min-height: 320px;
}

/* === v1.0.5 — parity z localhost React === */

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.site-header__search-form {
  position: relative;
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(37, 37, 64, 0.15);
  background: #fff;
  transition: border-color 0.2s ease;
}

.site-header__search-form:focus-within {
  border-color: var(--cw-brand-orange);
}

.site-header__search-icon {
  flex-shrink: 0;
  color: rgba(37, 37, 64, 0.5);
}

.site-header__search-form input[type="search"] {
  min-width: 10rem;
  max-width: 14rem;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  outline: none;
}

@media (min-width: 768px) {
  .site-header__search-form {
    display: flex;
  }
}

.cw-btn--cart {
  background: var(--cw-brand-navy);
  color: var(--cw-brand-cream);
  border: 0;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  padding: 0.5rem 1rem;
}

.cw-btn--cart:hover {
  transform: translateY(-2px);
  background: var(--cw-brand-orange);
  color: var(--cw-brand-navy);
}

.site-header__cart-count {
  color: rgba(245, 242, 234, 0.7);
  font-size: 0.875rem;
}

.cw-btn--wishlist {
  background: transparent;
  color: var(--cw-brand-navy);
  border: 1px solid rgba(37, 37, 64, 0.15);
  padding: 0.5rem 0.75rem;
  text-transform: none;
  letter-spacing: 0;
}

.cw-btn--wishlist:hover {
  border-color: var(--cw-brand-red);
  color: var(--cw-brand-red);
  transform: translateY(-2px);
}

.site-header__wishlist-count {
  margin-left: 0.15rem;
  font-size: 0.75rem;
  color: rgba(37, 37, 64, 0.65);
}

.cw-product-card-shell {
  position: relative;
}

.cw-wishlist-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid rgba(37, 37, 64, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--cw-brand-navy);
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  z-index: 2;
}

.cw-wishlist-btn:hover,
.cw-wishlist-btn.is-active {
  border-color: var(--cw-brand-red);
  color: var(--cw-brand-red);
  background: #fff;
}

.cw-wishlist-btn.is-active .cw-wishlist-btn__icon svg {
  fill: currentColor;
}

.cw-wishlist-btn--card,
.cw-wishlist-btn--loop {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

.cw-product-card-shell--loop,
.woocommerce ul.products li.product {
  position: relative;
}

.cw-wishlist-btn--product {
  width: auto;
  min-height: 2.75rem;
  padding: 0.625rem 1rem;
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cw-product-wishlist-row {
  margin: 0 0 1rem;
}

.cw-wishlist-page__count {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: rgba(37, 37, 64, 0.65);
}

.cw-wishlist-empty {
  text-align: center;
  padding: 3rem 1rem;
  border: 1px solid var(--cw-border);
  background: rgba(37, 37, 64, 0.02);
}

.cw-wishlist-empty__icon {
  font-size: 2rem;
  line-height: 1;
  color: var(--cw-brand-red);
  margin-bottom: 1rem;
}

.cw-wishlist-empty__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cw-wishlist-empty__text {
  margin: 0 0 1.5rem;
  color: rgba(37, 37, 64, 0.65);
}

.cw-wishlist-loading {
  padding: 2rem 0;
  text-align: center;
  color: rgba(37, 37, 64, 0.6);
}

.cw-wishlist-page__grid {
  margin-top: 0.5rem;
}

.cw-btn--pill {
  border-radius: 999px;
  background: var(--cw-brand-red);
  color: var(--cw-brand-cream);
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.cw-btn--pill:hover {
  transform: translateY(-2px);
  background: var(--cw-brand-navy);
}

.cw-btn--outline-dark:not(.wp-block-button) {
  background: transparent;
  border: 2px solid var(--cw-brand-navy);
  color: var(--cw-brand-navy);
}

.cw-btn--outline-dark:not(.wp-block-button):hover {
  background: var(--cw-brand-navy);
  color: var(--cw-brand-cream);
}

/* WordPress block buttons — bez podwójnego tła (wrapper vs link) */
.wp-block-button {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.wp-block-button .wp-block-button__link,
.wp-block-button .wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.75rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.wp-block-button:not([class*="cw-btn--"]) .wp-block-button__link,
.wp-block-button:not([class*="cw-btn--"]) .wp-element-button {
  background: var(--cw-brand-red) !important;
  color: var(--cw-brand-cream) !important;
}

.wp-block-button:not([class*="cw-btn--"]) .wp-block-button__link:hover,
.wp-block-button:not([class*="cw-btn--"]) .wp-element-button:hover {
  transform: translateY(-2px);
  background: var(--cw-brand-navy-deep) !important;
  color: var(--cw-brand-cream) !important;
}

.wp-block-button.cw-btn--outline-dark .wp-block-button__link,
.wp-block-button.cw-btn--outline-dark .wp-element-button {
  background: transparent !important;
  border: 2px solid var(--cw-brand-navy) !important;
  color: var(--cw-brand-navy) !important;
}

.wp-block-button.cw-btn--outline-dark .wp-block-button__link:hover,
.wp-block-button.cw-btn--outline-dark .wp-element-button:hover {
  transform: translateY(-2px);
  background: var(--cw-brand-navy) !important;
  color: var(--cw-brand-cream) !important;
}

.wp-block-button.cw-btn--primary .wp-block-button__link,
.wp-block-button.cw-btn--primary .wp-element-button {
  background: var(--cw-brand-red) !important;
  color: var(--cw-brand-cream) !important;
}

.wp-block-button.cw-btn--primary .wp-block-button__link:hover,
.wp-block-button.cw-btn--primary .wp-element-button:hover {
  transform: translateY(-2px);
  background: var(--cw-brand-navy-deep) !important;
}

.wp-block-button.cw-btn--dark .wp-block-button__link,
.wp-block-button.cw-btn--dark .wp-element-button {
  background: var(--cw-brand-navy) !important;
  color: var(--cw-brand-cream) !important;
}

.wp-block-button.cw-btn--outline .wp-block-button__link,
.wp-block-button.cw-btn--outline .wp-element-button {
  background: transparent !important;
  border-color: rgba(245, 242, 234, 0.3) !important;
  color: var(--cw-brand-cream) !important;
}

.wp-block-button.cw-btn--pill .wp-block-button__link,
.wp-block-button.cw-btn--pill .wp-element-button {
  border-radius: 999px;
  background: var(--cw-brand-red) !important;
  color: var(--cw-brand-cream) !important;
  text-transform: none;
  letter-spacing: 0.02em;
}

.cw-stats-band {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
  background: var(--cw-brand-navy-deep);
  color: var(--cw-brand-cream);
}

.cw-stats-band__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.85;
}

.cw-stats-band__glow--left {
  width: 28rem;
  height: 28rem;
  left: -8rem;
  top: -6rem;
  background: radial-gradient(circle, var(--cw-brand-orange), transparent 65%);
}

.cw-stats-band__glow--right {
  width: 24rem;
  height: 24rem;
  right: -6rem;
  bottom: -8rem;
  background: radial-gradient(circle, var(--cw-brand-blue), transparent 65%);
}

.cw-stats-band .cw-stats__intro {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
  color: var(--cw-brand-cream);
}

.cw-stats__highlight {
  text-decoration: underline;
  text-decoration-color: var(--cw-brand-red);
  text-underline-offset: 0.2em;
}

.cw-stats-band .cw-stat__label {
  color: rgba(245, 242, 234, 0.7);
}

.cw-stats-band .cw-stat__value {
  color: inherit;
}

.cw-gallery {
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .cw-gallery {
    grid-template-columns: repeat(6, 1fr);
  }
}

.cw-bestsellers-band {
  border-block: 1px solid rgba(37, 37, 64, 0.1);
  background: rgba(37, 37, 64, 0.04);
  padding-block: clamp(4rem, 6vw, 5.5rem);
}

.cw-bestsellers-band > .cw-container,
.cw-bestsellers-band .cw-container {
  width: min(100% - clamp(1.25rem, 3vw, 2.5rem), 1720px);
  max-width: 1720px;
}

.cw-bestsellers-band .cw-section-title {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  font-size: clamp(1.875rem, 3.8vw, 2.75rem);
}

.cw-bestsellers-band .woocommerce ul.products,
.cw-bestsellers-band ul.products {
  grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 639px) {
  .cw-bestsellers-band .woocommerce ul.products,
  .cw-bestsellers-band ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

.cw-bestsellers-band .woocommerce ul.products li.product,
.cw-bestsellers-band ul.products li.product {
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
  clear: none !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}

.cw-bestsellers-band .woocommerce ul.products li.product > a:first-child {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(37, 37, 64, 0.1);
  background: #fff;
  transition: box-shadow 0.25s ease;
}

.cw-bestsellers-band .woocommerce ul.products li.product > a:first-child:hover {
  box-shadow: 0 8px 24px rgba(22, 22, 42, 0.08);
}

.cw-bestsellers-band .woocommerce ul.products li.product img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
  transition: transform 0.5s ease;
}

.cw-bestsellers-band .woocommerce ul.products li.product:hover img {
  transform: scale(1.05);
}

.cw-bestsellers-band .woocommerce-loop-product__title {
  margin-top: 1rem !important;
  padding: 0 !important;
  font-family: var(--cw-font-display) !important;
  font-size: 1.125rem !important;
  line-height: 1.3 !important;
  font-weight: 400 !important;
  text-transform: uppercase;
}

.cw-bestsellers-band .woocommerce ul.products li.product .price {
  margin-top: 0.35rem;
  font-family: var(--cw-font-display);
  font-size: 1.125rem;
  color: var(--cw-foreground) !important;
}

.cw-bestsellers-band .woocommerce ul.products li.product .button,
.cw-bestsellers-band .woocommerce ul.products li.product a.added_to_cart {
  display: none !important;
}

.cw-bestsellers-band .wp-block-buttons {
  margin-top: 2.5rem;
}

.cw-bestsellers-band .cw-product-cards--homepage {
  display: grid !important;
  gap: 1.125rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

@media (min-width: 768px) {
  .cw-bestsellers-band .cw-product-cards--homepage {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 1100px) {
  .cw-bestsellers-band .cw-product-cards--homepage {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.375rem;
  }
}

@media (min-width: 1440px) {
  .cw-bestsellers-band .cw-product-cards--homepage {
    gap: 1.625rem;
  }
}

.cw-bestsellers-band .cw-product-cards--homepage .cw-product-card__body {
  margin-top: 0.75rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}

.cw-bestsellers-band .cw-product-cards--homepage .cw-product-card__title {
  font-size: 0.9375rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cw-bestsellers-band .cw-product-cards--homepage .cw-product-card__meta {
  margin-top: 0;
  font-size: 0.75rem;
  line-height: 1.25;
}

.cw-bestsellers-band .cw-product-cards--homepage .cw-product-card__price {
  margin-top: 0.2rem;
  text-align: left;
  font-size: 0.9375rem;
  line-height: 1.25;
}

.cw-bestsellers-band .cw-product-cards--homepage .cw-product-card__price del {
  font-size: 0.75rem;
}

.cw-bestsellers-band .cw-product-card-wrap {
  min-width: 0;
}

.cw-features-band {
  padding: 2rem 0;
  background: var(--cw-brand-navy-deep);
  color: var(--cw-brand-cream);
}

.cw-features-band .cw-feature {
  border: 0;
  background: transparent;
  padding: 1rem;
  align-items: center;
}

.cw-features-band .cw-feature__icon {
  border-radius: 999px;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.75rem;
}

.cw-features-band .cw-feature__title {
  font-size: 0.95rem;
  color: var(--cw-brand-cream);
}

.cw-features-band .cw-feature__text {
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: rgba(245, 242, 234, 0.7);
}

.cw-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cw-brand-red);
}

.cw-eyebrow::before,
.cw-eyebrow::after {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--cw-brand-red);
}

/* Katalog kategorii (/kolekcje) */
.scroll-mt-24 {
  scroll-margin-top: 6rem;
}

.cw-catalog-directory__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3.5rem;
}

.cw-catalog-directory__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(37, 37, 64, 0.15);
  background: var(--cw-card, #fff);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--cw-foreground);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cw-catalog-directory__chip:hover {
  border-color: var(--cw-foreground);
  box-shadow: 0 4px 16px rgba(22, 22, 42, 0.08);
}

.cw-catalog-directory__chip-num {
  font-family: var(--cw-font-display);
  font-size: 0.75rem;
  color: rgba(37, 37, 64, 0.45);
}

.cw-catalog-directory__chip-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.cw-catalog-directory__groups {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cw-catalog-directory__group + .cw-catalog-directory__group {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(37, 37, 64, 0.1);
}

.cw-catalog-directory__group-shell {
  border: 1px solid rgba(37, 37, 64, 0.08);
  background: rgba(255, 255, 255, 0.65);
  padding: 2rem;
}

@media (min-width: 768px) {
  .cw-catalog-directory__group-shell {
    padding: 2.5rem;
  }
}

.cw-catalog-directory__group-head {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: end;
}

@media (min-width: 768px) {
  .cw-catalog-directory__group-head {
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
  }
}

.cw-catalog-directory__section-no {
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.cw-catalog-directory__group-intro {
  border-left: 4px solid var(--cw-seg-accent, var(--cw-brand-red));
  padding-left: 1.25rem;
}

.cw-catalog-directory__group-head .cw-catalog-directory__count {
  justify-self: end;
}

.cw-catalog-directory__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.cw-catalog-directory__title {
  margin-top: 0.25rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
}

.cw-catalog-directory__desc {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: rgba(37, 37, 64, 0.6);
}

.cw-catalog-directory__count {
  display: none;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(37, 37, 64, 0.5);
}

@media (min-width: 640px) {
  .cw-catalog-directory__count {
    display: block;
  }
}

.cw-catalog-directory__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .cw-catalog-directory__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cw-catalog-directory__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cw-catalog-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(37, 37, 64, 0.1);
  background: var(--cw-card, #fff);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cw-catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(22, 22, 42, 0.12);
}

.cw-catalog-card__bar {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 2;
  height: 6px;
}

.cw-catalog-card__media {
  position: relative;
  display: flex;
  aspect-ratio: 4 / 3;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(37, 37, 64, 0.06);
}

.cw-catalog-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cw-catalog-card__placeholder {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(37, 37, 64, 0.4);
}

.cw-catalog-card__media-fade {
  position: absolute;
  inset: 0;
  opacity: 0;
  mix-blend-mode: multiply;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.cw-catalog-card:hover .cw-catalog-card__media-fade {
  opacity: 0.7;
}

.cw-catalog-card__body {
  padding: 1.5rem;
}

.cw-catalog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(37, 37, 64, 0.5);
}

.cw-catalog-card__dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.5rem;
  border-radius: 50%;
}

.cw-catalog-card__name {
  margin-top: 0.75rem;
  font-size: 1.5rem;
  line-height: 1.2;
}

.cw-catalog-card__text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: rgba(37, 37, 64, 0.6);
}

.cw-catalog-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

/* B2B — sekcja 6 na /kolekcje */
.cw-catalog-b2b {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .cw-catalog-b2b {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
}

.cw-catalog-b2b__info {
  border: 1px solid rgba(37, 37, 64, 0.1);
  background: var(--cw-card, #fff);
  padding: 1.5rem;
}

.cw-catalog-b2b__title {
  font-size: 1.5rem;
  line-height: 1.2;
}

.cw-catalog-b2b__list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(37, 37, 64, 0.75);
}

.cw-catalog-b2b__list li + li {
  margin-top: 0.35rem;
}

.cw-catalog-b2b__contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
}

.cw-catalog-b2b__contact a {
  color: var(--cw-brand-red);
  text-decoration: none;
}

.cw-catalog-b2b__form .cw-contact-form {
  border: 1px solid rgba(37, 37, 64, 0.1);
  background: var(--cw-card, #fff);
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .cw-catalog-b2b__form .cw-contact-form {
    padding: 2rem;
  }
}

/* Bestsellery — karty produktów */
.cw-product-cards {
  display: grid !important;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr);
}

.cw-product-card-wrap {
  position: relative;
  min-width: 0;
}

@media (min-width: 640px) {
  .cw-product-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .cw-product-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cw-bestsellers-page .cw-product-cards {
  width: 100%;
}

.cw-product-card__rank {
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  font-family: var(--cw-font-display);
  font-size: 1rem;
  color: #fff;
  box-shadow: 0 8px 20px rgba(22, 22, 42, 0.2);
}

.cw-product-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.cw-product-card__media {
  overflow: hidden;
  border: 1px solid rgba(37, 37, 64, 0.1);
  background: var(--cw-card, #fff);
  transition: box-shadow 0.25s ease;
}

.cw-product-card:hover .cw-product-card__media {
  box-shadow: 0 8px 24px rgba(22, 22, 42, 0.08);
}

.cw-product-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cw-product-card:hover .cw-product-card__media img {
  transform: scale(1.05);
}

.cw-product-card__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}

.cw-product-card__title {
  font-size: 1.125rem;
  line-height: 1.3;
  text-transform: uppercase;
}

.cw-product-card__meta {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: rgba(37, 37, 64, 0.6);
}

.cw-product-card__price {
  flex-shrink: 0;
  text-align: right;
  font-family: var(--cw-font-display);
  font-size: 1.125rem;
  color: var(--cw-foreground);
}

.cw-product-card__price del {
  font-size: 0.875rem;
  color: rgba(37, 37, 64, 0.45);
}

.cw-product-card__price ins {
  text-decoration: none;
}

main .wp-block-post-content.is-layout-constrained > .cw-catalog-directory,
main .wp-block-post-content.is-layout-constrained > .cw-bestsellers-page,
main .wp-block-post-content.is-layout-constrained > .cw-order-steps,
main .wp-block-post-content.is-layout-constrained > .cw-faq-page,
main .wp-block-post-content.is-layout-constrained > .cw-contact-page,
main .wp-block-post-content.is-layout-constrained > .cw-shipping-page,
main .wp-block-post-content.is-layout-constrained > .cw-returns-page,
main .wp-block-post-content.is-layout-constrained > .cw-regulamin-page,
main .wp-block-post-content.is-layout-constrained > .cw-privacy-page {
  max-width: var(--cw-content-max);
  width: min(100vw - 3rem, var(--cw-content-max));
  margin-left: auto;
  margin-right: auto;
}

/* Jak zamawiamy — kroki 01–06 */
.cw-order-steps__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .cw-order-steps__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cw-order-steps__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cw-order-step {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(37, 37, 64, 0.1);
  background: var(--cw-card, #fff);
  padding: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cw-order-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(22, 22, 42, 0.1);
}

.cw-order-step__bar {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
}

.cw-order-step__num {
  font-size: 1.875rem;
  line-height: 1;
}

.cw-order-step__title {
  margin-top: 0.75rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.cw-order-step__text {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(37, 37, 64, 0.7);
}

/* FAQ — wariant strony */
.cw-faq-page {
  margin-top: 5rem;
}

.cw-faq-page__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(37, 37, 64, 0.5);
}

.cw-faq-page__title {
  margin-top: 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
}

.cw-faq--page,
.cw-faq--shipping {
  margin-top: 2.5rem;
  border-block: 1px solid rgba(37, 37, 64, 0.1);
}

.cw-faq--page .cw-faq__item,
.cw-faq--shipping .cw-faq__item {
  border: 0;
  margin: 0;
  background: transparent;
}

.cw-faq--page .cw-faq__item + .cw-faq__item,
.cw-faq--shipping .cw-faq__item + .cw-faq__item {
  border-top: 1px solid rgba(37, 37, 64, 0.1);
}

.cw-faq__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.cw-faq__summary::-webkit-details-marker {
  display: none;
}

.cw-faq__toggle {
  flex-shrink: 0;
  color: rgba(37, 37, 64, 0.5);
  transition: transform 0.2s ease;
}

.cw-faq__item[open] .cw-faq__toggle {
  transform: rotate(45deg);
}

.cw-faq--page .cw-faq__answer,
.cw-faq--shipping .cw-faq__answer {
  max-width: 48rem;
  padding: 0 0 1.5rem;
}

/* Kontakt */
.cw-contact-layout {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .cw-contact-layout {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.cw-contact-form {
  border: 1px solid rgba(37, 37, 64, 0.1);
  background: var(--cw-card, #fff);
  padding: 2rem;
}

.cw-contact-form__submit {
  width: 100%;
}

.cw-contact-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cw-contact-info {
  border: 1px solid rgba(37, 37, 64, 0.1);
  background: var(--cw-card, #fff);
  padding: 1.5rem;
}

.cw-contact-info__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(37, 37, 64, 0.5);
}

.cw-contact-info__value {
  margin-top: 0.75rem;
  font-size: 1.125rem;
}

.cw-contact-info__value a {
  color: inherit;
  text-decoration: none;
}

.cw-contact-info__value a:hover {
  color: var(--cw-brand-red);
}

/* Dostawa i płatność */
.cw-shipping-page__badges {
  margin-bottom: 3.5rem;
}

.cw-shipping-section + .cw-shipping-section {
  margin-top: 4rem;
}

.cw-shipping-section__title {
  margin-bottom: 1.5rem;
  font-size: 1.875rem;
  line-height: 1.2;
}

.cw-shipping-section__title > span {
  border-left: 4px solid var(--cw-brand-red);
  padding-left: 0.75rem;
}

.cw-shipping-cards {
  display: grid;
  gap: 1.5rem;
}

.cw-shipping-cards--2 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .cw-shipping-cards--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cw-shipping-card,
.cw-shipping-ship {
  border: 1px solid rgba(37, 37, 64, 0.1);
  background: var(--cw-card, #fff);
  padding: 1.5rem;
}

.cw-shipping-card__head,
.cw-shipping-ship__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cw-shipping-card__head {
  align-items: center;
  gap: 0.75rem;
}

.cw-shipping-card__icon,
.cw-shipping-ship__icon,
.cw-shipping-intl__icon,
.cw-returns-tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
}

.cw-shipping-card__icon--red,
.cw-returns-tile__icon {
  background: var(--cw-brand-red);
  color: #fff;
}

.cw-shipping-card__body {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(37, 37, 64, 0.75);
}

.cw-shipping-card__body p + p {
  margin-top: 0.75rem;
}

.cw-shipping-card__note {
  border-left: 4px solid var(--cw-brand-red);
  padding: 0.75rem;
  background: rgba(37, 37, 64, 0.03);
}

.cw-shipping-ship {
  position: relative;
  overflow: hidden;
}

.cw-shipping-ship__bar {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 4px;
}

.cw-shipping-ship__name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cw-shipping-ship__price {
  text-align: right;
}

.cw-shipping-ship__price .font-display {
  font-size: 1.5rem;
}

.cw-shipping-ship__note {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(37, 37, 64, 0.5);
}

.cw-shipping-ship__time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(37, 37, 64, 0.6);
}

.cw-shipping-ship__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.cw-shipping-intl {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.5rem;
  border: 1px solid rgba(37, 37, 64, 0.1);
  background: var(--cw-card, #fff);
  padding: 1.5rem;
}

.cw-shipping-intl__icon {
  background: var(--cw-brand-navy-deep);
  color: var(--cw-brand-cream);
}

.cw-shipping-intl__title {
  font-size: 1.25rem;
}

.cw-shipping-intl p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(37, 37, 64, 0.75);
}

.cw-shipping-page__footer-note {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: rgba(37, 37, 64, 0.6);
}

/* Zwroty i reklamacje */
.cw-returns-tiles {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .cw-returns-tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cw-returns-tile {
  border: 1px solid rgba(37, 37, 64, 0.1);
  background: var(--cw-card, #fff);
  padding: 1.5rem;
}

.cw-returns-tile h3 {
  margin-top: 1rem;
  font-size: 1.25rem;
}

.cw-returns-tile p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(37, 37, 64, 0.7);
}

.cw-legal-section {
  margin-top: 4rem;
}

.cw-legal-section__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(37, 37, 64, 0.1);
}

.cw-legal-section__num {
  font-family: var(--cw-font-mono, monospace);
  font-size: 0.875rem;
  color: var(--cw-brand-red);
}

.cw-legal-section__head h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  line-height: 1.2;
}

.cw-legal-section__body {
  max-width: 56rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(37, 37, 64, 0.85);
}

.cw-legal-section__body ol {
  list-style: decimal;
  padding-left: 1.5rem;
}

.cw-legal-section__body li + li {
  margin-top: 0.5rem;
}

.cw-legal-section__sublist {
  margin-top: 0.5rem;
  list-style: lower-alpha;
}

.cw-legal-section__body a {
  color: var(--cw-brand-red);
  text-decoration: underline;
}

.cw-returns-address {
  margin-top: 1.5rem;
  border: 1px solid rgba(37, 37, 64, 0.1);
  background: var(--cw-card, #fff);
  padding: 1.25rem;
  font-size: 0.875rem;
}

.cw-returns-address__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(37, 37, 64, 0.5);
}

.cw-returns-address a {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--cw-brand-red);
}

.cw-returns-download {
  margin-top: 3rem;
}

.cw-returns-download__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border: 1px solid rgba(37, 37, 64, 0.1);
  background: var(--cw-card, #fff);
  padding: 2rem;
}

@media (min-width: 768px) {
  .cw-returns-download__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cw-returns-download__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cw-brand-red);
}

.cw-returns-download__title {
  margin-top: 0.5rem;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
}

.cw-returns-download__inner p {
  margin-top: 0.75rem;
  max-width: 42rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(37, 37, 64, 0.7);
}

.cw-returns-download__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cw-returns-page__footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(37, 37, 64, 0.1);
  font-size: 0.875rem;
  color: rgba(37, 37, 64, 0.6);
}

/* Regulamin — układ z TOC jak nolight */
.cw-regulamin-page__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .cw-regulamin-page__grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 2.5rem;
  }
}

.cw-regulamin-section + .cw-regulamin-section {
  margin-top: 2.5rem;
}

.cw-regulamin-section__head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(37, 37, 64, 0.1);
}

.cw-regulamin-section__num {
  font-family: var(--cw-font-mono, monospace);
  font-size: 0.875rem;
  color: var(--cw-brand-red, #b81a34);
}

.cw-regulamin-section__head h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.2;
}

.cw-regulamin-section__body {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(37, 37, 64, 0.85);
}

.cw-regulamin-section__body ol,
.cw-regulamin-section__body ul {
  padding-left: 1.5rem;
}

.cw-regulamin-section__body li + li {
  margin-top: 0.5rem;
}

.cw-regulamin-section__body a {
  color: var(--cw-brand-red, #b81a34);
  text-decoration: underline;
}

.cw-regulamin-attachment {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-left: 4px solid var(--cw-brand-red, #b81a34);
  background: var(--cw-card, #fff);
}

.cw-regulamin-attachment h3 {
  font-size: 1.25rem;
}

.cw-regulamin-attachment p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: rgba(37, 37, 64, 0.7);
}

.cw-regulamin-attachment__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.cw-regulamin-page__toc {
  display: none;
}

@media (min-width: 1024px) {
  .cw-regulamin-page__toc {
    display: block;
  }
}

.cw-regulamin-page__toc-inner {
  position: sticky;
  top: 6rem;
  border: 1px solid rgba(37, 37, 64, 0.1);
  background: var(--cw-card, #fff);
  padding: 1.5rem;
}

.cw-regulamin-page__toc-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(37, 37, 64, 0.5);
}

.cw-regulamin-page__toc ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.cw-regulamin-page__toc li + li {
  margin-top: 0.5rem;
}

.cw-regulamin-page__toc a {
  display: block;
  font-size: 0.875rem;
  color: rgba(37, 37, 64, 0.7);
  text-decoration: none;
}

.cw-regulamin-page__toc a:hover {
  color: var(--cw-brand-red, #b81a34);
}

.cw-regulamin-page__toc-num {
  margin-right: 0.5rem;
  font-family: var(--cw-font-mono, monospace);
  font-size: 0.75rem;
  color: var(--cw-brand-red, #b81a34);
}

.cw-legal-template .wp-block-post-title {
  display: none;
}

/* Podstrony /kolekcje/{slug}/ */
.cw-category-collection__head {
  margin-bottom: 2rem;
}

.cw-category-collection__back {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(37, 37, 64, 0.55);
}

.cw-category-collection__back:hover {
  color: var(--cw-brand-red);
}

.cw-category-collection__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(37, 37, 64, 0.5);
}

.cw-category-collection__title {
  margin-top: 0.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.cw-category-collection__desc {
  margin-top: 0.75rem;
  max-width: 42rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(37, 37, 64, 0.7);
}

.cw-category-collection__empty {
  border: 1px solid rgba(37, 37, 64, 0.1);
  background: var(--cw-card, #fff);
  padding: 3rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(37, 37, 64, 0.6);
}

.cw-category-collection__empty--filtered[hidden] {
  display: none !important;
}

.cw-category-collection__layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .cw-category-collection__layout {
    grid-template-columns: minmax(14rem, 16.5rem) minmax(0, 1fr);
    gap: 2rem;
  }

  .cw-category-collection__sidebar {
    position: sticky;
    top: calc(5.5rem + 1rem);
  }
}

.cw-collection-panel {
  border: 1px solid var(--cw-border);
  background: #fff;
  padding: 1rem;
}

.cw-collection-panel + .cw-collection-panel {
  margin-top: 0.75rem;
}

.cw-collection-panel__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(37, 37, 64, 0.55);
}

.cw-collection-panel__input,
.cw-collection-panel__select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--cw-border);
  background: #fff;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.4;
  box-sizing: border-box;
}

.cw-collection-panel__input:focus,
.cw-collection-panel__select:focus {
  outline: 2px solid rgba(22, 116, 195, 0.35);
  outline-offset: 1px;
}

.cw-collection-filter-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cw-collection-filter-nav li + li {
  margin-top: 0.35rem;
}

.cw-collection-filter-nav__link {
  display: block;
  padding: 0.45rem 0;
  font-size: 0.875rem;
  line-height: 1.35;
  text-decoration: none;
  color: rgba(37, 37, 64, 0.78);
}

.cw-collection-filter-nav__link:hover,
.cw-collection-filter-nav__link.is-active {
  color: var(--cw-brand-red);
}

.cw-collection-filter-nav__link.is-active {
  font-weight: 600;
}

@media (max-width: 1023px) {
  .cw-collection-panel--nav .cw-collection-filter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .cw-collection-panel--nav .cw-collection-filter-nav li + li {
    margin-top: 0;
  }

  .cw-collection-filter-nav__link {
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--cw-border);
    background: #fff;
  }

  .cw-collection-filter-nav__link.is-active {
    border-color: var(--cw-brand-red);
    background: rgba(184, 26, 52, 0.06);
  }
}

.cw-category-collection__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cw-category-collection__results {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(37, 37, 64, 0.55);
}

.cw-product-cards--collection {
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (min-width: 640px) {
  .cw-product-cards--collection {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 900px) {
  .cw-product-cards--collection {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1280px) {
  .cw-product-cards--collection {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.875rem;
  }
}

.cw-product-cards--collection .cw-product-card__media img {
  aspect-ratio: 1 / 1;
}

.cw-product-cards--collection .cw-product-card__body {
  margin-top: 0.625rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.cw-product-cards--collection .cw-product-card__title {
  font-size: 0.9375rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cw-product-cards--collection .cw-product-card__meta {
  margin-top: 0;
  font-size: 0.6875rem;
  line-height: 1.2;
}

.cw-product-cards--collection .cw-product-card__price {
  margin-top: 0.125rem;
  text-align: left;
  font-size: 0.8125rem;
}

.cw-product-cards--collection .cw-product-card-wrap.is-hidden {
  display: none !important;
}

.cw-product-cards--collection .cw-product-card-wrap,
.cw-product-cards--collection > .cw-product-card {
  height: 100%;
}

.cw-category-collection__more {
  margin-top: 2.5rem;
  text-align: center;
}

/* Size tables — category + product (always visible, like localhost) */
.cw-size-table,
.cw-size-table.cw-size-table--visible {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.cw-size-table {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid rgba(37, 37, 64, 0.1);
}

.cw-category-collection__size-table,
.cw-wc-archive-size-table {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 0;
}

.cw-wc-archive-size-table {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.cw-size-table--product {
  scroll-margin-top: 6rem;
}

.cw-size-table__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(37, 37, 64, 0.5);
}

.cw-size-table__title {
  margin: 0.5rem 0 0;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.15;
}

.cw-size-table__note {
  margin: 0.75rem 0 0;
  max-width: 42rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(37, 37, 64, 0.62);
}

.cw-size-table__wrap {
  margin-top: 1.5rem;
  overflow-x: auto;
  border: 1px solid rgba(37, 37, 64, 0.1);
  background: var(--cw-card, #fff);
}

.cw-size-table__grid {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.cw-size-table__grid thead th {
  padding: 0.85rem 1.25rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(37, 37, 64, 0.55);
  background: rgba(37, 37, 64, 0.04);
  border-bottom: 1px solid rgba(37, 37, 64, 0.1);
}

.cw-size-table__grid tbody th,
.cw-size-table__grid tbody td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(37, 37, 64, 0.06);
}

.cw-size-table__grid tbody th {
  font-weight: 600;
}

.cw-size-table__grid tbody tr:last-child th,
.cw-size-table__grid tbody tr:last-child td {
  border-bottom: 0;
}

.cw-size-table--artstudio .cw-size-table__group {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cw-brand-blue);
}

.cw-size-table__guide {
  margin-top: 1.25rem;
  max-width: 52rem;
}

.cw-size-table__guide img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(37, 37, 64, 0.08);
}

.cw-size-table__grid--artstudio thead th {
  background: #1674c3;
  color: #fff;
  text-align: center;
  border-bottom: 0;
}

.cw-size-table__grid--artstudio thead th:first-child {
  text-align: left;
}

.cw-size-table__grid--artstudio tbody th {
  background: rgba(22, 116, 195, 0.08);
  color: var(--cw-brand-navy);
  white-space: nowrap;
}

.cw-size-table__grid--artstudio tbody td {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.cw-size-table__footnote {
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(37, 37, 64, 0.72);
}

.single-product .cw-size-table--artstudio .cw-size-table__guide {
  display: none;
}

.single-product .cw-product-page .cw-product-size-table {
  width: 100%;
  max-width: 100%;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  scroll-margin-top: 6rem;
}

.single-product div.product .cw-product-size-table {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.cw-size-table-link {
  margin: 0 0 0.75rem;
  text-align: right;
}

.cw-size-table-link a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cw-brand-blue);
  text-decoration: none;
}

.cw-size-table-link a:hover {
  text-decoration: underline;
}

main .wp-block-post-content.is-layout-constrained > .cw-category-collection {
  max-width: var(--cw-content-max);
  width: min(100vw - 3rem, var(--cw-content-max));
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   WooCommerce — single product
   -------------------------------------------------------------------------- */

/* Break out of WP 720px constrained layout on product / shop pages */
body.cw-single-product main,
body.single-product main,
body.is-single-product main,
body.cw-single-product .cw-woocommerce-main,
body.single-product .cw-woocommerce-main,
body.is-woocommerce .cw-woocommerce-main {
  max-width: none !important;
  width: 100% !important;
  margin-inline: auto !important;
}

body.cw-single-product .cw-woocommerce-main--product,
body.single-product .cw-woocommerce-main--product,
body.is-single-product .cw-woocommerce-main--product {
  width: 100vw !important;
  max-width: 100% !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-inline: clamp(1rem, 3vw, 2.5rem) !important;
  box-sizing: border-box !important;
}

body.cw-single-product main :where(.is-layout-constrained) > *,
body.single-product main :where(.is-layout-constrained) > *,
body.is-single-product main :where(.is-layout-constrained) > * {
  max-width: none !important;
  width: 100% !important;
  margin-inline: 0 !important;
}

main .wp-block-post-content.is-layout-constrained > .cw-woocommerce-main,
body.cw-single-product .cw-woocommerce-main,
body.single-product .cw-woocommerce-main {
  max-width: none;
  width: 100%;
  margin-inline: auto;
}

.cw-woocommerce-main {
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.cw-woocommerce-main--product {
  padding-block: clamp(1.25rem, 3vw, 2.5rem);
}

.cw-product-page {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding-inline: clamp(0.5rem, 2vw, 1rem);
  box-sizing: border-box;
}

.cw-product-page .cw-container {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
  box-sizing: border-box;
}

main .wp-block-post-content.is-layout-constrained > .cw-woocommerce-main--product,
main.is-layout-constrained > .cw-woocommerce-main--product,
main .cw-woocommerce-main--product.is-layout-constrained {
  width: 100vw !important;
  max-width: 100% !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* Hide duplicate breadcrumbs from plugins / legacy WC output */
body.cw-single-product .woocommerce-breadcrumb,
body.single-product .woocommerce-breadcrumb {
  display: none !important;
}

body.cw-single-product .cw-product-breadcrumbs .woocommerce-breadcrumb,
body.single-product .cw-product-breadcrumbs .woocommerce-breadcrumb {
  display: block !important;
}

.cw-product-breadcrumbs {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  font-size: 0.875rem;
  color: rgba(37, 37, 64, 0.6);
}

.cw-product-breadcrumbs .woocommerce-breadcrumb {
  margin: 0;
  font-size: inherit;
  color: inherit;
}

.cw-product-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.cw-product-breadcrumbs a:hover {
  color: var(--cw-brand-red);
  text-decoration: underline;
}

.cw-breadcrumb-sep {
  margin-inline: 0.5rem;
  opacity: 0.45;
}

body.cw-single-product div.product,
body.single-product div.product,
.woocommerce div.product {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  justify-items: stretch;
  margin: 0 auto !important;
  clear: both !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  box-sizing: border-box;
}

body.cw-single-product .woocommerce,
body.single-product .woocommerce {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: auto !important;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary,
.woocommerce #content div.product div.images,
.woocommerce #content div.product div.summary,
body.single-product div.product .woocommerce-product-gallery,
body.single-product div.product .summary.entry-summary {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  clear: none !important;
  margin: 0 !important;
}

body.cw-single-product div.product::before,
body.cw-single-product div.product::after,
body.single-product div.product::before,
body.single-product div.product::after {
  display: none !important;
  content: none !important;
}

@media (min-width: 768px) {
  body.cw-single-product div.product,
  body.single-product div.product,
  .woocommerce div.product {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) !important;
    gap: clamp(2rem, 4vw, 3.5rem);
    grid-template-areas:
      "gallery summary"
      "tabs tabs"
      "related related";
  }

  body.cw-single-product div.product .woocommerce-product-gallery,
  body.single-product div.product .woocommerce-product-gallery {
    grid-area: gallery;
  }

  body.cw-single-product div.product .summary.entry-summary,
  body.single-product div.product .summary.entry-summary {
    grid-area: summary;
  }

  body.cw-single-product div.product .woocommerce-tabs,
  body.single-product div.product .woocommerce-tabs,
  body.cw-single-product div.product .cw-product-size-table,
  body.single-product div.product .cw-product-size-table,
  body.cw-single-product div.product .cw-product-recommendations,
  body.single-product div.product .cw-product-recommendations {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
  }

  body.cw-single-product div.product .woocommerce-tabs,
  body.single-product div.product .woocommerce-tabs {
    grid-area: tabs;
  }

  body.cw-single-product div.product .related.products,
  body.single-product div.product .related.products,
  body.cw-single-product div.product .upsells.products,
  body.single-product div.product .upsells.products,
  body.cw-single-product div.product .cw-product-recommendations--related,
  body.single-product div.product .cw-product-recommendations--related {
    grid-area: related;
  }
}

@media (min-width: 992px) {
  body.cw-single-product div.product,
  body.single-product div.product,
  .woocommerce div.product {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) !important;
    gap: clamp(2.5rem, 5vw, 4rem);
  }

  body.cw-single-product div.product .woocommerce-product-gallery,
  body.single-product div.product .woocommerce-product-gallery {
    position: sticky;
    top: calc(5.5rem + 1rem);
  }
}

@media (min-width: 1280px) {
  body.cw-single-product div.product,
  body.single-product div.product,
  .woocommerce div.product {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) !important;
    gap: clamp(3rem, 5vw, 5rem);
  }
}

body.cw-single-product .woocommerce-product-gallery,
body.single-product .woocommerce-product-gallery,
body.cw-single-product .summary.entry-summary,
body.single-product .summary.entry-summary {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
}

.single-product .woocommerce-product-gallery {
  width: 100%;
  max-width: 100%;
  margin: 0;
  float: none !important;
}

.single-product .woocommerce-product-gallery__wrapper {
  margin: 0;
}

.single-product .woocommerce-product-gallery__image,
.single-product .woocommerce-product-gallery__image--placeholder {
  aspect-ratio: 4 / 5;
  background: rgba(37, 37, 64, 0.04);
  border: 1px solid var(--cw-border);
  overflow: hidden;
}

.single-product .woocommerce-product-gallery__image a,
.single-product .woocommerce-product-gallery__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.single-product .woocommerce-product-gallery__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  font-size: 0;
  line-height: 0;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li {
  width: 4.5rem;
  margin: 0 !important;
  float: none !important;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li:empty {
  display: none;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs img {
  width: 100%;
  height: 4.5rem;
  object-fit: cover;
  border: 1px solid var(--cw-border);
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.2s ease, border-color 0.2s ease;
  font-size: 0;
  line-height: 0;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs img:hover,
.single-product .woocommerce-product-gallery .flex-control-thumbs .flex-active {
  opacity: 1;
  border-color: var(--cw-foreground);
}

.single-product .summary.entry-summary {
  width: 100%;
  float: none !important;
  margin: 0;
  min-width: 0;
}

body.cw-single-product .product_title,
body.cw-single-product .entry-summary h1.product_title,
body.single-product .product_title,
body.single-product .entry-summary h1.product_title,
.woocommerce div.product .product_title.entry-title {
  font-family: var(--cw-font-display) !important;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem) !important;
  line-height: 1.15 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1rem !important;
  max-width: 100% !important;
  width: 100% !important;
  word-break: normal !important;
  overflow-wrap: break-word;
  hyphens: manual;
}

.single-product .woocommerce-product-details__short-description {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(37, 37, 64, 0.72);
}

.single-product .summary .price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  font-family: var(--cw-font-display);
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 400;
  color: var(--cw-foreground);
}

.single-product .summary .price del {
  font-size: 0.85em;
  opacity: 0.55;
}

.single-product .summary .price ins {
  text-decoration: none;
}

.single-product .summary .price::after {
  content: "brutto";
  font-family: var(--cw-font-sans);
  font-size: 0.875rem;
  color: rgba(37, 37, 64, 0.55);
}

.single-product form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.single-product form.cart .variations,
.single-product form.cart .woocommerce-variation-add-to-cart {
  width: 100%;
  flex: 1 1 100%;
}

.single-product form.cart .woocommerce-variation-add-to-cart {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
}

.single-product .variations {
  margin-bottom: 0;
}

.single-product .variations_form {
  width: 100%;
}

.single-product .variations tr {
  display: block;
  margin-bottom: 1rem;
}

.single-product .variations td,
.single-product .variations th {
  display: block;
  padding: 0;
  border: none;
}

.single-product .variations .label label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(37, 37, 64, 0.8);
}

.single-product table.variations ul,
.single-product .woo-variation-items-wrapper,
.single-product .cfvsw-swatches-container,
.single-product .variable-items-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.single-product table.variations .value {
  width: 100%;
}

.single-product .variations select {
  width: 100%;
  max-width: 16rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--cw-border);
  background: #fff;
  font-family: var(--cw-font-sans);
  font-size: 0.875rem;
}

.single-product .reset_variations {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: rgba(37, 37, 64, 0.55);
}

.single-product .quantity {
  flex: 0 0 auto;
  margin: 0;
}

.single-product .quantity .qty {
  width: 4rem;
  padding: 0.75rem;
  border: 1px solid var(--cw-border);
  font-family: var(--cw-font-sans);
  font-size: 0.875rem;
  text-align: center;
}

.single-product .single_add_to_cart_button,
.single-product button.single_add_to_cart_button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 1 1 12rem;
  min-width: min(100%, 14rem);
  margin-top: 0;
  padding: 0.9rem 1.5rem;
  border: none;
  background: var(--cw-foreground);
  color: var(--cw-background);
  font-family: var(--cw-font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.single-product .single_add_to_cart_button:hover {
  transform: translateY(-2px);
  background: var(--cw-brand-navy-deep);
  color: #fff;
}

.single-product .product_meta {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cw-border);
  font-size: 0.8125rem;
  color: rgba(37, 37, 64, 0.6);
}

.single-product .product_meta > span {
  display: block;
  margin-bottom: 0.35rem;
}

.cw-product-meta-strip {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cw-border);
  display: grid;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(37, 37, 64, 0.7);
}

@media (min-width: 640px) {
  .cw-product-meta-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .cw-product-meta-strip > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

.cw-product-meta-strip > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.cw-product-meta-strip strong {
  color: var(--cw-foreground);
  font-weight: 500;
}

.single-product .woocommerce-tabs {
  margin-top: 0;
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--cw-border);
}

.single-product .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--cw-border);
}

.single-product .woocommerce-tabs ul.tabs::before,
.single-product .woocommerce-tabs ul.tabs::after {
  display: none;
}

.single-product .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

.single-product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 2px solid transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(37, 37, 64, 0.55);
}

.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--cw-foreground);
  border-bottom-color: var(--cw-brand-red);
}

.single-product .woocommerce-Tabs-panel {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(37, 37, 64, 0.8);
}

.single-product .woocommerce-Tabs-panel h2 {
  font-family: var(--cw-font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem) !important;
  margin: 0 0 1rem;
}

/* Zdjęcia w opisie produktu — import z Divi często ma pełną szerokość */
.single-product .woocommerce-Tabs-panel--description img,
.single-product #tab-description img,
.single-product .woocommerce-product-details__short-description img {
  display: block;
  max-width: min(100%, 26rem) !important;
  width: auto !important;
  height: auto !important;
  margin: 1rem 0;
  border-radius: var(--cw-radius-sm, 6px);
}

.single-product .woocommerce-Tabs-panel--description figure.wp-block-image,
.single-product #tab-description figure.wp-block-image,
.single-product .woocommerce-product-details__short-description figure.wp-block-image {
  max-width: min(100%, 26rem);
  margin: 1rem 0;
}

.single-product .woocommerce-Tabs-panel--description figure.wp-block-image img,
.single-product #tab-description figure.wp-block-image img,
.single-product .woocommerce-product-details__short-description figure.wp-block-image img {
  margin: 0;
}

.single-product .related.products,
.single-product .upsells.products,
.single-product .cw-product-recommendations {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--cw-border);
  width: 100%;
  max-width: 100%;
  clear: both;
}

.single-product .cw-product-recommendations--upsells + .cw-product-recommendations--related,
.single-product .upsells.products + .related.products {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: 0;
  border-top: 0;
}

.single-product .related.products > h2,
.single-product .upsells.products > h2,
.single-product .cw-product-recommendations__title {
  font-family: var(--cw-font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem) !important;
  margin: 0 0 1.5rem;
}

.single-product .cw-product-cards--recommendations {
  display: grid !important;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: start;
}

@media (min-width: 768px) {
  .single-product .cw-product-cards--recommendations {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.125rem;
  }
}

.single-product .related.products ul.products,
.single-product .upsells.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

/* Ukryj pływający koszyk (wtyczki / stare style) */
.cw-floating-cart,
.xoo-wsc-basket,
.xoo-wsc-cart-trigger,
.wooac-cart,
#woofc-area,
.woofc-cart,
.wc-block-mini-cart.wc-block-mini-cart--floating {
  display: none !important;
}

@media (min-width: 768px) {
  .single-product .related.products ul.products,
  .single-product .upsells.products ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 479px) {
  .single-product form.cart .woocommerce-variation-add-to-cart,
  .single-product form.cart {
    flex-direction: column;
  }

  .single-product .single_add_to_cart_button,
  .single-product button.single_add_to_cart_button.button {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   WooCommerce — cart & checkout
   -------------------------------------------------------------------------- */

main .wp-block-post-content.is-layout-constrained > .cw-cart-page,
main .wp-block-post-content.is-layout-constrained > .cw-checkout-page,
main .wp-block-post-content.is-layout-constrained > .cw-page-hero:has(+ .cw-cart-page),
.cw-cart-page,
.cw-checkout-page,
body.woocommerce-cart main .wp-block-post-content,
body.woocommerce-checkout main .wp-block-post-content,
body.is-cart-page main,
body.is-checkout-page main {
  max-width: none !important;
}

.cw-cart-page,
.cw-checkout-page {
  padding-block: clamp(1.25rem, 3vw, 2.5rem);
}

.cw-cart-page .cw-container,
.cw-checkout-page .cw-container {
  width: min(100% - 1.5rem, var(--cw-content-max));
  margin-inline: auto;
  padding-inline: clamp(0.75rem, 2vw, 1.5rem);
}

@media (min-width: 768px) {
  .cw-cart-page .cw-container,
  .cw-checkout-page .cw-container {
    width: min(100% - 3rem, var(--cw-content-max));
  }
}

.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  width: 100%;
  min-width: 0;
}

.woocommerce-cart .woocommerce > h1,
.woocommerce-cart .entry-title,
.woocommerce-checkout .woocommerce > h1,
.woocommerce-checkout .entry-title {
  display: none;
}

.cw-cart-empty {
  border: 1px solid var(--cw-border);
  background: #fff;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  text-align: center;
}

.cw-cart-empty__icon {
  margin-inline: auto;
  color: rgba(37, 37, 64, 0.4);
}

.cw-cart-empty__title {
  margin: 1.5rem 0 0.75rem;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.15;
}

.cw-cart-empty__text {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(37, 37, 64, 0.65);
}

.cw-cart-empty__cta {
  display: inline-flex;
  margin-top: 2rem;
  padding: 0.85rem 1.5rem;
  background: var(--cw-foreground);
  color: var(--cw-background);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: transform 0.2s ease, background 0.2s ease;
}

.cw-cart-empty__cta:hover {
  transform: translateY(-2px);
  background: var(--cw-brand-navy-deep);
  color: #fff;
}

.woocommerce-cart-form {
  margin-bottom: 1.5rem;
  border: 1px solid var(--cw-border);
  background: #fff;
  padding: clamp(0.75rem, 2.5vw, 1.5rem);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.woocommerce-cart-form__contents {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.woocommerce-cart-form__contents thead th {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--cw-border);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(37, 37, 64, 0.55);
  text-align: left;
}

.woocommerce-cart-form__contents tbody td {
  padding: 1rem 0.5rem;
  border-bottom: 1px solid var(--cw-border);
  vertical-align: middle;
}

.woocommerce-cart-form__contents .product-thumbnail {
  width: 5.5rem;
}

.woocommerce-cart-form__contents .product-thumbnail img {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  border: 1px solid var(--cw-border);
}

.woocommerce-cart-form__contents .product-name {
  line-height: 1.4;
  word-break: break-word;
}

/* Cart / checkout item meta: "Krój: Męska" on one line (Woo wraps values in <p>). */
.woocommerce td.product-name dl.variation,
.woocommerce-cart-form__contents .product-name dl.variation,
.woocommerce-checkout-review-order-table .product-name dl.variation {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.4rem;
  row-gap: 0.15rem;
  margin: 0.45rem 0 0;
  padding: 0;
  border: 0;
  float: none;
}

.woocommerce td.product-name dl.variation dt,
.woocommerce td.product-name dl.variation dd,
.woocommerce-cart-form__contents .product-name dl.variation dt,
.woocommerce-cart-form__contents .product-name dl.variation dd,
.woocommerce-checkout-review-order-table .product-name dl.variation dt,
.woocommerce-checkout-review-order-table .product-name dl.variation dd {
  display: block;
  float: none;
  clear: none;
  margin: 0;
  padding: 0;
  width: auto;
  font-size: 0.8125rem;
  line-height: 1.35;
  font-weight: 400;
  color: rgba(37, 37, 64, 0.62);
}

.woocommerce td.product-name dl.variation dt,
.woocommerce-cart-form__contents .product-name dl.variation dt,
.woocommerce-checkout-review-order-table .product-name dl.variation dt {
  font-weight: 600;
  color: rgba(37, 37, 64, 0.48);
  text-transform: none;
}

.woocommerce td.product-name dl.variation dd p,
.woocommerce-cart-form__contents .product-name dl.variation dd p,
.woocommerce-checkout-review-order-table .product-name dl.variation dd p {
  display: inline;
  margin: 0;
  padding: 0;
}

.woocommerce-cart-form__contents .product-name a {
  font-weight: 500;
  text-decoration: none;
}

.woocommerce-cart-form__contents .product-name a:hover {
  color: var(--cw-brand-red);
}

.woocommerce-cart-form__contents .product-price,
.woocommerce-cart-form__contents .product-subtotal {
  white-space: nowrap;
}

.woocommerce-cart-form__contents .product-remove a {
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cw-border);
  border-radius: 999px;
  text-decoration: none;
  color: rgba(37, 37, 64, 0.55);
  font-size: 1.1rem;
  line-height: 1;
}

.woocommerce-cart-form__contents .product-remove a:hover {
  border-color: var(--cw-brand-red);
  color: var(--cw-brand-red);
}

.woocommerce-cart-form__contents .quantity .qty {
  width: 4.25rem;
  max-width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--cw-border);
  text-align: center;
}

.woocommerce-cart-form__contents .actions {
  padding-top: 1.25rem;
}

.woocommerce-cart-form__contents .coupon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
  margin-top: 0;
}

.woocommerce-cart-form__contents .coupon label {
  display: none;
}

.woocommerce-cart-form__contents .coupon .input-text {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--cw-border);
}

/* theme.json gives buttons cream text; light WC buttons need dark labels.
 * Exclude the dark "Przejdź do płatności" CTA (.checkout-button) — that one
 * has a dark background and needs light text (see .wc-proceed-to-checkout
 * rules below). Without the :not(.checkout-button) exclusion, this rule
 * wins on specificity over the CTA's cream/white text and leaves dark text
 * on a dark button — invisible until :hover/:active flips it to white.
 */
.woocommerce-cart button.button,
.woocommerce-cart input.button,
.woocommerce-cart a.button:not(.checkout-button),
.woocommerce-checkout button.button:not(#place_order),
.woocommerce-checkout input.button,
.woocommerce-checkout a.button:not(.checkout-button) {
  color: var(--cw-foreground) !important;
}

.woocommerce-cart-form__contents button[name="update_cart"],
.woocommerce-cart-form__contents button[name="apply_coupon"],
.woocommerce-cart-form__contents .coupon button,
.woocommerce-cart-form__contents .actions .button {
  padding: 0.65rem 1rem;
  border: 1px solid var(--cw-border);
  background: #fff;
  color: var(--cw-foreground) !important;
  font-family: var(--cw-font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.woocommerce-cart-form__contents button[name="update_cart"]:hover,
.woocommerce-cart-form__contents button[name="apply_coupon"]:hover,
.woocommerce-cart-form__contents .coupon button:hover {
  border-color: var(--cw-foreground);
  background: rgba(37, 37, 64, 0.04);
  color: var(--cw-foreground) !important;
}

.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-error,
.woocommerce-cart .woocommerce-info,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-info {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--cw-border);
  background: #fff;
  font-size: 0.875rem;
  list-style: none;
}

.woocommerce-cart .woocommerce-error li,
.woocommerce-checkout .woocommerce-error li {
  margin: 0;
}

.cart_totals .cart-discount td,
.cart_totals .cart-discount th {
  color: var(--cw-brand-red);
}

.woocommerce-checkout .woocommerce-form-coupon-toggle {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle a {
  color: var(--cw-foreground);
  font-weight: 500;
}

.woocommerce-checkout form.checkout_coupon,
.woocommerce-checkout .checkout_coupon.woocommerce-form-coupon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
  margin-bottom: 1.25rem;
}

.woocommerce-checkout form.checkout_coupon .form-row-first,
.woocommerce-checkout form.checkout_coupon .form-row-last,
.woocommerce-checkout .checkout_coupon .form-row-first,
.woocommerce-checkout .checkout_coupon .form-row-last {
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

.woocommerce-checkout form.checkout_coupon .input-text,
.woocommerce-checkout .checkout_coupon .input-text {
  width: 100%;
  margin: 0;
}

.woocommerce-checkout form.checkout_coupon button[name="apply_coupon"],
.woocommerce-checkout .checkout_coupon button[name="apply_coupon"] {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--cw-border);
  background: #fff;
  color: var(--cw-foreground) !important;
  font-family: var(--cw-font-sans);
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.woocommerce-checkout form.checkout_coupon button[name="apply_coupon"]:hover,
.woocommerce-checkout .checkout_coupon button[name="apply_coupon"]:hover {
  border-color: var(--cw-foreground);
  background: rgba(37, 37, 64, 0.04);
  color: var(--cw-foreground) !important;
}

.cart-collaterals {
  display: grid;
  gap: 1.5rem;
  width: 100%;
  min-width: 0;
}

.cart_totals {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--cw-border);
  background: #fff;
  padding: clamp(1rem, 3vw, 1.5rem);
  overflow: visible;
}

.cart_totals > h2 {
  margin: 0 0 1rem;
  font-family: var(--cw-font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.25rem) !important;
}

.cart_totals table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.cart_totals th,
.cart_totals td {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--cw-border);
  vertical-align: top;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: manual;
}

.cart_totals th {
  width: 42%;
  padding-right: 0.75rem;
  text-align: left;
  font-weight: 600;
}

.cart_totals td {
  width: 58%;
  text-align: right;
  white-space: normal;
}

.cart_totals tr.woocommerce-shipping-totals,
.cart_totals tr.shipping {
  display: block;
  width: 100%;
}

.cart_totals tr.woocommerce-shipping-totals th,
.cart_totals tr.shipping th {
  display: block;
  width: 100%;
  padding-right: 0;
  padding-bottom: 0.35rem;
  border-bottom: 0;
  text-align: left;
  font-weight: 600;
  color: var(--cw-foreground);
}

.cart_totals tr.woocommerce-shipping-totals td,
.cart_totals tr.shipping td {
  display: block;
  width: 100%;
  text-align: left;
  padding-top: 0;
}

/*
 * WooCommerce's responsive shop_table CSS injects a ::before label from
 * data-title="Przesyłka" on the shipping <td>. We already show the real
 * <th> ("Przesyłka"), so the pseudo-label duplicates it and breaks the
 * summary layout. Hide the injected copy.
 */
.cart_totals tr.woocommerce-shipping-totals td::before,
.cart_totals tr.shipping td::before,
.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td::before,
.woocommerce-checkout-review-order-table tr.shipping td::before {
  content: none !important;
  display: none !important;
}

/*
 * Not scoped to ".cart_totals" — #shipping_method is a unique WooCommerce
 * ID that also appears on the checkout page's order-review table (a
 * different wrapping table class than the cart page), so this must apply
 * everywhere the shipping method list can render, or the checkout page
 * falls back to unstyled markup and can squeeze the list down to almost
 * nothing next to plugin buttons (see the letter-per-line bug below).
 */
#shipping_method {
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#shipping_method li {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  padding: 0;
  line-height: 1.45;
}

#shipping_method li:last-child {
  margin-bottom: 0;
}

#shipping_method li input[type="radio"] {
  margin: 0.2rem 0 0;
  flex-shrink: 0;
}

#shipping_method li label {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  line-height: 1.45;
  word-break: normal;
  overflow-wrap: break-word;
  white-space: normal;
}

#shipping_method img {
  max-height: 1.25rem;
  width: auto;
  vertical-align: middle;
}

/*
 * The InPost plugin injects a logo (img.paczkomat-logo) and a
 * "Wybierz paczkomat" button (.select-paczkomat-button) as SIBLINGS of the
 * shipping method <label> — not children of it. On a narrow flex/grid
 * column those siblings fight the label for horizontal space and leave
 * the label text wrapping one character per line. Stack everything under
 * the label on its own full-width lines instead.
 */
#shipping_method li > div {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  margin: 0;
}

#shipping_method li img.paczkomat-logo,
#shipping_method li img[width] {
  display: block;
  width: auto !important;
  max-width: 7.5rem;
  height: auto;
  margin: 0.15rem 0;
}

#shipping_method li .select-paczkomat-button,
#shipping_method li button.btn,
#shipping_method li button.button,
#shipping_method li a.button,
#shipping_method li input[type="button"],
#shipping_method li [class*="inpost"],
#shipping_method li [class*="paczkomat"]:not(img),
#shipping_method li [class*="geowidget"],
#shipping_method li [class*="easypack"] {
  display: inline-block;
  float: none;
  clear: both;
  width: auto;
  max-width: 100%;
  margin: 0.25rem 0 0;
  white-space: normal;
}

.cart_totals .woocommerce-shipping-destination,
.cart_totals .woocommerce-shipping-calculator {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.cart_totals .shipping-calculator-button {
  font-size: 0.8125rem;
  line-height: 1.5;
}

.cart_totals .order-total th,
.cart_totals .order-total td {
  font-family: var(--cw-font-display);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  border-bottom: 0;
  padding-top: 0.75rem;
}

.cart_totals .order-total small,
.cart_totals .includes_tax,
.cart_totals .tax-total th,
.cart_totals .tax-total td {
  font-family: var(--cw-font-body, inherit);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(37, 37, 64, 0.65);
}

.cart_totals .order-total small,
.cart_totals .includes_tax {
  display: block;
  margin-top: 0.2rem;
}

.wc-proceed-to-checkout {
  width: 100%;
  max-width: 100%;
  margin-top: 1rem;
  box-sizing: border-box;
}

.wc-proceed-to-checkout .checkout-button,
.woocommerce-cart a.checkout-button,
.woocommerce-cart .wc-proceed-to-checkout a.button,
.woocommerce-checkout-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.95rem 1.25rem !important;
  border: none !important;
  background: var(--cw-foreground) !important;
  color: #fff !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, background 0.2s ease;
}

.wc-proceed-to-checkout .checkout-button:hover,
.wc-proceed-to-checkout .checkout-button:focus,
.wc-proceed-to-checkout .checkout-button:active,
.woocommerce-cart a.checkout-button:hover,
.woocommerce-cart a.checkout-button:focus,
.woocommerce-cart a.checkout-button:active,
.woocommerce-checkout-button:hover,
.woocommerce-checkout-button:focus,
.woocommerce-checkout-button:active {
  transform: translateY(-2px);
  background: var(--cw-brand-navy-deep) !important;
  color: #fff !important;
}

.wc-proceed-to-checkout .checkout-button:visited,
.woocommerce-cart a.checkout-button:visited,
.woocommerce-checkout-button:visited {
  color: #fff !important;
}

@media (max-width: 767px) {
  .woocommerce-cart-form {
    padding: 1rem;
  }

  .woocommerce-cart-form__contents thead {
    display: none;
  }

  .woocommerce-cart-form__contents tbody tr.cart_item,
  .woocommerce-cart-form__contents tbody tr.woocommerce-cart-form__cart-item {
    display: block;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--cw-border);
  }

  .woocommerce-cart-form__contents tbody tr.cart_item td,
  .woocommerce-cart-form__contents tbody tr.woocommerce-cart-form__cart-item td {
    display: block;
    width: 100%;
    border: 0;
    padding: 0.35rem 0;
    text-align: left !important;
  }

  .woocommerce-cart-form__contents .product-remove {
    margin-bottom: 0.35rem;
  }

  .woocommerce-cart-form__contents .product-thumbnail {
    width: auto;
  }

  .woocommerce-cart-form__contents .product-thumbnail img {
    width: 5rem;
    height: 5rem;
  }

  .woocommerce-cart-form__contents .product-name {
    font-size: 0.9rem;
    font-weight: 500;
  }

  .woocommerce-cart-form__contents .product-price {
    font-size: 0.8125rem;
    color: rgba(37, 37, 64, 0.65);
    white-space: normal;
  }

  .woocommerce-cart-form__contents .product-price::before {
    content: "Cena: ";
    font-weight: 600;
    color: rgba(37, 37, 64, 0.45);
    text-transform: uppercase;
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
  }

  .woocommerce-cart-form__contents .product-subtotal {
    font-weight: 600;
    font-size: 1rem;
  }

  .woocommerce-cart-form__contents .product-subtotal::before {
    content: "Razem: ";
    font-weight: 600;
    color: rgba(37, 37, 64, 0.45);
    text-transform: uppercase;
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
    margin-right: 0.35rem;
  }

  .woocommerce-cart-form__contents tbody tr:not(.cart_item):not(.woocommerce-cart-form__cart-item) {
    display: block;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--cw-border);
  }

  .woocommerce-cart-form__contents tbody tr:not(.cart_item):not(.woocommerce-cart-form__cart-item) td,
  .woocommerce-cart-form__contents tbody tr:not(.cart_item):not(.woocommerce-cart-form__cart-item) td.actions {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
  }

  .woocommerce-cart-form__contents .actions .coupon {
    width: 100%;
    flex-direction: column;
  }

  /*
   * The desktop rule sets ".input-text { flex: 1 1 12rem; }" — that 12rem
   * is a flex-basis along the main axis. On desktop the coupon row is
   * flex-direction: row, so the main axis is width and 12rem is a sensible
   * minimum width. Here the row switches to flex-direction: column, which
   * flips the main axis to height — so the SAME "12rem" flex-basis was
   * being applied as a minimum HEIGHT instead, rendering the coupon input
   * as a ~192px tall empty box on mobile. flex-basis: auto lets height
   * come from padding/line-height again, like a normal text field.
   */
  .woocommerce-cart-form__contents .actions .coupon .input-text,
  .woocommerce-cart-form__contents .actions .coupon button,
  .woocommerce-cart-form__contents .actions button[name="apply_coupon"],
  .woocommerce-cart-form__contents .actions button[name="update_cart"] {
    width: 100%;
    flex: 0 1 auto;
  }

  .cart-collaterals {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .cart_totals {
    margin-top: 0.5rem;
    padding: 1rem;
  }

  .cart_totals th {
    width: 40%;
  }

  .cart_totals td {
    width: 60%;
  }

  .cart_totals .order-total td {
    text-align: right;
  }
}

@media (min-width: 768px) and (max-width: 899px) {
  .woocommerce-cart-form__contents .product-name {
    max-width: 14rem;
  }

  .woocommerce-cart-form__contents .product-thumbnail {
    width: 4.5rem;
  }

  .woocommerce-cart-form__contents .product-thumbnail img {
    width: 4rem;
    height: 4rem;
  }
}

@media (min-width: 1100px) {
  .woocommerce-cart .woocommerce {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
  }

  .woocommerce-cart-form {
    grid-column: 1;
    margin-bottom: 0;
  }

  .cart-collaterals {
    grid-column: 2;
    position: sticky;
    top: calc(5.5rem + 1.25rem);
    min-width: 0;
  }
}

.woocommerce-checkout .col2-set {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 0;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  float: none;
}

.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields {
  border: 1px solid var(--cw-border);
  background: #fff;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.woocommerce-checkout .woocommerce-billing-fields > h3,
.woocommerce-checkout .woocommerce-shipping-fields > h3,
.woocommerce-checkout .woocommerce-additional-fields > h3,
.woocommerce-checkout #order_review_heading {
  font-family: var(--cw-font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem) !important;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.cw-checkout-layout,
form.checkout.woocommerce-checkout {
  width: 100%;
  min-width: 0;
}

.cw-checkout-details {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}

.cw-checkout-order {
  display: grid;
  gap: 0;
  min-width: 0;
}

.cw-checkout-order #order_review_heading {
  margin-bottom: 1rem;
}

.cw-checkout-order #order_review {
  border: 0;
  padding: 0;
  background: transparent;
}

.woocommerce-checkout .form-row {
  margin-bottom: 1rem;
}

.woocommerce-checkout .form-row-wide {
  clear: both;
  width: 100%;
}

.woocommerce-checkout .form-row label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(37, 37, 64, 0.8);
}

.woocommerce-checkout .input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--cw-border);
  background: #fff;
  font-size: 1rem;
  line-height: 1.4;
  box-sizing: border-box;
}

.woocommerce-checkout .woocommerce-invalid input.input-text,
.woocommerce-checkout .woocommerce-invalid select {
  border-color: var(--cw-brand-red);
}

.woocommerce-checkout #order_review {
  border: 1px solid var(--cw-border);
  background: #fff;
  padding: clamp(1rem, 3vw, 1.5rem);
  min-width: 0;
}

.woocommerce-checkout-review-order-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--cw-border);
  vertical-align: top;
}

/*
 * Shipping method row (checkout page). Without this, the "shipping" table
 * row keeps a default table-cell width shared with the narrow price column,
 * squeezing the shipping method list (radio options + the InPost "Wybierz
 * paczkomat" parcel-locker button) into a few pixels — on mobile this made
 * the option text wrap ONE LETTER PER LINE because there was only room for
 * a single character per line. Same fix already applied to the cart page's
 * ".cart_totals tr.shipping" — this mirrors it for the checkout page, where
 * the wrapping table has a different class.
 */
.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals th,
.woocommerce-checkout-review-order-table tr.shipping th {
  display: block;
  width: 100%;
  padding-right: 0;
  padding-bottom: 0.35rem;
  border-bottom: 0;
}

.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td,
.woocommerce-checkout-review-order-table tr.shipping td {
  display: block;
  width: 100%;
  text-align: left;
  padding-top: 0;
}

.woocommerce-checkout-review-order-table .product-name {
  line-height: 1.4;
  word-break: break-word;
}

.woocommerce-checkout-review-order-table .product-total {
  white-space: nowrap;
  text-align: right;
}

.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout-review-order-table tfoot td {
  font-size: 0.9rem;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
  font-family: var(--cw-font-display);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  border-bottom: 0;
  padding-top: 0.75rem;
}

.woocommerce-checkout #payment {
  background: transparent;
  border-radius: 0;
  margin-top: 1rem;
}

.woocommerce-checkout #payment ul.payment_methods {
  margin: 0 0 1rem;
  padding: 0;
  border: 1px solid var(--cw-border);
  background: #fff;
  list-style: none;
}

.woocommerce-checkout #payment ul.payment_methods li {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--cw-border);
}

.woocommerce-checkout #payment ul.payment_methods li:last-child {
  border-bottom: 0;
}

.woocommerce-checkout #payment ul.payment_methods li input {
  margin-right: 0.5rem;
}

.woocommerce-checkout #payment div.payment_box {
  margin: 0.75rem 0 0;
  padding: 0.75rem;
  background: rgba(37, 37, 64, 0.04);
  font-size: 0.875rem;
  color: rgba(37, 37, 64, 0.75);
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  margin: 1rem 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-error {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--cw-border);
  background: #fff;
  font-size: 0.875rem;
}

.woocommerce-checkout .woocommerce-form-login {
  border: 1px solid var(--cw-border);
  background: #fff;
  padding: clamp(1rem, 3vw, 1.5rem);
  margin-bottom: 1.25rem;
}

.woocommerce-checkout .woocommerce-form-login .button,
.woocommerce-checkout .woocommerce-form-coupon .button {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--cw-border);
  background: #fff;
  color: var(--cw-foreground) !important;
  font-family: var(--cw-font-sans);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.woocommerce-checkout .woocommerce-form-login .button:hover,
.woocommerce-checkout .woocommerce-form-coupon .button:hover {
  border-color: var(--cw-foreground);
  background: rgba(37, 37, 64, 0.04);
  color: var(--cw-foreground) !important;
}

.woocommerce-checkout .woocommerce-form-coupon {
  border: 1px solid var(--cw-border);
  background: #fff;
  padding: clamp(1rem, 3vw, 1.25rem);
  margin-bottom: 1.25rem;
}

.woocommerce-checkout .woocommerce-form-coupon .input-text {
  width: 100%;
  margin-bottom: 0.75rem;
}

.woocommerce-checkout #place_order {
  width: 100%;
  padding: 0.95rem 1.25rem;
  border: none;
  background: var(--cw-foreground) !important;
  color: #fff !important;
  font-family: var(--cw-font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.woocommerce-checkout #place_order:hover,
.woocommerce-checkout #place_order:focus,
.woocommerce-checkout #place_order:active {
  transform: translateY(-2px);
  background: var(--cw-brand-navy-deep) !important;
  color: #fff !important;
}

.woocommerce-order-received .cw-thankyou-shell {
  padding-block: clamp(2rem, 4vw, 3rem);
  width: min(100% - 1.5rem, var(--cw-content-max));
  margin-inline: auto;
}

.woocommerce-order-received .woocommerce-order {
  border: 1px solid var(--cw-border);
  background: #fff;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.woocommerce-order-received .woocommerce-order h2,
.woocommerce-order-received .woocommerce-thankyou-order-details {
  font-size: 1rem;
}

@media (max-width: 1099px) {
  .cw-checkout-order {
    margin-top: 1.25rem;
    border: 1px solid var(--cw-border);
    background: #fff;
    padding: clamp(1rem, 3vw, 1.5rem);
  }
}

@media (max-width: 767px) {
  .woocommerce-checkout #order_review_heading {
    margin-top: 0;
  }

  .woocommerce-checkout-review-order-table thead {
    display: none;
  }

  .woocommerce-checkout-review-order-table tbody tr.cart_item,
  .woocommerce-checkout-review-order-table tbody tr.woocommerce-cart-form__cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem 1rem;
    align-items: start;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--cw-border);
  }

  .woocommerce-checkout-review-order-table tbody tr.cart_item td,
  .woocommerce-checkout-review-order-table tbody tr.woocommerce-cart-form__cart-item td {
    border: 0;
    padding: 0;
  }

  .woocommerce-checkout-review-order-table .product-name {
    font-size: 0.9rem;
  }

  .woocommerce-checkout-review-order-table .product-total {
    font-weight: 600;
  }

  .woocommerce-checkout-review-order-table tfoot tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem 1rem;
    padding: 0.45rem 0;
  }

  /*
   * Override the 2-column tfoot grid for the shipping row. With the default
   * "1fr + auto" columns, the shipping methods list (radio + InPost logo +
   * "Wybierz paczkomat" button) is forced into the narrow second column —
   * on a ~390px phone that left ~210px for the whole list, and the method
   * label text wrapped ONE LETTER PER LINE. Stack the label ("Wysyłka")
   * above the methods list instead, giving the list the full width.
   */
  .woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals,
  .woocommerce-checkout-review-order-table tfoot tr.shipping {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
  }

  .woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals th,
  .woocommerce-checkout-review-order-table tfoot tr.shipping th,
  .woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals td,
  .woocommerce-checkout-review-order-table tfoot tr.shipping td {
    width: 100%;
    max-width: 100%;
    text-align: left;
  }

  .woocommerce-checkout-review-order-table tfoot th,
  .woocommerce-checkout-review-order-table tfoot td {
    border: 0;
    padding: 0;
  }

  .woocommerce-checkout-review-order-table tfoot th {
    text-align: left;
    font-weight: 500;
  }

  .woocommerce-checkout-review-order-table tfoot td {
    text-align: right;
    font-weight: 600;
  }

  .woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals td,
  .woocommerce-checkout-review-order-table tfoot tr.shipping td {
    text-align: left;
    font-weight: 400;
  }

  .woocommerce-checkout #payment .place-order {
    margin-top: 0.5rem;
  }
}

@media (min-width: 768px) and (max-width: 899px) {
  .woocommerce-checkout .col2-set {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

@media (min-width: 1100px) {
  form.checkout.woocommerce-checkout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.85fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
  }

  form.checkout .cw-checkout-details {
    grid-column: 1;
    grid-row: 1;
  }

  form.checkout .cw-checkout-order {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    border: 1px solid var(--cw-border);
    background: #fff;
    padding: clamp(1rem, 3vw, 1.5rem);
    position: sticky;
    top: calc(5.5rem + 1.25rem);
  }

  form.checkout #order_review_heading {
    margin-top: 0;
  }

  form.checkout #order_review {
    margin-top: 0;
    position: static;
    top: auto;
  }

  .woocommerce-checkout .woocommerce-form-login .button,
  .woocommerce-checkout .woocommerce-form-coupon .button,
  .woocommerce-checkout form.checkout_coupon button[name="apply_coupon"] {
    width: auto;
  }

  .woocommerce-checkout .woocommerce-form-coupon .input-text,
  .woocommerce-checkout form.checkout_coupon .input-text {
    width: auto;
    min-width: 12rem;
    margin-bottom: 0;
    margin-right: 0;
  }

  .woocommerce-checkout form.checkout_coupon,
  .woocommerce-checkout .checkout_coupon.woocommerce-form-coupon {
    flex-direction: row;
    align-items: center;
  }

  .woocommerce-checkout form.checkout_coupon .form-row-first,
  .woocommerce-checkout .checkout_coupon .form-row-first {
    flex: 1 1 12rem;
    width: auto;
  }

  .woocommerce-checkout form.checkout_coupon .form-row-last,
  .woocommerce-checkout .checkout_coupon .form-row-last {
    width: auto;
  }

  .woocommerce-checkout form.checkout_coupon button[name="apply_coupon"],
  .woocommerce-checkout .checkout_coupon button[name="apply_coupon"] {
    width: auto;
  }
}
