/* ==========================================================================
   Design tokens — rugged outdoor / nature
   ========================================================================== */
:root {
  --site-header-height: 120px;
  --color-bg: #1A1F16;
  --color-bg-lighter: #2A3024;
  --color-accent: #C8A951;
  --color-accent-hover: rgba(200, 169, 81, 0.3);
  --color-text: #E8E0D0;
  --color-text-muted: rgba(232, 224, 208, 0.6);
  --color-surface: rgba(0, 0, 0, 0.5);
  --font-heading: "Bitter", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --dot-inactive: rgba(255, 255, 255, 0.4);
  --transition-ui: 0.2s ease;
}

/* ==========================================================================
   CSS Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: auto;
  min-height: 100%;
  overflow-y: auto;
}

body {
  min-height: 100vh;
  overflow-y: auto;
  width: 100%;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  /* Subtle radial gradient to darker center (fallback if canvas doesn’t cover) */
  background: radial-gradient(ellipse at center, var(--color-bg-lighter) 0%, var(--color-bg) 100%);
}

/* Page content: max-width container (desktop); carousel + product-info inside */
.page-content {
  position: relative;
  width: 100%;
  background-image: url('../images/map1.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (min-width: 769px) {
  .page-content {
    position: fixed;
    top: var(--site-header-height);
    left: 0;
    right: 0;
    max-width: 1280px;
    margin: 0 auto;
    height: calc(100vh - var(--site-header-height));
  }
}

@media (min-width: 1440px) {
  .page-content {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
  }
}

/* Carousel: single container for images + product info */
.carousel {
  display: flex;
  flex-direction: column;
  position: relative;
  width: calc(100% - 10vw);
  margin: 5vh 5vw;
  min-height: 0;
}

@media (min-width: 769px) {
  .carousel {
    flex-direction: row;
    align-items: center;
    min-height: 0;
  }
}

.carousel__images {
  flex: 1 1 auto;
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  max-height: min(63vh, 90%);
  overflow: hidden;
  z-index: 0;
}

@media (min-width: 769px) {
  .carousel__images {
    flex: 0 0 60%;
    max-height: calc((100vh - var(--site-header-height) - 10vh) * 0.9);
  }
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 10px;
  box-sizing: border-box;
}

.carousel-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
  background: url('../images/rust-texture.svg') repeat;
  background-size: 200px 200px;
  z-index: 0;
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(139, 69, 19, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(61, 40, 23, 0.9),
    0 6px 20px rgba(0, 0, 0, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.4);
}

.carousel-slide--active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.carousel-slide img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Loading overlay — full-screen spinner until models are loaded
   ========================================================================== */
.loading {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading__spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--color-text-muted);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: loading-spin 0.8s linear infinite;
}

.loading__text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Fixed site header — full-width bar, inner content aligned to max-width
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1280px;
  z-index: 15;
  height: var(--site-header-height);
  background: rgba(26, 31, 22, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--color-accent);
}

.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.site-header__logo-img {
  height: 96px;
  max-height: calc(var(--site-header-height) - 1.5rem);
  width: auto;
  display: block;
  object-fit: contain;
}

.site-header__tagline {
  font-family: var(--font-body);
  font-size: 1.8rem;
  color: var(--color-accent);
  font-style: italic;
  white-space: nowrap;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-header__link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-ui);
}

.site-header__link:hover {
  color: var(--color-accent);
}

.site-header__link--active {
  color: var(--color-accent);
}

.site-header__link[href="#kontakt"] {
  font-size: 1.3rem;
}

.site-header__cart {
  font-size: 1.7rem;
  position: relative;
  display: inline-block;
  transition: transform var(--transition-ui), filter var(--transition-ui);
}

.site-header__cart:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 2px var(--color-accent));
}

.site-header__cart-count {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 4px;
  font-size: 0.65rem;
  line-height: 1.1rem;
  text-align: center;
  background: var(--color-accent);
  color: var(--color-bg);
  border-radius: 50%;
}

