/*!
Theme Name: MechanicMate
Theme URI: https://mechanicmate.net/
Author: MechanicMate
Author URI: https://mechanicmate.net/
Description: Professional WooCommerce theme for selling digital vehicle workshop manuals. Built for high conversion with trust signals, polished UI, and instant-download focus.
Version: 2.0.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: mechanicmate
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, e-commerce, one-column, two-columns

MechanicMate is a premium WooCommerce theme for digital vehicle workshop manuals.
*/

/* ==========================================================================
   Design System & CSS Custom Properties
   ========================================================================== */

:root {
	/* ── Brand colours ── */
	--mm-navy:        #001B49;
	--mm-navy-light:  #0a2d6e;
	--mm-navy-dark:   #000f2e;
	--mm-orange:      #FF6F00;
	--mm-orange-hover:#E56300;
	--mm-orange-light:#FFF3E0;

	/* ── Neutrals ── */
	--mm-white:       #FFFFFF;
	--mm-gray-50:     #F9FAFB;
	--mm-gray-100:    #F3F4F6;
	--mm-gray-200:    #E5E7EB;
	--mm-gray-300:    #D1D5DB;
	--mm-gray-400:    #9CA3AF;
	--mm-gray-500:    #6B7280;
	--mm-gray-600:    #4B5563;
	--mm-gray-700:    #374151;
	--mm-gray-800:    #1F2937;
	--mm-gray-900:    #111827;

	/* ── Feedback colours ── */
	--mm-success:     #059669;
	--mm-success-bg:  #ECFDF5;
	--mm-error:       #DC2626;
	--mm-error-bg:    #FEF2F2;
	--mm-info:        #2563EB;
	--mm-info-bg:     #EFF6FF;
	--mm-warning:     #D97706;
	--mm-warning-bg:  #FFFBEB;

	/* ── Typography ── */
	--mm-font-sans:   'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	--mm-font-mono:   'JetBrains Mono', ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

	--mm-text-xs:     0.75rem;    /* 12px */
	--mm-text-sm:     0.875rem;   /* 14px */
	--mm-text-base:   1rem;       /* 16px */
	--mm-text-lg:     1.125rem;   /* 18px */
	--mm-text-xl:     1.25rem;    /* 20px */
	--mm-text-2xl:    1.5rem;     /* 24px */
	--mm-text-3xl:    1.875rem;   /* 30px */
	--mm-text-4xl:    2.25rem;    /* 36px */
	--mm-text-5xl:    3rem;       /* 48px */

	/* ── Spacing scale ── */
	--mm-sp-1:  0.25rem;  /* 4px */
	--mm-sp-2:  0.5rem;   /* 8px */
	--mm-sp-3:  0.75rem;  /* 12px */
	--mm-sp-4:  1rem;     /* 16px */
	--mm-sp-5:  1.25rem;  /* 20px */
	--mm-sp-6:  1.5rem;   /* 24px */
	--mm-sp-8:  2rem;     /* 32px */
	--mm-sp-10: 2.5rem;   /* 40px */
	--mm-sp-12: 3rem;     /* 48px */
	--mm-sp-16: 4rem;     /* 64px */
	--mm-sp-20: 5rem;     /* 80px */
	--mm-sp-24: 6rem;     /* 96px */

	/* ── Layout ── */
	--mm-rail:    1200px;
	--mm-gutter:  clamp(16px, 4vw, 32px);
	--mm-content: 800px;

	/* ── Radius ── */
	--mm-radius-sm:   6px;
	--mm-radius:      8px;
	--mm-radius-lg:   12px;
	--mm-radius-xl:   16px;
	--mm-radius-full: 9999px;

	/* ── Shadows ── */
	--mm-shadow-sm:   0 1px 2px rgba(0,0,0,.05);
	--mm-shadow:      0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
	--mm-shadow-md:   0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
	--mm-shadow-lg:   0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
	--mm-shadow-xl:   0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);

	/* ── Transitions ── */
	--mm-ease:        cubic-bezier(.4, 0, .2, 1);
	--mm-duration:    0.2s;
	--mm-duration-md: 0.3s;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--mm-font-sans);
	font-size: var(--mm-text-base);
	line-height: 1.6;
	color: var(--mm-gray-800);
	background: var(--mm-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

main { display: block; }

img {
	border-style: none;
	height: auto;
	max-width: 100%;
	display: block;
}

embed,
iframe,
object {
	max-width: 100%;
}

figure { margin: 1em 0; }

table {
	margin: 0 0 var(--mm-sp-6);
	width: 100%;
	border-collapse: collapse;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
	font-family: var(--mm-font-sans);
	font-weight: 700;
	line-height: 1.25;
	color: var(--mm-gray-900);
	margin-top: 0;
	margin-bottom: var(--mm-sp-4);
}

h1 { font-size: clamp(var(--mm-text-3xl), 4vw, var(--mm-text-5xl)); }
h2 { font-size: clamp(var(--mm-text-2xl), 3vw, var(--mm-text-4xl)); }
h3 { font-size: clamp(var(--mm-text-xl), 2.5vw, var(--mm-text-3xl)); }
h4 { font-size: var(--mm-text-xl); }
h5 { font-size: var(--mm-text-lg); }
h6 { font-size: var(--mm-text-base); }

p { margin: 0 0 var(--mm-sp-4); }

b, strong { font-weight: 600; }
small     { font-size: 87.5%; }

blockquote {
	margin: var(--mm-sp-6) 0;
	padding: var(--mm-sp-4) var(--mm-sp-6);
	border-left: 4px solid var(--mm-orange);
	background: var(--mm-gray-50);
	border-radius: 0 var(--mm-radius) var(--mm-radius) 0;
	font-style: italic;
	color: var(--mm-gray-700);
}

pre {
	background: var(--mm-gray-900);
	color: var(--mm-gray-100);
	font-family: var(--mm-font-mono);
	font-size: var(--mm-text-sm);
	line-height: 1.7;
	padding: var(--mm-sp-6);
	border-radius: var(--mm-radius-lg);
	overflow-x: auto;
	margin-bottom: var(--mm-sp-6);
}

code, kbd, tt, var {
	font-family: var(--mm-font-mono);
	font-size: 0.9em;
	background: var(--mm-gray-100);
	padding: 0.15em 0.4em;
	border-radius: var(--mm-radius-sm);
}

pre code { background: none; padding: 0; }

hr {
	border: 0;
	height: 1px;
	background: var(--mm-gray-200);
	margin: var(--mm-sp-8) 0;
}

/* ==========================================================================
   Lists
   ========================================================================== */

ul, ol { margin: 0 0 var(--mm-sp-6); padding-left: var(--mm-sp-6); }
ul     { list-style: disc; }
ol     { list-style: decimal; }
li > ul, li > ol { margin-bottom: 0; }
dt     { font-weight: 600; }
dd     { margin: 0 0 var(--mm-sp-4); }

/* ==========================================================================
   Links
   ========================================================================== */

a {
	color: var(--mm-navy);
	text-decoration: none;
	transition: color var(--mm-duration) var(--mm-ease);
}

a:hover,
a:focus {
	color: var(--mm-orange);
}

a:focus-visible {
	outline: 2px solid var(--mm-orange);
	outline-offset: 2px;
	border-radius: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--mm-sp-2);
	font-family: var(--mm-font-sans);
	font-size: var(--mm-text-sm);
	font-weight: 600;
	line-height: 1.5;
	padding: var(--mm-sp-3) var(--mm-sp-6);
	border: 2px solid transparent;
	border-radius: var(--mm-radius-full);
	background: var(--mm-navy);
	color: var(--mm-white);
	cursor: pointer;
	transition: all var(--mm-duration) var(--mm-ease);
	text-decoration: none;
	white-space: nowrap;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.btn:hover {
	background: var(--mm-navy-light);
	transform: translateY(-1px);
	box-shadow: var(--mm-shadow-md);
}

button:active,
input[type="submit"]:active,
.btn:active {
	transform: translateY(0);
	box-shadow: var(--mm-shadow-sm);
}

button:focus-visible,
input[type="submit"]:focus-visible,
.btn:focus-visible {
	outline: 2px solid var(--mm-orange);
	outline-offset: 2px;
}

/* Primary CTA button */
.btn-primary,
.btn-cta,
a.btn-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--mm-sp-2);
	font-family: var(--mm-font-sans);
	font-size: var(--mm-text-sm);
	font-weight: 600;
	line-height: 1.5;
	padding: var(--mm-sp-3) var(--mm-sp-6);
	border: 2px solid transparent;
	border-radius: var(--mm-radius-full);
	background: var(--mm-orange);
	color: var(--mm-white);
	cursor: pointer;
	transition: all var(--mm-duration) var(--mm-ease);
	text-decoration: none;
	white-space: nowrap;
}

.btn-primary:hover,
.btn-cta:hover,
a.btn-cta:hover {
	background: var(--mm-orange-hover);
	color: var(--mm-white);
	transform: translateY(-1px);
	box-shadow: var(--mm-shadow-md);
}

