/* =====================================================================
   Šablona MODERNÍ – dvere-shrnovaci.cz
   Vzhled podle návrhu A (světlý a vzdušný). Funguje na počítači i mobilu.
   Barvy se dají změnit na jednom místě – v proměnných níže.
   ===================================================================== */

:root {
	--m-bg: #ffffff;
	--m-surface: #f5f3ef;
	--m-line: #ece8e2;
	--m-line-strong: #ddd7cf;
	--m-ink: #1f1d1a;
	--m-muted: #5e5853;
	--m-accent: #9a5b1e;        /* dubová – tlačítka, odkazy */
	--m-accent-dark: #7a4614;
	--m-accent-soft: #f3e8dc;
	--m-accent-bg: #fbf5ef;
	--m-ok: #2f6b3a;
	--m-error: #a3261b;
	--m-radius: 16px;
	--m-radius-sm: 10px;
	--m-font: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--m-wrap: 1240px;
}

/* ---------- Základ ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--m-bg);
	color: var(--m-ink);
	font-family: var(--m-font);
	font-size: 16px;
	line-height: 1.6;
}
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
a { color: var(--m-accent-dark); text-decoration: none; }
a:hover { color: var(--m-accent); text-decoration: underline; }
strong, b { font-weight: 700; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--m-line); margin: 24px 0; }
h1, h2, h3, h4 { color: var(--m-ink); font-family: var(--m-font); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .6em; }
h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: 24px; font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
table { border-collapse: collapse; }
.m-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.clearfix::after { content: ""; display: table; clear: both; }

.wrap { max-width: var(--m-wrap); margin: 0 auto; padding: 0 32px; }
#container { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }

/* ---------- Tlačítka ---------- */
.button, .m-btn, button.button, a.button, input[type="submit"]:not(.view):not(.dir) {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 22px;
	border: 0; border-radius: 12px;
	background: var(--m-ink); color: #fff !important;
	font: inherit; font-weight: 700; font-size: 15px; line-height: 1.2;
	text-decoration: none !important; text-shadow: none; box-shadow: none;
	cursor: pointer; transition: background .15s;
}
.button:hover, .m-btn:hover { background: #000; color: #fff; }
.button.buy, .m-btn-accent { background: var(--m-accent); }
.button.buy:hover, .m-btn-accent:hover { background: var(--m-accent-dark); }

/* ---------- Formuláře ---------- */
input.text, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="search"], select, textarea {
	font: inherit; font-size: 16px; color: var(--m-ink);
	background: #fff; border: 1px solid var(--m-line-strong); border-radius: var(--m-radius-sm);
	padding: 10px 12px; min-height: 46px; max-width: 100%;
}
textarea { min-height: 110px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--m-accent); outline-offset: 1px; border-color: var(--m-accent); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 800; font-size: 17px; padding: 0; margin-bottom: 10px; }

/* =====================================================================
   HLAVIČKA
   ===================================================================== */
.m-header { position: relative; z-index: 50; background: #fff; }

.m-topbar { background: var(--m-ink); color: #f5f3ef; font-size: 13px; }
.m-topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.m-topbar a { color: #f5f3ef; }
.m-topbar-right { display: flex; align-items: center; gap: 20px; }
.m-topbar-links ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.m-topbar-phone { font-weight: 700; }

.m-banner { border-bottom: 1px solid var(--m-line); }
.m-banner .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.m-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--m-ink) !important; text-decoration: none !important; margin-right: auto; white-space: nowrap; }
.m-logo em { font-style: normal; color: var(--m-accent); }

.m-search form { display: flex; align-items: center; background: var(--m-surface); border-radius: 999px; padding: 0 6px 0 18px; width: 340px; max-width: 100%; }
.m-search input[type="search"] { border: 0; background: transparent; min-height: 44px; padding: 0; flex: 1; outline: 0; }
.m-search-btn { width: 40px; height: 40px; border-radius: 20px; border: 0; background: transparent; color: var(--m-ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }

.m-search-toggle, .m-menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--m-ink); cursor: pointer; align-items: center; justify-content: center; padding: 0; }
.m-burger { position: relative; width: 22px; height: 16px; display: inline-block; }
.m-burger span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.m-burger span:nth-child(1) { top: 0; }
.m-burger span:nth-child(2) { top: 7px; }
.m-burger span:nth-child(3) { top: 14px; }
.m-menu-toggle.is-open .m-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.m-menu-toggle.is-open .m-burger span:nth-child(2) { opacity: 0; }
.m-menu-toggle.is-open .m-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.m-cart { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 999px; background: var(--m-ink); color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none !important; white-space: nowrap; }
.m-cart:hover { background: #000; }
.m-cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--m-accent); color: #fff; font-size: 12px; line-height: 20px; text-align: center; padding: 0 5px; }

