/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.6
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* Product datasheet: aligned two-column label/value rows.
   Supports every legacy markup family found in product excerpts:
   .datasheet > p, .datasheet > .leftcol > p, .datasheet-lc, .datasheettlm. */
.woocommerce-product-details__short-description .datasheet,
.woocommerce-product-details__short-description .datasheet-lc,
.woocommerce-product-details__short-description .datasheettlm,
.woocommerce-product-details__short-description .sabdat {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 1.5em;
	row-gap: 6px;
	align-items: baseline;
	margin-bottom: 1.25em;
}

.woocommerce-product-details__short-description .datasheet .leftcol {
	display: contents;
}

.woocommerce-product-details__short-description .datasheet p.leftcol1,
.woocommerce-product-details__short-description .datasheet p.leftcol1ms,
.woocommerce-product-details__short-description .datasheet p.leftcol1ml,
.woocommerce-product-details__short-description .datasheet-lc p.leftcol1,
.woocommerce-product-details__short-description .datasheettlm p.leftcol1,
.woocommerce-product-details__short-description .sabdat p.leftcol1 {
	margin: 0;
	font-weight: 600;
	color: #444;
	white-space: nowrap;
}

.woocommerce-product-details__short-description .datasheet p.rightcol1,
.woocommerce-product-details__short-description .datasheet p.rightcol1ms,
.woocommerce-product-details__short-description .datasheet p.rightcol1ml,
.woocommerce-product-details__short-description .datasheet-lc p.rightcol1,
.woocommerce-product-details__short-description .datasheettlm p.rightcol1,
.woocommerce-product-details__short-description .sabdat p.rightcol1 {
	margin: 0;
}

.woocommerce-product-details__short-description .datasheet h4,
.woocommerce-product-details__short-description .datasheet > p:not(.leftcol1):not(.rightcol1):not(.leftcol1ms):not(.rightcol1ms):not(.leftcol1ml):not(.rightcol1ml),
.woocommerce-product-details__short-description .datasheet-lc > p:not(.leftcol1):not(.rightcol1),
.woocommerce-product-details__short-description .datasheettlm > p:not(.leftcol1):not(.rightcol1),
.woocommerce-product-details__short-description .sabdat > p:not(.leftcol1):not(.rightcol1) {
	grid-column: 1 / -1;
}

/* Ultra-wide screens (feedback 26-9: "roztiahnut na taky rozmer ako ma brainmarket").
   The approved container width (1380px, Elementor kit 16) is kept as is — the
   design does not get wider. What is fixed here is how the fixed-width layout
   behaves on very large displays: the type stays legible instead of shrinking
   into the middle of the screen, and long text blocks keep a readable measure
   instead of stretching to the full canvas width. */

/* The canvas grows with the viewport, so the fixed container stays centred. */
@media (min-width: 1920px) {
	:root {
		font-size: 17px;
	}
}

@media (min-width: 2560px) {
	:root {
		font-size: 18px;
	}

	/* Keep the catalogue and product content from drifting apart on
	   full-width templates: they follow the container, not the screen. */
	.elementor-location-single .elementor-widget-container,
	.elementor-location-archive .elementor-widget-container {
		max-width: var(--wp--style--global--content-size, 1380px);
		margin-left: auto;
		margin-right: auto;
	}
}

/* Long-form blocks get a comfortable line length on large displays. */
@media (min-width: 1920px) {
	.em-key-specs__grid,
	.woocommerce-product-details__short-description .datasheet,
	.woocommerce-product-details__short-description .datasheet-lc,
	.woocommerce-product-details__short-description .datasheettlm,
	.woocommerce-product-details__short-description .sabdat {
		max-width: 62em;
	}
}

