/*
 * Motiv BESTOPRO: věrná kopie vzhledu původního PrestaShop webu (šablona pt_furnitureinterior).
 * Desktop (>= 1200 px) podle starého webu, nižší šířky jsou responzivní doplněk (breakpointy 480 / 768 / 1024 / 1280).
 */

/* ==========================================================================
   1. Písmo a proměnné
   ========================================================================== */

/* Oswald (variabilní 300-700), hostováno lokálně; latin-ext obsahuje české znaky. */
@font-face {
	font-family: "Oswald";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/oswald-latin-ext.woff2") format("woff2");
	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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Oswald";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/oswald-latin.woff2") format("woff2");
	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 {
	--orange: #ff7800;
	--green: #70c500;
	--green-slogan: #70bb1c;
	--dark: #141414;
	--dark-2: #1e1e1e;
	--topbar: #ebebeb;
	--line: #dcdcdc;
	--line-2: #ccc;
	--link-header: #969696;
	--footer-text: #c8c8c8;
	--text: #555;
	--link: #646464;
	--font-head: "Oswald", Arial, Verdana, sans-serif;
	--font-body: Arial, Verdana, sans-serif;
	--container: 1180px;
}

/* ==========================================================================
   2. Základ (reset a typografie)
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { color: #000; background: #fff; overflow-x: hidden; -webkit-text-size-adjust: 100%; }

body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend,
input, button, textarea, p, blockquote, th, td { margin: 0; padding: 0; }

body {
	font: normal 16px/1.4 var(--font-body);
	color: var(--text);
	background: #fff;
}

table { border-collapse: collapse; border-spacing: 0; }
fieldset, img { border: 0; }
img { max-width: 100%; height: auto; vertical-align: middle; }
ul, ol, li { list-style: none; }
sup { vertical-align: baseline; color: var(--orange); }
p { margin: 5px 0; }
em { font-style: italic; }

h1, h2 {
	margin-bottom: 20px;
	color: var(--dark);
	font-family: var(--font-head);
	text-transform: uppercase;
	font-size: 18px;
}

a { color: var(--link); text-decoration: none; cursor: pointer; transition: all .5s ease 0s; }
a:hover { color: var(--orange); }

input, button, textarea, select { font-family: inherit; font-size: 100%; }
input[type="text"], input[type="email"], input[type="search"], input[type="tel"], input[type="number"], input[type="url"] {
	-webkit-appearance: none;
	appearance: none;
	border: 1px solid var(--line);
	border-radius: 0;
	background: #fff;
	height: 30px;
	line-height: 30px;
	padding: 0 5px;
	color: #aaa;
}
select { border: 1px solid var(--line); padding: 5px; line-height: 25px; height: 30px; color: #aaa; background: #fff; border-radius: 0; }
textarea { border: 1px solid var(--line); padding: 5px; min-height: 100px; color: #aaa; border-radius: 0; }

/* Tlačítko (OK u řazení/stránkování, odeslání formulářů) */
.button_mini, .button, input[type="submit"].button_mini {
	position: relative;
	display: inline-block;
	padding: 0 15px;
	color: #fff;
	text-transform: uppercase;
	background: var(--dark-2);
	cursor: pointer;
	height: 32px;
	line-height: 32px;
	border: none;
	border-radius: 0;
	font-family: var(--font-head);
	-webkit-appearance: none;
	appearance: none;
}
.button_mini:hover, .button:hover { background-image: linear-gradient(rgba(255, 255, 255, .1), rgba(0, 0, 0, .05)); }

.warning { margin: 0 0 10px; padding: 10px; border: 1px solid #e6db55; font-size: 13px; background: #ffffe0; }
.required { color: var(--orange); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.clearfix::after { content: ""; display: block; clear: both; }

/* ==========================================================================
   3. Rozvržení
   ========================================================================== */

.container { max-width: var(--container); margin: 0 auto; padding: 0 15px; }
@media (min-width: 1210px) { .container { padding: 0; } }

.mode_container { clear: both; }

.bp-columns { display: flex; align-items: flex-start; gap: 20px; padding-bottom: 20px; }
.bp-columns::before, .bp-columns::after, .bp-mosaic::before, .bp-mosaic::after { display: none; } /* clearfix pseudo-prvky by ve flex/grid kontejneru byly položkou a gap by přidal prázdnou mezeru */
.bp-sidebar { flex: 0 0 280px; width: 280px; min-width: 0; }
.bp-center { flex: 1 1 0; min-width: 0; }
.no-sidebar .bp-center { width: 100%; }

/* ==========================================================================
   4. Hlavička a hlavní menu
   ========================================================================== */

.mode_header { background: url("../img/bkg_header.jpg") repeat 0 0; margin-bottom: 20px; }
.mode_header_content { height: auto; padding: 25px 0 30px; } /* jako starý web */
.mode_header_content .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.mode_header_content .container::before, .mode_header_content .container::after { display: none; }

#header_logo { flex: 0 1 auto; z-index: 1; display: block; max-width: 100%; }
#header_logo img.logo { width: 497px; max-width: 100%; height: auto; max-height: 84px; }

#header_right { display: flex; flex-direction: column; align-items: flex-end; position: relative; max-width: 660px; min-width: 0; text-align: right; }
#header-text {
	position: relative;
	display: flex; align-items: center; justify-content: flex-end; gap: 20px; /* slogan a logo Husqvarna na jedné ose */
	padding: 0 0 16px 0;
	line-height: 1.2;
	text-align: right;
	font-family: var(--font-head);
	font-size: 16px;
	color: #fff;
}
#header-text span { color: var(--green-slogan); }
#husqvarna-logo-auth { flex: 0 0 auto; display: block; }

/* Vyhledávání */
.bp-search {
	display: flex;
	position: relative;
	border: 1px solid #c7c7c7;
	background: #fff;
	height: 32px;
}
.bp-search input[type="search"] {
	background: none; border: 0; width: 245px; max-width: 100%; height: 30px; line-height: 30px;
	padding: 0 10px; color: var(--link-header); outline: 0; border-radius: 0;
}
.bp-search-submit {
	border: 0; padding: 0; width: 31px; height: 30px; cursor: pointer; border-radius: 0;
	background: url("../img/bg_search_submit.png") no-repeat;
}
#searchbox { margin: 0; }

/* Menu */
.mode_megamenu { clear: both; }
#menu { position: relative; clear: both; padding: 0; background: var(--dark); width: 100%; margin: 0; }
#menu::after { content: ""; display: block; clear: both; }
#menu ul.ul_mega_menu { display: flex; flex-wrap: nowrap; text-align: left; width: 100%; }
#menu ul li.bp-menu-item {
	position: relative;
	background: url("../img/bkg_li_item.jpg") repeat-y right top;
	margin: 0; padding: 0;
}
#menu ul li.bp-menu-item:last-child { background: none; }
#menu .bp-menu-link {
	display: block; padding: 10px 20px; color: #fff; font-size: 16px; text-transform: uppercase; font-family: var(--font-head);
}
#menu .bp-menu-link:hover, #menu li.is-current > .bp-menu-link { color: var(--orange); }
#menu li.has-panel:hover > .bp-menu-link { background: url("../img/arrow.png") no-repeat bottom center; }
.bp-menu-toggle { display: none; }