/* hlavní menu */
.m-mainnav { border-bottom: 1px solid var(--m-line); background: #fff; }
.m-mainnav .wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.m-mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.m-mainnav ul.l0 > li { position: relative; }
.m-mainnav a { display: block; padding: 14px 14px; font-weight: 600; font-size: 15px; color: var(--m-ink); text-decoration: none; }
.m-mainnav a:hover, .m-mainnav li.active > span > a, .m-mainnav li.active > a { color: var(--m-accent); text-decoration: none; }
.m-mainnav .ul-wrap:empty { display: none; }
.m-mainnav .ul-wrap { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--m-line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.08); min-width: 220px; z-index: 60; }
.m-mainnav li:hover > .ul-wrap { display: block; }
.m-mainnav .ul-wrap ul { flex-direction: column; padding: 6px 0; }
.m-mainnav .ul-wrap a { padding: 9px 16px; }
.m-mainnav-extra { margin-left: auto; }
.m-mainnav-extra a { color: var(--m-muted); }
#mainnav .bar, .doprava { display: none !important; }

/* =====================================================================
   ROZLOŽENÍ STRÁNKY
   ===================================================================== */
#main { max-width: var(--m-wrap); margin: 0 auto; padding: 28px 32px 56px; display: grid; grid-template-columns: 270px minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "left main" "right main"; gap: 0 40px; align-items: start; float: none !important; width: auto !important; }
#main > .column { float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; position: static !important; left: auto !important; }
#main > #col2 { grid-area: main; min-width: 0; }
#main > #col1 { grid-area: left; }
#main > #col3 { grid-area: right; }
#main > .columns1, #main > #col2.columns1 { grid-column: 1 / -1; }
.columns1 #col2 { width: auto !important; float: none !important; }
#col2 .contentwrap, #col2 .main { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
#main:has(> .columns1) { display: block; }

.m-cat-toggle { display: none; }

/* bloky v bočním sloupci */
.block { margin: 0 0 24px; border: 0; background: none; }
.block h2.title { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--m-muted); font-weight: 800; margin: 0 0 10px; padding: 0; background: none; border: 0; }
.block h2.title span { background: none; padding: 0; }
.block .content { background: none; border: 0; padding: 0; border-radius: 0; color: var(--m-ink); }
.block .pages ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.block .pages li { margin: 0; padding: 0; background: none; border: 0; }
.block .pages li a, .block .pages li h2 a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--m-ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.block .pages li h2 { margin: 0; font-size: inherit; letter-spacing: 0; }
.block .pages li a:hover { background: var(--m-surface); color: var(--m-accent-dark); }
.block .pages li.active > a, .block .pages li.active > h2 > a { background: var(--m-ink); color: #fff; }
.block .pages ul ul { padding-left: 12px; margin-top: 2px; }
.block .pages-select select { width: 100%; }

/* blok Nápověda – jak nakupovat: ikona myši vlevo, text vpravo */
.block .postupb { background: var(--m-surface); border-radius: var(--m-radius); padding: 14px 16px; margin: 0 0 10px; font-size: 14px; line-height: 1.45; }
.block .postupb > a { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 14px; color: var(--m-ink); text-decoration: none; }
.block .postupb > a:hover strong { color: var(--m-accent-dark); text-decoration: underline; }
.block .postupb > a br { display: none; }
.block .postupb > a img, .block .postupb img.postupb2 { grid-column: 1; grid-row: 1; display: block; width: 48px !important; height: 48px !important; max-width: none; margin: 0 !important; float: none !important; position: static !important; }
.block .postupb > a strong { grid-column: 2; grid-row: 1; }

.block-products .product { display: grid; grid-template-columns: 64px 1fr; grid-template-areas: "pic name" "pic price"; gap: 2px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--m-line); }
.block-products .product h3 { grid-area: name; font-size: 14px; margin: 0; font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.block-products .product .picture { grid-area: pic; }
.block-products .product .picture img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; display: block; }
.block-products .product .price { grid-area: price; font-size: 13px; color: var(--m-muted); }
.block-products .product .price strong { color: var(--m-ink); }