/* Site header — responsive: mid (960px), tablet (768px), mobile (480px) */
@media (max-width: 960px) {
  :root {
    --site-header-height: 110px;
  }

  .site-header__inner {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .site-header__brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
  }

  .site-header__logo-img {
    height: 64px;
  }

  .site-header__tagline {
    font-size: 1.1rem;
    white-space: normal;
    line-height: 1.2;
  }

  .site-header__nav {
    flex-shrink: 0;
    gap: 0.75rem;
  }

  .site-header__link[href="#kontakt"] {
    font-size: 1.1rem;
  }

  .site-header__cart {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --site-header-height: 100px;
  }

  .site-header__inner {
    padding: 0 1rem;
    gap: 0.5rem;
  }

  .site-header__logo-img {
    height: 56px;
  }

  .site-header__tagline {
    font-size: 1rem;
  }

  .site-header__nav {
    gap: 0.75rem;
  }

  .site-header__link[href="#kontakt"] {
    font-size: 1rem;
  }

  .site-header__cart {
    font-size: 1.4rem;
  }

  .site-header__cart-count {
    min-width: 1rem;
    height: 1rem;
    font-size: 0.6rem;
    line-height: 1rem;
  }
}

@media (max-width: 480px) {
  :root {
    --site-header-height: 110px;
  }

  .site-header {
    min-height: var(--site-header-height);
    height: auto;
  }

  .site-header__inner {
    padding: 0 0.75rem;
    gap: 0.375rem;
  }

  .site-header__logo-img {
    height: 44px;
  }

  .site-header__tagline {
    font-size: 0.85rem;
  }

  .site-header__link {
    font-size: 0.8rem;
  }

  .site-header__link[href="#kontakt"] {
    font-size: 0.9rem;
  }

  .site-header__cart {
    font-size: 1.2rem;
  }

  .site-header__nav {
    gap: 0.5rem;
  }

  .site-header__cart-count {
    min-width: 0.9rem;
    height: 0.9rem;
    font-size: 0.55rem;
    line-height: 0.9rem;
  }
}

/* ==========================================================================
   Overlay wrapper — all overlays on top of canvas; no pointer events by default
   ========================================================================== */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

/* Interactive elements receive pointer events */
.overlay__arrow,
.overlay__dot {
  pointer-events: auto;
}

/* ==========================================================================
   LEFT / RIGHT: Carousel arrows — accent circular buttons
   ========================================================================== */
.overlay__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  background: transparent;
  color: var(--color-accent);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-ui), color var(--transition-ui);
}

.overlay__arrow:hover {
  background: var(--color-accent-hover);
}

.overlay__arrow--prev {
  left: 1.5rem;
}

@media (min-width: 1280px) {
  .overlay__arrow--prev {
    left: calc(50% - 640px + 1.5rem);
  }
}

.overlay__arrow--next {
  right: calc(40% + 1rem);
}

@media (min-width: 1280px) {
  .overlay__arrow--next {
    right: calc(50% - 128px);
  }
}

/* ==========================================================================
   BOTTOM CENTER: Dot indicators (above info panel)
   ========================================================================== */
/* Dot indicators: centered in left 60% on desktop; within max-width content when viewport >= 1280px */
.overlay__dots {
  position: absolute;
  bottom: 2rem;
  left: 30%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

@media (min-width: 1280px) {
  .overlay__dots {
    left: calc(50% - 256px);
  }
}

.overlay__dots .overlay__dot {
  pointer-events: auto;
}

.overlay__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--dot-inactive);
  cursor: pointer;
  transition: background-color var(--transition-ui), transform var(--transition-ui);
}

.overlay__dot--active,
.overlay__dot[aria-current="true"] {
  background: var(--color-accent);
  transform: scale(1.35);
}

.overlay__dot:hover:not(.overlay__dot--active) {
  background: var(--color-text-muted);
}

/* ==========================================================================
   Product info — side panel (desktop) / stacked below carousel images (mobile)
   ========================================================================== */
.carousel__product-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 2.5rem;
  pointer-events: auto;
  z-index: 10;
  background: var(--color-surface);
  transition: opacity 300ms ease;
}

