/* ==========================================================================
   JAPANDI BOWL COVER & STAND - DESIGN SYSTEM & STYLESHEET
   Aesthetics: Architectural Warm Minimalist, Tactile Stoneware Ceramic, Japandi
   ========================================================================== */

:root {
  /* Kolory bazowe Japandi */
  --color-bg: #fbf9f5;
  --color-surface: #ffffff;
  --color-surface-subtle: #f4efe6;
  --color-surface-card: #ffffff;
  --color-border: #e8e2d5;
  --color-border-focus: #26221f;

  /* Typografia & Kolory tekstu */
  --color-text-main: #2b2723;
  --color-text-muted: #6e675f;
  --color-text-light: #6e675f;

  /* Akcenty i barwy ziemi */
  --color-accent: #b4724b;
  --color-accent-hover: #9c5f3b;
  --color-accent-soft: #faeee7;
  --color-dark: #1f1d1a;
  --color-gold: #c89d49;
  --color-gold-soft: #fcf4e4;

  /* Typografia */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Cienie i zaokrąglenia */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --shadow-sm: 0 2px 8px rgba(38, 34, 31, 0.04);
  --shadow-md: 0 8px 24px rgba(38, 34, 31, 0.07);
  --shadow-lg: 0 16px 40px rgba(38, 34, 31, 0.1);
  --shadow-hover: 0 20px 48px rgba(38, 34, 31, 0.12);

  /* Płynne przejścia */
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Podstawy */
[hidden] {
  display: none !important;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

@media (min-width: 1440px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Kontener */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Belka górna (Announcement) */
.announcement-bar {
  background-color: var(--color-dark);
  color: #ede7de;
  font-size: 0.78rem;
  padding-block: 0.45rem;
  letter-spacing: 0.02em;
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  text-align: center;
}

.announcement-content .bullet {
  opacity: 0.4;
}

/* Nawigacja */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(251, 249, 245, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-block-end: 1px solid var(--color-border);
  padding-block: 0.65rem;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-text-main);
}

.logo-mark {
  font-size: 1.5rem;
  color: var(--color-accent);
  line-height: 1;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}

.logo-text span {
  font-weight: 300;
  color: var(--color-text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text-main);
  font-size: 0.925rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--color-accent);
}

.cart-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-pill);
  color: var(--color-text-main);
  transition: var(--transition);
}

.cart-btn:hover {
  background: var(--color-surface-subtle);
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  background: var(--color-accent-hover);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   GŁÓWNA STRONA PRODUKTU (PRODUCT GRID)
   ========================================================================== */

.product-page {
  padding-block: 1rem 2.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* Lewa kolumna: Galeria i Wizualizator */
.product-gallery-wrap {
  position: sticky;
  top: 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Interaktywny podgląd (Stage) */
.preview-stage {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
  background: var(--color-surface);
}

.stage-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  border: 1px solid rgba(180, 114, 75, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 4;
}

/* Kontener personalizacji opartej na fotografii produktu */
/* Warstwa wygrawerowanego imienia bezpośrednio na pustej tabliczce w zdjęciu (elegancka kaligrafia, Cormorant Garamond) */
/* Plakietka informująca o wkładzie na zdjęciu */
.bowl-svg-container {
  width: 100%;
  max-width: 440px;
  margin: 1rem auto;
  transition: transform 0.3s ease;
}

.preview-footer-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
}

.preview-footer-info strong {
  color: var(--color-text-main);
}

.dot-sep {
  opacity: 0.3;
}

/* Zdjęcia w galerii */
/* Miniatury */
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.thumb-badge {
  background: var(--color-accent-soft);
  color: var(--color-accent);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Wyróżniki jakościowe */
.trust-badges {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
}


/* ==========================================================================
   PRAWA KOLUMNA: KONFIGURATOR I FORMULARZ
   ========================================================================== */

.product-configurator-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.badge-accent {
  background: var(--color-surface-subtle);
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
}

.rating-stars {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
}

.rating-stars .stars {
  color: #f59e0b;
}

.product-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text-main);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.product-subtitle {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  margin-bottom: 0.65rem;
}

.price-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.65rem 0.95rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.price-box-main {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  width: 100%;
}

.price-breakdown-sub {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.price-breakdown-sub::before {
  content: '✦';
  color: var(--color-accent);
  font-size: 0.8rem;
}

.price-current {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--color-text-main);
}

.price-old {
  font-size: 1.15rem;
  color: var(--color-text-light);
  text-decoration: line-through;
}

.price-save-badge {
  margin-inline-start: auto;
  background: #dcfce7;
  color: #166534;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
}

/* ==========================================================================
   FORMULARZ PERSONALIZACJI
   ========================================================================== */

.customizer-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.highlight-box {
  background: #fff;
  border: 1.5px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  box-shadow: 0 4px 16px rgba(180, 114, 75, 0.08);
  position: relative;
}

.section-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-text-main);
}

.char-count {
  font-size: 0.78rem;
  color: var(--color-text-light);
  font-weight: 600;
}

.field-hint {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: 0.2rem;
}

/* Komórka na imię psa */
.name-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  transition: var(--transition);
}

.name-input-wrapper:focus-within {
  border-color: var(--color-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(180, 114, 75, 0.15);
}


.text-input-large {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.65rem 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-main);
  outline: none;
  letter-spacing: 0.03em;
  text-transform: none; /* Pozwala na swobodne wpisanie wielkich i małych liter w eleganckiej kaligrafii */
}

.text-input-large::placeholder {
  color: var(--color-text-light);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  font-size: 0.9rem;
}

.clear-name-btn {
  background: transparent;
  border: none;
  font-size: 1.35rem;
  color: var(--color-text-light);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  padding: 0.4rem 0.8rem;
  transition: var(--transition);
}

.clear-name-btn:hover {
  color: var(--color-text-main);
}

