  .glass { backdrop-filter: blur(10px); background: rgba(255,255,255,0.75); }
  .hero-grad { background: radial-gradient(1200px 600px at 20% -10%, rgba(255,0,0,.16), transparent 60%), linear-gradient(180deg, #0f172a 0%, #111827 100%); }


/* preview fixed container + responsive contained text */
#preview {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* preview box height: możesz zmienić w px, to wartość wizualna, nie wpływa na pomiary */
#preview {
  min-height: 140px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  position:relative;
}



/* hidden measurement element */
#_creo_measure {
  position: absolute;
  left: -9999px;
  top: -9999px;
  visibility: hidden;
  white-space: nowrap;
}









/* ========== Creo55 editor custom styles ========== */
/* Reset ewentualnych "divide" dekoracji w sekcji edytora */
.editor-grid > * { border: 0 !important; }

/* Podłużny preview - responsywny */
#preview {
  width: 100%;
  box-sizing: border-box;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  background:#fff;
  min-height:120px;
  max-height:220px;
  overflow:hidden;
  padding: 12px;
}



/* hidden measurement element */
#_creo_measure { position:absolute; left:-9999px; top:-9999px; visibility:hidden; white-space:nowrap; }

/* --- dim / meta block pod preview --- */
#preview-meta {
  margin-top: 10px;
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;
}
.preview-meta-item {
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width: 88px;
}
.preview-meta-item .label { font-size:12px; color:#6b7280; }
.preview-meta-item .value { font-weight:700; color:#111827; }

/* price value highlight */
.preview-price { color:#e11d48; font-size:1.05rem; font-weight:800; }

/* MOBILE: preview sticky on top so it remains visible while scrolling form */
@media (max-width: 768px) {
  /* main preview sticky below header; adjust top to header height (approx 64px) */
  #preview-sticky-wrap { position: sticky; top: 64px; z-index: 50; background: #fff; padding-bottom:6px; }
  /* make preview taller / more podłużny on mobile */
  #preview { min-height: 120px; max-height: 180px; padding:10px; }
  /* form is single column by default on mobile; remove margins */
  .editor-form { margin-top: 6px; }
}

/* DESKTOP: preview centered, meta items in one row */
@media (min-width: 769px) {
  #preview { min-height:140px; max-height:260px; }
  #preview-meta { flex-wrap:nowrap; }
}

/* Remove any HR or visual separators if present */
.editor-grid hr, .editor-grid .divider, .editor-grid .separator { display:none !important; }

/* Make selects / galleries clean (remove unexpected borders) */
.material-gallery img { border: 0; box-shadow: none; }





/* header mobile menu look */
#mobile-menu a { color: #0f172a; text-decoration: none; }
#mobile-menu a:hover { background: rgba(0,0,0,0.02); }





/* ========== header always visible ========== */
/* wysokość belki — zmień jeśli chcesz inny rozmiar */
:root { --creo-header-h: 56px; }

/* wymuszony zawsze widoczny, biały, z cieniem */
#site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  height: var(--creo-header-h);
  line-height: var(--creo-header-h);
  display: flex;
  align-items: center;
  background: #ffffff !important;   /* zawsze białe */
  box-shadow: 0 1px 6px rgba(16,24,40,0.06);
  z-index: 9999;
  padding-left: 12px;
  padding-right: 12px;
}

/* header wewnętrzne elementy - zmniejszamy trochę */
#site-header .logo-img { height: 34px; object-fit: contain; }
#site-header .logo-img-small { height: 28px; object-fit: contain; }

/* gdy header ma wyższy content (np. padding), centrowanie */
#site-header .header-inner { display:flex; align-items:center; justify-content:space-between; width:100%; max-width:1200px; margin:0 auto; }

/* kompensacja treści pod fixed header — aby header nie zasłaniał strony */
body { padding-top: var(--creo-header-h); }

/* ensure preview sticky wrap sits below header */
#preview-sticky-wrap { position: sticky; top: calc(var(--creo-header-h)); z-index: 80; }

/* mobile: zmniejszamy padding-top jeśli potrzebujesz (ale zachowujemy header) */
@media (max-width: 768px) {
  :root { --creo-header-h: 56px; } /* możesz zmniejszyć do 48 jeśli chcesz */
  #site-header { height: var(--creo-header-h); line-height: var(--creo-header-h); padding-left:12px; padding-right:12px; }
}

/* small visual cleanups */
#site-header .nav-desktop { gap: 14px; }
#site-header .mobile-toggle { display:inline-flex; align-items:center; justify-content:center; }

/* Mobile-only hamburger (fallback jeśli nie ma Tailwind) */
.mobile-toggle { display: none; }      /* default hidden */
@media (max-width: 768px) {
  .mobile-toggle { display: inline-flex !important; }
  .nav-desktop { display: none !important; } /* hide desktop nav on small screens */
}
@media (min-width: 769px) {
  .mobile-toggle { display: none !important; } /* ensure hidden on desktop */
  .nav-desktop { display: flex !important; }
}

/* Remove button shift on focus/click */
.mobile-toggle { border: 0; background: transparent; padding: 6px; }
.mobile-toggle:focus { outline: none; box-shadow: none; transform: none; }

/* Mobile menu full width below header */
#mobile-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--creo-header-h));
  background: #fff;
  z-index: 9998;
  border-top: 1px solid rgba(0,0,0,0.04);
}
#mobile-menu.show { display: block; }

/* make mobile menu items full width and readable */
#mobile-menu a { display:block; padding:12px 16px; border-bottom:1px solid rgba(0,0,0,0.03); color: #0f172a; text-decoration:none; }




/* Footer icons */
.footer-icons a { color: #374151; display:inline-flex; align-items:center; justify-content:center; }
.footer-icons a:hover { color: var(--brand-red); }
.footer-icons svg { width:20px; height:20px; display:block; }



/* Upewnij się, że .container jest jedną, wspólną klasą na całej stronie */
.container {
  width:100%;
  max-width:1200px; /* dopasuj jeśli chcesz wężej/szerzej */
  margin:0 auto;
  padding:0 20px;
}

/* Footer full width background, we use inner .container to center content */
.site-footer { background: #fff; }

/* Footer columns alignment - center vertically and keep consistent width */
.footer-col { min-width: 0; }

/* Icons */
.footer-icons a { color: #374151; display:inline-flex; align-items:center; justify-content:center; }
.footer-icons a:hover { color: var(--brand-red); }
.footer-icons svg { width:20px; height:20px; display:block; }

/* Jeśli na niektórych stronach body/content jest węższy, wymuś ten sam container dla main content */
.main-content, .page-content, .editor-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Mobile responsiveness */
@media (max-width:720px){
  .container, .main-content, .page-content { padding: 0 16px; }
  .footer-col { text-align:left; }
}







/* Footer icons (jeśli jeszcze nie ma) */
.footer-icons a { color: #374151; display:inline-flex; align-items:center; justify-content:center; }
.footer-icons a:hover { color: var(--brand-red); }
.footer-icons svg { width:20px; height:20px; display:block; }

/* Czerwona pełnoszerokowa belka z centralnym tekstem */
.footer-bottom-red{
  background: var(--brand-red);
  color: #ffffff;
  padding: 12px 0;
}
.footer-bottom-red a{ color: inherit; text-decoration:underline; }

/* Upewnij się że .container/main używa max-w-7xl — już masz to w footer */




/* FORCE footer bottom red */
.footer-bottom-red{
  background-color: #d21f1f !important;
  color: #ffffff !important;
  padding: 12px 0 !important;
}
.footer-bottom-red a { color: #ffffff !important; text-decoration:underline; }
.footer-bottom-red .max-w-7xl { color: inherit; }











/* preview-text is visually scaled to fit container but does not change container size */
#preview-text {
  white-space: nowrap;
  display:inline-block;
  transform-origin: center center;
  /* base font-size for visible preview — keeps layout stable */
  font-size: 36px; /* podpisana wizualna wielkość; zmieniaj wedle designu */
  line-height: 1;
  max-width: 100%;
  overflow:visible;
}


/* preview box: podłużny, zachowuje proporcje i nie rozpycha layoutu */
#preview { width: 100%; box-sizing: border-box; display:flex; align-items:center; justify-content:center; position:relative; background:#f5f5f5; }
#preview-text { white-space: nowrap; display:inline-block; transform-origin: center center; line-height:1; }

/* hidden measurement element */
#_creo_measure { position:absolute; left:-9999px; top:-9999px; visibility:hidden; white-space:nowrap; }




/* Widoczny tekst w preview - nie wypycha layoutu */
#preview-text {
  white-space: nowrap;
  display:inline-block;
  transform-origin: center center;
  line-height:1;
  /* bazowy rozmiar wizualny, można dopasować */
  font-size: 36px;
  max-width: 100%;
  overflow: visible;
}






#preview-text { font-size: 150px; }