/* Outline button */
.btn-outline,
a.btn-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--mm-sp-2);
	font-family: var(--mm-font-sans);
	font-size: var(--mm-text-sm);
	font-weight: 600;
	line-height: 1.5;
	padding: var(--mm-sp-3) var(--mm-sp-6);
	border: 2px solid var(--mm-navy);
	border-radius: var(--mm-radius-full);
	background: transparent;
	color: var(--mm-navy);
	cursor: pointer;
	transition: all var(--mm-duration) var(--mm-ease);
	text-decoration: none;
	white-space: nowrap;
}

.btn-outline:hover,
a.btn-outline:hover {
	background: var(--mm-navy);
	color: var(--mm-white);
	transform: translateY(-1px);
	box-shadow: var(--mm-shadow-md);
}

/* Large button */
.btn-lg,
a.btn-lg {
	font-size: var(--mm-text-base);
	padding: var(--mm-sp-4) var(--mm-sp-8);
}

/* Small button */
.btn-sm {
	font-size: var(--mm-text-xs);
	padding: var(--mm-sp-2) var(--mm-sp-4);
}

/* ==========================================================================
   Forms
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime-local"],
input[type="color"],
textarea,
select {
	width: 100%;
	font-family: var(--mm-font-sans);
	font-size: var(--mm-text-base);
	color: var(--mm-gray-800);
	background: var(--mm-white);
	border: 1.5px solid var(--mm-gray-300);
	border-radius: var(--mm-radius);
	padding: var(--mm-sp-3) var(--mm-sp-4);
	transition: border-color var(--mm-duration) var(--mm-ease),
	            box-shadow var(--mm-duration) var(--mm-ease);
	line-height: 1.5;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
	border-color: var(--mm-navy);
	box-shadow: 0 0 0 3px rgba(0, 27, 73, 0.1);
	outline: none;
}

input::placeholder,
textarea::placeholder {
	color: var(--mm-gray-400);
}

textarea { min-height: 120px; resize: vertical; }

label {
	display: block;
	font-size: var(--mm-text-sm);
	font-weight: 500;
	color: var(--mm-gray-700);
	margin-bottom: var(--mm-sp-1);
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-main {
	flex: 1;
}

.mm-container {
	max-width: var(--mm-rail);
	margin-inline: auto;
	padding-inline: var(--mm-gutter);
}

.mm-container-narrow {
	max-width: var(--mm-content);
	margin-inline: auto;
	padding-inline: var(--mm-gutter);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--mm-white);
	border-bottom: 1px solid var(--mm-gray-200);
	transition: box-shadow var(--mm-duration-md) var(--mm-ease);
}

.site-header.scrolled {
	box-shadow: var(--mm-shadow-md);
}

/* Top bar */
.header-top-bar {
	background: var(--mm-navy);
	color: var(--mm-white);
	font-size: var(--mm-text-xs);
	padding: var(--mm-sp-2) 0;
}

.header-top-bar .mm-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.header-top-bar a {
	color: rgba(255,255,255,.85);
	text-decoration: none;
}

.header-top-bar a:hover { color: var(--mm-white); }

.top-bar-trust {
	display: flex;
	align-items: center;
	gap: var(--mm-sp-4);
}

.top-bar-trust svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
	flex-shrink: 0;
}

.top-bar-trust span {
	display: flex;
	align-items: center;
	gap: var(--mm-sp-1);
}

/* Main header */
.header-main {
	padding: var(--mm-sp-4) 0;
}

.header-main .mm-container {
	display: flex;
	align-items: center;
	gap: var(--mm-sp-6);
}

/* Branding */
.site-branding {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: var(--mm-sp-3);
}

.site-branding .custom-logo-link {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.site-branding .custom-logo-link img,
.custom-logo {
	height: 40px;
	width: auto;
	display: block;
}

.site-branding-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.site-title {
	font-size: var(--mm-text-xl);
	font-weight: 800;
	margin: 0;
	line-height: 1.2;
}

.site-title a {
	color: var(--mm-navy);
	text-decoration: none;
}

.site-title a:hover { color: var(--mm-navy); }

.site-description {
	font-size: var(--mm-text-xs);
	color: var(--mm-gray-500);
	margin: 0;
	line-height: 1.3;
}

/* Header search */
.header-search {
	flex: 1;
	max-width: 480px;
	position: relative;
}

.header-search input[type="search"] {
	width: 100%;
	padding: var(--mm-sp-3) var(--mm-sp-4);
	padding-right: 3rem;
	border-radius: var(--mm-radius-full);
	border-color: var(--mm-gray-300);
	font-size: var(--mm-text-sm);
}

.header-search button {
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	background: var(--mm-navy);
	border: none;
	border-radius: var(--mm-radius-full);
	width: 36px;
	height: 36px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.header-search button:hover {
	background: var(--mm-navy-light);
	transform: translateY(-50%) scale(1.05);
}

.header-search button svg {
	width: 16px;
	height: 16px;
	fill: var(--mm-white);
}

/* Mobile search toggle - only visible below 960px */
.mobile-search-toggle {
	display: none; /* hidden by default, shown in max-width:959px */
}

/* Mobile search overlay */
.mobile-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: var(--mm-white);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 20vh;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--mm-duration-md) var(--mm-ease), visibility var(--mm-duration-md) var(--mm-ease);
}

.mobile-search-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.mobile-search-overlay-inner {
	width: 90%;
	max-width: 500px;
	position: relative;
}

.mobile-search-close {
	position: absolute;
	top: -48px;
	right: 0;
	background: none;
	border: none;
	font-size: 2rem;
	color: var(--mm-gray-500);
	cursor: pointer;
	line-height: 1;
	padding: var(--mm-sp-2);
	min-height: 44px;
	min-width: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mobile-search-close:hover {
	color: var(--mm-gray-900);
	transform: none;
	box-shadow: none;
}

.mobile-search-overlay .header-search {
	display: block !important;
	max-width: 100%;
}

.mobile-search-overlay .header-search input[type="search"] {
	font-size: var(--mm-text-lg);
	padding: var(--mm-sp-4) var(--mm-sp-5);
	padding-right: 4rem;
}

/* Navigation */
.main-navigation {
	display: none;
}

.main-navigation ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: var(--mm-sp-1);
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	padding: var(--mm-sp-2) var(--mm-sp-4);
	font-size: var(--mm-text-sm);
	font-weight: 500;
	color: var(--mm-gray-700);
	border-radius: var(--mm-radius);
	transition: all var(--mm-duration) var(--mm-ease);
	text-decoration: none;
	white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
	color: var(--mm-navy);
	background: var(--mm-gray-50);
}

/* Dropdown menus */
.main-navigation ul ul {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 99;
	min-width: 220px;
	background: var(--mm-white);
	border: 1px solid var(--mm-gray-200);
	border-radius: var(--mm-radius-lg);
	box-shadow: var(--mm-shadow-lg);
	padding: var(--mm-sp-2);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all var(--mm-duration) var(--mm-ease);
}

.main-navigation li:hover > ul,
.main-navigation li.focus > ul {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.main-navigation ul ul a {
	padding: var(--mm-sp-2) var(--mm-sp-3);
	border-radius: var(--mm-radius);
}

.main-navigation ul ul a:hover {
	background: var(--mm-gray-50);
}

/* Sub-submenu */
.main-navigation ul ul ul {
	left: 100%;
	top: 0;
}

/* Header currency switcher (YayCurrency) */
.header-currency-switcher {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.header-currency-switcher select,
.header-currency-switcher .yay-currency-switcher {
	font-size: var(--mm-text-xs);
	padding: var(--mm-sp-1) var(--mm-sp-2);
	border: 1px solid var(--mm-gray-300);
	border-radius: var(--mm-radius);
	background: var(--mm-white);
	color: var(--mm-gray-700);
	cursor: pointer;
	min-height: 36px;
}

/* Header actions (cart, account) */
.header-actions {
	display: flex;
	align-items: center;
	gap: var(--mm-sp-3);
	flex-shrink: 0;
}

.header-actions a {
	display: flex;
	align-items: center;
	gap: var(--mm-sp-2);
	font-size: var(--mm-text-sm);
	font-weight: 500;
	color: var(--mm-gray-700);
	padding: var(--mm-sp-2) var(--mm-sp-3);
	border-radius: var(--mm-radius);
	transition: all var(--mm-duration) var(--mm-ease);
	text-decoration: none;
}

.header-actions a:hover {
	color: var(--mm-navy);
	background: var(--mm-gray-50);
}

.header-actions svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.5;
}

/* Cart count badge */
.cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	font-size: 11px;
	font-weight: 700;
	background: var(--mm-orange);
	color: var(--mm-white);
	border-radius: var(--mm-radius-full);
	padding: 0 5px;
	line-height: 1;
}

/* Mobile menu toggle */
.menu-toggle {
	display: flex;
	align-items: center;
	gap: var(--mm-sp-2);
	background: transparent;
	border: 1.5px solid var(--mm-gray-300);
	color: var(--mm-gray-700);
	padding: var(--mm-sp-2) var(--mm-sp-3);
	border-radius: var(--mm-radius);
	font-size: var(--mm-text-sm);
	font-weight: 500;
	cursor: pointer;
}

.menu-toggle:hover {
	border-color: var(--mm-gray-400);
	background: var(--mm-gray-50);
	transform: none;
	box-shadow: none;
}

.menu-toggle svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
}

