/* Veřejný web PoužitéServery.cz. Nad Bootstrapem 5.3, barvy a rozměry jako proměnné.
   Barvy podle původního webu: námořnická modř #112D4E, modrá #3F72AF, světle modrá #DBE2EF, podklad #F9F7F7.
   Systémové písmo (nic se nestahuje). */

:root {
	--web-ink: #112d4e;
	--web-ink-2: #0c223c;
	--web-ink-line: rgba(255, 255, 255, .12);
	--web-paper: #f9f7f7;
	--web-surface: #ffffff;
	--web-line: #dbe2ef;
	--web-text: #112d4e;
	--web-muted: #5a6b80;
	--web-accent: #3f72af;
	--web-accent-hover: #335f95;
	--web-accent-soft: #dbe2ef;
	--web-signal: #8fb4e3;
	--web-stock: #2f9e5b;
	--web-offer: #a35a00;
	--web-offer-soft: #fff3df;
	--web-radius: .75rem;
	--web-shadow: 0 1px 2px rgba(17, 45, 78, .06), 0 4px 16px rgba(17, 45, 78, .08);
	--web-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;

	--bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--bs-body-color: var(--web-text);
	--bs-link-color-rgb: 63, 114, 175;
	--bs-link-hover-color-rgb: 51, 95, 149;
	--bs-border-color: var(--web-line);
	--bs-secondary-color: var(--web-muted);
}

html {
	color-scheme: light;
	accent-color: var(--web-accent);
}

::selection {
	background: var(--web-accent-soft);
	color: var(--web-ink);
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background: var(--web-paper);
}

h1, h2, h3, h4, .h1, .h2, .h3, .h4, .h5 {
	font-weight: 700;
	letter-spacing: -.015em;
}

.mono {
	font-family: var(--web-mono);
	font-size: .92em;
}

.btn-primary {
	--bs-btn-bg: var(--web-accent);
	--bs-btn-border-color: var(--web-accent);
	--bs-btn-hover-bg: var(--web-accent-hover);
	--bs-btn-hover-border-color: var(--web-accent-hover);
	--bs-btn-active-bg: var(--web-accent-hover);
	--bs-btn-active-border-color: var(--web-accent-hover);
	--bs-btn-disabled-bg: var(--web-accent);
	--bs-btn-disabled-border-color: var(--web-accent);
	font-weight: 600;
}

.btn-outline-primary {
	--bs-btn-color: var(--web-accent);
	--bs-btn-border-color: var(--web-accent);
	--bs-btn-hover-bg: var(--web-accent);
	--bs-btn-hover-border-color: var(--web-accent);
	--bs-btn-active-bg: var(--web-accent-hover);
}

:focus-visible {
	outline: 2px solid var(--web-accent);
	outline-offset: 2px;
}

/* ---------- hlavička ---------- */

.web-header {
	background: var(--web-paper);
	color: var(--web-text);
	box-shadow: 0 1px 0 var(--web-line);
	position: sticky;
	top: 0;
	z-index: 1030;
}

.web-header-bar {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: 4rem;
}

.web-logo {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	color: var(--web-ink);
	font-style: italic;
	font-weight: 800;
	text-decoration: none;
	font-size: 1.2rem;
	letter-spacing: -.01em;
	white-space: nowrap;
}

.web-logo:hover {
	color: var(--web-ink);
}

.web-logo strong,
.web-logo .web-logo-tld {
	color: var(--web-accent);
	font-weight: 800;
}

.web-logo svg {
	flex: none;
}

.web-header-links {
	display: flex;
	align-items: center;
	gap: .25rem;
	margin-left: auto;
}

.web-header-links a {
	color: var(--web-muted);
	text-decoration: none;
	padding: .5rem .75rem;
	border-radius: .5rem;
}

.web-header-links a:hover,
.web-header-links a.active {
	color: var(--web-ink);
	background: var(--web-accent-soft);
}

.web-cart-link {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-weight: 600;
	color: #fff !important;
	background: var(--web-accent) !important;
}

.web-cart-link:hover {
	background: var(--web-accent-hover) !important;
}

.web-cart-count {
	min-width: 1.4rem;
	padding: 0 .4rem;
	border-radius: 1rem;
	background: #fff;
	color: var(--web-accent);
	font-size: .8rem;
	font-weight: 700;
	text-align: center;
	line-height: 1.4rem;
}

.web-menu-button {
	display: none;
	color: var(--web-ink);
	border: 1px solid var(--web-line);
	background: none;
	border-radius: .5rem;
	padding: .4rem .6rem;
}

/* Kategorie: druhý řádek hlavičky, na telefonu vodorovně posuvný. */
.web-categories {
	background: var(--web-ink);
}