@media (min-width: 769px) {
  .carousel__product-info {
    flex: 0 0 40%;
    background: linear-gradient(to right, transparent 0%, rgba(26, 31, 22, 0.85) 15%, rgba(26, 31, 22, 0.95) 100%);
  }
}

.product-info__name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.product-info__hero-stats {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  margin-bottom: 0.5rem;
}

.product-info__hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.product-info__hero-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
}

.product-info__hero-value {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-text);
}

.product-info__hero-value--price {
  color: var(--color-accent);
}

.product-info__details {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
}

.product-info__detail {
  display: inline;
}

.product-info__detail + .product-info__detail::before {
  content: " · ";
}

.product-info__description {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0.75rem 0;
}

.product-info__tagline {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-text-muted);
  margin: 0.5rem 0 1rem;
}

.product-info__cta {
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-bg);
  background: var(--color-accent);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color var(--transition-ui), transform var(--transition-ui);
}

.product-info__cta:hover {
  background: #d4b85c;
}

/* Product info fade during tier transition — whole panel fades out/in */
.product-info--out {
  opacity: 0;
}

/* ==========================================================================
   Responsive — mobile and tablet
   ========================================================================== */
@media (max-width: 768px) {
  html {
    overflow-y: auto;
    height: auto;
    min-height: 100%;
  }

  body {
    overflow-y: auto;
    min-height: 100vh;
  }

  .page-content {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    max-width: none;
    height: auto;
    box-shadow: none;
  }

  .carousel__product-info {
    padding: 1.5rem;
    justify-content: flex-start;
  }

  .product-info__name {
    font-size: 1.35rem;
  }

  .product-info__hero-value {
    font-size: 1.6rem;
  }

  .product-info__hero-stats {
    gap: 1.5rem;
  }

  .overlay__arrow--next {
    right: 0.75rem;
  }

  .overlay__dots {
    left: 50%;
    transform: translateX(-50%);
    bottom: 1.5rem;
  }

  .overlay__arrow {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.25rem;
  }
  .overlay__arrow--prev {
    left: 0.75rem;
  }
  .overlay__arrow--next {
    right: 0.75rem;
  }
  .overlay__dots {
    bottom: 1.25rem;
  }
}

@media (max-width: 480px) {
  .overlay__arrow {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }
  .overlay__arrow--prev {
    left: 0.5rem;
  }
  .overlay__arrow--next {
    right: 0.5rem;
  }
  .overlay__dots {
    bottom: 1rem;
    gap: 0.5rem;
  }
}

/* ==========================================================================
   Kit page (zestaw.html) — cart with quantities
   ========================================================================== */
.body--kit {
  overflow-y: auto;
  min-height: 100vh;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
}

.kit-page {
  max-width: 700px;
  margin: 0 auto;
  padding: calc(var(--site-header-height) + 1.5rem) 1.5rem 2rem;
  min-height: 100vh;
  flex: 1;
}