/* Body scroll lock when mobile menu is open */
body.menu-open {
	overflow: hidden;
}

/* Mobile navigation open state */
.main-navigation.toggled {
	display: block;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--mm-white);
	border-top: 1px solid var(--mm-gray-200);
	box-shadow: var(--mm-shadow-lg);
	z-index: 999;
}

.main-navigation.toggled ul {
	flex-direction: column;
	padding: var(--mm-sp-4) var(--mm-gutter);
}

.main-navigation.toggled ul ul {
	position: static;
	opacity: 1;
	visibility: visible;
	transform: none;
	box-shadow: none;
	border: none;
	padding-left: var(--mm-sp-4);
}

@media (min-width: 960px) {
	.menu-toggle { display: none; }
	.main-navigation { display: block; }
	.header-search { display: block; }
	.mobile-search-toggle { display: none; }
}

@media (max-width: 959px) {
	.header-search { display: none; }
	.site-description { display: none; }

	/* Currency switcher: compact on mobile - icon only or short code */
	.header-currency-switcher {
		max-width: 80px;
		overflow: hidden;
	}

	.header-currency-switcher select,
	.header-currency-switcher .yay-currency-switcher {
		font-size: 11px;
		padding: var(--mm-sp-1);
		min-height: 36px;
		max-width: 80px;
	}

	/* Constrain branding so it doesn't push everything */
	.site-branding {
		flex: 1;
		min-width: 0;
		overflow: hidden;
	}

	.site-title {
		font-size: var(--mm-text-base);
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.mobile-search-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 44px;
		min-width: 44px;
		padding: var(--mm-sp-2);
		background: transparent;
		border: none;
		color: var(--mm-gray-700);
		cursor: pointer;
	}
	.mobile-search-toggle svg {
		width: 20px;
		height: 20px;
		fill: currentColor;
	}
	.mobile-search-toggle:hover {
		color: var(--mm-navy);
		background: var(--mm-gray-50);
		border-radius: var(--mm-radius);
		transform: none;
		box-shadow: none;
	}
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	background: var(--mm-navy);
	color: rgba(255,255,255,.8);
	margin-top: auto;
}

.footer-main {
	padding: var(--mm-sp-16) 0 var(--mm-sp-12);
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: var(--mm-sp-10);
}

.footer-brand p {
	font-size: var(--mm-text-sm);
	line-height: 1.7;
	margin-bottom: var(--mm-sp-6);
	color: rgba(255,255,255,.75);
}

.footer-trust-badges {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mm-sp-4);
	margin-top: var(--mm-sp-6);
}

.footer-trust-badge {
	display: flex;
	align-items: center;
	gap: var(--mm-sp-2);
	font-size: var(--mm-text-xs);
	color: rgba(255,255,255,.7);
}

.footer-trust-badge svg {
	width: 16px;
	height: 16px;
	fill: var(--mm-orange);
	flex-shrink: 0;
}

.footer-heading {
	font-size: var(--mm-text-sm);
	font-weight: 700;
	color: var(--mm-white);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: var(--mm-sp-5);
}

.footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-links li { margin-bottom: var(--mm-sp-3); }

.footer-links a {
	font-size: var(--mm-text-sm);
	color: rgba(255,255,255,.75);
	transition: color var(--mm-duration) var(--mm-ease);
	text-decoration: none;
}

.footer-links a:hover { color: var(--mm-white); }

/* Footer bottom bar */
.footer-bottom {
	border-top: 1px solid rgba(255,255,255,.1);
	padding: var(--mm-sp-6) 0;
}

.footer-bottom .mm-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--mm-sp-4);
}

.footer-bottom p {
	margin: 0;
	font-size: var(--mm-text-xs);
	color: rgba(255,255,255,.6);
}

.footer-bottom-links {
	display: flex;
	gap: var(--mm-sp-4);
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-bottom-links a {
	font-size: var(--mm-text-xs);
	color: rgba(255,255,255,.6);
}

.footer-bottom-links a:hover { color: rgba(255,255,255,.8); }

@media (max-width: 768px) {
	.footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: var(--mm-sp-8);
	}
	.footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
	.footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Hero Section (front page)
   ========================================================================== */

.mm-hero {
	background: linear-gradient(135deg, rgba(0,27,73,.04) 0%, rgba(0,27,73,0) 60%);
	padding: clamp(var(--mm-sp-8), 6vw, var(--mm-sp-20)) 0;
}

.mm-hero .mm-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(var(--mm-sp-8), 4vw, var(--mm-sp-16));
	align-items: center;
}

.mm-hero-content {
	max-width: 560px;
}

.mm-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: var(--mm-sp-2);
	font-size: var(--mm-text-xs);
	font-weight: 600;
	color: var(--mm-orange);
	background: var(--mm-orange-light);
	padding: var(--mm-sp-1) var(--mm-sp-3);
	border-radius: var(--mm-radius-full);
	margin-bottom: var(--mm-sp-4);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.mm-hero h1 {
	font-size: clamp(var(--mm-text-3xl), 4.5vw, var(--mm-text-5xl));
	font-weight: 800;
	line-height: 1.1;
	color: var(--mm-navy);
	margin-bottom: var(--mm-sp-4);
}

.mm-hero-subtitle {
	font-size: clamp(var(--mm-text-base), 1.5vw, var(--mm-text-lg));
	color: var(--mm-gray-600);
	margin-bottom: var(--mm-sp-6);
	line-height: 1.6;
}

.mm-hero-search {
	position: relative;
	max-width: 520px;
	margin-bottom: var(--mm-sp-4);
}

.mm-hero-search input {
	width: 100%;
	padding: var(--mm-sp-4) var(--mm-sp-4);
	padding-right: 5rem;
	font-size: clamp(var(--mm-text-base), 1.5vw, var(--mm-text-lg));
	border: 2.5px solid var(--mm-navy);
	border-radius: var(--mm-radius-full);
	box-shadow: 0 6px 20px rgba(0,27,73,.08);
}

.mm-hero-search input:focus {
	border-color: var(--mm-navy);
	box-shadow: 0 6px 20px rgba(0,27,73,.15);
}

.mm-hero-search button {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	padding: var(--mm-sp-3) var(--mm-sp-5);
	border-radius: var(--mm-radius-full);
	background: var(--mm-navy);
}

.mm-hero-search button:hover {
	transform: translateY(-50%);
}

.mm-hero-stats {
	display: flex;
	gap: var(--mm-sp-6);
	margin-top: var(--mm-sp-6);
}

.mm-hero-stat {
	display: flex;
	align-items: center;
	gap: var(--mm-sp-2);
	font-size: var(--mm-text-sm);
	color: var(--mm-gray-500);
}

.mm-hero-stat strong {
	color: var(--mm-navy);
	font-weight: 700;
}

.mm-hero-stat svg {
	width: 16px;
	height: 16px;
	fill: var(--mm-orange);
}

.mm-hero-image img {
	width: 100%;
	border-radius: var(--mm-radius-xl);
	box-shadow: var(--mm-shadow-xl);
}

/* Hero product image grid (fallback when no hero image file exists) */
.mm-hero-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--mm-sp-3);
	border-radius: var(--mm-radius-xl);
	overflow: hidden;
	box-shadow: var(--mm-shadow-xl);
}

.mm-hero-grid img {
	width: 100%;
	height: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 0;
	box-shadow: none;
	transition: transform var(--mm-duration-md) var(--mm-ease);
}

.mm-hero-grid img:hover {
	transform: scale(1.05);
}

/* Hero placeholder (when no products or images available) */
.mm-hero-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: var(--mm-gray-100);
	border-radius: var(--mm-radius-xl);
	padding: var(--mm-sp-16) var(--mm-sp-8);
	color: var(--mm-gray-400);
	text-align: center;
}

.mm-hero-placeholder svg {
	margin-bottom: var(--mm-sp-4);
	stroke: var(--mm-gray-300);
}

.mm-hero-placeholder p {
	font-size: var(--mm-text-lg);
	font-weight: 600;
	color: var(--mm-gray-400);
	margin: 0;
}

@media (max-width: 768px) {
	.mm-hero .mm-container {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.mm-hero-content {
		max-width: none;
		overflow-wrap: break-word;
		word-wrap: break-word;
	}
	.mm-hero h1 {
		font-size: clamp(var(--mm-text-2xl), 6vw, var(--mm-text-3xl));
	}
	.mm-hero-image img { max-height: 300px; object-fit: cover; }
	.mm-hero-search { margin-inline: auto; }
	.mm-hero-stats { justify-content: center; }
}

/* ==========================================================================
   Section Headings
   ========================================================================== */

.mm-section {
	padding: clamp(var(--mm-sp-10), 5vw, var(--mm-sp-20)) 0;
}

.mm-section-header {
	text-align: center;
	max-width: 640px;
	margin: 0 auto var(--mm-sp-10);
}

.mm-section-header h2 {
	margin-bottom: var(--mm-sp-3);
}

.mm-section-header p {
	color: var(--mm-gray-500);
	font-size: var(--mm-text-lg);
	margin-bottom: 0;
}

.mm-section-alt {
	background: var(--mm-gray-50);
}

/* ==========================================================================
   Trust Bar / How It Works
   ========================================================================== */

.mm-trust-bar {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: var(--mm-sp-6);
}

.mm-trust-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: var(--mm-sp-6);
}