/* Wybór rozmiaru */
.size-guide-link {
  font-size: 0.78rem;
  color: var(--color-accent);
  text-decoration: underline;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.bestseller-tag {
  position: absolute;
  top: -7px;
  right: 6px;
  background: var(--color-accent-hover);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Wybór koloru (Swatches) */
.color-swatches-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.45rem;
}

.color-swatch-item {
  cursor: pointer;
  position: relative;
  display: block;
  min-height: 44px;
  min-width: 0;
}

.color-swatch-item input {
  position: absolute;
  opacity: 0;
}

.swatch-circle {
  display: block;
  width: 100%;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
  margin-bottom: 0.25rem;
  transition: var(--transition);
}

@media (hover: hover) {
  .color-swatch-item:hover .swatch-circle {
    transform: translateY(-2px);
  }
}

.color-swatch-item input:checked + .swatch-circle {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(180, 114, 75, 0.25);
}

.swatch-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  color: var(--color-text-muted);
}

.color-swatch-item input:checked ~ .swatch-label {
  color: var(--color-text-main);
  font-weight: 700;
}

/* Opcje zestawu */
.set-option-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.checkbox-option input {
  position: absolute;
  opacity: 0;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.checkbox-custom::after {
  content: '✓';
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  display: none;
}

.checkbox-option input:checked + .checkbox-custom,
.checkbox-custom.checked {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.checkbox-option input:checked + .checkbox-custom::after,
.checkbox-custom.checked::after {
  display: block;
}

.checkbox-content {
  flex: 1;
}

.check-title {
  display: block;
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--color-text-main);
}

.check-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.check-price {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.check-price.addon-price {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(180, 114, 75, 0.25);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.checkbox-option:has(input:checked) {
  border-color: var(--color-accent);
  background: #fff;
  box-shadow: 0 4px 12px rgba(180, 114, 75, 0.09);
}

.table-addon-note {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-left: 0.35rem;
}

/* Przycisk CTA Zamówienia */
.order-action-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.btn-primary-large {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  background: var(--color-dark);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(31, 29, 26, 0.25);
}

.btn-primary-large:hover {
  background: var(--color-accent-hover);
}

@media (hover: hover) {
  .btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(180, 114, 75, 0.3);
  }
}

.btn-price-summary {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 1.15rem;
}

.guarantee-text {
  font-size: 0.825rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ==========================================================================
   SEKCJA KONCEPCJI OBUDOWY (CONCEPT)
   ========================================================================== */

.section-concept {
  padding-block: 4rem 2rem;
}

.concept-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-sm);
  background: linear-gradient(135deg, #fff 0%, #fbf9f5 100%);
}

.concept-content {
  max-width: 860px;
  margin-inline: auto;
}

.concept-lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.concept-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.concept-point {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.point-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}

.concept-point strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--color-text-main);
}

.concept-point p {
  font-size: 0.925rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   SEKCJA CECH I ZALET (FEATURES)
   ========================================================================== */

.section-features {
  padding-block: 5rem;
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.section-header {
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.text-center {
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text-main);
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-bg);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

@media (hover: hover) {
  .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #baa996;
  }
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.feature-card p {
  font-size: 0.925rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   TABELA WYMIARÓW (DIMENSIONS)
   ========================================================================== */

.section-dimensions {
  padding-block: 5rem;
}

.dimensions-table-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow-x: auto;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.specs-table th, .specs-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.925rem;
}

.specs-table th {
  background: var(--color-surface-subtle);
  font-weight: 700;
  color: var(--color-text-main);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.highlight-row {
  background: #fdfaf5;
}

.bestseller-inline {
  background: var(--color-accent-hover);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
  margin-left: 0.5rem;
}

.price-pill {
  font-weight: 800;
  background: var(--color-surface-subtle);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  color: var(--color-text-main);
}

/* ==========================================================================
   OPINIE KLIENTÓW (REVIEWS)
   ========================================================================== */

.section-reviews {
  padding-block: 5rem;
  background: var(--color-surface);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 1.5rem;
}

.review-card {
  background: var(--color-bg);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}

.review-stars {
  color: #f59e0b;
  font-size: 1.15rem;
}

.review-text {
  font-size: 0.975rem;
  color: var(--color-text-main);
  font-style: italic;
  line-height: 1.65;
}

.review-author strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-text-main);
}

.review-author span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   STOPKA (FOOTER)
   ========================================================================== */

.footer {
  background: var(--color-surface-subtle);
  border-top: 1px solid var(--color-border);
  padding-block: 4rem 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-desc {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  max-width: 340px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text-main);
}

.footer-col p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* ==========================================================================
   MODAL ZAMÓWIENIA (CHECKOUT)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 29, 26, 0.65);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: #fff;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-window {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--color-text-light);
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--color-text-main);
}

.modal-header {
  padding: 1.75rem 1.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.modal-header p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.modal-body {
  padding: 1.75rem;
}

.order-summary-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.summary-label {
  color: var(--color-text-muted);
}

.summary-name-badge {
  background: var(--color-gold-soft);
  color: #785210;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.summary-divider {
  border-top: 1px dashed var(--color-border);
  margin-block: 0.75rem;
}

.total-row {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text-main);
}

.total-price {
  color: var(--color-accent);
}

.checkout-form h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.input-row {
  display: flex;
  gap: 1rem;
}