/* Mega panely */
.bp-mega {
	display: none;
	position: absolute; top: 100%; left: 0; z-index: 100;
	margin: 0; padding: 25px 0 0; background: #fff; text-align: left;
	box-shadow: 0 2px 5px #aeaeae;
	max-height: 80vh; overflow-y: auto;
}
#menu li.has-panel:hover > .bp-mega, #menu li.has-panel:focus-within > .bp-mega { display: block; }
.bp-mega a { color: var(--link-header); display: block; padding: 0; }
.bp-mega a:hover { color: var(--dark); }
.bp-mega-list { padding: 0 20px 20px; }

.bp-mega-catalog { width: 960px; max-width: 100vw; }
.bp-mega-catalog .bp-mega-list { columns: 4; column-gap: 24px; } /* sloupce se vyvažují, bez děr */
.bp-mega-group { break-inside: avoid; padding-bottom: 18px; }
.bp-mega a.bp-mega-head { color: var(--dark); font-weight: 700; text-transform: uppercase; font-size: 14px; font-family: var(--font-head); padding-bottom: 6px; }
.bp-mega a.bp-mega-head:hover { color: var(--orange); }
.bp-mega-sub li { padding: 2px 0; font-size: 13px; line-height: 1.3; }
.bp-mega-sub a:hover { color: var(--orange); }
.bp-mega-name { display: block; color: var(--dark); text-transform: uppercase; font-size: 14px; font-family: var(--font-head); }
.bp-mega a:hover .bp-mega-name { color: var(--orange); }

.bp-mega-brands { width: 880px; max-width: 100vw; padding-top: 20px; }
/* pravidelná mřížka 5 sloupců, stejné boxy 150×70, loga vycentrovaná a bez ořezu */
.bp-mega-brands .bp-mega-list { display: grid; grid-template-columns: repeat(5, 150px); gap: 15px; justify-content: center; padding: 0 20px 20px; }
.bp-mega-brands li { padding: 0; }
.bp-mega-brands a { display: flex; align-items: center; justify-content: center; width: 150px; height: 70px; text-align: center; }
.bp-mega-brands img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.bp-mega-brands.is-text .bp-mega-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 20px; padding-bottom: 10px; }
.bp-mega-brands.is-text li { padding: 0 0 12px; }
.bp-mega-brands.is-text a { text-align: left; }

/* ==========================================================================
   5. Drobečková navigace
   ========================================================================== */

.breadcrumb {
	display: flex; flex-wrap: wrap; align-items: center;
	margin: 15px 0; color: var(--orange);
}
.breadcrumb a { color: var(--link); }
.breadcrumb a:hover, .breadcrumb .current { color: var(--orange); }
.breadcrumb .navigation-pipe { display: inline-block; width: 25px; height: 20px; background: url("../img/bkg_bc_span.png") no-repeat center center; }

/* ==========================================================================
   6. Levý sloupec (bloky)
   ========================================================================== */

.block { margin-bottom: 20px; }
.block .block_content { padding: 10px 15px; }
.bp-sidebar .block { border: 1px solid #dfdfdf; }
.block .title_block {
	margin: 0;
	text-transform: uppercase; text-align: left;
	background: url("../img/bkg_block_title.jpg") repeat-x left bottom;
	padding: 10px 15px; color: var(--orange); font-size: 18px; font-family: var(--font-head);
}
.block .title_block a { color: var(--orange); }
.block ul { list-style-type: none; }
.block li { margin: 7px 0; padding: 2px 0; display: block; }

/* Strom kategorií */
#categories_block_left li > a { text-transform: none; }
#categories_block_left li > a:hover { color: var(--dark); }
#categories_block_left li li > a:hover { color: var(--orange); }
#categories_block_left li ul { margin-left: 20px; }
#categories_block_left li.has-children:not(.is-open) > ul { display: none; }
#categories_block_left li.is-current > a { color: var(--orange); }
#categories_block_left .OPEN, #categories_block_left .CLOSE {
	display: block; float: right; margin: 8px 0 0 5px; height: 5px; width: 9px; cursor: pointer;
	background: url("../img/less_more.png") no-repeat; transition: all .3s ease 0s;
}
#categories_block_left .OPEN { background-position: 100% 100%; }
#categories_block_left .CLOSE { background-position: 0 0; }
#categories_block_left li > ul { clear: both; }

/* Prohlédnuté produkty */
#viewed-products_block_left .products li { padding: 0 0 10px; margin: 0 0 17px; border-bottom: 1px solid var(--line); overflow: hidden; }
#viewed-products_block_left .products li:last-child { padding-bottom: 0; margin-bottom: 0; border: none; }
#viewed-products_block_left .content_img { float: left; margin: 0 20px 10px 0; }
#viewed-products_block_left .content_img img { max-width: 100%; vertical-align: text-bottom; }
#viewed-products_block_left .name_viewed { display: block; }

/* Výrobci */
#manufacturers_block_left .bp-brand-list { margin-bottom: 10px; }
#manufacturers_block_left .bp-brand-list li { margin: 3px 0; padding: 0; }
#manufacturers_block_left select { width: 100%; color: var(--text); }

/* ==========================================================================
   7. Výpis produktů
   ========================================================================== */

#category h1 { font-size: 24px; }
#category h1 span { font-family: Arial, sans-serif; color: var(--link-header); font-size: 12px; text-transform: none; font-weight: 400; }
.cs_cat_desc { margin-bottom: 10px; }
.bp-brand-logo { margin-bottom: 15px; }

/* Podkategorie */
#subcategories { margin-top: 15px; }
#subcategories h3, .title_hide_show, .bp-section-title {
	margin: 20px 0; font-size: 24px; font-family: var(--font-head); text-transform: uppercase; font-weight: 700;
	background: url("../img/bkg_title_block.jpg") repeat-x left center; overflow: hidden; color: var(--dark);
}
#subcategories h3 span, .title_hide_show span, .bp-section-title span {
	display: inline-block; background: #fff; padding: 5px 20px 5px 0; color: var(--dark);
}
.inline_list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 20px; margin-top: 10px; }
.inline_list li { margin: 0 0 10px; vertical-align: top; }
.inline_list li .img { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; overflow: hidden; background: #fff; border: 1px solid #dbdbdb; padding: 4px; margin-bottom: 10px; }
.inline_list li .img img { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: contain; }
.bp-cat-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: #f0f0f0; color: #bbb; font-family: var(--font-head); font-size: 40px; }
.inline_list li .cat_name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; line-height: 1.2; height: 2.4em; color: var(--link); font-size: 14px; font-family: var(--font-head); text-transform: uppercase; }
.inline_list li .cat_name:hover { color: var(--orange); }