.mm-trust-icon {
	width: 56px;
	height: 56px;
	border-radius: var(--mm-radius-lg);
	background: var(--mm-orange-light);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: var(--mm-sp-4);
}

.mm-trust-icon svg {
	width: 28px;
	height: 28px;
	stroke: var(--mm-orange);
	fill: none;
	stroke-width: 1.5;
}

.mm-trust-item h3 {
	font-size: var(--mm-text-base);
	font-weight: 600;
	margin-bottom: var(--mm-sp-2);
}

.mm-trust-item p {
	font-size: var(--mm-text-sm);
	color: var(--mm-gray-500);
	margin: 0;
	line-height: 1.6;
}

/* ==========================================================================
   Brand Logo Slider (auto-scrolling marquee)
   ========================================================================== */

.mm-brands-section {
	padding: var(--mm-sp-8) 0 var(--mm-sp-6);
	border-bottom: 1px solid var(--mm-gray-200);
}

.mm-brands-label {
	text-align: center;
	font-size: var(--mm-text-sm);
	color: var(--mm-gray-500);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 600;
	margin-bottom: var(--mm-sp-5);
}

.mm-brands-slider {
	overflow: hidden;
	position: relative;
	/* Fade edges */
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.mm-brands-track {
	display: flex;
	gap: clamp(var(--mm-sp-8), 4vw, var(--mm-sp-16));
	width: max-content;
	animation: mm-brand-scroll 40s linear infinite;
}

.mm-brands-track:hover {
	animation-play-state: paused;
}

.mm-brand-item {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: var(--mm-gray-500);
	padding: var(--mm-sp-2) 0;
	transition: opacity var(--mm-duration) var(--mm-ease);
	opacity: 0.5;
}

.mm-brand-item:hover {
	opacity: 1;
}

.mm-brand-item img {
	display: block;
	height: clamp(28px, 3vw, 40px);
	width: auto;
	max-width: 140px;
	object-fit: contain;
	filter: grayscale(100%) brightness(0.3);
	transition: filter var(--mm-duration) var(--mm-ease);
}

.mm-brand-item:hover img {
	filter: grayscale(0%) brightness(0.2);
}

@keyframes mm-brand-scroll {
	0%   { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* Pause animation for reduced motion */
@media (prefers-reduced-motion: reduce) {
	.mm-brands-track {
		animation: none;
		flex-wrap: wrap;
		justify-content: center;
		width: auto;
	}
	.mm-brands-slider {
		-webkit-mask-image: none;
		mask-image: none;
	}
}

/* Legacy static brand strip (if used elsewhere) */
.mm-brand-strip {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: clamp(var(--mm-sp-6), 3vw, var(--mm-sp-12));
	padding: var(--mm-sp-8) 0;
}

.mm-brand-strip img {
	height: clamp(28px, 3vw, 44px);
	width: auto;
	filter: grayscale(100%) opacity(0.4);
	transition: filter var(--mm-duration-md) var(--mm-ease);
}

.mm-brand-strip img:hover {
	filter: grayscale(0%) opacity(1);
}

/* ==========================================================================
   Posts & Pages
   ========================================================================== */

.sticky { display: block; }

.post,
.page {
	margin-bottom: var(--mm-sp-8);
}

.site-main > .mm-breadcrumbs,
.site-main > .page-header,
.site-main > .post,
.site-main > .page,
.site-main > .navigation,
.site-main > .no-results,
.site-main > .error-404,
.site-main > .comments-area {
	max-width: calc(var(--mm-content) + (var(--mm-gutter) * 2));
	margin-inline: auto;
	padding-inline: var(--mm-gutter);
}

/* WooCommerce pages (cart, checkout, account) need wider container */
.woocommerce-active .site-main > .page {
	max-width: calc(var(--mm-rail) + (var(--mm-gutter) * 2));
}

.site-main > .mm-breadcrumbs {
	padding-top: var(--mm-sp-6);
}

.mm-breadcrumbs__list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: var(--mm-sp-2);
	padding: 0;
	margin: 0;
	font-size: var(--mm-text-sm);
	color: var(--mm-gray-500);
}

.mm-breadcrumbs__item {
	display: flex;
	align-items: center;
	gap: var(--mm-sp-2);
}

.mm-breadcrumbs__item + .mm-breadcrumbs__item::before {
	content: "/";
	color: var(--mm-gray-400);
}

.mm-breadcrumbs a {
	color: var(--mm-gray-600);
	text-decoration: none;
}

.mm-breadcrumbs a:hover,
.mm-breadcrumbs a:focus {
	color: var(--mm-navy);
}

.page-header {
	padding-top: var(--mm-sp-8);
	margin-bottom: var(--mm-sp-8);
}

.page-title {
	margin-bottom: var(--mm-sp-3);
}

.archive-description {
	max-width: 65ch;
	font-size: var(--mm-text-lg);
	color: var(--mm-gray-600);
	margin: 0;
}

.archive-description p:last-child {
	margin-bottom: 0;
}

.entry-header { margin-bottom: var(--mm-sp-6); }

.entry-title {
	font-size: clamp(var(--mm-text-2xl), 3vw, var(--mm-text-4xl));
}

.entry-title a {
	color: var(--mm-gray-900);
	text-decoration: none;
}

.entry-title a:hover { color: var(--mm-navy); }

.entry-meta {
	font-size: var(--mm-text-sm);
	color: var(--mm-gray-500);
	display: flex;
	flex-wrap: wrap;
	gap: var(--mm-sp-4);
	margin-top: var(--mm-sp-2);
}

.entry-content,
.entry-summary {
	line-height: 1.8;
	margin-top: var(--mm-sp-6);
}

.entry-footer {
	margin-top: var(--mm-sp-6);
	padding-top: var(--mm-sp-4);
	border-top: 1px solid var(--mm-gray-200);
	font-size: var(--mm-text-sm);
	color: var(--mm-gray-500);
}

.updated:not(.published) { display: none; }

.page-links {
	clear: both;
	margin: var(--mm-sp-6) 0;
}

/* Post thumbnail */
.post-thumbnail {
	margin-bottom: var(--mm-sp-6);
	border-radius: var(--mm-radius-lg);
	overflow: hidden;
}

.post-thumbnail img {
	width: 100%;
	height: auto;
	transition: transform var(--mm-duration-md) var(--mm-ease);
}

.post-thumbnail a:hover img {
	transform: scale(1.02);
}

/* Post navigation */
.post-navigation {
	margin: var(--mm-sp-8) 0;
	padding: var(--mm-sp-6);
	background: var(--mm-gray-50);
	border-radius: var(--mm-radius-lg);
}

.post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: var(--mm-sp-6);
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
	flex: 1;
}

.post-navigation .nav-next { text-align: right; }

.posts-navigation .nav-links {
	display: flex;
	justify-content: space-between;
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area {
	margin-top: var(--mm-sp-10);
	padding-top: var(--mm-sp-8);
	border-top: 1px solid var(--mm-gray-200);
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-body {
	padding: var(--mm-sp-6);
	margin-bottom: var(--mm-sp-4);
	background: var(--mm-gray-50);
	border-radius: var(--mm-radius-lg);
}

.comment-content a { word-wrap: break-word; }
.bypostauthor { display: block; }

/* ==========================================================================
   Widgets
   ========================================================================== */

.widget {
	margin-bottom: var(--mm-sp-8);
}

.widget-title {
	font-size: var(--mm-text-base);
	font-weight: 700;
	margin-bottom: var(--mm-sp-4);
	padding-bottom: var(--mm-sp-3);
	border-bottom: 2px solid var(--mm-gray-200);
}

.widget select { max-width: 100%; }

.widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.widget ul li {
	padding: var(--mm-sp-2) 0;
	border-bottom: 1px solid var(--mm-gray-100);
}

.widget ul li:last-child { border-bottom: none; }

/* ==========================================================================
   Media & Galleries
   ========================================================================== */

.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin: 0;
	padding: 0;
}

.custom-logo-link { display: inline-block; }

.wp-caption {
	margin-bottom: var(--mm-sp-6);
	max-width: 100%;
}

.wp-caption-text {
	text-align: center;
	font-size: var(--mm-text-sm);
	color: var(--mm-gray-500);
	margin-top: var(--mm-sp-2);
}

.gallery {
	display: grid;
	grid-gap: var(--mm-sp-4);
	margin-bottom: var(--mm-sp-6);
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }
.gallery-columns-7 { grid-template-columns: repeat(7, 1fr); }
.gallery-columns-8 { grid-template-columns: repeat(8, 1fr); }
.gallery-columns-9 { grid-template-columns: repeat(9, 1fr); }

.gallery-caption { display: block; }

/* ==========================================================================
   Blog: Layout & Hero
   ========================================================================== */

.mm-blog-main {
	padding-bottom: var(--mm-sp-16);
}

.mm-blog-main > .mm-breadcrumbs {
	max-width: var(--mm-rail);
	margin-inline: auto;
	padding-inline: var(--mm-gutter);
	padding-top: var(--mm-sp-6);
}

.mm-blog-hero {
	max-width: var(--mm-rail);
	margin-inline: auto;
	padding: var(--mm-sp-10) var(--mm-gutter) var(--mm-sp-8);
}

.mm-blog-hero__title {
	font-size: clamp(var(--mm-text-3xl), 4vw, var(--mm-text-5xl));
	color: var(--mm-navy);
	margin: 0 0 var(--mm-sp-3);
}

.mm-blog-hero__description {
	font-size: var(--mm-text-lg);
	color: var(--mm-gray-600);
	max-width: 65ch;
	margin: 0;
	line-height: 1.6;
}

/* Blog layout: grid + sidebar */
.mm-blog-layout {
	max-width: var(--mm-rail);
	margin-inline: auto;
	padding-inline: var(--mm-gutter);
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--mm-sp-10);
}

@media (min-width: 960px) {
	.mm-blog-layout {
		grid-template-columns: 1fr 300px;
	}
}

/* ==========================================================================
   Blog: Card Grid
   ========================================================================== */

.mm-blog-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--mm-sp-8);
}