.flex-1 {
  flex: 1;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 0.35rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.925rem;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(180, 114, 75, 0.15);
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.pay-option {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.4rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.pay-option input {
  display: none;
}

.pay-option:has(input:checked) {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.btn-full {
  width: 100%;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Toast */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--color-dark);
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  background: #10b981;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

/* ==========================================================================
   RESPONSYWNOŚĆ (MOBILE)
   ========================================================================== */

@media (max-width: 992px) {
  .product-grid {
    /* minmax(0, 1fr) — kolumna nie może rozpychać się szerzej niż ekran */
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .product-gallery-wrap {
    position: static;
    min-width: 0;
  }

  .concept-points {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .color-swatches-grid {
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  }

  .input-row {
    flex-direction: column;
    gap: 0;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   KOSZYK, DOSTAWA I PŁATNOŚĆ (MEDUSA + STRIPE)
   ========================================================================== */

.notice {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
}

.notice-error {
  background: #fbeeea;
  border-color: #e7b9a9;
  color: #8a3418;
}

.notice-warn {
  background: var(--color-gold-soft);
  border-color: #ecd9ab;
  color: #785210;
}

.cart-empty,
.muted-note {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 1.25rem 0.5rem;
}

.muted-note {
  padding: 0.5rem 0;
  text-align: left;
}

.cart-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.cart-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
}

.cart-item-info {
  min-width: 0;
  flex: 1;
}

.cart-item-name {
  display: inline-block;
  background: var(--color-gold-soft);
  color: #785210;
  font-weight: 800;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.cart-item-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.cart-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}

.cart-item-price {
  font-weight: 800;
  font-size: 0.95rem;
}

.cart-item-remove {
  background: none;
  border: none;
  padding: 0.6rem 0.25rem;
  min-height: 44px;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-decoration: underline;
  cursor: pointer;
}

.cart-item-remove:hover {
  color: var(--color-accent);
}

.free-ship-hint {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.free-ship-hint.achieved {
  color: #1f7a4d;
  font-weight: 600;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 1rem;
  min-height: 44px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  cursor: pointer;
}

.link-btn:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

.link-btn.center {
  display: block;
  margin: 0.9rem auto 0;
}

.checkout-fieldset {
  border: none;
  min-width: 0;
}

.checkout-fieldset:disabled {
  opacity: 0.6;
}

.checkout-form h4 {
  margin-top: 0.25rem;
}

.postal-col {
  flex: 0 0 8.5rem;
}

.shipping-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ship-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.ship-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ship-option:has(input:checked) {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}

.ship-option:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(180, 114, 75, 0.25);
}

.ship-option-price {
  font-weight: 800;
  white-space: nowrap;
}

.ship-option-price.free {
  color: #1f7a4d;
}

.payment-element-box {
  min-height: 120px;
  margin-bottom: 0.5rem;
}

.btn-primary-large:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary-large.is-loading {
  cursor: progress;
}

.success-view {
  text-align: center;
  padding: 1rem 0 0.5rem;
}

.success-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-view h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.success-view p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.toast-notification.error .toast-icon {
  background: #d9534f;
}

@media (max-width: 640px) {
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .modal-window {
    max-height: 92dvh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transform: translateY(40px);
  }

  .modal-header,
  .modal-body {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .postal-col {
    flex: 1;
  }

  .cart-item {
    flex-direction: column;
  }

  .cart-item-side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .toast-notification {
    left: 1rem;
    right: 1rem;
    border-radius: var(--radius-md);
  }
}


/* ==========================================================================
   ZGODY, UWAGI I IKONY
   ========================================================================== */

.product-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin: -0.35rem 0 0.75rem;
}

.consent-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1rem 0;
}

.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-height: 44px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--color-text-main);
  cursor: pointer;
}

.consent-item input[type="checkbox"] {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0.1rem 0 0;
  accent-color: var(--color-accent);
}

.consent-item a {
  color: var(--color-accent);
  text-decoration: underline;
}

.engraving-confirm {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
  text-align: center;
}

.engraving-confirm b {
  color: var(--color-text-main);
}

.vat-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

.guarantee-text svg {
  vertical-align: -3px;
  margin-right: 0.25rem;
}

.footer-col a {
  color: inherit;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
}

.footer-col p {
  overflow-wrap: anywhere;
}


/* ==========================================================================
   FOCUS, DOSTĘPNOŚĆ, RUCH
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.size-card input:focus-visible + .size-card-body,
.color-swatch-item input:focus-visible + .swatch-circle,
.checkbox-option input:focus-visible + .checkbox-custom {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.name-input-wrapper:focus-within,
.form-group input:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

button.thumb-item {
  appearance: none;
  -webkit-appearance: none;
}

/* ==========================================================================
   MENU (BURGER), PASEK ZAKUPU, MOBILE <= 900px
   ========================================================================== */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  color: var(--color-text-main);
  cursor: pointer;
}

.nav-toggle svg {
  display: block;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 29, 26, 0.45);
  z-index: 90;
}

.sticky-buy {
  display: none;
}

@media (min-width: 901px) {
  .nav-backdrop {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .nav-container {
    gap: 0.25rem;
  }

  .nav-actions {
    margin-inline-start: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-bg);
    border-block-end: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: 0.25rem 0 0.5rem;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 52px;
    padding-inline: 1.25rem;
    font-size: 1rem;
  }

  /* Pola formularzy: 16px, żeby iOS nie powiększał strony */
  input,
  select,
  textarea,
  .text-input-large,
  .form-group input {
    font-size: 16px;
  }

  .text-input-large::placeholder {
    font-size: 16px;
  }

  .form-group input {
    min-height: 44px;
  }

  /* Tabela wymiarów jako karty */
  .dimensions-table-card {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
  }

  .specs-table,
  .specs-table tbody,
  .specs-table tr,
  .specs-table td {
    display: block;
    width: 100%;
  }

  .specs-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .specs-table tr {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    overflow: hidden;
  }

  .specs-table tr.highlight-row {
    background: #fdfaf5;
    border-color: var(--color-accent);
  }

  .specs-table td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.8rem 1rem;
    text-align: right;
    overflow-wrap: anywhere;
  }

  .specs-table td:first-child {
    display: block;
    background: var(--color-surface-subtle);
    text-align: left;
    font-size: 1.05rem;
  }

  .specs-table td[data-label]::before {
    content: attr(data-label);
    flex: 0 0 42%;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
  }

  .specs-table tr td:last-child {
    border-bottom: none;
  }

  .section-features,
  .section-dimensions {
    padding-block: 3rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  /* Pasek zakupu */
  .sticky-buy {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background: #fff;
    box-shadow: 0 -4px 20px rgba(38, 34, 31, 0.14);
  }

  .sticky-buy[hidden] {
    display: none !important;
  }

  .sticky-buy-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    line-height: 1.25;
  }

  .sticky-buy-name {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sticky-buy-price {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-main);
  }

  .sticky-buy-btn {
    flex: 0 0 auto;
    min-height: 48px;
    padding: 0.5rem 1.25rem;
    background: var(--color-dark);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
  }

  body.has-sticky-buy {
    padding-bottom: 84px;
  }

  .toast-notification {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
}

/* ==========================================================================
   MOBILE <= 640px
   ========================================================================== */

@media (max-width: 640px) {
  /* Belka: tylko pierwszy komunikat */
  .announcement-content > span:not(:first-child) {
    display: none;
  }

}

@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;
    scroll-behavior: auto !important;
  }
}