/* drobečková navigace */
.breadcrumb { font-size: 13px; color: var(--m-muted); margin: 0 0 14px; }
.breadcrumb a { color: var(--m-muted); }

/* =====================================================================
   OBSAH STRÁNEK (texty z administrace)
   ===================================================================== */
#col2 .main { font-size: 16px; color: #3a3631; }
#col2 .main > h1 { margin-top: 0; }
#col2 .main h2 { margin-top: 1.4em; }
.shortdesc { font-size: 17px; color: var(--m-muted); }

.tabble { width: 100%; margin: 8px 0; }
.tabble td { position: relative; padding: 10px 16px 10px 30px; vertical-align: top; width: 50%; }
.tabble td::before { content: ""; position: absolute; left: 0; top: 13px; width: 20px; height: 20px; background: no-repeat center / 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a5b1e' stroke-width='2.6'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
.tabble td strong { font-weight: 700; color: var(--m-ink); }
.icoH { display: none !important; }

/* texty z administrace (na úvodní stránce i jinde) */
.m-content { max-width: 860px; }
.m-home-text { margin: 8px 0 32px; font-size: 17px; line-height: 1.75; color: #3a3631; }
.m-home-text h2 { font-size: 30px; line-height: 1.2; letter-spacing: -0.03em; margin: 0 0 14px !important; }
.m-home-text h2 img { margin: 0 0 12px 20px; border-radius: 12px; }
.m-home-text hr { margin: 22px 0; }
.m-home-text .tabble { background: var(--m-surface); border-radius: var(--m-radius); }
.m-home-text .tabble td { padding: 12px 16px 12px 46px; }
.m-home-text .tabble td::before { left: 16px; top: 15px; }
.ufoto { margin: 18px 0; }
/* fotka v textu – jen v původní velikosti (500 px), nikdy se neroztahuje */
.ufotof, .ufoto img { width: auto !important; max-width: 100%; height: auto !important; border-radius: var(--m-radius); display: block; }
/* fotka vpravo, text ji obtéká zleva */
.ufoto { float: right; width: 46%; max-width: 500px; margin: 4px 0 16px 28px; }
.ufoto img { width: 100% !important; }
.m-content::after { content: ""; display: table; clear: both; }

/* obrázky vložené k textům */
.files { margin: 0 0 16px; }
.files .picture img { border-radius: 12px; }
.files-3 { float: right; margin: 0 0 16px 24px; max-width: 45%; }
.files-2 { float: left; margin: 0 24px 16px 0; max-width: 45%; }

/* podstránky */
ul.subpages { list-style: none; margin: 16px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
ul.subpages li { border: 1px solid var(--m-line); border-radius: var(--m-radius); padding: 16px; }
ul.subpages li .title { font-weight: 700; }

/* =====================================================================
   ÚVODNÍ STRÁNKA
   ===================================================================== */
.m-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; margin: 0 0 32px; }
.m-badge { display: inline-block; background: var(--m-accent-soft); color: var(--m-accent-dark); font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.m-hero h1 { font-size: 46px; line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 16px; }
.m-hero-lead { font-size: 18px; color: var(--m-muted); max-width: 520px; }
.m-hero-photo { border-radius: 24px; overflow: hidden; background: #e9e2d8; aspect-ratio: 4 / 5; max-height: 560px; }
.m-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.m-finder { background: var(--m-surface); border-radius: 20px; padding: 18px; margin: 22px 0 18px; max-width: 540px; }
.m-finder label { display: block; font-weight: 800; font-size: 15px; margin-bottom: 10px; }
.m-finder-row { display: flex; gap: 10px; }
.m-finder-field, .m-input-unit { flex: 1; display: flex; align-items: center; background: #fff; border: 1px solid var(--m-line-strong); border-radius: 12px; padding: 0 14px; }
.m-finder-field:focus-within, .m-input-unit:focus-within { outline: 2px solid var(--m-accent); outline-offset: 1px; }
.m-finder-field input, .m-input-unit input { border: 0 !important; outline: 0 !important; background: transparent; font-size: 20px; font-weight: 800; width: 100%; min-height: 52px; padding: 0; }
.m-finder-field span, .m-input-unit span { color: var(--m-muted); font-weight: 600; }
.m-finder .m-btn { min-height: 54px; }
.m-finder-hint { margin: 10px 0 0; font-size: 14px; color: var(--m-muted); }

.m-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; font-weight: 700; color: #3f3a35; }
.m-trust li { display: flex; align-items: center; gap: 8px; }
.m-trust li::before { content: ""; width: 18px; height: 18px; background: no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a5b1e' stroke-width='2.6'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }

.m-widths { background: var(--m-surface); border-radius: 20px; padding: 22px; margin: 0 0 32px; }
.m-widths h2 { font-size: 20px; margin: 0 0 14px !important; }
.m-widths ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.m-widths a { display: flex; align-items: center; justify-content: center; min-height: 46px; background: #fff; border: 1px solid var(--m-line-strong); border-radius: 12px; font-weight: 700; color: var(--m-ink); text-decoration: none; }
.m-widths a:hover { border-color: var(--m-ink); background: var(--m-ink); color: #fff; }

/* =====================================================================
   VÝPIS PRODUKTŮ
   ===================================================================== */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin: 20px 0; }
.products::after { display: none; }
.products .product { float: none !important; width: auto !important; margin: 0 !important; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--m-line); border-radius: 20px; padding: 16px; transition: box-shadow .15s, border-color .15s; height: auto !important; min-height: 0 !important; }
.products .product:hover { border-color: var(--m-line-strong); box-shadow: 0 12px 30px rgba(0,0,0,.06); }
.products .product .wrap { padding: 0; max-width: none; display: flex; flex-direction: column; flex: 1; }
.products .product .picture { order: -1; margin: 0 0 12px; background: var(--m-surface); border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; position: relative; }
.products .product .picture img { max-height: 100%; width: auto; object-fit: contain; display: block; }
.products .product h3.name { font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 6px; }
.products .product h3.name a { color: var(--m-ink); }
.products .product .desc { font-size: 14px; color: var(--m-muted); flex: 1; }
.products .product .desc p { margin: 0 0 .5em; }
.products .product .pricebasket { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--m-line); }
.products .product .price { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: 6px; font-size: 13px; color: var(--m-muted); margin-bottom: 10px; }
.products .product .price strong { font-size: 20px; font-weight: 800; color: var(--m-ink); }
.products .product .buttons { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.products .product .buttons .button { min-height: 42px; padding: 0 16px; font-size: 14px; }
.products .product .detail { font-weight: 700; font-size: 14px; }
.products .discount, .label { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; color: #fff; background: var(--m-accent); }
.products .picture .discount { position: absolute; top: 10px; left: 10px; }
.availability strong, [class*="availability-"] { color: var(--m-ok); font-weight: 700; }
.price-old-discount { font-size: 13px; color: var(--m-muted); }

/* tabulkový výpis */
.products-list { display: block; }
.products-list table { width: 100%; }
.products-list th, .products-list td { padding: 12px 10px; border-bottom: 1px solid var(--m-line); text-align: left; }

/* filtr a stránkování */
/* řazení a přepínání zobrazení */
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; background: var(--m-surface); border-radius: var(--m-radius); padding: 12px 16px; margin: 0 0 16px; font-size: 14px; font-weight: 600; color: var(--m-muted); }
.filter .viewtype { margin-right: auto; }
.filter .viewtype ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.filter .viewtype li { margin: 0; padding: 0; background: none; }
.filter select { min-height: 40px; padding: 6px 10px; font-size: 14px; font-weight: 600; background-color: #fff; }
.filter input.view, .filter input.dir {
	-webkit-appearance: none; appearance: none;
	min-height: 40px; padding: 0 14px; margin: 0;
	border: 1px solid var(--m-line-strong); border-radius: 10px;
	background-color: #fff; color: var(--m-ink);
	font: inherit; font-size: 14px; font-weight: 700; text-shadow: none; box-shadow: none;
	cursor: pointer;
}
.filter input.view:hover, .filter input.dir:hover { border-color: var(--m-ink); }
.filter input.view.disabled { background-color: var(--m-accent-bg); border-color: var(--m-accent); color: var(--m-accent-dark); cursor: default; }
.filter input.dir { width: 40px; padding: 0; color: transparent; background-repeat: no-repeat; background-position: center; background-size: 18px; }
.filter input.dir-asc { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1d1a' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E"); }
.filter input.dir-desc { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1d1a' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E"); }
.filter input.dir.active { background-color: var(--m-accent-bg); border-color: var(--m-accent); }

/* stránkování */
.pagination { margin: 24px 0; }
.pagination ul { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pagination li { margin: 0; padding: 0; background: none; border: 0; color: var(--m-muted); font-size: 14px; font-weight: 600; }
.pagination li a, .pagination li span { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--m-line-strong); border-radius: 10px; background: #fff; color: var(--m-ink); font-size: 15px; font-weight: 700; text-decoration: none; }
.pagination li a:hover { border-color: var(--m-ink); color: var(--m-ink); text-decoration: none; }
.pagination li.active span { background: var(--m-accent-bg); border-color: var(--m-accent); color: var(--m-accent-dark); box-shadow: inset 0 0 0 1px var(--m-accent); }

/* filtr podle výrobce / parametrů – světlý, bez černých tlačítek */
.producers { background: var(--m-surface); border-radius: var(--m-radius); padding: 12px 16px; margin: 0 0 16px; font-size: 14px; }
.producers .toggle-producers { font-weight: 700; color: var(--m-accent-dark); }
.producers .producer, .producers .feature { display: inline-flex; align-items: center; gap: 6px; margin: 8px 16px 0 0; float: none !important; width: auto !important; }
.producers .button { min-height: 40px; padding: 0 16px; margin-top: 10px; background: #fff; color: var(--m-ink) !important; border: 1px solid var(--m-line-strong); font-size: 14px; }
.producers .button:hover { background: #fff; border-color: var(--m-ink); }
.pagination li.space span { border: 0; background: none; min-width: 20px; padding: 0; color: var(--m-muted); }

/* =====================================================================
   DETAIL PRODUKTU
   ===================================================================== */
.productdetail > .clearfix { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.productdetail > .clearfix > .files { float: none; max-width: none; margin: 0; grid-column: 1; }
.productdetail > .clearfix > .files-1 { grid-column: 1 / -1; }
.productdetail .files .picture { display: block; margin: 0 0 10px; }
.productdetail .files .picture img { border-radius: 16px; background: var(--m-surface); display: block; width: 100%; height: auto; }
.productdetail .files-product .picture:not(:first-child), .productdetail .files-2 .picture:not(:first-child) { display: inline-block; width: calc(25% - 8px); margin: 0 6px 6px 0; }
.productdetail .producthead { grid-column: 2; float: none !important; width: auto !important; margin: 0 !important; }
.productdetail .producthead:only-child { grid-column: 1 / -1; }
.producthead h1.name { font-size: 30px; line-height: 1.15; margin: 0 0 8px; }
.producthead .sku, .producthead .ean { display: inline-block; font-size: 13px; color: var(--m-muted); margin: 0 12px 8px 0; }
.producthead ul.pages { list-style: none; margin: 0 0 10px; padding: 0; font-size: 13px; color: var(--m-muted); }
.producthead ul.pages a { color: var(--m-muted); }
.producthead .shortdesc { font-size: 15px; }

.productinfo { margin-top: 12px; }
.productinfo > ul { list-style: none; margin: 0 0 18px; padding: 16px 18px; background: var(--m-surface); border-radius: var(--m-radius); display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--m-muted); }
.productinfo > ul li { display: flex; gap: 8px; align-items: baseline; }
.productinfo > ul li span { min-width: 110px; }
.productinfo > ul li.price { order: -1; align-items: baseline; margin-bottom: 4px; }
.productinfo > ul li.price span { display: none; }
.productinfo > ul li.price strong { font-size: 32px; font-weight: 800; color: var(--m-ink); letter-spacing: -0.02em; }
.productinfo > ul li strong[class*="availability-"]::before { content: "● "; }

/* volby (barva, madlo, výška…) */
form.basket .m-attr { margin: 0 0 20px; }
form.basket .m-attr legend { font-size: 15px; }
.m-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.m-chip { position: relative; display: block; cursor: pointer; margin: 0; }
.m-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.m-chip-body { display: flex; flex-direction: column; justify-content: center; min-height: 52px; height: 100%; padding: 8px 12px; border: 2px solid var(--m-line-strong); border-radius: 12px; background: #fff; transition: border-color .12s, background .12s; }
.m-chip-name { font-weight: 700; font-size: 14px; line-height: 1.25; color: var(--m-ink); }
.m-chip small { font-size: 12px; color: var(--m-muted); line-height: 1.3; }
.m-chip-price { font-weight: 600; }
.m-chip:hover .m-chip-body { border-color: #b9b0a5; }
.m-chip input:checked + .m-chip-body { border-color: var(--m-accent); background: var(--m-accent-bg); box-shadow: inset 0 0 0 1px var(--m-accent); }
.m-chip input:focus-visible + .m-chip-body { outline: 2px solid var(--m-accent); outline-offset: 2px; }
.m-chip.is-disabled { opacity: .45; cursor: not-allowed; }
.m-attr-height .m-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m-attr-height .m-chip-name { font-size: 16px; }

.m-height-field { margin-top: 10px; background: var(--m-surface); border-radius: 14px; padding: 14px; }
.m-height-field label { display: block; font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.m-height-field .m-input-unit { max-width: 260px; }
.m-height-msg { margin: 8px 0 0; font-size: 13px; color: var(--m-muted); }
.m-height-msg.is-error { color: var(--m-error); font-weight: 700; }

.m-buy { display: flex; align-items: flex-end; gap: 12px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--m-line); }
.m-qty label { display: block; font-size: 12px; font-weight: 700; color: var(--m-muted); margin-bottom: 4px; }
.m-qty input { width: 80px; text-align: center; font-weight: 700; }
.m-buy .button { flex: 1; min-height: 54px; font-size: 17px; }

.sharelinks { margin: 16px 0; }
.productdetail .description, .productdetail .features, .productdetail .attributes-list, .productdetail .related-products, .productdetail .quantity-discounts { margin-top: 28px; }
.productdetail .description h2 { font-size: 22px; }
.features table, table.grid { width: 100%; }
.features td, table.grid td { padding: 10px 8px; border-bottom: 1px solid var(--m-line); }
table.grid caption { text-align: left; font-weight: 800; padding: 8px 0; }
.related-products .clearfix { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.related-products .related { float: none !important; width: auto !important; margin: 0 !important; border: 1px solid var(--m-line); border-radius: 14px; padding: 12px; }

/* záložky (modul Záložky produktu) */
#product-tabs { margin-top: 32px; }
#product-tabs div.tabs { margin: 0 0 -1px !important; }
#product-tabs div.tabs ul { display: flex; flex-wrap: wrap; gap: 4px; overflow: visible !important; }
#product-tabs div.tabs ul li { float: none !important; margin: 0 !important; }
#product-tabs div.tabs ul li a { border: 1px solid var(--m-line) !important; border-bottom: 0 !important; background: var(--m-surface) !important; border-radius: 12px 12px 0 0; padding: 12px 18px !important; color: var(--m-ink); font-weight: 700; text-decoration: none; }
#product-tabs div.tabs ul li.active a { background: #fff !important; }
#product-tabs .tab { border: 1px solid var(--m-line) !important; border-radius: 0 16px 16px 16px; padding: 20px !important; background: #fff !important; margin: 0 !important; }

/* =====================================================================
   KOŠÍK A OBJEDNÁVKA
   ===================================================================== */
.basket .tablewrap, .ordersummary .tablewrap { overflow-x: auto; }
.basket table, .order table, .ordersummary table { width: 100%; }
.basket thead td, .order thead td { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--m-muted); font-weight: 800; padding: 10px 8px; border-bottom: 2px solid var(--m-line); }
.basket tbody td, .order tbody td { padding: 14px 8px; border-bottom: 1px solid var(--m-line); vertical-align: middle; }
.basket td.picture img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.basket td.name a { font-weight: 700; color: var(--m-ink); }
.m-basket-attrs, .m-basket-height { display: block; font-size: 13px; color: var(--m-muted); margin-top: 4px; line-height: 1.4; }
.m-basket-height strong { color: var(--m-ink); }
.basket td.quantity input { width: 64px; text-align: center; }
.basket td.total, .basket td.price { font-weight: 700; white-space: nowrap; }
.basket tfoot td { padding: 10px 8px; }
.basket tfoot tr.total td, .basket tfoot .total .value { font-size: 20px; font-weight: 800; }
.basket .buttons, .order .buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin: 20px 0; }
.basketempty { text-align: center; color: var(--m-muted); padding: 40px 0 !important; }

.error, .errors, .msg { border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; }
.error, .errors { background: #fbecea; color: var(--m-error); }
.msg { background: #edf6ee; color: var(--m-ok); }

.order .colleft, .order .colright, fieldset.colleft, fieldset.colright { float: none !important; width: auto !important; margin: 0 0 24px !important; }
.order > form > .clearfix, form .clearfix:has(> .colleft) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.input { margin: 0 0 12px; }
.input label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; color: #3a3631; }
.input input.text, .input select, .input textarea { width: 100%; }
.input.inline { display: inline-block; width: calc(50% - 8px); vertical-align: top; }
.input.inline-right { margin-left: 12px; }
.input.checkbox label { display: inline; font-weight: 500; }
.help { font-size: 13px; color: var(--m-muted); }
.deliverypayment label, .delivery label, .payment label { cursor: pointer; }

/* =====================================================================
   PATIČKA
   ===================================================================== */
.m-footer { margin-top: 24px; background: none !important; border: 0 !important; padding: 0 !important; color: var(--m-muted); font-size: 15px; }
.m-delivery { padding: 0 0 40px; }
.m-delivery .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.m-delivery .wrap > div { background: var(--m-surface); border-radius: var(--m-radius); padding: 18px 20px; display: flex; flex-direction: column; }
.m-delivery span { font-size: 13px; font-weight: 600; color: var(--m-muted); }
.m-delivery strong { font-size: 22px; font-weight: 800; color: var(--m-ink); }
.m-footer-content { border-top: 1px solid var(--m-line); padding-top: 36px !important; padding-bottom: 36px !important; }
.m-footer-content::after { content: ""; display: table; clear: both; }
.m-footer-content a { color: var(--m-ink); font-weight: 600; }
.m-footer-content hr { border-top-color: var(--m-line); }
.m-footer-content .details { font-size: 13px; }
.powered { display: block; clear: both; font-size: 12px; padding-top: 12px; }

/* =====================================================================
   STARÉ STYLY, KTERÉ UŽ NEPLATÍ
   ===================================================================== */
#topnav, #banner { display: none; }

/* =====================================================================
   TABLET
   ===================================================================== */
@media (max-width: 1024px) {
	.wrap { padding: 0 20px; }
	#main { padding: 20px 20px 48px; grid-template-columns: 230px minmax(0, 1fr); gap: 0 28px; }
	.m-search form { width: 240px; }
	.m-hero h1 { font-size: 38px; }
	.m-mainnav-extra { margin-left: 0; }
}

/* =====================================================================
   MOBIL
   ===================================================================== */
@media (max-width: 768px) {
	body { font-size: 15px; }
	h1 { font-size: 26px; }
	h2 { font-size: 21px; }
	.wrap { padding: 0 16px; }
	.m-hide-sm, .m-topbar-links { display: none; }
	.m-topbar .wrap { min-height: 34px; font-size: 12px; }

	/* hlavička */
	.m-banner .wrap { min-height: 60px; gap: 4px; padding: 0 8px; }
	.m-menu-toggle, .m-search-toggle { display: inline-flex; }
	.m-logo { font-size: 16px; gap: 8px; margin: 0 auto 0 4px; }
	.m-logo svg { width: 24px; height: 24px; }
	.m-cart { width: 44px; height: 44px; padding: 0; justify-content: center; background: transparent; color: var(--m-ink) !important; }
	.m-cart:hover { background: var(--m-surface); }
	.m-cart-label { display: none; }
	.m-cart-count { top: 2px; right: 0; }
	.m-search { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; padding: 10px 16px 14px; border-bottom: 1px solid var(--m-line); box-shadow: 0 10px 20px rgba(0,0,0,.06); }
	.m-search.is-open { display: block; }
	.m-search form { width: 100%; }
	.m-banner { position: relative; }

	/* menu z hamburgeru */
	.m-mainnav { display: none; border-bottom: 1px solid var(--m-line); }
	.m-mainnav.is-open { display: block; }
	.m-mainnav .wrap { display: block; padding: 6px 0 12px; }
	.m-mainnav ul { flex-direction: column; }
	.m-mainnav a { padding: 13px 20px; font-size: 16px; border-bottom: 1px solid var(--m-line); }
	.m-mainnav .ul-wrap { display: block; position: static; border: 0; box-shadow: none; border-radius: 0; min-width: 0; }
	.m-mainnav .ul-wrap a { padding-left: 36px; font-size: 15px; }
	.m-mainnav-extra { margin: 0; }

	/* rozložení: kategorie (sbalené) → obsah → pomoc */
	#main { display: flex; flex-direction: column; padding: 12px 16px 40px; gap: 0; }
	#main > #col1 { order: 1; margin-bottom: 16px !important; }
	#main > #col2 { order: 2; }
	#main > #col3 { order: 3; margin-top: 32px !important; }
	.m-cat-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 50px; padding: 0 16px; border: 1px solid var(--m-line-strong); border-radius: 12px; background: #fff; font: inherit; font-weight: 700; color: var(--m-ink); cursor: pointer; }
	.m-cat-toggle::after { content: ""; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
	.m-cat-toggle.is-open::after { transform: rotate(-135deg) translateY(-3px); }
	.m-col1-blocks { display: none; padding-top: 12px; }
	.m-col1-blocks.is-open { display: block; }
	.block .pages ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
	.block .pages li a, .block .pages li h2 a { border: 1px solid var(--m-line); min-height: 44px; display: flex; align-items: center; font-size: 14px; }

	/* úvod */
	.m-hero { grid-template-columns: 1fr; gap: 20px; }
	.m-hero-photo { order: -1; aspect-ratio: 16 / 11; border-radius: 18px; }
	.m-hero h1 { font-size: 30px; }
	.m-hero-lead { font-size: 16px; }
	.m-finder-row { flex-direction: column; }
	.m-finder .m-btn { width: 100%; }
	.m-widths { padding: 16px; }
	.m-widths ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.tabble, .tabble tbody, .tabble tr, .tabble td { display: block; width: 100% !important; }
	.tabble td, .m-home-text .tabble td { padding: 8px 14px 8px 44px; }
	.tabble td::before, .m-home-text .tabble td::before { left: 14px; top: 11px; }
	.m-home-text { font-size: 16px; }
	.m-home-text h2 { font-size: 23px; }
	.m-home-text h2 img { width: 80px !important; height: 80px !important; }
	.files-2, .files-3 { float: none; max-width: none; margin: 0 0 16px; }
	.ufoto { float: none; width: auto; margin: 0 0 16px; }
	.ufoto img { width: auto !important; }

	/* produkty */
	.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.products .product { padding: 10px; border-radius: 16px; }
	.products .product h3.name { font-size: 14px; }
	.products .product .desc { display: none; }
	.products .product .price strong { font-size: 17px; }
	.products .product .buttons { flex-direction: column; align-items: stretch; }
	.products .product .buttons .button { width: 100%; }
	.products .product .detail { text-align: center; padding: 6px 0; }

	/* detail produktu */
	.productdetail > .clearfix { display: block; }
	.producthead h1.name { font-size: 24px; }
	.productinfo > ul li.price strong { font-size: 28px; }
	.m-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.m-height-field .m-input-unit { max-width: none; }
	.m-buy { position: sticky; bottom: 0; z-index: 30; background: #fff; margin: 0 -16px; padding: 12px 16px; border-top: 1px solid var(--m-line); box-shadow: 0 -8px 24px rgba(0,0,0,.06); }
	.m-qty input { width: 64px; }
	#product-tabs div.tabs ul li a { padding: 10px 12px !important; font-size: 14px; }

	/* košík jako karty */
	.basket thead { display: none; }
	.basket table, .basket tbody, .basket tr, .basket td { display: block; width: 100%; }
	.basket tbody tr { display: grid; grid-template-columns: 64px 1fr auto; grid-template-areas: "pic name remove" "pic qty total"; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--m-line); }
	.basket tbody td { border: 0; padding: 0; }
	.basket td.picture { grid-area: pic; }
	.basket td.name { grid-area: name; }
	.basket td.price { display: none; }
	.basket td.quantity { grid-area: qty; }
	.basket td.total { grid-area: total; text-align: right; }
	.basket td.remove { grid-area: remove; font-size: 13px; text-align: right; }
	.basket tbody tr:has(.basketempty) { display: block; }
	.basket tfoot, .basket tfoot tr { display: block; }
	.basket tfoot tr { display: flex; justify-content: space-between; }
	.basket tfoot td:empty, .basket tfoot td.remove { display: none; }
	.basket .buttons .button, .order .buttons .button { width: 100%; }

	/* objednávka */
	.order > form > .clearfix, form .clearfix:has(> .colleft) { display: block; }
	.input.inline { display: block; width: 100%; }
	.input.inline-right { margin-left: 0; }

	/* patička – texty z nastavení mají pevné šířky, na mobilu je skládáme pod sebe */
	.m-delivery .wrap { gap: 10px; }
	.m-delivery .wrap > div { padding: 14px; }
	.m-delivery strong { font-size: 18px; }
	.m-footer-content > div, .m-footer-content > p { float: none !important; width: 100% !important; margin-bottom: 18px; }
}

@media (max-width: 380px) {
	.m-widths ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.products { grid-template-columns: 1fr; }
}

/* tisk */
@media print {
	.m-topbar, .m-mainnav, .m-search, .m-cart, .m-menu-toggle, .m-search-toggle, #col1, #col3, .m-buy, .m-delivery { display: none !important; }
	#main { display: block; }
}
