/* Products catalog page */
.gmf-products-page {
	flex: 1;
	width: 100%;
	max-width: 100vw;
	padding-bottom: 0;
	background: #f5f7f8;
	overflow-x: clip;
}

/* Dark toolbar (reference: charcoal bar) */
.gmf-toolbar {
	background: #525252;
	color: #fff;
	padding: 10px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gmf-toolbar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}

.gmf-toolbar__filters-cluster {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 16px;
}

.gmf-toolbar__close {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	padding: 0 6px;
	opacity: 0.9;
	font-weight: 300;
}

.gmf-toolbar__filters-open {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	cursor: pointer;
	padding: 6px 8px;
}

.gmf-toolbar__filters-open:hover {
	opacity: 0.9;
	text-decoration: underline;
}

.gmf-toolbar__close:hover {
	opacity: 1;
}

.gmf-toolbar__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin-right: 8px;
}

.gmf-toolbar__sort-label {
	font-size: 14px;
	margin-left: 0;
	white-space: nowrap;
}

@media (max-width: 900px) {
	.gmf-toolbar__search {
		flex: 1 1 100%;
		max-width: 100%;
		margin-left: 0;
		margin-top: 4px;
	}
}

.gmf-toolbar__sort-group {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: nowrap;
}

.gmf-toolbar__select {
	appearance: none;
	background-color: #525252;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--gmf-radius);
	padding: 8px 36px 8px 12px;
	font-size: 14px;
	font-family: inherit;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	cursor: pointer;
}

.gmf-toolbar__sort-dir {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	border-radius: 0;
	color: #fff;
	cursor: pointer;
	padding: 0;
	transition: opacity 0.15s ease;
}

.gmf-toolbar__sort-dir:hover:not(:disabled) {
	opacity: 0.85;
}

.gmf-toolbar__sort-dir:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.gmf-toolbar__sort-dir-icon {
	display: block;
}

.gmf-toolbar__sort-dir-arrow {
	transition: transform 0.2s ease;
	transform-origin: 18px 12px;
}

/* desc: arrow down; asc: arrow up */
.gmf-toolbar__sort-dir.is-asc .gmf-toolbar__sort-dir-arrow {
	transform: rotate(180deg);
}

.gmf-toolbar__search {
	display: flex;
	flex-direction: row;
	align-items: center;
	margin-left: auto;
	border-bottom: 1px solid rgba(255, 255, 255, 0.5);
	flex: 0 1 auto;
	min-width: 0;
	max-width: min(280px, 34vw);
}

.gmf-toolbar__search-input {
	flex: 1;
	min-width: 0;
	background: transparent;
	border: none;
	color: #fff;
	font-size: 14px;
	padding: 8px 8px 8px 6px;
	outline: none;
}

.gmf-toolbar__search-input::placeholder {
	color: rgba(255, 255, 255, 0.45);
}