.kit-page__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.kit-page__back {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.kit-page__back:hover {
  color: var(--color-accent);
}

.kit-section {
  margin-bottom: 2rem;
}

.kit-section__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.kit-section__subtitle {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.kit-card {
  background: var(--color-bg-lighter);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.kit-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.kit-card__name {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.95rem;
}

.kit-card__detail {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.kit-card__unit-price {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.kit-card__line-total {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-accent);
  white-space: nowrap;
  min-width: 60px;
  text-align: right;
}

.kit-card__qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
}

.kit-card__qty-btn {
  background: transparent;
  border: none;
  color: var(--color-text);
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.kit-card__qty-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.kit-card__qty-value {
  width: 32px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
}

.kit-summary {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--color-bg-lighter);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.kit-summary__line {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.kit-summary__total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.kit-summary__total-label {
  font-size: 1rem;
  color: var(--color-text);
  font-weight: 600;
}

.kit-summary__total-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  font-family: var(--font-heading);
}

.kit-summary__cta {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-bg);
  background: var(--color-accent);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color var(--transition-ui);
}

.kit-summary__cta:hover {
  background: #d4b85c;
}

.kit-summary__continue {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 0.75rem;
  padding: 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  transition: all 0.2s;
}

.kit-summary__continue:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

@media (max-width: 768px) {
  .kit-card {
    flex-wrap: wrap;
  }
  .kit-card__info {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  .kit-card__unit-price,
  .kit-card__qty,
  .kit-card__line-total {
    flex: 0 0 auto;
  }
}

/* ==========================================================================
   Checkout page (zamowienie.html)
   ========================================================================== */
.body--checkout {
  overflow-y: auto;
  min-height: 100vh;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
}

.checkout-page {
  max-width: 900px;
  margin: 0 auto;
  padding: calc(var(--site-header-height) + 1.5rem) 1.5rem 3rem;
  flex: 1;
}

.checkout-page__back {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.checkout-page__back:hover {
  color: var(--color-accent);
}

.checkout-page__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
}

@media (max-width: 768px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}

.checkout-section {
  margin-bottom: 2rem;
}

.checkout-section__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.checkout-field {
  margin-bottom: 1rem;
}

.checkout-field__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.checkout-field__input {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--color-bg-lighter);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--color-text);
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}

.checkout-field__input:focus {
  border-color: var(--color-accent);
}

.checkout-field__input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.checkout-field__input--error {
  border-color: #C0392B;
}

.checkout-field-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
}

.checkout-delivery-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-bg-lighter);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 0.75rem;
  transition: all 0.2s;
}

.checkout-delivery-option--active {
  border-color: var(--color-accent);
  background: rgba(200, 169, 81, 0.06);
}

.checkout-delivery-option__radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s;
}

.checkout-delivery-option--active .checkout-delivery-option__radio {
  border-color: var(--color-accent);
}

.checkout-delivery-option--active .checkout-delivery-option__radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  border-radius: 50%;
}

.checkout-delivery-option__name {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.95rem;
}

.checkout-delivery-option__detail {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.checkout-delivery-option__price {
  margin-left: auto;
  font-weight: 700;
  color: var(--color-accent);
  font-size: 0.95rem;
}

.checkout-paczkomat {
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: rgba(200, 169, 81, 0.04);
  border-radius: 8px;
}

.checkout-paczkomat__label {
  font-size: 0.85rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.checkout-paczkomat__hint {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: 0.5rem;
}

.checkout-address {
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.checkout-summary {
  background: var(--color-bg-lighter);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: calc(var(--site-header-height) + 1rem);
}

.checkout-summary__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.checkout-summary__items {
  margin-bottom: 1rem;
}

.checkout-summary__item-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-text);
  padding: 0.25rem 0;
}

.checkout-summary__line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 0.25rem 0;
}

.checkout-summary__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0.75rem 0;
}

.checkout-summary__line--total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  padding: 0.5rem 0;
}

.checkout-summary__line--total span:last-child {
  color: var(--color-accent);
  font-family: var(--font-heading);
}

.checkout-summary__error {
  font-size: 0.8rem;
  color: #C0392B;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.checkout-summary__cta {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-bg);
  background: var(--color-accent);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color var(--transition-ui);
  margin-top: 1rem;
}

.checkout-summary__cta:hover {
  background: #d4b85c;
}

.checkout-summary__secure {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 0.75rem;
}

/* ==========================================================================
   Site footer
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 11;
  background: var(--color-bg-lighter);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.site-footer__name {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-accent);
  display: block;
}

.site-footer__tagline {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.site-footer__heading {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.5rem;
}

.site-footer p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.site-footer a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-ui);
}

.site-footer a:hover {
  color: var(--color-accent);
}

.site-footer__bottom {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__bottom p {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
}

@media (max-width: 768px) {
  .site-footer__content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Home page: spacer pushes footer below first viewport */
.home-spacer {
  height: 100vh;
  pointer-events: none;
}

/* ==========================================================================
   Confirmation page (potwierdzenie.html)
   ========================================================================== */
.body--confirm {
  overflow-y: auto;
  min-height: 100vh;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
}

.confirm-page {
  flex: 1;
}