.web-categories ul {
	display: flex;
	gap: .25rem;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.web-categories ul::-webkit-scrollbar {
	display: none;
}

.web-categories a {
	display: block;
	padding: .65rem .85rem;
	color: rgba(255, 255, 255, .72);
	text-decoration: none;
	white-space: nowrap;
	font-size: .95rem;
	border-bottom: 2px solid transparent;
}

.web-categories a:hover {
	color: #fff;
}

.web-categories a.active {
	color: #fff;
	border-bottom-color: var(--web-signal);
}

@media (max-width: 767.98px) {
	.web-header-links .web-page-link {
		display: none;
	}

	.web-menu-button {
		display: inline-block;
	}

	.web-logo {
		font-size: 1.05rem;
	}
}

/* Stránky v menu na telefonu (rozbalovací pod hlavičkou). */
.web-mobile-pages {
	border-top: 1px solid var(--web-line);
	padding: .5rem 0;
}

.web-mobile-pages a {
	display: block;
	padding: .6rem 0;
	color: var(--web-text);
	text-decoration: none;
}

/* ---------- úvod ---------- */

.web-hero {
	background:
		linear-gradient(90deg, rgba(12, 34, 60, .94) 0%, rgba(17, 45, 78, .86) 45%, rgba(17, 45, 78, .55) 100%),
		url("../img/hero.jpg") center / cover no-repeat var(--web-ink);
	color: #fff;
	padding: 3.5rem 0 3rem;
	margin-bottom: 2.5rem;
}

.web-hero h1 {
	font-size: clamp(1.9rem, 4vw, 3rem);
	font-weight: 750;
	line-height: 1.1;
	max-width: 22ch;
}

.web-hero-lead {
	color: rgba(255, 255, 255, .78);
	font-size: 1.15rem;
	max-width: 46rem;
	margin: 1rem 0 0;
}

.web-section-title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.web-section-title h2 {
	font-size: 1.35rem;
	margin: 0;
}

/* ---------- výpis položek ---------- */

.web-page-head {
	padding: 1.75rem 0 .5rem;
}

.web-breadcrumb {
	--bs-breadcrumb-divider: "›";
	font-size: .9rem;
	margin-bottom: .5rem;
}

.web-breadcrumb a {
	color: var(--web-muted);
	text-decoration: none;
}

.web-breadcrumb a:hover {
	color: var(--web-accent);
}

.web-chips {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 1rem 0 1.5rem;
}

.web-chip {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .35rem .8rem;
	border: 1px solid var(--web-line);
	border-radius: 2rem;
	background: var(--web-surface);
	color: var(--web-text);
	text-decoration: none;
	font-size: .92rem;
}

.web-chip:hover {
	border-color: var(--web-accent);
	color: var(--web-accent);
}

.web-chip small {
	color: var(--web-muted);
}

.web-no-photo {
	color: #a9b3c1;
}

.web-list {
	width: 100%;
	margin-bottom: 2.5rem;
	background: var(--web-surface);
	border: 1px solid var(--web-line);
	border-radius: var(--web-radius);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
}

.web-list th {
	padding: .6rem 1rem;
	background: #eef2f8;
	color: var(--web-muted);
	font-size: .78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .06em;
	border-bottom: 1px solid var(--web-line);
}

.web-list th:last-child {
	white-space: nowrap;
}

.web-list td {
	padding: .7rem 1rem;
	border-bottom: 1px solid var(--web-line);
	vertical-align: top;
}

.web-list tr:last-child td {
	border-bottom: 0;
}

.web-list tbody tr {
	position: relative;
}

.web-list tbody tr:hover {
	background: #f4f6fa;
}

.web-section-title h2 a {
	color: inherit;
	text-decoration: none;
}

.web-section-title h2 a:hover {
	color: var(--web-accent);
}

.web-list-title {
	font-weight: 600;
	color: var(--web-text);
	text-decoration: none;
}

/* Celý řádek je odkaz (přes název). */
.web-list-title::after {
	content: "";
	position: absolute;
	inset: 0;
}

.web-list tbody tr:hover .web-list-title {
	color: var(--web-accent);
}

.web-list-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .2rem 1rem;
	margin-top: .2rem;
	font-size: .82rem;
	color: var(--web-muted);
}

.web-list-price {
	width: 1%;
	text-align: right;
	white-space: nowrap;
	font-weight: 700;
}

.web-list-price small {
	display: block;
	color: var(--web-muted);
	font-weight: 400;
	font-size: .75rem;
}

.web-price {
	font-weight: 750;
	font-size: 1.1rem;
	white-space: nowrap;
}

.web-price small {
	display: block;
	color: var(--web-muted);
	font-weight: 400;
	font-size: .75rem;
}

.web-price-offer {
	color: var(--web-offer);
}

.web-stock {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	font-size: .85rem;
	color: var(--web-muted);
	white-space: nowrap;
}

