/* ==========================================
   main.css  AUTOMATICKY GENEROVAN SOUBOR
   Datum: 2025-12-16 20:57:31
   ========================================== */

/* ---------  base.css  --------- */

/* =============================
   Centrostav – základní styly
   ============================= */

:root {
  /* Paleta */
  --primary-color: #003366;
  --accent-color:  #1d4ed8;
  --bg-app:        #f4f6fa;
  --bg-card:       #ffffff;
  --text-main:     #111827;
  --text-muted:    #4b5563;
  --border-soft:   rgba(0,0,0,0.06);
  --shadow-soft:   0 24px 48px rgba(0,0,0,0.08);
  --shadow-strong: 0 24px 48px rgba(0,0,0,0.40);

  /* Rozměry */
  --sidebar-w: 260px;
  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 12px;
  --radius-xl: 16px;

  --container-max: 1320px;
  --gutter: 16px;
}

/* šířky hlavního obsahu */
.topbar-inner,
.hero-slider,
.layout,
footer#site-footer {
  width: min(100% - (2 * var(--gutter)), var(--container-max));
  margin-inline: auto;
}

/* breakpoints */
@media (min-width: 768px) {
  :root { --gutter: 24px; }
}

@media (min-width: 1024px) {
  :root { --container-max: 1320px; --gutter: 24px; }
}

@media (min-width: 1440px) {
  :root { --container-max: 1600px; --gutter: 28px; }
}

@media (min-width: 1700px) {
  :root { --container-max: 1760px; --gutter: 32px; }
}

@media (min-width: 2000px) {
  :root { --container-max: 1900px; --gutter: 36px; }
}

/* reset & typografie */

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-app);
  color: var(--text-main);
  display: block;
}

h1,
h2 {
  color: var(--primary-color);
}

/* hlavní dvousloupcový layout pod hero */

.layout {
  margin-inline: auto;
  display: flex;
  align-items: stretch;
  gap: 24px;
}

@media (max-width: 900px) {
  .layout {
    flex-direction: column;
  }
}

/* obsahový sloupec */

#content,
main#content {
  margin-left: 0;
  padding: 0;
  background: var(--bg-app);
  max-width: unset;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding-bottom: 24px;
}

/* skok na #content z menu – ať zůstane kus slideru vidět */
html {
  scroll-behavior: auto;
}

#content {
  scroll-margin-top: 10px;
}

/* schovat případné auto generované h1/p z builderu */
#content > h1,
#content > p {
  display: none;
}

/* header titulek stránky */

header h1 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--text-main);
}

/* základ sekcí / karet */

.section-hero {
  margin-bottom: 24px;
}

.section-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 20px 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border-soft);
  margin-top: 0;
}

.section-card.section-accent {
  border-left: 4px solid var(--primary-color);
}

.section-card:first-child {
  margin-top: 0;
}

/* když karta nemá žádný nadpis/podnadpis, neřež ji shora paddingem */
.section-card:not(:has(.section-heading-title, .section-heading-desc)) {
  padding-top: 0;
  margin-top: 0;
}

.section-inner {
  padding: 20px 24px;
}

.page-intro {
  font-size: 1rem;
  font-weight: 500;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.3;
}

.section-heading-desc {
  font-size: 1rem;
  color: #555;
  margin-top: 4px;
}

/* všeobecné utility */

.is-hidden {
  display: none !important;
}

/* Poslední blok v obsahu – nedělej pod ním díru */

#content > .section-card:last-child,
#content > .page-intro:last-child,
#content > .text-block:last-child {
  margin-bottom: 0;
}

/* clearfixy pro floatované obrázky v obsahu */

#content::after,
.text-block-content::after,
.section-card::after {
  content: "";
  display: table;
  clear: both;
}

/* footer */

footer#site-footer {
  margin-top: 40px;
  padding: 16px 0;
  border-top: 1px solid var(--border-soft);
  font-size: .7rem;
  color: #6b7280;
  line-height: 1.4;
}
.cs-maint-admin-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;

    background: #b91c1c;
    color: #fff;
    padding: 10px 18px;
    text-align: center;
    font-weight: 600;

    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

/* Screen-reader only (neviditelné, ale přístupné) */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


/* ---------  header-hero.css  --------- */

/* ========== TOPBAR + HERO ========== */

.topbar {
  background: transparent;
  padding-top: 12px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Levá strana topbaru – logo Centrostav + podtitulek */

.topbar-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.logo.logo-centrostav img {
  display: block;
  height: 42px;
  width: auto;
}

.logo-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
  margin-left: 60px;
}

/* Pravá strana – BigMat */

.logo.logo-bigmat img {
  display: block;
  height: 80px;
  width: auto;
}

/* Mobile úpravy topbaru */
@media (max-width: 424px) {
  .topbar-inner {
    flex-wrap: wrap;
    gap: 10px 16px;
  }
  .logo.logo-centrostav img { height: 36px; }
  .logo.logo-bigmat img { height: 44px; }
  .logo-subtitle { font-size: .58rem; }
}

@media (max-width: 640px) {
  .topbar-inner {
    
    gap: 10px 16px;
  }
  .logo.logo-centrostav img { height: 36px; }
  .logo.logo-bigmat img { height: 44px; }
  .logo-subtitle { font-size: .58rem; }
}

/* mobilní šířka loga – extra breakpoints */

@media (max-width: 768px) {
  .logo-centrostav img {
    width: 350px !important;
    height: auto !important;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .logo-centrostav img {
    width: 250px !important;
  }
}

/* ========== HERO SLIDER ========== */

.hero-slider {
  position: relative;
  height: 500px;
  margin: 24px auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #000;
}

.hero-track {
  position: relative;
  height: 100%;
}

/* Výchozí – FADE */

.hero-slide {
  position: absolute;
  inset: 0;
  padding: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

/* Režim SLIDE (data-hero-transition="slide") */

.hero-slider[data-hero-transition="slide"] .hero-track {
  display: flex;
  transition: transform .6s ease;
  will-change: transform;
  height: 100%;
}

.hero-slider[data-hero-transition="slide"] .hero-slide {
  position: relative;
  inset: auto;
  opacity: 1;
  flex: 0 0 100%;
  height: 100%;
  padding: 0;
}

/* Textová vrstva */

.hero-overlay {
  width: fit-content;
  color: #fff;
  padding: 0 20px 40px;
  box-sizing: border-box;
}

.hero-texts {
  max-width: 500px;
}

/* navigační šipky – zatím v HTML zakomentované, ale styl necháme */

.hero-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.3);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0 0.6rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 5;
}

.hero-nav button:hover {
  background: rgba(255,255,255,0.6);
}

.hero-prev { left: 12px; }
.hero-next { right: 12px; }

/* tečky */

.hero-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 6;
}

.hero-dots .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  cursor: pointer;
}

.hero-dots .dot.active {
  background: #fff;
}

/* texty v hero */

.hero-headline {
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: .4rem;
  color: #fff;
  text-shadow:
      0.5px 0.5px 1px #000,
     -0.5px 0.5px 1px #000,
      0.5px -0.5px 1px #000,
     -0.5px -0.5px 1px #000;
}

.hero-sub {
  font-size: .95rem;
  line-height: 1.4;
  color: #fff;
}

@media (min-width: 768px) {
  .hero-headline { font-size: 1.5rem; }
  .hero-sub      { font-size: 1rem;  }
}

/* výšky hero pro menší zařízení */

@media (max-width: 768px) {
  .hero-slider {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .hero-slider {
    height: 220px;
  }
}

/* Vnitřní hero (na stránce) */

.hero-inner {
  margin: 24px 0;
}


/* ---------  editor.css  --------- */

/* ======================================
   CKEditor / Quill – frontend styly
====================================== */

/* TinyMCE */

.tox-tinymce {
  border-radius: var(--radius-m) !important;
  border: 1px solid #ccc !important;
  box-shadow: none !important;
}

/* Quill – obrázky a resizer */

.quill-editor img {
  max-width: 60%;
  height: auto;
  display: inline-block;
}

.quill-editor img.img-left   { float: left;  margin: .25rem .75rem .25rem 0; }
.quill-editor img.img-right  { float: right; margin: .25rem 0 .25rem .75rem; }
.quill-editor img.img-center { display: block; margin: .5rem auto; float: none; }

.quill-editor img.img-rounded {
  border-radius: 8px;
}

.quill-editor img.img-shadow {
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

.q-img-resizer {
  position: absolute;
  border: 1px dashed rgba(255,255,255,.5);
  pointer-events: none;
}

.q-img-resizer .handle {
  position: absolute;
  width: 10px;
  height: 10px;
  right: -6px;
  bottom: -6px;
  border: 1px solid #fff;
  background: rgba(37,99,235,.9);
  border-radius: 2px;
  cursor: nwse-resize;
  pointer-events: all;
}

/* Obrázky v obsahu (#content, text-block-content) */

#content img,
.text-block-content img {
  max-width: 100%;
  height: auto;
}

#content img.img-left,
.text-block-content img.img-left {
  float: left;
  margin: .25rem .75rem .25rem 0;
}

#content img.img-right,
.text-block-content img.img-right {
  float: right;
  margin: .25rem 0 .25rem .75rem;
}

#content img.img-center,
.text-block-content img.img-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  float: none;
}

#content img.img-rounded,
.text-block-content img.img-rounded {
  border-radius: 8px;
}

#content img.img-shadow,
.text-block-content img.img-shadow {
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

/* velikosti figure.image z CKEditoru (cs-img-xx) */

.cs-content figure.image.cs-img-25,
.section-card figure.image.cs-img-25 {
  max-width: 25%;
}

.cs-content figure.image.cs-img-50,
.section-card figure.image.cs-img-50 {
  max-width: 50%;
}

.cs-content figure.image.cs-img-75,
.section-card figure.image.cs-img-75 {
  max-width: 75%;
}

.cs-content figure.image.cs-img-100,
.section-card figure.image.cs-img-100 {
  max-width: 100%;
}

/* ======================================
   CKEditor 5 – figure/image
====================================== */

figure.image {
  display: block;
  margin: 1.5rem auto;
  text-align: center;
  max-width: 100%;
}

figure.image img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

figure.image a {
  display: inline-block;
  text-decoration: none;
  border: none;
}

/* zarovnání */

figure.image.image-style-align-left {
  float: left;
  margin: 0.5rem 1rem 0.5rem 0;
  text-align: left;
}

figure.image.image-style-align-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  float: none;
}

figure.image.image-style-align-right {
  float: right;
  margin: 0.5rem 0 0.5rem 1rem;
  text-align: right;
}

/* popisek */

figure.image figcaption {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.4;
  margin-top: 4px;
}

/* vyčištění obtékání */

.ck-content::after,
.block-html::after {
  content: "";
  display: block;
  clear: both;
}

/* kódové bloky, citace, tabulky */

.ck-content pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.85rem;
}

.ck-content blockquote {
  border-left: 4px solid #2563eb;
  margin: 1.25rem 0;
  padding: 0.5rem 1rem;
  color: #374151;
  font-style: italic;
  background: rgba(37,99,235,0.05);
}

.ck-content table {
  border-collapse: collapse;
  margin: 1rem 0;
  width: 100%;
  font-size: 0.9rem;
}

.ck-content table th,
.ck-content table td {
  border: 1px solid #e5e7eb;
  padding: 0.4rem 0.6rem;
  text-align: left;
}

.ck-content table th {
  background: #f3f4f6;
  font-weight: 600;
}

/* obrázky se zoomem – kurzor (logika v lightbox.css) */

