/* Global Market Foods — base layout */
*,
*::before,
*::after {
	box-sizing: border-box;
}

:root {
	--gmf-bg: #f0f0ee;
	--gmf-white: #fff;
	--gmf-text: #1a1a1a;
	--gmf-muted: #6b7280;
	--gmf-green: #2f7d4a;
	/* Brand accent (Sherifa-style chartreuse green; replaces legacy purple token). */
	--gmf-purple: #82b424;
	--gmf-filter-blue: #2563eb;
	--gmf-footer-bg: #3f4958;
	--gmf-toolbar-bg: #1a1d21;
	--gmf-toolbar-ctl: #2d3138;
	--gmf-radius: 6px;
}

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	font-family: "Open Sans", system-ui, -apple-system, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: var(--gmf-text);
	background: var(--gmf-bg);
}

.gmf-page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-x: clip;
	max-width: 100vw;
}

/* Sticky utility + main header */
.gmf-sticky-site-head {
	position: sticky;
	top: 0;
	z-index: 1000;
	margin-bottom: 20px;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.gmf-container {
	width: 100%;
	max-width: none;
	margin-left: auto;
	margin-right: auto;
	padding-left: clamp(16px, 3vw, 48px);
	padding-right: clamp(16px, 3vw, 48px);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Utility bar */
.gmf-utility {
	background: #edeef3;
	border-bottom: 1px solid #e8e8e6;
}

.gmf-utility__inner {
	display: flex;
	justify-content: flex-end;
	padding-top: 8px;
	padding-bottom: 8px;
}

.gmf-utility__nav--fallback,
.gmf-utility__list {
	display: flex;
	gap: 24px;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.gmf-utility__link,
.gmf-utility__list a {
	font-size: 13px;
	color: #000;
	text-decoration: none;
}

.gmf-utility__link:hover,
.gmf-utility__list a:hover {
	color: #000;
	text-decoration: underline;
}

/* Header */
.gmf-header {
	background: var(--gmf-white);
	border-bottom: 1px solid #e8e8e6;
	margin-bottom: 0;
}

.gmf-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 32px;
	padding-top: 16px;
	padding-bottom: 16px;
}

.gmf-logo {
	display: flex;
	align-items: center;
	align-self: center;
	text-decoration: none;
	line-height: 0;
}

.gmf-logo__img {
	display: block;
	width: auto;
	height: auto;
	max-height: 52px;
	max-width: min(220px, 42vw);
}

.gmf-footer__logo-link {
	display: inline-block;
	line-height: 0;
	text-decoration: none;
	margin-bottom: 4px;
}

.gmf-logo__img--footer {
	max-height: 58px;
	max-width: 240px;
	filter: brightness(0) invert(1);
}

.gmf-nav__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Flyout sub-menus (right side) */
.gmf-nav__list > li {
	position: relative;
}

.gmf-nav__list .sub-menu {
	position: absolute;
	top: -6px;
	left: 100%;
	min-width: 220px;
	padding: 10px 0;
	margin: 0;
	list-style: none;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: var(--gmf-radius);
	box-shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateX(10px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
	z-index: 2000;
}

.gmf-nav__list li:hover > .sub-menu,
.gmf-nav__list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
}

.gmf-nav__list .sub-menu a {
	display: block;
	padding: 10px 14px;
	border-bottom: none;
	color: #111827;
	font-size: 14px;
}

.gmf-nav__list .sub-menu a:hover {
	background: #f9fafb;
}

.gmf-nav__list a {
	font-size: 15px;
	color: #374151;
	text-decoration: none;
	padding-bottom: 6px;
	border-bottom: 2px solid transparent;
}

.gmf-nav__list a:hover {
	color: var(--gmf-text);
}

.gmf-nav__list .current-menu-item > a,
.gmf-nav__list a.is-active {
	color: var(--gmf-green);
	border-bottom-color: var(--gmf-green);
	font-weight: 600;
}

.gmf-nav__list--fallback {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 28px;
}

.gmf-btn {
	font-family: inherit;
	cursor: pointer;
	border: none;
}

.gmf-btn--partnership {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--gmf-purple);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 18px;
	border-radius: var(--gmf-radius);
	text-decoration: none;
}

.gmf-btn--partnership:hover {
	opacity: 0.92;
}

.gmf-btn__chev {
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid #fff;
	margin-top: 2px;
}

.gmf-header__actions {
	position: relative;
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 16px;
}

.gmf-header__menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	border: none;
	border-radius: var(--gmf-radius);
	background: var(--gmf-green);
	color: #fff;
	cursor: pointer;
	flex-shrink: 0;
	-webkit-tap-highlight-color: transparent;
}