.gmf-toolbar__search-btn {
	background: transparent;
	border: none;
	color: #fff;
	padding: 4px 6px 4px 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* Body layout — full-width shell, sidebar flush left */
.gmf-products-body {
	padding: 0 0 48px;
	background: #f5f7f8;
}

.gmf-products-body__shell {
	display: flex;
	align-items: stretch;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	min-height: 60vh;
}

.gmf-sidebar {
	box-sizing: border-box;
	flex: 0 0 min(280px, 100vw);
	width: min(280px, 100vw);
	max-width: 280px;
	min-width: 0;
	overflow: hidden;
	transition: flex-basis 0.35s ease, max-width 0.35s ease, width 0.35s ease, opacity 0.28s ease, padding 0.3s ease,
		border-color 0.25s ease;
	margin: 0;
	border-radius: 0;
	border: none;
	border-right: 1px solid #e5e7eb;
	background: #fff;
	padding: 20px 18px;
}

.gmf-products-page.is-sidebar-collapsed .gmf-sidebar {
	flex: 0 0 0;
	flex-basis: 0;
	width: 0;
	max-width: 0;
	min-width: 0;
	padding: 0;
	margin: 0;
	border-right-width: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.gmf-products-body__main {
	flex: 1;
	min-width: 0;
	padding-top: 28px;
	background: #f5f7f8;
}

@media (max-width: 900px) {
	.gmf-sidebar {
		flex: 0 0 min(260px, 86vw);
		width: min(260px, 86vw);
	}

	.gmf-products-page.is-sidebar-collapsed .gmf-sidebar {
		flex: 0 0 0;
		width: 0;
		max-width: 0;
	}
}

.gmf-sidebar .gmf-filter-acc {
	border-bottom: 1px solid #e5e7eb;
	margin-bottom: 0;
	padding-bottom: 4px;
}

.gmf-sidebar .gmf-filter-acc:last-of-type {
	border-bottom: none;
	padding-bottom: 0;
}

.gmf-sidebar__clear {
	display: inline-block;
	margin-bottom: 20px;
	padding: 0;
	border: none;
	background: none;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	text-align: left;
	color: #9ca3af;
	text-decoration: none;
}

.gmf-sidebar__clear:hover {
	color: #6b7280;
	text-decoration: underline;
}

.gmf-catalog-root {
	position: relative;
	min-height: 120px;
}

.gmf-catalog-loader {
	position: absolute;
	inset: 0;
	z-index: 8;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(245, 247, 248, 0.72);
	backdrop-filter: blur(2px);
}

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

.gmf-catalog-loader__spin {
	width: 40px;
	height: 40px;
	box-sizing: border-box;
	border: 3px solid #e2e5e9;
	border-top-color: var(--gmf-purple, #82b424);
	border-radius: 50%;
	animation: gmf-catalog-spin 0.75s linear infinite;
}

@keyframes gmf-catalog-spin {
	to {
		transform: rotate(360deg);
	}
}

.gmf-filter-acc {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding-top: 12px;
}

.gmf-sidebar .gmf-filter-acc:first-of-type {
	padding-top: 0;
}

/* Mobile filter drawer chrome + backdrop (shown ≤768px only via media queries) */
.gmf-sidebar__mobile-head {
	display: none;
}

.gmf-sidebar-backdrop {
	display: none;
}

.gmf-filter-acc__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	color: #374151;
	list-style: none;
	padding: 8px 0;
}

.gmf-filter-acc__head::-webkit-details-marker {
	display: none;
}

.gmf-filter-acc__chev {
	width: 8px;
	height: 8px;
	border-right: 2px solid #6b7280;
	border-bottom: 2px solid #6b7280;
	transform: rotate(45deg);
	margin-bottom: 4px;
	transition: transform 0.2s;
}

.gmf-filter-acc[open] .gmf-filter-acc__chev {
	transform: rotate(225deg);
	margin-bottom: -2px;
}

.gmf-filter-acc__body {
	padding-bottom: 12px;
}

.gmf-filter-search {
	width: 100%;
	padding: 8px 10px;
	font-size: 13px;
	border: 1px solid #e5e7eb;
	border-radius: var(--gmf-radius);
	margin-bottom: 8px;
	font-family: inherit;
}

.gmf-filter-search::placeholder {
	color: #9ca3af;
}

.gmf-filter-select {
	width: 100%;
	padding: 10px 12px;
	font-size: 14px;
	font-family: inherit;
	border: 1px solid #d1d5db;
	border-radius: var(--gmf-radius);
	background: #fff;
	color: var(--gmf-text);
	cursor: pointer;
}

/* Utility row */
.gmf-products-util {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
	margin-bottom: 16px;
}

.gmf-products-util__tools {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.gmf-products-count {
	margin: 0 0 14px;
	font-size: 13px;
	color: var(--gmf-muted);
}

.gmf-view-toggle {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	border: none;
	background: transparent;
	overflow: visible;
}

.gmf-view-toggle__btn {
	width: 40px;
	height: 36px;
	border: none;
	background: transparent;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #9ca3af;
}

.gmf-view-toggle__btn:hover {
	color: #6b7280;
}

.gmf-view-toggle__btn.is-active {
	color: var(--gmf-purple);
	background: transparent;
}

.gmf-view-toggle__grid-icon {
	display: block;
	width: 8px;
	height: 8px;
	background: currentColor;
	box-shadow:
		9px 0 0 0 currentColor,
		0 9px 0 0 currentColor,
		9px 9px 0 0 currentColor;
	margin: 0;
	line-height: 0;
	pointer-events: none;
	flex-shrink: 0;
	align-self: center;
}

.gmf-view-toggle__list-icon {
	display: block;
	width: 16px;
	height: 12px;
	margin: 0;
	line-height: 0;
	flex-shrink: 0;
	align-self: center;
	background: repeating-linear-gradient(
		to bottom,
		currentColor 0,
		currentColor 2px,
		transparent 2px,
		transparent 5px
	);
}

.gmf-toggle-inline {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-size: 13px;
	color: #374151;
}

.gmf-toggle-inline__input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.gmf-toggle-inline__switch {
	width: 36px;
	height: 20px;
	background: #d1d5db;
	border-radius: 999px;
	position: relative;
	transition: background 0.2s;
	flex-shrink: 0;
}

.gmf-toggle-inline__switch::after {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	background: #fff;
	border-radius: 50%;
	top: 2px;
	left: 2px;
	transition: transform 0.2s;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.gmf-toggle-inline__input:checked + .gmf-toggle-inline__switch {
	background: var(--gmf-purple);
}

.gmf-toggle-inline__input:checked + .gmf-toggle-inline__switch::after {
	transform: translateX(16px);
}

.gmf-download-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.gmf-download-badge {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	border-radius: 999px;
	background: var(--gmf-purple);
	color: #fff;
	z-index: 3;
}

.gmf-download-btn {
    background: transparent;
    border: 2px solid #000;
    color: #000;
    cursor: pointer;
    width: 31px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-sizing: border-box;
}

.gmf-download-btn svg {
	display: block;
	width: 17px;
	height: 17px;
}

.gmf-download-btn:hover,
.gmf-download-btn[aria-expanded="true"] {
	color: #000;
	background: transparent;
	opacity: 0.85;
}

.gmf-download-menu {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	min-width: 220px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: var(--gmf-radius);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
	z-index: 40;
	padding: 6px 0;
	display: flex;
	flex-direction: column;
}

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

.gmf-download-menu__item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px 14px;
	border: none;
	background: none;
	font-size: 14px;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
	color: #374151;
}

.gmf-download-menu__item:hover {
	background: #f9fafb;
}

.gmf-download-menu__item--danger {
	color: #dc2626;
}

.gmf-download-menu__item--danger:hover {
	background: #fef2f2;
}

.gmf-download-menu__item svg {
	flex-shrink: 0;
	opacity: 70%;
}

/* Product grid — 2 mobile, 4 desktop, 6 wide screens */
.gmf-product-grid[data-view="grid"] {
	display: grid;
	align-items: stretch;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(10px, 1.2vw, 16px);
}

@media (min-width: 769px) {
	.gmf-product-grid[data-view="grid"] {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 1400px) {
	.gmf-product-grid[data-view="grid"] {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

/* Sidebar collapsed: five columns (desktop+) */
@media (min-width: 769px) {
	.gmf-products-page.is-sidebar-collapsed .gmf-product-grid[data-view="grid"] {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.gmf-products-page.is-sidebar-collapsed .gmf-product-grid[data-view="grid"] .gmf-card__media {
		min-height: 136px;
	}
}

@media (min-width: 1400px) {
	.gmf-products-page.is-sidebar-collapsed .gmf-product-grid[data-view="grid"] {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

.gmf-product-grid[data-view="grid"] .gmf-card__media {
	max-height: none;
	min-height: 140px;
}

.gmf-product-grid[data-view="list"] {
	grid-template-columns: 1fr;
}

.gmf-product-grid[data-view="list"] .gmf-card {
	display: grid;
	grid-template-columns: 48px 88px minmax(0, 1fr);
	grid-template-rows: auto auto auto auto;
	align-items: center;
	column-gap: 20px;
	row-gap: 6px;
	padding: 16px 20px;
	background: #fff;
	border: 1px solid #e8e8e6;
	border-radius: 4px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.gmf-product-grid[data-view="list"] .gmf-card__top {
	grid-column: 1;
	grid-row: 1 / 4;
	align-self: center;
	justify-self: center;
}

.gmf-product-grid[data-view="list"] .gmf-card__link {
	display: contents;
}

.gmf-product-grid[data-view="list"] .gmf-card__media {
	grid-column: 2;
	grid-row: 1 / 4;
	width: 88px;
	height: 88px;
	max-width: 88px;
	max-height: 88px;
	margin: 0;
}

.gmf-product-grid[data-view="list"] .gmf-card__code {
	grid-column: 3;
	grid-row: 1;
	margin: 0;
}

.gmf-product-grid[data-view="list"] .gmf-card__title {
	grid-column: 3;
	grid-row: 2;
	margin: 0;
	-webkit-line-clamp: 3;
}

.gmf-product-grid[data-view="list"] .gmf-card__brand {
	grid-column: 3;
	grid-row: 3;
	margin: 0;
}

.gmf-product-grid[data-view="list"] .gmf-card__footer {
	grid-column: 1 / -1;
	grid-row: 4;
	padding: 8px 0 0;
	margin-top: 4px;
	border-top: 1px solid #f3f4f6;
}

.gmf-products-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 48px;
	color: var(--gmf-muted);
}

/* Card */
.gmf-card {
	position: relative;
	background: var(--gmf-white);
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	padding: 0;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s ease;
}

.gmf-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
	border-color: #d1d5db;
}

/* Store home rows: slightly richer hover (client-facing polish). */
.gmf-store-home__row .gmf-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 34px rgba(17, 24, 39, 0.1);
}

@media (prefers-reduced-motion: reduce) {
	.gmf-card {
		transition: box-shadow 0.2s, border-color 0.2s;
	}

	.gmf-store-home__row .gmf-card:hover {
		transform: none;
	}
}

.gmf-card__top {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	padding: 10px 12px 0;
	flex-shrink: 0;
}

.gmf-card__select {
	position: relative;
	cursor: pointer;
	z-index: 2;
}

.gmf-card__checkbox {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.gmf-card__switch {
	display: block;
	width: 32px;
	height: 18px;
	background: #e5e7eb;
	border-radius: 999px;
	position: relative;
	transition: background 0.2s;
}

.gmf-card__switch::after {
	content: "";
	position: absolute;
	width: 14px;
	height: 14px;
	background: #fff;
	border-radius: 50%;
	top: 2px;
	left: 2px;
	transition: transform 0.2s;
}

.gmf-card__checkbox:checked + .gmf-card__switch {
	background: var(--gmf-purple);
}

.gmf-card__checkbox:checked + .gmf-card__switch::after {
	transform: translateX(14px);
}

.gmf-card__link {
	text-decoration: none;
	color: inherit;
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	padding: 0 12px 8px;
}

.gmf-card__footer {
	flex-shrink: 0;
	padding: 0 12px 12px;
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
}

.gmf-card__add-bottom {
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 10px 12px;
	border-radius: var(--gmf-radius, 6px);
	border: 1px solid var(--gmf-green, #2f7d4a);
	background: var(--gmf-green, #2f7d4a);
	color: #fff;
	cursor: pointer;
	transition: opacity 0.15s ease, background 0.15s ease;
}

.gmf-card__add-bottom:hover {
	opacity: 0.92;
}

.gmf-card__add-bottom:focus-visible {
	outline: 2px solid var(--gmf-purple, #82b424);
	outline-offset: 2px;
}

.gmf-card__in-cart {
	margin: 0;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--gmf-green, #2f7d4a);
	padding: 10px 12px;
	border-radius: var(--gmf-radius, 6px);
	border: 1px solid #c8e6d0;
	background: #f0fdf4;
}


.gmf-card__media {
	flex: 1 1 auto;
	min-height: 140px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fafafa;
	margin: 0 0 10px;
	overflow: hidden;
	padding: 12px 8px;
}

.gmf-card__img {
	max-width: 100%;
	max-height: 148px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.gmf-card__placeholder {
	width: 70%;
	height: 70%;
	background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
	border-radius: 4px;
}

.gmf-card__code {
	font-size: 12px;
	font-weight: 700;
	color: #4b5563;
	margin: 0 0 6px;
}

.gmf-card__title {
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
	margin: 0 0 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gmf-card__brand {
	font-size: 11px;
	color: var(--gmf-muted);
	margin: 0;
}

.gmf-card__price {
	font-size: 13px;
	font-weight: 700;
	color: var(--gmf-text);
	margin: 8px 0 0;
}

/* Add-page mode: emphasize toggles */
.gmf-products-page.is-select-page .gmf-card__switch {
	box-shadow: 0 0 0 2px rgba(130, 180, 36, 0.35);
}

/* Pagination — text style (brand accent active + underline) */
.gmf-pagination {
	margin-top: 28px;
	padding: 16px 0 8px;
	display: flex;
	justify-content: center;
	background: transparent;
}

.gmf-pagination__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: clamp(8px, 2vw, 20px);
	font-size: 15px;
	font-family: inherit;
}

.gmf-pagination__num {
	color: #6b7280;
	text-decoration: none;
	padding: 4px 2px;
	border: none;
	background: none;
	font: inherit;
	cursor: pointer;
	transition: color 0.15s ease;
}

a.gmf-pagination__num:hover {
	color: var(--gmf-purple);
}

.gmf-pagination__num.is-current {
	color: var(--gmf-purple);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 6px;
	text-decoration-thickness: 2px;
	cursor: default;
}

.gmf-pagination__dots {
	color: #6b7280;
	padding: 0 4px;
	user-select: none;
}

.gmf-pagination__nav {
	color: var(--gmf-purple);
	text-decoration: none;
	font-size: 16px;
	line-height: 1;
	padding: 4px 2px;
	font-weight: 600;
}

a.gmf-pagination__nav:hover {
	opacity: 0.8;
}

.gmf-pagination__nav.is-disabled {
	color: #c4b8cf;
	cursor: default;
	pointer-events: none;
	opacity: 0.5;
}

.gmf-pagination--empty {
	display: none;
}

/* Review modal */
.gmf-review-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: 200;
}

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

.gmf-review-modal {
	position: fixed;
	z-index: 210;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(600px, 94vw);
	max-height: 85vh;
	background: #fff;
	border-radius: var(--gmf-radius);
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
	display: flex;
	flex-direction: column;
}

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

.gmf-review-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	border-bottom: 1px solid #e5e7eb;
}

.gmf-review-modal__head h2 {
	margin: 0;
	font-size: 1.1rem;
}

.gmf-review-modal__close {
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: #6b7280;
	padding: 0 4px;
}

.gmf-review-modal__body {
	padding: 16px 18px;
	overflow-y: auto;
}

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

.gmf-review-row:last-child {
	border-bottom: none;
}

.gmf-review-row__media {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
}

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

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

.gmf-review-row__body {
	flex: 1;
	min-width: 0;
}

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

.gmf-review-row__title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	margin: 0 0 4px;
	color: var(--gmf-text);
}

.gmf-review-row__title a {
	color: inherit;
	text-decoration: none;
}

.gmf-review-row__title a:hover {
	color: var(--gmf-green);
	text-decoration: underline;
}

.gmf-review-row__brand {
	font-size: 13px;
	color: var(--gmf-muted);
	margin: 0;
}

.gmf-review-empty {
	margin: 0;
	color: var(--gmf-muted);
}

/* Product detail — sub bar */
.gmf-product-subbar {
	background: #2b2f36;
	color: #fff;
	padding: 12px 0;
}

.gmf-product-subbar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.gmf-product-breadcrumb {
	font-size: 14px;
}

.gmf-product-breadcrumb a {
	color: #e5e7eb;
	text-decoration: none;
}

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

.gmf-product-breadcrumb__sep {
	margin: 0 8px;
	opacity: 0.6;
}

.gmf-product-breadcrumb__current {
	font-weight: 600;
}

.gmf-product-subbar__actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.gmf-product-cart-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
}

.gmf-product-cart-bar__qty {
	width: 64px;
	padding: 8px 10px;
	font-size: 15px;
	border: 1px solid #d1d5db;
	border-radius: var(--gmf-radius, 6px);
	font-family: inherit;
}

.gmf-btn--add-cart {
	background: var(--gmf-purple, #82b424);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 20px;
	border-radius: var(--gmf-radius, 6px);
	border: none;
	cursor: pointer;
	font-family: inherit;
	transition: opacity 0.15s ease;
}

.gmf-btn--add-cart:hover {
	opacity: 0.9;
}

.gmf-product-cart-bar__link {
	font-size: 14px;
	font-weight: 600;
	color: var(--gmf-green, #2f7d4a);
	text-decoration: none;
}

.gmf-product-cart-bar__link:hover {
	text-decoration: underline;
}

.gmf-product-cart-bar__status {
	font-size: 14px;
	color: var(--gmf-muted, #6b7280);
}

.gmf-product-subbar__user {
	display: flex;
	opacity: 0.85;
}

/* Single product body */
.gmf-container--product {
	max-width: 1120px;
}

.gmf-product-detail {
	padding: 40px 0 64px;
	background: var(--gmf-bg);
}

.gmf-product-single__intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
	margin-bottom: 48px;
}

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

.gmf-product-single__media {
	background: linear-gradient(180deg, #fff 0%, #f9fafb 100%);
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: clamp(20px, 3vw, 32px);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.gmf-product-single__media-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 280px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid #f3f4f6;
}

.gmf-product-single__img {
	width: 100%;
	max-width: 440px;
	height: auto;
	object-fit: contain;
	vertical-align: middle;
}

.gmf-product-single__summary {
	max-width: 520px;
	padding-top: 8px;
}

.gmf-product-single__title {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: clamp(1.75rem, 3.5vw, 2.35rem);
	font-weight: 600;
	line-height: 1.2;
	margin: 0 0 16px;
	color: var(--gmf-text);
}

.gmf-product-single__price {
	font-family: "Albert Sans", system-ui, sans-serif;
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	font-weight: 700;
	margin: 0 0 28px;
	color: var(--gmf-text);
}

.gmf-product-single__description {
	margin-top: 8px;
	padding-top: 24px;
	border-top: 1px solid #e5e7eb;
}

.gmf-product-single__description-heading {
	font-family: "Albert Sans", system-ui, sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gmf-muted);
	margin: 0 0 14px;
}

.gmf-product-single__description-body {
	font-size: 1rem;
	line-height: 1.65;
	color: #374151;
}

/* Prose inside product description (editor content) */
.gmf-prose .gmf-product-single__description-body > *:first-child {
	margin-top: 0;
}

.gmf-prose .gmf-product-single__description-body > *:last-child {
	margin-bottom: 0;
}

.gmf-prose .gmf-product-single__description-body p {
	margin: 0 0 1em;
}

.gmf-prose .gmf-product-single__description-body ul,
.gmf-prose .gmf-product-single__description-body ol {
	margin: 0 0 1em 1.25em;
	padding: 0;
}

.gmf-prose .gmf-product-single__description-body li {
	margin-bottom: 0.35em;
}

.gmf-prose .gmf-product-single__description-body a {
	color: var(--gmf-green, #2f7d4a);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.gmf-prose .gmf-product-single__description-body a:hover {
	color: var(--gmf-purple, #82b424);
}

.gmf-prose .gmf-product-single__description-body h2,
.gmf-prose .gmf-product-single__description-body h3 {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.35rem;
	margin: 1.25em 0 0.5em;
	color: var(--gmf-text);
}

/* Product details table (brand, taxonomies, code, price, specs) */
.gmf-product-details {
	margin-bottom: 48px;
}

.gmf-product-details__title {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.5rem;
	font-weight: 600;
	margin: 0 0 18px;
	color: var(--gmf-text);
}

.gmf-product-details__wrap {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
	overflow: hidden;
}

.gmf-product-details__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.gmf-product-details__row:nth-child(odd) {
	background: #fafafa;
}

.gmf-product-details__row:nth-child(even) {
	background: #fff;
}

.gmf-product-details__th {
	width: min(32%, 220px);
	padding: 14px 18px 14px 22px;
	text-align: left;
	font-family: "Albert Sans", system-ui, sans-serif;
	font-weight: 700;
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #6b7280;
	vertical-align: top;
	border-bottom: 1px solid #e5e7eb;
	border-right: 1px solid #f3f4f6;
}

.gmf-product-details__td {
	padding: 14px 22px;
	font-weight: 600;
	color: var(--gmf-text);
	vertical-align: top;
	border-bottom: 1px solid #e5e7eb;
	word-break: break-word;
}

.gmf-product-details__row:last-child .gmf-product-details__th,
.gmf-product-details__row:last-child .gmf-product-details__td {
	border-bottom: none;
}

@media (max-width: 560px) {
	.gmf-product-details__table,
	.gmf-product-details__row,
	.gmf-product-details__th,
	.gmf-product-details__td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.gmf-product-details__th {
		border-right: none;
		border-bottom: none;
		padding-bottom: 6px;
		padding-top: 16px;
		width: 100%;
	}

	.gmf-product-details__td {
		border-bottom: 1px solid #e5e7eb;
		padding-top: 4px;
		padding-bottom: 16px;
		font-weight: 500;
	}

	.gmf-product-details__row:first-child .gmf-product-details__th {
		padding-top: 18px;
	}

	.gmf-product-details__row:last-child .gmf-product-details__td {
		border-bottom: none;
		padding-bottom: 18px;
	}
}

/* Gallery (only when URLs exist) */
.gmf-product-gallery {
	margin-bottom: 32px;
}

.gmf-product-gallery__title {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.5rem;
	font-weight: 600;
	margin: 0 0 20px;
	color: var(--gmf-text);
}

.gmf-product-gallery__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
}

.gmf-product-gallery__figure {
	margin: 0;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: var(--gmf-radius);
	padding: 12px;
}

.gmf-product-gallery__imgwrap {
	background: #f9fafb;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 160px;
	overflow: hidden;
}

.gmf-product-gallery__imgwrap img {
	width: 100%;
	height: auto;
	max-height: 220px;
	object-fit: contain;
}

.gmf-product-gallery__caption {
	font-size: 11px;
	margin: 10px 0 0;
	color: var(--gmf-muted);
	word-break: break-all;
}

/* Legacy catalog / modal helpers */
.gmf-gallery-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.gmf-media-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: var(--gmf-radius);
	padding: 12px;
	max-width: 280px;
}

.gmf-media-card__imgwrap {
	background: #f9fafb;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 180px;
	border-radius: 4px;
	overflow: hidden;
}

.gmf-media-card__imgwrap img {
	width: 100%;
	height: auto;
	max-height: 220px;
	object-fit: contain;
}

.gmf-media-card__caption {
	font-size: 12px;
	margin: 10px 0 0;
	color: var(--gmf-text);
}

.gmf-gallery-placeholder__text {
	font-size: 14px;
	color: var(--gmf-muted);
	margin: 0 0 16px;
}

/* ---------- Catalog + product detail responsive ---------- */
@media (max-width: 768px) {
	.gmf-products-body__shell {
		display: block;
		position: relative;
	}

	.gmf-products-body__main {
		width: 100%;
		min-width: 0;
		padding-top: 16px;
		padding-bottom: 24px;
	}

	.gmf-sidebar .gmf-filter-acc {
		padding-top: 14px;
		padding-bottom: 8px;
	}

	.gmf-sidebar .gmf-filter-acc:first-of-type {
		padding-top: 4px;
	}

	/* Sidebar: full-width drawer above sticky site head (see main.css z-index 1000). */
	.gmf-sidebar {
		position: fixed;
		left: 0;
		width: 100%;
		max-width: 100%;
		flex: none;
		height: 100vh;
		height: 100dvh;
		top: 0;
		z-index: 10025;
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		box-shadow: none;
		transition: transform 0.35s ease, opacity 0.25s ease, visibility 0.25s ease;
		padding-left: max(16px, env(safe-area-inset-left));
		padding-right: max(16px, env(safe-area-inset-right));
		padding-bottom: max(28px, env(safe-area-inset-bottom));
		box-sizing: border-box;
	}

	body.admin-bar .gmf-sidebar {
		top: 46px;
		height: calc(100vh - 46px);
		height: calc(100dvh - 46px);
	}

	/* Leave room for fixed drawer header (transform on aside breaks sticky positioning). */
	.gmf-products-page:not(.is-sidebar-collapsed) .gmf-sidebar {
		padding-top: 60px;
		transform: translateX(0);
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.gmf-products-page.is-sidebar-collapsed .gmf-sidebar {
		flex: none !important;
		width: 100% !important;
		max-width: none !important;
		transform: translateX(-100%);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		margin: 0;
		border-right-width: 0;
	}

	.gmf-sidebar-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 10020;
		border: none;
		padding: 0;
		margin: 0;
		width: 100%;
		min-height: 100vh;
		min-height: 100dvh;
		background: rgba(17, 24, 39, 0.45);
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
		appearance: none;
	}

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

	.gmf-sidebar__mobile-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		margin: 0;
		box-sizing: border-box;
		width: 100%;
		padding: 12px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
		padding-top: max(12px, env(safe-area-inset-top));
		min-height: 52px;
		border-bottom: 1px solid #e5e7eb;
		background: #f9fafb;
		position: fixed;
		left: 0;
		right: 0;
		top: 0;
		z-index: 10030;
		box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
	}

	body.admin-bar .gmf-products-page:not(.is-sidebar-collapsed) .gmf-sidebar__mobile-head {
		top: 46px;
		padding-top: 12px;
	}

	.gmf-products-page.is-sidebar-collapsed .gmf-sidebar__mobile-head {
		display: none;
	}

	.gmf-sidebar__mobile-title {
		font-size: 15px;
		font-weight: 700;
		letter-spacing: 0.06em;
		color: #374151;
		line-height: 1.2;
		flex: 1;
		min-width: 0;
	}

	.gmf-sidebar__mobile-close {
		flex-shrink: 0;
		min-height: 44px;
		padding: 0 16px;
		margin: 0;
		border: none;
		background: #fff;
		border: 1px solid #d1d5db;
		border-radius: var(--gmf-radius);
		font-size: 14px;
		font-weight: 600;
		font-family: inherit;
		color: var(--gmf-text);
		cursor: pointer;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 4px;
		box-sizing: border-box;
	}

	.gmf-sidebar__mobile-close-x {
		font-size: 22px;
		font-weight: 400;
		line-height: 1;
		opacity: 0.85;
	}

	.gmf-sidebar__mobile-close:active {
		background: #f3f4f6;
	}

	.gmf-toolbar {
		padding: 8px 0;
	}

	.gmf-toolbar__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.gmf-toolbar__filters-cluster {
		width: 100%;
	}

	.gmf-toolbar__sort-group {
		flex: 1;
		min-width: 0;
		width: 100%;
	}

	.gmf-toolbar__select {
		min-width: 0;
		width: 100%;
		max-width: none;
	}

	.gmf-toolbar__search {
		margin-left: 0;
		max-width: none;
		width: 100%;
	}

	.gmf-products-util {
		justify-content: center;
	}

	.gmf-products-util__tools {
		justify-content: center;
		width: 100%;
		gap: 12px 16px;
	}

	.gmf-product-grid[data-view="grid"] {
		gap: 10px;
	}

	.gmf-product-grid[data-view="grid"] .gmf-card__media {
		min-height: 118px;
	}

	.gmf-product-grid[data-view="list"] .gmf-card {
		grid-template-columns: 36px 64px minmax(0, 1fr);
		column-gap: 12px;
		padding: 12px 14px;
	}

	.gmf-product-grid[data-view="list"] .gmf-card__media {
		width: 64px;
		height: 64px;
		max-width: 64px;
		max-height: 64px;
	}

	.gmf-pagination {
		margin-top: 20px;
		padding: 12px 4px;
	}

	.gmf-pagination__inner {
		gap: 8px 12px;
		font-size: 14px;
	}

	a.gmf-pagination__num,
	.gmf-pagination__num.is-current,
	a.gmf-pagination__nav {
		padding: 8px 6px;
		min-height: 44px;
		min-width: 44px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
	}

	.gmf-review-modal {
		width: min(600px, calc(100vw - 24px));
		max-height: min(85vh, calc(100dvh - 24px));
	}

	.gmf-catalog-root {
		min-height: 72px;
	}

	.gmf-card__title {
		word-break: break-word;
		hyphens: auto;
	}

	.gmf-product-grid[data-view="grid"],
	.gmf-products-page.is-sidebar-collapsed .gmf-product-grid[data-view="grid"] {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