.ck-content img.zoom {
  cursor: zoom-in;
}

/* ===== Masonry galerie (Pinterest styl) ===== */
.cs-gallery{
  column-count: 4;
  column-gap: 14px;
  margin: 16px 0;
}

@media (max-width: 1100px){
  .cs-gallery{ column-count: 3; }
}
@media (max-width: 800px){
  .cs-gallery{ column-count: 2; }
}
@media (max-width: 520px){
  .cs-gallery{ column-count: 1; }
}

.cs-gallery > a{
  display: inline-block;
  width: 100%;
  margin: 0 0 14px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.25);
  background: rgba(15,23,42,.08);
  text-decoration: none;
}

.cs-gallery > a > img{
  width: 100%;
  height: auto;            /* důležité: různé výšky => masonry */
  display: block;
}
/* CKEditor 4: masonry galerie náhled */
.cke_editable .cs-gallery{
  column-count: 3;
  column-gap: 12px;
  margin: 12px 0;
}

.cke_editable .cs-gallery > a{
  display: inline-block;
  width: 100%;
  margin: 0 0 12px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.25);
  background: rgba(15,23,42,.08);
}

.cke_editable .cs-gallery > a > img{
  width: 100%;
  height: auto;
  display: block;
  max-width: none;
}
.cs-gallery > a img{
  transition: transform .25s ease, filter .25s ease;
}
.cs-gallery > a:hover img{
  transform: scale(1.03);
  filter: brightness(1.05);
}
.pswp__custom-caption {
  background: rgba(0,0,0,.65);
  font-size: 15px;
  color: #fff;
  max-width: 420px;
  padding: 6px 10px;
  border-radius: 6px;
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
}
/* override zoom cursor */
.pswp__img {
    cursor: pointer !important;
}

/* ---------  sidebar.css  --------- */

/* ========== SIDEBAR / NAVIGACE ========== */

#sidebar,
aside#sidebar {
  background: #111827;
  color: #fff;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  flex: 0 0 var(--sidebar-w);
}

#sidebar img,
aside#sidebar img {
  max-width: 180px;
  margin-bottom: 10px;
}

/* textová značka/logotyp */

#brand {
  width: 100%;
  margin-bottom: 24px;
  padding: 0 10px;
}

#brand .main-logo {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}

#brand .sub-logo {
  font-size: .8rem;
  line-height: 1.2;
  color: #d1d5db;
}

/* základ pro <nav> */

nav {
  width: 100%;
  padding: 0 10px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  margin-bottom: 8px;
}

nav a {
  display: block;
  text-decoration: none;
  background: #1f2937;
  color: #fff;
  font-size: 1rem;
  padding: 10px 12px;
  border-radius: var(--radius-m);
  width: 100%;
  box-sizing: border-box;
}

nav a.active,
nav a:hover {
  background: var(--accent-color);
}

/* sidebar nav – jemnější */

#sidebar nav li {
  margin: 6px 0;
}

#sidebar nav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: inherit;
}

/* oddělovač (sep) */

#sidebar nav .menu-sep hr {
  border: 0;
  border-top: 1px solid rgba(0,0,0,.15);
  margin: 8px 0;
}

/* externí odkazy – malá šipka */

#sidebar nav a.menu-ext::after {
  content: "↗";
  margin-left: .35em;
  font-size: .85em;
  opacity: .7;
}

/* aktivní položka v sidebaru */

#sidebar nav ul li a.active {
  position: relative;
  background: rgba(59, 130, 246, 0.15);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  padding-left: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

#sidebar nav ul li a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: #3b82f6;
}

#sidebar nav ul li a.active:hover {
  background: rgba(59, 130, 246, 0.25);
}

/* podmenu – jen odsazení + šipka */

#sidebar nav ul li a.menu-child,
#sidebar nav ul li a.menu-ext.menu-child {
  position: relative;
  padding-left: 32px;
  font-size: 0.9rem;
}

#sidebar nav ul li a.menu-child::before,
#sidebar nav ul li a.menu-ext.menu-child::before {
  content: "↳";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8em;
  opacity: 0.8;
}

/* dropdown v sidebaru (např. otevírací doba) */

.nav-dropdown {
  position: relative;
  margin-top: 12px;
}

.nav-btn {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
}

.nav-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  min-width: 260px;
  max-width: 360px;
  width: max-content;
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 24px 48px rgba(0,0,0,.5);
  display: none;
  z-index: 50;
}

.nav-dropdown.open .nav-panel {
  display: block;
}

#sidebar .nav-dropdown .nav-panel {
  left: auto;
  right: 0;
}

#sidebar .nav-dropdown {
  display: block;
}

/* Highlight box v sidebaru */

#sidebar .sidebar-highlight {
  background: #0f172a;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 14px 10px 0 10px;
  width: auto;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
}

#sidebar .sidebar-highlight-title {
  font-weight: 700;
  font-size: .85rem;
  margin-bottom: 6px;
}

#sidebar .sidebar-highlight-head .t {
  font-weight: 600;
  font-size: .8rem;
}

#sidebar .sidebar-highlight-head .s {
  font-size: .75rem;
  color: #94a3b8;
  margin-bottom: 6px;
}

#sidebar .sidebar-highlight-content p {
  margin: .25rem 0;
}

/* schovat prázdný nadpis v sidebaru a srazit mezeru */
.sidebar-highlight-title:empty {
  margin: -15px;
  padding: 0;
}

/* Otevírací doba – Quill <ol><li> verze */

.sidebar-highlight ol {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem 0;
}

.sidebar-highlight ol li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.18rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.sidebar-highlight ol,
.sidebar-highlight ol li,
.sidebar-highlight ol li strong {
  font-size: inherit;
}

/* poslední řádek bez spodní čáry */
.sidebar-highlight ol li:last-child {
  border-bottom: none;
}

/* schovat Quillí tečku */
.sidebar-highlight ol li .ql-ui {
  display: none;
}

/* čas vpravo na jednom řádku */
.sidebar-highlight ol li strong {
  font-weight: 600;
  white-space: nowrap;
}

/* Neděle červeně (7. položka) */
.sidebar-highlight ol li:nth-child(7) strong {
  color: #dc2626;
}

/* poznámka pod seznamem */
.sidebar-highlight > p:last-child {
  margin: 0.5rem 0 0 0;
  font-size: 0.85rem;
  color: #64748b;
  text-align: right;
}

.sidebar-highlight > p:last-child strong {
  color: #dc2626;
}

/* zvýraznění aktuálního dne */

.sidebar-highlight ol li.today {
  position: relative;
  font-weight: 600;
  color: #3b82f6;
}

.sidebar-highlight ol li.today::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #3b82f6;
  border-radius: 2px;
}

/* =========================
   Mobilní sidebar toggle
========================= */

.cs-menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* tlačítko pod hero (už ho máš jako .cs-sidebar-toggle v layoutu) */

.cs-sidebar-toggle {
  width: 100%;
  padding: 6px 0;
  margin: 12px 0;
  font-size: 20px;
  line-height: 1;
  text-align: center;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #334155;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.cs-sidebar-toggle:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

/* mobilní režim – sidebar schovat, tlačítko zobrazit */

@media (max-width: 768px) {
  #sidebar {
    display: none !important;
  }

  #sidebar.sidebar-open {
    display: block !important;
  }

  .cs-sidebar-toggle {
    display: block;
  }
}

/* na větším displeji tlačítko nechceme */

@media (min-width: 769px) {
  .cs-sidebar-toggle {
    display: none;
  }
}

/* =========================
   Vnořené menu v sidebaru
   ========================= */

/* <li> s dítětem – kotva pro absolutní submenu */
#sidebar nav li.nav-item {
  position: relative;
}

/* ZÁKLAD: podmenu vypadá jako původní "rozbalené v seznamu" */
#sidebar nav .nav-submenu {
  list-style: none;
  margin: 4px 0 0 18px;   /* odsazení dovnitř seznamu – jako původní děti */
  padding: 0;
  display: none;          /* skryté, pokud není rozbaleno */
}

/* jednotlivé položky uvnitř podmenu */
#sidebar nav .nav-submenu li {
  margin: 4px 0;
}

/* Po KLIKU (aktivní větev) – původní rozbalené chování */
#sidebar nav li.nav-item.is-expanded > .nav-submenu {
  display: block;
  position: static;       /* žádný overlay, normální flow */
  background: none;
  box-shadow: none;
  margin-left: 18px;      /* držíme indent */
}

/* Odkazy v podmenu – klidně jemnější padding */
#sidebar nav .nav-submenu a {
  padding: 6px 10px;
}

/* Šipka a odsazení pro děti – můžeš dál nechávat přes .menu-child */
#sidebar nav .nav-submenu a.menu-child,
#sidebar nav .nav-submenu a.menu-ext.menu-child {
  padding-left: 26px;
}

/* NÁHLED NA MYŠI:
   – jen pokud větev NENÍ rozbalená (nemá .is-expanded)
   – zobrazíme vpravo jako overlay, nic neposouvá
*/
#sidebar nav li.nav-item.has-children:hover:not(.is-expanded) > .nav-submenu {
  display: block;
  position: absolute;
  top: 0;
  left: 100%;
  margin: 0;                 /* žádná mezera – tělo submenu hned vedle rodiče */
  padding: 6px 8px;          /* optická mezera uvnitř submenu, ne mezi prvky */
  min-width: 180px;
  background: #0f172a;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,.6);
  z-index: 60;
}
/* Průhledný most mezi rodičem a plovoucím submenu,
   aby při přejezdu myší nepřestalo platit :hover */
#sidebar nav li.nav-item.has-children:hover:not(.is-expanded)::after {
  content: "";
  position: absolute;
  top: 0;
  left: 100%;
  width: 12px;       /* šířka mostu – můžeš zvětšit/zmenšit */
  height: 100%;
}


/* ---------  content.css  --------- */

/* ========== TEXT / HIGHLIGHT BLOKY ========== */

.text-block {
  margin-bottom: 2rem;
  line-height: 1.5;
  color: #222;
}

.text-block h2 {
  margin-top: 0;
  color: var(--primary-color);
}

.text-block p {
  margin: .5rem 0;
}

.text-block-content {
  font-size: 1rem;
  line-height: 1.5;
}

.text-block-content p {
  margin: 0 0 .6rem 0;
}
/* Mobilní režim – vynutit, ať obrázek respektuje šířku kontejneru */
@media (max-width: 600px) {
  .text-block-content img {
    width: 40% !important;
    height: auto !important;
    float: none !important;     /* float dělá na mobilu neplechu */
    margin: 0 auto 1rem auto;   /* ať to vypadá hezky */
    display: block;
  }
}

.highlight-block {
  background: rgba(0,0,0,0.03);
  border-left: 4px solid var(--primary-color);
  padding: 1rem;
  margin: 1.5rem 0;
  font-weight: 500;
  line-height: 1.4;
  color: #111;
  border-radius: var(--radius-s);
  box-shadow: 0 2px 4px rgba(0,0,0,.05);
}

/* jemnější highlight box – sjednocený akcent */

.highlight-box {
  border-left: 4px solid var(--accent-color);
}

.highlight-box-content p {
  margin: .4rem 0;
  font-size: .9rem;
  line-height: 1.4;
}

/* ========== TIMELINE ========== */

.timeline-wrap {
  position: relative;
  margin-top: 16px;
  padding-left: 40px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.timeline-wrap::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: repeating-linear-gradient(
    to bottom,
    var(--accent-color) 0px,
    var(--accent-color) 8px,
    transparent 8px,
    transparent 14px
  );
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(37,99,235,0.4);
}