.web-stock::before {
	content: "";
	width: .5rem;
	height: .5rem;
	border-radius: 50%;
	background: var(--web-stock);
}

.web-stock.is-out::before {
	background: #bcc8da;
}

.web-tag {
	display: inline-block;
	padding: .1rem .5rem;
	border-radius: .35rem;
	background: var(--web-offer-soft);
	color: var(--web-offer);
	font-size: .75rem;
	font-weight: 600;
}

/* Technický stav: barevná tečka + text (F-05). */
.tech-state {
	display: inline-flex;
	align-items: baseline;
	gap: .45rem;
	font-size: .85rem;
}

.tech-state::before {
	content: "";
	flex: none;
	width: .6rem;
	height: .6rem;
	border-radius: 50%;
	background: currentColor;
	transform: translateY(.05rem);
}

.web-updated {
	color: var(--web-muted);
	font-size: .875rem;
	margin: -1rem 0 3rem;
}

.web-empty {
	padding: 3rem 1.5rem;
	text-align: center;
	background: var(--web-surface);
	border: 1px dashed var(--web-line);
	border-radius: var(--web-radius);
	color: var(--web-muted);
	margin-bottom: 3rem;
}

@media (max-width: 575.98px) {
	.web-list td {
		padding: .6rem .75rem;
	}

	.web-hero {
		padding: 2.25rem 0 2rem;
		margin-bottom: 1.75rem;
	}
}

/* ---------- detail položky ---------- */

.web-detail {
	padding-top: 1.5rem;
	padding-bottom: 3rem;
}

.web-detail h1 {
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	margin-bottom: .5rem;
}

.web-gallery-main {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	background: var(--web-surface);
	border: 1px solid var(--web-line);
	border-radius: var(--web-radius);
	overflow: hidden;
}

.web-gallery-main img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.web-gallery-thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
	gap: .5rem;
	margin-top: .6rem;
}

.web-gallery-thumbs button {
	padding: 0;
	aspect-ratio: 1;
	border: 2px solid transparent;
	border-radius: .5rem;
	overflow: hidden;
	background: var(--web-surface);
	box-shadow: 0 0 0 1px var(--web-line);
}

.web-gallery-thumbs button.active {
	border-color: var(--web-accent);
}

.web-gallery-thumbs img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.web-specs {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: .4rem 1.25rem;
	margin: 1.25rem 0;
	font-size: .95rem;
}

.web-specs dt {
	color: var(--web-muted);
	font-weight: 400;
}

.web-specs dd {
	margin: 0;
}

.web-buy {
	padding: 1.25rem;
	background: var(--web-surface);
	border: 1px solid var(--web-line);
	border-radius: var(--web-radius);
	box-shadow: var(--web-shadow);
}

.web-buy .web-price {
	font-size: 1.9rem;
	line-height: 1.1;
}

.web-buy .web-price small {
	font-size: .9rem;
	margin-top: .25rem;
}

.web-offer-note {
	margin-top: .6rem;
	padding: .75rem .9rem;
	border-radius: .5rem;
	background: var(--web-offer-soft);
	color: #6b3d00;
	font-size: .9rem;
}

.web-qty {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--web-line);
	border-radius: .5rem;
	overflow: hidden;
	width: 8.5rem;
	flex: none;
}

.web-qty button {
	width: 2.5rem;
	border: 0;
	background: #eef2f8;
	font-size: 1.2rem;
	line-height: 1;
}

.web-qty button:hover {
	background: #dbe2ef;
}

.web-qty input {
	width: 100%;
	min-width: 0;
	border: 0;
	text-align: center;
	font-weight: 600;
	-moz-appearance: textfield;
}

.web-qty input::-webkit-inner-spin-button,
.web-qty input::-webkit-outer-spin-button {
	-webkit-appearance: none;
}

.web-notice {
	display: flex;
	gap: .75rem;
	padding: .85rem 1rem;
	margin-bottom: 1rem;
	border-radius: .6rem;
	background: var(--web-offer-soft);
	color: #6b3d00;
	font-size: .95rem;
}

.web-notice svg {
	flex: none;
	margin-top: .15rem;
}

.web-description {
	max-width: 50rem;
	font-size: 1.02rem;
	line-height: 1.65;
}

.web-description h2, .web-description h3 {
	font-size: 1.15rem;
	margin-top: 1.5rem;
}

.web-description img {
	max-width: 100%;
}

.web-description pre {
	padding: 1rem;
	background: var(--web-ink);
	color: #e2e8f0;
	border-radius: .5rem;
	font-size: .85rem;
}

.web-panel {
	padding: 1.25rem 1.4rem;
	background: var(--web-surface);
	border: 1px solid var(--web-line);
	border-radius: var(--web-radius);
	margin-bottom: 1.25rem;
}

.web-panel h2 {
	font-size: 1.05rem;
	margin-bottom: .75rem;
}

