/* main.css - generated from source CSS; do not edit directly. */

/* --------- 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;
}
.cs-404-actions{
  margin-top:24px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.cs-404-actions .btn{
  padding:10px 16px;
  border-radius:12px;
}

.footer-credit {
	opacity: 0.6;
	transition: opacity .2s ease;
}

.footer-credit:hover {
	opacity: 1;
}
.section-card-search {
    margin-bottom: 20px;
}

/* --------- 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;
}

/* Rich typography is shared in rich-content.css. */

/* 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;
}
.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.cs-opening-hours {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem 0;
}

.sidebar-highlight ol.cs-opening-hours 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.cs-opening-hours,
.sidebar-highlight ol.cs-opening-hours li,
.sidebar-highlight ol.cs-opening-hours li strong {
  font-size: inherit;
}

/* poslední řádek bez spodní čáry */
.sidebar-highlight ol.cs-opening-hours li:last-child {
  border-bottom: none;
}

/* schovat Quillí tečku */
.sidebar-highlight ol.cs-opening-hours li .ql-ui {
  display: none;
}

/* čas vpravo na jednom řádku */
.sidebar-highlight ol.cs-opening-hours li strong {
  font-weight: 600;
  white-space: nowrap;
}

/* Neděle červeně (7. položka) */
.sidebar-highlight ol.cs-opening-hours 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.cs-opening-hours li.today {
  position: relative;
  font-weight: 600;
  color: #3b82f6;
}

/* Current-day accent is an inset shadow in rich-content.css, inside overflow. */

/* =========================
   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%;
  margin: 12px 0;
  padding: 10px 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  font-size: 16px;
  font-weight: 700;
  letter-spacing: .2px;

  color: #0f172a;
  background: linear-gradient(180deg, #ffffff, #f1f5f9);
  border: 1px solid rgba(148,163,184,.65);
  border-radius: 15px;

  box-shadow:
    0 10px 24px rgba(2,6,23,.10),
    inset 0 1px 0 rgba(255,255,255,.8);

  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.cs-sidebar-toggle span{
  font-weight: 700;
  opacity: .9;
}

/* jemná “živost” */
.cs-sidebar-toggle:hover{
  transform: translateY(-1px);
  border-color: rgba(59,130,246,.7);
  box-shadow:
    0 14px 30px rgba(2,6,23,.14),
    inset 0 1px 0 rgba(255,255,255,.85);
}

.cs-sidebar-toggle:active{
  transform: translateY(0);
  box-shadow:
    0 8px 18px rgba(2,6,23,.12),
    inset 0 1px 0 rgba(255,255,255,.7);
}

/* malá ikonka vlevo jako “badge” */
.cs-sidebar-toggle .cs-ico{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cs-sidebar-toggle .cs-arrow{
  display: inline-block;          /* ✅ důležité pro transform */
  opacity: .7;
  transition: transform .2s ease, opacity .2s ease;
  font-size: 18px;
  line-height: 1;
  transform-origin: 50% 50%;
}

.cs-sidebar-toggle[aria-expanded="true"] .cs-arrow{
  transform: rotate(180deg);
  opacity: .9;
}

.cs-sidebar-toggle span{
  margin-left:6px;
  font-weight:600;
}

.cs-sidebar-toggle:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.cs-sidebar-toggle:active{
  transform:scale(.98);
}
/* mobilní režim – sidebar schovat, tlačítko zobrazit */

@media (max-width: 900px) {
  #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: 901px) {
  .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 */


.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; 
    width: 100%;
  }
}


/* 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) */


/* 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: 240px;
    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: 200px;
    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: 180px;
    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;
  }
    .cs-product-detail-page .cs-product-detail__main {
        grid-column: 1 !important;
        grid-row: 3 !important;
    }
}


/* ==========================
   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;
}
@media (max-width: 1150px) {
    .cs-shop__left {
        margin-top: -16px;
    }
}
@media (max-width: 1200px) {
    #content .cs-product-detail-page .cs-product-detail__image-wrap img {
        max-width: 220px;
        margin: 0 auto;
    }
}
@media (max-width: 950px) {
    #content .cs-product-detail-page .cs-product-detail__image-wrap img {
        max-width: 170px;
        margin: 0 auto;
    }
}
@media (max-width: 768px) {
    .cs-product-detail-page .cs-product-detail {
        grid-template-columns: auto;
        row-gap: 10px;
    }
}
/* promo karta jako odkaz */
.cs-shop__promo-item{
  display:flex;
  gap:12px;
  align-items:flex-start;
  text-decoration:none;
  color:inherit;
}

/* Promo slider – mini fotka doprostřed */
.cs-shop__promo-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.cs-shop__promo-thumb img {
  display: block;         /* zruší inline mezery */
  margin: 0 auto;         /* extra pojistka */
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
/* Promo – zesvětlení DEFAULT fotky */
.cs-shop__promo-thumb img[src*="default_product"] {
  opacity: 0.7;
}
/* zesvětlení default placeholder fotky */
.cs-product__thumb img[src*="default_product"] {
  opacity: 0.8;
}
/* zesvětlení default placeholder fotky */
.cs-product-detail__image-wrap img[src*="default_product"] {
  opacity: 0.8;
}

.cs-shop__promo-body{ flex:1; }

.cs-shop__promo-item:hover{
  transform: translateY(-1px);
}
@media (max-width: 1150px) {
  .cs-shop__supplier {
    display: none;
  }
}
.cs-shop__empty {
  margin: 8px 0 24px;
  padding: 20px 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}

.cs-shop__empty h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.cs-shop__empty p {
  margin: 0 0 10px;
  color: #475569;
  line-height: 1.55;
}

.cs-shop__empty p:last-child {
  margin-bottom: 0;
}

.cs-shop__empty--filtered {
  margin: 0 0 18px;
}

/* layout s obrázkem */

.cs-shop__empty-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-width: 0;
}

.cs-shop__empty-illustration {
  
  max-width: 200px;
}

.cs-shop__empty-illustration img {
  width: 100%;
  height: auto;
  display: block;
}

.cs-shop__empty-content {
  flex: 1 1 auto;
  min-width: 0;
}

/* tlačítko */

.cs-shop__empty-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: background-color .2s ease, transform .2s ease;
  cursor: pointer;
}

.cs-shop__empty-link:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* mobil */

@media (max-width: 900px) {

  .cs-shop__empty-inner {
    flex-direction: column;
    text-align: center;
  }

  .cs-shop__empty-illustration {
    max-width: 200px;
  }

}

@media (max-width: 600px) {

  .cs-shop__empty-illustration {
    display: none;
  }

}

/* hidden kontrola */

#cs-products-empty[hidden] {
  display: none !important;
}
.cs-shop__empty{
  grid-column: 1 / -1;
}