.gmf-header__menu-toggle:hover {
	filter: brightness(1.06);
}

.gmf-header__menu-toggle:focus-visible {
	outline: 2px solid var(--gmf-green);
	outline-offset: 2px;
}

.gmf-header__menu-toggle-bars {
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
	box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

/* Full-screen overlay menu (narrow viewports) */
.gmf-site-menu[hidden] {
	display: none !important;
}

.gmf-site-menu:not([hidden]) {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: block;
	pointer-events: none;
}

.gmf-site-menu:not([hidden]) .gmf-site-menu__backdrop,
.gmf-site-menu:not([hidden]) .gmf-site-menu__panel {
	pointer-events: auto;
}

.gmf-site-menu__backdrop {
	position: absolute;
	inset: 0;
	border: none;
	padding: 0;
	margin: 0;
	background: rgba(17, 24, 39, 0.45);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	appearance: none;
}

.gmf-site-menu__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: min(360px, 92vw);
	max-width: 100%;
	height: 100%;
	height: 100dvh;
	background: var(--gmf-white);
	box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
	display: flex;
	flex-direction: column;
	outline: none;
	overflow: hidden;
	transform: translateX(0);
	animation: gmf-site-menu-in 0.32s ease;
}

@keyframes gmf-site-menu-in {
	from {
		transform: translateX(100%);
		opacity: 0.96;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

.gmf-site-menu__head {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	padding-top: max(12px, env(safe-area-inset-top));
	border-bottom: 1px solid #e5e7eb;
	background: #f9fafb;
}

.gmf-site-menu__title {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #374151;
}

.gmf-site-menu__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 8px;
	border: none;
	background: transparent;
	font-size: 32px;
	line-height: 1;
	font-weight: 300;
	color: #374151;
	cursor: pointer;
	border-radius: var(--gmf-radius);
}

.gmf-site-menu__close:hover {
	background: #e5e7eb;
}

.gmf-site-menu__body {
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 12px 16px 28px;
	padding-bottom: max(28px, env(safe-area-inset-bottom));
}

.gmf-site-menu__section-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--gmf-muted);
	margin: 16px 0 8px;
}

.gmf-site-menu__section-label:first-child {
	margin-top: 0;
}

.gmf-site-menu__cart-row {
	margin: 0 0 12px;
}

.gmf-site-menu__cart-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 700;
	font-family: inherit;
	color: var(--gmf-purple);
	text-decoration: none;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	text-align: left;
}

.gmf-site-menu__cart-link:hover {
	text-decoration: underline;
}

.gmf-site-menu__cart-badge {
	display: inline-block;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	font-size: 12px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
	color: #fff;
	background: var(--gmf-purple);
	border-radius: 999px;
}

.gmf-site-menu__subnav {
	margin-bottom: 4px;
}

.gmf-site-menu__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gmf-site-menu__list li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #f3f4f6;
}

.gmf-site-menu__list li:last-child {
	border-bottom: none;
}

.gmf-site-menu__list a {
	display: block;
	padding: 12px 4px;
	font-size: 16px;
	font-weight: 600;
	color: #374151;
	text-decoration: none;
}

.gmf-site-menu__list a:hover,
.gmf-site-menu__list a:focus-visible {
	color: var(--gmf-green);
}

.gmf-site-menu__list .current-menu-item > a,
.gmf-site-menu__list li.is-active > a {
	color: var(--gmf-green);
}

.gmf-site-menu__cta {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #e5e7eb;
}

.gmf-site-menu__cta-btn {
	display: block;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	padding: 12px 16px;
	border-radius: var(--gmf-radius);
	text-decoration: none;
	background: #9ca3af;
	color: #fff;
	border: 1px solid transparent;
}

