/* ===============================================
   Velkoobchod (vojukka.cz) - layout a komponenty
   =============================================== */

/* --- Horní lišta --- */
.vo-topbar {
	background: #f7f7f7;
	border-bottom: 1px solid #e5e5e5;
	font-size: 13px;
	padding: 6px 0;
}

.vo-topbar__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

.vo-topbar__contact a,
.vo-topbar__user a {
	color: #333;
	text-decoration: none;
}

.vo-topbar__contact a:hover,
.vo-topbar__user a:hover {
	text-decoration: underline;
}

.vo-topbar__username {
	font-weight: 700;
	text-transform: uppercase;
}

/* --- Hlavička --- */
.vo-header {
	border-bottom: 3px solid #61a231;
	padding: 15px 0;
}

.vo-header__inner {
	display: flex;
	align-items: center;
	gap: 30px;
	flex-wrap: wrap;
}

.vo-header__logo img {
	max-height: 60px;
}

.vo-header__label {
	font-size: 20px;
	font-weight: 700;
	color: #61a231;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.vo-menu {
	display: flex;
	gap: 25px;
	list-style: none;
	margin: 0 auto 0 20px;
	padding: 0;
}

.vo-menu li a {
	color: #333;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	padding: 8px 0;
	border-bottom: 3px solid transparent;
}

.vo-menu li a:hover {
	color: #61a231;
	border-bottom-color: #61a231;
}

.vo-header__cart {
	margin-left: auto;
}

.vo-order-button {
	display: inline-block;
	background: #61a231;
	color: #fff !important;
	font-weight: 700;
	padding: 10px 22px;
	border-radius: 4px;
	text-decoration: none !important;
	white-space: nowrap;
}

.vo-order-button:hover {
	background: #4e8526;
}

/* --- Rozvržení stránky ceníku --- */
.vo-page {
	padding-bottom: 40px;
}

.vo-layout {
	display: flex;
	align-items: flex-start;
	gap: 25px;
}

/* --- Levý sloupec --- */
.vo-sidebar {
	flex: 0 0 250px;
	max-width: 250px;
}

.vo-sidebar__block {
	margin-bottom: 30px;
}

.vo-sidebar__title {
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 12px;
	letter-spacing: 0.5px;
}

.vo-search {
	display: flex;
}

.vo-search__input {
	flex: 1 1 auto;
	border: 1px solid #ccc;
	border-right: none;
	border-radius: 3px 0 0 3px;
	padding: 8px 10px;
	font-size: 14px;
	min-width: 0;
}

.vo-search__button {
	border: 1px solid #ccc;
	background: #fff;
	border-radius: 0 3px 3px 0;
	padding: 8px 12px;
	cursor: pointer;
}

.vo-search__button:hover {
	background: #f0f0f0;
}

.vo-search__reset {
	margin-top: 8px;
	font-size: 13px;
}

.vo-search__reset a {
	color: #c0392b;
	text-decoration: none;
}

.vo-categories {
	list-style: none;
	margin: 0;
	padding: 0;
}

.vo-categories li {
	border-bottom: 1px solid #eee;
}

.vo-categories li a {
	display: block;
	padding: 7px 5px;
	color: #333;
	font-size: 14px;
	text-decoration: none;
}

.vo-categories li a:hover {
	color: #61a231;
}

.vo-categories li.is-active a {
	color: #61a231;
	font-weight: 700;
}

.vo-categories__count {
	color: #999;
	font-size: 12px;
}

/* --- Střed - tabulka --- */
.vo-content {
	flex: 1 1 auto;
	min-width: 0;
}

.vo-results-info {
	margin-bottom: 15px;
	font-size: 14px;
	color: #555;
}

.vo-results-info__filter {
	display: inline-block;
	background: #eef5e8;
	border: 1px solid #61a231;
	border-radius: 3px;
	padding: 2px 10px;
	margin-right: 12px;
}

.vo-results-info__filter a {
	color: #c0392b;
	text-decoration: none;
	font-weight: 700;
}

/* Název produktu ve výpisu není proklik do detailu */
.vo-table .tableCategory__product--name:hover,
.vo-table .tableCategory__product--name:focus {
	color: inherit;
}

.vo-table__quantity {
	width: 80px;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 6px 8px;
	text-align: center;
	transition: border-color 0.2s, box-shadow 0.2s;
}

/* Stavy AJAX ukládání množství do košíku */
.vo-table__quantity.is-saving {
	border-color: #bbb;
	opacity: 0.7;
}

.vo-table__quantity.is-saved {
	border-color: #61a231;
	box-shadow: 0 0 0 2px rgba(97, 162, 49, 0.25);
}