/* ==========================================================================
   KONWERSJA: pasek darmowej dostawy, upsell, ilość, prezent, faktura
   ========================================================================== */

.noscript-msg {
  padding: 0.9rem 1rem;
  text-align: center;
  background: var(--color-gold-soft);
  color: #785210;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Pasek do darmowej dostawy */
.ship-progress {
  margin-bottom: 1rem;
}

.ship-progress-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 0.4rem;
}

.ship-progress.achieved .ship-progress-text {
  color: #1f7a4d;
}

.ship-progress-bar {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.ship-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.ship-progress.achieved .ship-progress-fill {
  background: #1f7a4d;
}

/* Pozycje w koszyku: ilość i akcje */
.cart-item {
  flex-wrap: wrap;
}

.cart-list.is-busy {
  opacity: 0.6;
  pointer-events: none;
}

.cart-item-controls {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text-main);
  cursor: pointer;
  transition: var(--transition);
}

.qty-btn:hover:not(:disabled) {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.qty-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.qty-value {
  min-width: 2rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Upsell: druga obudowa */
.cart-upsell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-accent-soft);
  border: 1px dashed var(--color-accent);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  margin-bottom: 1.25rem;
  color: var(--color-accent-hover);
}

.cart-upsell > svg {
  flex-shrink: 0;
}

.cart-upsell-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.cart-upsell-text strong {
  font-size: 0.9rem;
  color: var(--color-text-main);
}

.cart-upsell-btn {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-accent-hover);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.cart-upsell-btn:hover {
  background: var(--color-accent);
  color: #fff;
}

.cart-upsell-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .cart-upsell {
    flex-wrap: wrap;
  }

  .cart-upsell-btn {
    flex: 0 0 100%;
  }
}

/* Prezent i faktura w checkoucie */
.extras-group {
  margin: 0.5rem 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.extra-fields {
  margin: 0.25rem 0 0.5rem 1.7rem;
}

.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.925rem;
  line-height: 1.45;
  resize: vertical;
  outline: none;
  transition: var(--transition);
}

.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(180, 114, 75, 0.15);
}

.extra-count {
  display: block;
  margin-top: 0.25rem;
  text-align: right;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.field-error {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: #8a3418;
}

.form-group input[aria-invalid="true"] {
  border-color: #8a3418;
}

/* Podsumowanie na ekranie sukcesu */
.success-extras {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-main);
}

@media (prefers-reduced-motion: reduce) {
  .ship-progress-fill {
    transition: none;
  }
}


/* FALA 3: sekcje treści */

.fit-guide {
  margin-top: 0.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.fit-guide summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.fit-guide summary::-webkit-details-marker { display: none; }
.fit-guide summary > span { flex: 1; }
.fit-guide summary svg { flex: none; color: var(--color-accent); }
.fit-chevron { transition: transform 0.2s ease; }
.fit-guide[open] .fit-chevron { transform: rotate(180deg); }
.fit-guide-body { padding: 0 0.9rem 0.9rem; font-size: 0.88rem; color: var(--color-text-muted); }
.fit-guide-body ol { margin: 0.6rem 0 0.8rem 1.2rem; display: grid; gap: 0.35rem; }
.fit-tip {
  background: var(--color-accent-soft);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
  color: var(--color-text-main);
}

.section-how { padding-block: 3rem; }
.how-steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.how-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.how-number {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}
.how-card h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 0.4rem; }
.how-card p { color: var(--color-text-muted); }
@media (min-width: 900px) {
  .how-steps { grid-template-columns: repeat(3, 1fr); }
}

.section-faq {
  padding-block: 3rem 4rem;
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}
.faq-list { max-width: 760px; margin-inline: auto; display: grid; gap: 0.6rem; }
.faq-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { flex: none; color: var(--color-accent); transition: transform 0.2s ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item p { padding: 0 1rem 1rem; color: var(--color-text-muted); }
.section-how, .section-faq { scroll-margin-top: 70px; }


/* ==========================================================================
   FALA 3B: WIZUALNY UPGRADE (ikony Lucide, karty rozmiarów, sekcje treści)
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Kwadracik na ikonę */
.ico-sq {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(180, 114, 75, 0.1);
  color: var(--color-accent);
}
.ico-sq svg { width: 22px; height: 22px; }
.ico-sq-sm { width: 36px; height: 36px; border-radius: 10px; }
.ico-sq-sm svg { width: 20px; height: 20px; }
.ico-sq-lg { width: 46px; height: 46px; border-radius: 14px; }
.ico-sq-lg svg { width: 24px; height: 24px; }

.nav-links { gap: clamp(1rem, 2vw, 2rem); }

/* Odstępy sekcji */
.section-concept { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 3vw, 2rem); }
.section-how,
.section-features,
.section-dimensions { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-faq { padding-block: clamp(3rem, 7vw, 5rem); }
.section-header { margin-bottom: clamp(1.75rem, 4vw, 3.25rem); }
.sec { padding-block: clamp(3rem, 7vw, 5.5rem); }
.sec.lifestyle { padding-block-start: 0; }
#prezent, #opinie, #porownanie, #korzysci, #w-domu { scroll-margin-top: 70px; }

/* Karty rozmiarów */
.size-selector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}
.size-card { position: relative; display: block; cursor: pointer; min-width: 0; }
.size-card input { position: absolute; opacity: 0; pointer-events: none; }
.size-card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  height: 100%;
  padding: 0.8rem;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.size-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.size-badge {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--color-surface-subtle);
  color: var(--color-text-main);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  transition: var(--transition);
}
.size-check {
  flex: none;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  color: transparent;
  transition: var(--transition);
}
.size-check svg { width: 14px; height: 14px; }
.size-info { flex: 1; display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.size-name { font-weight: 700; font-size: 1rem; color: var(--color-text-main); line-height: 1.2; }
.size-spec { font-size: 0.76rem; color: var(--color-text-muted); line-height: 1.35; }
.size-desc { font-size: 0.7rem; color: var(--color-text-muted); line-height: 1.35; }
.size-price {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.1;
  color: var(--color-text-main);
}
.size-card input:checked + .size-card-body {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  box-shadow: 0 6px 16px rgba(180, 114, 75, 0.14);
}
.size-card input:checked + .size-card-body .size-badge { background: var(--color-accent-hover); color: #fff; }
.size-card input:checked + .size-card-body .size-check {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
}
@media (hover: hover) {
  .size-card:hover .size-card-body { border-color: #baa996; }
  .size-card input:checked + .size-card-body:hover { border-color: var(--color-accent); }
}
@media (max-width: 479px) {
  .size-selector-grid { grid-template-columns: 1fr; }
  .size-card-body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.85rem;
    padding: 0.8rem 0.9rem;
    min-height: 76px;
  }
  .size-top { display: contents; }
  .size-price { margin-top: 0; white-space: nowrap; }
  .size-check {
    position: absolute;
    top: -8px;
    right: 12px;
    width: 20px;
    height: 20px;
    opacity: 0;
  }
  .size-card input:checked + .size-card-body .size-check { opacity: 1; }
}

/* Pasek zaufania (prawa kolumna) */
.trust-strip {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.9rem;
}
.trust-strip-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.8rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.trust-strip-item .ico-sq { width: 40px; height: 40px; }
.trust-strip-item div { min-width: 0; }
.trust-strip-item strong { display: block; font-size: 0.86rem; line-height: 1.25; color: var(--color-text-main); }
.trust-strip-item div > span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--color-text-muted);
  overflow-wrap: break-word;
}
@media (max-width: 359px) {
  .trust-strip { grid-template-columns: 1fr; }
}