.web-files {
	margin: 0;
	padding: 0;
	list-style: none;
}

.web-files li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: .45rem 0;
	border-bottom: 1px solid var(--web-line);
}

.web-files li:last-child {
	border-bottom: 0;
}

/* ---------- poptávka ---------- */

.web-cart-table {
	--bs-table-bg: var(--web-surface);
	border: 1px solid var(--web-line);
	border-radius: var(--web-radius);
	overflow: hidden;
	border-collapse: separate;
	border-spacing: 0;
}

.web-cart-table > :not(caption) > * > * {
	padding: .8rem 1rem;
}

.web-cart-table thead th {
	color: var(--web-muted);
	font-size: .8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	background: #f4f6fa;
}

.web-cart-table tbody tr:last-child > * {
	border-bottom: 0;
}

@media (max-width: 575.98px) {
	.web-cart-table thead {
		display: none;
	}

	.web-cart-table tr {
		display: grid;
		grid-template-columns: 1fr auto;
		gap: .4rem .75rem;
		padding: .8rem 1rem;
		border-bottom: 1px solid var(--web-line);
	}

	.web-cart-table tr > td {
		padding: 0 !important;
		border: 0;
	}

	.web-cart-table td:first-child {
		grid-column: 1 / -1;
	}
}

.web-steps {
	counter-reset: step;
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
}

.web-steps li {
	counter-increment: step;
	position: relative;
	padding: 0 0 .9rem 2.4rem;
	color: var(--web-muted);
}

.web-steps li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: -.1rem;
	width: 1.7rem;
	height: 1.7rem;
	border-radius: 50%;
	background: var(--web-accent-soft);
	color: var(--web-accent);
	font-weight: 700;
	font-size: .85rem;
	text-align: center;
	line-height: 1.7rem;
}

.web-steps strong {
	color: var(--web-text);
}

/* ---------- obsah stránek a banner ---------- */

.web-banner {
	display: flex;
	gap: .75rem;
	align-items: flex-start;
	padding: .9rem 1.1rem;
	margin-bottom: 1rem;
	background: var(--web-accent-soft);
	border: 1px solid #c3d0e6;
	border-left: 4px solid var(--web-accent);
	border-radius: .6rem;
	color: var(--web-ink);
}

.web-banner p:last-child {
	margin-bottom: 0;
}

.web-prose {
	max-width: 46rem;
	font-size: 1.04rem;
	line-height: 1.7;
	padding-bottom: 3rem;
}

.web-prose h2 {
	font-size: 1.35rem;
	margin-top: 2rem;
}

.web-prose h3 {
	font-size: 1.1rem;
	margin-top: 1.5rem;
}

.web-prose-columns {
	max-width: none;
}

.web-prose-columns > [class*="col-"] > :first-child {
	margin-top: 0;
}

.web-prose .table {
	font-size: .95rem;
}

.web-figure img {
	max-width: 100%;
	height: auto;
	border-radius: var(--web-radius);
}

.web-figure figcaption {
	color: var(--web-muted);
	font-size: .85rem;
	margin-top: .35rem;
}

/* ---------- patička ---------- */

.web-footer {
	margin-top: auto;
	background: var(--web-ink);
	color: rgba(255, 255, 255, .7);
	padding: 2.5rem 0 2rem;
	font-size: .92rem;
}

.web-footer a {
	color: rgba(255, 255, 255, .85);
	text-decoration: none;
}

.web-footer a:hover {
	color: #fff;
}

.web-footer h2 {
	color: #fff;
	font-size: .8rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	margin-bottom: .9rem;
}

.web-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.web-footer li {
	margin-bottom: .45rem;
}

.web-footer-bottom {
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--web-ink-line);
	font-size: .85rem;
}

/* Hláška „Přidáno do poptávky“. */
.web-toast {
	position: fixed;
	left: 50%;
	bottom: 1.25rem;
	z-index: 1080;
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: .8rem 1rem .8rem 1.2rem;
	background: var(--web-ink);
	color: #fff;
	border-radius: .75rem;
	box-shadow: 0 10px 30px rgba(17, 45, 78, .3);
	transform: translate(-50%, 150%);
	visibility: hidden;
	transition: transform .25s ease, visibility 0s linear .25s;
	width: max-content;
	max-width: calc(100% - 2rem);
}

.web-toast.show {
	transform: translate(-50%, 0);
	visibility: visible;
	transition: transform .25s ease;
}

.web-toast a {
	color: var(--web-signal);
	font-weight: 600;
	white-space: nowrap;
}

/* Logo v tmavé patičce: světlejší modrá kvůli kontrastu. */
.web-footer .web-logo,
.web-footer .web-logo:hover {
	color: #fff;
}

.web-footer .web-logo strong,
.web-footer .web-logo .web-logo-tld {
	color: var(--web-signal);
}
