/* ==========================================================================
   Šablona luki3 – velkoobchod hraček BRUDER (Luki3 a.s.)
   Barvy podle bruder.de / starého webu, viz docs/ZNALOSTI.md (Design).
   Staví na Bootstrap 5 z Joomly (asset bootstrap.css) a výpisech VirtueMartu bs5-*.
   ========================================================================== */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--blue: #005da8;
	--blue-dark: #00467f;
	--blue-50: #e5f5fc;
	--orange: #e96027;
	--orange-dark: #c94c18;
	--yellow: #fbc020;
	--green: #3f8f1d;
	--green-50: #eaf6e3;
	--amber: #a86f00;
	--amber-50: #fff4d6;
	--red: #c8102e;
	--red-50: #fdeaea;
	--text: #1f2933;
	--muted: #5f6b7a;
	--line: #e3e8ef;
	--bg: #f5f7fa;
	--card: #fff;
	--radius: 14px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
	--shadow-hover: 0 2px 4px rgba(16, 24, 40, .06), 0 12px 28px rgba(16, 24, 40, .1);

	/* Bootstrap 5 proměnné → barvy značky */
	--bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--bs-body-color: var(--text);
	--bs-body-bg: var(--bg);
	--bs-primary: #005da8;
	--bs-primary-rgb: 0, 93, 168;
	--bs-link-color: #005da8;
	--bs-link-color-rgb: 0, 93, 168;
	--bs-link-hover-color: #00467f;
	--bs-link-hover-color-rgb: 0, 70, 127;
	--bs-border-color: #e3e8ef;
	--bs-border-radius: 10px;
}