/* Popis kategorie pod nadpisem H1 v archivu produktů. */
.em-archive-intro {
	max-width: 68ch;
	margin: 0 0 22px;
	color: #3c434a;
	font-size: 1rem;
	line-height: 1.7;
}
.em-archive-intro p {
	margin: 0 0 12px;
}
.em-archive-intro p:last-child {
	margin-bottom: 0;
}
.em-archive-intro a {
	text-decoration: underline;
}

/* The homepage button styling must not add a background to the header cart. */
body.home header.elementor .elementor-menu-cart__toggle a.elementor-menu-cart__toggle_button,
body.home header.elementor .elementor-menu-cart__toggle a.elementor-menu-cart__toggle_button:hover,
body.home header.elementor .elementor-menu-cart__toggle a.elementor-menu-cart__toggle_button:focus {
	background-color: transparent !important;
	border: 0 !important;
}

/* Bring the cart closer to Poptávka where the button is visible. */
@media (min-width: 768px) {
	header .elementor-element-0d48179 {
		margin-left: auto;
	}
}

/* CH75: lepší kontrast pro blok filtrů a košík */
.ecf-product-filter {
	border-color: #c9d7d5;
	box-shadow: 0 6px 18px rgba(21, 59, 57, 0.06);
}
.ecf-product-filter__field > span {
	color: #1f2f2d;
}
.ecf-product-filter select {
	border-color: #c7d5d3;
	background-color: #f7fbfa;
	color: #1f2f2d;
}
.ecf-product-filter select:hover,
.ecf-product-filter select:focus {
	border-color: #009991;
	background-color: #fff;
	color: #153b39;
}
.woocommerce-cart .woocommerce-message,
.woocommerce-cart .cart-empty,
.woocommerce-checkout .woocommerce-info {
	color: #1f2f2d;
}

/* CH76: u produktů série 1AL zvýraznit tlačítko „Přidat do košíka“ nad tlačítkem rozměrového výkresu */
.woocommerce ul.products li.product .button.add_to_cart_button,
.woocommerce ul.products li.product .button.product_type_simple,
.woocommerce ul.products li.product .button.ajax_add_to_cart {
	position: relative;
	z-index: 2;
	font-weight: 700 !important;
}
.woocommerce ul.products li.product a.button:not(.add_to_cart_button):not(.ajax_add_to_cart) {
	opacity: 0.95;
}

/* CH77: sjednotit barvy tlačítek pod filtrem na hlavní stránce */
.elementor-widget-woocommerce-products .elementor-button,
.elementor-widget-woocommerce-product-categories .elementor-button {
	color: #1f2f2d;
}

