/* ==========================================================================
   OlChemIm – nový vzhled (návrh podle mockupů zákazníka)
   Načítá se až po style.css a catalog.css a přepisuje jejich barvy a písmo.
   Písma jsou na vlastním serveru (assets/fonts), nic se nenačítá od Googlu.
   ========================================================================== */

@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('/assets/fonts/PlusJakartaSans-400.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('/assets/fonts/PlusJakartaSans-500.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url('/assets/fonts/PlusJakartaSans-600.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url('/assets/fonts/PlusJakartaSans-700.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-style: normal; font-display: swap; src: url('/assets/fonts/PlusJakartaSans-800.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('/assets/fonts/IBMPlexMono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('/assets/fonts/IBMPlexMono-500.woff2') format('woff2'); }

:root {
  --g900: #02422a;
  --g800: #044e30;
  --g700: #0a6b3d;
  --g600: #2c8a52;
  --g200: #cfe5c8;
  --g100: #e2f0d9;
  --g50: #f1f6ee;
  --yellow: #fdda48;
  --ink: #16301f;
  --ink-soft: #5b6b62;
  --line: #dfe6e0;
  --line-soft: #e9efe9;
  --paper: #ffffff;
  --paper-raised: #ffffff;
  --teal: #0a6b3d;
  --accent: #fdda48;
  --accent-ink: #02422a;
  --radius: 14px;
  --shadow: 0 6px 22px rgba(2, 66, 42, .08);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
  font-size: 15px;
  line-height: 1.55;
}
.mono, .pkg-code, .pkg-price, code { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 28px; }
.ic { width: 1em; height: 1em; flex-shrink: 0; vertical-align: -0.125em; }

/* ---------- tlačítka (přepisují starý styl) ---------- */
.btn, .btn-primary, .btn-soft, .btn-ghost, .btn-yellow {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer; text-decoration: none;
  border-radius: 12px; padding: 13px 22px; border: 1.5px solid var(--g800); background: #fff; color: var(--g800);
  transition: background .15s, color .15s, border-color .15s, transform .05s;
}
.btn:hover, .btn-ghost:hover { background: var(--g50); }
.btn-primary { background: var(--g800); color: #fff; }
.btn-primary:hover { background: var(--g900); }
.btn-yellow { background: var(--yellow); border-color: var(--yellow); color: var(--g900); }
.btn-yellow:hover { background: #ffe670; }
.btn-soft { background: var(--g100); border-color: var(--g100); color: var(--g900); padding: 10px 18px; font-size: 14px; }
.btn-soft:hover { background: var(--g200); border-color: var(--g200); }
.btn-block { width: 100%; }
.btn:active { transform: translateY(1px); }

/* ---------- horní lišta + hlavička ---------- */
.topbar { background: var(--g900); color: #fff; font-size: 14px; }
.topbar .wrap { display: flex; align-items: center; min-height: 38px; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; opacity: .95; }
.topbar a:hover { opacity: 1; text-decoration: underline; }

.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line-soft); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { height: 30px; width: auto; display: block; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.main-nav > ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav a.nav-link, .main-nav button.nav-link {
  display: inline-flex; align-items: center; gap: 7px; padding: 24px 15px 20px; font: inherit; font-size: 15.5px; font-weight: 600;
  color: var(--g900); background: none; border: none; border-bottom: 3px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.main-nav a.nav-link:hover, .main-nav button.nav-link:hover { color: var(--g700); }
.main-nav .nav-link.on { border-bottom-color: var(--yellow); }
.main-nav .nav-link .ic { width: 17px; height: 17px; }
.has-dd .chev { width: 14px; height: 14px; transition: transform .15s; }
.has-dd:hover .chev, .has-dd:focus-within .chev { transform: rotate(180deg); }
.dd {
  display: none; position: absolute; left: 0; top: 100%; min-width: 290px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 14px 34px rgba(2, 66, 42, .16); padding: 8px; z-index: 60;
}
.has-dd:hover .dd, .has-dd:focus-within .dd, .has-dd.open .dd { display: block; }
.dd a { display: flex; justify-content: space-between; gap: 18px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.dd a:hover { background: var(--g50); color: var(--g700); }
.dd a small { color: var(--ink-soft); font-weight: 500; }
.dd .dd-all { border-top: 1px solid var(--line-soft); margin-top: 6px; padding-top: 12px; font-weight: 700; color: var(--g700); }

.header-tools { display: flex; align-items: center; gap: 14px; padding-left: 14px; border-left: 1px solid var(--line); }
.search-link { display: inline-flex; padding: 8px; color: var(--g900); border-radius: 10px; }
.search-link:hover { background: var(--g50); }
.search-link .ic { width: 22px; height: 22px; }
.inquiry-btn {
  display: inline-flex; align-items: center; gap: 9px; background: var(--g800); color: #fff; border-radius: 12px; padding: 12px 20px;
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
}
.inquiry-btn:hover { background: var(--g900); }
.inquiry-btn .ic { width: 19px; height: 19px; margin-right: 9px; }
.inquiry-btn { gap: 0; }
.menu-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px; color: var(--g900); cursor: pointer; }
.menu-toggle .ic { width: 24px; height: 24px; }

/* ---------- společné prvky stránek ---------- */
.page-banner {
  position: relative; overflow: hidden; background: linear-gradient(90deg, #e7f1eb 0%, #eaf3ea 55%, #dcebd9 100%); min-height: 142px;
}
.page-banner::before {
  content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: min(62%, 920px);
  background: url('/assets/img/banner-photo.jpg') right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%); mask-image: linear-gradient(to right, transparent 0, #000 38%);
}
.page-banner .wrap { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 142px; padding-top: 18px; padding-bottom: 18px; }
.page-banner h1 { display: flex; align-items: center; gap: 22px; margin: 0; font-size: clamp(32px, 4vw, 54px); line-height: 1.1; font-weight: 800; color: var(--g900); letter-spacing: -.01em; }
.page-banner h1::after { content: ''; display: block; width: 74px; height: 2px; background: var(--g900); flex-shrink: 0; margin-top: 6px; }
.page-banner p { margin: 8px 0 0; font-size: 18px; color: #26362d; max-width: 560px; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 22px 0 18px; font-size: 15px; font-weight: 500; color: var(--g900); }
.breadcrumb a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { width: 14px; height: 14px; color: var(--ink-soft); }
.breadcrumb .cur { color: var(--ink); font-weight: 500; }

.pill { display: inline-block; background: var(--g100); color: var(--g900); border-radius: 999px; padding: 4px 14px; font-size: 14px; font-weight: 600; }

/* ---------- úvodní stránka ---------- */
.hero { position: relative; z-index: 5; background: linear-gradient(95deg, #f6f9f4 0%, #eef5ea 60%, #e8f1e4 100%); }
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-photo {
  position: absolute; right: 0; top: 0; bottom: 0; width: 56%; background: url('/assets/img/hero-photo.jpg') right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.55) 14%, #000 40%); mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.55) 14%, #000 40%);
}
.hero-bg::before { content: ''; position: absolute; left: -120px; bottom: -150px; width: 300px; height: 300px; border-radius: 50%; background: #d7e8d2; opacity: .8; }
.hero-bg::after { content: ''; position: absolute; right: -70px; bottom: -80px; width: 230px; height: 230px; border-radius: 50%; background: var(--g800); }
.hero .wrap { position: relative; z-index: 2; padding-top: 44px; padding-bottom: 44px; min-height: 463px; display: flex; flex-direction: column; justify-content: center; }
.eyebrow { display: flex; align-items: center; gap: 18px; font-size: 14.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--g900); margin-bottom: 14px; }
.eyebrow::after { content: ''; width: 64px; height: 1.5px; background: var(--g900); }
.hero h1 { margin: 0 0 18px; font-size: clamp(34px, 3.8vw, 58px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; color: var(--g900); max-width: 820px; }
.hero h1 .under { background: linear-gradient(transparent 78%, var(--yellow) 78%, var(--yellow) 92%, transparent 92%); padding: 0 2px; }
.hero .lead { font-size: 19px; line-height: 1.5; color: #26362d; max-width: 540px; margin: 0 0 26px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.search-box {
  display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: 7px 7px 7px 18px; gap: 12px; max-width: 632px;
}
.search-box .ic { width: 22px; height: 22px; color: var(--g900); }
.search-box input { flex: 1; min-width: 0; border: none; outline: none; background: none; font: inherit; font-size: 16px; padding: 10px 0; color: var(--ink); }
.search-box button { background: var(--g800); color: #fff; border: none; border-radius: 10px; font: inherit; font-weight: 600; padding: 13px 26px; cursor: pointer; }
.search-box button:hover { background: var(--g900); }

.section-title { display: flex; align-items: center; justify-content: center; gap: 28px; margin: 54px 0 30px; text-align: center; }
.section-title h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); font-weight: 800; color: var(--g900); letter-spacing: -.01em; }
.section-title::before, .section-title::after { content: ''; flex: 0 1 112px; height: 1.5px; background: var(--g900); }

.cat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cat-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 152px; padding: 22px 24px; border-radius: var(--radius);
  background-color: #fff; box-shadow: var(--shadow); border: 1px solid var(--line-soft); text-decoration: none; overflow: hidden; transition: transform .15s, box-shadow .15s;
}
.cat-card::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 46%; background: var(--img) right center / auto 100% no-repeat; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28%); mask-image: linear-gradient(to right, transparent 0, #000 28%); pointer-events: none; }
.cat-card > * { position: relative; z-index: 1; }
.cat-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(2, 66, 42, .14); }
.cat-card h3 { margin: 0; font-size: 21px; line-height: 1.2; font-weight: 700; color: var(--g900); max-width: 58%; }
.cat-card .count { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; background: var(--g100); color: var(--g900); border-radius: 999px; padding: 8px 16px; font-size: 14.5px; font-weight: 600; margin-top: 18px; }
.cat-card .count .ic { width: 16px; height: 16px; }

.cta-band {
  display: flex; align-items: center; gap: 36px; margin: 48px 0 56px; padding: 34px 44px; border-radius: 22px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(100deg, #2a6b49 0%, #1a5a3a 45%, #134a2f 100%);
}
.cta-band::before { content: ''; position: absolute; left: -90px; bottom: -120px; width: 260px; height: 260px; border-radius: 50%; background: rgba(160, 205, 150, .35); }
.cta-band > * { position: relative; }
.cta-band h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.15; font-weight: 800; flex: 0 0 auto; max-width: 480px; }
.cta-band h2 .under { background: linear-gradient(transparent 80%, var(--yellow) 80%, var(--yellow) 90%, transparent 90%); }
.cta-band .vr { width: 1px; align-self: stretch; background: rgba(255,255,255,.35); }
.cta-band p { margin: 0; flex: 1; font-size: 16px; line-height: 1.6; color: #e9f3ec; }

.page-content-wrap { padding: 8px 0 8px; }

/* ---------- Products: seznam látek ---------- */
.shop { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 36px; align-items: start; margin: 34px 0 56px; }
.groups { background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.groups-head { background: linear-gradient(90deg, var(--g800), #0b6a3c); color: #fff; font-size: 22px; font-weight: 700; padding: 18px 24px; }
.groups-body { padding: 14px 14px 18px; background: #f7faf5; }
.groups details { border-radius: 12px; }
.groups details + details { border-top: 1px solid var(--line-soft); }
.groups summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 14px; cursor: pointer; font-weight: 600; font-size: 16.5px; line-height: 1.3; color: var(--g900); border-radius: 12px; }
.groups summary::-webkit-details-marker { display: none; }
.groups summary .ic { width: 18px; height: 18px; transition: transform .15s; }
.groups details[open] > summary { background: var(--g100); }
.groups details[open] > summary .ic { transform: rotate(180deg); }
.groups .sub { padding: 8px 8px 8px 20px; background: #f2f7ee; border-radius: 0 0 12px 12px; margin-bottom: 4px; }
.groups .sub a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; text-decoration: none; font-size: 15.5px; color: var(--ink); border-radius: 8px; }
.groups .sub a:hover { color: var(--g700); }
.groups .sub a.active { font-weight: 700; color: var(--g700); background: #fff; }
.groups .sub a small { color: var(--ink-soft); font-size: 13px; }
.groups .sub a.all { margin-top: 4px; font-weight: 700; color: var(--g700); justify-content: flex-start; align-items: center; gap: 8px; }
.groups .sub a.all .ic { width: 16px; height: 16px; }
.groups a.top-link { display: block; padding: 15px 14px; text-decoration: none; font-weight: 600; font-size: 16.5px; color: var(--g900); }

.searchbar { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 18px; margin-bottom: 26px; box-shadow: var(--shadow); }
.searchbar .ic { width: 22px; height: 22px; color: var(--g900); }
.searchbar input { flex: 1; min-width: 0; border: none; outline: none; background: none; font: inherit; font-size: 16px; padding: 12px 0; }
.searchbar button { background: var(--g800); color: #fff; border: none; border-radius: 10px; font: inherit; font-weight: 600; padding: 13px 30px; cursor: pointer; }
.list-head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.list-head h2 { margin: 0; font-size: 28px; font-weight: 800; color: var(--g900); white-space: nowrap; }
.list-head .n { font-size: 19px; color: var(--ink); white-space: nowrap; }
.list-head::after { content: ''; flex: 1; height: 1.5px; background: var(--g800); min-width: 30px; }
.cat-desc { font-size: 15.5px; line-height: 1.65; max-width: 820px; margin: 0 0 16px; color: #26362d; }
.crumb-small { font-size: 14px; margin-bottom: 4px; }
.crumb-small a { color: var(--ink-soft); text-decoration: none; }
.crumb-small a:hover { color: var(--g700); }

.prod-row {
  display: grid; grid-template-columns: 250px minmax(0, 1fr) 190px 168px; align-items: center; margin-bottom: 8px; background: #fff;
  border: 1px solid var(--line-soft); border-radius: 12px; box-shadow: 0 2px 10px rgba(2, 66, 42, .05); min-height: 104px; transition: box-shadow .15s, border-color .15s;
}
.prod-row:hover { border-color: var(--g200); box-shadow: 0 6px 18px rgba(2, 66, 42, .1); }
.pr-img { display: flex; align-items: center; justify-content: center; padding: 8px 14px; align-self: stretch; border-right: 1px solid var(--line); margin: 14px 0; }
.pr-img img { display: block; max-height: 92px; max-width: 100%; width: auto; height: auto; mix-blend-mode: multiply; }
.pr-main { padding: 12px 26px; min-width: 0; border-right: 1px solid var(--line); margin: 14px 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.pr-main h3 { margin: 0; font-size: 18px; line-height: 1.25; font-weight: 800; color: var(--g900); letter-spacing: .01em; overflow-wrap: anywhere; }
.pr-main h3 a { text-decoration: none; }
.pr-main h3 a:hover { text-decoration: underline; }
.pr-main .cas { font-size: 15.5px; color: #26362d; }
.pr-main .pill { align-self: flex-start; margin-top: 4px; font-size: 13.5px; padding: 3px 13px; }
.pr-price { padding: 12px 24px; display: flex; flex-direction: column; gap: 1px; }
.pr-price .size { font-size: 15.5px; color: #26362d; }
.pr-price strong { font-size: 19px; font-weight: 800; color: var(--g900); }
.pr-price small { font-size: 12.5px; color: var(--ink-soft); }
.pr-act { padding: 12px 18px 12px 6px; }
.pr-act .btn-soft { width: 100%; justify-content: center; white-space: nowrap; }
.empty-state { padding: 40px 10px; color: var(--ink-soft); font-size: 16px; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 26px 0 6px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--g900); border: 1px solid var(--line); background: #fff; }
.pagination a:hover { background: var(--g50); border-color: var(--g200); }
.pagination .cur { background: var(--g800); border-color: var(--g800); color: #fff; }
.pagination .gap { border: none; background: none; min-width: 20px; padding: 0; }
.pagination .off { opacity: .4; pointer-events: none; }
.pagination-info { text-align: center; font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }

/* ---------- detail produktu ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 450px; gap: 28px; align-items: start; margin-bottom: 56px; }
.card { background: #fff; border: 1px solid var(--line-soft); border-radius: 18px; box-shadow: var(--shadow); padding: 30px 32px; }
.card h2.card-title { margin: 0 0 6px; font-size: 24px; font-weight: 800; color: var(--g900); }
.card .sub { margin: 0 0 18px; color: #26362d; font-size: 15.5px; }
.d-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.d-top .pill { font-size: 15px; padding: 6px 18px; }
.d-name { overflow-wrap: anywhere; margin: 0 0 4px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; font-weight: 800; color: var(--g900); letter-spacing: -.005em; }
.d-syn { font-size: 17px; margin-bottom: 4px; color: #26362d; }
.d-cas { font-size: 16px; margin-bottom: 20px; }
.d-cas b { font-weight: 800; }
.d-mid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: center; }
.struct-box { border: 1px solid var(--line-soft); border-radius: 14px; background: #fff; padding: 14px; display: flex; align-items: center; justify-content: center; min-height: 220px; box-shadow: 0 2px 10px rgba(2,66,42,.05); }
.struct-box img { display: block; max-width: 100%; max-height: 240px; width: auto; height: auto; mix-blend-mode: multiply; }
.d-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.d-table td { padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.d-table td:first-child { color: #26362d; padding-right: 18px; white-space: nowrap; }
.d-table td:last-child { text-align: right; font-weight: 700; color: var(--ink); }
.d-table tr:last-child td { border-bottom: none; }
.d-sec { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.d-sec h3 { margin: 0 0 12px; font-size: 21px; font-weight: 800; color: var(--g900); }
.d-sec p { margin: 4px 0; font-size: 15.5px; line-height: 1.55; }
.d-sec p b { font-weight: 800; }
.d-text { font-size: 15.5px; line-height: 1.65; }
.doc-row { display: flex; align-items: center; gap: 16px; background: #e9f4e8; border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.doc-row .ic.doc { width: 34px; height: 34px; color: var(--g700); }
.doc-row .t { flex: 1; min-width: 0; }
.doc-row .t b { display: block; font-size: 16.5px; font-weight: 700; color: var(--g900); }
.doc-row .t span { font-size: 14px; color: #3a4b42; }
.doc-row .btn { padding: 10px 20px; background: #fff; white-space: nowrap; }

.pkg-cards { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 20px; }
.pkg-card { display: flex; align-items: center; gap: 16px; padding: 15px 20px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .12s, background .12s; }
.pkg-card:hover { border-color: var(--g200); }
.pkg-card input { position: absolute; opacity: 0; pointer-events: none; }
.pkg-card .ring { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #aeb9b1; flex-shrink: 0; display: grid; place-items: center; background: #fff; }
.pkg-card .info { flex: 1; min-width: 0; }
.pkg-card .info b { display: block; font-size: 18px; font-weight: 800; color: var(--g900); line-height: 1.2; }
.pkg-card .info span { font-size: 14px; color: #26362d; }
.pkg-card .price { font-size: 19px; font-weight: 800; color: var(--g900); white-space: nowrap; }
.pkg-card:has(input:checked) { border-color: var(--g700); background: #e4f1e3; }
.pkg-card:has(input:checked) .ring { border-color: var(--g800); }
.pkg-card:has(input:checked) .ring::after { content: ''; width: 13px; height: 13px; border-radius: 50%; background: var(--g800); }
.pkg-card:has(input:focus-visible) { outline: 3px solid rgba(10, 107, 61, .35); outline-offset: 2px; }
.add-btn { width: 100%; padding: 17px 20px; font-size: 18px; border-radius: 14px; }
.note-box { display: flex; gap: 14px; align-items: flex-start; background: #eef6ed; border-radius: 12px; padding: 16px 18px; margin-top: 18px; font-size: 14.5px; line-height: 1.5; color: #26362d; }
.note-box .ic { width: 22px; height: 22px; color: var(--g700); margin-top: 1px; }
.note-box b { display: block; font-size: 17px; font-weight: 800; color: var(--g900); margin-bottom: 3px; }

/* ---------- patička ---------- */
.site-footer { background: var(--g900); color: #d7e6dc; margin-top: 30px; font-size: 14.5px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 44px; padding-bottom: 34px; }
.site-footer h4 { margin: 0 0 12px; color: #fff; font-size: 16px; font-weight: 700; }
.site-footer a { color: #d7e6dc; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.14); }
.site-footer .legal .wrap { display: flex; justify-content: space-between; gap: 20px; padding-top: 16px; padding-bottom: 18px; font-size: 13px; color: #a9c2b3; grid-template-columns: none; }

/* ---------- stránky, formuláře (zachované komponenty ve novém vzhledu) ---------- */
.detail-wrap, .cart-wrap { font-family: inherit; }
.detail-title { color: var(--g900); font-weight: 800; }
.back-link { color: var(--g700); font-weight: 600; }
.field input, .field select, .field textarea { border-radius: 10px; border: 1px solid var(--line); font-family: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(10, 107, 61, .35); border-color: var(--g700); }
.flash-error { border-radius: 10px; }
.cart-item { border-color: var(--line); }

/* ---------- mobil a tablet ---------- */
@media (max-width: 1200px) {
  .shop { grid-template-columns: 280px minmax(0, 1fr); gap: 24px; }
  .prod-row { grid-template-columns: 190px minmax(0, 1fr) 160px 150px; }
  .detail { grid-template-columns: minmax(0, 1fr) 400px; }
}
@media (max-width: 1024px) {
  .cat-cards { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr; }
  .shop { grid-template-columns: minmax(0, 1fr); }
  .groups-body { display: flex; flex-wrap: wrap; gap: 6px; }
  .groups details, .groups a.top-link { flex: 1 1 260px; }
  .hero-photo { width: 70%; opacity: .45; }
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .header-tools { margin-left: 0; border-left: none; padding-left: 0; }
  .site-header .wrap { flex-wrap: wrap; gap: 12px; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
  .main-nav { display: none; order: 5; width: 100%; margin: 0; flex-direction: column; align-items: stretch; border-top: 1px solid var(--line-soft); padding-top: 6px; }
  .main-nav.open { display: flex; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a.nav-link, .main-nav button.nav-link { width: 100%; padding: 14px 6px; border-bottom: 1px solid var(--line-soft); justify-content: space-between; }
  .main-nav .nav-link.on { border-bottom-color: var(--yellow); }
  .dd { position: static; display: none; box-shadow: none; border: none; padding: 0 0 8px 12px; min-width: 0; }
  .has-dd:hover .dd { display: block; }
  .has-dd .chev { display: none; }
  .inquiry-btn { padding: 10px 14px; }
  .search-link { display: none; }
  .cta-band { flex-direction: column; align-items: flex-start; gap: 16px; padding: 28px 26px; }
  .cta-band .vr { display: none; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 24px; }
  .prod-row { grid-template-columns: 120px minmax(0, 1fr); }
  .pr-img { border-right: none; margin: 10px 0; padding: 6px 10px; grid-row: span 2; }
  .pr-main { border-right: none; margin: 10px 0 0; padding: 10px 14px 0 4px; }
  .pr-price { grid-column: 2; padding: 4px 14px 4px 4px; flex-direction: row; align-items: baseline; gap: 10px; }
  .pr-act { grid-column: 1 / -1; padding: 4px 14px 14px; }
  .d-mid { grid-template-columns: 1fr; }
  .card { padding: 22px 20px; }
  .list-head { flex-wrap: wrap; gap: 4px 14px; }
  .list-head::after { display: none; }
  .list-head h2 { font-size: 23px; white-space: normal; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .cat-cards { grid-template-columns: 1fr; }
  .cat-card h3 { max-width: 64%; }
  .groups details, .groups a.top-link { flex: 1 1 100%; }
  .logo img { height: 24px; }
  .inquiry-btn span.lbl { display: none; }
  .hero .wrap { padding-top: 30px; padding-bottom: 150px; }
  .hero-photo { width: 100%; top: auto; height: 46%; opacity: .9; -webkit-mask-image: linear-gradient(to top, #000 55%, transparent); mask-image: linear-gradient(to top, #000 55%, transparent); }
  .hero .lead { font-size: 17px; }
  .search-box button { padding: 12px 16px; }
  .section-title::before, .section-title::after { display: none; }
  .page-banner::before { width: 100%; opacity: .35; }
}

/* ---------- administrace: kompaktní hlavička (bez veřejného menu a banneru) ---------- */
.admin-head { background: #fff; border-bottom: 1px solid var(--line); }
.admin-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 58px; }
.admin-head .logo img { height: 26px; }
.admin-head .admin-tag { font-weight: 700; color: var(--g900); padding-left: 16px; border-left: 1px solid var(--line); font-size: 15px; }
.admin-head .grow { flex: 1; }
.admin-head .to-site { font-size: 14px; font-weight: 600; color: var(--g700); text-decoration: none; }
.admin-head .to-site:hover { text-decoration: underline; }
body.is-admin { background: #fff; }

/* ---------- našeptávač ---------- */
.search-box, .searchbar { position: relative; }
.suggest {
  position: absolute; z-index: 80; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 38px rgba(2, 66, 42, .18); max-height: min(70vh, 520px); overflow: auto; text-align: left;
}
.suggest[hidden] { display: none; }
.suggest li a { display: flex; align-items: center; gap: 14px; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.suggest li.active a, .suggest li a:hover { background: var(--g50); }
.suggest .sg-img { width: 64px; height: 44px; flex-shrink: 0; object-fit: contain; mix-blend-mode: multiply; display: block; }
.suggest .sg-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.suggest .sg-name { font-size: 15.5px; font-weight: 800; color: var(--g900); overflow-wrap: anywhere; }
.suggest .sg-main small { font-size: 13px; color: var(--ink-soft); }
.suggest .sg-all a { justify-content: center; margin-top: 4px; font-weight: 700; color: var(--g700); border-top: 1px solid var(--line-soft); border-radius: 0 0 10px 10px; padding: 12px; }
.suggest .sg-empty { padding: 14px 14px; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 560px) { .suggest .sg-img { width: 48px; height: 36px; } .suggest li a { padding: 8px; gap: 10px; } }

/* ---------- zvětšení obrázku struktury ---------- */
a.struct-box { position: relative; cursor: zoom-in; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
a.struct-box:hover, a.struct-box:focus-visible { border-color: var(--g200); box-shadow: 0 6px 18px rgba(2, 66, 42, .14); outline: none; }
a.struct-box:focus-visible { outline: 3px solid rgba(10, 107, 61, .35); outline-offset: 2px; }
.zoom-hint { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--g800); color: #fff; box-shadow: 0 2px 8px rgba(2, 66, 42, .25); opacity: .92; transition: transform .15s; }
a.struct-box:hover .zoom-hint { transform: scale(1.08); opacity: 1; }
.zoom-hint .ic { width: 18px; height: 18px; }

dialog.lightbox { border: none; padding: 0; border-radius: 18px; width: min(96vw, 1180px); max-height: 94vh; box-shadow: 0 24px 70px rgba(2, 40, 26, .45); background: #fff; color: var(--ink); overflow: hidden; }
dialog.lightbox[open] { display: flex; flex-direction: column; }
dialog.lightbox::backdrop { background: rgba(2, 40, 26, .62); backdrop-filter: blur(2px); }
html:has(dialog.lightbox[open]) { overflow: hidden; }
.lb-bar { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 22px; border-bottom: 1px solid var(--line-soft); }
.lb-cap { flex: 1; min-width: 0; font-weight: 800; font-size: 17px; color: var(--g900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-full { font-size: 14px; font-weight: 600; color: var(--g700); text-decoration: none; white-space: nowrap; }
.lb-full:hover { text-decoration: underline; }
.lb-close { width: 40px; height: 40px; display: grid; place-items: center; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; color: var(--g900); cursor: pointer; }
.lb-close:hover { background: var(--g50); }
.lb-close .ic { width: 20px; height: 20px; }
.lb-stage { display: flex; align-items: center; justify-content: center; padding: 22px; overflow: auto; background: #fff; }
.lb-stage img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(94vh - 130px); min-height: min(52vh, 520px); object-fit: contain; }
@media (max-width: 560px) {
  dialog.lightbox { width: 100vw; max-width: 100vw; max-height: 100vh; border-radius: 0; height: 100vh; }
  .lb-bar { padding: 10px 10px 10px 16px; } .lb-full { display: none; }
  .lb-stage { padding: 12px; flex: 1; } .lb-stage img { max-height: calc(100vh - 100px); min-height: 0; }
}
