/* Wicont – vzhled obchodu. Čistý styl, rozvržení podle Vento Bohemia. */
.wsh {
	--ink: #16202e;
	--muted: #5b6575;
	--line: #e4e7ec;
	--soft: #f5f7fa;
	--accent: #0a76b8;
	--brand: #00aff2;
	--ok: #13803a;
	--sale: #c62839;
	--r: 10px;
	color: var(--ink);
	font-size: 15px;
	line-height: 1.5;
	padding: 8px 0 48px;
}
.wsh *, .wsh *::before, .wsh *::after { box-sizing: border-box; }
.wsh a { color: inherit; text-decoration: none; }
.wsh a:hover { color: var(--accent); }
.wsh :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.wsh-ico { flex: none; }
.wsh-h1 { font-size: 26px; font-weight: 700; margin: 0 0 16px; letter-spacing: -.01em; }
.wsh-h2 { font-size: 20px; font-weight: 700; margin: 0 0 14px; letter-spacing: -.01em; }
.wsh .page-title, .wsh .woocommerce-products-header__title { font-size: 26px !important; font-weight: 700 !important; margin: 0 0 12px !important; text-align: left !important; }
.wsh .term-description { color: var(--muted); max-width: 70ch; }

/* ---------- lišta obchodu ---------- */
.wsh-bar { border: 1px solid var(--line); border-radius: var(--r); background: #fff; margin: 0 0 14px; }
.wsh-bar-top { display: flex; align-items: center; gap: 16px; padding: 12px 16px; }
.wsh-bar-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; white-space: nowrap; }
.wsh-bar-title .wsh-ico { color: var(--brand); }
.wsh-search { flex: 1; display: flex; min-width: 0; }
.wsh-search input[type=search] { flex: 1; min-width: 0; height: 44px; border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; padding: 0 14px; font-size: 15px; background: var(--soft); color: var(--ink); box-shadow: none; margin: 0; }
.wsh-search input[type=search]:focus { background: #fff; border-color: var(--brand); outline: none; }
.wsh-search button { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 18px; border: 0; border-radius: 0 8px 8px 0; background: var(--ink); color: #fff; font-weight: 600; cursor: pointer; font-size: 15px; margin: 0; }
.wsh-search button:hover { background: var(--accent); }
.wsh-account { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; white-space: nowrap; font-weight: 600; }
.wsh-account:hover { border-color: var(--brand); }
.wsh-cart { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; white-space: nowrap; font-weight: 600; }
.wsh-cart-n { position: absolute; top: -7px; left: 26px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 11px; line-height: 19px; text-align: center; font-weight: 700; }
.wsh-nav { border-top: 1px solid var(--line); }
.wsh-nav > ul { display: flex; flex-wrap: wrap; margin: 0; padding: 0 8px; list-style: none; }
.wsh-nav-item { position: relative; margin: 0; }
.wsh-nav-item > a { display: inline-flex; align-items: center; gap: 4px; padding: 12px 12px; font-weight: 600; font-size: 14.5px; border-bottom: 2px solid transparent; }
.wsh-nav-item > a .wsh-ico { width: 15px; height: 15px; color: var(--muted); }
.wsh-nav-item.is-active > a { border-bottom-color: var(--brand); }
.wsh-nav-new > a { color: var(--accent); }
.wsh-drop { display: none; position: absolute; z-index: 1000; top: 100%; left: 0; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 32px rgba(22, 32, 46, .12); padding: 8px; }
.wsh-nav-item:hover > .wsh-drop, .wsh-nav-item:focus-within > .wsh-drop { display: block; }
.wsh-drop ul { list-style: none; margin: 0; padding: 0; }
.wsh-drop a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 6px; }
.wsh-drop a:hover { background: var(--soft); }
.wsh-drop small { color: var(--muted); }
.wsh-drop-all { font-weight: 600; border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0 !important; margin-bottom: 4px; }

/* ---------- drobečky ---------- */
.wsh-crumbs { font-size: 13px; color: var(--muted); margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wsh-crumbs a { color: var(--muted); }
.wsh-crumbs span { color: #a3aab5; }

/* ---------- rozvržení ---------- */
.wsh-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.wsh-main { min-width: 0; }

/* ---------- levý sloupec ---------- */
.wsh-side { position: sticky; top: 16px; }
.wsh-side-box { border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; }
.wsh-side-box > summary { list-style: none; cursor: default; padding: 12px 16px; font-weight: 700; background: var(--ink); color: #fff; }
.wsh-side-box > summary::-webkit-details-marker { display: none; }
.wsh-side ul { list-style: none; margin: 0; padding: 0; }
.wsh-tree-l0 { padding: 6px 0 !important; }
.wsh-side li a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 16px; font-size: 14px; line-height: 1.35; }
.wsh-side li a small { color: #9aa2ad; font-size: 12px; padding-top: 1px; }
.wsh-tree-l0 > li > a { font-weight: 600; }
.wsh-tree-l1 a { padding-left: 26px !important; }
.wsh-tree-l2 a { padding-left: 38px !important; font-size: 13.5px !important; }
.wsh-tree-l3 a { padding-left: 50px !important; font-size: 13.5px !important; }
.wsh-side li.is-open > a { color: var(--accent); }
.wsh-side li.is-here > a { background: #eaf6fd; color: var(--accent); font-weight: 700; box-shadow: inset 3px 0 0 var(--brand); }
.wsh-side li a:hover { background: var(--soft); }
.wsh-side-help { margin-top: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--soft); font-size: 14px; display: grid; gap: 2px; }
.wsh-side-help a { color: var(--accent) !important; font-weight: 600; }

/* ---------- úvod: dlaždice kategorií ---------- */
.wsh-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 0 0 18px; }
.wsh-tile { display: flex; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: border-color .15s, box-shadow .15s; }
.wsh-tile:hover { border-color: #cfd5dd; box-shadow: 0 6px 20px rgba(22, 32, 46, .06); }
.wsh-tile-img { flex: 0 0 84px; height: 84px; display: flex; align-items: center; justify-content: center; background: var(--soft); border-radius: 8px; overflow: hidden; }
.wsh-tile-img img { max-width: 76px !important; max-height: 76px !important; width: auto !important; height: auto !important; object-fit: contain; margin: 0 !important; padding: 0 !important; mix-blend-mode: multiply; }
.wsh-tile-body { min-width: 0; }
.wsh-tile h3 { font-size: 15.5px; font-weight: 700; margin: 2px 0 6px; line-height: 1.3; }
.wsh-tile ul { list-style: none; margin: 0; padding: 0; }
.wsh-tile li { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.wsh-tile li a::before { content: "– "; color: var(--brand); }
.wsh-tile p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* ---------- pruh výhod ---------- */
.wsh-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--soft); margin: 0 0 28px; }
.wsh-benefit { display: flex; align-items: center; gap: 12px; padding: 16px; }
.wsh-benefit + .wsh-benefit { border-left: 1px solid var(--line); }
.wsh-benefit .wsh-ico { width: 30px; height: 30px; color: var(--accent); }
.wsh-benefit strong { display: block; font-size: 14px; }
.wsh-benefit span { display: block; font-size: 13px; color: var(--muted); }

/* ---------- sekce ---------- */
.wsh-section { margin: 0 0 32px; }
.wsh-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.wsh-section-head a { color: var(--accent) !important; font-weight: 600; font-size: 14px; }

/* ---------- podkategorie ---------- */
.wsh-subcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 6px 0 22px; }
.wsh-subcat { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.wsh-subcat:hover { border-color: var(--brand); }
.wsh-subcat-img { flex: 0 0 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--soft); border-radius: 6px; overflow: hidden; }
.wsh-subcat-img img { max-width: 44px !important; max-height: 44px !important; width: auto !important; height: auto !important; margin: 0 !important; padding: 0 !important; mix-blend-mode: multiply; }
.wsh-subcat-name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.wsh-subcat-name small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }

/* ---------- řazení ---------- */
.wsh-sortbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.wsh-sortbar .woocommerce-notices-wrapper { flex-basis: 100%; }
.wsh-sortbar .woocommerce-result-count { margin: 0 !important; text-align: left !important; color: var(--muted); font-size: 14px; float: none !important; }
.wsh-sortbar .woocommerce-ordering { margin: 0 !important; float: none !important; }
.wsh-sortbar select { height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: #fff; font-size: 14px; }

/* ---------- mřížka a karty ---------- */
.wsh-grid::before, .wsh-grid::after { content: none !important; display: none !important; }
.wsh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 14px; list-style: none; margin: 0 0 24px; padding: 0; }
.wsh .wsh-card { text-align: left !important; }
.wsh-card { display: flex; flex-direction: column; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: border-color .15s, box-shadow .15s; }
.wsh-card:hover { border-color: #cfd5dd; box-shadow: 0 8px 24px rgba(22, 32, 46, .07); }
.wsh-card-link { display: flex; flex-direction: column; flex: 1; }
.wsh-card-top { display: flex; justify-content: space-between; align-items: center; min-height: 20px; }
.wsh-card-code { font-size: 12px; color: #8a929e; }
.wsh-badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: var(--sale); padding: 2px 7px; border-radius: 4px; }
.wsh-card-img { display: flex; align-items: center; justify-content: center; height: 180px; margin: 6px 0 10px; }
.wsh .wsh-card-img img { max-height: 180px !important; max-width: 100% !important; width: auto !important; height: auto !important; object-fit: contain; margin: 0 !important; padding: 0 !important; }
.wsh-card-title { font-size: 14.5px !important; font-weight: 600 !important; line-height: 1.35 !important; margin: 0 0 10px !important; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.95em; text-align: left !important; }
.wsh-card-link:hover .wsh-card-title { color: var(--accent); }
.wsh-card-foot { display: grid; gap: 6px; margin-top: auto; }
.wsh .wsh-card-price .price, .wsh .wsh-card-price .amount, .wsh .related.products .wsh-card-price .amount { text-align: left !important; color: inherit !important; font-size: inherit !important; font-weight: inherit !important; margin: 0 !important; display: inline !important; min-height: 0 !important; }
.wsh .wsh-card-price { display: block !important; font-size: 19px !important; font-weight: 800; color: var(--ink); line-height: 1.2; }
.wsh-card-price del { font-size: 14px; font-weight: 400; color: var(--muted); margin-right: 6px; }
.wsh-card-price ins { text-decoration: none; color: var(--sale); }

/* tlačítka */
body.wsh-on .wsh .wsh-card .button, body.wsh-on .wsh .wsh-buy form.cart button.single_add_to_cart_button.button {
	display: inline-flex !important; align-items: center; justify-content: center; gap: 6px;
	width: 100%; min-height: 42px; padding: 10px 14px !important; margin: 4px 0 0 !important;
	background: var(--ink) !important; color: #fff !important; border: 0 !important; border-radius: 8px !important;
	font-size: 14.5px !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: 0 !important; line-height: 1.2 !important;
	box-shadow: none !important; text-align: center; cursor: pointer;
}
body.wsh-on .wsh .wsh-card .button:hover, body.wsh-on .wsh .wsh-buy form.cart button.single_add_to_cart_button.button:hover { background: var(--accent) !important; }
.wsh .wsh-card .button.loading { opacity: .7; }
.wsh .wsh-card .added_to_cart { font-size: 13px; color: var(--accent) !important; text-align: center; font-weight: 600; padding-top: 2px; }

/* dostupnost */
.wsh-stock { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; }
.wsh-stock .wsh-ico { width: 16px; height: 16px; }
.wsh-stock.is-in { color: var(--ok); }
.wsh-stock.is-back { color: #a86200; }
.wsh-stock.is-out { color: var(--sale); }

/* stránkování */
.wsh .woocommerce-pagination ul { display: flex !important; gap: 6px; border: 0 !important; justify-content: center; }
.wsh .woocommerce-pagination ul li { border: 0 !important; }
.wsh .woocommerce-pagination ul li a, .wsh .woocommerce-pagination ul li span { min-width: 40px; height: 40px; display: inline-flex !important; align-items: center; justify-content: center; border: 1px solid var(--line) !important; border-radius: 8px; padding: 0 10px !important; }
.wsh .woocommerce-pagination ul li span.current { background: var(--ink) !important; color: #fff !important; border-color: var(--ink) !important; }

/* ---------- detail produktu ---------- */
body.wsh-on.single-product .wsh div.product { display: grid !important; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0 36px; align-items: start; }
body.wsh-on.single-product .wsh div.product > * { grid-column: 1 / -1; }
body.wsh-on.single-product .wsh div.product .woocommerce-product-gallery {
	grid-column: 1; width: auto !important; float: none !important; margin: 0 !important;
	border: 1px solid var(--line); border-radius: var(--r); padding: 16px; background: #fff;
}
body.wsh-on.single-product .wsh div.product .woocommerce-product-gallery img { max-height: 460px !important; width: 100% !important; object-fit: contain !important; }
body.wsh-on.single-product .wsh div.product .woocommerce-product-gallery .flex-control-thumbs { margin-top: 10px !important; display: flex; gap: 8px; }
body.wsh-on.single-product .wsh div.product .woocommerce-product-gallery .flex-control-thumbs li { width: 64px !important; }
body.wsh-on.single-product .wsh div.product .summary { grid-column: 2; width: auto !important; float: none !important; margin: 0 !important; }
body.wsh-on.single-product .wsh span.onsale { grid-column: 1; grid-row: 1; z-index: 3; align-self: start; justify-self: start; margin: 12px; background: var(--sale) !important; border-radius: 4px !important; min-height: 0 !important; min-width: 0 !important; padding: 2px 8px !important; line-height: 1.6 !important; }
.wsh-p-meta { display: flex; gap: 14px; font-size: 13px; color: var(--muted); margin: 2px 0 4px; }
.wsh-p-meta span:first-child:not(:only-child) { font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .03em; }
.wsh .wsh-p-title { font-size: 28px !important; line-height: 1.2 !important; font-weight: 700 !important; margin: 0 0 12px !important; letter-spacing: -.01em; }
.wsh-p-short { color: #39424f; font-size: 15.5px; }
.wsh-p-short p { margin: 0 0 8px; }
.wsh-buy { margin: 16px 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--soft); display: grid; gap: 8px; }
.wsh-buy-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.wsh-price { font-size: 32px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.wsh-buy-price del { color: var(--muted); }
.wsh-price-ex { font-size: 14px; color: var(--muted); }
.wsh .wsh-buy form.cart { display: flex !important; gap: 10px; align-items: stretch; margin: 6px 0 0 !important; padding: 0 !important; border: 0 !important; }
.wsh .wsh-buy form.cart .quantity { margin: 0 !important; float: none !important; }
.wsh .wsh-buy form.cart .quantity .qty { width: 72px !important; height: 46px !important; border: 1px solid var(--line) !important; border-radius: 8px !important; text-align: center; font-size: 16px; padding: 0 !important; margin: 0 !important; background: #fff; }
body.wsh-on .wsh .wsh-buy form.cart button.single_add_to_cart_button.button { flex: 1; min-height: 46px; margin: 0 !important; font-size: 16px !important; }
.wsh-info { margin: 0 0 14px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.wsh-info h2 { font-size: 13px !important; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 !important; padding: 10px 14px; background: var(--soft); border-bottom: 1px solid var(--line); font-weight: 700 !important; }
.wsh-info table { width: 100%; border-collapse: collapse; margin: 0 !important; border: 0 !important; }
.wsh-info th, .wsh-info td { padding: 9px 14px !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; text-align: left; font-size: 14px; background: #fff !important; vertical-align: top; }
.wsh-info tr:last-child th, .wsh-info tr:last-child td { border-bottom: 0 !important; }
.wsh-info th { width: 38%; color: var(--muted); font-weight: 500; }
.wsh-info td { font-weight: 600; }
.wsh-info td a { color: var(--accent) !important; }
.wsh-delivery { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wsh-delivery li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.wsh-delivery .wsh-ico { color: var(--accent); }
.wsh-delivery strong { color: var(--ink); }
.wsh-p-desc { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.wsh-p-desc-body { max-width: 78ch; font-size: 15.5px; color: #2c3440; }
.wsh-p-desc-body h3 { font-size: 17px; margin: 24px 0 10px; padding-top: 18px; border-top: 1px dashed var(--line); }
.wsh-p-desc-body ul { padding-left: 20px; }
.wsh-p-desc-body .wiv-ghs img { border: 1px solid var(--line); border-radius: 6px; padding: 4px; background: #fff; }
.wsh .related.products { margin-top: 36px; }
.wsh .related.products > h2 { font-size: 20px !important; font-weight: 700; margin: 0 0 14px !important; text-align: left !important; }

/* staré úpravy (Přizpůsobit → Další CSS) – neutralizace v obchodě */
.wsh #product-nav { display: none !important; }
body.wsh-on .wsh .woocommerce-tabs { display: none !important; }

/* ---------- tablet a mobil ---------- */
@media (max-width: 1000px) {
	.wsh-layout { grid-template-columns: 1fr; gap: 14px; }
	.wsh-side { position: static; }
	.wsh-side-box > summary { cursor: pointer; display: flex; justify-content: space-between; }
	.wsh-side-box > summary::after { content: "▾"; }
	.wsh-side-box[open] > summary::after { content: "▴"; }
	.wsh-side-help { display: none; }
	.wsh-benefits { grid-template-columns: repeat(2, 1fr); }
	.wsh-benefit:nth-child(3) { border-left: 0; }
	.wsh-benefit:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 782px) {
	.wsh { font-size: 14.5px; }
	.wsh-bar-top { flex-wrap: wrap; gap: 10px; padding: 10px 12px; }
	.wsh-search { order: 3; flex-basis: 100%; }
	.wsh-account { margin-left: auto; padding: 0 11px; }
	.wsh-account-t { display: none; }
	.wsh-search button span { display: none; }
	.wsh-nav > ul { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.wsh-nav > ul::-webkit-scrollbar { display: none; }
	.wsh-nav-item > a { white-space: nowrap; padding: 11px 10px; }
	.wsh-nav-item > a .wsh-ico, .wsh-drop { display: none !important; }
	.wsh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.wsh-card { padding: 10px; }
	.wsh-card-img { height: 130px; }
	.wsh .wsh-card-img img { max-height: 130px !important; }
	.wsh-card-title { font-size: 13.5px !important; }
	.wsh .wsh-card-price { font-size: 17px !important; }
	.wsh .wsh-card .button { font-size: 13.5px !important; padding: 9px 8px !important; }
	.wsh-benefits { grid-template-columns: 1fr; }
	.wsh-benefit + .wsh-benefit { border-left: 0; border-top: 1px solid var(--line); }
	.wsh-benefit { padding: 12px 14px; }
	.wsh-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.wsh-tile { flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 12px 10px; }
	.wsh-tile-img { flex-basis: auto; width: 64px; height: 64px; }
	.wsh-tile-img img { max-width: 56px !important; max-height: 56px !important; }
	.wsh-tile h3 { font-size: 14px; margin: 0; }
	.wsh-tile ul, .wsh-tile p { display: none; }
	.wsh-subcats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.wsh-subcat { padding: 8px; }
	.wsh-subcat-img { flex-basis: 36px; height: 36px; }
	body.wsh-on.single-product .wsh div.product { grid-template-columns: 1fr; }
	body.wsh-on.single-product .wsh div.product .summary { grid-column: 1; margin-top: 16px !important; }
	.wsh .wsh-p-title { font-size: 23px !important; }
	.wsh-price { font-size: 28px; }
}

/* ---------- QR platba (stránka po objednávce) ---------- */
.wsh-qrpay { border: 1px solid #e4e7ec; border-radius: 10px; padding: 18px; margin: 0 0 24px; background: #f5f7fa; }

/* Rozbalovací menu kategorií musí být nad lupou galerie produktu (WooCommerce jí dává z-index 99). */
.wsh-bar { position: relative; z-index: 120; }
body.wsh-on .woocommerce-product-gallery__trigger { z-index: 5 !important; }