/* CH78: po přepnutí stránky v paginaci scrollovat dolů k produktům */
@media (max-width: 1024px) {
	.woocommerce-pagination .page-numbers a,
	.woocommerce-pagination .page-numbers span {
		scroll-margin-top: 90px;
	}
}
/* Inquiry-only large-frame motors have one clear action instead of a fake cart. */
.em-motor-inquiry-only .elementor-element-731be843 { display: none; }
.em-motor-inquiry { margin: 20px 0; padding: 18px; border-left: 4px solid #007c76; background: #edf7f5; line-height: 1.5; }
.em-motor-inquiry p { margin: 0 0 16px; }
.em-motor-inquiry a.button,
.em-motor-inquiry a.button:hover,
.em-motor-inquiry a.button:focus-visible { display: inline-block; background: #007c76; color: #fff; border: 2px solid #007c76; padding: 12px 22px; border-radius: 5px; text-decoration: none; font-weight: 700; }

/* Vol7: one catalogue CTA treatment, including related products and homepage. */
body .woocommerce ul.products li.product a.button,
body .woocommerce ul.products li.product .button.product_type_variable,
body .woocommerce ul.products li.product .button.product_type_simple,
body.home .elementor a.elementor-button {
	background: #007c76 !important;
	border: 2px solid #007c76 !important;
	color: #fff !important;
	opacity: 1;
	font-weight: 700;
}
body .woocommerce ul.products li.product a.button:hover,
body .woocommerce ul.products li.product a.button:focus-visible,
body .woocommerce ul.products li.product .button.product_type_variable:hover,
body .woocommerce ul.products li.product .button.product_type_variable:focus-visible,
body .woocommerce ul.products li.product .button.product_type_simple:hover,
body .woocommerce ul.products li.product .button.product_type_simple:focus-visible,
body.home .elementor a.elementor-button:hover,
body.home .elementor a.elementor-button:focus-visible {
	background: #005f5a !important; border-color: #005f5a !important; color: #fff !important;
}
body.single-product .elementor .woocommerce-variation-add-to-cart .single_add_to_cart_button,
body.single-product .elementor form.cart .single_add_to_cart_button {
	min-height: 54px; min-width: 220px; padding: 15px 26px;
	background: #007c76 !important; border: 2px solid #007c76 !important;
	color: #fff !important; font-size: 17px; line-height: 1.3; font-weight: 800;
	border-radius: 5px; box-shadow: 0 3px 8px rgba(0, 90, 84, .16);
}
body.single-product .elementor form.cart .single_add_to_cart_button:hover,
body.single-product .elementor form.cart .single_add_to_cart_button:focus-visible {
	background: #005f5a !important; border-color: #005f5a !important;
}
body.single-product .elementor .epci-variation-drawing { margin: 10px 0 0; }
body.single-product .elementor .epci-variation-drawing a {
	min-height: 36px; padding: 7px 12px; border: 1px solid #007c76;
	background: #fff; color: #005f5a !important; font-size: 13px; font-weight: 600;
	line-height: 1.35; border-radius: 4px; box-shadow: none;
}
body.single-product .elementor .epci-variation-drawing a:hover,
body.single-product .elementor .epci-variation-drawing a:focus-visible { background: #edf7f5; color: #004b47 !important; }
body.single-product .elementor .woocommerce-product-gallery .flex-control-thumbs img {
	object-fit: contain; background: #fff;
}
/* Keep an AJAX variation gallery to one image high while its slider initializes. */
body.single-product .woocommerce-product-gallery--wpcvi:not(:has(.flex-viewport)) .woocommerce-product-gallery__wrapper { position: relative; }
body.single-product .woocommerce-product-gallery--wpcvi:not(:has(.flex-viewport)) .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image ~ .woocommerce-product-gallery__image {
	position: absolute; inset: 0; visibility: hidden;
}
/* Also hides a previously cached header widget until its fragment cache expires. */
.elementor-location-header .elementor-element-1fc4ff8 { display: none !important; }

/* Keep labels legible on the existing teal cart summary. */
body.woocommerce-cart .elementor .cart_totals,
body.woocommerce-cart .elementor .cart_totals td,
body.woocommerce-cart .elementor .cart_totals th,
body.woocommerce-cart .elementor .cart_totals label,
body.woocommerce-cart .elementor .cart_totals .woocommerce-shipping-methods,
body.woocommerce-cart .elementor .cart_totals .woocommerce-shipping-destination,
body.woocommerce-cart .elementor .cart_totals .shipping-calculator-button {
	color: #fff !important;
}
body.woocommerce-cart .elementor .cart_totals,
body.woocommerce-cart .elementor .e-cart-totals.e-cart-section { background: #007c76 !important; }
body.woocommerce-cart .elementor .cart_totals .checkout-button {
	background: #fff !important; color: #005f5a !important; border: 2px solid #fff !important;
	min-height: 54px; padding: 15px 20px; font-size: 17px; font-weight: 800; line-height: 1.3;
}
body.woocommerce-cart .elementor .cart_totals .checkout-button:hover,
body.woocommerce-cart .elementor .cart_totals .checkout-button:focus-visible {
	background: #e5f4f1 !important; border-color: #e5f4f1 !important; color: #004b47 !important;
}
@media (max-width: 600px) {
	body.single-product .elementor form.cart .single_add_to_cart_button { min-width: 0; flex: 1; }
}