.gmf-site-menu__cta-btn:hover {
	background: #6b7280;
	color: #fff;
}

.gmf-site-menu__cta-btn--secondary {
	background: #fff;
	color: #374151;
	border-color: #d1d5db;
}

.gmf-site-menu__cta-btn--secondary:hover {
	background: #f9fafb;
	color: var(--gmf-text);
}

.gmf-dropdown {
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: var(--gmf-radius);
	min-width: 200px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
	z-index: 50;
	display: flex;
	flex-direction: column;
}

.gmf-dropdown[hidden] {
	display: none !important;
}

.gmf-dropdown a {
	padding: 10px 14px;
	font-size: 14px;
	color: #374151;
	text-decoration: none;
}

.gmf-dropdown a:hover {
	background: #f3f4f6;
}

/* Main simple / page */
.gmf-main--simple,
.gmf-main--page {
	padding: 48px 0 64px;
	flex: 1;
}

.gmf-article__title {
	margin-top: 0;
}

.gmf-footer-stack {
    margin-top: auto;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background-color: #3a3835;
    background-image: linear-gradient(
			180deg,
			rgba(20, 22, 24, 0.18) 0%,
			rgba(20, 22, 24, 0.28) 100%
		),
		var(--gmf-footer-stack-image, url("../img/footer-stack-bg.jpg"));
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 0 90px;
    box-sizing: border-box;
}

.gmf-footer-stack__hero {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: clamp(20px, 5vh, 56px) 0;
	box-sizing: border-box;
}

.gmf-footer-stack__head-wrap {
    width: 100%;
    max-width: min(1200px, 92vw);
    margin: 0 auto;
    padding: 150px 0;
    box-sizing: border-box;
    text-align: center;
}

.gmf-footer-stack__headline {
    margin: 0;
    padding: 0 40px;
    text-align: left;
    font-family: "Albert Sans", system-ui, -apple-system, sans-serif;
    font-size: 55px;
    font-weight: 500;
    line-height: 1.15;
    color: #fff;

    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.06em;
}

.gmf-footer-stack__headline-line {
	display: block;
}

.gmf-footer-stack__panel {
	width: 100%;
	display: flex;
	justify-content: center;
	padding-bottom: 0;
	flex-shrink: 0;
}

.gmf-footer {
	margin: 0 auto;
	max-width: min(1200px, 92vw);
	width: 100%;
	color: #fff;
	text-align: left;
}

.gmf-footer__inner {
	width: 100%;
	padding-left: clamp(28px, 4vw, 56px);
	padding-right: clamp(28px, 4vw, 56px);
}

.gmf-footer__main {
	background: var(--gmf-footer-bg);
	padding: 48px 0 36px;
}

.gmf-footer__grid {
	display: grid;
	grid-template-columns: minmax(200px, 1.42fr) repeat(3, minmax(0, 1fr)) minmax(100px, auto);
	gap: 28px 36px;
	align-items: start;
}

.gmf-footer__back-top-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	min-width: 0;
	text-align: center;
}

.gmf-footer__brand {
	text-align: left;
	max-width: 260px;
}

.gmf-footer__office-label {
	margin: 20px 0 0;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	line-height: 1.3;
}

.gmf-footer__address {
	font-size: 13px;
	font-weight: 400;
	color: #fff;
	margin: 8px 0 0;
	line-height: 1.55;
	max-width: 240px;
}

.gmf-footer__social {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 14px;
	padding: 6px;
	background: transparent;
	color: #fff;
	border: none;
	border-radius: 2px;
	text-decoration: none;
	flex-shrink: 0;
	transition: color 0.2s ease;
}

.gmf-footer__social:hover,
.gmf-footer__social:focus-visible {
	color: var(--gmf-green);
}

.gmf-footer__social-tooltip {
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(-8px);
	padding: 5px 10px;
	background: #000;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	border-radius: 2px;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
	z-index: 20;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.gmf-footer__social-tooltip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -5px;
	border-width: 5px 5px 0;
	border-style: solid;
	border-color: #000 transparent transparent;
}

