/**
 * Úpravy e-shopu dle zadání klienta (06/2026)
 * A) černé písmo ve formulářích · C) kotvy · D) badge košíku
 * E) můj účet + ikona v menu + šipky tlačítek · F) iPad · G) mobil
 */

/* =====================================================================
 * A) Formuláře — černé písmo místo šedého (čitelnost)
 * ================================================================== */
#et-main-area input[type="text"],
#et-main-area input[type="email"],
#et-main-area input[type="tel"],
#et-main-area input[type="number"],
#et-main-area input[type="password"],
#et-main-area input[type="search"],
#et-main-area select,
#et-main-area textarea,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce table.cart td.actions .coupon .input-text,
.woocommerce .quantity input.qty,
.select2-container--default .select2-selection--single .select2-selection__rendered {
	color: #000 !important;
	-webkit-text-fill-color: #000;
	opacity: 1;
}

/* Placeholder tmavší šedá (stále odlišený od vyplněné hodnoty) */
#et-main-area input::placeholder,
#et-main-area textarea::placeholder,
.woocommerce form .form-row input.input-text::placeholder {
	color: #555 !important;
	opacity: 1;
}

/* =====================================================================
 * C) Kotvy na stránce e-shop — odsazení pod fixní hlavičkou
 * (pro nativní skok; JS řeší přebití Divi animace)
 * ================================================================== */
#sladke,
#slane,
#ostatni {
	scroll-margin-top: 150px;
}

@media (max-width: 980px) {
	#sladke,
	#slane,
	#ostatni {
		scroll-margin-top: 110px;
	}
}

/* =====================================================================
 * D) Bublina s počtem položek na ikoně košíku
 * ================================================================== */
#et-top-navigation .et-cart-info,
.et_mobile_nav_menu .et-cart-info {
	position: relative;
}

.kosik-pocet {
	position: absolute;
	top: -11px;
	right: -13px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: #f8e091;
	color: #245c82;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	box-sizing: border-box;
}

/* =====================================================================
 * E) Ikona „Můj účet“ v hlavním menu
 * ================================================================== */
#top-menu li.pomnenka-ucet .pomnenka-ucet-text {
	display: none; /* na desktopu jen ikona */
}

#top-menu li.pomnenka-ucet .pomnenka-ucet-ikona:before {
	content: "\e08a";
	font-family: "ETmodules" !important;
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
	vertical-align: middle;
	speak: none;
}

/* V mobilním menu naopak textový odkaz bez ikony */
.et_mobile_menu li.pomnenka-ucet .pomnenka-ucet-ikona {
	display: none;
}

.et_mobile_menu li.pomnenka-ucet .pomnenka-ucet-text {
	display: inline;
}

/* =====================================================================
 * E) Stránka Můj účet — bez pravého sloupce s rubrikami příspěvků
 * ================================================================== */
.woocommerce-account #left-area {
	width: 100% !important;
	padding-right: 0 !important;
	float: none !important;
}

.woocommerce-account #sidebar {
	display: none !important;
}

/* svislá oddělovací linka sloupců */
.woocommerce-account #main-content .container:before {
	display: none !important;
}

/* =====================================================================
 * E) Šipka v tlačítkách zarovnaná na střed textu (Můj účet, košík…)
 * ================================================================== */
.woocommerce a.button:after,
.woocommerce button.button:after,
.woocommerce input.button:after,
.woocommerce #respond input#submit:after,
.woocommerce-page a.button:after,
.woocommerce-page button.button:after,
.woocommerce-page input.button:after {
	/* šipka zůstává inline vpravo za textem (pozici řídí Divi margin),
	   vertikálně střed přes top + transform; -0.08em = optická korekce
	   glyphu ETmodules, který je nakreslený kousek pod středem em-boxu */
	top: calc(50% - 0.08em) !important;
	bottom: auto !important;
	height: 1em !important;
	line-height: 1 !important;
	margin-top: 0 !important;
	transform: translateY(-50%) !important;
}

/* =====================================================================
 * F) Hover tlačítek — šipka vždy stejnou barvou jako text
 * (na iPadu text oranžový, šipka zůstávala bílá)
 * ================================================================== */
.et_pb_button:hover:after,
.woocommerce a.button:hover:after,
.woocommerce button.button:hover:after,
.woocommerce input.button:hover:after,
.woocommerce-page a.button:hover:after,
.woocommerce-page button.button:hover:after,
.woocommerce-page input.button:hover:after,
/* varianty .alt a detail produktu — vyšší specificita, aby přebila
   pravidla z Divi customizeru (na iPhonu zůstávala šipka bílá) */