@media (min-width: 640px) {
	.mm-blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Blog card */
.mm-blog-card {
	background: var(--mm-white);
	border-radius: var(--mm-radius-lg);
	box-shadow: var(--mm-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform var(--mm-duration-md) var(--mm-ease),
	            box-shadow var(--mm-duration-md) var(--mm-ease);
}

.mm-blog-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--mm-shadow-lg);
}

.mm-blog-card__thumb {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--mm-gray-100);
}

.mm-blog-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--mm-duration-md) var(--mm-ease);
}

.mm-blog-card:hover .mm-blog-card__thumb img {
	transform: scale(1.04);
}

.mm-blog-card__thumb--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--mm-gray-300);
}

.mm-blog-card__body {
	padding: var(--mm-sp-5) var(--mm-sp-6) var(--mm-sp-6);
	display: flex;
	flex-direction: column;
	flex: 1;
}

.mm-blog-card__header {
	margin-bottom: var(--mm-sp-3);
}

.mm-blog-card__title {
	font-size: var(--mm-text-xl);
	line-height: 1.3;
	margin: 0;
}

.mm-blog-card__title a {
	color: var(--mm-gray-900);
	text-decoration: none;
	transition: color var(--mm-duration) var(--mm-ease);
}

.mm-blog-card__title a:hover {
	color: var(--mm-navy);
}

.mm-blog-card__excerpt {
	font-size: var(--mm-text-sm);
	color: var(--mm-gray-600);
	line-height: 1.6;
	flex: 1;
}

.mm-blog-card__excerpt p {
	margin: 0;
}

.mm-blog-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: var(--mm-sp-4);
	padding-top: var(--mm-sp-4);
	border-top: 1px solid var(--mm-gray-100);
	gap: var(--mm-sp-3);
}

.mm-blog-card__meta {
	display: flex;
	align-items: center;
	gap: var(--mm-sp-3);
	font-size: var(--mm-text-xs);
	color: var(--mm-gray-500);
}

.mm-blog-card__read-more {
	display: inline-flex;
	align-items: center;
	gap: var(--mm-sp-1);
	font-size: var(--mm-text-sm);
	font-weight: 600;
	color: var(--mm-orange);
	text-decoration: none;
	white-space: nowrap;
	transition: gap var(--mm-duration) var(--mm-ease);
}

.mm-blog-card__read-more:hover {
	gap: var(--mm-sp-2);
	color: var(--mm-orange-hover);
}

/* Category badges */
.mm-post-categories {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mm-sp-2);
	margin-bottom: var(--mm-sp-3);
}

.mm-category-badge {
	display: inline-block;
	padding: 2px 10px;
	font-size: var(--mm-text-xs);
	font-weight: 600;
	color: var(--mm-orange);
	background: rgba(255, 111, 0, 0.08);
	border-radius: var(--mm-radius-full);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	transition: background var(--mm-duration) var(--mm-ease);
}

.mm-category-badge:hover {
	background: rgba(255, 111, 0, 0.16);
	color: var(--mm-orange-hover);
}

/* Reading time */
.mm-reading-time {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: var(--mm-text-xs);
	color: var(--mm-gray-500);
}

/* ==========================================================================
   Blog: Pagination
   ========================================================================== */

.mm-blog-pagination {
	max-width: var(--mm-rail);
	margin: var(--mm-sp-10) auto 0;
	padding-inline: var(--mm-gutter);
}

.mm-blog-pagination .nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--mm-sp-2);
	flex-wrap: wrap;
}

.mm-blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 var(--mm-sp-3);
	font-size: var(--mm-text-sm);
	font-weight: 500;
	color: var(--mm-gray-700);
	background: var(--mm-white);
	border: 1px solid var(--mm-gray-200);
	border-radius: var(--mm-radius-base);
	text-decoration: none;
	transition: all var(--mm-duration) var(--mm-ease);
}

.mm-blog-pagination .page-numbers:hover {
	background: var(--mm-gray-50);
	border-color: var(--mm-gray-300);
	color: var(--mm-navy);
}

.mm-blog-pagination .page-numbers.current {
	background: var(--mm-navy);
	border-color: var(--mm-navy);
	color: var(--mm-white);
	font-weight: 700;
}

.mm-blog-pagination .prev,
.mm-blog-pagination .next {
	display: inline-flex;
	align-items: center;
	gap: var(--mm-sp-1);
	font-weight: 600;
	color: var(--mm-navy);
	border-color: var(--mm-navy-light);
}

.mm-blog-pagination .prev:hover,
.mm-blog-pagination .next:hover {
	background: var(--mm-navy);
	color: var(--mm-white);
}

/* ==========================================================================
   Blog: Single Post
   ========================================================================== */

.mm-single-post > .mm-breadcrumbs {
	max-width: var(--mm-rail);
	margin-inline: auto;
	padding-inline: var(--mm-gutter);
	padding-top: var(--mm-sp-6);
}

.mm-single-layout {
	max-width: var(--mm-rail);
	margin-inline: auto;
	padding-inline: var(--mm-gutter);
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--mm-sp-10);
}

@media (min-width: 960px) {
	.mm-single-layout {
		grid-template-columns: 1fr 300px;
	}
}

.mm-single-article {
	min-width: 0;
}

/* Single header */
.mm-single-header {
	padding-top: var(--mm-sp-8);
	margin-bottom: var(--mm-sp-6);
}

.mm-single-title {
	font-size: clamp(var(--mm-text-2xl), 3.5vw, var(--mm-text-4xl));
	color: var(--mm-navy);
	line-height: 1.2;
	margin: 0 0 var(--mm-sp-4);
}

.mm-single-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--mm-sp-4);
	font-size: var(--mm-text-sm);
	color: var(--mm-gray-500);
}

.mm-single-meta__author {
	display: inline-flex;
	align-items: center;
	gap: var(--mm-sp-2);
}

.mm-single-meta__author img {
	border-radius: var(--mm-radius-full);
}

.mm-single-meta__author a {
	color: var(--mm-gray-700);
	font-weight: 600;
	text-decoration: none;
}

.mm-single-meta__author a:hover {
	color: var(--mm-navy);
}

/* Featured image */
.mm-single-featured {
	margin-bottom: var(--mm-sp-8);
	border-radius: var(--mm-radius-lg);
	overflow: hidden;
}

.mm-single-featured img {
	width: 100%;
	height: auto;
	display: block;
}

/* Single content typography */
.mm-single-content {
	line-height: 1.8;
	font-size: var(--mm-text-base);
	color: var(--mm-gray-800);
}

.mm-single-content h2 {
	font-size: var(--mm-text-2xl);
	color: var(--mm-navy);
	margin-top: var(--mm-sp-10);
	margin-bottom: var(--mm-sp-4);
}

.mm-single-content h3 {
	font-size: var(--mm-text-xl);
	color: var(--mm-navy);
	margin-top: var(--mm-sp-8);
	margin-bottom: var(--mm-sp-3);
}

.mm-single-content h4 {
	font-size: var(--mm-text-lg);
	color: var(--mm-gray-900);
	margin-top: var(--mm-sp-6);
	margin-bottom: var(--mm-sp-3);
}

.mm-single-content p {
	margin-bottom: var(--mm-sp-5);
}

.mm-single-content a {
	color: var(--mm-orange);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.mm-single-content a:hover {
	color: var(--mm-orange-hover);
}

.mm-single-content blockquote {
	margin: var(--mm-sp-8) 0;
	padding: var(--mm-sp-6) var(--mm-sp-8);
	border-left: 4px solid var(--mm-orange);
	background: var(--mm-gray-50);
	border-radius: 0 var(--mm-radius-base) var(--mm-radius-base) 0;
	font-style: italic;
	color: var(--mm-gray-700);
}

.mm-single-content blockquote p:last-child {
	margin-bottom: 0;
}

.mm-single-content pre {
	background: var(--mm-gray-900);
	color: var(--mm-gray-100);
	padding: var(--mm-sp-6);
	border-radius: var(--mm-radius-base);
	overflow-x: auto;
	font-family: var(--mm-font-mono);
	font-size: var(--mm-text-sm);
	margin: var(--mm-sp-6) 0;
}

.mm-single-content code {
	font-family: var(--mm-font-mono);
	font-size: 0.9em;
	background: var(--mm-gray-100);
	padding: 2px 6px;
	border-radius: 4px;
}

.mm-single-content pre code {
	background: none;
	padding: 0;
}

.mm-single-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--mm-radius-base);
}