.timeline-row {
  position: relative;
  margin-bottom: 20px;
}

.timeline-row::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 12px;
  width: 12px;
  height: 12px;
  background: var(--accent-color);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(37,99,235,0.5);
}

.timeline-marker {
  display: none;
}

.timeline-content {
  background: #f9fafb;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  padding: 10px 16px;
}

.timeline-year {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 4px;
}

.timeline-item-head {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.4;
  margin-bottom: 4px;
}

.timeline-item-body {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-main);
}

/* ========== DODAVATELÉ / ODBĚRATELÉ ========== */

.supplier-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem 0;
}

.supplier-col {
  flex: 1 1 200px;
  min-width: 200px;
  max-width: 260px;
}

.supplier-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .9rem;
  line-height: 1.4;
}

.supplier-col li {
  padding: .25rem 0;
  border-bottom: 1px solid #eee;
}

.client-list ul {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 2rem 0;
  font-size: .9rem;
  line-height: 1.4;
}

.client-list li {
  border-bottom: 1px solid #ececec;
  padding: .4rem 0;
}

/* ========== PRODUCTS (obecné karty) ========== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.product-card {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #f9fafb;
  box-shadow: 0 16px 24px rgba(0,0,0,0.05);
  padding: 16px;
  font-size: .85rem;
  line-height: 1.4;
  color: #1f2937;
}

.product-name {
  font-size: .95rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px;
}

.product-cat {
  color: #666;
  font-size: .8rem;
  margin-bottom: .5rem;
}

.product-price {
  font-size: .9rem;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 6px;
}

.product-avail {
  font-size: .7rem;
  font-weight: 500;
  color: #10b981;
  margin-bottom: 8px;
}

.product-desc {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
}

.ask-btn {
  appearance: none;
  border: 0;
  border-radius: var(--radius-m);
  background: var(--accent-color);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 8px 10px;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.product-btn {
  background: var(--primary-color);
  color: #fff;
  border: 0;
  padding: .5rem .75rem;
  border-radius: var(--radius-s);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

.product-btn:hover {
  filter: brightness(1.07);
}

/* ========== OBECNÉ SEKCE / SEZNAMY ========== */

.cs-section {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin-bottom: 3rem;
}

.cs-section h2 {
  margin-bottom: 0.75rem;
}

.cs-section p {
  margin: 0 0 0.75rem;
  line-height: 1.6;
}

/* společný styl seznamů (odběratelé + dodavatelé) */

.cs-list {
  column-count: 3;
  column-gap: 2rem;
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0 0;
}

.cs-list li {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 0.35rem;
}

/* na mobilu jen 1 sloupec */

@media (max-width: 768px) {
  .cs-list {
    column-count: 1;
  }
}

/* ========== FIXNÍ KOŠÍK (FAB) ========== */

#cart {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-color);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  font-size: .9rem;
}

/* ========== BUILDER STAVY BLOKŮ ========== */

.block-move .small-btn[data-action^="delete"] {
  background: #fff0f0;
  border: 1px solid #d66;
  color: #a00;
}

.block-move .small-btn[data-action^="delete"]:hover {
  background: #ffe5e5;
}

.block-item.dragging {
  opacity: .4;
  border: 2px dashed var(--primary-color);
}

.block-item.drag-over {
  outline: 2px dashed #aaa;
  outline-offset: 4px;
  background: #f6f8ff;
}

/* ========== BLOK AKTUALITY ========== */

.section-news {
  /* zatím stejné chování jako běžná section-card */
}

.cs-news__item + .cs-news__item {
  border-top: 1px solid rgba(148, 163, 184, .4);
  margin-top: 16px;
  padding-top: 16px;
}

.cs-news__date {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  margin-bottom: 4px;
}

.cs-news__content p {
  margin: 0 0 0.5em 0;
}

.cs-news__empty {
  color: #64748b;
  font-style: italic;
}
.ck-content img.zoom {
  cursor: zoom-in;
}
/* NEWS – tlačítko "Načíst další" */
.section-news .cs-news__more-wrap {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.section-news .cs-news__more {
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #111827;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.1s ease;
}

.section-news .cs-news__more:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.18);
  transform: translateY(-1px);
}

.section-news .cs-news__more:active {
  box-shadow: none;
  transform: translateY(0);
}

.section-news .cs-news__more:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.cs-contact-box {
  display: inline-block;
  padding: 16px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
}


/* ---------  lightbox.css  --------- */

/* =========================================
   Lightbox / zoom obrázků z CKEditoru
========================================= */

#imgZoomOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  z-index: 99999;
  animation: fadeIn .25s ease-out;
}

#imgZoomOverlay.open {
  display: flex;
}

#imgZoomFull {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  transform: scale(0.7);
  opacity: 0;
  transition: all .25s ease-out;
  background: #ffffff; 
  padding: 5px; 
}

/* po otevření */

#imgZoomOverlay.open #imgZoomFull {
  transform: scale(1);
  opacity: 1;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* kurzor na obrázcích se zoom třídou – zbytek v editor.css */

.ck-content img.zoom {
  cursor: zoom-in;
}


/* ---------  contact.css  --------- */

/* =========================
   Starší obal kontaktního formuláře (karta)
========================= */

.contact-form-wrap {
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 2rem 0;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,.05);
  max-width: 500px;
}

.contact-form-wrap h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.contact-form-wrap label {
  display: block;
  font-size: .9rem;
  color: #222;
  font-weight: 500;
  margin-bottom: .75rem;
}

.contact-form-wrap input,
.contact-form-wrap textarea {
  width: 100%;
  font-size: .9rem;
  padding: .5rem .6rem;
  border-radius: var(--radius-s);
  border: 1px solid #bbb;
  margin-top: .25rem;
  font-family: inherit;
}

.contact-form-wrap textarea {
  min-height: 90px;
  resize: vertical;
}

.contact-form-wrap button {
  background: var(--primary-color);
  border: 0;
  border-radius: var(--radius-s);
  padding: .6rem 1rem;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: .9rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

.contact-form-wrap .note {
  font-size: .75rem;
  color: #444;
  margin: .5rem 0 1rem;
}

/* =====================================
   Moderní kontaktní tabulka cs-contacts
===================================== */

.cs-contacts-wrap {
  /* obal kolem tabulky pro mobilní scroll */
}

@media (max-width: 600px){
  .cs-contacts-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* základ */

table.cs-contacts {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0 32px;
  font-size: 0.95rem;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* zrušíme klasickou mřížku */

table.cs-contacts,
table.cs-contacts th,
table.cs-contacts td {
  border: none !important;
}

/* hlavička */

table.cs-contacts thead th {
  padding: 10px 14px;
  background: #e5e7eb;          /* ✅ o trochu tmavší než řádky */
  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid #d1d5db;  /* ✅ jasná hranice */
}

/* hlavní řádek osoby */

table.cs-contacts tbody tr:not(.cs-note) td {
  padding: 8px 14px;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
  background: #f3f4f6; /* ✅ vždy stejné pozadí pro jméno řádek */
}

/* e-mail – může být dlouhý */

table.cs-contacts tbody tr:not(.cs-note) td:nth-child(4) {
  word-break: break-all;
}

/* poznámka – druhý řádek osoby */

table.cs-contacts tr.cs-note td {
  padding: 6px 16px 12px 48px !important;
  font-size: 0.9rem;
  color: #4b5563;
  background: #ffffff; /* ✅ poznámka vždy stejné pozadí (klidně nech #f9fafb, pokud chceš jemně šedé) */
  border-bottom: 1px solid #e5e7eb;
}

/* lehké zebra pozadí */
/* zebra vypnuta – chceme jednotné pozadí pro poznámky 
table.cs-contacts tr.cs-note:nth-of-type(4n) td {
  background: #f3f4f6;*/
}

/* poslední záznam – bez spodního rámečku */

table.cs-contacts tbody tr:last-child td {
  border-bottom: none;
}

/* hover na hlavním řádku osoby */

table.cs-contacts tbody tr:not(.cs-note):hover td {
  background: #eef2ff;
}

/* na menších displejích zmenšit font */

@media (max-width: 900px) {
  table.cs-contacts {
    font-size: 0.9rem;
  }
}

/* =========================
   Kontaktní formulář (cs-contact)
========================= */

.cs-contact {
  padding-top: 8px;
}

.cs-contact__form {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* řádky / skupiny polí */

.cs-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.cs-form-row--compact {
  margin-top: 4px;
}

/* jednotlivá pole */

.cs-form-field {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.875rem;
}

.cs-form-field label {
  font-weight: 500;
  color: #4b5563;
}

/* vstupy */

.cs-form-field input,
.cs-form-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font: inherit;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  background: #fff;
}

.cs-form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.cs-form-field input:focus,
.cs-form-field textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12);
}

/* checkbox GDPR */

.cs-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: #4b5563;
}

.cs-checkbox input[type="checkbox"] {
  margin-top: 3px;
}

.cs-checkbox a {
  color: #2563eb;
  text-decoration: underline;
}

/* spodní řádek – status + tlačítko */

.cs-contact__footer {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.cs-contact__status {
  min-height: 1.2em;
  font-size: 0.8rem;
  color: #6b7280;
}

/* responsivita formuláře */

@media (max-width: 768px) {
  .cs-contact__form {
    max-width: 100%;
  }

  .cs-form-row {
    flex-direction: column;
  }

  .cs-contact__footer {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .cs-form-field {
    flex: unset;
    flex-grow: 0;
    flex-basis: auto;
    min-height: auto;
  }
}

/* contact.css – mapa na kontaktní stránce */
#cs-map-wrapper {
  width: 500px;
  height: 300px;
  float: right;
  margin-left: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
}

#cs-map-canvas {
  width: 100%;
  height: 100%;
}
.cs-map-canvas{
  width: 500px;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

@media (max-width: 768px){
  .cs-map-canvas{ height: 260px; }
}


/* volitelné – aby Leaflet ovládací prvky nelezly moc do rohu */
.leaflet-control {
  margin: 8px;
}

/* ===== MOBIL / TABLET ===== */
@media (max-width: 768px) {
  #cs-map-wrapper {
    float: none;        /* zruší zarovnání vpravo */
    width: 100%;        /* přes celou šířku */
    height: 260px;      /* můžeš upravit, třeba 220–300 */
    margin-left: 0;
    margin-top: 1rem;   /* malý odstup od textu nahoře */
  }
}



/* ---------  shop.css  --------- */

/* ===========================
   Poptávkový e-shop (blok products)
   =========================== */

/* ===== UNIFIED CANONICAL LAYOUT & GRID RULES (apply once) =====
   - single source of truth for sidebar width
   - canonical header (desktop + mobile)
   - canonical layout + sidebar/cart sizing
   - unified catgrid + products grid breakpoints
*/
.cs-shop {
  margin-top: 1.5rem;
  --shop-sidebar-w: 231px; /* change once if needed (e.g. 320px) */
}

/* header: desktop (left content + sidebar/cart) */
.cs-shop__header{
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--shop-sidebar-w);
  grid-template-areas: "search cart";   /* ✅ JEN 1 ŘÁDEK */
  gap: 16px;
  align-items: start;
}

/* ✅ explicitně řekneme, kam co patří */
.cs-shop__header .cs-shop__search{
  grid-area: search;
  margin-top: 0;                        /* ❗ ať ti to nezvětšuje header */
}

.cs-shop__header .cs-shop__cart{
  grid-area: cart;
  justify-self: end;
  align-self: start;
  width: 100%;
}