/* Řazení a přepínač mřížka/seznam */
.content_sortPagiBar { margin: 20px 0; }
.sortPagiBar::after { content: ""; display: block; clear: both; }
.view_list_gird { float: left; margin: 0 20px 5px 0; }
.view_list_gird a { float: left; }
.view_list_gird b {
	float: left; width: 33px; height: 32px; text-indent: -9999px; overflow: hidden; white-space: nowrap;
	background: url("../img/view_list_gird.png"); transition: all .5s ease 0s;
}
.view_list_gird b.grid { background-position: 0 0; }
.view_list_gird b.list { background-position: 100% 0; margin-left: -1px; }
.view_list_gird b.active { position: relative; z-index: 10; }
.view_list_gird b.active.grid, .view_list_gird b.grid:hover { background-position: 0 100%; background-color: var(--orange); }
.view_list_gird b.active.list, .view_list_gird b.list:hover { background-position: 100% 100%; background-color: var(--orange); }
#productsSortForm { float: left; margin: 1px 20px 5px 0; }
#productsSortForm p { margin: 0; }
#productsSortForm label { margin-right: 10px; color: var(--dark); }
.selectProductSort, .nb_item { color: #000; border: 1px solid var(--line-2); }

/* Stránkování */
div.pagination { float: left; width: auto; }
ul.pagination { float: left; margin: 0 10px 5px 0; }
ul.pagination li { float: left; padding: 8px 5px; min-width: 22px; margin-right: 5px; text-align: center; }
ul.pagination li.current { border: 1px solid var(--line); padding: 7px 4px; transition: all .5s ease 0s; }
ul.pagination li.current span, ul.pagination a:hover { color: var(--orange); }
ul.pagination li.pagination_previous, ul.pagination li.pagination_next { border: none; padding: 8px 0; }
ul.pagination li.pagination_previous { margin-right: 10px; }
ul.pagination li.pagination_next { margin-left: 5px; }
form.pagination { float: left; position: relative; display: flex; align-items: center; gap: 5px; margin-bottom: 5px; }
form.pagination label { line-height: 32px; color: var(--dark); }

/* Mřížka a seznam karet */
ul.product_grid {
	--cols: 2;
	display: grid;
	grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
	gap: 25px 20px;
	align-items: start; /* karty začínají nahoře, výška textu se liší */
}
ul#product_list { padding: 20px 0; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
ul#product_list.product_list { display: block; }
ul#product_list.product_list li { margin: 0 0 20px; }
ul#product_list.product_list .center_block { display: flex; flex-direction: row; gap: 40px; align-items: flex-start; }
ul#product_list.product_list .image { flex: 0 0 270px; max-width: 40%; }

.bp-card { vertical-align: top; padding: 0; min-width: 0; }
.bp-card .image { position: relative; }
/* čtvercový box obrázku (stejná výška u všech), pod ním tenká linka jako na starém webu */
.bp-card .image .product_img_link, .bp-interest-list .image { display: flex; align-items: center; justify-content: center; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.bp-interest-list .image { border-bottom: 0; } /* novinky bez linky pod obrázkem */
.bp-card .image img, .bp-interest-list .image img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.bp-card .name_product { display: block; line-height: 1.15; margin: 13px 0 6px; font-family: var(--font-body); font-size: 100%; }
.bp-card .name_product a { font-size: 16px; font-weight: 700; }
.bp-card .product_desc { margin: 6px 0 0; }
.bp-card .content_price { display: block; margin: 8px 0 0; }
.bp-result { padding: 10px 0 20px; }


/* Cena: oranžová, Oswald, bez zalomení */
.price, .woocommerce-Price-amount { color: var(--orange); font-size: 16px; font-family: var(--font-head); white-space: nowrap; }
.price del, .content_price del, .price del .woocommerce-Price-amount { color: var(--dark-2); font-size: 12px; margin-right: 10px; text-decoration: line-through; }
.price ins, .content_price ins { background: none; text-decoration: none; }

/* Štítek AKCE! */
span.action {
	position: absolute; top: 10px; left: 0; z-index: 5;
	width: 58px; height: 57px; padding: 18px 0 0; text-align: center;
	background: url("../img/akce-list-bg.png") no-repeat; color: #fff;
	font-family: var(--font-head); font-size: 16px; line-height: 20px; text-transform: uppercase;
}

/* ==========================================================================
   8. Detail produktu
   ========================================================================== */

#primary_block { padding-bottom: 20px; }
#primary_block::after { content: ""; display: block; clear: both; }
#pb-right-column { float: left; width: 47%; margin: 0 20px 30px 0; position: relative; z-index: 10; }
#pb-right-column #image-block { position: relative; display: block; border: 1px solid var(--line); padding: 8px; text-align: center; }
#pb-right-column #image-block img#bigpic { display: block; margin: 0 auto; max-width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }
#view_full_size { display: block; cursor: pointer; text-align: center; }
#view_full_size .span_link {
	position: absolute; top: 14px; left: 18px; display: inline-block; min-height: 24px; padding: 5px 0 0 27px;
	background: url("../img/i_zoom.png") no-repeat top left; text-align: left; text-transform: uppercase;
	font-size: 12px; color: var(--link-header);
}

#views_block { position: relative; margin: 3px 3px 0; padding: 15px 0; text-align: center; }
#thumbs_list .thumbs_viewport { overflow: hidden; width: 100%; }
#thumbs_list a.btn {
	position: absolute; top: -32px; width: 22px; height: 22px; text-indent: -9999px; overflow: hidden; z-index: 100;
	background: url("../img/btn_pre_next.png") no-repeat; transition: all .5s linear 0s;
}
#thumbs_list a.btn.prev { right: 22px; background-position: 0 0; }
#thumbs_list a.btn.next { right: 0; background-position: 0 100%; }
#thumbs_list a.btn.prev:hover { background-position: 100% 0; }
#thumbs_list a.btn.next:hover { background-position: 100% 100%; }
#thumbs_list_frame { display: flex; flex-wrap: nowrap; gap: 20px; transition: transform .3s ease; }
#thumbs_list_frame li { flex: 0 0 auto; cursor: pointer; }
#thumbs_list_frame li a { display: flex; align-items: center; justify-content: center; width: 108px; height: 108px; border: 1px solid #ddd; padding: 4px; background: #fff; }
#thumbs_list_frame li a.shown, #thumbs_list_frame li a:hover { border-color: var(--orange); }
#thumbs_list_frame li img { display: block; width: 98px; height: 98px; object-fit: contain; }