.mm-single-content ul,
.mm-single-content ol {
	margin-bottom: var(--mm-sp-5);
	padding-left: var(--mm-sp-6);
}

.mm-single-content li {
	margin-bottom: var(--mm-sp-2);
}

.mm-single-content table {
	width: 100%;
	border-collapse: collapse;
	margin: var(--mm-sp-6) 0;
	font-size: var(--mm-text-sm);
}

.mm-single-content th,
.mm-single-content td {
	padding: var(--mm-sp-3) var(--mm-sp-4);
	border: 1px solid var(--mm-gray-200);
	text-align: left;
}

.mm-single-content th {
	background: var(--mm-gray-50);
	font-weight: 700;
	color: var(--mm-navy);
}

/* Single footer: tags + share */
.mm-single-footer {
	margin-top: var(--mm-sp-10);
	padding-top: var(--mm-sp-6);
	border-top: 1px solid var(--mm-gray-200);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: var(--mm-sp-6);
}

/* Tag pills */
.mm-post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mm-sp-2);
}

.mm-tag-pill {
	display: inline-block;
	padding: 4px 12px;
	font-size: var(--mm-text-xs);
	font-weight: 500;
	color: var(--mm-gray-600);
	background: var(--mm-gray-100);
	border-radius: var(--mm-radius-full);
	text-decoration: none;
	transition: all var(--mm-duration) var(--mm-ease);
}

.mm-tag-pill:hover {
	background: var(--mm-gray-200);
	color: var(--mm-navy);
}

/* Share links */
.mm-share-links {
	display: flex;
	align-items: center;
	gap: var(--mm-sp-3);
}

.mm-share-label {
	font-size: var(--mm-text-sm);
	font-weight: 600;
	color: var(--mm-gray-700);
}

.mm-share-buttons {
	display: flex;
	gap: var(--mm-sp-2);
}

.mm-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: var(--mm-radius-full);
	color: var(--mm-white);
	transition: transform var(--mm-duration) var(--mm-ease),
	            opacity var(--mm-duration) var(--mm-ease);
}

.mm-share-btn:hover {
	transform: translateY(-2px);
	opacity: 0.9;
}

.mm-share-facebook  { background: #1877F2; }
.mm-share-twitter   { background: var(--mm-gray-900); }
.mm-share-linkedin  { background: #0A66C2; }
.mm-share-email     { background: var(--mm-gray-600); }

/* ==========================================================================
   Blog: Author Box
   ========================================================================== */

.mm-author-box {
	display: flex;
	gap: var(--mm-sp-5);
	padding: var(--mm-sp-6);
	margin-top: var(--mm-sp-8);
	background: var(--mm-gray-50);
	border-radius: var(--mm-radius-lg);
	border: 1px solid var(--mm-gray-200);
}

.mm-author-avatar img {
	width: 80px;
	height: 80px;
	border-radius: var(--mm-radius-full);
	object-fit: cover;
}

.mm-author-label {
	font-size: var(--mm-text-xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--mm-gray-500);
}

.mm-author-name {
	font-size: var(--mm-text-lg);
	margin: var(--mm-sp-1) 0 var(--mm-sp-2);
}

.mm-author-name a {
	color: var(--mm-navy);
	text-decoration: none;
}

.mm-author-name a:hover {
	text-decoration: underline;
}

.mm-author-bio {
	font-size: var(--mm-text-sm);
	color: var(--mm-gray-600);
	line-height: 1.6;
	margin: 0 0 var(--mm-sp-2);
}

.mm-author-posts {
	font-size: var(--mm-text-xs);
	color: var(--mm-gray-500);
}

/* ==========================================================================
   Blog: Post Navigation (single)
   ========================================================================== */

.mm-post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--mm-sp-4);
	margin-top: var(--mm-sp-8);
}

.mm-post-nav__link {
	display: flex;
	flex-direction: column;
	gap: var(--mm-sp-2);
	padding: var(--mm-sp-5);
	background: var(--mm-white);
	border: 1px solid var(--mm-gray-200);
	border-radius: var(--mm-radius-lg);
	text-decoration: none;
	transition: all var(--mm-duration-md) var(--mm-ease);
}

.mm-post-nav__link:hover {
	border-color: var(--mm-navy-light);
	box-shadow: var(--mm-shadow);
}

.mm-post-nav__next {
	text-align: right;
}

.mm-post-nav__label {
	display: inline-flex;
	align-items: center;
	gap: var(--mm-sp-1);
	font-size: var(--mm-text-xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--mm-orange);
}

.mm-post-nav__next .mm-post-nav__label {
	justify-content: flex-end;
}

.mm-post-nav__title {
	font-size: var(--mm-text-sm);
	font-weight: 600;
	color: var(--mm-gray-800);
	line-height: 1.4;
}

.mm-post-nav__link:hover .mm-post-nav__title {
	color: var(--mm-navy);
}

@media (max-width: 639px) {
	.mm-post-nav {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Blog: Related Posts
   ========================================================================== */

.mm-related-posts {
	max-width: var(--mm-rail);
	margin: var(--mm-sp-12) auto 0;
	padding-inline: var(--mm-gutter);
}

.mm-related-heading {
	font-size: var(--mm-text-2xl);
	color: var(--mm-navy);
	margin-bottom: var(--mm-sp-6);
}

.mm-related-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--mm-sp-6);
}

@media (min-width: 640px) {
	.mm-related-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.mm-related-card {
	background: var(--mm-white);
	border-radius: var(--mm-radius-lg);
	box-shadow: var(--mm-shadow-sm);
	overflow: hidden;
	transition: transform var(--mm-duration-md) var(--mm-ease),
	            box-shadow var(--mm-duration-md) var(--mm-ease);
}

.mm-related-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--mm-shadow);
}

.mm-related-thumb {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
}

.mm-related-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--mm-duration-md) var(--mm-ease);
}

.mm-related-card:hover .mm-related-thumb img {
	transform: scale(1.04);
}

.mm-related-body {
	padding: var(--mm-sp-4) var(--mm-sp-5);
}

.mm-related-title {
	font-size: var(--mm-text-base);
	line-height: 1.4;
	margin: var(--mm-sp-2) 0;
}

.mm-related-title a {
	color: var(--mm-gray-900);
	text-decoration: none;
}

.mm-related-title a:hover {
	color: var(--mm-navy);
}

.mm-related-date {
	font-size: var(--mm-text-xs);
	color: var(--mm-gray-500);
}

/* ==========================================================================
   Blog: Comments
   ========================================================================== */

.mm-comments {
	max-width: var(--mm-rail);
	margin: var(--mm-sp-12) auto 0;
	padding-inline: var(--mm-gutter);
}

.mm-comments__title {
	display: flex;
	align-items: center;
	gap: var(--mm-sp-3);
	font-size: var(--mm-text-2xl);
	color: var(--mm-navy);
	margin-bottom: var(--mm-sp-6);
}

.mm-comments__title svg {
	color: var(--mm-orange);
}

.mm-comments__closed {
	padding: var(--mm-sp-4) var(--mm-sp-5);
	background: var(--mm-gray-50);
	border-radius: var(--mm-radius-base);
	color: var(--mm-gray-500);
	font-size: var(--mm-text-sm);
}

/* Comment list */
.mm-comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mm-comment {
	margin-bottom: var(--mm-sp-5);
}

.mm-comment .children {
	list-style: none;
	padding-left: var(--mm-sp-8);
	margin: 0;
	border-left: 2px solid var(--mm-gray-200);
}

.mm-comment__body {
	padding: var(--mm-sp-5);
	background: var(--mm-white);
	border: 1px solid var(--mm-gray-200);
	border-radius: var(--mm-radius-lg);
}

.mm-comment__header {
	display: flex;
	align-items: center;
	gap: var(--mm-sp-3);
	margin-bottom: var(--mm-sp-3);
}

.mm-comment__avatar img {
	border-radius: var(--mm-radius-full);
}

.mm-comment__author {
	font-weight: 700;
	color: var(--mm-gray-900);
}

.mm-comment__author a {
	color: var(--mm-gray-900);
	text-decoration: none;
}

.mm-comment__author a:hover {
	color: var(--mm-navy);
}

.mm-comment__date {
	display: block;
	font-size: var(--mm-text-xs);
	color: var(--mm-gray-500);
}

.mm-comment__awaiting {
	padding: var(--mm-sp-3) var(--mm-sp-4);
	background: rgba(217, 119, 6, 0.08);
	border-radius: var(--mm-radius-sm);
	font-size: var(--mm-text-sm);
	color: var(--mm-warning);
	margin-bottom: var(--mm-sp-3);
}

.mm-comment__content {
	font-size: var(--mm-text-sm);
	line-height: 1.7;
	color: var(--mm-gray-700);
}

.mm-comment__content p:last-child {
	margin-bottom: 0;
}

.mm-comment__actions {
	display: flex;
	gap: var(--mm-sp-4);
	margin-top: var(--mm-sp-3);
	padding-top: var(--mm-sp-3);
	border-top: 1px solid var(--mm-gray-100);
}

