/* Site-wide fixes from Warren's 2026-10-04 list (loaded on every page). */

/* Item 6: on phones and tablets, the same navy GENOLOGIX wordmark as desktop
   (desktop shows it as the #homeLogo menu item) instead of the DNA image logo. */
@media (max-width: 980px) {
	#main-header .logo_container #logo { display: none !important; }
	#main-header .logo_container > a::after {
		content: "GENOLOGIX";
		font-family: 'orbitron', 'Poppins', sans-serif;
		font-weight: 900;
		font-size: 30px;
		line-height: 1;
		color: #161548;
		letter-spacing: .01em;
		display: inline-block;
		vertical-align: middle;
		white-space: nowrap;
	}
	/* Item 7: menu icon exactly as tall as the wordmark's letters and centred on
	   the same line. Drawn as three rounded bars instead of Divi's icon-font glyph,
	   whose visible lines are only part of its box. 30px Orbitron caps = 21px tall. */
	/* Divi pins the menu bar near the top of the header; move it down onto the wordmark's centre line (measured). */
	#main-header .mobile_menu_bar { padding-bottom: 0 !important; transform: translateY(18px); }
	#main-header .mobile_menu_bar:before,
	#main-header .mobile_menu_bar_toggle:before {
		content: "" !important;
		display: block;
		position: relative;
		top: 0 !important;
		width: 30px;
		height: 3px;
		margin-bottom: 18px;
		border-radius: 2px;
		font-size: 0 !important;
		line-height: 0 !important;
		background: #161548;
		box-shadow: 0 9px 0 #161548, 0 18px 0 #161548;
	}
}
@media (max-width: 380px) {
	#main-header .logo_container > a::after { font-size: 26px; }
	/* 26px caps = 19px tall. */
	#main-header .mobile_menu_bar:before,
	#main-header .mobile_menu_bar_toggle:before { width: 27px; margin-bottom: 16px; box-shadow: 0 8px 0 #161548, 0 16px 0 #161548; }
	#main-header .mobile_menu_bar { transform: translateY(21px); }
}

/* Item 4: white background throughout. The database colours were changed by
   `wp glx-pf whiten_backgrounds`; these three rules live in the child theme's
   divi-custom.css (a theme file), so they are overridden here instead. */
body #page-container { background-color: #fff !important; }
body.search-results #main-content { background-color: #fff !important; }
body #et-secondary-nav li ul { background-color: #fff !important; }

/* The desktop wordmark is a "GENOLOGIX" menu item; the header shows the wordmark on
   phones now, so drop its duplicate from the open mobile menu. */
#mobile_menu li:has(#homeLogo) { display: none !important; }

/* ---------------- Wishlist page (YITH) in Genologix style ---------------- */
.wishlist_table, .wishlist_table * , .wishlist-title h2, .yith-wcwl-form { font-family: 'Poppins', sans-serif; }
.wishlist-title h2 { color: #161548; font-weight: 700; }
.wishlist_table { border: none !important; }
.wishlist_table thead th .nobr { font-size: 12px !important; color: #8B8FA8 !important; font-weight: 600 !important; }
.wishlist_table thead th { background: #fff !important; color: #8B8FA8 !important; font-size: 12px !important; font-weight: 600 !important; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid #E6E8F0 !important; }
.wishlist_table td { border-bottom: 1px solid #E6E8F0 !important; color: #4A4E68; vertical-align: middle; }
.wishlist_table .product-name a { color: #14163B !important; font-weight: 600; }
.wishlist_table .product-price, .wishlist_table .product-price .amount { color: #14163B !important; font-weight: 700; }
.wishlist_table .wishlist-in-stock { color: #0E8F5C !important; font-weight: 600; }
.wishlist_table .wishlist-out-of-stock { color: #D6455A !important; font-weight: 600; }
.wishlist_table .product-add-to-cart a.button, .wishlist_table a.add_to_cart_button, .wishlist_table .product-add-to-cart a {
	background: #151A52 !important; color: #fff !important; border: none !important; border-radius: 10px !important;
	font-family: 'Poppins', sans-serif !important; font-weight: 700 !important; text-transform: lowercase !important; padding: 10px 18px !important; font-size: 14px !important;
}
.wishlist_table .product-add-to-cart a:hover { background: #0E1240 !important; }
.wishlist_table .product-remove a.remove { color: #8B8FA8 !important; background: transparent !important; }
.wishlist_table .product-remove a.remove:hover { color: #D6455A !important; }
.wishlist-empty, .wishlist_table .wishlist-empty { color: #4A4E68; text-align: center; padding: 30px 0 !important; }
/* One heading (the page title); YITH's own "My Wishlist" heading is hidden. */
.wishlist-title-container, .yith-wcwl-form .wishlist-title { display: none !important; }
.wishlist_table td.product-add-to-cart { text-align: center !important; }
.wishlist_table .product-add-to-cart a { display: inline-block !important; text-align: center !important; width: auto !important; }
.wishlist_table td.product-name, .wishlist_table td.product-price, .wishlist_table td.product-stock-status { font-size: 15px; }
.wishlist_table .product-add-to-cart a { line-height: 1.2 !important; padding: 11px 20px !important; }

/* Wishlist on phones: each item as a card (photo, name/price/stock, full-width add to cart). */
@media (max-width: 767px) {
	.wishlist_table thead { display: none !important; }
	.wishlist_table, .wishlist_table tbody { display: block !important; width: 100% !important; }
	.wishlist_table tbody tr {
		display: grid !important; grid-template-columns: 22px 64px minmax(0, 1fr); column-gap: 12px; row-gap: 2px;
		grid-template-areas: "rm img name" "rm img price" "rm img stock" "btn btn btn";
		padding: 18px 0 !important; border-bottom: 1px solid #E6E8F0;
	}
	.wishlist_table tbody td { display: block !important; border: none !important; padding: 0 !important; text-align: left !important; width: auto !important; }
	.wishlist_table td.product-remove { grid-area: rm; align-self: center; }
	.wishlist_table td.product-thumbnail { grid-area: img; align-self: center; display: block !important; }
	.wishlist_table td.product-thumbnail img { width: 64px !important; height: auto !important; max-width: none !important; }
	.wishlist_table td.product-name { grid-area: name; align-self: end; }
	.wishlist_table td.product-price { grid-area: price; }
	.wishlist_table td.product-stock-status { grid-area: stock; font-size: 13px !important; }
	.wishlist_table td.product-add-to-cart { grid-area: btn; margin-top: 12px; }
	.wishlist_table td.product-add-to-cart a { display: block !important; width: 100% !important; box-sizing: border-box; }
	.wishlist_table tbody tr td.wishlist-empty { grid-column: 1 / -1; text-align: center !important; }
}
/* Centre the wishlist "add to cart" label (the theme's button padding pushed it up and left). */
.wishlist_table td.product-add-to-cart a { display: inline-flex !important; align-items: center !important; justify-content: center !important; min-height: 42px; padding: 0 22px !important; line-height: 1 !important; text-align: center !important; }
@media (max-width: 767px) { .wishlist_table td.product-add-to-cart a { display: flex !important; min-height: 44px; } }