#pb-left-column { float: left; width: 48%; }
#pb-left-column h1 { font-size: 20px; color: var(--link); text-transform: none; font-family: Arial, Verdana, sans-serif; margin-bottom: 10px; }
.bp-product-brand { margin: 0 0 10px; font-size: 14px; }
#short_description_block { display: block; padding: 0; margin: 0; text-align: left; }
/* obsah popisu bývá v zanořených tabulkách a div[style=justify] (starý web); .rte td dává padding 6/10 a tím odsazení zleva */
#short_description_block table, #short_description_block tbody, #short_description_block tr, #short_description_block td, #short_description_block th { display: block; width: 100%; padding: 0; margin: 0; border: 0; }
#short_description_block div, #short_description_block p { text-align: left !important; } /* přepis inline text-align:justify */
#short_description_block ul, #short_description_block ol, #short_description_block blockquote { margin-left: 0; padding-left: 0; list-style-position: inside; }
#short_description_block p:empty, #short_description_block br:last-child { display: none; }
#pb-left-column span.action {
	display: block; position: relative; top: auto; left: auto; width: 81px; height: 80px; padding: 25px 0 0; margin-bottom: 10px;
	background: url("../img/akce-detail-bg.png") no-repeat; font-size: 22px; line-height: 28px; z-index: 200;
}
.content_prices { margin-top: 15px; text-align: left; overflow: hidden; }
.content_prices .price { margin: 0 0 10px; }
.our_price_display, .our_price_display .woocommerce-Price-amount { font-size: 24px; }
.content_prices .price del, .content_prices .price del .woocommerce-Price-amount { font-size: 14px; color: var(--link-header); }

#usefull_link_block { float: left; list-style-type: none; }
#usefull_link_block li { float: left; padding: 2px 0; margin-right: 10px; min-height: 20px; color: var(--link-header); text-transform: uppercase; }
#usefull_link_block li a { color: var(--link-header); text-transform: uppercase; }
#usefull_link_block li.print { padding: 0; }
/* jen ikony; text je v title a aria-label, vizuálně skrytý */
#usefull_link_block li.print a {
	display: block; width: 30px; height: 28px; padding: 0; overflow: hidden; white-space: nowrap; text-indent: -9999px; font-size: 0; background: none center no-repeat;
}
#usefull_link_block li.print a { background-image: url("../img/i_print.png"); }


/* Podrobnosti (HTML popis z importu) */
#more_info_block { margin-bottom: 20px; clear: both; }
#more_info_sheets { padding: 10px 0 0; }
.rte ul, .rte ol { margin: 0 0 20px 20px; }
.rte ul li { list-style: disc outside none; padding: 3px 0; }
.rte ol li { list-style: decimal outside none; padding: 3px 0; }
.rte img { max-width: 100%; height: auto; }
.rte p { margin: 7px 0; }
.rte table { width: 100% !important; max-width: 100% !important; margin: 15px 0; border-collapse: collapse !important; border-spacing: 0 !important; table-layout: auto; }
.rte td, .rte th { padding: 6px 10px; text-align: left; vertical-align: top; }
#more_info_sheets table tr:nth-child(even) { background: #f3f3f3; }
#more_info_sheets table tr:nth-child(odd) { background: #fff; }
#more_info_sheets table tr td, #more_info_sheets table tr th { border: 0; border-bottom: 1px solid #efefef; }
#more_info_sheets h3, #more_info_sheets h4, #more_info_sheets h5, #more_info_sheets h6,
#more_info_sheets table th, #more_info_sheets td[class*="group-name"] {
	margin: 20px 0 8px; padding: 6px 0 6px !important;
	font-family: var(--font-head) !important; font-size: 20px !important; font-weight: 700 !important; line-height: 1.2 !important;
	text-transform: uppercase; color: var(--dark) !important; background: transparent !important;
	border-bottom: 2px solid var(--green) !important;
}
#more_info_sheets table tr[class*="group-start"] { background: transparent; }
#more_info_sheets table tr[class*="group-start"] td:not([class*="group-name"]) { background: transparent !important; }
#more_info_sheets sup { vertical-align: top; color: #999; }
#more_info_sheets table.header td { border: 0; }

/* Roboto (variabilní 400–700), lokálně; pro tabulku parametrů v popisech produktů. */
@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/roboto-latin-ext.woff2") format("woff2");
	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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/roboto-latin.woff2") format("woff2");
	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;
}

/* Tabulka parametrů (importovaná Husqvarna tabulka): jako původní web, Roboto 18px, mezery buněk 8px, zebra po skupinách, zelená linka pod pravou buňkou nadpisu skupiny.
   Přepisuje inline styly z obsahu (proto !important) a obecná pravidla pro tabulky v .rte; týká se jen této tabulky. */