.mm-comment__reply a,
.mm-comment__edit a {
	font-size: var(--mm-text-xs);
	font-weight: 600;
	color: var(--mm-orange);
	text-decoration: none;
}

.mm-comment__reply a:hover,
.mm-comment__edit a:hover {
	color: var(--mm-orange-hover);
	text-decoration: underline;
}

/* Comment form */
.mm-comment-reply-title {
	display: flex;
	align-items: center;
	gap: var(--mm-sp-3);
	font-size: var(--mm-text-xl);
	color: var(--mm-navy);
	margin-top: var(--mm-sp-10);
	margin-bottom: var(--mm-sp-6);
}

.mm-comment-reply-title svg {
	color: var(--mm-orange);
}

.mm-comment-form label {
	display: block;
	font-size: var(--mm-text-sm);
	font-weight: 600;
	color: var(--mm-gray-700);
	margin-bottom: var(--mm-sp-2);
}

.mm-comment-form input[type="text"],
.mm-comment-form input[type="email"],
.mm-comment-form input[type="url"],
.mm-comment-form textarea {
	width: 100%;
	padding: var(--mm-sp-3) var(--mm-sp-4);
	border: 1px solid var(--mm-gray-300);
	border-radius: var(--mm-radius-base);
	font-family: inherit;
	font-size: var(--mm-text-base);
	color: var(--mm-gray-900);
	background: var(--mm-white);
	transition: border-color var(--mm-duration) var(--mm-ease),
	            box-shadow var(--mm-duration) var(--mm-ease);
}

.mm-comment-form input[type="text"]:focus,
.mm-comment-form input[type="email"]:focus,
.mm-comment-form input[type="url"]:focus,
.mm-comment-form textarea:focus {
	outline: none;
	border-color: var(--mm-navy);
	box-shadow: 0 0 0 3px rgba(0, 27, 73, 0.1);
}

.mm-comment-form textarea {
	resize: vertical;
	min-height: 120px;
}

.mm-comment-form p {
	margin-bottom: var(--mm-sp-4);
}

.mm-comment-form .form-submit {
	margin-top: var(--mm-sp-4);
}

/* ==========================================================================
   Blog: Sidebar
   ========================================================================== */

.mm-blog-sidebar .widget {
	padding: var(--mm-sp-5);
	background: var(--mm-white);
	border: 1px solid var(--mm-gray-200);
	border-radius: var(--mm-radius-lg);
	margin-bottom: var(--mm-sp-6);
}

.mm-blog-sidebar .widget-title {
	font-size: var(--mm-text-sm);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--mm-navy);
	padding-bottom: var(--mm-sp-3);
	margin-bottom: var(--mm-sp-4);
	border-bottom: 2px solid var(--mm-orange);
}

.mm-blog-sidebar .widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mm-blog-sidebar .widget ul li {
	padding: var(--mm-sp-2) 0;
	border-bottom: 1px solid var(--mm-gray-100);
}

.mm-blog-sidebar .widget ul li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.mm-blog-sidebar .widget ul li a {
	color: var(--mm-gray-700);
	text-decoration: none;
	font-size: var(--mm-text-sm);
	transition: color var(--mm-duration) var(--mm-ease);
}

.mm-blog-sidebar .widget ul li a:hover {
	color: var(--mm-orange);
}

.mm-blog-sidebar .widget_search .search-field {
	width: 100%;
	padding: var(--mm-sp-3) var(--mm-sp-4);
	border: 1px solid var(--mm-gray-300);
	border-radius: var(--mm-radius-base);
	font-size: var(--mm-text-sm);
}

.mm-blog-sidebar .widget_search .search-submit {
	margin-top: var(--mm-sp-3);
	width: 100%;
}

/* ==========================================================================
   Blog: Responsive Adjustments
   ========================================================================== */