body .woocommerce a.button.alt:hover:after,
body .woocommerce button.button.alt:hover:after,
body .woocommerce input.button.alt:hover:after,
body .woocommerce div.product form.cart .button:hover:after,
body .woocommerce button.single_add_to_cart_button:hover:after,
body .woocommerce button.single_add_to_cart_button:active:after {
	color: inherit !important;
}

/* Barva šipky se nesmí animovat (transition: all dělala při ťuknutí na
   mobilu bílý záblesk) — animují se jen opacity a posun */
.et_pb_button:after,
.woocommerce a.button:after,
.woocommerce button.button:after,
.woocommerce input.button:after,
.woocommerce-page a.button:after,
.woocommerce-page button.button:after,
.woocommerce-page input.button:after {
	transition-property: opacity, margin, padding !important;
}

/* =====================================================================
 * F) Tlačítka +/− u pole množství (dotyková zařízení nemají šipky)
 * ================================================================== */
.quantity.ma-steppery {
	display: inline-flex !important;
	align-items: center;
	gap: 4px;
}

.quantity.ma-steppery input.qty {
	-moz-appearance: textfield;
	appearance: textfield;
	text-align: center;
}

.quantity.ma-steppery input.qty::-webkit-outer-spin-button,
.quantity.ma-steppery input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.qty-btn {
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	border: none;
	border-radius: 50%;
	background: #f1f1ee;
	color: #245c82;
	font-size: 20px;
	line-height: 1;
	font-weight: 600;
	cursor: pointer;
	padding: 0;
	transition: background 0.15s ease;
}

.qty-btn:hover {
	background: #e2e2dd;
}

/* Bez rámečku/outline po kliknutí; viditelnost fokusu řeší tmavší pozadí */
.qty-btn:focus,
.qty-btn:focus-visible,
.qty-btn:active {
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	background: #e2e2dd;
}

/* =====================================================================
 * F) iPad — kulaté tlačítko „e-shop“ na úvodní stránce sjednotit
 * velikostí s logem Scuku (jako na počítači)
 * ================================================================== */
@media (min-width: 768px) and (max-width: 1024px) {
	.home a.et_pb_button[href$="/e-shop/"],
	.home a.et_pb_button[href$="/e-shop"] {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 130px !important;
		height: 130px !important;
		padding: 0 !important;
		font-size: 17px !important;
		line-height: 1.2 !important;
	}
}

/* =====================================================================
 * F) Hláška „přidáno do košíku“ nahoře — nezasahovat do loga (tablet)
 * ================================================================== */
@media (min-width: 768px) and (max-width: 1200px) {
	.woocommerce-notices-wrapper {
		width: calc(100% - 230px) !important;
		margin: 0 0 0 210px !important;
		font-size: 14px;
	}
}

/* =====================================================================
 * G) Telefon — menší písmo a tlačítka na stránkách e-shopu
 * (sjednocení s velikostí písma na ostatních stránkách)
 * ================================================================== */
@media (max-width: 767px) {
	.woocommerce #et-main-area,
	.woocommerce-page #et-main-area {
		font-size: 15px;
	}

	.woocommerce table.shop_table,
	.woocommerce-page table.shop_table {
		font-size: 14px;
	}

	.woocommerce #et-main-area .button,
	.woocommerce-page #et-main-area .button,
	.woocommerce-page #et-main-area .et_pb_button {
		font-size: 15px !important;
	}

	/* Kupon v košíku — pole a tlačítko pod sebou, tlačítko jako pilulka
	   (původní kulaté tlačítko lámalo text po písmenech) */
	.woocommerce table.cart td.actions .coupon {
		display: flex;
		flex-direction: column;
		gap: 10px;
		float: none;
	}

	.woocommerce table.cart td.actions .coupon .input-text {
		width: 100% !important;
		margin: 0 !important;
	}

	.woocommerce table.cart td.actions .coupon .button,
	.woocommerce table.cart td.actions > .button {
		width: 100% !important;
		height: auto !important;
		border-radius: 40px !important;
		padding: 12px 20px !important;
		font-size: 15px !important;
		line-height: 1.4 !important;
		white-space: normal !important;
		word-break: normal !important;
	}
}