/* --------- 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;
}

/* Centrostav: material catalogue. Kept last in the frontend CSS bundle. */
/* Visual overrides only; interaction state rules remain in the original styles. */
:root {
  --primary-color: #15374c;
  --accent-color: #b5232d;
  --bg-app: #f3f1eb;
  --bg-card: #fff;
  --text-main: #202c32;
  --text-muted: #56636b;
  --border-soft: #d6d9d5;
  --shadow-soft: none;
  --shadow-strong: 0 12px 32px #142b3826;
  --radius-s: 2px;
  --radius-m: 2px;
  --radius-l: 3px;
  --radius-xl: 3px;
  --sidebar-w: 248px;
}
body {
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--bg-app);
  background-image: linear-gradient(#15374c04 1px, transparent 1px), linear-gradient(90deg, #15374c04 1px, transparent 1px);
  background-size: 48px 48px;
}
button, input, select, textarea { font-family: inherit; }
a { color: var(--primary-color); text-underline-offset: 4px; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #b5232d;
  outline-offset: 4px;
}
:where(button, a, input, select, textarea) { transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
button:disabled { cursor: not-allowed; }
.topbar {
  background: #fff;
  padding: 24px 0 20px;
  border-top: 5px solid var(--accent-color);
  border-bottom: 1px solid var(--border-soft);
}
.topbar-inner { gap: 28px; }
.topbar-left { gap: 10px; min-width: 0; }
.logo.logo-centrostav img { height: 48px; max-width: 100%; object-fit: contain; }
.logo.logo-bigmat { border-left: 1px solid var(--border-soft); padding-left: 28px; flex-shrink: 0; }
.logo.logo-bigmat img { height: 66px; }
.logo-subtitle { margin-left: 0; font-size: .78rem; font-weight: 600; letter-spacing: .055em; text-transform: uppercase; white-space: normal; color: var(--text-muted); }
.hero-slider {
  height: clamp(260px, 31vw, 460px);
  border-radius: 0;
  border-bottom: 5px solid var(--accent-color);
  margin-block: 24px 32px;
  box-shadow: none;
}
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #102a3b9c, transparent 75%), linear-gradient(0deg, #102a3b70, transparent 60%);
  pointer-events: none;
}
.hero-overlay { position: relative; padding: 32px 40px 48px; max-width: 100%; }
.hero-texts { max-width: 660px; border-left: 3px solid #e53942; padding-left: 24px; }
.hero-headline { font-size: clamp(1.5rem, 2.6vw, 2.75rem); line-height: 1.12; font-weight: 750; letter-spacing: -.035em; text-shadow: none; }
.hero-sub { font-size: clamp(.9rem, 1.1vw, 1.1rem); line-height: 1.55; }
.hero-dots { text-align: right; padding-right: 32px; bottom: 16px; }
.hero-dots .dot { width: 28px; height: 5px; border-radius: 0; margin-inline: 4px; }
.hero-dots .dot.active { background: #e53942; }
.hero-nav button { border-radius: 0; background: #15374cbf; }
.layout { gap: 28px; margin-top: 28px; align-items: flex-start; }
#content, main#content { min-width: 0; background: transparent; }
#sidebar, aside#sidebar { background: #15374c; border-radius: 0; padding: 22px 12px; box-shadow: none; border-top: 5px solid var(--accent-color); }
#sidebar nav { padding: 0; }
#sidebar nav li { margin: 0; }
#sidebar nav a { background: transparent; padding: 11px 14px; border-radius: 0; border-bottom: 1px solid #ffffff20; font-size: .94rem; line-height: 1.4; }
#sidebar nav a:hover { background: #ffffff12; color: #fff; }
#sidebar nav ul li a.active, #sidebar nav ul li a.active:hover { background: #fff; color: #15374c; border-radius: 0; padding-left: 18px; font-weight: 750; }
#sidebar nav ul li a.active::before { background: var(--accent-color); top: 0; bottom: 0; border-radius: 0; }
#sidebar nav ul li a.menu-child { padding-left: 32px; }
#sidebar nav li.nav-item.has-children:hover:not(.is-expanded) > .nav-submenu { background: #15374c; border: 1px solid #ffffff30; border-radius: 0; box-shadow: 6px 6px 0 #15374c20; }
#sidebar .sidebar-highlight { background: #0e2b3e; border: 1px solid #ffffff20; border-radius: 0; margin: 24px 0 0; padding: 16px 14px; font-size: .85rem; }
#sidebar .sidebar-highlight-title { text-transform: uppercase; letter-spacing: .09em; font-size: .75rem; color: #fff; }
#sidebar .sidebar-highlight :where(h3, a) { color: #fff; }
#sidebar .sidebar-highlight-head .s { color: #c4d0d6; }
.sidebar-highlight ol.cs-opening-hours li.today { color: #fff; background: #ffffff0c; }
.sidebar-highlight ol.cs-opening-hours li.today::before { background: #ef5960; }
.sidebar-highlight ol.cs-opening-hours li:nth-child(7) strong, .sidebar-highlight > p:last-child strong { color: #ff9197; }
.nav-btn { background: var(--accent-color); border-radius: 0; padding: 12px; }
.nav-panel { border-radius: 0; background: #15374c; box-shadow: var(--shadow-strong); }
.cs-sidebar-toggle { border-radius: 0; background: #15374c; color: #fff; box-shadow: none; border: 0; padding: 14px; }
.cs-sidebar-toggle:hover { background: #22495f; border-color: transparent; box-shadow: none; transform: none; }
.section-card, .page-intro { border: 1px solid var(--border-soft); border-radius: 0; padding: 28px 32px; box-shadow: none; margin-bottom: 28px; }
.section-heading { border-bottom: 1px solid var(--border-soft); padding-bottom: 18px; margin-bottom: 24px; }
.section-heading-title { font-size: clamp(1.3rem, 1.7vw, 1.9rem); font-weight: 750; letter-spacing: -.025em; color: var(--primary-color); }
.section-heading-desc { color: var(--text-muted); font-size: .92rem; }
.text-block-content { line-height: 1.75; }
.text-block h2, .cs-section h2 { font-size: clamp(1.4rem, 2vw, 2rem); letter-spacing: -.025em; }
.highlight-block, .highlight-box, .cs-contact-box { background: #ebece6; border-radius: 0; box-shadow: none; border-color: var(--border-soft); border-left: 4px solid var(--accent-color); }
.timeline-wrap::before, .timeline-row::before { box-shadow: none; }
.timeline-content { border-radius: 0; box-shadow: none; background: #fff; padding: 20px; }
.timeline-year, .cs-news__date { font-family: Consolas, monospace; font-size: .8rem; color: var(--accent-color); letter-spacing: .06em; }
.cs-news__item + .cs-news__item { margin-top: 24px; padding-top: 24px; }
.section-news .cs-news__more { border-radius: 0; background: #fff; border: 1px solid #15374c; padding: 10px 24px; color: #15374c; }
.section-news .cs-news__more:hover { background: #15374c; color: #fff; box-shadow: none; transform: none; }
.cs-gallery > a { border-radius: 0; }
.product-card, .cs-product, .cs-catcard, .cs-shop__promo-item { border-radius: 0; box-shadow: none; border: 1px solid var(--border-soft); background: #fff; }
.cs-product { padding: 18px; transition: border-color .18s ease, box-shadow .18s ease; }
.cs-product:hover, .cs-catcard:hover, .cs-shop__promo-item:hover { transform: none; border-color: #15374c; box-shadow: inset 0 -3px 0 #15374c; }
.cs-product__thumb { background: #fff; border-bottom: 1px solid #eceee9; padding-bottom: 14px; }
.cs-product__name { font-size: 1rem; line-height: 1.45; font-weight: 700; color: var(--primary-color); }
.cs-product__code, .cs-shop__promo-code, .cs-cart-item__code { font-family: Consolas, monospace; color: var(--text-muted); font-size: .75rem; }
.cs-price, .product-price { font-variant-numeric: tabular-nums; color: var(--primary-color); font-weight: 750; }
.cs-price--without-vat { color: var(--text-muted); font-weight: 400; }
.cs-product__footer { border-top: 1px solid var(--border-soft); padding-top: 14px; }
.cs-product__qty-control, .cs-product-modal__qty, .cs-cart-qty { border: 1px solid #aab4b8; border-radius: 0; background: #fff; box-shadow: none; }
.cs-product__qty-input { border-radius: 0; color: #15374c; }
.cs-qty-btn { min-width: 30px; min-height: 36px; }
.cs-product__add, .ask-btn, .product-btn, .cs-btn--primary, .cs-search__btn, .cs-product-modal__add-btn, .cs-shop__promo-add, .cs-shop__empty-link { border-radius: 2px; background: var(--accent-color); color: #fff; box-shadow: none; font-weight: 700; }
.cs-product__add:hover, .cs-btn--primary:hover, .cs-search__btn:hover, .cs-product-modal__add-btn:hover, .cs-shop__promo-add:hover, .cs-shop__empty-link:hover { background: #921b24; box-shadow: none; filter: none; }
.cs-btn, .cs-pager__btn, .cs-pager__page { border-radius: 2px; box-shadow: none; }
.cs-btn--ghost, .cs-btn--secondary { background: #fff; color: #15374c; border: 1px solid #aab4b8; }
.cs-pager__page--active { background: #15374c; color: #fff; border-color: #15374c; }
.badge { border-radius: 2px; font-size: .68rem; letter-spacing: .035em; padding: 4px 7px; }
.badge--low { background: #f4dfaa; color: #664800; }
.badge--ok, .badge--high { background: #e5eee3; color: #2a592b; }
.badge--warn { background: #f6e2e0; color: #92232a; }
.badge--promo { background: #b5232d; color: #fff; }
.cs-catcard__image { background: #f3f1eb; border-radius: 0; }
.cs-catcard__title { color: #15374c; font-weight: 750; line-height: 1.35; }
.cs-catcard__meta { font-family: Consolas, monospace; color: #56636b; font-size: .75rem; }
.cs-catcard--active { border-color: #b5232d; box-shadow: inset 3px 0 0 #b5232d; }
.cs-shop__breadcrumbs { border-radius: 0; padding: 12px 0; }
.cs-shop__breadcrumbs a.cs-shop__crumb { background: transparent; color: #15374c; border-radius: 0; border: 0; padding: 4px 0; }
.cs-shop__breadcrumbs a.cs-shop__crumb:hover { color: #b5232d; background: transparent; }
.cs-shop__sidebar-box { border-radius: 0; background: #ebece6; border: 1px solid #d6d9d5; box-shadow: none; padding: 16px; }
.cs-shop__sidebar fieldset.cs-shop__filters, .cs-shop__sidebar fieldset.cs-shop__price-mode, .cs-shop__sidebar fieldset.cs-shop__supplier { border-radius: 0; border: 0; border-top: 1px solid #c4cac8; background: transparent; box-shadow: none; padding: 14px 0; }
.cs-shop__sidebar fieldset > legend { color: #15374c; font-size: .72rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.cs-shop__sidebar .cs-shop__filters label { background: transparent; padding: 8px; border-radius: 0; }
.cs-shop__sidebar .cs-shop__filters label:has(input:checked), .cs-shop__supplier-item.is-active { background: #fff; color: #15374c; box-shadow: inset 3px 0 0 #b5232d; border-color: transparent; }
.cs-shop__supplier-item { border-radius: 0; padding-block: 9px; }
.cs-shop__price-mode label { border-radius: 0; background: transparent; padding: 8px; border-color: transparent; }
.cs-shop__price-mode label:has(input:checked) { background: #15374c; color: #fff; border-color: #15374c; box-shadow: none; }
.cs-shop__filters input[type="checkbox"], .cs-shop__filters input[type="radio"], .cs-shop__price-mode input[type="radio"] { accent-color: #b5232d; }
.cs-shop__supplier-count { border-radius: 0; font-family: Consolas, monospace; }
input[type="checkbox"], input[type="radio"] { accent-color: #b5232d; }
.cs-shop__search input[type="search"], #cs-search-input { min-width: 0; border: 1px solid #aab4b8; border-radius: 0; background: #fff; font-size: 1rem; padding: 12px 14px; box-shadow: none; }
.cs-search__row { min-width: 0; }
.cs-search__btn { padding: 12px 20px; }
.cs-shop__search button[type="submit"], .cs-btn-primary { border-radius: 2px; background: #b5232d; color: #fff; border: 1px solid #b5232d; box-shadow: none; padding: 12px 20px; font-weight: 700; }
.cs-shop__search button[type="submit"]:hover, .cs-btn-primary:hover { background: #921b24; border-color: #921b24; }
.cs-shop__search #cs-search-input { min-height: 46px; }
.cs-shop__search-suggest { border-radius: 0; border: 1px solid #aab4b8; box-shadow: var(--shadow-strong); }
.cs-shop__search-suggest-item:hover { background: #f3f1eb; }
.cs-shop__page-size select { border-radius: 0; border-color: #aab4b8; min-height: 40px; }
.cs-shop__cart { border-radius: 0; box-shadow: none; border-color: #15374c; background: #fff; }
.cs-shop__cart .cs-cart__toggle { border-radius: 0; background: #15374c; color: #fff; padding-block: 14px; box-shadow: none; }
.cs-cart__badge { background: #b5232d; color: #fff; border-radius: 2px; }
.cs-cart__summary { background: #ebece6; border-radius: 0; box-shadow: none; }
.cs-cart__table-wrap, .cs-checkout-cart-table-wrapper { border-radius: 0; overflow-x: auto; }
.cs-cart__table, .cs-checkout-cart-table { font-variant-numeric: tabular-nums; }
.cs-cart-page .cs-cart__table { border-radius: 0; box-shadow: none; }
.cs-checkout-cart-summary { border-radius: 0; background: #ebece6; border-color: #d6d9d5; box-shadow: none; }
.cs-cart__table thead th, .cs-checkout-cart-table th { background: #15374c; color: #fff; font-size: .75rem; letter-spacing: .04em; padding: 14px 12px; }
.cs-cart__table tbody td, .cs-checkout-cart-table td { border-color: #d6d9d5; padding-block: 16px; }
.cs-cart__table tbody tr:hover { background: #f3f1eb; }
.cs-cart-item__thumb { border-radius: 0; }
.cs-product-detail-page { border: 1px solid #d6d9d5; border-radius: 0; box-shadow: none; }
.cs-product-detail-page .cs-product-detail__image-wrap { background: #fff; border-radius: 0; border: 0; box-shadow: none; backdrop-filter: none; }
.cs-product-detail-page .cs-product-detail__media { background: #fff; border: 1px solid #d6d9d5; border-radius: 0; box-shadow: none; }
.cs-product-detail-page .cs-product-detail__main { border-radius: 0; box-shadow: none; background: #fff; padding: 28px; border-top: 4px solid #15374c; }
.cs-product-detail-page .cs-product-detail__title { color: #15374c; font-size: clamp(1.4rem, 2.2vw, 2.4rem); line-height: 1.2; letter-spacing: -.03em; }
.cs-product-detail-page .cs-product-detail__prices { background: #f3f1eb; border-radius: 0; padding: 16px; border-left: 3px solid #b5232d; }
.cs-product-detail__tech { border-radius: 0; background: #ebece6; box-shadow: none; }
.cs-product-detail__tech :where(dt, dd) { border-bottom: 1px solid #d6d9d5; padding-block: 9px; }
.cs-product-modal, .cs-checkout-dialog { border-radius: 3px; border-top: 5px solid #b5232d; box-shadow: var(--shadow-strong); }
.cs-checkout-header { background: #15374c; color: #fff; border-radius: 0; }
.cs-checkout-header h2 { color: #fff; }
.cs-checkout-close { color: #fff; min-width: 40px; min-height: 40px; }
.cs-checkout-fieldset { border-radius: 0; border-color: #d6d9d5; background: #fafaf7; padding: 20px; }
.cs-checkout-fieldset legend { color: #15374c; font-weight: 750; }
#cs-checkout-form :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea, select) { border: 1px solid #aab4b8; border-radius: 2px; padding: 11px 12px; background: #fff; color: #202c32; box-shadow: none; font-size: 1rem; }
.cs-checkout-form :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), textarea, select), .contact-form-wrap :where(input, textarea), .cs-contact-form :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), textarea, select) { border: 1px solid #aab4b8; border-radius: 2px; padding: 11px 12px; background: #fff; color: #202c32; box-shadow: none; font-size: 1rem; }
.contact-form-wrap { border-radius: 0; box-shadow: none; border-color: #d6d9d5; padding: 24px; }
.cs-contact__form :where(input:not([type="checkbox"]):not([type="hidden"]), textarea) { border: 1px solid #aab4b8; border-radius: 2px; padding: 11px 12px; background: #fff; color: #202c32; box-shadow: none; font-size: 1rem; }
.cs-contact__form label { color: #15374c; font-weight: 600; }
.cs-contact__form textarea { resize: vertical; }
.contact-form-wrap button { background: #b5232d; border-radius: 2px; box-shadow: none; padding: 12px 20px; }
#cs-map-wrapper, .cs-map-canvas { border-radius: 0; border: 1px solid #d6d9d5; }
table.cs-contacts { border-radius: 0; box-shadow: none; }
table.cs-contacts thead th { background: #15374c; color: #fff; font-size: .78rem; letter-spacing: .035em; }
footer#site-footer { padding: 28px 0; border-top: 3px solid #15374c; color: #56636b; font-size: .78rem; line-height: 1.7; margin-top: 48px; }
footer#site-footer a { color: #15374c; }
@media (max-width: 1100px) {
  :root { --sidebar-w: 220px; }
  .layout { gap: 20px; }
  .section-card, .page-intro { padding: 24px; }
}
@media (max-width: 900px) {
  .layout { gap: 16px; margin-top: 16px; align-items: stretch; }
  #sidebar, aside#sidebar { flex-basis: auto; width: 100%; }
  .hero-slider { margin-bottom: 16px; }
}
@media (max-width: 640px) {
  .topbar { padding: 16px 0; }
  .topbar-inner { flex-wrap: nowrap; gap: 16px; }
  .topbar-left { flex: 1; }
  .logo.logo-centrostav img { width: 100% !important; height: auto !important; max-width: 290px; }
  .logo.logo-bigmat { padding-left: 12px; }
  .logo.logo-bigmat img { height: auto; width: 70px; }
  .logo-subtitle { font-size: .62rem; letter-spacing: .015em; line-height: 1.5; }
  .hero-slider { height: 280px; margin-top: 16px; }
  .hero-overlay { padding: 20px 20px 40px; }
  .hero-texts { padding-left: 14px; }
  .hero-dots { padding-right: 16px; }
  .section-card, .page-intro { padding: 20px 16px; margin-bottom: 20px; }
  .section-heading { padding-bottom: 14px; margin-bottom: 18px; }
  .cs-shop__layout { grid-template-columns: minmax(0, 1fr); }
  .cs-shop__sidebar { position: static; }
  .cs-shop__cart { min-width: 0; max-width: 100%; }
  .cs-product { padding: 16px; }
  .cs-product-detail-page .cs-product-detail__main { padding: 20px; }
  .cs-product-detail-page { padding: 20px 16px; }
  .cs-product-detail__tech { padding: 16px; }
  .cs-product-detail__tech dl { grid-template-columns: minmax(90px, 110px) minmax(0, 1fr); gap: 8px; }
  .cs-product-detail__tech dd { overflow-wrap: anywhere; }
  table.cs-contacts { display: block; max-width: 100%; overflow-x: auto; }
  .cs-checkout-fieldset { padding: 16px; }
  .cs-checkout-grid { grid-template-columns: minmax(0, 1fr); }
  .cs-checkout-actions { flex-wrap: wrap; }
  .cs-search__row { width: 100%; }
  .cs-search__btn { padding-inline: 14px; }
  .cs-shop__crumb-row { flex-wrap: wrap; }
  footer#site-footer { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}


/* --------- visual-layout.css --------- */

/* Material / structure / logistics — Centrostav visual system. */
:root {
  --primary-color: #202e34;
  --accent-color: #bd282c;
  --bg-app: #fdfdfd;
  --text-main: #202e34;
  --text-muted: #62675f;
  --border-soft: #d9dedb;
  --container-max: 1600px;
  --gutter: 32px;
  --ink: #202e34;
  --red: #bd282c;
  --paper: #fdfdfd;
}
body { background: var(--paper); font-family: "Segoe UI", Arial, sans-serif; }
.topbar { border-top: 0; padding: 24px 0; background: #ffffff; border-bottom: 1px solid var(--ink); }
.topbar-inner { width: min(calc(100% - 64px), 1600px); }
.logo.logo-centrostav img { height: 40px; }
.logo-subtitle { font-size: .68rem; letter-spacing: .08em; }
.logo.logo-bigmat img { height: 54px; }
.logo.logo-bigmat { border-left-color: #d9dedb; }
.site-navigation { background: var(--ink); position: relative; z-index: 30; }
.site-navigation #sidebar { width: min(calc(100% - 64px), 1600px); margin: auto; padding: 0; border: 0; background: transparent; }
.site-navigation #sidebar nav > ul { display: flex; flex-wrap: wrap; align-items: stretch; }
.site-navigation #sidebar nav > ul > li { flex: 1 1 auto; }
.site-navigation #sidebar nav > ul > li.menu-sep { display: none; }
.site-navigation #sidebar nav a { padding: 17px 12px; font-size: .8rem; border: 0; font-weight: 600; text-align: center; white-space: nowrap; }
.site-navigation #sidebar nav ul li a.active { background: var(--red); color: #fff; padding-left: 12px; }
.site-navigation #sidebar nav ul li a.active::before { display: none; }
.site-navigation #sidebar nav a:hover { background: #ffffff15; }
.site-navigation #sidebar nav li.nav-item.has-children:hover:not(.is-expanded) > .nav-submenu { top: 100%; left: 0; min-width: 240px; background: var(--ink); padding: 8px; }
.site-navigation #sidebar nav .nav-submenu a { text-align: left; }
.site-navigation #sidebar nav li.nav-item.is-expanded > .nav-submenu { margin: 0; padding: 8px; background: #182328; }
.masthead { width: min(calc(100% - 64px),1600px); margin: 32px auto 0; display: grid; grid-template-columns: 45% minmax(0,1fr); min-height: 510px; border: 1px solid var(--ink); }
.masthead-copy { position: relative; background: var(--red); color: #fff; padding: clamp(28px,4vw,64px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.technical-label { font-family: Consolas, monospace; font-size: .72rem; font-weight: 400; letter-spacing: .12em; line-height: 1.5; }
.masthead-copy .technical-label { margin: 0 0 28px; position: relative; }
.masthead-copy h1 { color: #fff; font-size: clamp(36px,4.4vw,76px); font-weight: 800; line-height: .99; letter-spacing: -.065em; margin: 0; }
.masthead-copy h1 em { font-style: normal; color: #f4d9c5; }
.masthead-description { max-width: 280px; font-size: 1rem; line-height: 1.5; margin: 24px 0 28px; }
.catalogue-link { display: flex; align-items: center; justify-content: space-between; gap: 28px; color: #fff; text-decoration: none; font-weight: 650; padding: 14px 0; border-top: 1px solid #ffffff70; border-bottom: 1px solid #ffffff70; max-width: 320px; }
.catalogue-link span { font-size: 1.6rem; transition: transform .2s ease; }
.catalogue-link:hover span { transform: translate(3px,-3px); }
.catalogue-link:hover { color: #f4d9c5; }
.masthead-coordinate { font-family: Consolas,monospace; font-size: .6rem; letter-spacing: .13em; margin-top: 32px; }
.masthead-media { min-width: 0; position: relative; background: var(--ink); }
.masthead-media .hero-slider { width: 100%; height: 100%; min-height: 510px; margin: 0; border: 0; }
.masthead-media .hero-slide::before { background: linear-gradient(0deg,#14232b85, transparent 50%); }
.masthead-media .hero-overlay { padding: 32px 32px 60px; }
.masthead-media .hero-headline { font-size: clamp(22px,2vw,32px); }
.masthead-media .hero-dots { bottom: 26px; padding-right: 26px; }
.masthead-media .hero-dots .dot { height: 6px; background: #ffffff80; }
.masthead-media .hero-dots .dot.active { background: #fff; }
.photo-caption { position: absolute; z-index: 8; bottom: 22px; left: 24px; font: .6rem Consolas,monospace; color: #fff; letter-spacing: .1em; pointer-events: none; }
.page-inner .masthead { min-height: 180px; grid-template-columns: 38% minmax(0,1fr); }
.page-inner .masthead-copy { padding: 24px 32px; }
.page-inner .masthead-copy h1 { font-size: clamp(24px,2.2vw,36px); line-height: 1; }
.page-inner .masthead-copy .technical-label { margin-bottom: 12px; }
.page-inner .masthead-description, .page-inner .masthead-coordinate { display: none; }
.page-inner .catalogue-link { font-size: .78rem; padding: 8px 0; margin-top: 16px; }
.page-inner .masthead-media .hero-slider { min-height: 180px; height: 100%; }
.page-inner .masthead-media .hero-headline { font-size: 1.1rem; }
.page-inner .masthead-media .hero-sub { font-size: .8rem; }
.layout { width: min(calc(100% - 64px),1600px); display: block; margin-top: 40px; }
#content, main#content { width: 100%; padding-bottom: 0; }
.section-card { padding: 32px 0; background: transparent; border: 0; border-top: 1px solid var(--ink); margin-bottom: 40px; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: baseline; border: 0; padding: 0; margin-bottom: 32px; }
.section-heading-title { font-size: clamp(26px,2.8vw,42px); font-weight: 750; letter-spacing: -.045em; }
.section-heading-desc { font-size: .85rem; text-align: right; color: var(--text-muted); }
.page-intro { background: #fdfdfd; border: 0; border-left: 5px solid var(--red); padding: 28px 32px; }
.section-news .cs-news { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); gap: 32px; }
.cs-news__item { min-width: 0; }
.cs-news__item + .cs-news__item { margin: 0; padding: 0 0 0 32px; border-top: 0; border-left: 1px solid #aaa99f; }
.cs-news__date { color: var(--red); margin-bottom: 14px; }
/* Rich content formatting belongs to rich-content.css and the saved HTML. */
.cs-news__more-wrap { grid-column: 1 / -1; }
.cs-shop__promo { margin-top: 32px; border-top: 1px solid var(--ink); padding-top: 24px; }
.cs-shop__promo-title { font-size: 1.6rem; letter-spacing: -.04em; margin-top: 0; }
.cs-shop__promo-item { background: #fdfdfd; border: 0; border-right: 1px solid #d9dedb; padding: 24px; }
.cs-shop__promo-name { font-weight: 650; color: var(--ink); }
.cs-shop__promo-price { color: var(--red); }
.cs-shop { --shop-sidebar-w: 250px; margin-top: 0; }
.cs-shop__header { grid-template-columns: minmax(0,1fr) 250px; gap: 32px; border-bottom: 1px solid var(--ink); padding-bottom: 24px; }
.cs-shop__search { margin: 0; align-items: stretch; }
.cs-shop__search #cs-search-input { background: #ffffff; border: 0; border-bottom: 2px solid var(--ink); min-height: 56px; font-size: 1.05rem; padding: 14px 18px; }
.cs-shop__search button[type="submit"] { background: var(--ink); border-color: var(--ink); border-radius: 0; padding-inline: 28px; }
.cs-shop__cart { min-width: 0; width: 100%; background: #ffffff; border: 0; padding: 0; }
.cs-shop__cart .cs-cart__toggle { background: var(--red); border: 0; padding: 16px; }
.cs-cart__summary { background: #f3f5f4; padding: 14px; border: 0; }
.cs-shop__layout { grid-template-columns: minmax(0,1fr) 250px; gap: 32px; margin-top: 24px; }
.cs-shop__left { margin-top: 0; }
.cs-shop__sidebar { top: 24px; }
.cs-shop__sidebar-box { background: #f3f5f4; border: 0; padding: 24px 18px; }
.cs-shop__layout .cs-catgrid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; counter-reset: category; border-top: 1px solid var(--border-soft); border-left: 1px solid var(--border-soft); }
.cs-catcard { counter-increment: category; min-width: 0; position: relative; background: transparent; border: 0; border-bottom: 1px solid var(--border-soft); border-right: 1px solid var(--border-soft); padding: 26px 18px 18px; gap: 12px; min-height: 118px; }
.cs-catcard::before { content: counter(category,decimal-leading-zero); position: absolute; top: 6px; right: 10px; font: .6rem Consolas,monospace; color: #777c73; }
.cs-catcard__image { width: 58px; min-width: 58px; height: 62px; background: transparent; }
.cs-catcard__title { font-size: .86rem; letter-spacing: -.015em; color: var(--ink); }
.cs-catcard:hover { background: #ffffff; box-shadow: inset 0 -3px 0 var(--red); }
.cs-shop__products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; border-top: 2px solid var(--ink); }
.cs-product { display: grid; grid-template-columns: 110px minmax(0,1fr); grid-template-rows: auto 1fr auto; min-height: 0; gap: 14px 20px; background: #fdfdfd; padding: 24px; border: 0; border-bottom: 1px solid #b9bcb3; border-right: 1px solid #b9bcb3; box-shadow: none; border-radius: 0; }
.cs-product__meta-row { grid-column: 2; grid-row: 1; }
.cs-product { height: auto; }
.cs-product__thumb { grid-column: 1; grid-row: 1 / 3; height: 150px; width: 100%; padding: 12px; margin: 0; border: 0; background: #fff; border-radius: 0; }
.cs-product__thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.cs-product__header { grid-column: 2; grid-row: 2; }
.cs-product__name { margin: 0; font-size: .98rem; line-height: 1.4; color: var(--ink); letter-spacing: -.02em; }
.cs-product__spacer { display: none; }
.cs-product__footer { grid-column: 1 / -1; grid-row: 3; padding-top: 14px; border-top: 1px solid #d3d4cb; margin: 0; }
.cs-product__footer-left { flex: 1; }
.cs-product__price .cs-price { color: var(--red); font-size: 1.1rem; }
.cs-product__price .cs-price--without-vat { color: var(--text-muted); }
.cs-product:hover { background: #fff; border-color: #b9bcb3; box-shadow: inset 0 3px 0 var(--red); }
.cs-product__add { min-height: 42px; border-radius: 0; }
.badge { border: 0; font-size: .65rem; }
.cs-product-detail-page { padding: 32px; background: #fdfdfd; border: 0; border-top: 3px solid var(--ink); }
.cs-product-detail-page .cs-product-detail__main { background: transparent; border: 0; padding: 0 0 0 28px; }
.cs-product-detail-page .cs-product-detail__title { font-size: clamp(28px,3vw,46px); color: var(--ink); }
.cs-product-detail-page .cs-product-detail__prices { background: var(--ink); color: #fff; padding: 24px; border: 0; }
.cs-product-detail-page .cs-product-detail__prices .cs-price { color: #fff; font-size: 1.65rem; }
.cs-product-detail-page .cs-product-detail__image-wrap { padding: 40px; }
.cs-product-detail__tech { background: #f3f5f4; max-width: none; }
.cs-product-detail-page .cs-product-detail__desc { background: transparent; border-radius: 0; border-bottom: 1px solid var(--border-soft); padding: 24px 0; color: var(--ink); font-style: normal; box-shadow: none; }
.cs-product-detail-page .cs-product-detail__supplier a { color: var(--ink); }
.cs-cart-page { border-top: 2px solid var(--ink); padding-top: 24px; }
.cs-cart-page__header h1 { font-size: 2.5rem; letter-spacing: -.04em; }
.service-desk { width: min(calc(100% - 64px),1600px); margin: 64px auto 0; display: grid; grid-template-columns: .85fr 1.5fr; gap: 48px; background: var(--ink); color: #fff; padding: 48px; position: relative; }
.service-desk::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: repeating-linear-gradient(-45deg,#bd282c 0 12px,#e8d7be 12px 24px); }
.service-desk-heading h2 { color: #fff; font-size: clamp(32px,3.4vw,52px); line-height: 1.05; font-weight: 700; letter-spacing: -.05em; margin: 24px 0; }
.service-desk a, .service-desk .ck-content a { color: #fff; }
.service-desk .sidebar-pinboxes { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.service-desk .sidebar-highlight { margin: 0; padding: 0; border: 0; border-left: 1px solid #ffffff35; padding-left: 24px; background: transparent; font-size: .85rem; }
.service-desk .sidebar-highlight-title { font: .7rem Consolas,monospace; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 18px; color: #e9b9a8; }
.service-desk .sidebar-highlight h3 { color: #fff; margin-top: 0; }
.service-desk .sidebar-highlight ol.cs-opening-hours li { font-size: .82rem; padding-block: 5px; }
.service-desk .sidebar-highlight ol.cs-opening-hours li.today { background: #ffffff14; color: #fff; }
.service-desk .sidebar-highlight > p:last-child { color: #c1c9c7; }
footer#site-footer { width: min(calc(100% - 64px),1600px); border: 0; padding: 32px 0; margin-top: 0; font-size: .72rem; }
@media (min-width: 1700px) { .cs-shop__layout .cs-catgrid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 1150px) {
  .masthead { min-height: 430px; }
  .masthead-media .hero-slider { min-height: 430px; }
  .site-navigation #sidebar nav a { font-size: .72rem; padding-inline: 9px; }
  .cs-shop__layout { grid-template-columns: minmax(0,1fr) 220px; gap: 24px; }
  .cs-shop__layout .cs-catgrid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cs-shop__products { grid-template-columns: minmax(0,1fr); }
  .cs-product { grid-template-columns: 140px minmax(0,1fr); }
  .service-desk { gap: 28px; padding: 32px; }
}
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .topbar-inner,.site-navigation #sidebar,.masthead,.layout,.service-desk,footer#site-footer { width: calc(100% - 40px); }
  .site-navigation { padding: 0 20px; }
  .site-navigation #sidebar { width: 100%; }
  .site-navigation .cs-sidebar-toggle { margin: 0; text-align: left; padding: 15px 0; background: transparent; }
  .site-navigation #sidebar nav > ul { display: block; }
  .site-navigation #sidebar nav a { text-align: left; padding: 13px 12px; font-size: .9rem; border-top: 1px solid #ffffff20; }
  .site-navigation #sidebar nav li.nav-item.has-children:hover:not(.is-expanded) > .nav-submenu { position: static; margin: 0; }
  .masthead-copy { padding: 28px; }
  .masthead-copy h1 { font-size: 44px; }
  .section-heading { grid-template-columns: 1fr; gap: 8px; }
  .section-heading-desc { text-align: left; }
  .service-desk { grid-template-columns: 1fr; }
  .service-desk-heading h2 br { display: none; }
  .service-desk-heading h2 { margin: 14px 0; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .topbar { padding: 18px 0; }
  .topbar-inner,.masthead,.layout,.service-desk,footer#site-footer { width: calc(100% - 32px); }
  .topbar-inner { gap: 16px; }
  .logo.logo-bigmat img { width: 65px; height: auto; }
  .logo-subtitle { font-size: .58rem; }
  .site-navigation { padding-inline: 16px; }
  .masthead { grid-template-columns: 1fr; margin-top: 16px; min-height: 0; }
  .masthead-copy { padding: 32px 24px; }
  .masthead-copy h1 { font-size: clamp(42px,11.8vw,66px); }
  .masthead-copy .technical-label { margin-bottom: 22px; }
  .masthead-description { font-size: .9rem; margin-block: 20px; }
  .masthead-coordinate { margin-top: 20px; }
  .masthead-media .hero-slider { min-height: 260px; height: 260px; }
  .page-inner .masthead { grid-template-columns: 1fr; }
  .page-inner .masthead-copy { padding: 20px 24px; }
  .page-inner .masthead-copy h1 { font-size: 30px; }
  .page-inner .masthead-copy h1 br { display: none; }
  .page-inner .masthead-media .hero-slider { height: 150px; min-height: 150px; }
  .page-inner .masthead-media .hero-overlay { padding: 16px 16px 52px; }
  .photo-caption { font-size: .5rem; bottom: 22px; left: 16px; }
  .masthead-media .hero-dots { padding-right: 16px; }
  .masthead-media .hero-dots .dot { width: 18px; }
  .layout { margin-top: 28px; }
  .section-card { padding: 24px 0; margin-bottom: 24px; }
  .section-card:not(:has(.section-heading-title,.section-heading-desc)) { padding-top: 20px; }
  .section-news .cs-news { grid-template-columns: 1fr; }
  .cs-news__item + .cs-news__item { border-left: 0; border-top: 1px solid var(--border-soft); padding: 24px 0 0; margin-top: 24px; }
  .cs-shop__header { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .cs-shop__search #cs-search-input { font-size: .85rem; padding-inline: 12px; }
  .cs-shop__search button[type="submit"] { padding: 12px 16px; }
  .cs-shop__layout { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .cs-shop__layout .cs-catgrid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cs-catcard { flex-direction: column; align-items: flex-start; padding: 24px 14px 16px; }
  .cs-catcard__image { height: 52px; }
  .cs-catcard__content { padding: 0; }
  .cs-product { grid-template-columns: 90px minmax(0,1fr); padding: 20px 16px; gap: 12px 16px; }
  .cs-product__thumb { height: 125px; }
  .cs-product__name { font-size: .9rem; }
  .cs-product__footer { gap: 12px; }
  .cs-product__qty-control { max-width: 170px; }
  .cs-product__add { padding: 12px; font-size: .8rem; }
  .cs-product-detail-page { padding: 20px 16px; }
  .cs-product-detail-page .cs-product-detail__main { padding: 20px 0 0; }
  .cs-product-detail-page .cs-product-detail__image-wrap { padding: 24px; }
  .service-desk { padding: 28px 24px; margin-top: 40px; }
  .service-desk .sidebar-pinboxes { grid-template-columns: 1fr; gap: 28px; }
  .service-desk .sidebar-highlight { padding-left: 16px; }
  .service-desk-heading h2 { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) { .catalogue-link span { transition: none; } }



/* --------- visual-interactions.css --------- */

/* Finishing details: drawing marks, tactile controls and truthful states. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
  box-shadow: 0 0 0 2px #ffffff;
}
.site-navigation :where(a,button):focus-visible, .masthead-copy a:focus-visible, .service-desk a:focus-visible { outline-color: #fff; box-shadow: none; }
.section-heading, .service-desk-heading { position: relative; }
.drawing-ready::after { content: ""; position: absolute; top: -16px; left: 0; width: 56px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.drawing-complete::after { transform: scaleX(1); }
.service-desk-heading.drawing-ready::after { background: #e9b9a8; }
.catalogue-link, .cs-btn, .cs-product__add, .cs-product-modal__add-btn, .cs-search__btn, .cs-shop__empty-link { min-height: 44px; }
.cs-btn, .cs-product__add, .cs-product-modal__add-btn, .cs-shop__empty-link { border-radius: 0; font-size: .86rem; font-weight: 650; letter-spacing: .015em; transition: background-color .18s ease, color .18s ease, box-shadow .18s ease; }
.cs-btn--primary, .cs-btn-primary, .cs-product__add, .cs-product-modal__add-btn { background: var(--red); color: #fff; }
.cs-btn--primary:hover, .cs-btn-primary:hover, .cs-product__add:hover { background: #972124; }
button:not(:disabled):active, .catalogue-link:active { box-shadow: inset 0 2px 0 #0003; }
button:disabled { opacity: .48; filter: saturate(.35); box-shadow: none; }
.cs-pager__btn, .cs-pager__page { min-width: 40px; min-height: 40px; background: #ffffff; border-color: #b9bcb3; color: var(--ink); }
.cs-pager__page--active { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: inset 0 -3px 0 var(--red); }
.cs-shop__pager { flex-wrap: wrap; gap: 8px; padding-top: 16px; }
.cs-pager__pages { flex-wrap: wrap; gap: 6px; }
.cs-catcard::before { transition: color .18s ease; }
.cs-catcard--active { background: #ffffff; box-shadow: inset 0 -3px 0 var(--red); }
.cs-catcard--active::before { color: var(--red); font-weight: 700; }
.cs-product { position: relative; }
.cs-product:focus-within { background: #fff; box-shadow: inset 0 3px 0 var(--red); }
.cs-product__full-link:focus-visible { outline-offset: -5px; box-shadow: none; }
.cs-product__thumb, .cs-product-detail__image-wrap { position: relative; }
.image-pending::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 3px; background: repeating-linear-gradient(90deg,#d9dedb 0 8px,transparent 8px 12px); animation: material-loading 1s linear infinite; pointer-events: none; }
@keyframes material-loading { to { background-position: 24px 0; } }
.cs-product__qty-control:focus-within, .cs-product-modal__qty:focus-within, .cs-cart-qty:focus-within { border-color: var(--ink); box-shadow: inset 0 -2px 0 var(--red); }
.cs-qty-btn, .cs-cart-qty__btn, .cs-product-modal__qty-btn { min-width: 36px; min-height: 40px; color: var(--ink); transition: background-color .15s ease, color .15s ease; }
.cs-qty-btn:hover, .cs-cart-qty__btn:hover, .cs-product-modal__qty-btn:hover { color: #fff; background: var(--ink); }
.cs-product__qty-input { min-height: 40px; }
.cs-cart__summary { transition: background-color .25s ease, box-shadow .25s ease; font-variant-numeric: tabular-nums; }
.cs-cart__summary.summary-updated { background: #f0d8c9; box-shadow: inset 4px 0 0 var(--red); }
.cs-cart__remove, .cs-checkout-close, .cs-product-modal__close { min-width: 40px; min-height: 40px; border-radius: 0; }
.cs-cart__remove:hover { background: #f4ded8; color: #972124; }
.cs-checkout-overlay.is-open .cs-checkout-dialog { animation: panel-open .2s ease-out; }
@keyframes panel-open { from { transform: translateY(8px); } to { transform: translateY(0); } }
.cs-shop__search:focus-within #cs-search-input { border-bottom-color: var(--red); background: #fff; }
.cs-shop__search-suggest { border: 1px solid var(--ink); border-top: 3px solid var(--red); background: #ffffff; }
.cs-shop__search-suggest-item { padding: 12px 14px; min-height: 56px; border-bottom: 1px solid #f3f5f4; border-left: 3px solid transparent; transition: border-color .15s ease, background-color .15s ease; }
.cs-shop__search-suggest-item:hover, .cs-shop__search-suggest-item:focus-visible { border-left-color: var(--red); background: #fff; }
.cs-shop__search-suggest-text { line-height: 1.4; }
.cs-shop__search-suggest-code { font-family: Consolas,monospace; color: var(--text-muted); }
.cs-shop__supplier-item:hover { background: #ffffff; box-shadow: inset 3px 0 0 #999d93; }
.cs-shop__filters label, .cs-shop__price-mode label, .cs-shop__supplier-item { min-height: 40px; }
.cs-shop__filters label:focus-within, .cs-shop__price-mode label:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.cs-shop__promo-viewport { scrollbar-width: none; -ms-overflow-style: none; cursor: grab; }
.cs-shop__promo-viewport.is-dragging { cursor: grabbing; }
.cs-shop__promo-viewport::-webkit-scrollbar { display: none; width: 0; height: 0; }
.cs-shop__promo-item:focus-visible { outline-offset: -4px; }
.cs-shop__empty { border: 1px dashed #9b9f94; border-radius: 0; background: #fdfdfd; box-shadow: none; padding: 32px; }
.cs-shop__empty h3 { font-size: 1.4rem; letter-spacing: -.035em; color: var(--ink); }
.cs-shop__empty p { max-width: 56ch; color: var(--text-muted); }
.cs-checkout-fieldset:focus-within { border-color: #9b9f94; }
#cs-checkout-form :is(input, textarea, select):focus-visible, .cs-contact__form :is(input,textarea):focus-visible { outline-offset: 2px; }
#cs-checkout-form :is(input,textarea):user-invalid, .cs-contact__form :is(input,textarea):user-invalid, input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); background: #fff7f4; }
.cs-checkout-message--error, .cs-contact__status--error { background: #f7e3dc; color: #81272a; border: 0; border-left: 4px solid var(--red); padding: 14px 16px; border-radius: 0; line-height: 1.5; }
.cs-checkout-message--success, .cs-contact__status--success { background: #e3ecdf; color: #305232; border: 0; border-left: 4px solid #47724b; padding: 14px 16px; border-radius: 0; }
.cs-contact__status:empty, .cs-checkout-message:empty { padding: 0; border: 0; }
@media (hover: hover) and (pointer: fine) {
  .cs-catcard__image img { transition: transform .22s ease; }
  .cs-catcard:hover .cs-catcard__image img { transform: translateY(-3px); }
  .cs-catcard:hover::before { color: var(--red); }
  .cs-product__thumb::before { content: ""; position: absolute; z-index: 1; top: 5px; left: 5px; width: 12px; height: 12px; border-top: 1px solid var(--red); border-left: 1px solid var(--red); opacity: 0; transition: opacity .2s ease; pointer-events: none; }
  .cs-product:hover .cs-product__thumb::before { opacity: 1; }
  .cs-shop__promo-item:hover { background: #fff; box-shadow: inset 0 -3px 0 var(--red); }
  .site-navigation #sidebar nav a { box-shadow: inset 0 0 0 #fff; transition: background-color .18s ease, box-shadow .18s ease; }
  .site-navigation #sidebar nav a:hover { box-shadow: inset 0 -3px 0 #d7c8b2; }
}
@media (max-width: 640px) {
  .page-inner .masthead-copy { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: end; padding: 20px; }
  .page-inner .masthead-copy .technical-label { grid-column: 1 / -1; margin: 0; font-size: .6rem; }
  .page-inner .masthead-copy h1 { font-size: 25px; }
  .page-inner .catalogue-link { margin: 0; border-top: 0; padding: 8px 0; gap: 12px; font-size: .65rem; max-width: 95px; }
  .page-inner .catalogue-link span { font-size: 1.2rem; }
  .cs-shop__sidebar-box { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; padding: 18px; }
  .cs-shop__sidebar-box > fieldset { grid-area: auto; min-width: 0; }
  .cs-shop__sidebar-box > .cs-shop__filters--pagesize { grid-column: 1 / -1; }
  .cs-shop__sidebar .cs-shop__price-mode label { display: flex; width: 100%; white-space: nowrap; padding-inline: 6px; }
  .cs-shop__sidebar .cs-shop__page-size { grid-column: 1 / -1; justify-content: space-between; margin: 0; }
  .cs-shop__sidebar .cs-shop__supplier, .cs-shop__sidebar-divider { grid-column: 1 / -1; }
  .cs-shop__sidebar .cs-shop__price-mode, .cs-shop__sidebar .cs-shop__filters { min-width: 0; margin: 0; }
  .cs-shop__sidebar .cs-shop__filters label { padding-inline: 6px; white-space: normal; }
  .cs-shop__supplier-list { max-height: 220px; overflow-y: auto; overscroll-behavior: contain; }
  .cs-product__footer { align-items: flex-end; }
  .cs-product__footer-left { min-width: 0; }
  .cs-product__qty-control { max-width: 174px; }
  .cs-product__footer-right { flex-shrink: 0; }
  .cs-shop__search-suggest-item { flex-wrap: wrap; gap: 8px; }
  .cs-shop__search-suggest-code { padding-left: 0; font-size: .65rem; }
  .cs-shop__empty { padding: 24px 18px; }
  .cs-checkout-overlay { padding: 12px; }
  .cs-checkout-body { padding: 16px; }
  .cs-checkout-footer { padding: 16px 0; }
  .cs-checkout-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .cs-checkout-actions .cs-btn { width: 100%; }
  .cs-contact__footer .cs-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .drawing-ready::after { transform: scaleX(1); transition: none; }
  .image-pending::after, .cs-checkout-overlay.is-open .cs-checkout-dialog { animation: none; }
  .cs-catcard:hover .cs-catcard__image img { transform: none; }
}



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

/* Shop only: a material register on desktop, a fast order pad on mobile. */
.cs-shop { --shop-sidebar-w: 224px; }
.cs-shop .cs-shop__header { grid-template-columns: minmax(0,1fr) 224px; gap: 24px; }
.cs-shop .cs-shop__layout { grid-template-columns: minmax(0,1fr) 224px; gap: 24px; }
.cs-shop .cs-shop__sidebar-box { background: #f3f5f4; padding: 20px 16px; }
.cs-shop .cs-shop__breadcrumbs { margin-bottom: 16px; padding-top: 0; }
.cs-shop .cs-shop__layout .cs-catgrid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.cs-shop .cs-catcard { min-height: 92px; padding: 20px 12px 12px; gap: 12px; }
.cs-shop .cs-catcard__image { width: 42px; min-width: 42px; height: 44px; }
.cs-shop .cs-catcard__title { font-size: .8rem; }
.cs-shop .cs-catcard__meta { font-size: .65rem; }
.cs-shop .cs-shop__categories-divider { margin-block: 24px; }
.catalogue-table-key { display: none; }
.cs-shop .cs-shop__products { grid-template-columns: minmax(0,1fr); border-top: 2px solid var(--ink); }
.cs-shop .cs-product { grid-template-columns: 78px minmax(0,1fr); grid-template-rows: auto auto auto; padding: 20px; gap: 10px 18px; border-right: 0; background: #fdfdfd; }
.cs-shop .cs-product:nth-child(even) { background: #f8f9f8; }
.cs-shop .cs-product__thumb { grid-column: 1; grid-row: 1 / 3; height: 100px; padding: 8px; }
.cs-shop .cs-product__header { grid-column: 2; grid-row: 1; margin: 0; }
.cs-shop .cs-product__meta-row { grid-column: 2; grid-row: 2; }
.catalogue-product-id { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 7px; font: .65rem/1.5 Consolas,monospace; color: #62675f; }
.catalogue-manufacturer { font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .07em; }
.catalogue-code strong { font-weight: 400; color: var(--ink); }
.catalogue-code, .catalogue-manufacturer { overflow-wrap: anywhere; }
.cs-shop .cs-product__name { min-height: 0; font-size: .96rem; line-height: 1.4; display: block; overflow: visible; -webkit-line-clamp: unset; }
.cs-shop .cs-product__badges { display: flex; flex-wrap: wrap; gap: 5px; }
.cs-shop .badge--stock { font-family: Consolas,monospace; font-size: .65rem; letter-spacing: -.015em; padding: 5px 7px; }
.cs-shop .badge--stock::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 5px; background: currentColor; vertical-align: 1px; }
.cs-shop .cs-product__footer { grid-column: 1 / -1; grid-row: 3; gap: 16px; padding-top: 14px; display: flex; align-items: flex-end; }
.cs-shop .cs-product__footer-left { display: flex; flex-direction: row; flex: 1; align-items: flex-end; justify-content: space-between; gap: 16px; }
.cs-shop .cs-product__price { min-width: 0; }
.catalogue-unit-label { display: block; color: var(--text-muted); font: .65rem/1.4 Consolas,monospace; margin-bottom: 6px; }
.cs-shop .cs-product__price .cs-price { font-size: 1.12rem; font-weight: 750; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.cs-shop .cs-product__qty { margin: 0; }
.cs-shop .cs-product__qty-label { margin: 0 0 6px; font: .65rem/1.4 Consolas,monospace; color: var(--text-muted); }
.cs-shop .cs-product__qty-control { width: 136px; max-width: 100%; min-width: 0; }
.cs-shop .cs-product__qty-input { width: 42px; flex: 1 1 36px; font-size: .9rem; }
.cs-shop .cs-qty-btn { min-width: 30px; width: 30px; padding: 0; }
.cs-shop .cs-product__qty-unit { font-size: .65rem; padding-right: 5px; }
.cs-shop .cs-product__footer-right { flex-shrink: 0; }
.cs-shop .cs-product__add { width: auto; min-height: 42px; padding: 11px 14px; font-size: .78rem; white-space: nowrap; }
.cs-shop .cs-product:hover, .cs-shop .cs-product:focus-within { background: #fff; box-shadow: inset 3px 0 0 var(--red); }
.cs-shop .cs-product__full-link:focus-visible { outline-offset: -3px; }
.cs-shop .cs-shop__pager { border-top: 1px solid #b9bcb3; margin-top: 0; padding-top: 20px; }
@media (min-width: 1100px) {
  .catalogue-table-key { display: grid; grid-template-columns: minmax(0,1fr) 100px 420px; gap: 18px; background: var(--ink); color: #fff; padding: 12px 16px; font: .62rem/1.5 Consolas,monospace; text-transform: uppercase; letter-spacing: .075em; }
  .cs-shop .cs-shop__products { border-top: 0; }
  .cs-shop .cs-product { grid-template-columns: 58px minmax(0,1fr) 124px 370px; grid-template-rows: auto; gap: 18px; padding: 18px 16px; align-items: center; }
  .cs-shop .cs-product__thumb { grid-column: 1; grid-row: 1; height: 70px; padding: 5px; }
  .cs-shop .cs-product__header { grid-column: 2; grid-row: 1; }
  .cs-shop .cs-product__meta-row { grid-column: 3; grid-row: 1; align-self: center; }
  .cs-shop .cs-product__footer { grid-column: 4; grid-row: 1; margin: 0; padding: 0 0 0 14px; border-top: 0; border-left: 1px solid #d3d4cb; gap: 10px; }
  .cs-shop .cs-product__footer-left { gap: 12px; }
  .cs-shop .cs-product__price .cs-price { font-size: .98rem; }
  .cs-shop .cs-product__qty-control { width: 106px; }
  .cs-shop .cs-qty-btn { min-width: 24px; width: 24px; }
  .cs-shop .cs-product__qty-input { width: 30px; flex-basis: 24px; min-width: 20px; }
  .cs-shop .cs-product__add { padding-inline: 10px; font-size: .72rem; }
  .cs-shop .cs-product__name { font-size: .85rem; }
  .cs-shop .cs-product__badges { flex-direction: column; align-items: flex-start; }
  .catalogue-product-id { flex-direction: column; gap: 0; }
}
@media (min-width: 1500px) {
  .cs-shop .cs-product { grid-template-columns: 72px minmax(0,1fr) 110px 455px; gap: 24px; padding-block: 20px; }
  .catalogue-table-key { grid-template-columns: minmax(0,1fr) 145px 385px; gap: 24px; }
  .cs-shop .cs-product__name { font-size: .98rem; }
  .cs-shop .cs-product__price .cs-price { font-size: 1.2rem; }
  .cs-shop .cs-product__qty-control { width: 125px; }
  .cs-shop .cs-product__add { padding-inline: 16px; font-size: .78rem; }
  .cs-shop .cs-shop__layout .cs-catgrid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 800px) {
  .cs-shop .cs-shop__layout { grid-template-columns: minmax(0,1fr); }
  .cs-shop .cs-shop__sidebar { position: static; }
}
@media (max-width: 640px) {
  .cs-shop .cs-shop__header { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .cs-shop .cs-shop__layout .cs-catgrid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cs-shop .cs-catcard { flex-direction: row; align-items: center; padding: 24px 10px 12px; min-height: 104px; gap: 8px; }
  .cs-shop .cs-catcard__image { width: 32px; min-width: 32px; height: 40px; }
  .cs-shop .cs-catcard__title { font-size: .72rem; }
  .cs-shop .cs-product { grid-template-columns: 64px minmax(0,1fr); padding: 18px 12px; gap: 8px 14px; }
  .cs-shop .cs-product__thumb { height: 85px; }
  .cs-shop .cs-product__name { font-size: .9rem; }
  .catalogue-product-id { font-size: .6rem; gap: 2px 8px; }
  .cs-shop .cs-product__footer { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; padding-top: 12px; }
  .cs-shop .cs-product__footer-left { display: contents; }
  .cs-shop .cs-product__price { grid-column: 1; grid-row: 1; }
  .cs-shop .cs-product__price .cs-price { font-size: 1.15rem; }
  .cs-shop .cs-product__qty { grid-column: 1; grid-row: 2; }
  .cs-shop .cs-product__qty-control { width: 150px; }
  .cs-shop .cs-product__footer-right { grid-column: 2; grid-row: 2; align-self: end; }
  .cs-shop .cs-product__add { min-height: 44px; padding: 12px 20px; font-size: .85rem; }
  .cs-shop .catalogue-unit-label { margin-bottom: 3px; }
  .cs-shop .cs-product__qty-label { margin-bottom: 4px; }
}
@media (max-width: 360px) {
  .cs-shop .cs-product__qty-control { width: 125px; }
  .cs-shop .cs-product__add { padding-inline: 14px; font-size: .78rem; }
}


/* Keep prices and purchase controls inside each catalogue row. */
.cs-shop .cs-product__footer, .cs-shop .cs-product__footer-left { min-width:0; }
.cs-shop .cs-product__price .cs-price { white-space:normal; overflow-wrap:anywhere; }
.cs-shop .cs-product__qty { flex-shrink:0; }
@media (min-width:1100px) {
  .cs-shop .cs-product__footer { display:grid; grid-template-columns:minmax(0,1fr) auto; }
  .cs-shop .cs-product__footer-left { display:grid; grid-template-columns:minmax(0,max-content) auto; align-items:end; justify-content:end; }
  .cs-shop .cs-product__badges { min-width:0; max-width:100%; }
  .cs-shop .badge--stock { white-space:normal; overflow-wrap:anywhere; }
}
@media (min-width:641px) and (max-width:1099px) {
  .cs-shop .cs-product__footer { flex-wrap:wrap; }
  .cs-shop .cs-product__footer-left { flex-wrap:wrap; }
}
@media (max-width:640px) {
  .cs-shop .cs-product__price { grid-column:1 / -1; }
}


/* --------- visual-navigation.css --------- */

/* A stable navigation rail; expanded branches are independent overlays. */
@media (min-width: 901px) {
  .site-navigation { height: 56px; }
  .site-navigation #sidebar nav > ul { flex-wrap: nowrap; height: 56px; }
  .site-navigation #sidebar nav > ul > li { position: relative; height: 56px; min-width: 0; }
  .site-navigation #sidebar nav > ul > li > a { display: flex; align-items: center; justify-content: center; height: 56px; padding-block: 0; }
  .site-navigation #sidebar nav > ul > li.nav-item > .nav-submenu,
  .site-navigation #sidebar nav > ul > li.nav-item.is-expanded > .nav-submenu,
  .site-navigation #sidebar nav > ul > li.nav-item.has-children:hover:not(.is-expanded) > .nav-submenu {
    position: absolute;
    top: 56px;
    left: 0;
    width: max-content;
    min-width: max(100%, 224px);
    max-width: min(320px, 90vw);
    margin: 0;
    padding: 8px;
    background: var(--ink);
    border: 1px solid #ffffff26;
    border-top: 3px solid var(--red);
    border-radius: 0;
    box-shadow: 0 8px 18px #16252b24;
    z-index: 70;
  }
  .site-navigation #sidebar nav > ul > li.nav-item:focus-within > .nav-submenu { display: block; }
  .site-navigation #sidebar nav > ul > li.nav-item:hover,
  .site-navigation #sidebar nav > ul > li.nav-item:focus-within { z-index: 2; }
  .site-navigation #sidebar nav > ul > li:nth-last-child(-n+2) > .nav-submenu { left: auto !important; right: 0; }
  .site-navigation #sidebar nav .nav-submenu a { padding: 12px 14px 12px 28px; white-space: normal; line-height: 1.4; }
  .site-navigation #sidebar nav li.nav-item.has-children:hover:not(.is-expanded)::after { content: none; }
}



/* --------- visual-surfaces.css --------- */

/* Shared near-white substrate: images stay in their original colours. */
:root { --bg-card: #fff; --surface-base: #fdfdfd; --surface-soft: #f8f9f8; --surface-inset: #f3f5f4; }
.page-intro, .highlight-block, .highlight-box, .cs-contact-box,
.timeline-content, .contact-form-wrap, .cs-shop__empty,
.cs-checkout-fieldset, .cs-checkout-cart-summary, .cs-product-detail__tech { background-color: var(--surface-soft); }
.cs-cart__summary, .cs-shop__sidebar-box { background-color: var(--surface-inset); }
.cs-product-detail-page, .cs-product-modal, .cs-checkout-dialog { background-color: var(--surface-base); }
.cs-catcard__image, .cs-shop__promo-thumb { background-color: transparent; }
.cs-checkout-form :is(input,textarea,select), .cs-contact__form :is(input,textarea,select) { background-color: #fff; }
.cs-cart__summary.summary-updated { background-color: #f0d8c9; }



/* --------- visual-news.css --------- */

/* Homepage news: one chronological editorial column, independent of story length. */
.page-home .section-news .cs-news { display: block; max-width: 1120px; margin-inline: auto; }
.page-home .section-news .cs-news__item { display: grid; grid-template-columns: 130px minmax(0,1fr); gap: 32px; position: relative; padding: 28px 0; margin: 0; border: 0; border-top: 1px solid #d9dedb; }
.page-home .section-news .cs-news__item:first-child { padding-top: 0; border-top: 0; }
.page-home .section-news .cs-news__item[hidden] { display: none !important; }
.page-home .section-news .cs-news__date { margin: 0; padding: 5px 0 0 16px; border-left: 2px solid var(--red); align-self: start; font-size: .75rem; line-height: 1.6; }
.page-home .section-news .cs-news__content { min-width: 0; }
.page-home .section-news .cs-news__content > :is(h1,h2,h3):first-child { margin-top: 0; }
.page-home .section-news .cs-news__content > p > img { max-width: 100%; height: auto; }
.page-home .section-news .cs-news__more-wrap { justify-content: flex-start; margin: 8px 0 0 162px; padding-top: 20px; border-top: 1px solid #d9dedb; }
.page-home .section-news .cs-news__more { min-height: 44px; padding: 12px 24px; }
@media (max-width: 640px) {
  .page-home .section-news .cs-news__item { grid-template-columns: minmax(0,1fr); gap: 16px; padding: 24px 0; }
  .page-home .section-news .cs-news__date { padding-top: 0; font-size: .7rem; }
  .page-home .section-news .cs-news__content [style*="display:flex"] { flex-wrap: wrap;  }
  .page-home .section-news .cs-news__content [style*="flex:1;min-width:0"] { flex-basis: 100% !important; }
.page-home .section-news .cs-news__more-wrap { margin-left: 0; }
}



/* --------- visual-shop-sidebar.css --------- */

/* Shop categories and controls: readable catalogue entries and a control rail. */
.supplier-disclosure__heading { display: grid; grid-template-columns: minmax(0,1fr) 18px; gap: 6px 10px; padding: 12px 10px; border: 1px solid #bfc8c5; border-left: 3px solid var(--ink); background: #f8f9f8; color: var(--ink); cursor: pointer; list-style: none; min-height: 64px; }
.supplier-disclosure__heading::-webkit-details-marker { display: none; }
.supplier-disclosure__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 700 .75rem/1.4 "Segoe UI",Arial,sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.supplier-disclosure__hint { grid-column: 1; font-size: .72rem; line-height: 1.4; color: #526259; overflow-wrap: anywhere; }
.supplier-disclosure__badge { padding: 2px 5px; font: 600 .57rem/1.4 "Segoe UI",Arial,sans-serif; background: #f5e3df; color: #81272a; letter-spacing: .02em; }
.supplier-disclosure__chevron { grid-column: 2; grid-row: 1 / 3; align-self: center; text-align: center; font-size: 1.35rem; transition: transform .18s ease; }
.supplier-disclosure[open] .supplier-disclosure__chevron { transform: rotate(180deg); }
.supplier-disclosure[open] .supplier-disclosure__heading { background: #fff; border-left-color: var(--red); }
.supplier-disclosure__heading:hover { background: #edf1ef; border-color: #82928a; }
.supplier-disclosure__heading:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.cs-shop .cs-shop__sidebar .supplier-disclosure > .cs-shop__supplier-list { margin-top: 10px; }
.supplier-disclosure[open] > .cs-shop__supplier-list { animation: supplier-unfold .18s ease-out; }
@keyframes supplier-unfold { from { opacity: .65; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 640px) { .supplier-disclosure__heading { padding: 10px; min-height: 60px; } }
@media (prefers-reduced-motion: reduce) { .supplier-disclosure__chevron { transition: none; } .supplier-disclosure[open] > .cs-shop__supplier-list { animation: none; } }
.cs-shop .cs-shop__layout .cs-catgrid { gap: 10px; border: 0; }
.cs-shop .cs-catcard { background: #fff; border: 1px solid #bfc8c5; padding: 24px 16px 18px; min-height: 124px; gap: 16px; align-items: center; transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease; }
.cs-shop .cs-catcard::before { top: 6px; right: 10px; color: #65716c; font-size: .65rem; font-weight: 700; letter-spacing: .04em; }
.cs-shop .cs-catcard__image { width: 58px; min-width: 58px; flex: 0 0 58px; height: 64px; display: flex; align-items: center; justify-content: center; background: #fff; }
.cs-shop .cs-catcard__image img { width: 100%; height: 100%; object-fit: contain; }
.cs-shop .cs-catcard__content { padding: 0; min-width: 0; }
.cs-shop .cs-catcard__title { font-size: .98rem; font-weight: 750; line-height: 1.3; color: #202e34; letter-spacing: -.02em; }
.cs-shop .cs-catcard__meta { display: inline-block; align-self: flex-start; margin-top: 9px; padding: 3px 6px; background: #edf1ef; border-left: 2px solid #88978f; color: #3c4d44; font: .73rem/1.4 Consolas,monospace; }
.cs-shop .cs-catcard:hover, .cs-shop .cs-catcard:focus-visible { border-color: #202e34; background: #f8f9f8; box-shadow: inset 0 -3px 0 var(--red); }
.cs-shop .cs-catcard--active { border-color: var(--red); background: #fff8f6; box-shadow: inset 0 -3px 0 var(--red); }
.cs-shop .cs-catcard--active .cs-catcard__meta { border-left-color: var(--red); background: #f5e3df; color: #81272a; }
.cs-shop .cs-shop__sidebar-box { background: #fff; border: 1px solid #bfc8c5; border-top: 3px solid var(--ink); padding: 20px 14px 6px; }
.cs-shop .cs-shop__sidebar fieldset.cs-shop__filters,
.cs-shop .cs-shop__sidebar fieldset.cs-shop__price-mode,
.cs-shop .cs-shop__sidebar fieldset.cs-shop__supplier { margin: 0 0 20px; padding: 0 0 20px; border: 0; border-bottom: 1px solid #d9dedb; background: transparent; gap: 8px; }
.cs-shop .cs-shop__sidebar fieldset:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 12px; }
.cs-shop .cs-shop__sidebar fieldset > legend { display: table; float: none; width: 100%; margin: 0 0 12px; padding: 0; color: #202e34; font: 700 .75rem/1.4 "Segoe UI",Arial,sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.cs-shop .cs-shop__sidebar .cs-shop__filters label,
.cs-shop .cs-shop__sidebar .cs-shop__price-mode label { border: 1px solid #d9dedb; background: #f8f9f8; color: #34433c; border-radius: 0; padding: 10px 8px; min-height: 44px; gap: 9px; font-size: .82rem; line-height: 1.4; }
.cs-shop .cs-shop__sidebar .cs-shop__filters label:hover,
.cs-shop .cs-shop__sidebar .cs-shop__price-mode label:hover { border-color: #82928a; background: #fff; box-shadow: none; }
.cs-shop .cs-shop__sidebar .cs-shop__filters label:has(input:checked) { border-color: #dcb1aa; background: #fff4f0; color: #81272a; font-weight: 650; box-shadow: inset 3px 0 0 var(--red); }
.cs-shop .cs-shop__sidebar .cs-shop__price-mode label:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; font-weight: 650; box-shadow: inset 3px 0 0 var(--red); }
.cs-shop .cs-shop__sidebar :is(input[type="checkbox"],input[type="radio"]) { width: 16px; height: 16px; flex: 0 0 16px; margin: 0; accent-color: var(--red); }
.cs-shop .cs-shop__sidebar label.cs-shop__page-size { width: 100%; padding: 0; border: 0; background: transparent; display: block; position: relative; }
.cs-shop .cs-shop__sidebar .cs-shop__page-size select { width: 100%; padding: 10px 30px 10px 12px; font-size: .88rem; font-weight: 600; color: var(--ink); border: 1px solid #96a59d; background: #fff; min-height: 44px; box-shadow: none; }
.cs-shop .cs-shop__sidebar .cs-shop__page-size::after { position: absolute; right: 12px; top: 12px; color: #526259; font-size: .85rem; }
.cs-shop .cs-shop__sidebar .cs-shop__supplier-list { display: flex; flex-direction: column; gap: 0; }
.cs-shop .cs-shop__sidebar .cs-shop__supplier-item { padding: 11px 8px; min-height: 44px; background: transparent; border: 0; border-bottom: 1px solid #e3e7e4; color: #34433c; font-size: .82rem; line-height: 1.4; gap: 10px; }
.cs-shop .cs-shop__sidebar .cs-shop__supplier-item:hover { background: #edf1ef; box-shadow: inset 3px 0 0 #88978f; }
.cs-shop .cs-shop__sidebar .cs-shop__supplier-item.is-active { background: var(--ink); color: #fff; font-weight: 650; box-shadow: inset 3px 0 0 var(--red); border-color: var(--ink); }
.cs-shop .cs-shop__sidebar .cs-shop__supplier-count { min-width: 28px; padding: 3px 5px; border: 0; background: #edf1ef; color: #34433c; font-size: .7rem; }
.cs-shop .cs-shop__sidebar .cs-shop__supplier-item.is-active .cs-shop__supplier-count { background: #ffffff20; color: #fff; }
.cs-shop .cs-shop__header .cs-shop__cart { border: 1px solid #bfc8c5; border-top: 3px solid var(--red); background: #fff; }
.cs-shop .cs-shop__cart .cs-cart__toggle { background: var(--red); color: #fff; min-height: 56px; padding: 14px 12px; font-size: .9rem; font-weight: 700; }
.cs-shop .cs-shop__cart .cs-cart__toggle:hover { background: #972124; }
.cs-shop .cs-shop__cart .cs-cart__summary { background: #fff; padding: 16px 12px; font-size: .78rem; line-height: 1.5; }
.cs-shop .cs-shop__cart .cs-cart__summary > div { padding: 5px 0; border-color: #e3e7e4; gap: 8px; }
.cs-shop .cs-shop__cart .cs-cart__summary > div:nth-child(2) { color: var(--ink); font-weight: 700; border-top: 1px solid #bfc8c5; margin-top: 4px; padding-top: 10px; }
.cs-shop .cs-shop__cart .cs-cart__summary > div:nth-child(2) span { color: var(--ink); }
.cs-shop .cs-shop__cart .cs-cart__summary.summary-updated { background: #fff4f0; }
@media (min-width: 801px) {
  .cs-shop .cs-shop__sidebar { position: sticky; top: 20px; max-height: calc(100dvh - 40px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #96a59d #f3f5f4; }
}
@media (max-width: 1150px) {
  .cs-shop .cs-shop__layout .cs-catgrid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cs-shop .cs-catcard { gap: 12px; padding-inline: 12px; }
  .cs-shop .cs-catcard__image { width: 48px; min-width: 48px; flex-basis: 48px; height: 54px; }
}
@media (max-width: 640px) {
  .cs-shop .cs-shop__layout .cs-catgrid { gap: 8px; }
  .cs-shop .cs-catcard { flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 12px 14px; min-height: 168px; }
  .cs-shop .cs-catcard__image { width: 46px; min-width: 46px; flex-basis: 48px; height: 48px; }
  .cs-shop .cs-catcard__title { font-size: .88rem; }
  .cs-shop .cs-catcard__meta { font-size: .68rem; margin-top: 8px; }
  .cs-shop .cs-shop__sidebar-box { padding: 18px 12px 6px; gap: 12px; }
  .cs-shop .cs-shop__sidebar fieldset.cs-shop__filters,
  .cs-shop .cs-shop__sidebar fieldset.cs-shop__price-mode { margin-bottom: 4px; padding-bottom: 16px; }
  .cs-shop .cs-shop__sidebar .cs-shop__price-mode label,
  .cs-shop .cs-shop__sidebar .cs-shop__filters label { font-size: .78rem; padding-inline: 6px; gap: 6px; }
  .cs-shop .cs-shop__sidebar .cs-shop__supplier-list { max-height: 264px; }
}


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

/* Shared by the generated public bundle and CKEditor 4's editing iframe. */
:is(.ck-content, .cke_editable) { overflow-wrap: anywhere; }
:is(.ck-content, .cke_editable), :is(.ck-content, .cke_editable) * { box-sizing: border-box; }
:is(.ck-content, .cke_editable)::after { content: ""; display: block; clear: both; }
:is(.ck-content, .cke_editable) :is(h1,h2,h3,h4,h5,h6) { font-weight: 700; line-height: 1.25; letter-spacing: normal; margin: 1em 0 .5em; }
:is(.ck-content, .cke_editable) h1 { font-size: 2em; }
:is(.ck-content, .cke_editable) h2 { font-size: 1.5em; }
:is(.ck-content, .cke_editable) h3 { font-size: 1.17em; }
:is(.ck-content, .cke_editable) h4 { font-size: 1em; }
:is(.ck-content, .cke_editable) h5 { font-size: .83em; }
:is(.ck-content, .cke_editable) h6 { font-size: .67em; }
:is(.ck-content, .cke_editable) :is(ul,ol) { padding-inline-start: 2em; margin-block: .75em; }
:is(.ck-content, .cke_editable) li > :is(ul,ol) { margin-block: .25em; }
:is(.ck-content, .cke_editable) a { color: var(--accent-color, #bd282c); text-decoration: underline; }
:is(.ck-content, .cke_editable) img { max-width: 100%; height: auto; }
:is(.ck-content, .cke_editable) :is(img,figure).img-left { float: left; margin: .25rem .75rem .25rem 0; }
:is(.ck-content, .cke_editable) :is(img,figure).img-right { float: right; margin: .25rem 0 .25rem .75rem; }
:is(.ck-content, .cke_editable) :is(img,figure).img-center { display: block; float: none; margin-inline: auto; }
:is(.ck-content, .cke_editable) img.img-rounded { border-radius: 8px; }
:is(.ck-content, .cke_editable) img.img-shadow { box-shadow: 0 8px 24px #0004; }
:is(.ck-content, .cke_editable) img.zoom { cursor: zoom-in; }
:is(.ck-content, .cke_editable) table { border-collapse: collapse; max-width: 100%; margin-block: 1em; }
:is(.ck-content, .cke_editable) :is(td,th) { overflow-wrap: anywhere; }
:is(.ck-content, .cke_editable) iframe { max-width: 100%; border: 0; }
/* Overflow stays within the rich-content box; tables retain their semantics. */
.ck-content { min-width: 0; max-width: 100%; overflow-x: auto; }
.cke_editable { min-height: 180px; margin: 20px; font: 16px/1.5 "Segoe UI",Arial,sans-serif; color: #202e34; background: #fff; }
.cke_editable { --primary-color: #202e34; --accent-color: #bd282c; }
.cke_editable :is(h1,h2) { color: var(--primary-color); }
:is(.ck-content, .cke_editable) p { margin: 0 0 .6rem; }
/* Styles offered by CKEditor's default Styles menu (contents.css is replaced). */
:is(.ck-content, .cke_editable) .marker { background-color: yellow; }
:is(.ck-content, .cke_editable) img.left { float: left; margin-right: 15px; border: 1px solid #ccc; padding: 5px; }
:is(.ck-content, .cke_editable) img.right { float: right; margin-left: 15px; border: 1px solid #ccc; padding: 5px; }
:is(.ck-content, .cke_editable) blockquote { border-left: 4px solid var(--accent-color, #bd282c); margin: 1.25rem 0; padding: .5rem 1rem; color: #374151; font-style: italic; background: #bd282c0d; }
:is(.ck-content, .cke_editable) pre { white-space: pre-wrap; overflow-x: auto; background: #0f172a; color: #e2e8f0; padding: .75rem 1rem; border-radius: 6px; font: .85rem ui-monospace,SFMono-Regular,Consolas,monospace; }
:is(.ck-content, .cke_editable) table { width: 100%; font-size: .9rem; }
:is(.ck-content, .cke_editable) :is(td,th) { border: 1px solid #e5e7eb; padding: .4rem .6rem; }
:is(.ck-content, .cke_editable) :is(td,th):not([align]) { text-align: left; }
:is(.ck-content, .cke_editable) th { background: #f3f4f6; }
/* Keep the current-day marker inside the box: rich-content overflow clips
   decorative markers positioned outside the row. Works in body and pins. */
:is(.ck-content, .cke_editable) ol.cs-opening-hours > li.today {
  box-shadow: inset 3px 0 #bd282c;
  background: #bd282c14;
  font-weight: 700;
  padding-inline: 8px;
}
/* Inline formatting from the editor deliberately wins over these defaults. */

/* Stack floated images above text on mobile; preserve desktop dimensions.
   CKEditor 4 writes floats inline; older content also uses classes or align. */
@media (max-width: 768px) {
  /* Fleet lists reserve 320px for desktop photos in their saved inline HTML.
     Once photos stack, that reserve must disappear; nested list indents stay. */
  :is(.ck-content, .cke_editable) .cs-fleet > :is(ul,ol) {
    margin-inline: 0 !important;
  }
  :is(.ck-content, .cke_editable) :is(img,figure,a:has(> img),p:has(> img)):is(
    .img-left, .img-right, .left, .right,
    .image-style-align-left, .image-style-align-right,
    [align="left" i], [align="right" i],
    [style*="float:left" i], [style*="float: left" i],
    [style*="float:right" i], [style*="float: right" i]
  ) {
    float: none !important;
    display: block;
    clear: both;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: .5rem auto 1rem !important;
  }
}