.gmf-footer__social:hover .gmf-footer__social-tooltip,
.gmf-footer__social:focus-visible .gmf-footer__social-tooltip {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(-10px);
}

.gmf-footer__col {
	text-align: left;
	min-width: 0;
}

.gmf-footer__heading {
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 12px;
	text-transform: none;
	color: #fff;
	line-height: 1.3;
}

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

.gmf-footer__links a {
	color: #fff;
	font-size: 14px;
	font-weight: 400;
	text-decoration: none;
	line-height: 2.05;
	display: inline-block;
}

.gmf-footer__links a:hover {
	text-decoration: underline;
}

.gmf-footer__link--ext {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #fff;
}

.gmf-footer__arrow {
	display: inline-flex;
	opacity: 0.9;
}

.gmf-back-top--footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0;
	padding: 0;
	margin: 0;
	background: transparent;
	border: none;
	color: #fff;
	cursor: pointer;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.15;
	text-align: center;
}

.gmf-back-top__disc {
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: #fff;
	color: #111827;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.gmf-back-top--footer:hover .gmf-back-top__disc,
.gmf-back-top--footer:focus-visible .gmf-back-top__disc {
	background: var(--gmf-footer-bg);
	color: #fff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.gmf-back-top__icon {
	display: block;
	flex-shrink: 0;
}

.gmf-back-top--footer .gmf-back-top__text {
	color: #fff;
	max-width: 72px;
	margin-top: 15px;
}

.gmf-footer__locations {
	background: var(--gmf-footer-bg);
	padding: 22px 0 44px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.gmf-footer__locations-inner {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 16px 20px;
	align-items: start;
}

.gmf-footer__loc {
	text-align: left;
	min-width: 0;
}

.gmf-footer__loc h4 {
	margin: 0 0 10px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #fff;
	line-height: 1.3;
}

.gmf-footer__loc p {
	margin: 0 0 3px;
	font-size: 11px;
	font-weight: 400;
	color: #e8eaed;
	line-height: 1.5;
}

.gmf-footer__loc p:last-child {
	margin-bottom: 0;
}

.gmf-floating-top {
	position: fixed;
	right: 20px;
	bottom: 24px;
	width: 44px;
	height: 44px;
	border-radius: 4px;
	border: none;
	background: #3d434c;
	color: #fff;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	z-index: 100;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s, visibility 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.gmf-floating-top.is-visible {
	opacity: 1;
	visibility: visible;
}

.gmf-floating-top:hover {
	background: #374151;
}

@media (max-width: 1024px) {
	.gmf-sticky-site-head {
		margin-bottom: 16px;
	}

	.gmf-header__inner {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
		gap: 20px;
		padding-top: 12px;
		padding-bottom: 12px;
	}

	.gmf-logo {
		align-items: center;
	}

	.gmf-nav__list,
	.gmf-nav__list--fallback {
		gap: 16px 20px;
	}

	.gmf-header__actions {
		justify-self: center;
	}

	.gmf-footer__locations-inner {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px 24px;
	}

	.gmf-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 24px;
	}

	.gmf-footer__back-top-wrap {
		grid-column: 1 / -1;
		margin-top: 8px;
		align-items: center;
	}
}

@media (max-width: 900px) {
	.gmf-utility--desktop {
		display: none;
	}

	.gmf-header__inner {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		text-align: left;
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.gmf-logo {
		flex: 1;
		min-width: 0;
		justify-content: flex-start;
	}

	.gmf-header__menu-toggle {
		display: inline-flex;
	}

	.gmf-nav--desktop,
	.gmf-header__actions--desktop {
		display: none !important;
	}
}

@media screen and (max-width: 782px) {
	body.admin-bar .gmf-site-menu__panel {
		top: 46px;
		height: calc(100% - 46px);
		height: calc(100dvh - 46px);
	}
}

@media (max-width: 720px) {
	.gmf-footer__locations-inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.gmf-footer__grid {
		grid-template-columns: 1fr;
	}

	.gmf-footer__locations-inner {
		grid-template-columns: 1fr;
	}

	.gmf-footer__back-top-wrap {
		grid-column: 1 / -1;
	}
}

@media (max-width: 768px) {
	.gmf-container {
		padding-left: clamp(12px, 4vw, 24px);
		padding-right: clamp(12px, 4vw, 24px);
	}

	.gmf-utility__inner {
		justify-content: center;
		flex-wrap: wrap;
		row-gap: 6px;
		padding-top: 6px;
		padding-bottom: 6px;
	}

	.gmf-utility__nav--fallback,
	.gmf-utility__list {
		justify-content: center;
		flex-wrap: wrap;
		gap: 12px 18px;
	}

	.gmf-nav__list a {
		font-size: 14px;
	}

	.gmf-nav__list--fallback .gmf-nav__link {
		font-size: 14px;
	}

	.gmf-btn--partnership {
		font-size: 13px;
		padding: 8px 14px;
	}

	.gmf-footer-stack {
		padding-left: clamp(12px, 4vw, 32px);
		padding-right: clamp(12px, 4vw, 32px);
	}

	.gmf-footer-stack__head-wrap {
		padding: 72px 0;
	}

	.gmf-footer-stack__headline {
		font-size: clamp(26px, 7.5vw, 40px);
		padding: 0 12px;
	}

	.gmf-floating-top {
		right: 12px;
		bottom: max(16px, env(safe-area-inset-bottom));
	}
}

@media (max-width: 480px) {
	.gmf-nav__list,
	.gmf-nav__list--fallback {
		gap: 10px 14px;
	}

	.gmf-logo__img {
		max-width: min(200px, 70vw);
	}
}

/* Header cart (opens drawer) */
.gmf-header__cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	border: none;
	background: transparent;
	color: var(--gmf-text);
	border-radius: var(--gmf-radius);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

.gmf-header__cart:hover {
	background: #f3f4f6;
	color: var(--gmf-green);
}

.gmf-header__cart-count {
	position: absolute;
	top: 4px;
	right: 2px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	color: #fff;
	background: var(--gmf-purple);
	border-radius: 999px;
}

/* Cart page */
.gmf-cart-page {
	padding: 24px 0 56px;
	background: var(--gmf-bg);
}

.gmf-cart-page__title {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 600;
	margin: 0 0 24px;
	color: var(--gmf-text);
}

.gmf-cart__empty {
	text-align: center;
	padding: 48px 16px;
	background: var(--gmf-white);
	border-radius: var(--gmf-radius);
	border: 1px solid #e5e7eb;
}

.gmf-cart__empty-text {
	margin: 0 0 20px;
	color: var(--gmf-muted);
	font-size: 16px;
}

.gmf-cart__layout {
	display: grid;
	grid-template-columns: 1fr minmax(240px, 300px);
	gap: 32px;
	align-items: start;
}

.gmf-cart__table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	min-width: 0;
}

@media (max-width: 900px) {
	.gmf-cart__layout {
		grid-template-columns: 1fr;
	}
}

.gmf-cart__table {
	width: 100%;
	border-collapse: collapse;
	background: var(--gmf-white);
	border-radius: var(--gmf-radius);
	border: 1px solid #e5e7eb;
	overflow: hidden;
}

.gmf-cart__th {
	text-align: left;
	padding: 12px 14px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--gmf-muted);
	background: #f9fafb;
	border-bottom: 1px solid #e5e7eb;
}