#more_info_sheets table.hbd-spec-table { table-layout: fixed; width: 100% !important; max-width: 100% !important; margin: 15px 0 !important; padding: 0 !important; border-collapse: separate !important; border-spacing: 8px !important; font-family: Roboto, Arial, sans-serif !important; font-size: 18px !important; letter-spacing: .4px !important; color: #3d3d3c !important; }
#more_info_sheets table.hbd-spec-table tr { background: transparent !important; border: 0 !important; }
#more_info_sheets table.hbd-spec-table th, #more_info_sheets table.hbd-spec-table td { width: 50%; margin: 0 !important; padding: 12px !important; border: 0 !important; background: #fff !important; vertical-align: middle !important; text-align: left !important; text-transform: none !important; font-family: Roboto, Arial, sans-serif !important; font-size: 18px !important; line-height: 24px !important; letter-spacing: .4px !important; color: #3d3d3c !important; box-shadow: none !important; }
#more_info_sheets table.hbd-spec-table th { font-weight: 700 !important; }
#more_info_sheets table.hbd-spec-table td { font-weight: 400 !important; }
#more_info_sheets table.hbd-spec-table sup, #more_info_sheets table.hbd-spec-table small { color: #6d6d6d; font-size: 13px; }
/* zebra: třídu bp-zebra přidává main.js (každý druhý datový řádek od začátku skupiny); bez JS bez zebry */
#more_info_sheets table.hbd-spec-table tr.bp-zebra > th, #more_info_sheets table.hbd-spec-table tr.bp-zebra > td { background: #f3f3f2 !important; }
/* nadpisy (h4 a spol.) a vložené strong/span z importu uvnitř buněk se chovají jako obyčejný text; přebíjí #more_info_sheets h4 a globální nadpisy */
#more_info_sheets table.hbd-spec-table :is(h1,h2,h3,h4,h5,h6) { display: block !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; text-decoration: none !important; text-transform: none !important; font-family: Roboto, Arial, sans-serif !important; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important; letter-spacing: inherit !important; color: inherit !important; }
#more_info_sheets table.hbd-spec-table :is(h1,h2,h3,h4,h5,h6)::before, #more_info_sheets table.hbd-spec-table :is(h1,h2,h3,h4,h5,h6)::after { content: none !important; display: none !important; border: 0 !important; background: none !important; }
#more_info_sheets table.hbd-spec-table :is(strong,b,span,div,p) { text-transform: none !important; font-family: inherit !important; letter-spacing: inherit !important; }
#more_info_sheets table.hbd-spec-table p { margin: 0 !important; }
#more_info_sheets table.hbd-spec-table button { display: none !important; }
/* nadpis skupiny: bez pozadí, vlevo světle šedý název, pod pravou buňkou zelená linka */
#more_info_sheets table.hbd-spec-table :is(th,td).hbd-spec-table__group-name { padding: 36px 0 16px !important; background: none !important; vertical-align: bottom !important; font-size: 22px !important; font-weight: 400 !important; color: #6d6d6d !important; }
#more_info_sheets table.hbd-spec-table :is(th,td).hbd-spec-table__article { padding: 36px 12px 16px !important; background: none !important; vertical-align: bottom !important; font-weight: 400 !important; border-bottom: 2px solid #3a7d2f !important; }
#more_info_sheets table.hbd-spec-table .hbd-spec-table__article-number { color: #6d6d6d !important; font-size: 14px !important; line-height: 20px !important; }
@media (max-width: 767px) {
	#more_info_sheets table.hbd-spec-table { border-spacing: 6px !important; font-size: 15px !important; }
	#more_info_sheets table.hbd-spec-table th, #more_info_sheets table.hbd-spec-table td { padding: 8px !important; font-size: 15px !important; line-height: 21px !important; }
	#more_info_sheets table.hbd-spec-table :is(th,td).hbd-spec-table__group-name { padding: 28px 0 12px !important; font-size: 19px !important; }
	#more_info_sheets table.hbd-spec-table :is(th,td).hbd-spec-table__article { padding: 28px 8px 12px !important; }
}

/* Karusel „Produkty ve stejné kategorii“ */
.bp-carousel { position: relative; margin: 30px 0 10px; clear: both; }
.bp-carousel a.btn {
	position: absolute; top: 10px; width: 22px; height: 22px; text-indent: -9999px; overflow: hidden; z-index: 100;
	background: url("../img/btn_pre_next.png") no-repeat;
}
.bp-carousel a.btn.prev { right: 30px; background-position: 0 0; }
.bp-carousel a.btn.next { right: 0; background-position: 0 100%; }
.bp-carousel a.btn.prev:hover { background-position: 100% 0; }
.bp-carousel a.btn.next:hover { background-position: 100% 100%; }
.bp-carousel-viewport { overflow: hidden; }
/* ul. kvůli specificitě proti ul.product_grid (jinak by se track zalomil do mřížky) */
ul.bp-carousel-track { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 20px; transition: transform .35s ease; }
ul.bp-carousel-track .bp-card { flex: 0 0 calc((100% - 20px) / 2); }
ul.bp-carousel-track .product_desc { display: none; } /* v karuselu bez krátkého popisu */
ul.bp-carousel-track .name_product { max-height: 2.3em; overflow: hidden; }
.bp-carousel a.btn.is-disabled { opacity: .35; cursor: default; pointer-events: none; }

/* ==========================================================================
   9. Úvodní stránka
   ========================================================================== */

/* Mozaika: výšku řádku určuje levý banner (aspect-ratio), pravý sloupec se roztáhne na stejnou výšku; mezery všude 20 px. */
.bp-mosaic { display: grid; grid-template-columns: minmax(0, 1fr) 378px; gap: 20px; margin-bottom: 20px; align-items: stretch; }

/* Banner pozice (bpt_banner_position): napevno nebo slider; poměr stran podle BP_BANNER_HOME_SIZES, bez inline stylů.
   POZOR: poměry stran jsou i v BP_BANNER_HOME_SIZES (mu-plugins/bestopro-core.php); při změně rozměrů upravit obojí. */
