/* ==========================================================================
   E-KARTS Zlín – vzhled e-shopu (WooCommerce): detail produktu, košík,
   pokladna, Můj účet. Barvy a písma z globálních nastavení Elementoru.
   ========================================================================== */
.ek-shop,
.woocommerce-cart .ek-page,
.woocommerce-checkout .ek-page,
.woocommerce-account .ek-page {
	max-width: 1240px;
	margin: 0 auto;
	padding: 48px 24px 96px;
}

@media (max-width: 767px) {
	.ek-shop,
	.woocommerce-cart .ek-page,
	.woocommerce-checkout .ek-page,
	.woocommerce-account .ek-page {
		padding: 32px 16px 72px;
	}
}

.ek-shop,
.ek-page {
	color: var(--e-global-color-text, #3b4856);
}

.ek-shop h1,
.ek-shop .product_title,
.woocommerce-cart .ek-page h1,
.woocommerce-checkout .ek-page h1,
.woocommerce-account .ek-page h1 {
	margin: 0 0 16px;
	font-family: var(--e-global-typography-ekh1-font-family, inherit);
	font-size: clamp(28px, 3.2vw, 40px);
	font-weight: 800;
	line-height: 1.1;
	text-transform: uppercase;
	color: var(--e-global-color-ekheading, #0b1623);
}

.ek-shop .woocommerce-breadcrumb {
	margin: 0 0 28px;
	font-size: 13px;
	color: var(--e-global-color-ekmuted, #64748b);
}

.ek-shop .woocommerce-breadcrumb a {
	color: var(--e-global-color-secondary, #0a6f96);
	text-decoration: none;
}

/* Detail produktu */
.ek-shop div.product {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 32px 56px;
	align-items: start;
}

.woocommerce .ek-shop div.product div.images,
.woocommerce .ek-shop div.product div.summary,
.woocommerce-page .ek-shop div.product div.images,
.woocommerce-page .ek-shop div.product div.summary {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}

.ek-shop div.product > .woocommerce-tabs,
.ek-shop div.product > .related,
.ek-shop div.product > .up-sells {
	grid-column: 1 / -1;
}

@media (max-width: 900px) {
	.ek-shop div.product {
		grid-template-columns: minmax(0, 1fr);
	}
}

.ek-shop .woocommerce-product-gallery img {
	border-radius: 18px;
}

.ek-shop div.product p.price,
.ek-shop div.product span.price {
	margin: 0 0 20px;
	font-size: 34px;
	font-weight: 800;
	color: var(--e-global-color-ekheading, #0b1623);
}

.ek-shop div.product form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 24px 0;
}

.ek-shop .quantity .qty {
	width: 72px;
	min-height: 48px;
}

.ek-shop .product_meta {
	font-size: 13px;
	color: var(--e-global-color-ekmuted, #64748b);
}

.ek-shop .woocommerce-tabs ul.tabs {
	display: flex;
	gap: 8px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--e-global-color-ekborder, #dde5ec);
}

.ek-shop .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.ek-shop .woocommerce-tabs ul.tabs li::before,
.ek-shop .woocommerce-tabs ul.tabs li::after,
.ek-shop .woocommerce-tabs ul.tabs::before {
	display: none;
}

/* Nadpis „Popis“ uvnitř záložky je zbytečný. */
.ek-shop .woocommerce-Tabs-panel > h2:first-child {
	display: none;
}

.ek-shop .related > h2 {
	margin: 24px 0 20px;
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 800;
	text-transform: uppercase;
	color: var(--e-global-color-ekheading, #0b1623);
}

.ek-shop .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 10px 4px;
	font-weight: 700;
	color: var(--e-global-color-ekheading, #0b1623);
	text-decoration: none;
}

.ek-shop .woocommerce-tabs ul.tabs li.active a {
	box-shadow: inset 0 -3px 0 var(--e-global-color-primary, #16c1eb);
}

/* Formuláře */
.ek-shop input[type="text"],
.ek-shop input[type="email"],
.ek-shop input[type="tel"],
.ek-shop input[type="number"],
.ek-shop input[type="date"],
.ek-shop textarea,
.ek-shop select,
.ek-page .woocommerce input.input-text,
.ek-page .woocommerce select,
.ek-page .woocommerce textarea {
	box-sizing: border-box;
	max-width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid var(--e-global-color-ekborder, #dde5ec);
	border-radius: 8px;
	background: #ffffff;
	font: inherit;
	color: var(--e-global-color-ekheading, #0b1623);
}

.ek-shop textarea,
.ek-page .woocommerce textarea {
	min-height: 110px;
}

.ek-shop input:focus,
.ek-shop textarea:focus,
.ek-shop select:focus,
.ek-page .woocommerce input:focus {
	outline: 2px solid var(--e-global-color-primary, #16c1eb);
	outline-offset: 1px;
}

/* Tlačítka WooCommerce (odkazy i klasická tlačítka) ve stylu webu */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wc-block-components-button:not(.is-link),
.wp-block-button__link.add_to_cart_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 15px 26px;
	border: 2px solid var(--e-global-color-primary, #16c1eb);
	border-radius: 8px;
	background: var(--e-global-color-primary, #16c1eb);
	color: var(--e-global-color-ekdark, #0b1623);
	font-family: var(--e-global-typography-accent-font-family, inherit);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.wc-block-components-button:not(.is-link):hover {
	border-color: var(--e-global-color-ekdark, #0b1623);
	background: var(--e-global-color-ekdark, #0b1623);
	color: #ffffff;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt {
	background: var(--e-global-color-primary, #16c1eb);
	color: var(--e-global-color-ekdark, #0b1623);
}

/* Hlášení */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
	margin: 0 0 24px;
	padding: 16px 20px;
	border: 0;
	border-left: 4px solid var(--e-global-color-primary, #16c1eb);
	border-radius: 8px;
	background: var(--e-global-color-eksoft, #e2f6fc);
	color: var(--e-global-color-ekheading, #0b1623);
	list-style: none;
}

.woocommerce-error {
	border-left-color: var(--e-global-color-accent, #ff6a2b);
	background: #fff1eb;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	display: none;
}

/* Seznam produktů (související produkty, kategorie) */
.ek-shop ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ek-shop ul.products::before,
.ek-shop ul.products::after {
	display: none;
}

.woocommerce .ek-shop ul.products li.product,
.woocommerce-page .ek-shop ul.products li.product {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 16px;
	border: 1px solid var(--e-global-color-ekborder, #dde5ec);
	border-radius: 16px;
	background: #ffffff;
}

.ek-shop ul.products li.product img {
	border-radius: 10px;
}

.ek-shop ul.products li.product .price {
	font-weight: 700;
	color: var(--e-global-color-ekheading, #0b1623);
}

.ek-shop ul.products li.product .woocommerce-loop-product__title {
	font-size: 16px;
	font-weight: 700;
	color: var(--e-global-color-ekheading, #0b1623);
}

@media (max-width: 900px) {
	.ek-shop ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.ek-shop ul.products {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Košík a pokladna (bloky WooCommerce) */
.wc-block-cart,
.wc-block-checkout {
	font-family: inherit;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-product-price {
	font-weight: 800;
	color: var(--e-global-color-ekheading, #0b1623);
}

/* V košíku a pokladně mobilní lištu Rezervovat/Volat schovat – nepřekáží v objednávce. */
.woocommerce-cart .ek-mobile-bar,
.woocommerce-checkout .ek-mobile-bar {
	display: none !important;
}

/* Objednávka přijata / detail objednávky: vše písmem webu (i bloky pluginu dárkových karet a jQuery UI). */
.woocommerce-order,
.woocommerce-order *:not([class*="icon"]):not(.star-rating):not(.dashicons),
.woocommerce-MyAccount-content .woocommerce-order-details *:not([class*="icon"]):not(.dashicons),
.woocommerce .ui-widget,
.woocommerce .ui-widget input,
.woocommerce .ui-widget select,
.woocommerce .ui-widget textarea,
.woocommerce .ui-widget button {
	font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}
.woocommerce-order h2,
.woocommerce-order h3 {
	letter-spacing: 0;
}

/* ---------------- Klasický košík (rychlejší než blokový – bez Reactu) ---------------- */
.woocommerce-cart .ek-page .woocommerce {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
	gap: 32px;
	align-items: start;
}
.woocommerce-cart .ek-page .woocommerce > .woocommerce-notices-wrapper,
.woocommerce-cart .ek-page .woocommerce > .cart-empty,
.woocommerce-cart .ek-page .woocommerce > .return-to-shop,
.woocommerce-cart .ek-page .woocommerce > .wc-empty-cart-message {
	grid-column: 1 / -1;
}
.woocommerce-cart .woocommerce-cart-form { margin: 0; }
.woocommerce-cart table.shop_table {
	border: 0;
	border-radius: 0;
	margin: 0;
	border-collapse: collapse;
}
.woocommerce-cart table.shop_table thead th {
	padding: 0 12px 12px;
	border-bottom: 2px solid var(--e-global-color-ekheading, #0b1623);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--e-global-color-ekheading, #0b1623);
}
.woocommerce-cart table.shop_table td {
	padding: 20px 12px;
	border-top: 0;
	border-bottom: 1px solid rgba(11, 22, 35, 0.12);
	vertical-align: middle;
}
.woocommerce-cart table.shop_table td.product-thumbnail { width: 96px; }
.woocommerce-cart table.shop_table td.product-thumbnail img {
	width: 88px !important;
	height: auto;
	border-radius: 10px;
	display: block;
}
.woocommerce-cart table.shop_table td.product-name > a {
	font-weight: 800;
	font-size: 18px;
	color: var(--e-global-color-ekheading, #0b1623);
	text-decoration: none;
}
.woocommerce-cart table.shop_table td.product-name > a:hover { color: var(--e-global-color-primary, #16c1eb); }
.woocommerce-cart table.shop_table dl.variation {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 2px 10px;
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 1.4;
}
.woocommerce-cart table.shop_table dl.variation dt,
.woocommerce-cart table.shop_table dl.variation dd {
	float: none;
	margin: 0;
	padding: 0;
}
.woocommerce-cart table.shop_table dl.variation dt { font-weight: 700; color: var(--e-global-color-ekheading, #0b1623); }
.woocommerce-cart table.shop_table dl.variation dd p { margin: 0; }
.woocommerce-cart table.shop_table td.product-price,
.woocommerce-cart table.shop_table td.product-subtotal {
	white-space: nowrap;
	font-weight: 700;
	color: var(--e-global-color-ekheading, #0b1623);
}
.woocommerce-cart table.shop_table td.product-remove { width: 40px; }
.woocommerce-cart table.shop_table td.product-remove a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid rgba(11, 22, 35, 0.15);
	border-radius: 50%;
	color: #6b7785 !important;
	font-size: 20px;
	line-height: 1;
	text-decoration: none;
}
.woocommerce-cart table.shop_table td.product-remove a.remove:hover {
	border-color: #d63638;
	background: #d63638;
	color: #fff !important;
}
.woocommerce-cart table.shop_table td.product-quantity .quantity input.qty { width: 64px; text-align: center; }
.woocommerce-cart table.shop_table td.actions {
	padding: 16px 0 0;
	border-bottom: 0;
	text-align: right;
}
.woocommerce-cart table.shop_table td.actions button[name="update_cart"] {
	padding: 10px 18px;
	border-color: rgba(11, 22, 35, 0.2);
	background: transparent;
	color: var(--e-global-color-ekheading, #0b1623);
	font-size: 12px;
}
.woocommerce-cart table.shop_table td.actions button[name="update_cart"]:disabled { opacity: 0.45; cursor: default; }
.woocommerce-cart .cart-collaterals { width: auto; }
.woocommerce-cart .cart-collaterals .cart_totals {
	float: none;
	width: auto;
	padding: 24px;
	border-radius: 14px;
	background: #f3f6f9;
}
.woocommerce-cart .cart_totals h2 {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 800;
	text-transform: uppercase;
}
.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
	padding: 10px 0;
	background: transparent;
	border-bottom: 1px solid rgba(11, 22, 35, 0.1);
	font-size: 15px;
}
.woocommerce-cart .cart_totals tr.order-total th,
.woocommerce-cart .cart_totals tr.order-total td {
	border-bottom: 0;
	font-size: 20px;
	font-weight: 800;
	color: var(--e-global-color-ekheading, #0b1623);
}
.woocommerce-cart .wc-proceed-to-checkout { padding: 16px 0 0; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
	display: flex;
	width: 100%;
	margin: 0;
	padding: 18px 20px;
	font-size: 16px;
}

@media (max-width: 900px) {
	.woocommerce-cart .ek-page .woocommerce { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 768px) {
	/* WooCommerce na mobilu skládá řádky pod sebe – jen úklid. */
	.woocommerce-cart table.shop_table_responsive tr.cart_item {
		display: block;
		position: relative;
		padding: 16px 0 12px;
		border-bottom: 1px solid rgba(11, 22, 35, 0.12);
	}
	.woocommerce-cart table.shop_table_responsive tr.cart_item td {
		display: block;
		padding: 4px 0;
		border: 0;
		background: transparent !important;
		text-align: left !important;
	}
	.woocommerce-cart table.shop_table_responsive tr.cart_item td::before { font-weight: 700; color: var(--e-global-color-ekheading, #0b1623); }
	.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-price,
	.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-quantity,
	.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-subtotal {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
	}
	.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-price::before,
	.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-quantity::before,
	.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-subtotal::before {
		float: none;
		font-weight: 600;
		color: #6b7785;
	}
	.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-name::before,
	.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-thumbnail::before,
	.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-remove::before { content: none; }
	.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-thumbnail { display: none; }
	.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-remove {
		position: absolute;
		top: 14px;
		right: 0;
		width: auto;
		padding: 0;
	}
	.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-name { padding-right: 44px; }
	.woocommerce-cart table.shop_table td.actions { text-align: left; }
	.woocommerce-cart table.shop_table td.actions button[name="update_cart"] { width: 100%; }
	.woocommerce-cart .cart_totals table.shop_table_responsive tr { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid rgba(11, 22, 35, 0.1); }
	.woocommerce-cart .cart_totals table.shop_table_responsive tr.order-total { border-bottom: 0; }
	.woocommerce-cart .cart_totals table.shop_table_responsive th,
	.woocommerce-cart .cart_totals table.shop_table_responsive td {
		border-bottom: 0 !important;
		background: transparent !important;
		white-space: nowrap;
	}
	.woocommerce-cart .cart_totals table.shop_table_responsive td::before { content: none !important; }
	.woocommerce-cart .cart_totals table.shop_table_responsive th { display: block; }
}
.woocommerce-cart .cart_totals table.shop_table th { white-space: nowrap; width: 50%; }
.woocommerce-cart .cart_totals table.shop_table td { text-align: right; }