.vo-table__quantity.is-clamped {
	border-color: #e67e22;
	box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.25);
}

.vo-table__submit {
	margin: 30px auto;
}

.vo-no-results,
.vo-no-access {
	background: #f7f7f7;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	padding: 30px;
	text-align: center;
	font-size: 16px;
	color: #555;
}

.vo-no-access {
	max-width: 700px;
	margin: 30px auto;
}

/* --- Pravý sloupec - abeceda --- */
.vo-alphabet {
	flex: 0 0 42px;
	max-width: 42px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	overflow: hidden;
	position: sticky;
	top: 10px;
}

.vo-alphabet__letter {
	display: block;
	text-align: center;
	padding: 3px 0;
	font-size: 13px;
	color: #61a231;
	text-decoration: none;
	border-bottom: 1px solid #f0f0f0;
}

.vo-alphabet__letter:last-child {
	border-bottom: none;
}

a.vo-alphabet__letter:hover {
	background: #eef5e8;
}

.vo-alphabet__letter--all {
	font-size: 11px;
	font-weight: 700;
	padding: 6px 0;
}

.vo-alphabet__letter--disabled {
	color: #ccc;
	cursor: default;
}

.vo-alphabet__letter.is-active {
	background: #61a231;
	color: #fff;
	font-weight: 700;
}

/* --- Záložky (Ceník / Historie objednávek / Oblíbené) --- */
.vo-tabs {
	display: flex;
	flex-wrap: wrap;
	border-bottom: 1px solid #e0e0e0;
	margin-bottom: 25px;
}

.vo-tabs__item {
	display: block;
	padding: 10px 22px;
	font-size: 15px;
	font-weight: 600;
	color: #555;
	text-decoration: none;
	border: 1px solid transparent;
	border-bottom: none;
	margin-bottom: -1px;
}

.vo-tabs__item:hover {
	color: #61a231;
	text-decoration: none;
}

.vo-tabs__item.is-active {
	color: #61a231;
	background: #fff;
	border-color: #e0e0e0;
	border-radius: 4px 4px 0 0;
	border-bottom: 1px solid #fff;
}

/* --- Ikony v tabulce (oblíbené + obrázek) --- */
.vo-table__icons {
	display: flex;
	align-items: center;
	gap: 10px;
}

.vo-fav-toggle,
.vo-img-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
	line-height: 0;
}

.vo-fav-toggle svg {
	fill: transparent;
	stroke: #999;
	stroke-width: 1.5;
	transition: fill 0.15s, stroke 0.15s;
}

.vo-fav-toggle:hover svg {
	stroke: #f0a030;
}

.vo-fav-toggle.is-active svg {
	fill: #f0a030;
	stroke: #f0a030;
}

.vo-img-toggle svg {
	fill: #999;
	transition: fill 0.15s;
}

.vo-img-toggle:hover svg,
.vo-img-toggle.is-active svg {
	fill: #61a231;
}

/* --- Rozbalovací detail s obrázkem --- */
.vo-table__detail {
	display: flex;
	gap: 30px;
	align-items: flex-start;
	background: #f7f7f7;
	border-radius: 4px;
	padding: 25px;
	margin: 10px 0;
}

.vo-table__detail[hidden] {
	display: none;
}

.vo-table__detail-image img {
	max-width: 300px;
	max-height: 400px;
	height: auto;
	display: block;
	border-radius: 3px;
}

.vo-table__detail-name {
	font-size: 26px;
	font-weight: 400;
	margin: 0 0 15px;
}

/* --- Historie objednávek --- */
.vo-orders-table {
	background: #fff;
}

/* --- Responzivita --- */
@media (max-width: 991px) {

	.vo-layout {
		flex-wrap: wrap;
	}

	.vo-sidebar {
		flex: 1 1 100%;
		max-width: 100%;
		order: 2;
	}

	.vo-content {
		flex: 1 1 100%;
		order: 3;
	}

	.vo-alphabet {
		flex: 1 1 100%;
		max-width: 100%;
		flex-direction: row;
		flex-wrap: wrap;
		order: 1;
		position: static;
		margin-bottom: 15px;
	}

	.vo-alphabet__letter {
		flex: 1 0 32px;
		border-bottom: none;
	}

	.vo-menu {
		margin-left: 0;
		gap: 15px;
	}

	.vo-header__inner {
		gap: 15px;
	}

	.vo-table__detail {
		flex-direction: column;
		gap: 15px;
	}

	.vo-table__detail-image img {
		max-width: 100%;
	}

	.vo-tabs__item {
		padding: 8px 14px;
		font-size: 14px;
	}
}
