/* yonex.by — responsive fixes, approved by Misha 26.11.2026 (cases 1, 2b, 4/7, 6, 8, 9, 10 of the before/after page).
   Files: mu-plugins/yonex-responsive-fixes.php (enqueue) + mu-plugins/yonex-responsive-fixes.css.
   Rollback: delete both files and clear WP Super Cache.
   Numbers refer to data/seo/responsive-audit-yonex-by-2026-11-26.md */

/* 1. Cookie notice on phones/tablets: compact; "Хорошо" and the close cross side by side
      on the left; while the notice is shown the Jivo button sits above it
      (it covered the cross). Cookie Notice switches body.cookies-not-set off on accept. */
@media (max-width: 1024px) {
	body.cookies-not-set jdiv[class*="__jivoMobileButton"] {
		bottom: 118px !important;
	}
	#cookie-notice .cookie-notice-container {
		padding: 12px 16px;
		text-align: left;
	}
	#cookie-notice #cn-notice-text {
		display: block;
		font-size: 13px;
		line-height: 1.35;
		margin: 0 0 8px;
	}
	#cookie-notice #cn-notice-buttons {
		display: inline-block;
		margin: 0;
	}
	#cookie-notice .cn-button {
		margin: 0;
		padding: 6px 16px;
		font-size: 14px;
	}
	#cookie-notice #cn-close-notice {
		position: relative;
		top: auto;
		right: auto;
		left: auto;
		display: inline-block;
		vertical-align: middle;
		margin: 0 0 0 18px;
		width: 28px;
		height: 28px;
		transform: none;
	}
	#cookie-notice #cn-close-notice::before,
	#cookie-notice #cn-close-notice::after {
		left: 13px;
		top: 6px;
	}
}

/* 2b. Desktop header between 1200 and 1319 px: everything must fit, cart visible. */
@media (min-width: 1200px) and (max-width: 1319px) {
	.site-header .header-bottom .site-header__container {
		margin-left: 0;
		margin-right: 0;
		padding-left: 20px;
		padding-right: 20px;
	}
	#menu-topmenu > li {
		margin-left: 0;
		margin-right: 0;
		padding-left: 6px;
		padding-right: 6px;
	}
	#menu-topmenu > li > a {
		font-size: 15px;
	}
	#menu-topmenu .dgwt-wcas-search-wrapp {
		max-width: 140px !important;
		min-width: 0 !important;
	}
	.site-header .header-cart {
		margin-left: 14px;
	}
}

/* Mobile menu button: 44x44 tap area (the icon itself stays the same). */
.mobile-menu-toggle.hamburger-menu {
	box-sizing: content-box;
	padding: 11px 12px;
	margin: -11px -12px;
}

/* 6. Filters: hide a filter block with no options (e.g. "Размеры" in rackets).
      (The "Посмотреть 2 Подробнее" text is fixed in FacetWP / translation, not in CSS.) */
.widget:has(> .textwidget > .facetwp-facet:empty) {
	display: none;
}

/* 7 (part). Category on phones: lower header, products before the side blocks, sorting shown. */
@media (max-width: 767px) {
	.woocommerce-products-header {
		height: auto !important;
	}
	.woocommerce-products-header .woocommerce-products-header__container {
		height: auto !important;
		min-height: 0 !important;
		padding-top: 28px;
		padding-bottom: 20px;
	}
	.woocommerce-products-header .woocommerce-products-header__title {
		font-size: 30px;
		line-height: 1.2;
		margin-bottom: 10px;
	}
	.woocommerce-products-header .term-description {
		font-size: 14px;
		line-height: 1.45;
	}
	.woocommerce-products-header .term-description p {
		margin-bottom: 6px;
	}
	.woocommerce-products-header .woocommerce-breadcrumb {
		margin-top: 10px;
	}
	.shop-content-container {
		flex-wrap: wrap;
	}
	.shop-content-container #primary {
		order: 1;
	}
	.shop-content-container #secondary {
		order: 2;
	}
	/* NB: konte-child already has ".products-toolbar.layout-v5 .woocommerce-ordering{display:none !important}"
	   — someone hid sorting on purpose earlier; this overrides it. */
	.products-toolbar.layout-v5 .products-tools .woocommerce-ordering {
		display: block !important;
		float: right !important;
	}
	.products-toolbar .woocommerce-ordering select.orderby {
		font-size: 16px; /* iPhone does not zoom on tap */
	}
	.products-toolbar .woocommerce-result-count {
		display: none !important;
	}
}

/* 8 (part). Product on tablets 768–1023 px: two columns like on desktop. */
@media (min-width: 768px) and (max-width: 1023px) {
	.woocommerce div.product.layout-v7 .woocommerce-product-gallery {
		width: 50% !important;
		float: left !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	.woocommerce div.product.layout-v7 .summary.entry-summary {
		width: 46% !important;
		float: right !important;
		padding-top: 0 !important;
	}
}

/* 9. Phone lying sideways: hide the green top bar, less empty space. */
@media (max-height: 500px) and (max-width: 1024px) {
	#topbar {
		display: none;
	}
}

/* 10. Wide screens: header no wider than the content. */
@media (min-width: 1600px) {
	.site-header .header-bottom .site-header__container,
	.site-header .topbar > div {
		max-width: 1440px;
		margin-left: auto;
		margin-right: auto;
	}
}

/* 10. Login: social buttons one width. */
.wc-social-login .button-social-login {
	display: block;
	width: 100%;
	max-width: 280px;
	box-sizing: border-box;
	margin-bottom: 10px;
}