/* mobil zůstane pod sebou (tohle si klidně nech) */
@media (max-width: 768px){
  .cs-shop__header{
    grid-template-columns: 1fr;
    grid-template-areas:
      "search"
      "cart";
    gap: 12px;
  }
}

/* header: mobile layout when narrow */
@media (max-width: 768px) {
  .cs-shop__header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "search"
      "cart"
      "price"
      "topbar";
    gap: 12px;
    align-items: start;
  }

  .cs-shop__header.cs-shop__header--cart-open {
    grid-template-areas:
      "search"
      "cart"
      "price"
      "topbar";
  }

  .cs-shop__header.cs-shop__header--cart-open .cs-shop__cart.cs-shop__cart--header {
    justify-self: stretch;
    max-width: none;
    width: 100%;
  }
}

/* main layout: content + sidebar */
.cs-shop__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--shop-sidebar-w);
  gap: 16px;
  align-items: start;
  margin-top: 12px;
}

/* sidebar / cart canonical sizing */
.cs-shop__sidebar { position: sticky; top: 12px; align-self: start; }
.cs-shop__cart { width: var(--shop-sidebar-w); max-width: 100%; box-sizing: border-box; }
.cs-shop__cart .cs-cart__toggle { width: 100%; justify-content: center; }

/* default catgrid for wide screens */
.cs-shop__layout .cs-catgrid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* catgrid breakpoints */
@media (max-width: 1700px) { .cs-shop__layout .cs-catgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1440px) { .cs-shop__layout .cs-catgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1150px) { .cs-shop__layout .cs-catgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 550px)  { .cs-shop__layout .cs-catgrid { grid-template-columns: 1fr; } }

/* products grid (mobile-first) */
.cs-shop__products { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 550px)  { .cs-shop__products { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1150px) { .cs-shop__products { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1700px) { .cs-shop__products { grid-template-columns: repeat(4, minmax(0,1fr)); } }

/* ensure any old pseudo-element for cart toggle removed */
.cs-shop__cart .cs-cart__toggle::after { content: none !important; display: none !important; }

/* ===========================
   BREADCRUMBS – hierarchie kategorií
   =========================== */

.cs-shop__breadcrumbs {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #475569;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.6rem 1rem;
  border-radius: 0.4rem;
  max-width: 600px;
}

.cs-shop__crumb-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* odsazení podle úrovně */
.cs-shop__crumb-row[data-level="0"] { margin-left: 0; }
.cs-shop__crumb-row[data-level="1"] { margin-left: 1rem; }
.cs-shop__crumb-row[data-level="2"] { margin-left: 2rem; }
.cs-shop__crumb-row[data-level="3"] { margin-left: 3rem; }
.cs-shop__crumb-row[data-level="4"] { margin-left: 4rem; }

.cs-shop__crumb {
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  position: relative;
  transition: color 0.15s ease;
}

.cs-shop__crumb:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.cs-shop__crumb--current {
  font-weight: 600;
  cursor: default;
  text-decoration: none;
  color: #0f172a;
}

.cs-shop__crumb-sep {
  color: #94a3b8;
}

/* ===========================
   VYHLEDÁVÁNÍ
   =========================== */

.cs-shop__search {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  /* align-items: center; */
}

.cs-shop__search input[type="search"] {
  padding: 0.4rem 0.6rem;
  border-radius: 0.375rem;
  border: 1px solid #cbd5e1;
  min-width: 260px;
}
/* ===== DETAIL: vyhledávač nesmí mít min-width, jinak na úzkém zmizí ===== */
.cs-shop__header--detail .cs-shop__search input[type="search"]{
  min-width: 0;              /* ✅ zrušit 260px */
  width: 100%;
}

/* ===== DETAIL: layout input + tlačítko ===== */
.cs-shop__header--detail .cs-shop__search{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

/* Extra úzké: pod sebe */
@media (max-width: 360px){
  .cs-shop__header--detail .cs-shop__search{
    grid-template-columns: 1fr;
  }
  .cs-shop__header--detail .cs-shop__search button{
    width: 100%;
  }
}


.cs-shop__search button {
  padding: 0.61rem 1.9rem;
  border-radius: 14px;
  border: none;
  background: #1d4ed8;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
}

.cs-shop__search button:hover {
  background: #1e40af;
}

.cs-shop__search-reset {
  font-size: 0.85rem;
  color: #64748b;
  text-decoration: none;
}

.cs-shop__search-reset:hover {
  text-decoration: underline;
}

.cs-shop__search-info {
  margin: 0.5rem 0 0.75rem;
  font-size: 0.9rem;
  color: #475569;
}

/* ===========================
   ÚVOD E-SHOPU + HLAVIČKA PROMA
   =========================== */

.cs-shop__intro {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
}

.cs-shop__intro-main {
  flex: 1 1 260px;
  min-width: 0;
}

.cs-shop__promo {
  margin-top: 1.5rem;
}

.cs-shop__promo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cs-shop__promo-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

/* ===========================
   HORNÍ LIŠTA – FILTRY + KOŠÍK
   =========================== */

/* topbar – filtry vlevo, košík vpravo, žádná skleněná bublina */
.cs-shop__topbar{
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    ". cart"
    "filters filters";
  align-items: start;
  gap: 0.75rem 1.5rem;
  margin: 0.75rem 0 1.25rem;
}

.cs-shop__filters{ grid-area: filters; }
.cs-shop__cart{ grid-area: cart; justify-self: end; align-self: start; }



/* FILTRY – jen řádek chipů + drobné popisky */
.cs-shop__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border: none;
  font-size: 0.9rem;
}

/* checkboxy jako malé chipy */
.cs-shop__filters > label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  cursor: pointer;
  white-space: nowrap;
  color: #374151;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

/* hover chipu */
.cs-shop__filters > label:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

/* aktivní chip (checked) */
.cs-shop__filters > label:has(input:checked) {
  background: rgba(37, 99, 235, 0.10);
  border-color: #2563eb;
  color: #1d4ed8;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.18);
}

/* checkboxy / rádia – necháme accent */
.cs-shop__filters input[type="checkbox"],
.cs-shop__filters input[type="radio"] {
  accent-color: #2563eb;
  margin: 0;
}

/* --- Ceny (fieldset) – legend + dvě pilulky v řadě --- */
.cs-shop__price-mode {
  border: none;
  margin: 0;
  padding: 0;
  display: grid;
  align-items: center;
  gap: 0.35rem;
}

.cs-shop__price-mode legend {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9ca3af;
}

/* pilulky „s DPH / bez DPH“ */
.cs-shop__price-mode label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.88rem;
  color: #374151;
  background: #f3f4f6;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.cs-shop__price-mode label:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

/* aktivní varianta – modrá pilulka */
.cs-shop__price-mode label:has(input:checked) {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
  font-weight: 600;
}

/* === Shop sidebar: Ceny (DPH) ===================================== */

.cs-shop__price-mode {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.65);
}

/* Nadpis jako u Výrobce */
.cs-shop__price-mode > legend {
  padding: 0 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(0,0,0,.55);
}

/* rozložení dvou voleb vedle sebe */
.cs-shop__price-mode label {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.75);
  cursor: pointer;
  user-select: none;
}

.cs-shop__price-mode input[type="radio"] {
  transform: scale(1.05);
}

/* === Shop sidebar: Skladem / Akce ================================ */

.cs-shop__sidebar .cs-shop__filters {
  padding: 12px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.65);

  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cs-shop__sidebar .cs-shop__filters label {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 4px 10px;
  background: rgba(255,255,255,.75);

  cursor: pointer;
  user-select: none;
}

.cs-shop__sidebar .cs-shop__filters input[type="checkbox"] {
  transform: scale(1.05);
}
.cs-shop__sidebar .cs-shop__filters label:has(input:checked) {
  border-color: rgba(20, 92, 255, .45);
  background: rgba(20, 92, 255, .08);
  box-shadow: 0 0 0 3px rgba(20, 92, 255, .10);
}

/* Nadpis "Filtry" uvnitř checkbox boxu */
.cs-shop__filters--flags > legend {
  padding: 0 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(0,0,0,.55);
}


/* --- Select „Na stránku“ – jednoduchý, bez glass efektu --- */

.cs-shop__page-size {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 0.9rem;
}

