/*
Theme Name: Pharmacy Mentor - Child
Template: pharmacymentor
Theme URI: https://www.pharmacymentor.com/
Author: Pharmacy Mentor
Author URI: https://www.pharmacymentor.com/
Description: Child theme design layer for Pharmacy Mentor. Functionality is provided by the parent theme; this theme supplies the new Mentor Pharmacy design system (templates, CSS, and ACF-driven content).
Version: 2.9.155
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pharmacymentor
Tags: woocommerce, pharmacy, custom-logo, custom-menu, featured-images, full-width-template
*/

/*
 * Visual styles live in /assets/css (colors.css, theme.css, responsive.css and per-page files).
 * This file only carries the theme header plus a few WordPress admin-bar adjustments.
 */



/*
 * Top bar mobile visibility (ACF: Header Settings → Show on Mobile).
 * The design hides .utility-bar at <=768px; this opt-in class shows it again.
 */
@media screen and (max-width: 768px) {
	.utility-bar.utility-bar--mobile-visible {
		display: block;
	}
}

/*
 * Header element visibility (ACF: Main Header desktop/mobile toggles).
 * Desktop = >1024px, Mobile = <=1024px.
 */
@media screen and (min-width: 1025px) {
	.pm-hide-desktop {
		display: none !important;
	}

	.site-header {
		position: sticky !important;
		top: 0 !important;
		z-index: 240 !important;
	}

	body.admin-bar .site-header {
		top: 32px !important;
	}
}

@media screen and (max-width: 1024px) {
	.pm-hide-mobile {
		display: none !important;
	}

	.site-header {
		position: relative !important;
		top: 0 !important;
		left: 0 !important;
		right: 0 !important;
		width: 100% !important;
		z-index: 240 !important;
	}

	body.mobile-header-fixed {
		padding-top: 63px;
	}

	body.mobile-header-fixed .site-header {
		position: fixed !important;
	}
}

/* Force-show on mobile for elements the design hides at <=768px (search, button). */
@media screen and (max-width: 768px) {
	.header-actions .icon-btn.pm-show-mobile {
		display: flex !important;
	}
	/* Keep the optional CTA compact so it fits next to the icons instead of
	   overflowing the row at full desktop size. */
	.header-actions .header-cta-btn.pm-show-mobile {
		display: inline-flex !important;
		padding: 8px 14px;
		font-size: 13px;
		line-height: 1.2;
		white-space: nowrap;
		flex-shrink: 0;
	}
}

@media screen and (max-width: 480px) {
	.header-actions .header-cta-btn.pm-show-mobile {
		padding: 7px 12px;
		font-size: 12px;
	}
}

.scroll-to-top-btn {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 260;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--grey-200);
	border-radius: 50%;
	background: var(--teal);
	color: var(--white);
	box-shadow: 0 16px 30px -18px var(--dark-55);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background .2s ease;
}

.scroll-to-top-btn.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.scroll-to-top-btn:hover,
.scroll-to-top-btn:focus-visible {
	background: var(--teal-dark);
}

.scroll-to-top-btn svg {
	width: 20px;
	height: 20px;
}

@media screen and (max-width: 768px) {
	.scroll-to-top-btn {
		right: 16px;
		bottom: 16px;
		width: 44px;
		height: 44px;
	}
}

/* Hide the cart badge when the cart is empty. */
.cart-count.is-empty {
	display: none;
}

/* Image logo sizing. */
.logo--image img,
.logo .logo-img {
	display: block;
	max-height: 44px;
	width: auto;
}

/* Mega-menu icons rendered via Font Awesome or an uploaded image. */
.mega-icon i {
	font-size: 16px;
	color: var(--grey-500);
	transition: color var(--transition);
}
.mega-col a:hover .mega-icon i {
	color: var(--teal);
}
.mega-icon .menu-icon-img {
	width: 18px;
	height: 18px;
	object-fit: contain;
}

/* Mega menu without a featured side panel spans the full width. */
.mega-menu.mega-no-featured {
	grid-template-columns: 1fr;
}

/* Mega menu "View all" pill (default demo nav). */
.mega-col .mega-view-all {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 16px;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--teal);
	border-radius: 8px;
	background: var(--teal-subtle);
}

/* Footer: Font Awesome social icons. */
.footer-socials .social-link i {
	font-size: 15px;
	line-height: 1;
}

/* Footer: uploaded copyright/payment images. */
.footer-payments img.payment-img {
	display: block;
	height: 28px;
	width: auto !important;
	max-width: none;
	max-height: 28px;
	object-fit: contain;
	flex-shrink: 0;
}