/* Kafelki pod galerią */
.trust-badges-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trust-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.8rem;
  text-align: left;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text-main);
}
.trust-item .ico-sq { width: 40px; height: 40px; }
@media (max-width: 420px) {
  .trust-badges-2col { grid-template-columns: 1fr; }
}

/* Karty zalet (istniejąca sekcja) */
.feature-icon { margin-bottom: 1.1rem; }

/* Przyciski sekcji */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 1.5rem;
  padding: 0.7rem 1.8rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-accent-hover);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(156, 95, 59, 0.25);
  transition: var(--transition);
}
@media (hover: hover) {
  .btn-cta:hover { background: var(--color-dark); transform: translateY(-2px); }
}

/* Korzyści */
.benefit-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 600px) { .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .benefit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; } }
.benefit-card {
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.benefit-card h3 { margin: 1rem 0 0.4rem; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.3; }
.benefit-card p { color: var(--color-text-muted); font-size: 0.93rem; line-height: 1.6; }
@media (hover: hover) {
  .benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
}

/* Zdjęcia + podpis "poglądowe" */
.ph-frame {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-surface-subtle);
}
.ph-frame img { display: block; width: 100%; height: auto; object-fit: cover; }
.split { display: grid; grid-template-columns: 1fr; gap: 1.75rem; align-items: center; }
@media (min-width: 800px) {
  .split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 5vw, 3.5rem); }
  .split-gift { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}
.split-text { min-width: 0; }
.split-text .section-title { margin-bottom: 0.75rem; }

.life-list, .gift-list { list-style: none; display: grid; gap: 0.7rem; }
.life-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.life-list strong { font-size: 1rem; }

/* Porównanie */
.compare { background: var(--color-surface); border-block: 1px solid var(--color-border); }
.cmp-card {
  max-width: 940px;
  margin-inline: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.cmp-table th, .cmp-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
  line-height: 1.5;
}
.cmp-table thead th { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; padding-block: 1.1rem; background: var(--color-surface-subtle); }
.cmp-table thead th:first-child { width: 22%; }
.cmp-table thead .cmp-h-a { color: var(--color-text-muted); }
.cmp-table thead .cmp-h-b { background: var(--color-accent-hover); color: #fff; }
.cmp-table tbody th { font-weight: 700; font-size: 0.95rem; }
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table td.cmp-a, .cmp-table td.cmp-b { position: relative; padding-left: 3.1rem; font-size: 0.95rem; }
.cmp-a { color: var(--color-text-muted); }
.cmp-b { background: var(--color-accent-soft); color: var(--color-text-main); font-weight: 600; }
.cmp-ico {
  position: absolute;
  left: 1.25rem;
  top: 1rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.cmp-a .cmp-ico { background: rgba(110, 103, 95, 0.12); color: var(--color-text-muted); }
.cmp-b .cmp-ico { background: rgba(156, 95, 59, 0.16); color: var(--color-accent-hover); }
@media (max-width: 699px) {
  .cmp-card { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .cmp-table thead {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0);
  }
  .cmp-table, .cmp-table tbody, .cmp-table tr, .cmp-table th, .cmp-table td { display: block; width: 100%; }
  .cmp-table tr {
    margin-bottom: 0.9rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }
  .cmp-table tbody th { padding: 0.7rem 1rem; background: var(--color-surface-subtle); border-bottom: 1px solid var(--color-border); }
  .cmp-table td.cmp-a, .cmp-table td.cmp-b { padding: 0.75rem 1rem 0.75rem 3rem; border-bottom: 0; }
  .cmp-table td::before { content: attr(data-label) ": "; font-weight: 700; color: var(--color-text-main); }
  .cmp-ico { left: 1rem; top: 0.8rem; }
}

/* Prezent */
.gift { background: var(--color-surface-subtle); border-block: 1px solid var(--color-border); }
.ph-square { max-width: 520px; width: 100%; margin-inline: auto; }
.gift-text { color: var(--color-text-muted); font-size: 1.05rem; margin-bottom: 1.25rem; }
.gift-list li { display: flex; align-items: center; gap: 0.85rem; font-weight: 600; }

/* Opinie (szablon, ukryty domyślnie) */
.rv {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  background: var(--color-dark);
}
.rv-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
.rv::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(31, 29, 26, 0.82), rgba(31, 29, 26, 0.7));
}
@media (min-width: 900px) {
  .rv::before { background: linear-gradient(90deg, rgba(31, 29, 26, 0.9) 0%, rgba(31, 29, 26, 0.72) 42%, rgba(31, 29, 26, 0.05) 100%); }
  .rv-inner > * { max-width: 540px; }
}
.rv-title { color: #fff; margin-bottom: 1.75rem; }
.rv-grid { display: grid; gap: 1.5rem; }
.rv-card {
  position: relative;
  margin: 0;
  padding: 1.6rem 1.25rem 1.25rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.rv-card blockquote { font-size: 1rem; line-height: 1.6; margin-bottom: 0.9rem; }
.rv-card figcaption strong { display: block; }
.rv-card figcaption span { display: block; font-size: 0.86rem; color: rgba(255, 255, 255, 0.78); }
.rv-ribbon {
  position: absolute;
  top: -11px;
  right: 14px;
  max-width: calc(100% - 28px);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: #f6e3a6;
  color: #3a2c08;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.35;
}
.rv-source { margin-top: 1.25rem; font-size: 0.82rem; color: rgba(255, 255, 255, 0.78); }
#product-section{scroll-margin-top:70px}
.fit-guide summary > span.ico-sq { flex: none; }
@media (max-width: 420px) {
  .trust-strip-item { gap: 0.55rem; padding: 0.65rem; }
  .trust-strip-item .ico-sq { width: 34px; height: 34px; border-radius: 10px; }
  .trust-strip-item .ico-sq svg { width: 18px; height: 18px; }
}

/* ==========================================================================
   GALERIA: KARUZELA (scroll-snap) + UNOSZĄCA SIĘ OBUDOWA NA SLAJDZIE 1
   ========================================================================== */
.gallery-carousel {
  position: relative;
  width: 100%;
}

.gallery-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }

.gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  overflow: hidden;
  background: #e8e3dc;
  border-radius: var(--radius-lg);
}
@media (min-width: 993px) {
  .gallery-slide { aspect-ratio: 5 / 4; }
}