.cs-shop__page-size select {
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 0.25rem 3.75rem 0.25rem 1.75rem;
  font-size: 0.9rem;
  background: #ffffff;
  outline: none;
  appearance: none;
  cursor: pointer;
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.cs-shop__page-size select:hover {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.cs-shop__page-size::after {
  content: "▾";
  position: relative;
  right: 1.3rem;
  font-size: 0.7rem;
  pointer-events: none;
  color: #9ca3af;
}

/* RESPONSIVITA – topbar (filtry + košík) */
@media (min-width: 768px) {
  .cs-shop__topbar {
    flex-direction: row;
    align-items: center;
  }

  .cs-shop__cart {
    min-width: 260px;
  }
}
label.cs-shop__page-size{
  position: relative;
  display: inline-flex;
  align-items: center;
}
label.cs-shop__page-size select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-color: #fff;
}

/* šipka jako pseudo-element labelu */
label.cs-shop__page-size::after{
  content: "▾";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;

  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}


/* ===========================
   KOŠÍK
   =========================== */

.cs-shop__cart {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

/* košík = stejný box jako filtry */
.cs-shop__cart{
  width: 100%;
  min-width: 0;

  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  box-sizing: border-box;
}

/* tlačítko přesně na šířku boxu */
.cs-shop__cart .cs-cart__toggle{
  width: 100%;
  box-sizing: border-box;
}

/* tlačítko košíku */
.cs-shop__cart .cs-cart__toggle{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  width: 100%;
  box-sizing: border-box;

  padding: 12px 14px;
  border-radius: 12px;

  background: #1d4ed8;
  color: #fff;

  border: 1px solid #1d4ed8;      /* ⬅️ modré orámování */
  box-shadow: 0 0 0 1px rgba(29,78,216,.15);

  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

/* hover stav */
.cs-shop__cart .cs-cart__toggle:hover{
  background: #1e40af;
  border-color: #1e40af;
}

/* vypnout staré pseudo-elementy */
.cs-shop__cart .cs-cart__toggle::after{
  content: none !important;
  display: none !important;
}

/* ikona + text bez flex-triků */
.cs-shop__cart .cs-cart__icon,
.cs-shop__cart .cs-cart__title{
  flex: 0 0 auto;
}

/* pokud máš v HTML extra ikonku šipky */
.cs-cart__chevron {
  transition: transform 0.15s ease;
}

.cs-cart__toggle--open .cs-cart__chevron {
  transform: rotate(180deg);
}

.cs-cart__left {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cs-cart__right {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  opacity: 0.9;
}

.cs-cart__icon {
  font-size: 1.1rem;
}

.cs-cart__badge {
  min-width: 1.6rem;
  height: 1.2rem;
  border-radius: 999px;
  background: #ffffff;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.cs-cart__total {
  margin-top: 0.25rem;
}

.cs-cart__weight {
  margin-top: 0.15rem;
  font-size: 0.85rem;
  color: #374151;
}

.cs-cart__body {
  margin-top: 0.75rem;
}

.cs-cart__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.cs-cart__table th,
.cs-cart__table td {
  padding: 0.45rem 0.35rem;
  border-bottom: 1px solid #e5e7eb;
}

.cs-cart__remove {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
}

.cs-cart__note {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #6b7280;
}

/* Množství v košíku (kompaktní) */
.cs-cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0.05rem 0.3rem;
  background: #f9fafb;
}

.cs-cart-qty__btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0 0.3rem;
  line-height: 1;
  font-size: 0.9rem;
}

.cs-cart-qty__input {
  width: 3rem;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 0.85rem;
}

/* odstranění šipek u number inputu */
.cs-cart-qty__input::-webkit-inner-spin-button,
.cs-cart-qty__input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cs-cart-qty__input[type="number"] {
  -moz-appearance: textfield;
}
.cs-cart__summary{
  margin-top: 12px;
  padding: 10px 12px;
  max-width: 320px;

  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 12px;

  font-size: 0.9rem;
  color: #0f172a;
  line-height: 1.55;
}

.cs-cart__summary > div{
  display: flex;
  align-items: baseline;
  gap: 8px;
}

/* hodnota (číslo) + jednotka doprava */
.cs-cart__summary span{
  margin-left: auto;
  text-align: right;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* jednotky (Kč, kg) zůstanou na stejném řádku */
.cs-cart__summary span + *{
  white-space: nowrap;
  color: #64748b;
  font-weight: 600;
  margin-left: 6px;
}

.cs-cart__summary > div:not(:last-child){
  border-bottom: 1px solid rgba(15,23,42,.06);
}

.cs-cart__summary span{
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cs-cart__summary > div:nth-child(2) span{
  font-weight: 900; /* celková cena */
}

/* jednotky "Kč" a "kg" vedle span v HTML */
.cs-cart__summary > div{
  position: relative;
}
.cs-cart__summary > div > span + *{
  /* nic – jen ať to zůstane inline, ale vizuálně sladíme barvu */
  color: #64748b;
  font-weight: 600;
  margin-left: 6px;
}
.cs-cart__table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 12px;
  overflow: hidden;
}

.cs-cart__table thead th{
  text-align: left;
  font-weight: 800;
  font-size: 0.9rem;
  color: #0f172a;
  background: rgba(15,23,42,.03);
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15,23,42,.08);
}

.cs-cart__table tbody td{
  padding: 12px 14px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(15,23,42,.06);
  font-size: 0.95rem;
  color: #0f172a;
}

.cs-cart__table tbody tr:last-child td{
  border-bottom: none;
}

.cs-cart__table tbody tr:hover{
  background: rgba(15,23,42,.02);
}

/* čísla/ceny pěkně zarovnat a ať se nelámou */
.cs-cart__table td:nth-child(2),
.cs-cart__table td:nth-child(3),
.cs-cart__table td:nth-child(4){
  white-space: nowrap;
}

/* poslední sloupec (X) ať je subtilní */
.cs-cart__table th:last-child,
.cs-cart__table td:last-child{
  width: 44px;
  text-align: center;
  color: #64748b;
}
.cs-cart-page__header{
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

/* tlačítka */
.cs-cart__actions{
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* na mobilu všechno pod sebe */
@media (max-width: 760px){
  .cs-cart-page__header{
    flex-direction: column;
    align-items: stretch;
  }
  .cs-cart__summary{
    max-width: none;
  }
  .cs-cart__actions{
    justify-content: stretch;
  }
  .cs-cart__actions .cs-btn{
    width: 100%;
  }
}
/* na úzkých displejích: horizontální scroll tabulky */
.cs-cart__table-wrap{
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* aby se tabulka měla kam roztáhnout */
.cs-cart__table{
  min-width: 360px; /* uprav podle toho, kdy se ti to začne lámat */
}



/* ===========================
   PRODUKTY – GRID + KARTA (moderní skin)
   =========================== */
   
.cs-shop__products{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:1rem;
}

/* KARTA */
.cs-product{
  position:relative;
  display:flex;
  flex-direction:column;
  height:400px;                 /* můžeš doladit 240–300 */
  padding:14px;
  box-sizing:border-box;

  border:1px solid #e5e7eb;
  border-radius:12px;
  background:#fff;
  box-shadow:0 2px 8px rgba(15,23,42,.05);
  transition:box-shadow .2s ease,border-color .2s ease,transform .06s ease;
}
.cs-product:hover{
  border-color:#d1d5db;
  box-shadow:0 8px 20px rgba(15,23,42,.10);
  transform:translateY(-1px);
}

/* HLAVIČKA */
.cs-product__header{ display:block; margin-bottom:6px; }

.cs-product__name{
  margin:0 0 4px 0;
  line-height:1.25;
  font-weight:700;
  font-size:1.05rem;
  color:#0f172a;
  min-height:2.6em;             /* drží 2 řádky */
}

/* ŘÁDEK: kód + štítky */
.cs-product__meta-row{
  display:inline-flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  padding-bottom: 10px;    /* Mezera pod štítky a nad fotkou produktu */
}
.cs-product__code{
  font-size:.82rem;
  color:#94a3b8;
  white-space:nowrap;
  margin:0;
}

.cs-product__badges{
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
}

/* === Hranaté štítky (moderní styl) ===================================== */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 6px;               /* hranaté rohy */
  padding: 3px 8px;
  font-size: 0.75rem;
  line-height: 1.1;
  white-space: nowrap;
  border: 1px solid transparent;
  background: #f9fafb;
  color: #374151;
  transition: background 0.15s ease, border-color 0.15s ease;
}

/* Barevné varianty */
.badge--stock {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.badge--promo {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

/* Volitelné doplňky, pokud máš i jiné typy */
.badge--warn {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}
.badge--ok {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

/* (volitelně) jemné varianty dostupnosti: */
.badge.low{ background:#fef3c7; color:#92400e; border-color:#fde68a; }
.badge.ok{  background:#eff6ff; color:#1d4ed8; border-color:#bfdbfe; }

/* VYMEZOVAČ – tlačí footer dolů */
.cs-product__spacer{ flex:1 1 auto; min-height:8px; }

/* FOOTER – vlevo cena+qty, vpravo tlačítko */
.cs-product__footer{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:flex-end;
  margin-top:auto;              /* drží footer u spodku i u krátkých textů */
}

.cs-product__footer-left{
  display:flex;
  flex-direction:column;
  gap:8px;
}

/* CENA */
.cs-product__price{ margin:0; line-height:1.2; }
.cs-price{ display:block; font-weight:700; font-size:0.99rem; color:#0f172a; }

/* MNOŽSTVÍ – kompaktní pilulka */
.cs-product__qty{}
.cs-product__qty-label{
  display:block;
  margin:0 0 4px;
  font-size:.82rem;
  color:#6b7280;
}

/* Jemnější linie pro množství */
.cs-product__qty-control{
  display:inline-flex;
  align-items:center;
  gap:4px;
  background:#f9fafb;
  border:1px solid #e5e7eb;
  border-radius:8px;
  padding:4px 6px;
}

.cs-qty-btn{
  border:none;
  background:transparent;
  font-size:18px;
  font-weight:500;
  color:#475569;
  width:24px;
  height:24px;
  line-height:1;
  cursor:pointer;
  transition:color .15s ease, transform .06s ease;
}
.cs-qty-btn:hover{ color:#1d4ed8; }
.cs-qty-btn:active{ transform:scale(.9); }

.cs-product__qty-input{
  width:3.2rem;
  border:none;
  background:transparent;
  text-align:center;
  font-size:.9rem;
  padding:2px 0;
}
/* odstranění šipek číselníku */
.cs-product__qty-input::-webkit-inner-spin-button,
.cs-product__qty-input::-webkit-outer-spin-button{ -webkit-appearance:none; margin:0; }
.cs-product__qty-input[type="number"]{ -moz-appearance:textfield; }

.cs-product__qty-unit{
  font-size:.82rem;
  color:#6b7280;
}

/* TLAČÍTKO DO KOŠÍKU – modrá pilulka vpravo dole */
.cs-product__footer-right{ display:flex; align-items:flex-end; justify-content:flex-end; }
.cs-product__add{
  border:none;
  border-radius:999px;
  padding:.54rem 1rem;
  font-size:.9rem;
  font-weight:700;
  cursor:pointer;
  background:#1d4ed8;
  color:#fff;
  box-shadow:0 2px 6px rgba(29,78,216,.25);
  transition:filter .15s ease, transform .06s ease, box-shadow .15s ease;
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  height: auto; 
  flex: 0 0 auto;
}
.cs-product__add:hover{ filter:brightness(1.05); box-shadow:0 6px 14px rgba(29,78,216,.28); }
.cs-product__add:active{ transform:translateY(1px); }




/* ===========================
   PAGER – stránkování
   =========================== */

.cs-shop__pager {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.cs-pager__btn,
.cs-pager__page {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 0.25rem 0.7rem;
  background: #ffffff;
  cursor: pointer;
  font-size: 0.85rem;
}

.cs-pager__btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.cs-pager__pages {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.cs-pager__page--active {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
}

.cs-pager__ellipsis {
  padding: 0 0.3rem;
  font-size: 0.85rem;
}

/* ===========================
   KATEGORIE – KARTY S FOTKOU
   =========================== */

/* Grid kategorií – vyplní řádek, ale karty se neroztahují */
.cs-catgrid{
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 2.5rem;

  /* sloupce fluidní => vyplní šířku */
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  align-items: start;
}

/* karta drží max šířku jako nahoře */
.cs-catcard{
  height: 90px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;

  width: 100%;
  max-width: 400px;       /* <- to je ta “šířka horních” */
  justify-self: start;    /* karty zarovná doleva ve sloupci */
}



.cs-catcard:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
  background: #ffffff;
}

.cs-catcard--active {
  border-color: #1d4ed8;
  background: #eff6ff;
}

/* box pro fotku vlevo */
.cs-catcard__image {
  flex: 0 0 30%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  justify-content: center;
}

/* obrázek uvnitř – zachovat objekt */
.cs-catcard__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 1px;
  background: #ffffff;
}

/* Textová část vpravo */
.cs-catcard__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  min-width: 0;
}

.cs-catcard__title {
  font-weight: 600;
  font-size: 1rem;
  color: #111827;
  line-height: 1.2;
  word-break: break-word;
}

.cs-catcard__meta {
  font-size: 0.85rem;
  color: #6b7280;
}
.cs-shop__categories-divider {
    width: 100%;
    height: 1px;
    background: #e5e7eb;
    margin: 1.5rem 0 1.75rem;
    border-radius: 1px;
}

/* ===========================
   PROMO SLIDER – Akční zboží
   =========================== */

/* celý e-shop blok – nic z něj nesmí rozšiřovat stránku */
.cs-section.cs-shop {
  overflow-x: hidden;
}

/* viewport pro slider – zúžený pod nadpisem */
.cs-shop__promo-viewport{
  --promo-col: calc(var(--container-max) - var(--sidebar-w) - 24px);
  --promo-k: 1;

  width: 100%;
  max-width: calc(var(--promo-col) * var(--promo-k));
  margin: 0 auto;

  overflow-x: auto;
  overflow-y: visible;
  box-sizing: border-box;
  scrollbar-width: none;
  cursor: grab;
}

/* 768+ chceš 720 -> tohle ti už vychází, nech jak máš */
@media (min-width: 768px){
  .cs-shop__promo-viewport{ --promo-k: 0.695; } 
  /* 0.695 * 1036 ≈ 720 */
}

/* 1024+ chceš ~694 -> taky sedí */
@media (min-width: 1024px){
  .cs-shop__promo-viewport{ --promo-k: 0.67; }
  /* 0.67 * 1036 ≈ 694 */
}
@media (min-width: 1150px){
  .cs-shop__promo-viewport{ --promo-k: 0.8; }
  /* 0.67 * 1036 ≈ 694 */
}
@media (min-width: 1250px){
  .cs-shop__promo-viewport{ --promo-k: 0.90; }
  /* 0.67 * 1036 ≈ 694 */
}
@media (min-width: 1350px){
  .cs-shop__promo-viewport{ --promo-k: 0.99; }
}

/* 1440+ chceš 1100 */
@media (min-width: 1440px){
  .cs-shop__promo-viewport{ --promo-k: 0.836; }
  /* 0.836 * 1316 ≈ 1100 */
}

@media (min-width: 1600px){
  .cs-shop__promo-viewport{ --promo-k: 0.95; }
}

/* 1700+ chceš 1352 */
@media (min-width: 1700px){
  .cs-shop__promo-viewport{ --promo-k: 0.916; }
  /* 0.916 * 1476 ≈ 1352 */
}
@media (min-width: 1920px){
  .cs-shop__promo-viewport{ --promo-k: 0.99; }
  /* 0.916 * 1476 ≈ 1352 */
}

/* 2000+ a výš chceš plnou šířku sloupce */
@media (min-width: 2000px){
  .cs-shop__promo-viewport{ --promo-k: 1; }
  /* 1 * 1616 = 1616 */
}


.cs-shop__promo-viewport::-webkit-scrollbar {
  display: none;
}

.cs-shop__promo-viewport.is-dragging {
  cursor: grabbing;
}

.cs-shop__promo-viewport:hover {
  cursor: grab;
}

.cs-shop__promo-slider {
  display: flex;
  gap: 0.75rem;
}

/* promo kartička */
.cs-shop__promo-item {
  user-select: none;
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: #ffffff;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cs-shop__promo-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #0f172a;
}

.cs-shop__promo-code {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.cs-shop__promo-price {
  font-weight: 500;
  margin-bottom: 0.25rem;
}


.cs-shop__promo-unit {
  font-size: 0.8rem;
  color: #64748b;
  margin-left: 0.25rem;
}

.cs-shop__promo-add {
  margin-top: 0.5rem;
  align-self: flex-start;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: none;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 0.85rem;
  cursor: pointer;
}

.cs-shop__promo-add:hover {
  background: #1e40af;
}

/* ===========================
   RESPONSIVITA – layout topbaru a grid produktů
   =========================== */

@media (min-width: 768px){
  .cs-shop__cart{ min-width: 231px; }

  /* košík otevřený = první řádek přes celou šířku */
  .cs-shop__topbar.cs-shop__topbar--stacked{
    grid-template-columns: 1fr;
    grid-template-areas:
      "cart"
      "filters";
    align-items: start;
  }

  .cs-shop__topbar.cs-shop__topbar--stacked .cs-shop__cart,
  .cs-shop__topbar.cs-shop__topbar--stacked .cs-shop__filters{
    width: 100%;
    max-width: 100%;
  }
}

/* Breadcrumb odkazy – přebijeme globální nav a ze style.css */
.cs-shop__breadcrumbs a.cs-shop__crumb {
  display: inline;
  background: none;
  padding: 0;
  border-radius: 0;
  width: auto;

  color: #0f172a;          /* tmavý text */
  text-decoration: none;
}

/* Hover jen barva+podtržení, žádný barevný blok */
.cs-shop__breadcrumbs a.cs-shop__crumb:hover {
  background: none;
  color: #1d4ed8;
  text-decoration: underline;
}
.cs-cart__actions {
    margin-top: 0.75rem;
    display: flex;
    justify-content: flex-end;
}



/* tvoje barevné varianty – už máš připravené; ponechávám jen pro kontext
.badge--low  { background:#f8b84a; color:#fff; }
.badge--ok   { background:#22c55e; color:#fff; }
.badge--high { background:#1ea34c; color:#fff; }
.badge--warn { background:#b93a3a; color:#fff; }
.badge--promo{ background:#e35d34; color:#fff; }
*/


.cs-shop__promo-price {
  font-weight: 500;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

/* sjednocení s produktovou kartou */
.cs-shop__promo-price .cs-price {
  padding-top: 10px;
  display: block;
  font-size: 0.9rem;
}

/* výchozí stav – jen s DPH, bez DPH schované */
.cs-price--without-vat {
  display: none;
}
/* Létající tečka do košíku */
.cs-cart-fly {
  position: fixed;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #f97316;          /* oranžová, můžeš klidně změnit na brand barvu */
  box-shadow: 0 0 8px rgba(0,0,0,0.15);
  pointer-events: none;
  z-index: 9999;
  transform: translate(0, 0) scale(1);
  transition:
    transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.5s ease-out;
}

/* Puls ikony košíku po přidání */
.cs-cart__icon--pulse {
  animation: cs-cart-pulse 0.3s ease-out;
}

@keyframes cs-cart-pulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}


.cs-product-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.cs-product-modal-backdrop[hidden] {
  display: none;
}

.cs-product-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  padding: 24px 24px 20px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.30);
  position: relative;
}

.cs-product-modal__close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.cs-product-modal__body h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.cs-product-modal__meta {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 12px;
}

.cs-product-modal__desc {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.cs-product-modal__img {
  margin-bottom: 16px;
  text-align: center;
}

.cs-product-modal__img img {
  max-width: 100%;
  border-radius: 12px;
}
/* ---- RYCHLÉ NÁKUPNÍ OVLÁDÁNÍ V MODALU ---- */

.cs-product-modal__buy {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.cs-product-modal__qty {
  display: flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  overflow: hidden;
}

.cs-product-modal__qty-btn {
  width: 34px;
  height: 34px;
  font-size: 20px;
  border: none;
  background: #f3f4f6;
  cursor: pointer;
  line-height: 1;
}

.cs-product-modal__qty-btn:hover {
  background: #e5e7eb;
}

.cs-product-modal__qty-input {
  width: 44px;
  height: 34px;
  border: none;
  text-align: center;
  font-size: 15px;
}

.cs-product-modal__add-btn {
  flex: 1;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.cs-product-modal__add-btn:hover {
  background: #1e4fc9;
}


/* Vyhledávač ukotvený nahoře při scrollu */
.cs-shop__search{
  position: sticky;
  top: 0px;              /* když chceš úplně k horní hraně contentu, dej 0 */
  z-index: 200;  
  backdrop-filter: blur(6px);
  max-width: none;        /* ať se roztáhne přes sloupec */
  width: 100%;
}

.cs-search__row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cs-shop__search input[type="search"] {
  flex: 1 1 auto;
  height: 36px;
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
}

.cs-search__btn {
  height: 36px;
  padding: 0 14px;
  background: #1d4ed8;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.cs-search__btn:hover {
  background: #1e40af;
}

/* === Našeptávač hledání v e-shopu === */

.cs-shop__search {
  position: relative;
}

.cs-shop__search-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  z-index: 50;
  max-height: 260px;
  overflow-y: auto;
  padding: 4px 0;
}

.cs-shop__search-suggest-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 6px 10px;
  border: 0;
  background: #ffffff !important;
  color: #111827 !important;
  border-radius: 0;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.cs-shop__search-suggest-item:hover {
  background: #f3f4f6 !important;
}

.cs-shop__search-suggest-text {
  flex: 1 1 auto;
}

.cs-shop__search-suggest-code {
  flex: 0 0 auto;
  font-family: monospace;
  color: #6b7280;
  font-size: 12px;
}

.cs-product__thumb {
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  /* background: #f3f4f6;
  border: 1px solid #e3e5e8; */
  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto 12px;   /* 👈 tohle je magie – centrování v kartě */
}

.cs-product__thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.cs-product-modal__image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-product-modal__image img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 8px;
}
/* Skrýt defaultní šipky u <input type="number"> */
.cs-product-modal__qty-input::-webkit-outer-spin-button,
.cs-product-modal__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cs-product-modal__qty-input {
  -moz-appearance: textfield; /* Firefox */
}
.cs-product {
  position: relative;
}

/* overlay přes celou kartu */
.cs-product__full-link {
  position: absolute;
  inset: 0;            /* top:0; right:0; bottom:0; left:0; */
  z-index: 1;
  text-decoration: none;
}

/* cokoliv interaktivního ve footeru musí být nad overlayem */
.cs-product__footer,
.cs-product__footer * {
  position: relative;
  z-index: 2;
}

/* ===== Detail produktu ===== */
.cs-product-detail-page .cs-product-detail {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1.5fr);
  grid-template-rows: auto auto;
  column-gap: 32px;
  align-items: flex-start;
}

/* levý sloupec – obrázek */
.cs-product-detail-page .cs-product-detail__media {
  grid-column: 1;
  grid-row: 2;
}

/* pravý sloupec – texty, tlačítko Do košíku */
.cs-product-detail-page .cs-product-detail__main {
  grid-column: 2;
  grid-row: 2;
}

/* košík jako malý box vpravo nahoře (v rámci stejného gridu) */
.cs-product-detail-page .cs-shop__cart--detail {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  max-width: 260px;
  width: 100%;
}

/* obrázek – aby nepřerostl, máš 350 px */
.cs-product-detail-page .cs-product-detail__image-wrap img,
.cs-product-detail-page .cs-product-detail__image {
  width: auto;
  max-width: 350px;
  max-height: 350px;
  height: auto;
  display: block;
}

.cs-product-detail-page .cs-product-detail__badges  {
  padding-top: 10px;
}

.cs-product-detail-page .cs-product-detail__prices {
  padding-top: 10px;
  font-size: 16px;
}

/* box s popisem */
.cs-product-detail-page .cs-product-detail__desc {
  background: #fff;
  padding: 20px 24px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 6px 14px rgba(0,0,0,0.04);
  margin: 24px 0;
  max-width: 850px;
  line-height: 1.55;
  font-size: 1.1rem;
}

.cs-product-detail-page .cs-product-detail__title {
  font-size: 1.7rem;
}

.cs-product-detail-page .cs-product-detail__desc p {
  margin: 0;
  color: #555;
}

.cs-product-detail-page .cs-product-detail__desc p:only-child {
  font-style: italic;
  opacity: 0.8;
}

/* nákupní řádek v detailu – množství + tlačítko vedle sebe */
.cs-product-detail-page .cs-product-detail__buy {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-top: 16px;
}
.cs-product-detail-page .cs-price {
  font-size: 1.5rem;
}
.cs-product-detail-page .cs-product__add {
  padding:.54rem 5rem; 
}
  
/* === STAV: KOŠÍK OTEVŘENÝ – přes celou šířku, detail pod ním === */

.cs-product-detail-page .cs-product-detail--cart-open .cs-shop__cart--detail {
  grid-column: 1 / -1;   /* přes všechny sloupce gridu */
  grid-row: 1;
  justify-self: stretch;
  max-width: none;
  width: 100%;
}

/* při otevřeném košíku zase ukážeme souhrn */
.cs-product-detail-page .cs-product-detail--cart-open .cs-shop__cart--detail .cs-cart__summary {
  display: block;  /* nebo flex, pokud to má být jako v hlavním eshopu */
}

/* obsah detailu zůstává ve druhém řádku */
.cs-product-detail-page .cs-product-detail--cart-open .cs-product-detail__media,
.cs-product-detail-page .cs-product-detail--cart-open .cs-product-detail__main {
  grid-row: 2;
}


/* ==========================
   0) ≤ 1440px – menší fotka
========================== */
@media (max-width: 1440px) {
  .cs-product-detail-page .cs-product-detail {
    grid-template-columns: minmax(200px, 300px) 1fr;
  }

  #content .cs-product-detail-page .cs-product-detail__image-wrap img {
    max-width: 280px;
    margin: 0 auto;
  }

  .cs-product-detail-page .cs-product__add {
    padding: .5rem 3rem;
  }
}

/* ==========================
   1) ≤ 1024px – menší fotka
========================== */
@media (max-width: 1024px) {
  .cs-product-detail-page .cs-product-detail {
    grid-template-columns: minmax(200px, 300px) 1fr;
  }

  #content .cs-product-detail-page .cs-product-detail__image-wrap img {
    max-width: 250px;
    margin: 0 auto;
  }

  .cs-product-detail-page .cs-product__add {
    padding: .5rem 3rem;
  }
}


/* ==========================
   2) ≤ 768px – menší tlačítko, menší fotka
========================== */
@media (max-width: 768px) {
  
  #content .cs-product-detail-page .cs-product-detail__image-wrap img {
    max-width: 220px;
    margin: 0 auto;
  }

  /* menší tlačítko */
  .cs-product-detail-page .cs-product__add {
    padding: .45rem 2rem;
    font-size: 0.9rem;
  }

  /* množství + tlačítko zůstává v jednom řádku */
  .cs-product-detail-page .cs-product-detail__buy {
    flex-direction: row;
    gap: 10px;
  }

  /* košík držíme nahoře menší */
  .cs-product-detail-page .cs-shop__cart--detail {
    max-width: 200px;
  }
}


/* ==========================
   3) ≤ 425px – JEDEN SLOUPEC
========================== */
@media (max-width: 425px) {

  /* 1 sloupec – tvrdé přepsání */
  .cs-product-detail-page .cs-product-detail {
    display: grid;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
  }

  /* Košík vždy nahoře */
  .cs-product-detail-page .cs-shop__cart--detail {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }

  /* FOTO → pod košík */
  .cs-product-detail-page .cs-product-detail__media {
    grid-column: 1 !important;
    grid-row: 2 !important;
    text-align: center;
  }

  .cs-product-detail-page .cs-product-detail__image-wrap img {
    max-width: 180px !important;
    width: 100%;
    margin: 0 auto;
  }

  /* TEXT → pod foto */
  .cs-product-detail-page .cs-product-detail__main {
    grid-column: 1 !important;
    grid-row: 3 !important;
  }

  /* Množství + tlačítko */
  .cs-product-detail-page .cs-product-detail__buy {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .cs-product-detail-page .cs-product__add {
    max-width: 260px;
    font-size: 1rem;
  }
}
@media (max-width: 425px) {

  /* ... tvoje ostatní mobilní styly ... */

  /* Košík v detailu – vlastní horizontální scroll, ať neleze ven */
  .cs-product-detail-page .cs-shop__cart--detail {
    max-width: 100%;
    overflow-x: auto;      /* scroll jen uvnitř košíku */
  }

  /* Tabulka klidně širší než telefon, ale zůstane ve scrollboxu */
  .cs-product-detail-page .cs-shop__cart--detail .cs-cart__table {
    min-width: 520px;      /* doladíš podle oka, 480–560 px */
  }
}

/* 1) Celá sekce detailu = bílý panel */
.cs-product-detail-page {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 32px;
}

/* Vnitřní .cs-product-detail už pak být bílý nemusí */
.cs-product-detail-page .cs-product-detail {
  background: transparent;
  padding: 0;
}

/* 2) Rámeček kolem fotky – jak máš teď, jen jednou */
.cs-product-detail-page .cs-product-detail__image-wrap {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(3px);
}

/* Obrázek uvnitř pěkně centrovaný */
.cs-product-detail-page .cs-product-detail__image-wrap img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}
.cs-product-detail-page{
  min-height: calc(100vh - 504px);
}

/* ===== TECHNICKÉ ÚDAJE – DETAIL PRODUKTU ===== */

.cs-product-detail__tech {
  margin-top: 24px;
  padding: 20px 22px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  max-width: 850px;

}

.cs-product-detail__tech h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

/* definice ve dvou sloupcích */
.cs-product-detail__tech dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(130px, 180px) 1fr;
  column-gap: 16px;
  row-gap: 4px;
  font-size: 0.9rem;
}

/* název řádku (Rozměr, Hmotnost, ...) */
.cs-product-detail__tech dt {
  margin: 0;
  font-weight: 600;
  color: #111827;
}

/* hodnota */
.cs-product-detail__tech dd {
  margin: 0;
  color: #4b5563;
}

/* trochu větší rozestup mezi jednotlivými bloky */
.cs-product-detail__tech dt + dd {
  margin-bottom: 6px;
}

/* druhý dd za sebou (detailní rozměry) – zarovnat pod hodnotu a opticky ztlumit */
.cs-product-detail__tech dd + dd {
  grid-column: 2;               /* pokračuje ve druhém sloupci pod Rozměrem */
  font-size: 0.85rem;
  color: #6b7280;
  margin-left: 30px;
  margin-top: -11px;
}

.cs-product-detail__supplier {
  margin-top: 24px;
}
.cs-product-detail__supplier {
  margin-top: 14px;
  font-size: 0.8rem;
  font-style: italic;      /* šikmé písmo */
  color: #6b7280;          /* jemná šedá */
}

.cs-product-detail__supplier a {
  color: #4f46e5;          /* jemně modrá */
  text-decoration: none;
}

.cs-product-detail__supplier a:hover {
  text-decoration: underline;
  color: #4338ca;          /* o chlup tmavší při hoveru */
}

/* =========================
   SHOP LAYOUT: main + sidebar
   ========================= */


.cs-shop__main{ min-width: 0; }

/* Sidebar */
.cs-shop__sidebar{
  position: sticky;
  top: 12px;                 /* klidně dej -24px, pokud chceš "nahoru" */
  align-self: start;
}

.cs-shop__sidebar-box{
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Filtry ve sloupci */
.cs-shop__sidebar .cs-shop__filters{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

/* "Na stránku" bez margin-left:auto */
.cs-shop__sidebar .cs-shop__page-size{
  margin-left: 0;
  justify-content: space-between;
  border: none;
}

/* Když je sidebar, kategorie mají o jednu kartu méně */
.cs-shop__layout .cs-catgrid{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.cs-shop__sidebar-divider {
    width: 100%;
    height: 1px;
    background: #e5e7eb;
    margin: 1.1rem 0 1.1rem;
    border-radius: 1px;
}
/* === Shop sidebar: Výrobce (supplier filter) ======================= */

.cs-shop__supplier {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.65);
}

.cs-shop__supplier > legend {
  padding: 0 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(0,0,0,.55);
}

.cs-shop__supplier-list {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.cs-shop__supplier-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 2px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.75);

  color: inherit;
  text-decoration: none;
  line-height: 1.2;
  transition: transform .08s ease, background .12s ease, border-color .12s ease;
}

.cs-shop__supplier-item:hover {
  background: rgba(255,255,255,.95);
  border-color: rgba(0,0,0,.14);
  transform: translateY(-1px);
}

.cs-shop__supplier-item.is-active {
  border-color: rgba(20, 92, 255, .45);
  background: rgba(20, 92, 255, .08);
  box-shadow: 0 0 0 3px rgba(20, 92, 255, .10);
}

.cs-shop__supplier-count {
  flex: 0 0 auto;
  min-width: 34px;
  text-align: right;

  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.04);

  font-size: 12px;
  font-weight: 700;
  color: rgba(0,0,0,.65);
}

.cs-shop__supplier-item.is-active .cs-shop__supplier-count {
  border-color: rgba(20, 92, 255, .25);
  background: rgba(20, 92, 255, .12);
  color: rgba(20, 92, 255, .95);
}

.cs-shop__supplier-empty {
  padding: 8px 2px;
  color: rgba(0,0,0,.6);
  font-size: 13px;
}


/* =========================
   RESPONSIVE
   - úzké: kategorie -> sidebar -> produkty
   ========================= */

@media (max-width: 1150px){
  .cs-shop__layout{
    grid-template-columns: 1fr;
  }

  .cs-shop__sidebar{
    position: static;
  }

  /* pořadí bloků v 1 sloupci */
  .cs-shop__cats{ order: 1; }
  .cs-shop__sidebar{ order: 2; }
  .cs-shop__prods{ order: 3; }

  /* catgrid už není "užší kvůli sidebaru" */
  .cs-shop__layout .cs-catgrid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px){
  .cs-shop__layout .cs-catgrid{
    grid-template-columns: 1fr;
  }
}
/* TOP layout: vlevo kategorie, vpravo filtry (sidebar) */
.cs-shop__toplayout{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
  margin-top: 12px;
}

.cs-shop__cats{ min-width: 0; }

.cs-shop__sidebar{
  position: sticky;
  top: 12px;
  align-self: start;
}

.cs-shop__sidebar-box{
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

/* filtry ve sloupci */
.cs-shop__sidebar .cs-shop__filters{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cs-shop__sidebar .cs-shop__page-size{
  margin-left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* když je sidebar, kategorie mají o 1 kartu méně */
.cs-shop__toplayout .cs-catgrid{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* responsivita: sidebar jde POD kategorie (a tím pádem mezi kategorie a produkty/promo) */
@media (max-width: 1000px){
  .cs-shop__toplayout{
    grid-template-columns: 1fr;
  }
  .cs-shop__sidebar{
    position: static;
  }
  .cs-shop__toplayout .cs-catgrid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px){
  .cs-shop__toplayout .cs-catgrid{
    grid-template-columns: 1fr;
  }
}

.cs-shop__left{ min-width:0; margin-top: -88px; }
@media (max-width: 770px){
  .cs-shop__left{ min-width:0; margin-top: 0px; }
}

.cs-shop__sidebar{
  position: sticky;
  top: 12px;
  align-self:start;
}
.cs-shop__cart--sidebar{
  width: 100%;
  margin-bottom: 12px;
}
/* košík nahoře – stejná šířka jako sidebar */
.cs-shop__cart{
  width: 231px;        /* MUSÍ sedět se sidebarem */
  max-width: 100%;
}

.cs-shop__search{
  grid-column: 1 / 2;
}

.cs-shop__cart{
  grid-column: 2 / 3;
  width: 100%;
}
.cs-shop__cart .cs-cart__toggle{
  width: 100%;
  justify-content: center;
}
@media (max-width: 1000px){
  .cs-shop__header{
    grid-template-columns: 1fr;
  }

  .cs-shop__cart{
    grid-column: 1 / -1;
  }
}
.cs-shop{ --shop-sidebar-w: 231px; } /* nebo 320px – jak chceš */


.cs-shop__cart .cs-cart__toggle::after{
  content: none !important;
  display: none !important;
}
/* výchozí (největší obrazovky) */

@media (max-width: 1700px) {
  .cs-shop__layout .cs-catgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* <= 1440px → 3 karty */
@media (max-width: 1440px){
  .cs-shop__layout .cs-catgrid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* <= 1150px → 2 karty */
@media (max-width: 1150px){
  .cs-shop__layout .cs-catgrid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* <= 550px → 1 karta */
@media (max-width: 550px){
  .cs-shop__layout .cs-catgrid{
    grid-template-columns: 1fr;
  }
}


/* RESPONSIVITA GRIDU PRODUKTŮ */
@media (min-width: 550px) {
  /* tablet a menší notebooky → 2 sloupce */
  .cs-shop__products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  /* tablet a menší notebooky → 2 sloupce */
  .cs-shop__products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1150px) {
  /* širší displeje → 3 sloupce */
  .cs-shop__products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1440px) {
  /* tablet a menší notebooky → 2 sloupce */
  .cs-shop__products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1700px) {
  /* širší displeje → 3 sloupce */
  .cs-shop__products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* Ultra úzké: všechno do 1 sloupce a ručně pořadí */
@media (max-width: 700px){

  /* header (vyhledávač + košík) dáme pod sebe */
  .cs-shop__header{
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }

  /* Hlavní layout (levý obsah + sidebar) do 1 sloupce */


  /* pořadí bloků */
  .cs-shop__search{ order: 1; }
  .cs-shop__cart{ order: 2; }
  .cs-shop__sidebar{ order: 3; }
  .cs-shop__cats{ order: 4; }
  .cs-shop__prods{ order: 5; }

  /* sidebar přestane být sticky, ať nepřekáží */
  .cs-shop__sidebar{
    position: static;
    top: auto;
  }

  /* ať tlačítka/boxy hezky sedí na šířku */
  .cs-shop__cart,
  .cs-shop__sidebar,
  .cs-shop__cats,
  .cs-shop__prods{
    width: 100%;
    min-width: 0;
  }
}

/* Ensure search bar is on top for low-res screens */
@media (max-width: 768px) {
  .cs-shop__header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "search"
      "cart"
      "price"
      "topbar";
    gap: 12px;
    align-items: start;
  }

  /* keep cart-open variant consistent */
  .cs-shop__header.cs-shop__header--cart-open {
    grid-template-areas:
      "search"
      "cart"
      "price"
      "topbar";
  }

  /* ensure header cart in header variant stretches full width when needed */
  .cs-shop__header.cs-shop__header--cart-open .cs-shop__cart.cs-shop__cart--header{
    justify-self: stretch;
    max-width: none;
    width: 100%;
  }
}
/* DETAIL PRODUKTU – širší vyhledávač, užší košík */
.cs-shop__header--detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px; /* ← KOŠÍK UŽŠÍ */
  gap: 50px;
  align-items: start;
}
/* DETAIL PRODUKTU – úzké displeje */
@media (max-width: 600px){

  .cs-shop__header--detail{
    grid-template-columns: 1fr;
    grid-template-areas:
      "search"
      "cart";
    gap: 12px;
  }

  .cs-shop__header--detail .cs-shop__search{
    grid-area: search;
  }

  .cs-shop__header--detail .cs-shop__cart{
    grid-area: cart;
    width: 100%;
    justify-self: stretch;
  }

  /* tlačítko košíku přes celou šířku */
  .cs-shop__header--detail .cs-cart__toggle{
    width: 100%;
    justify-content: center;
  }
}
.cs-shop__header--detail{
  margin-bottom: 20px;
}
/* DETAIL PRODUKTU – odsazení košíku pod vyhledávačem */
@media (max-width: 600px) {
  .cs-shop__header--detail .cs-shop__cart {
    margin-top: 8px;
  }
}

/* EXTRA MALÉ DISPLEJE – ještě o chlup víc vzduchu */
@media (max-width: 425px) {
  .cs-shop__header--detail .cs-shop__cart {
    margin-top: 90px;
  }
  .cs-shop__cart .cs-cart__toggle{
    padding: 3px 14px;
  }
}

/* Košík – řádek s mini fotkou + názvem */
.cs-cart-item{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 0;
}

.cs-cart-item__thumb{
  flex:0 0 auto;
  width:65px;
  height:65px;
  border-radius:8px;
  overflow:hidden;
  display:block;
  background:#fff;
  border:1px solid #e5e7eb;
}

.cs-cart-item__thumb img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.cs-cart-item__info{
  min-width:0;
}

.cs-cart-item__name{
  display:block;
  font-weight:700;
  color:#0f172a;
  text-decoration:none;
  line-height:1.15;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 900px; /* klidně uprav */
}

.cs-cart-item__name:hover{
  text-decoration:underline;
}

.cs-cart-item__code{
  font-size:12px;
  color:#6b7280;
}
/* CART PAGE – zarovnání buněk */
.cs-cart-page .cs-cart__table th,
.cs-cart-page .cs-cart__table td {
  vertical-align: middle;
}

/* Vycentrovat sloupce: Množství, Cena, Celkem a křížek */
.cs-cart-page .cs-cart__table th:nth-child(2),
.cs-cart-page .cs-cart__table th:nth-child(3),
.cs-cart-page .cs-cart__table th:nth-child(4),
.cs-cart-page .cs-cart__table th:nth-child(5),
.cs-cart-page .cs-cart__table td:nth-child(2),
.cs-cart-page .cs-cart__table td:nth-child(3),
.cs-cart-page .cs-cart__table td:nth-child(4),
.cs-cart-page .cs-cart__table td:nth-child(5) {
  text-align: center;
}

/* Množství – pokud uvnitř používáš stejný qty control jako v shopu */
.cs-cart-page .cs-cart__table td:nth-child(2) .cs-product__qty-control {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

/* Cena/Celkem ať se nelámou */
.cs-cart-page .cs-cart__table td:nth-child(3),
.cs-cart-page .cs-cart__table td:nth-child(4) {
  white-space: nowrap;
}
/* Fieldset boxy v sidebaru – ať legend nevypadá rozbitě */
.cs-shop__sidebar fieldset.cs-shop__filters,
.cs-shop__sidebar fieldset.cs-shop__price-mode,
.cs-shop__sidebar fieldset.cs-shop__supplier {
  padding-top: 14px; /* místo pro legend */
}

/* Legend = malý štítek na rámečku */
.cs-shop__sidebar fieldset.cs-shop__filters > legend,
.cs-shop__sidebar fieldset.cs-shop__price-mode > legend,
.cs-shop__sidebar fieldset.cs-shop__supplier > legend {
  display: inline-block;
  margin-left: 8px;
  padding: 0 8px;

  /* tohle je klíč: zakryje čáru rámečku pod textem */
  background: rgba(255,255,255,.65);
  border-radius: 999px;

  line-height: 1.4;
}
/* Legend musí mít STEJNÉ písmo jako zbytek sidebaru */
.cs-shop__sidebar fieldset > legend {
  font-family: inherit;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;

  color: rgba(0,0,0,.55);
}
.cs-shop__search-suggest-item{
  display:flex;
  align-items:center;
  gap:10px;
}

.cs-shop__search-suggest-img{
  width:38px;
  height:38px;
  border-radius:10px;
  object-fit:cover;
  flex:0 0 38px;
}


/* ---------  shop-send.css  --------- */

/* Checkout – překryvné okno */
.cs-checkout-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.75);
    z-index: 2000;
}

.cs-checkout-overlay.is-open {
    display: flex;
}

.cs-checkout-dialog {
    background: #ffffff;
    color: #0f172a;
    width: 100%;
    max-width: 960px;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cs-checkout-header,
.cs-checkout-footer {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.cs-checkout-footer {
    border-top: 1px solid #e5e7eb;
    border-bottom: none;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.cs-checkout-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.cs-checkout-close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    margin-left: auto;
}

.cs-checkout-body {
    padding: 1rem 1.5rem 1.5rem;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cs-checkout-cart-table-wrapper {
    max-height: 220px;
    overflow: auto;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.cs-checkout-cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.cs-checkout-cart-table th,
.cs-checkout-cart-table td {
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid #e5e7eb;
}

.cs-checkout-cart-table th {
    text-align: left;
    background: #f9fafb;
    font-weight: 600;
}

.cs-checkout-col--qty,
.cs-checkout-col--price,
.cs-checkout-col--total {
    text-align: right;
    white-space: nowrap;
}

.cs-checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cs-checkout-fieldset {
    margin: 0;
    padding: 0.75rem 0.75rem 0.9rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.cs-checkout-fieldset legend {
    padding: 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.cs-checkout-grid {
    display: grid;
    gap: 0.5rem;
}

.cs-checkout-grid label {
    font-size: 0.85rem;
}

.cs-checkout-grid input,
.cs-checkout-fieldset textarea {
    width: 100%;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 0.9rem;
}

.cs-checkout-checkbox,
.cs-checkout-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.cs-checkout-conditional.is-hidden,
.cs-checkout-fieldset.is-hidden {
    display: none;
}

.cs-checkout-ares {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    justify-content: flex-end;
    margin-top: 1.2rem;
}

.cs-checkout-ares button {
    font-size: 0.9rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    border: 1px solid #1d4ed8;
    background: #ffffff;
    color: #1d4ed8;
    cursor: pointer;
}

.cs-checkout-ares-note {
    font-size: 0.7rem;
    color: #6b7280;
}

.cs-checkout-message {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.cs-checkout-message--success {
    color: #15803d;
}

.cs-checkout-message--error {
    color: #b91c1c;
}

/* Aby se stránka pod overlayem nehýbala */
body.cs-checkout-open {
    overflow: hidden;
}

/* širší layout na větší displeje */
@media (min-width: 720px) {
    .cs-checkout-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cs-checkout-grid > label:nth-child(1):only-child {
        grid-column: 1 / -1;
    }
}

.cs-checkout-cart-summary {
    margin-top: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
}

.cs-checkout-cart-summary__line {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.cs-checkout-cart-summary__line strong {
    font-weight: 600;
}

.cs-checkout-cart-summary__mode {
    margin-top: 0.15rem;
    font-size: 0.8rem;
    color: #6b7280;
}
.cs-checkout-success {
    padding: 2rem 1.5rem;
    text-align: center;
}

.cs-checkout-success-inner {
    max-width: 420px;
    margin: 0 auto;
}

.cs-checkout-success-icon {
    display: block;
    margin: 0 auto 1rem;
    max-width: 80px;
    max-height: 80px;
}

.cs-checkout-success h3 {
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.cs-checkout-success p {
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
    color: #4b5563;
}

/* HLAVIČKA DIALOGU – nadpis + křížek */
.cs-checkout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.cs-checkout-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: #0f172a;
}

/* Křížek vpravo nahoře */
.cs-checkout-close {
    margin-left: auto;
    border: none;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    color: #6b7280;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.05s ease;
}

.cs-checkout-close:hover {
    background-color: #eff6ff;
    color: #1d4ed8;
    transform: translateY(-1px);
}

/* FOOTER DIALOGU + ACTION BUTTONS */
.cs-checkout-footer {
    padding: 1.25rem 2rem 1.75rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.cs-checkout-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ZÁKLADNÍ TLAČÍTKO */
.cs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease,
        transform 0.05s ease;
    white-space: nowrap;
}

.cs-btn:active {
    transform: translateY(1px);
}

/* MODRÉ HLAVNÍ TLAČÍTKO – submit + potvrzení po odeslání */
.cs-btn--primary {
    background: #2563eb;          /* stejná modrá jako lišta košíku */
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.cs-btn--primary:hover {
    background: #1d4ed8;
}

/* Sekundární, “Zpět do košíku” */
.cs-btn--ghost {
    background: transparent;
    color: #374151;
    border-color: transparent;
}

.cs-btn--ghost:hover {
    background: #e5e7eb;
}

/* VOLITELNÝ ŠEDÝ STYL, kdybys chtěl někde jinde
.cs-btn--secondary {
    background: #ffffff;
    color: #111827;
    border-color: #d1d5db;
}
.cs-btn--secondary:hover {
    background: #f3f4f6;
}
*/

/* STAV PO ÚSPĚŠNÉM ODESLÁNÍ */
.cs-checkout-success {
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-checkout-success-inner {
    max-width: 420px;
    text-align: center;
}

.cs-checkout-success-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 1.25rem;
}

.cs-checkout-success h3 {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
    font-weight: 600;
    color: #0f172a;
}

.cs-checkout-success p {
    margin: 0 0 1.75rem;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
}
.cs-checkout-legal-note {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #6b7280; /* jemná šedá */
  margin: 0 0 1.2rem;
}

.cs-checkout-legal-note a {
  color: inherit;
  text-decoration: underline;
}