/* ---------- základ ---------- */
body {
	margin: 0;
	font-family: var(--bs-body-font-family);
	font-size: 15px;
	line-height: 1.5;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3, .h1, .h2, .h3 { letter-spacing: -.02em; font-weight: 700; color: var(--text); }
h1, .h1 { font-size: 28px; margin: 6px 0 14px; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 24px; }

.skip-link {
	position: absolute; left: -9999px; top: 8px; z-index: 100;
	background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

.btn { border-radius: var(--radius-sm); font-weight: 600; }
.btn-primary {
	--bs-btn-bg: var(--blue); --bs-btn-border-color: var(--blue);
	--bs-btn-hover-bg: var(--blue-dark); --bs-btn-hover-border-color: var(--blue-dark);
	--bs-btn-active-bg: var(--blue-dark); --bs-btn-active-border-color: var(--blue-dark);
	--bs-btn-disabled-bg: #cbd5e1; --bs-btn-disabled-border-color: #cbd5e1;
}
.btn-outline-primary {
	--bs-btn-color: var(--blue); --bs-btn-border-color: var(--blue);
	--bs-btn-hover-bg: var(--blue); --bs-btn-hover-border-color: var(--blue);
}
.btn-secondary {
	--bs-btn-bg: #fff; --bs-btn-color: var(--text); --bs-btn-border-color: var(--line);
	--bs-btn-hover-bg: var(--bg); --bs-btn-hover-color: var(--text); --bs-btn-hover-border-color: #cfd8e3;
}
.form-control, .form-select, .inputbox, select, input[type="text"], input[type="email"], input[type="password"], input[type="tel"], textarea {
	border-radius: var(--radius-sm);
	border: 1px solid var(--line);
}
.form-control:focus, .form-select:focus {
	border-color: var(--blue);
	box-shadow: 0 0 0 3px rgba(0, 93, 168, .15);
}
/* chybné pole po kontrole formuláře (Joomla validate.js přidá .invalid poli i popisku + text „Tato hodnota není platná“) */
input.invalid, select.invalid, textarea.invalid, .form-control.invalid {
	border-color: var(--red);
	background-color: var(--red-50);
}
input.invalid:focus, select.invalid:focus, textarea.invalid:focus, .form-control.invalid:focus { box-shadow: 0 0 0 3px rgba(200, 16, 46, .15); }
label.invalid { color: var(--red); }
.form-control-feedback { color: var(--red); font-weight: 400; }

/* ---------- horní lišta ---------- */
.topbar { background: var(--blue-dark); color: #cfe3f5; font-size: 13px; }
.topbar .wrap { display: flex; gap: 24px; justify-content: space-between; align-items: center; padding-top: 7px; padding-bottom: 7px; }
.topbar strong, .topbar b { color: #fff; font-weight: 600; }
.topbar a { color: #fff; }
.topbar-contact { display: flex; gap: 18px; }
.topbar-contact p { margin: 0; }

/* ---------- hlavička ---------- */
.site-top { position: sticky; top: 0; z-index: 40; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo { display: block; flex: none; }
.logo:hover { text-decoration: none; }
.logo img { height: 44px; width: auto; display: block; }
.logo small {
	display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em;
	color: var(--muted); text-transform: uppercase; margin-top: 2px;
}

.header-search { flex: 1 1 auto; min-width: 0; max-width: 620px; }
.header-search .search, .header-search input { min-width: 0; }
.header-search .search {
	display: flex; align-items: center; gap: 8px; height: 46px;
	background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 0 6px 0 14px;
	color: var(--muted);
}
.header-search .search:focus-within { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(0, 93, 168, .12); }
.header-search input {
	flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--text); outline: none; padding: 0;
}
.header-search input::-webkit-search-cancel-button { display: none; }
.header-search kbd {
	font: 12px var(--bs-body-font-family); color: var(--muted); border: 1px solid var(--line);
	border-radius: 6px; padding: 2px 6px; background: #fff;
}
.header-search button {
	border: 0; background: var(--blue); color: #fff; border-radius: 9px; height: 34px; padding: 0 14px; font-weight: 600;
}
.header-search button:hover { background: var(--blue-dark); }

/* našeptávač vyhledávání (template.js + plugin luki3search) */
.header-search .search { position: relative; }
.search-suggest {
	position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
	max-height: 70vh; overflow-y: auto; padding: 6px;
	background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-hover);
}
.search-suggest-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.search-suggest-item:hover, .search-suggest-item.is-active { background: var(--bg); color: var(--text); text-decoration: none; }
.search-suggest-item img, .ssi-noimg { flex: none; width: 44px; height: 44px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.ssi-main { flex: 1; min-width: 0; display: grid; }
.ssi-name { overflow: hidden; font-size: 14px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.ssi-meta { font-size: 12px; color: var(--muted); }
.ssi-price { flex: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.search-suggest mark { padding: 0; background: #fff1b8; color: inherit; border-radius: 2px; }
.search-suggest-empty { margin: 0; padding: 10px; font-size: 14px; color: var(--muted); }
.header-search .search-suggest-all {
	display: block; width: 100%; height: auto; margin-top: 4px; padding: 9px 10px;
	background: none; color: var(--blue); border-top: 1px solid var(--line); border-radius: 0; text-align: left; font-weight: 600;
}
.header-search .search-suggest-all:hover { background: var(--bg); }

.header-actions { display: flex; gap: 10px; margin-left: auto; align-items: center; flex: none; }
.header-inner { min-width: 0; }
html, body { overflow-x: clip; }
.account { display: flex; gap: 10px; align-items: center; padding: 6px 12px; border-radius: 12px; color: var(--text); }
.account:hover { background: var(--bg); text-decoration: none; color: var(--text); }
.avatar {
	width: 36px; height: 36px; border-radius: 50%; background: var(--blue-50); color: var(--blue);
	display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none;
}
.account-text small { display: block; font-size: 12px; color: var(--muted); line-height: 1.2; }
.account-text strong { display: block; font-size: 14px; line-height: 1.3; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cartbtn {
	display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px;
	background: var(--orange); color: #fff; border-radius: 12px; font-weight: 600;
}
.cartbtn:hover { background: var(--orange-dark); color: #fff; text-decoration: none; }
.cartbtn .count {
	background: #fff; color: var(--orange); border-radius: 999px; font-size: 12px; font-weight: 700;
	padding: 1px 8px; min-width: 24px; text-align: center;
}
.nav-toggle {
	display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; width: 46px; height: 46px;
	align-items: center; justify-content: center; color: var(--text);
}

/* ---------- hlavní menu (mod_menu) ---------- */
.main-nav { background: var(--blue); }
@media (min-width: 981px) {
	.main-nav.collapse:not(.show) { display: block; }
}
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav .mod-menu { display: flex; flex-wrap: wrap; gap: 4px; }
.main-nav .mod-menu > li { position: relative; }
.main-nav .mod-menu > li > a,
.main-nav .mod-menu > li > span {
	display: block; color: #fff; padding: 13px 16px; font-weight: 600; font-size: 14px;
	border-bottom: 3px solid transparent; white-space: nowrap;
}
.main-nav .mod-menu > li > a:hover,
.main-nav .mod-menu > li.active > a,
.main-nav .mod-menu > li.current > a {
	border-bottom-color: var(--yellow); background: rgba(255, 255, 255, .07); text-decoration: none;
}
.main-nav .mod-menu > li > ul {
	display: none; position: absolute; left: 0; top: 100%; min-width: 240px; z-index: 50;
	background: #fff; border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-shadow: var(--shadow-hover); padding: 6px;
}
.main-nav .mod-menu > li:hover > ul,
.main-nav .mod-menu > li:focus-within > ul { display: block; }
.main-nav .mod-menu > li > ul a { display: block; padding: 9px 12px; color: var(--text); border-radius: 8px; font-size: 14px; }
.main-nav .mod-menu > li > ul a:hover,
.main-nav .mod-menu > li > ul .current > a { background: var(--blue-50); color: var(--blue); text-decoration: none; }

/* ---------- obsah ---------- */
body.site:not(.offline-page):not(.error-page):not(.component-only) { display: flex; flex-direction: column; min-height: 100vh; }
.site-body { padding-top: 18px; padding-bottom: 60px; flex: 1 0 auto; width: 100%; }

/* bloky modulů v obsahu (chrome „section“) */
.module-section { margin-bottom: 28px; }
.module-section-title { font-size: 20px; margin: 8px 0 14px; }

/* úvodní stránka */
.home-hero {
	background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); color: #fff;
	border-radius: var(--radius); padding: 32px 36px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.home-hero h1 { color: #fff; margin: 0 0 8px; font-size: 30px; }
.home-hero p { margin: 0; color: #cfe3f5; max-width: 620px; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px !important; }
.home-hero .btn-light { background: var(--yellow); border-color: var(--yellow); color: var(--text); }
.home-hero .btn-light:hover { background: #f2b200; border-color: #f2b200; }
.home-hero .btn-outline-light:hover { color: var(--blue-dark); }
.home-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 16px; }
.home-tile {
	background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; color: var(--text);
	display: flex; flex-direction: column; gap: 4px;
}
.home-tile:hover { text-decoration: none; color: var(--text); box-shadow: var(--shadow-hover); }
.home-tile strong { font-size: 15px; }
.home-tile span { font-size: 13px; color: var(--muted); }

.mod-breadcrumbs__wrapper .breadcrumb,
.breadcrumb { background: none; padding: 0; margin: 4px 0 10px; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.mod-breadcrumbs__here { display: none; }

.page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.has-sidebar .page { grid-template-columns: 260px minmax(0, 1fr); }
.content { min-width: 0; }

.box { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 16px; }
.box-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; font-weight: 700; }
.box ul { list-style: none; margin: 0; padding: 0; }
.box li a { display: block; padding: 7px 10px; border-radius: 8px; font-size: 14px; color: var(--text); }
.box li a:hover { background: var(--bg); text-decoration: none; }
.box li.active > a, .box li.current > a, .box .VmOpen > a { background: var(--blue-50); color: var(--blue); font-weight: 600; }
.box ul ul { padding-left: 12px; }

joomla-alert, .alert { border-radius: var(--radius-sm); }

/* články */
.com-content-article, .item-page {
	background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 32px;
}
.com-content-article__body p:last-child { margin-bottom: 0; }
/* informace o článku (kategorie, datum, počet zobrazení…) se na webu nezobrazují; v Joomle navíc vypnuto
   v Možnostech článků – scripts/migrace/setup-articles.sql */
.article-info, .com-content-article .article-info, .item-page .article-info { display: none; }

/* ---------- stránka Kamenná prodejna (článek, třídy store-*) ---------- */
.store-lead { font-size: 18px; line-height: 1.6; color: var(--text); max-width: 760px; margin-bottom: 24px; }
.store-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 20px; margin-bottom: 28px; }
.store-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.store-page h2 { font-size: 19px; margin: 0 0 14px; }
.store-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.store-list li { position: relative; padding-left: 28px; color: var(--muted); }
.store-list li strong { color: var(--text); }
.store-list li::before {
	content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
	background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005da8' stroke-width='3'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.store-hours { background: #fff; box-shadow: var(--shadow); border: 0; }
.store-hours table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.store-hours th, .store-hours td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.store-hours tr:last-child th, .store-hours tr:last-child td { border-bottom: 0; }
.store-hours th { font-weight: 600; text-align: left; }
.store-hours td { text-align: right; color: var(--text); }
.store-hours tr.closed td { color: var(--red); font-weight: 600; }
.store-hours tr.today th, .store-hours tr.today td { color: var(--blue); font-weight: 700; }
.store-hours-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.store-map h2 { margin-top: 4px; }
.store-address { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: flex-start; margin-bottom: 14px; }
.store-address p { margin: 0; }
.store-entrance {
	background: var(--amber-50); color: #6b4a00; border-radius: var(--radius-sm); padding: 10px 14px; flex: 1 1 280px;
}
.store-entrance strong { color: #5a3d00; }
.store-map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 7; min-height: 320px; background: var(--bg); }
.store-map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.store-map-link { margin: 10px 0 0; font-size: 14px; }
@media (max-width: 760px) {
	.store-grid { grid-template-columns: minmax(0, 1fr); }
	.store-map-frame { aspect-ratio: 4 / 3; }
}

/* ---------- stránka Kontakty (článek, třídy contact-*; scripts/migrace/setup-pages.sql) ---------- */
.contact-lead { font-size: 18px; line-height: 1.6; max-width: 760px; margin-bottom: 22px; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 24px; }
.contact-card {
	display: flex; flex-direction: column; gap: 2px; padding: 16px 18px 16px 66px; position: relative;
	background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text);
}
a.contact-card:hover { text-decoration: none; color: var(--text); border-color: var(--blue); background: var(--blue-50); }
.contact-card strong { font-size: 16px; line-height: 1.35; }
.contact-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.contact-card::before {
	content: ""; position: absolute; left: 16px; top: 16px; width: 36px; height: 36px; border-radius: 50%;
	background: var(--blue-50) center / 18px no-repeat;
}
.contact-phone::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005da8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.contact-mail::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005da8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.contact-address::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005da8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s7-6.2 7-12a7 7 0 0 0-14 0c0 5.8 7 12 7 12z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.contact-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.contact-box h2 { font-size: 17px; margin: 0 0 10px; }
.contact-box p { color: var(--muted); }
.contact-box p + h2 { margin-top: 18px; }
.contact-box p:last-child { margin-bottom: 0; }
.contact-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 0; }
.contact-dl dt { font-weight: 600; color: var(--muted); }
.contact-dl dd { margin: 0; }
.contact-more a { font-weight: 600; }
.contact-more a::after { content: " →"; }
.contact-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 6; min-height: 300px; background: var(--bg); }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 760px) {
	.contact-grid { grid-template-columns: minmax(0, 1fr); }
	.contact-map { aspect-ratio: 4 / 3; }
}

/* ---------- VirtueMart: kategorie / vyhledávání (html/com_virtuemart/category/bs5-default.php) ---------- */
.category-view, .browse-view { min-width: 0; }
.cat-head { margin: 0 0 16px; }
.cat-head h1 { margin: 2px 0 4px; }
.cat-meta { margin: 0; font-size: 14px; color: var(--muted); }
.category-view > .vm-category-description, .browse-view .vm-category-description { color: var(--muted); margin-bottom: 16px; }
.orderby-displaynumber,
.vm-order-list,
.browse-view .vm-pagination-top {
	background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 16px; margin-bottom: 16px;
}
.vm-pagination ul, .pagination { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0; }
.pagination .page-link, .vm-pagination a, .vm-pagination span {
	border-radius: 8px; border: 1px solid var(--line); padding: 4px 10px; color: var(--text); background: #fff; display: inline-block;
}
.pagination .active .page-link, .vm-pagination .active span { background: var(--blue); border-color: var(--blue); color: #fff; }
.vm-products-type-title { font-size: 20px; margin: 26px 0 12px; }

/* podkategorie (VM bs5-categories) */
.category-view .category .spacer, .vm-subcategory {
	background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; text-align: center;
}

/* ---------- karta produktu (html/com_virtuemart/sublayouts/bs5-products.php) ---------- */
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-bottom: 24px; }
.p-card {
	background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
	display: flex; flex-direction: column; overflow: hidden; transition: transform .15s, box-shadow .15s;
}
.p-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.p-img {
	aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; padding: 14px;
	position: relative; border-bottom: 1px solid var(--line);
}
.p-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tag {
	position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700; letter-spacing: .04em;
	text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--orange); color: #fff;
}
.p-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-code { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; font-variant-numeric: tabular-nums; }
.p-code b { color: var(--text); font-weight: 600; }
.p-name { font-size: 15px; font-weight: 600; line-height: 1.3; margin: 0; min-height: 2.6em; letter-spacing: 0; }
.p-name a { color: var(--text); }
.p-name a:hover { color: var(--blue); }
.stock {
	font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
	padding: 3px 9px; border-radius: 999px; align-self: flex-start;
}
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock.ok { color: var(--green); background: var(--green-50); }
.stock.low { color: var(--amber); background: var(--amber-50); }
.stock.out { color: var(--red); background: var(--red-50); }
.p-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 6px; }
.p-price strong { font-size: 20px; letter-spacing: -.01em; }
.p-price strong .PricesalesPrice, .p-price strong .PricepriceWithoutTax { font-size: inherit; }
.p-price span { font-size: 12px; color: var(--muted); }
.p-price-vat { font-size: 12px; color: var(--muted); }
.p-price-login { font-size: 14px; font-weight: 600; color: var(--blue); }
.pack { font-size: 12px; color: var(--muted); }

/* množství + tlačítko (VirtueMart bs5-addtocartbar) */
.p-buy { margin-top: 6px; }
.addtocart-area form { margin: 0; }
.addtocart-bar .row { gap: 8px; flex-wrap: nowrap; }
.quantity-box.input-group {
	border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; height: 40px; background: #fff;
}
.quantity-box .quantity-controls { background: var(--bg); color: var(--muted); border: 0; width: 32px; padding: 0; flex: none; }
.quantity-box .quantity-controls:hover { color: var(--blue); }
.quantity-box .quantity-input { border: 0; width: 46px; font-weight: 600; box-shadow: none; }
.vm-addtocart-button-wrapper,
.vm-addtocart-button-wrapper .addtocart-button { width: 100%; }
.addtocart-button,
input.addtocart-button,
button.addtocart-button {
	width: 100%; height: 40px; border: 0; border-radius: var(--radius-sm);
	background: var(--blue); color: #fff; font-weight: 600; padding: 0 12px;
}
.addtocart-button:hover { background: var(--blue-dark); }
.addtocart-button-disabled, .addtocart-button:disabled { background: #cbd5e1; cursor: not-allowed; }
.addtocart-area .notify { height: 40px; }

/* ---------- detail produktu ---------- */
.productdetails-view {
	background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 28px;
}
.productdetails-view h1 { margin: 6px 0 10px; font-size: 26px; }
.pd-code { font-size: 13px; }
.product-short-description { color: var(--muted); margin: 12px 0; }
.pd-buybox { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); display: grid; gap: 10px; }
.pd-price strong { font-size: 28px; }
.pd-locked strong { display: block; font-size: 17px; color: var(--blue); margin-bottom: 4px; }
.pd-locked p { color: var(--muted); margin: 0 0 12px; font-size: 14px; }
.back-to-category { margin-top: 18px; }
a.p-price-login:hover { text-decoration: underline; }
.productdetails-view .main-image img, .productdetails-view .vm-product-media-container img { border-radius: var(--radius-sm); }
.productdetails-view .product-price, .productdetails-view .vm-prices-info { font-size: 15px; }
.productdetails-view .PricesalesPrice, .productdetails-view .PricepriceWithoutTax { font-size: 24px; font-weight: 700; }
.productdetails-view .product-description { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; }

/* ---------- objednávka (košík) – override html/com_virtuemart/cart ---------- */
.cart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 18px; }
.cart-head h1 { font-size: 28px; margin: 0; }
.cart-head-meta { color: var(--muted); margin: 0; display: flex; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.cart-continue { font-weight: 600; }
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.cart-main { display: grid; gap: 20px; min-width: 0; }
.cart-aside { position: sticky; top: 16px; }
.cart-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px; }
.cart-card h2 { font-size: 16px; font-weight: 700; margin: 0 0 14px; }
.cart-card fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

/* nástroje správce (změna zákazníka / skupiny) */
.cart-admin { background: var(--card); border: 1px dashed #cfd8e3; border-radius: var(--radius); margin-bottom: 20px; }
.cart-admin > summary { cursor: pointer; padding: 12px 20px; font-size: 14px; color: var(--muted); }
.cart-admin > summary span { color: var(--text); font-weight: 600; }
.cart-admin > div { margin: 0 !important; background: transparent !important; border-top: 1px solid var(--line); }
.cart-admin h2 { font-size: 15px; font-weight: 700; border: 0 !important; }

/* položky */
.cart-item {
	display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 130px 36px; align-items: center; gap: 16px;
	padding: 14px 0; border-bottom: 1px solid var(--line);
}
.cart-item:first-child { padding-top: 0; }
.cart-item:last-child { border-bottom: 0; padding-bottom: 0; }
.cart-item-img img { width: 64px; height: 64px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px; }
.cart-item-name { display: block; font-weight: 600; color: var(--text); line-height: 1.35; }
.cart-item-name:hover { color: var(--blue); }
.cart-item-code { font-size: 13px; color: var(--muted); margin-top: 2px; }
.cart-item-cfields { font-size: 13px; color: var(--muted); }
.cart-item-qty .quantity-box { width: 118px; }
.cart-item-qty .quantity-controls { width: 34px; display: grid; place-items: center; border-radius: 0; }
.cart-item-qty .quantity-input { width: 50px; text-align: center; padding: 0; }
.cart-item-price { text-align: right; }
.cart-item-total { font-weight: 700; white-space: nowrap; }
.cart-item-unit { font-size: 12px; color: var(--muted); white-space: nowrap; }
.cart-item-remove { border: 0; background: transparent; color: var(--muted); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; }
.cart-item-remove:hover { color: var(--red); background: #fdecee; }

/* adresy, doprava a platba */
.cart-addresses, .cart-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cart-address address { margin: 0 0 6px; line-height: 1.5; font-style: normal; }
.cart-address-contact { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.cart-address .details { font-size: 14px; font-weight: 600; }
.cart-address .details.invalid { color: var(--red); }
.cart-address select { max-width: 100%; margin-bottom: 8px; }
.cart-address .form-check-inline { display: block; margin: 0 0 6px; }
.cart-address-list { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: 14px; margin: 8px 0; }
.cart-address-list dt { color: var(--muted); font-weight: 400; }
.cart-address-list dd { margin: 0; }
.cart-methods .list-group-item { border-radius: var(--radius-sm) !important; border-color: var(--line); padding: 10px 14px !important; }
.cart-methods .list-group-item + .list-group-item { margin-top: 8px; border-top-width: 1px; }
.cart-methods .list-group-item-primary { background: #eef5fc; border-color: #b9d4ee; color: var(--text); }

/* poznámka a podmínky */
.cart-field .form-label { font-weight: 600; font-size: 14px; }
.cart-fields textarea { min-height: 88px; }
.vm-fieldset-tos .cart-field { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 14px; font-size: 14px; }
.vm-fieldset-tos label.tos { display: none; }
.vm-fieldset-tos input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.vm-fieldset-tos .terms-of-service label { margin: 0; }
.vm-fieldset-tos .vmicon { display: none; }

/* souhrn */
.cart-totals { margin: 0; }
.cart-total-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.cart-total-row dt { font-weight: 400; color: var(--muted); }
.cart-total-row dd { margin: 0; font-weight: 600; white-space: nowrap; }
.cart-total-row.is-small { font-size: 13px; }
.cart-total-row.is-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 18px; }
.cart-total-row.is-total dt { color: var(--text); font-weight: 700; }
.cart-total-row.is-total dd { font-weight: 800; }
.cart-vat-note { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.cart-coupon { margin-top: 12px; font-size: 14px; }
.cart-coupon summary { cursor: pointer; color: var(--blue); font-weight: 600; }
.cart-coupon .vm-coupon-container { margin-top: 8px; }
.cart-coupon .vm-coupon-container .btn { width: auto !important; }
.cart-summary .checkout-button-top .btn { height: 50px; font-size: 16px; }
.vm-button-correct, .cart-view input[type="submit"].vm-button-correct {
	background: var(--orange); border-color: var(--orange); color: #fff; border-radius: var(--radius-sm); font-weight: 600;
}
.cart-summary .checkout-button-top .vm-button-correct:hover { background: var(--orange-dark); border-color: var(--orange-dark); }

/* prázdná objednávka */
.cart-empty { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 24px; text-align: center; max-width: 560px; margin: 12px auto; }
.cart-empty h1 { font-size: 24px; }
.cart-empty p { color: var(--muted); }

@media (max-width: 980px) {
	.cart-grid { grid-template-columns: minmax(0, 1fr); }
	.cart-aside { position: static; }
}
@media (max-width: 640px) {
	.cart-card { padding: 16px; }
	.cart-item { grid-template-columns: 56px minmax(0, 1fr) auto 36px; grid-template-areas: "img info info remove" "qty qty price price"; gap: 10px 12px; }
	.cart-item-img { grid-area: img; }
	.cart-item-img img { width: 56px; height: 56px; }
	.cart-item-info { grid-area: info; }
	.cart-item-remove { grid-area: remove; justify-self: end; align-self: start; }
	.cart-item-qty { grid-area: qty; }
	.cart-item-price { grid-area: price; }
	.cart-addresses, .cart-methods { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

/* ---------- rychlá objednávka – modul mod_luki3_quickorder (extensions/) ---------- */
.quick-order {
	display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: 12px 28px; align-items: start;
	background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border-left: 4px solid var(--orange);
	padding: 18px 22px; margin-bottom: 20px;
}
.quick-order h2 { font-size: 17px; margin: 0 0 2px; }
.quick-order-intro p { margin: 0; color: var(--muted); font-size: 14px; }
.quick-order-single { display: grid; grid-template-columns: minmax(0, 1fr) 90px auto; gap: 10px; align-items: start; }
.quick-order input[type="text"], .quick-order input[type="number"], .quick-order textarea {
	width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font: inherit;
}
.quick-order textarea { height: auto; padding: 10px 12px; margin-top: 8px; font-family: ui-monospace, Consolas, monospace; font-size: 14px; }
.quick-order .btn { height: 42px; white-space: nowrap; }
.qo-hint { min-height: 18px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.qo-hint.is-ok, .qo-preview .is-ok { color: var(--green); }
.qo-hint.is-error, .qo-preview .is-error, .qo-error { color: var(--red); }
.quick-order-multi { margin-top: 6px; font-size: 14px; }
.quick-order-multi summary { cursor: pointer; color: var(--blue); font-weight: 600; }
.qo-preview { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; font-size: 13px; }
.qo-error { margin: 8px 0 0; font-size: 14px; font-weight: 600; }
@media (max-width: 860px) {
	.quick-order { grid-template-columns: minmax(0, 1fr); }
	.quick-order-single { grid-template-columns: minmax(0, 1fr) 80px; }
	.quick-order-single .btn { grid-column: 1 / -1; }
}

/* ---------- můj účet / registrace / adresa – override html/com_virtuemart/user ---------- */
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 18px; }
.acc-head h1 { font-size: 28px; margin: 0; }
.acc-lead { color: var(--muted); margin: 0; flex-basis: 100%; }
.acc-logout { display: flex; align-items: center; gap: 12px; margin: 0; }
.acc-logout span { font-weight: 600; }
.acc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.acc-main { min-width: 0; }
.acc-aside { display: grid; gap: 20px; position: sticky; top: 16px; }
.acc-narrow { max-width: 820px; }
.acc-manage { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

.acc-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.acc-narrow .acc-sections { grid-template-columns: minmax(0, 1fr); }
.acc-card { margin: 0; min-width: 0; }
/* #adminForm/#userForm kvůli „#adminForm legend { font-size: 20px }“ z vm-bs5-common.css */
.acc-card > legend, #adminForm .acc-card > legend, #userForm .acc-card > legend { font-size: 16px; font-weight: 700; margin: 0 0 14px; padding: 0; }
.acc-delimiter-userinfo { grid-column: 1 / -1; order: -1; padding-top: 14px; padding-bottom: 14px; }
.acc-delimiter-userinfo > legend { margin-bottom: 8px; }
.acc-shopper { display: flex; flex-wrap: wrap; gap: 6px 32px; font-size: 14px; }
.acc-shopper .mb-3 { margin: 0 !important; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 100%; }
.acc-shopper .form-label { margin: 0; color: var(--muted); white-space: nowrap; }
.acc-shopper input.form-control { width: auto; max-width: 100%; min-width: 0; }
.acc-shopper select { width: auto; min-width: 220px; }
.acc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.acc-field { grid-column: 1 / -1; min-width: 0; }
.acc-field.is-half { grid-column: auto; }
.acc-field .form-label { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.acc-field input.form-control, .acc-field select { height: 42px; }
.acc-field .form-text { font-size: 12px; }

.acc-shipto { margin-top: 20px; }
.acc-shipto .acc-note { margin-bottom: 12px; }
.acc-shipto .vmicon { display: none; }
.acc-shipto > a { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; }
.acc-shipto > a:hover { background: var(--bg); }
.acc-shipto ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.acc-shipto ul:empty { display: none; }
.acc-shipto li { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }

.acc-captcha { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-top: 20px; }
.acc-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.acc-actions .btn { min-width: 140px; height: 44px; }

.acc-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; margin: 0 0 8px; padding: 4px 12px; border-radius: 999px; }
.acc-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.is-verified .acc-badge { background: #e8f5e1; color: var(--green); }
.is-pending .acc-badge { background: #fff4dc; color: var(--amber); }
.acc-note { color: var(--muted); font-size: 14px; margin: 0; }
.acc-orders ul { list-style: none; margin: 0; padding: 0; }
.acc-orders li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.acc-orders li:first-child { padding-top: 0; }
.acc-orders li a { grid-column: 1; grid-row: 1; font-weight: 600; }
.acc-order-total { grid-column: 2; grid-row: 1; text-align: right; white-space: nowrap; }
.acc-order-date { grid-column: 1; grid-row: 2; color: var(--muted); font-size: 13px; }
.acc-order-status { grid-column: 2; grid-row: 2; color: var(--muted); font-size: 13px; text-align: right; }
.acc-more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; }
.acc-how ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }

/* záložky VM (správce-prodejce, úprava dodací adresy) – vmtabs.js ukáže první panel, skrytí ostatních
   dělá jinak vmpanels.css (nenačítá se) */
#ui-tabs .dyn-tabs { display: none; }
#ui-tabs > ul#tabs { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 0 20px; padding: 0; border-bottom: 1px solid var(--line); }
#ui-tabs > ul#tabs li { padding: 10px 14px; margin: 0 0 -1px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-weight: 600; cursor: pointer; }
#ui-tabs > ul#tabs li.current { color: var(--blue); border-bottom-color: var(--blue); }
#ui-tabs .vm-order-list { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 20px; }

@media (max-width: 980px) {
	.acc-grid { grid-template-columns: minmax(0, 1fr); }
	.acc-aside { position: static; }
	/* registrace na mobilu: „Už máte účet? Přihlásit se“ nad formulářem */
	.acc-grid.is-register .acc-aside { order: -1; }
}
@media (max-width: 640px) {
	.acc-sections, .acc-fields { grid-template-columns: minmax(0, 1fr); }
	.acc-field.is-half { grid-column: 1 / -1; }
	.acc-captcha { align-items: stretch; }
	.acc-actions { flex-direction: column-reverse; }
	.acc-actions .btn { width: 100%; }
}

/* ---------- moje objednávky, detail, poděkování – override html/com_virtuemart/orders, cart/bs5-orderdone ---------- */
.ord-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #eef1f5; color: var(--muted); white-space: nowrap; }
/* stavy v tomto obchodě: U Čekající, P Vyřizuje se, C Potvrzeno, S Odesláno, F Uzavřeno, X Stornováno, R Vráceno, D Nepřevzato */
.ord-badge-u { background: #fff4dc; color: var(--amber); }
.ord-badge-p, .ord-badge-c { background: #e6f0fa; color: var(--blue); }
.ord-badge-s, .ord-badge-f { background: #e8f5e1; color: var(--green); }
.ord-badge-x, .ord-badge-r, .ord-badge-d { background: #fdecee; color: var(--red); }

.ord-list { padding-top: 8px; padding-bottom: 8px; }
.ord-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) 140px; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ord-row:last-child { border-bottom: 0; }
.ord-row-head { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 0; }
.ord-row-head span:last-child, .ord-total { text-align: right; }
.ord-num a { font-weight: 700; }
.ord-invoice { font-size: 13px; margin-left: 8px; }
.ord-date { color: var(--muted); }
.ord-total { white-space: nowrap; }

.ord-head { align-items: flex-end; }
.ord-back { display: inline-block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.ord-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ord-main { display: grid; gap: 20px; }
.ord-items { width: 100%; border-collapse: collapse; font-size: 14px; }
.ord-items th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; text-align: left; padding: 0 8px 10px; border-bottom: 1px solid var(--line); }
.ord-items td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ord-items th:first-child, .ord-items td:first-child { padding-left: 0; }
.ord-items th:last-child, .ord-items td:last-child { padding-right: 0; }
.ord-items .is-num { text-align: right; white-space: nowrap; }
.ord-item-code { color: var(--muted); white-space: nowrap; }
.ord-item-name a { font-weight: 600; color: var(--text); }
.ord-item-total { font-weight: 700; }
.ord-totals { margin-top: 12px; margin-left: auto; max-width: 360px; }
.ord-vat-note { text-align: right; }
.ord-history ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ord-history li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 14px; }
.ord-history-date { color: var(--muted); }
.ord-history p { flex-basis: 100%; margin: 0; color: var(--muted); }
.ord-info { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; font-size: 14px; margin: 0; }
.ord-info dt { color: var(--muted); font-weight: 400; }
.ord-info dd { margin: 0; text-align: right; }
.ord-note { font-size: 14px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }

/* tisková verze objednávky (detail s tmpl=component) */
.ord-print { max-width: 820px; margin: 0 auto; padding: 24px; background: #fff; color: var(--text); font-size: 13px; }
.ord-print-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 14px; border-bottom: 2px solid var(--blue); }
.ord-print-head p { margin: 0; text-align: right; color: var(--muted); font-size: 12px; max-width: 420px; }
.ord-print h1 { font-size: 22px; margin: 18px 0 10px; }
.ord-print-info { display: grid; grid-template-columns: repeat(4, auto 1fr); gap: 4px 10px; margin: 0 0 16px; }
.ord-print-info dt { color: var(--muted); font-weight: 400; }
.ord-print-info dd { margin: 0; font-weight: 600; }
.ord-print-addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 18px; }
.ord-print-addresses h2 { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 4px; }
.ord-print-addresses p { margin: 0; }
.ord-print .ord-items a { color: var(--text); }
@media print {
	body { background: #fff !important; }
	.topbar, .site-top, .site-footer, .ord-head-actions, .ord-back, .acc-actions, .cart-continue { display: none !important; }
	.cart-card, .acc-card { box-shadow: none !important; border: 1px solid var(--line); break-inside: avoid; }
	.ord-print { padding: 0; }
	a { text-decoration: none !important; }
}

.order-done { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 32px; text-align: center; max-width: 620px; margin: 12px auto; }
.order-done-icon { width: 64px; height: 64px; border-radius: 50%; background: #e8f5e1; color: var(--green); display: grid; place-items: center; margin: 0 auto 16px; }
.order-done h1 { font-size: 26px; margin: 0 0 8px; }
.order-done-lead { color: var(--muted); margin: 0 auto 20px; max-width: 460px; }
.order-done-info { text-align: left; background: var(--bg); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 24px; font-size: 14px; }
.order-done-info table { width: 100%; }
.order-done-info td, .order-done-info th { padding: 4px 0; }
.order-done-info td + td { text-align: right; font-weight: 600; }
.order-done-info .btn { margin-top: 10px; }
.order-done-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.reg-done-steps { list-style: none; counter-reset: step; text-align: left; background: var(--bg); border-radius: var(--radius-sm); padding: 18px 20px; margin: 0 0 12px; display: grid; gap: 12px; font-size: 15px; }
.reg-done-steps li { counter-increment: step; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.reg-done-steps li::before { content: counter(step); width: 28px; height: 28px; border-radius: 50%; background: var(--blue-50); color: var(--blue); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.reg-done-note { font-size: 13px; color: var(--muted); margin: 0 0 22px; }

@media (max-width: 640px) {
	.ord-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
	.ord-row-head { display: none; }
	.ord-num { grid-column: 1; grid-row: 1; }
	.ord-total { grid-column: 2; grid-row: 1; }
	.ord-date { grid-column: 1; grid-row: 2; font-size: 13px; }
	.ord-status { grid-column: 2; grid-row: 2; text-align: right; }
	.ord-items thead { display: none; }
	.ord-items, .ord-items tbody, .ord-items tr, .ord-items td { display: block; width: 100%; }
	.ord-items tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
	.ord-items td { border: 0; padding: 0 !important; text-align: left !important; }
	.ord-item-name { grid-column: 1 / -1; order: -1; }
	.ord-item-code { grid-column: 1; font-size: 13px; }
	.ord-item-qty { grid-column: 2; }
	.ord-item-unit { grid-column: 1; color: var(--muted); font-size: 13px; }
	.ord-item-total { grid-column: 2; text-align: right !important; }
	.ord-totals { max-width: none; }
	.order-done { padding: 28px 18px; }
}

/* účet / objednávky / přihlášení */
.user-details, .vm-orders-list, .vm-orders-information, .com-users-login, .login {
	background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 28px;
}
/* tlačítko „Ověření přístupovým klíčem“ (plugin WebAuthn) – SVG ikona nemá rozměry, bez toho se roztáhne na šířku */
.plg_system_webauthn_login_button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.plg_system_webauthn_login_button svg { width: 20px; height: 20px; flex: none; fill: currentColor; }

/* přihlášení, zapomenuté heslo / jméno – override html/com_users/login, reset, remind */
.auth-card { max-width: 440px; margin: 12px auto; padding: 32px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.auth-head h1 { font-size: 24px; margin: 0 0 6px; }
.auth-lead { color: var(--muted); margin: 0 0 24px; }
.auth-card fieldset { margin: 0; padding: 0; border: 0; }
.auth-card .control-group { margin-bottom: 14px; }
.auth-card .control-label label { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.auth-card .form-control { height: 44px; }
.auth-card .form-control-feedback { display: block; color: var(--red); font-size: 13px; font-weight: 400; }
/* captcha: popisek „Captcha ochrana“ je navíc, widget ALTCHA má vlastní „Nejsem robot“ */
.auth-card .control-group:has(altcha-widget) { margin: 4px 0 18px; }
.auth-card .control-group:has(altcha-widget) .control-label { display: none; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 2px 0 20px; font-size: 14px; }
.auth-row .form-check { margin: 0; }
.auth-submit { height: 46px; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 16px 0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.auth-extra .btn { height: 44px; }
.auth-links { text-align: center; font-size: 14px; margin: 18px 0 0; }
.auth-register { text-align: center; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.auth-register-title { font-weight: 600; margin: 0; }
.auth-register-note { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
@media (max-width: 520px) {
	.auth-card { padding: 24px 20px; }
}

/* ---------- patička ---------- */
.site-footer { background: #0f2740; color: #9fb3c8; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap; }
.site-footer strong { color: #fff; }
.site-footer a { color: #cfe3f5; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; }

/* ---------- offline / chyba ---------- */
.offline-page, .error-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.offline-box {
	background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px;
	width: 100%; max-width: 420px; text-align: center;
}
.offline-logo { height: 60px; width: auto; margin-bottom: 12px; }
.offline-box h1 { font-size: 22px; margin: 6px 0; }
.offline-message { color: var(--muted); }
.offline-login { text-align: left; display: grid; gap: 8px; margin-top: 20px; }
.offline-login label { font-size: 13px; font-weight: 600; }
.offline-login .btn { margin-top: 8px; height: 44px; }
.error-debug { text-align: left; margin-top: 20px; font-size: 12px; overflow: auto; }

/* ---------- responzivita ---------- */
@media (max-width: 980px) {
	.has-sidebar .page { grid-template-columns: minmax(0, 1fr); }
	.has-sidebar .sidebar { order: 2; }
	.account-text { display: none; }
	.cartbtn .lbl { display: none; }
	.cartbtn { padding: 0 12px; }
	.topbar-contact { display: none; }
	.nav-toggle { display: inline-flex; }
	.main-nav.show { max-height: calc(100vh - 140px); overflow-y: auto; }
	.main-nav .mod-menu { flex-direction: column; gap: 0; padding: 6px 0; }
	.main-nav .mod-menu > li > a { padding: 11px 4px; border-bottom: 0; }
	.main-nav .mod-menu > li > ul { display: block; position: static; box-shadow: none; background: transparent; padding: 0 0 6px 14px; }
	.main-nav .mod-menu > li > ul a { color: #dbeafe; padding: 7px 4px; }
	.main-nav .mod-menu > li > ul a:hover { background: transparent; color: #fff; }
}
@media (max-width: 860px) {
	.header-inner { flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
	.header-search { order: 3; flex-basis: 100%; max-width: none; }
	.header-search kbd { display: none; }
}
@media (max-width: 640px) {
	.wrap { padding: 0 16px; }
	.p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.p-body { padding: 10px; }
	.p-name { font-size: 14px; }
	.p-price strong { font-size: 17px; }
	.addtocart-bar .row { flex-wrap: wrap; }
	.addtocart-bar .row > .col-auto { width: 100%; }
	.quantity-box.input-group { justify-content: space-between; }
	.com-content-article, .item-page, .productdetails-view, .cart-view { padding: 18px; }
	h1, .h1 { font-size: 23px; }
}