.gmf-cart__th--qty {
	width: 140px;
	text-align: center;
}

.gmf-cart__th--act {
	width: 100px;
}

.gmf-cart__th--price,
.gmf-cart__th--line-total {
	width: 110px;
	text-align: right;
}

.gmf-cart__cell {
	padding: 14px;
	vertical-align: middle;
	border-bottom: 1px solid #f3f4f6;
}

.gmf-cart__cell--media {
	width: 88px;
}

.gmf-cart__thumb {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: contain;
	border-radius: 4px;
	background: #fafafa;
}

.gmf-cart__thumb--ph {
	display: block;
	width: 72px;
	height: 72px;
	background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
	border-radius: 4px;
}

.gmf-cart__code {
	font-size: 12px;
	font-weight: 700;
	color: #4b5563;
	margin-bottom: 4px;
}

.gmf-cart__title {
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 4px;
}

.gmf-cart__title-link {
	color: inherit;
	text-decoration: none;
}

.gmf-cart__title-link:hover {
	color: var(--gmf-green);
	text-decoration: underline;
}

.gmf-cart__brand {
	font-size: 13px;
	color: var(--gmf-muted);
}

.gmf-cart__cell--price,
.gmf-cart__cell--line-total {
	text-align: right;
	font-weight: 600;
	font-size: 14px;
	white-space: nowrap;
}