@media (max-width: 639px) {
	.mm-blog-hero {
		padding: var(--mm-sp-6) var(--mm-gutter);
	}

	.mm-blog-card__body {
		padding: var(--mm-sp-4) var(--mm-sp-5) var(--mm-sp-5);
	}

	.mm-blog-card__footer {
		flex-direction: column;
		align-items: flex-start;
	}

	.mm-single-header {
		padding-top: var(--mm-sp-5);
	}

	.mm-single-footer {
		flex-direction: column;
	}

	.mm-share-links {
		flex-direction: column;
		align-items: flex-start;
	}

	.mm-author-box {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.mm-related-grid {
		grid-template-columns: 1fr;
	}

	.mm-comment .children {
		padding-left: var(--mm-sp-4);
	}
}

/* ==========================================================================
   Jetpack Infinite Scroll
   ========================================================================== */

.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer { display: none; }
.infinity-end.neverending .site-footer { display: block; }

/* ==========================================================================
   Accessibility
   ========================================================================== */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: var(--mm-white);
	border-radius: var(--mm-radius);
	box-shadow: var(--mm-shadow-lg);
	clip: auto !important;
	clip-path: none;
	color: var(--mm-navy);
	display: block;
	font-size: var(--mm-text-sm);
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: var(--mm-sp-4) var(--mm-sp-6);
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

#primary[tabindex="-1"]:focus { outline: 0; }

/* ==========================================================================
   Alignments
   ========================================================================== */

.alignleft {
	float: left;
	margin-right: var(--mm-sp-6);
	margin-bottom: var(--mm-sp-6);
}

.alignright {
	float: right;
	margin-left: var(--mm-sp-6);
	margin-bottom: var(--mm-sp-6);
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: var(--mm-sp-6);
}

/* ==========================================================================
   Callout / CTA Section
   ========================================================================== */

.mm-cta-section {
	background: var(--mm-navy);
	color: var(--mm-white);
	padding: clamp(var(--mm-sp-10), 5vw, var(--mm-sp-16)) 0;
	text-align: center;
}

.mm-cta-section h2 {
	color: var(--mm-white);
	margin-bottom: var(--mm-sp-4);
}

.mm-cta-section p {
	color: rgba(255,255,255,.7);
	font-size: var(--mm-text-lg);
	max-width: 600px;
	margin: 0 auto var(--mm-sp-8);
}

.mm-cta-section .btn-cta {
	font-size: var(--mm-text-base);
	padding: var(--mm-sp-4) var(--mm-sp-10);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.mm-faq-item {
	border: 1px solid var(--mm-gray-200);
	border-radius: var(--mm-radius-lg);
	margin-bottom: var(--mm-sp-3);
	overflow: hidden;
}

.mm-faq-list {
	max-width: var(--mm-content);
	margin-inline: auto;
}

.mm-faq-item summary {
	padding: var(--mm-sp-5) var(--mm-sp-6);
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	transition: background var(--mm-duration) var(--mm-ease);
}

.mm-faq-item summary:hover { background: var(--mm-gray-50); }

.mm-faq-item summary::marker,
.mm-faq-item summary::-webkit-details-marker { display: none; }

.mm-faq-item summary::after {
	content: "+";
	font-size: var(--mm-text-xl);
	font-weight: 400;
	color: var(--mm-gray-400);
	transition: transform var(--mm-duration) var(--mm-ease);
}

.mm-faq-item[open] summary::after {
	transform: rotate(45deg);
}

.mm-faq-item .faq-answer {
	padding: 0 var(--mm-sp-6) var(--mm-sp-5);
	color: var(--mm-gray-600);
	line-height: 1.7;
}

/* ==========================================================================
   Reviews / Testimonials
   ========================================================================== */

.mm-testimonials {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: var(--mm-sp-6);
}

.mm-testimonial {
	background: var(--mm-white);
	border: 1px solid var(--mm-gray-200);
	border-radius: var(--mm-radius-lg);
	padding: var(--mm-sp-6);
	transition: box-shadow var(--mm-duration-md) var(--mm-ease);
}

.mm-testimonial:hover { box-shadow: var(--mm-shadow-md); }

.mm-testimonial-stars {
	color: var(--mm-orange);
	font-size: var(--mm-text-lg);
	margin-bottom: var(--mm-sp-3);
	letter-spacing: 2px;
}

.mm-testimonial p {
	font-size: var(--mm-text-sm);
	color: var(--mm-gray-600);
	line-height: 1.7;
	margin-bottom: var(--mm-sp-4);
}

.mm-testimonial-author {
	font-size: var(--mm-text-sm);
	font-weight: 600;
	color: var(--mm-gray-800);
}

.mm-testimonial-meta {
	font-size: var(--mm-text-xs);
	color: var(--mm-gray-500);
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.error-404 {
	text-align: center;
	padding: var(--mm-sp-20) 0;
}

.error-404 h1 {
	font-size: var(--mm-text-5xl);
	color: var(--mm-gray-300);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center { text-align: center; }
.text-sm     { font-size: var(--mm-text-sm); }
.text-muted  { color: var(--mm-gray-500); }
.mt-0        { margin-top: 0; }
.mb-0        { margin-bottom: 0; }

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.fade-in-up {
	animation: fadeInUp 0.5s var(--mm-ease) forwards;
}

/* ==========================================================================
   AJAX Live Search Results
   ========================================================================== */

.header-search,
.mm-hero-search {
	position: relative;
}

.mm-search-results {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 9999;
	background: var(--mm-white);
	border: 1px solid var(--mm-gray-200);
	border-radius: var(--mm-radius-lg);
	box-shadow: var(--mm-shadow-xl);
	margin-top: var(--mm-sp-2);
	max-height: 460px;
	overflow-y: auto;
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: all var(--mm-duration) var(--mm-ease);
}

.mm-search-results.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.mm-search-result-item {
	display: flex;
	align-items: flex-start;
	gap: var(--mm-sp-4);
	padding: var(--mm-sp-4);
	text-decoration: none;
	color: var(--mm-gray-800);
	border-bottom: 1px solid var(--mm-gray-100);
	transition: background var(--mm-duration) var(--mm-ease);
}

.mm-search-result-item:hover,
.mm-search-result-item:focus,
.mm-search-result-item[aria-selected="true"] {
	background: var(--mm-gray-50);
	color: var(--mm-gray-900);
	outline: none;
}

.mm-search-result-item:last-child {
	border-bottom: none;
}

.mm-search-result-image {
	width: 64px;
	height: 64px;
	border-radius: var(--mm-radius);
	object-fit: cover;
	flex-shrink: 0;
	background: var(--mm-gray-100);
	border: 1px solid var(--mm-gray-200);
}

.mm-search-result-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: var(--mm-sp-1);
}

.mm-search-result-title {
	font-size: var(--mm-text-base);
	font-weight: 700;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mm-search-result-category {
	font-size: var(--mm-text-xs);
	color: var(--mm-gray-500);
	display: block;
	margin-top: 1px;
}

.mm-search-result-description {
	font-size: var(--mm-text-sm);
	line-height: 1.45;
	color: var(--mm-gray-600);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mm-search-result-price {
	font-size: var(--mm-text-sm);
	font-weight: 700;
	color: var(--mm-navy);
	margin-top: var(--mm-sp-1);
}

.mm-search-result-price del {
	color: var(--mm-gray-400);
	font-weight: 500;
	margin-right: var(--mm-sp-2);
}

.mm-search-result-price ins {
	text-decoration: none;
	color: var(--mm-orange);
}

.mm-search-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--mm-sp-6);
	color: var(--mm-gray-400);
	font-size: var(--mm-text-sm);
	gap: var(--mm-sp-2);
}

.mm-search-loading::before {
	content: "";
	width: 16px;
	height: 16px;
	border: 2px solid var(--mm-gray-200);
	border-top-color: var(--mm-navy);
	border-radius: 50%;
	animation: mm-spin 0.6s linear infinite;
}

.mm-search-no-results {
	padding: var(--mm-sp-6);
	text-align: center;
	color: var(--mm-gray-500);
	font-size: var(--mm-text-sm);
}

.mm-search-view-all {
	display: block;
	padding: var(--mm-sp-3) var(--mm-sp-4);
	text-align: center;
	font-size: var(--mm-text-sm);
	font-weight: 600;
	color: var(--mm-navy);
	background: var(--mm-gray-50);
	border-top: 1px solid var(--mm-gray-200);
	border-radius: 0 0 var(--mm-radius-lg) var(--mm-radius-lg);
	text-decoration: none;
	transition: background var(--mm-duration) var(--mm-ease);
}

.mm-search-view-all:hover {
	background: var(--mm-gray-100);
	color: var(--mm-navy);
}

/* ==========================================================================
   Mobile Responsive - Consolidated Breakpoints
   ========================================================================== */

/* ── Tablets and below (≤959px) ── */
@media (max-width: 959px) {

	/* Touch targets: menu toggle 44px minimum */
	.menu-toggle {
		min-height: 44px;
		min-width: 44px;
		padding: var(--mm-sp-3) var(--mm-sp-4);
	}

	/* Touch targets: cart/account icons 44px minimum */
	.header-actions a {
		min-height: 44px;
		min-width: 44px;
		padding: var(--mm-sp-3);
		justify-content: center;
	}

	/* Hide action text labels, keep icons only */
	.header-actions .header-action-label {
		display: none;
	}

	/* Reduce header gap */
	.header-main .mm-container {
		gap: var(--mm-sp-4);
	}

	/* Mobile menu: full-screen overlay */
	.main-navigation.toggled {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		height: 100vh;
		height: 100dvh;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		z-index: 99999;
		padding-top: var(--mm-sp-16);
	}

	.main-navigation.toggled ul {
		padding: var(--mm-sp-6) var(--mm-gutter);
	}

	.main-navigation.toggled a {
		padding: var(--mm-sp-3) var(--mm-sp-4);
		min-height: 44px;
		display: flex;
		align-items: center;
		font-size: var(--mm-text-base);
	}

	/* Search dropdown: reduced height on tablets */
	.mm-search-results {
		max-height: 320px;
	}
}

/* ── Small tablets (≤768px) ── */
@media (max-width: 768px) {

	/* Top bar: horizontal scroll for trust signals */
	.top-bar-trust {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		gap: var(--mm-sp-3);
		flex-wrap: nowrap;
		white-space: nowrap;
	}

	.top-bar-trust::-webkit-scrollbar {
		display: none;
	}

	.top-bar-trust span {
		flex-shrink: 0;
		font-size: 11px;
	}

	/* Hero stats: tighter gap, allow wrapping */
	.mm-hero-stats {
		gap: var(--mm-sp-3);
		flex-wrap: wrap;
	}

	.mm-hero-stat {
		font-size: var(--mm-text-xs);
	}

	/* Footer bottom bar: stack vertically */
	.footer-bottom .mm-container {
		flex-direction: column;
		text-align: center;
	}

	.footer-bottom-links {
		justify-content: center;
		flex-wrap: wrap;
		gap: var(--mm-sp-3);
	}
}

/* ── Large phones (≤600px) ── */
@media (max-width: 600px) {

	/* Galleries: max 2 columns */
	.gallery-columns-3,
	.gallery-columns-4,
	.gallery-columns-5,
	.gallery-columns-6,
	.gallery-columns-7,
	.gallery-columns-8,
	.gallery-columns-9 {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Header: tighter gap */
	.header-main .mm-container {
		gap: var(--mm-sp-3);
	}

	/* Hero search: prevent button overlap */
	.mm-hero-search input {
		padding-right: 4rem;
		font-size: var(--mm-text-base);
	}

	.mm-hero-search button {
		padding: var(--mm-sp-2) var(--mm-sp-4);
	}

	/* AJAX search: bottom-sheet pattern on phones */
	.mm-hero-search .mm-search-results,
	.header-search .mm-search-results {
		position: fixed;
		top: auto;
		left: var(--mm-sp-3);
		right: var(--mm-sp-3);
		bottom: 0;
		max-height: 60vh;
		border-radius: var(--mm-radius-lg) var(--mm-radius-lg) 0 0;
		margin-top: 0;
	}
}

/* ── Small phones (≤480px) ── */
@media (max-width: 480px) {

	/* Top bar: keep only "Instant Download", hide others */
	.top-bar-trust span:nth-child(1),
	.top-bar-trust span:nth-child(3) {
		display: none;
	}

	.top-bar-trust {
		justify-content: center;
	}

	/* Header: minimal spacing */
	.header-main .mm-container {
		gap: var(--mm-sp-2);
		flex-wrap: nowrap;
	}

	.custom-logo {
		height: 28px;
	}

	.site-title {
		font-size: var(--mm-text-sm);
	}

	/* Hide currency switcher on very small phones - too wide */
	.header-currency-switcher {
		display: none;
	}

	/* Compact header actions */
	.header-actions {
		gap: 0;
	}

	.header-actions a {
		min-width: 40px;
		min-height: 40px;
		padding: var(--mm-sp-2);
	}

	.menu-toggle {
		min-width: 40px;
		padding: var(--mm-sp-2);
	}

	.menu-toggle span {
		display: none;
	}

	/* Galleries: single column */
	.gallery-columns-2,
	.gallery-columns-3,
	.gallery-columns-4,
	.gallery-columns-5,
	.gallery-columns-6,
	.gallery-columns-7,
	.gallery-columns-8,
	.gallery-columns-9 {
		grid-template-columns: 1fr;
	}

	/* Small buttons: enforce 44px touch target */
	.btn-sm {
		min-height: 44px;
		padding: var(--mm-sp-3) var(--mm-sp-4);
		font-size: var(--mm-text-sm);
	}

	/* Hero stats: vertical stack */
	.mm-hero-stats {
		flex-direction: column;
		gap: var(--mm-sp-2);
		align-items: center;
	}

	/* Hero search: full width */
	.mm-hero-search {
		max-width: 100%;
	}

	.mm-hero-search input {
		padding: var(--mm-sp-3) var(--mm-sp-4);
		padding-right: 3.5rem;
	}

	.mm-hero-search button {
		padding: var(--mm-sp-2) var(--mm-sp-3);
		right: 4px;
	}

	/* Header actions: minimal gap */
	.header-actions {
		gap: var(--mm-sp-1);
	}

	/* Mobile menu: larger tap targets */
	.main-navigation.toggled a {
		font-size: var(--mm-text-lg);
		padding: var(--mm-sp-4);
		min-height: 48px;
	}

	/* Testimonials: single column */
	.mm-testimonials {
		grid-template-columns: 1fr;
	}
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