.slide-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.18s ease-in-out;
}

/* Slajd 1: ciepły reflektor + unosząca się obudowa */
.slide-live {
  background: radial-gradient(ellipse 60% 46% at 50% 52%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 0;
  overflow: visible;
}

.float-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3%;
}

.float-scale {
  position: relative;
  width: 100%;
  transition: transform 0.3s ease;
}

.float-bowl {
  position: relative;
  width: 100%;
  aspect-ratio: 900 / 552;
  animation: bowl-float 4s ease-in-out infinite;
  will-change: transform;
}

.float-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 14px 16px rgba(60, 40, 25, 0.16));
  transition: opacity 0.18s ease-in-out;
}

.float-shadow {
  position: absolute;
  left: 50%;
  bottom: -6%;
  width: 60%;
  height: 7%;
  margin-left: -30%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(60, 40, 25, 0.18) 0%, rgba(60, 40, 25, 0) 70%);
  filter: blur(6px);
  animation: bowl-shadow 4s ease-in-out infinite;
}

@keyframes bowl-float {
  0%, 100% { transform: translateY(8px); }
  50% { transform: translateY(-8px); }
}
@keyframes bowl-shadow {
  0%, 100% { transform: scale(0.88); opacity: 0.85; }
  50% { transform: scale(1.06); opacity: 0.55; }
}

/* Napis na tabliczce (pozycje względem obrazka 900x552) */
.engraving-overlay {
  position: absolute;
  left: 24.5%;
  top: 50.45%;
  width: 52%;
  height: 28.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  box-sizing: border-box;
  text-align: center;
  transform: rotate(-6deg);
  transform-origin: center center;
}

.engraved-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #2e1a42;
  white-space: nowrap;
  text-align: center;
  display: inline-block;
  margin: 0 auto;
  transition: color 0.3s ease, text-shadow 0.3s ease, opacity 0.2s ease;
}

/* Strzałki */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(60, 40, 25, 0.12);
  background: #fff;
  color: var(--color-text-main);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.gallery-prev { left: 0.6rem; }
.gallery-next { right: 0.6rem; }
.gallery-arrow:hover { background: #fff; }
.gallery-arrow:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.gallery-arrow:disabled { opacity: 0; pointer-events: none; }
@media (min-width: 900px) {
  .gallery-arrow { display: flex; }
}
@media (hover: hover) and (pointer: fine) {
  .gallery-arrow { display: flex; }
}

/* Kropki */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: -0.25rem;
}
.gallery-dot {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.gallery-dot span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  transition: width 0.25s ease, background-color 0.25s ease;
}
.gallery-dot.active span { width: 22px; border-radius: 4px; background: var(--color-accent); }
.gallery-dot:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -4px; border-radius: 8px; }

/* Miniatury */
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}
.thumb-item {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--color-surface);
  cursor: pointer;
  transition: var(--transition);
  min-width: 0;
  font-family: inherit;
  display: block;
}
.thumb-item:hover, .thumb-item.active {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}
.thumb-item:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (prefers-reduced-motion: reduce) {
  .float-bowl, .float-shadow { animation: none; }
  .gallery-track { scroll-behavior: auto; }
}