.gmf-cart__qty {
	display: inline-flex;
	align-items: center;
	gap: 0;
	border: 1px solid #d1d5db;
	border-radius: var(--gmf-radius);
	overflow: hidden;
	background: #fff;
}

.gmf-cart__qty-btn {
	width: 36px;
	height: 36px;
	border: none;
	background: #f9fafb;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	color: var(--gmf-text);
}

.gmf-cart__qty-btn:hover {
	background: #edeef3;
}

.gmf-cart__qty-val {
	min-width: 36px;
	text-align: center;
	font-weight: 600;
	font-size: 15px;
}

.gmf-cart__remove {
	font-size: 13px;
	color: #b91c1c;
	background: none;
	border: none;
	cursor: pointer;
	text-decoration: underline;
	padding: 4px;
}

.gmf-cart__remove:hover {
	color: #7f1d1d;
}

.gmf-cart__summary {
	background: var(--gmf-white);
	border: 1px solid #e5e7eb;
	border-radius: var(--gmf-radius);
	padding: 20px;
}

.gmf-cart__total-line {
	margin: 0 0 16px;
	font-size: 15px;
}

.gmf-cart__total-line--subtotal {
	margin-top: -8px;
	font-size: 17px;
}

.gmf-cart__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 16px;
}

.gmf-btn--cart-shop,
.gmf-btn--cart-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-decoration: none;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	padding: 12px 18px;
	border-radius: var(--gmf-radius);
	border: none;
	cursor: pointer;
	transition: opacity 0.15s ease, background 0.15s ease;
}

.gmf-btn--cart-shop {
	background: var(--gmf-green);
	color: #fff;
}

.gmf-btn--cart-shop:hover {
	opacity: 0.92;
}

.gmf-btn--cart-shop.gmf-btn--secondary {
	background: #fff;
	color: var(--gmf-text);
	border: 1px solid #d1d5db;
}

.gmf-btn--cart-shop.gmf-btn--secondary:hover {
	background: #f9fafb;
}

.gmf-btn--cart-cta {
	background: var(--gmf-purple);
	color: #fff;
}

.gmf-btn--cart-cta:hover {
	opacity: 0.92;
}

.gmf-cart__clear {
	width: 100%;
	font-size: 13px;
	color: var(--gmf-muted);
	background: none;
	border: none;
	cursor: pointer;
	text-decoration: underline;
	padding: 8px;
}

.gmf-cart__clear:hover {
	color: var(--gmf-text);
}

/* Cart drawer (off-canvas right) */
.gmf-cart-drawer {
	position: fixed;
	inset: 0;
	z-index: 10050;
	pointer-events: none;
}

.gmf-cart-drawer.is-open {
	pointer-events: auto;
}

.gmf-cart-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	border: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.28s ease;
}

.gmf-cart-drawer.is-open .gmf-cart-drawer__backdrop {
	opacity: 1;
}

.gmf-cart-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: min(100vw - 40px, 400px);
	max-width: 100%;
	height: 100%;
	background: var(--gmf-white);
	box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	visibility: hidden;
	transition: transform 0.3s ease, visibility 0.3s;
	outline: none;
}

.gmf-cart-drawer.is-open .gmf-cart-drawer__panel {
	transform: translateX(0);
	visibility: visible;
}

.gmf-cart-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px;
	border-bottom: 1px solid #e5e7eb;
	flex-shrink: 0;
}

.gmf-cart-drawer__title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	font-family: "Cormorant Garamond", Georgia, serif;
}

.gmf-cart-drawer__close {
	width: 40px;
	height: 40px;
	border: none;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: var(--gmf-muted);
	border-radius: var(--gmf-radius);
}