.bp-banners { --bp-ratio: 16 / 9; position: relative; width: 100%; aspect-ratio: var(--bp-ratio); overflow: hidden; background: #f3f3f3; }
.bp-banners--home-main-left { --bp-ratio: 1560 / 760; }
.bp-banners--home-main-right-top { --bp-ratio: 756 / 309; }
.bp-banners--home-main-right-bottom { --bp-ratio: 756 / 413; }
.bp-banners--home-interest { --bp-ratio: 2360 / 700; }
.bp-banners--home-recommended { --bp-ratio: 960 / 720; }
.bp-slides { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.bp-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; z-index: 1; }
.bp-slide.is-active { opacity: 1; z-index: 2; }
.bp-slide a, .bp-slide img, .bp-slide video { display: block; width: 100%; height: 100%; }
.bp-slide img, .bp-slide video { object-fit: cover; }
/* Pravý sloupec: média jsou absolutní, takže výšku nenatahují; dva boxy sdílejí výšku v poměru 318 : 424. */
.bp-mosaic > .bp-banners--home-main-left { width: auto; }
.bp-mosaic-right { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 20px; }
.bp-mosaic-right .bp-banners { width: 100%; min-height: 0; aspect-ratio: auto; flex: 1 1 0; }
.bp-mosaic-right .bp-banners--home-main-right-top { flex-grow: 318; }
.bp-mosaic-right .bp-banners--home-main-right-bottom { flex-grow: 424; }
.bp-mosaic-right:only-child { min-height: 380px; } /* bez levého banneru */
.bp-slider-nav {
	position: absolute; top: 50%; z-index: 5; width: 36px; height: 56px; margin-top: -28px; padding: 0; border: 0; cursor: pointer;
	background: rgba(20, 20, 20, .55); color: #fff; font-size: 34px; line-height: 52px; transition: background .3s;
}
.bp-banners:not(.is-js) .bp-slider-nav, .bp-banners:not(.is-js) .bp-slider-dots { display: none; } /* bez JS nic nedělají; první slide zůstává vidět */
.bp-slider-nav:hover { background: var(--orange); }
.bp-slider-nav.prev { left: 0; }
.bp-slider-nav.next { right: 0; }
.bp-slider-dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 5; display: flex; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bp-slider-dots button { width: 12px; height: 12px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; }
.bp-slider-dots button.is-active { background: var(--orange); border-color: var(--orange); }


/* Motto na úvodní straně: statické HTML, dva řádky text + obrázek (druhý řádek obráceně), pod 768 px pod sebe. */
.bp-motto { max-width: 1000px; margin: 10px auto 20px; padding: 7px 0 10px; font-family: var(--font-head); font-size: 24px; text-align: left; color: #666; }
.bp-motto-row { display: flex; align-items: center; gap: 4%; }
.bp-motto-row + .bp-motto-row { margin-top: 24px; }
.bp-motto-text { flex: 1 1 0; min-width: 0; }
.bp-motto-img { flex: 1 1 0; min-width: 0; }
.bp-motto-img img { display: block; max-width: 100%; height: auto; }

.bp-section { margin: 30px 0 20px; }
.bp-interest-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 20px; }
.bp-interest-list { align-items: start; }
.bp-interest-list .name_product { margin: 13px 0 6px; line-height: 1.15; font-family: var(--font-body); font-size: 100%; }
.bp-interest-list .name_product a { font-size: 16px; font-weight: 700; text-transform: uppercase; }
.bp-interest-list .product_desc { margin: 6px 0 0; }
.viewmore { padding-top: 7px; }
.viewmore a { display: inline-block; background: url("../img/i_viewmore.png") no-repeat center right; padding-right: 25px; color: var(--green); font-family: var(--font-head); text-transform: uppercase; }
.viewmore a:hover { color: var(--dark); }

.bp-wide-banner { margin: 20px 0; }
.bp-wide-banner img { display: block; }

/* Doporučujeme: mřížka jako „Poslední přidané zboží“ (sloupce 2 až 5 stejně jako .bp-latest-list, viz media queries);
   banner home-recommended je 4. buňka mřížky a vyplní výšku řádku. */
ul.bp-featured-list { --cols: 2; padding-top: 0; } /* ul. kvůli specificitě proti ul.product_grid */
ul.bp-featured-list > li.bp-featured-banner-cell { align-self: start; min-width: 0; } /* bez natahování na výšku řádku */
/* Banner zabírá 2 buňky mřížky jen při 5 sloupcích (od 1200 px); při 2, 3 a 4 sloupcích 1 buňku. Bez grid-auto-flow: dense. */
@media (min-width: 1200px) {
	ul.bp-featured-list > li.bp-featured-banner-cell { grid-column: span 2; }
}
.bp-featured-banner-cell .bp-banners { aspect-ratio: auto; background: none; overflow: visible; } /* banner se neupravuje */
.bp-featured-banner-cell .bp-banners:not(.js-slider) .bp-slides, .bp-featured-banner-cell .bp-banners:not(.js-slider) .bp-slide { position: static; opacity: 1; }
.bp-featured-banner-cell .bp-banners:not(.js-slider) .bp-slide a, .bp-featured-banner-cell .bp-banners:not(.js-slider) .bp-slide img, .bp-featured-banner-cell .bp-banners:not(.js-slider) .bp-slide video { display: block; width: 100%; height: auto; } /* vlastní poměr banneru */
.bp-featured-banner-cell .bp-banners.js-slider { aspect-ratio: 4 / 3; overflow: hidden; } /* slider: poměr home-recommended 960×720 (BP_BANNER_HOME_SIZES), všechny slidy stejný rozměr */

.bp-latest { margin-top: 30px; }
ul.bp-latest-list { --cols: 2; padding-top: 0; }

/* ==========================================================================
   10. Patička
   ========================================================================== */

.mode_footer { clear: both; background: url("../img/bkg_header.jpg") repeat 0 0; color: var(--footer-text); }
.mode_footer_main { padding: 20px 0 40px; overflow: hidden; }
.bp-footer-cols { display: grid; grid-template-columns: 1fr; gap: 20px 40px; }
.bp-footer-col { min-width: 0; }
.mode_footer a { color: var(--footer-text); }
.mode_footer a:hover { color: var(--orange); }
.mode_footer ul { list-style-type: none; }
.mode_footer li { margin: 0 0 7px; padding: 0; }
.mode_footer .block { margin-bottom: 0; border: none; }
.mode_footer .block .block_content { padding: 0; }
.mode_footer .title_block { background: none; padding: 10px 0; color: var(--orange); font-size: 14px; font-family: var(--font-head); text-transform: uppercase; }
.mode_footer .block + .block { margin-top: 10px; }
.mode_footer .viewmore a { color: var(--green); }
.mode_footer .viewmore a:hover { color: #fff; }
.bp-footer-about img { max-width: 200px; height: auto; margin-bottom: 5px; }
.bp-footer-about table, .bp-hours { margin-top: 5px; width: 100%; }
.bp-footer-about td { padding: 0 8px 3px 0; vertical-align: top; white-space: nowrap; } /* jeden řádek na den */
.bp-footer-about td:first-child { width: 1%; }
.bp-footer-about td:empty { padding: 0; }
.bp-hours-list li { margin: 0 0 4px; white-space: nowrap; }
.bp-hours-list .d { display: inline-block; min-width: 3.2em; color: #fff; }
.bp-footer-catlist { columns: 2; column-gap: 20px; } /* plnění po sloupcích, vyvážené */
.bp-footer-catlist li { break-inside: avoid; }
.bp-footer-logos { padding-top: 15px; max-width: 100%; }
.bp-footer-logos > div, .bp-footer-logos .block_content { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 15px; margin: 0; padding: 0; }
/* dvě kulatá loga vedle sebe (box 125×114, vystředěná), ESSOX pod nimi vlevo; přepisuje inline styly z banneru */
.bp-footer-logos img { display: block; margin: 0 !important; padding: 0; max-width: 100%; }
.bp-footer-logos img[src*="automower"], .bp-footer-logos a img { order: 1; width: 125px !important; height: 114px !important; object-fit: contain; }
.bp-footer-logos a { order: 2; display: block; flex: 0 1 auto; margin: 0; padding: 0; }
.bp-footer-logos img[src*="footer-loga"] { order: 3; width: 111px; height: 47px; flex: 0 0 100%; max-width: 111px; }
.bp-footer-logos img { max-width: 100%; height: auto; }

.mode_footer_copyright { background: var(--dark); overflow: hidden; }
#footer_copyright { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0 15px; }
#footer_copyright .allright { margin: 0; color: #646464; font-size: 11px; }

/* Plovoucí tlačítko „Máte dotaz?“ */
.bp-ask-btn {
	position: fixed; right: 0; top: 45%; z-index: 900;
	padding: 12px 18px; background: var(--green); color: #fff; border-radius: 4px 0 0 4px;
	font-family: var(--font-head); font-size: 15px; text-transform: uppercase; box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
.bp-ask-btn:hover { background: var(--dark-2); color: #fff; }

/* ==========================================================================
   11. Statické stránky, kontakt, výrobci, formuláře CF7
   ========================================================================== */

.bp-page ul, .bp-page ol { margin: 0 0 20px 25px; }
.bp-page li { margin-bottom: 5px; }
.bp-page .rte div.galerie-v img, div.galerie-v img { position: relative; margin: 0 15px 15px 0; border: 1px solid var(--line); }
div.galerie-v { padding: 15px 0; }
img.img-floatright { float: right; margin: 0 0 20px 20px; border: 1px solid var(--line); }
.bp-page .rte iframe { display: block; width: 100%; max-width: 100%; height: 270px; margin-top: 25px; border: 0; }
.bp-page .rte::after { content: ""; display: block; clear: both; }
.bp-page .rte table td { padding: 0 5px 0 0; }

.bp-404 .bp-search { display: inline-flex; margin-top: 15px; }

.bp-brands-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bp-brands-list a { display: block; text-align: center; padding: 15px 10px; border: 1px solid var(--line); }
.bp-brands-list a:hover { border-color: var(--orange); }
.bp-brand-img { display: flex; align-items: center; justify-content: center; min-height: 56px; margin-bottom: 8px; }
.bp-brand-name { display: block; font-family: var(--font-head); text-transform: uppercase; font-size: 14px; }

/* Contact Form 7 podle starého kontaktního formuláře */
.wpcf7 form p { margin: 5px 0; }
.wpcf7 label { display: block; margin: 7px 0 5px; text-align: left; color: var(--dark); line-height: 22px; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 select { width: 254px; max-width: 100%; }
.wpcf7 textarea { width: 254px; max-width: 100%; min-height: 80px; }
.wpcf7 input[type="submit"], .wpcf7-submit {
	display: inline-block; height: 32px; line-height: 32px; padding: 0 15px; border: 0; border-radius: 0; cursor: pointer;
	background: var(--dark-2); color: #fff; text-transform: uppercase; font-family: var(--font-head); -webkit-appearance: none; appearance: none;
}
.wpcf7 input[type="submit"]:hover { background-image: linear-gradient(rgba(255, 255, 255, .1), rgba(0, 0, 0, .05)); }
.wpcf7 form h3 { color: var(--orange); font-size: 14px; text-transform: uppercase; margin-bottom: 20px; }
.wpcf7-not-valid-tip { color: #c80000; font-size: 12px; }
.wpcf7 form .wpcf7-response-output { margin: 10px 0; padding: 10px; border: 1px solid #e6db55; font-size: 13px; background: #ffffe0; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #5cff74; background: #d3ffab; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { border: 1px dotted #dc5353; background: #ffe6e5; color: #c80000; }

/* Stránka Kontakt: adresa + otevírací doba, mapa, formulář (struktura .bp-contact dodává obsah stránky a šablona CF7) */
.bp-contact { font-size: 15px; }
.bp-contact h2 { margin: 0 0 10px; font-size: 18px; font-family: var(--font-head); font-weight: 700; color: var(--dark); }
.bp-contact h3 { margin: 0 0 10px; font-size: 16px; font-family: var(--font-head); font-weight: 700; color: var(--dark); text-transform: uppercase; }
.bp-contact-top { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 40px; align-items: start; }
.bp-contact-top p { margin: 0 0 6px; }
.bp-contact-top p.bp-contact-ids { margin-top: 10px; color: #777; }
.bp-contact-hours table.bp-hours { width: auto; margin: 0; border-collapse: collapse; table-layout: auto; }
.bp-contact-hours table.bp-hours th, .bp-contact-hours table.bp-hours td { padding: 3px 0; border: 0; background: none; text-align: left; vertical-align: top; white-space: nowrap; font-size: 15px; }
.bp-contact-hours table.bp-hours th { width: 1%; padding-right: 20px; font-weight: 700; }
.bp-contact .bp-contact-map { margin: 25px 0; }
.bp-contact .bp-contact-map iframe { display: block; width: 100%; max-width: 100%; height: 300px; margin: 0; border: 0; }
.bp-contact-form h2 { text-transform: uppercase; margin-bottom: 15px; }
.bp-contact .bp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 20px; margin-bottom: 15px; }
.bp-contact .bp-field-full { grid-column: 1 / -1; }
.bp-contact .bp-field, .bp-contact .bp-form-row > p { margin: 0; min-width: 0; }
.bp-contact .bp-field label { display: block; margin: 0 0 5px; font-size: 14px; font-weight: 400; line-height: 1.3; }
.bp-contact .wpcf7-form-control-wrap { display: block; }
.bp-contact .wpcf7-quiz-label { display: block; margin: 0 0 5px; }
.bp-contact .bp-field input[type="text"], .bp-contact .bp-field input[type="email"], .bp-contact .bp-field input[type="tel"], .bp-contact .bp-field select, .bp-contact .bp-field textarea, .bp-contact input.wpcf7-quiz {
	display: block; width: 100%; max-width: 100%; box-sizing: border-box; height: 40px; line-height: normal; padding: 8px 10px; border: 1px solid #ccc; border-radius: 0; background: #fff; color: #333; font: 15px Arial, Verdana, sans-serif;
}
.bp-contact .bp-field textarea { height: auto; min-height: 160px; resize: vertical; }
.bp-contact .bp-field input:focus, .bp-contact .bp-field select:focus, .bp-contact .bp-field textarea:focus, .bp-contact input.wpcf7-quiz:focus { border-color: #ff7800; outline: 0; }
.bp-contact .bp-form-submit { margin: 10px 0 0; }
.bp-contact .wpcf7-submit, .bp-contact .bp-form-submit input[type="submit"] { display: inline-block; height: auto; line-height: 1.2; padding: 10px 30px; margin-top: 0; border: 0; background: var(--dark); color: #fff; font-family: var(--font-head); font-size: 16px; text-transform: uppercase; cursor: pointer; }
.bp-contact .wpcf7-submit:hover { background: var(--orange); background-image: none; }
.bp-contact .wpcf7-spinner { display: inline-block; margin: 0 0 0 10px; vertical-align: middle; }
.bp-contact .wpcf7-not-valid-tip { display: block; margin-top: 4px; color: #c80000; font-size: 13px; }
.bp-contact .wpcf7 form .wpcf7-response-output { margin: 15px 0 0; padding: 10px 12px; }
@media (max-width: 767px) {
	.bp-contact-top, .bp-contact .bp-form-row { grid-template-columns: 1fr; }
	.bp-contact-hours table.bp-hours { width: 100%; }
	.bp-contact .bp-field textarea { min-height: 120px; }
}

/* ==========================================================================
   12. Responzivní chování
   ========================================================================== */

/* >= 480 */
@media (min-width: 480px) {
	.bp-brands-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* >= 768 */
@media (min-width: 768px) {
	ul#product_list { --cols: 3; }
	ul.bp-latest-list, ul.bp-featured-list { --cols: 3; }
	.bp-interest-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.bp-brands-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.bp-footer-cols { grid-template-columns: 1fr 1fr; }
	.bp-footer-info { grid-column: 1 / -1; }
	ul.bp-carousel-track .bp-card { flex-basis: calc((100% - 40px) / 3); }
}

/* Novinky (blog): výpis a detail */
.bp-news-list > li { display: flex; gap: 20px; padding: 0 0 20px; margin: 0 0 20px; border-bottom: 1px solid var(--line); }
.bp-news-img { flex: 0 0 270px; max-width: 40%; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; background: #fff; overflow: hidden; align-self: flex-start; }
.bp-news-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bp-news-body { flex: 1 1 auto; min-width: 0; }
.bp-news-body h2 { font-family: var(--font-body); text-transform: none; font-size: 18px; margin: 0 0 6px; }
.bp-news-body h2 a { color: var(--dark); font-weight: 700; }
.bp-news-body h2 a:hover { color: var(--orange); }
.bp-news-date { color: var(--link-header); font-size: 12px; margin: 0 0 8px; }
.bp-news-more { margin-top: 8px; }
.bp-news-detail .bp-news-hero { margin: 0 0 15px; }
.bp-news-detail .bp-news-hero img { max-width: 100%; height: auto; display: block; }
.bp-news-back { margin-top: 20px; }
.bp-news-detail .rte img { max-width: 100%; height: auto; }
.bp-news-detail .rte::after { content: ""; display: block; clear: both; }

/* >= 1024 */
@media (min-width: 1024px) {
	ul.bp-latest-list, ul.bp-featured-list { --cols: 4; }
	.bp-footer-cols { grid-template-columns: 1fr 2fr 1fr; }
	.bp-footer-info { grid-column: auto; }
	ul.bp-carousel-track .bp-card { flex-basis: calc((100% - 60px) / 4); }
}

/* >= 1200 (věrné rozměry starého webu) */
@media (min-width: 1200px) {
	.bp-footer-cols { grid-template-columns: 270px 540px 270px; justify-content: space-between; }
	ul.bp-latest-list, ul.bp-featured-list { --cols: 5; }
}

/* >= 1280 */
@media (min-width: 1280px) {
	.bp-brands-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Menu pod 1024 px: hamburger, panely se nerozbalují */
@media (max-width: 1023px) {
	.bp-menu-toggle {
		display: block; width: 100%; padding: 10px 10px 10px 45px; border: 0; text-align: left; cursor: pointer;
		background: var(--dark) url("../img/menu.png") no-repeat 8px center; color: #fff; font-family: var(--font-head); font-size: 16px; text-transform: uppercase;
	}
	#menu ul.ul_mega_menu { display: none; flex-direction: column; }
	#menu.is-open ul.ul_mega_menu { display: flex; }
	#menu ul li.bp-menu-item { background: none; border-top: 1px solid #2c2c2c; }
	.bp-mega, #menu li.has-panel:hover > .bp-mega, #menu li.has-panel:focus-within > .bp-mega { display: none; }
	#menu li.has-panel:hover > .bp-menu-link { background: none; }

	.bp-columns { flex-direction: column; align-items: stretch; }
	.bp-center { order: 1; }
	.bp-sidebar { order: 2; flex: 0 0 auto; width: 100%; }
	.bp-sidebar .block { margin-bottom: 15px; }

	.bp-mosaic { grid-template-columns: minmax(0, 1fr); }
	.bp-mosaic > .bp-banners--home-main-left { width: 100%; }
	.bp-mosaic-right .bp-banners { flex: none; aspect-ratio: var(--bp-ratio); } /* pod sebe s vlastním poměrem stran */
	.bp-mosaic-right:only-child { min-height: 0; }
	#header_right { max-width: 100%; }
}

/* < 768: telefon */
@media (max-width: 767px) {
	.bp-motto { font-size: 20px; }
	.bp-motto-row { flex-direction: column; align-items: stretch; gap: 12px; }
	.bp-motto-row--rev { flex-direction: column-reverse; } /* text vždy nad obrázkem */
	.bp-news-list > li { flex-direction: column; gap: 10px; }
	.bp-news-img { flex-basis: auto; max-width: 100%; width: 100%; }
	.mode_header { margin-bottom: 10px; }
	.mode_header_content { padding: 20px 0; }
	.mode_header_content .container { flex-direction: column; align-items: stretch; }
	#header_right { align-items: stretch; }
	#header_logo { margin: 0 auto; text-align: center; }
	#header_right { margin-top: 15px; text-align: center; }
	#header-text { text-align: center; padding: 0 0 15px; font-size: 14px; }
	#header-text { flex-direction: column; gap: 10px; }
	#husqvarna-logo-auth { margin: 0 auto; }
	.bp-search { width: 100%; }
	.bp-search input[type="search"] { flex: 1 1 auto; width: auto; }

	#pb-right-column, #pb-left-column { float: none; width: 100%; margin-right: 0; }
	#category h1 { font-size: 20px; }
	.inline_list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bp-footer-catlist { columns: 1; }
	.bp-footer-about td { font-size: 14px; } /* úzký displej: otevírací doba se nezalamuje */
	.bp-page .rte div[style*="float"] { float: none !important; padding-right: 0 !important; }
	ul#product_list.product_list .center_block { flex-direction: column; gap: 10px; }
	ul#product_list.product_list .image { flex-basis: auto; max-width: 100%; }
	#productsSortForm, form.pagination { float: none; }
	div.pagination { float: none; }
	.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea { width: 100%; }
}

@media (max-width: 479px) {
	h1, h2 { font-size: 16px; }
	#subcategories h3, .title_hide_show, .bp-section-title { font-size: 20px; }
	.bp-ask-btn { top: auto; bottom: 12px; padding: 8px 12px; font-size: 13px; }
	#footer_copyright { justify-content: center; text-align: center; }
	.bp-motto { font-size: 18px; }
}

/* ==========================================================================
   13. Tisk (tlačítko Vytisknout)
   ========================================================================== */

@media print {
	.mode_header, .mode_footer, .bp-sidebar, .bp-ask-btn, .breadcrumb, #usefull_link_block, #views_block, .bp-carousel,
	#view_full_size .span_link { display: none !important; }
	#pb-right-column, #pb-left-column { float: none; width: 100%; }
	body { font-size: 12pt; }
}
