/*
Theme Name: Pharmacy Mentor - WooPW Theme
Theme URI: https://www.pharmacymentor.com/
Author: Pharmacy Mentor
Author URI: https://www.pharmacymentor.com/
Description: A fully customisable (ACF + Customizer) WooCommerce pharmacy theme built from the new Mentor Pharmacy design system. Compatible with the WooPW plugin.
Version: 2.0.0
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.
 */

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

@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

/*
 * 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;
	}
}

@media screen and (max-width: 1024px) {
	.pm-hide-mobile {
		display: none !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 .btn-primary.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 .btn-primary.pm-show-mobile {
		padding: 7px 12px;
		font-size: 12px;
	}
}

/* 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: 26px;
	width: auto;
	max-width: 60px;
	object-fit: contain;
}