.gmf-cart-drawer__close:hover {
	color: var(--gmf-text);
	background: #f3f4f6;
}

.gmf-cart-drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: 12px 16px 20px;
	-webkit-overflow-scrolling: touch;
}

.gmf-cart-drawer__empty {
	margin: 24px 0;
	text-align: center;
	color: var(--gmf-muted);
	font-size: 15px;
}

.gmf-cart-drawer__line {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid #f3f4f6;
}

.gmf-cart-drawer__line:last-child {
	border-bottom: none;
}

.gmf-cart-drawer__line-media {
	flex-shrink: 0;
	width: 64px;
}

.gmf-cart-drawer__thumb {
	display: block;
	width: 64px;
	height: 64px;
	object-fit: contain;
	border-radius: 6px;
	background: #fafafa;
	border: 1px solid #f3f4f6;
}

.gmf-cart-drawer__thumb--ph {
	display: block;
	width: 64px;
	height: 64px;
	background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
	border-radius: 6px;
	border: 1px solid #e5e7eb;
}

.gmf-cart-drawer__line-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.gmf-cart-drawer__text {
	width: 100%;
	min-width: 0;
}

.gmf-cart-drawer__code {
	font-size: 11px;
	font-weight: 700;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin: 0 0 6px;
}

.gmf-cart-drawer__name {
	font-size: 14px;
	font-weight: 600;
	color: inherit;
	text-decoration: none;
	display: block;
	margin: 0;
	line-height: 1.4;
	max-width: 100%;
}

.gmf-cart-drawer__name:hover {
	color: var(--gmf-green);
	text-decoration: underline;
}

.gmf-cart-drawer__controls {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	width: 100%;
}

.gmf-cart-drawer__qty-row {
	display: inline-flex;
	align-items: stretch;
	flex-shrink: 0;
	border: 1px solid #d1d5db;
	border-radius: var(--gmf-radius);
	overflow: hidden;
	background: #fff;
}

.gmf-cart-drawer__qty-btn {
	width: 34px;
	height: 34px;
	border: none;
	background: #f9fafb;
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	color: var(--gmf-text);
}

.gmf-cart-drawer__qty-btn:hover {
	background: #edeef3;
}

.gmf-cart-drawer__qty-val {
    min-width: 32px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gmf-cart-drawer__remove {
	font-size: 13px;
	color: #b91c1c;
	background: none;
	border: none;
	cursor: pointer;
	text-decoration: underline;
	padding: 0;
	display: block;
	align-self: flex-start;
	font-family: inherit;
}

.gmf-cart-drawer__remove:hover {
	color: #7f1d1d;
}

.gmf-cart-drawer__subtotal-wrap {
	padding: 0 0 4px;
}

.gmf-cart-drawer__subtotal-line {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--gmf-text);
}

.gmf-cart-drawer__line-math {
	font-size: 12px;
	color: var(--gmf-muted);
	margin-top: 6px;
	font-weight: 600;
}

.gmf-cart-drawer__foot {
	flex-shrink: 0;
	padding: 16px 18px 20px;
	border-top: 1px solid #e5e7eb;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.gmf-cart-drawer__cta {
	display: block;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	padding: 12px 16px;
	border-radius: var(--gmf-radius);
	background: var(--gmf-purple);
	color: #fff;
	text-decoration: none;
	width: 100%;
	box-sizing: border-box;
}

.gmf-cart-drawer__cta:hover {
	opacity: 0.92;
	color: #fff;
}

.gmf-cart-drawer__cta--secondary {
	background: #fff;
	color: var(--gmf-text);
	border: 1px solid #d1d5db;
}

.gmf-cart-drawer__cta--secondary:hover {
	opacity: 1;
	background: #f9fafb;
	color: var(--gmf-text);
}

.gmf-cart-drawer__clear {
	font-size: 13px;
	color: var(--gmf-muted);
	background: none;
	border: none;
	cursor: pointer;
	text-decoration: underline;
	padding: 8px 0 0;
	font-family: inherit;
}

.gmf-cart-drawer__clear:hover {
	color: var(--gmf-text);
}