/* ===== Kompaktowy konfigurator (1.11.2026) ===== */
/* Kolory: małe kółka w jednym rzędzie, nazwa wybranego koloru jest w nagłówku */
.color-swatches-grid {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.5rem;
  grid-template-columns: none !important;
}
.color-swatch-item {
  width: 44px;
  min-height: 44px;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.color-swatch-item .swatch-circle {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: none;
  transition: box-shadow 0.2s ease;
}
.color-swatch-item input:checked + .swatch-circle {
  box-shadow: 0 0 0 2px var(--color-bg, #fbf9f5), 0 0 0 4px var(--color-accent, #b4724b);
}
.color-swatch-item .swatch-label {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Imię: mniej odstępów */
.form-section.highlight-box {
  padding: 0.85rem 1rem !important;
}
.form-section.highlight-box .section-label-row {
  margin-bottom: 0.5rem;
}
.form-section.highlight-box .text-input-large {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

/* ===== Kompaktowy pasek zaufania + logo płatności ===== */
.trust-strip { gap: 0.5rem !important; margin-top: 0.85rem; }
.trust-strip-item { padding: 0.6rem 0.7rem !important; gap: 0.6rem !important; align-items: center !important; border-radius: 12px !important; }
.trust-strip-item .ico-sq { width: 32px !important; height: 32px !important; border-radius: 9px; flex: 0 0 32px; }
.trust-strip-item .ico-sq svg { width: 18px; height: 18px; }
.trust-strip-item strong { font-size: 0.8rem !important; line-height: 1.2; }
.trust-strip-item div > span { font-size: 0.75rem !important; line-height: 1.3; }
.pay-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-top: 0.75rem; }
.pay-badge { display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem; height: 30px; min-width: 48px; padding: 0 0.5rem; background: #fff; border: 1px solid var(--color-border, #e8e1d6); border-radius: 6px; font-size: 0.72rem; font-weight: 700; color: var(--color-text-main, #1f1d1a); }
.pay-badge[hidden] { display: none !important; }
.pay-blik { background: #000; color: #fff; border-color: #000; letter-spacing: 0.04em; font-size: 0.78rem; }
.pay-klarna { background: #FFB3C7; border-color: #FFB3C7; }
@media (max-width: 640px) {
  .trust-strip { grid-template-columns: 1fr 1fr !important; gap: 0.4rem !important; }
  .trust-strip-item { padding: 0.45rem 0.5rem !important; gap: 0.45rem !important; }
  .trust-strip-item .ico-sq { width: 26px !important; height: 26px !important; flex-basis: 26px; border-radius: 7px; }
  .trust-strip-item .ico-sq svg { width: 15px; height: 15px; }
  .trust-strip-item strong { font-size: 0.74rem !important; }
  .trust-strip-item div > span { font-size: 0.7rem !important; overflow-wrap: anywhere; }
}

/* Nagłówek rozmiaru + link do tabeli */
.form-section .section-label-row:has(.size-guide-link) { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.size-guide-link {
  display: inline-flex !important; align-items: center; gap: 0.35rem;
  min-height: 32px; padding: 0.3rem 0.75rem !important;
  border: 1px solid var(--color-border, #e8e1d6); border-radius: 999px;
  background: #fff; color: var(--color-text-muted, #6e675f) !important;
  font-size: 0.78rem; font-weight: 600; text-decoration: none !important; white-space: nowrap;
  transition: border-color .2s ease, color .2s ease;
}
.size-guide-link svg { color: var(--color-accent, #b4724b); flex: 0 0 auto; }
@media (hover: hover) { .size-guide-link:hover { border-color: var(--color-accent, #b4724b); color: var(--color-accent, #b4724b) !important; } }
.pay-badges img { height: 30px; width: auto; display: block; }

/* Sekcja "Dlaczego obudowa" ze zdjęciem */
.concept-card { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; }
.concept-media { margin: 0; border-radius: 18px; overflow: hidden; }
.concept-media img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 70% center; }
@media (min-width: 900px) {
  .concept-card { grid-template-columns: 1fr 1fr; }
  .concept-media { order: 2; }
}

/* Więcej grafik w dolnych sekcjach */
.how-card { overflow: hidden; }
.how-media { margin: -1.5rem -1.5rem 1rem; aspect-ratio: 16 / 10; background: #f1ece4; overflow: hidden; }
.how-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.how-card:first-child .how-media img { object-fit: contain; padding: 0.75rem; }
.dimensions-media { margin: 0 auto 1.25rem; max-width: 520px; border-radius: 18px; overflow: hidden; }
.dimensions-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
@media (max-width: 640px) {
  .benefit-grid { grid-template-columns: 1fr 1fr !important; gap: 0.6rem !important; }
  .benefit-card { padding: 0.9rem !important; }
  .benefit-card h3 { font-size: 0.95rem; margin-top: 0.6rem; }
  .benefit-card p { font-size: 0.8rem; line-height: 1.45; }
}

/* Info o darmowej dostawie pod ceną */
.ship-note { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.5rem; font-size: 0.8rem; font-weight: 600; color: var(--color-text-muted, #6e675f); }
.ship-note svg { color: var(--color-accent, #b4724b); flex: 0 0 auto; }
.ship-note.is-free { color: #1f7a4d; }
.ship-note.is-free svg { color: #1f7a4d; }

/* ===== Pasek zaufania: 3 równe kolumny (także mobile) ===== */
.trust-strip { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 0.4rem !important; }
.trust-strip-item { flex-direction: column; align-items: flex-start !important; text-align: left; padding: 0.55rem 0.5rem !important; gap: 0.4rem !important; min-width: 0; }
.trust-strip-item .ico-sq { width: 28px !important; height: 28px !important; flex: 0 0 28px !important; border-radius: 8px; }
.trust-strip-item .ico-sq svg { width: 16px !important; height: 16px !important; }
.trust-strip-item div { min-width: 0; width: 100%; }
.trust-strip-item strong { font-size: 0.76rem !important; line-height: 1.2; overflow-wrap: anywhere; }
.trust-strip-item div > span { font-size: 0.7rem !important; line-height: 1.3; overflow-wrap: anywhere; display: block; margin-top: 0.1rem; }
@media (max-width: 360px) {
  .trust-strip-item { padding: 0.45rem 0.4rem !important; }
  .trust-strip-item strong { font-size: 0.7rem !important; }
  .trust-strip-item div > span { font-size: 0.66rem !important; }
}
.pay-badges { flex-wrap: wrap; gap: 0.35rem; }
.pay-badges img { flex: 0 1 auto; max-width: 100%; }
.pay-caption { display: flex; align-items: center; justify-content: center; gap: 0.3rem; margin: 0.5rem 0 0; font-size: 0.75rem; line-height: 1.2; color: var(--color-text-muted, #6e675f); }
.pay-caption svg { flex: 0 0 auto; }

/* ===== Kompaktowe karty rozmiarów (desktop) ===== */
@media (min-width: 900px) {
  .size-selector-grid { align-items: stretch; gap: 0.5rem; }
  .size-card-body { gap: 0.35rem; padding: 0.75rem; }
  .size-top { align-items: center; }
  .size-badge { width: 28px; height: 28px; border-radius: 8px; font-size: 0.9rem; }
  .size-check { width: 20px; height: 20px; }
  .size-check svg { width: 12px; height: 12px; }
  .size-info { gap: 0.1rem; flex: 1 1 auto; }
  .size-name { font-size: 0.95rem; }
  .size-spec { font-size: 0.75rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .size-desc { font-size: 0.7rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .size-price { font-size: 1.05rem; margin-top: auto; padding-top: 0.15rem; }
}

/* ===== Sekcja wymiarów: zdjęcie + tabela ===== */
/* Atrybut height w <img> (1013) wygrywał z aspect-ratio: wymuszamy height:auto */
#dimensions .dimensions-media { margin: 0 auto 1.25rem; max-width: 520px; border-radius: 18px; overflow: hidden; }
#dimensions .dimensions-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; max-height: 220px; object-fit: cover; border-radius: 18px; }
#dimensions .dimensions-table-card { min-width: 0; }
@media (min-width: 900px) {
  #dimensions .dimensions-layout { display: block; }
  #dimensions .dimensions-media { display: none; }

}
/* Pozostałe zdjęcia: height z atrybutu nie może rozciągać obrazków */
.how-media img { height: 100%; }
.concept-media img { height: auto; max-height: 520px; }

/* Kolumna ceny w tabeli wymiarów: cena + "z wkładem" pod spodem */
.specs-table .price-pill { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; background: none !important; padding: 0 !important; border: 0 !important; font-weight: 700; white-space: nowrap; }
.specs-table .table-addon-note { display: block; font-size: 0.72rem; font-weight: 500; color: var(--color-text-muted, #6e675f); white-space: nowrap; }

/* ===== Opinie (przykłady) ===== */
.rv2 { padding: clamp(3rem, 7vw, 5.5rem) 0; background: var(--color-bg-alt, #f3eee6); }
.rv2-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.75rem; }
@media (min-width: 700px) { .rv2-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.rv2-card { position: relative; margin: 0; background: #fff; border: 1px solid var(--color-border, #e8e1d6); border-radius: 18px; overflow: hidden; box-shadow: 0 6px 24px rgba(60, 40, 25, 0.06); display: flex; flex-direction: column; }
.rv2-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.rv2-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.rv2-stars { display: flex; gap: 2px; color: #e0a33a; }
.rv2-card blockquote { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--color-text-main, #1f1d1a); flex: 1; }
.rv2-card figcaption { display: flex; flex-direction: column; gap: 0.1rem; font-size: 0.8rem; }
.rv2-card figcaption strong { font-size: 0.88rem; }
.rv2-card figcaption span { color: var(--color-text-muted, #6e675f); }
.rv2-tag { position: absolute; top: 10px; left: 10px; z-index: 1; background: #fff3c4; color: #7a5a00; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.25rem 0.55rem; border-radius: 999px; }
.rv2-source { text-align: center; margin-top: 1rem; font-size: 0.78rem; color: var(--color-text-muted, #6e675f); }

/* ===== Buldog zaglądający nad pole z imieniem ===== */
.form-section.highlight-box.has-peek { position: relative; margin-top: 92px; overflow: visible !important; }
.name-peek { position: absolute; right: 18px; bottom: calc(100% - 8px); width: 112px; height: auto; pointer-events: none; z-index: 2; filter: drop-shadow(0 4px 6px rgba(60, 40, 25, 0.15)); }
@media (min-width: 900px) { .form-section.highlight-box.has-peek { margin-top: 104px; } .name-peek { width: 128px; } }
/* Telefon: buldog lekko nachodzi na sekcję z ceną */
@media (max-width: 899px) {
  .form-section.highlight-box.has-peek { margin-top: 62px; }
  .name-peek { width: 98px; }
  .name-peek { z-index: 5; }
}

/* Pole na imię: ciepłe, brązowe tło */
.form-section.highlight-box.has-peek {
  background: linear-gradient(180deg, #f4e6d8 0%, #ecdac8 100%) !important;
  border-color: #b4724b !important;
}
.form-section.highlight-box.has-peek .form-label { color: #5a3a24; }
.form-section.highlight-box.has-peek .char-count { color: #7a5a44; }
.form-section.highlight-box.has-peek .text-input-large,
.form-section.highlight-box.has-peek .name-input-wrapper { background: #fffdfa !important; }

/* Pole na imię: mocniejszy brązowy gradient, ramka zlana z tłem */
.form-section.highlight-box.has-peek {
  background: linear-gradient(135deg, #a8704a 0%, #8a5536 55%, #6f4128 100%) !important;
  border: 1px solid transparent !important;
  box-shadow: 0 10px 28px rgba(80, 45, 20, 0.22) !important;
}
.form-section.highlight-box.has-peek .form-label { color: #fff8f0; }
.form-section.highlight-box.has-peek .form-label.required::after { color: #ffd9bd; }
.form-section.highlight-box.has-peek .char-count { color: rgba(255, 244, 232, 0.8); }
.form-section.highlight-box.has-peek .name-input-wrapper,
.form-section.highlight-box.has-peek .text-input-large { background: #fffaf4 !important; border-color: transparent !important; }
.form-section.highlight-box.has-peek .name-error,
.form-section.highlight-box.has-peek [id="name-error"] { color: #ffe1d0; }

/* Cena + imię = jedna karta (buldog wygląda zza brązowej części) */
.product-header { margin-bottom: 0 !important; }
.product-header .price-box {
  border-bottom: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  box-shadow: none !important;
  padding-bottom: 0.9rem;
  margin-bottom: 0 !important;
}
.customizer-form { margin-top: 0 !important; }
.form-section.highlight-box.has-peek,
.form-section.highlight-box.has-peek {
  margin-top: 0 !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}
.name-peek { bottom: calc(100% - 6px) !important; }
.product-configurator-wrap { row-gap: 0 !important; }

/* Lekki cień pod łapkami buldoga: dwa małe cienie dokładnie pod łapami */
.form-section.highlight-box.has-peek::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 18px;
  width: 112px;
  height: 9px;
  background:
    radial-gradient(ellipse 12% 100% at 11% 0%, rgba(35, 16, 6, 0.42), rgba(35, 16, 6, 0) 100%),
    radial-gradient(ellipse 12% 100% at 89% 0%, rgba(35, 16, 6, 0.42), rgba(35, 16, 6, 0) 100%);
  pointer-events: none;
  z-index: 4;
}
@media (max-width: 899px) { .form-section.highlight-box.has-peek::after { width: 98px; } }
@media (min-width: 900px) { .form-section.highlight-box.has-peek::after { width: 128px; } }
