/* ==========================================================================
   23 Fashions – Modern shop & product grid
   Loaded after style.css. Covers: wider layout, shop banner, category sidebar
   & filters, product cards, pagination, home category grid + Load more.
   ========================================================================== */

:root {
	--mf-wrap: 1560px;
	--mfx-ink: #1f2618;
	--mfx-text: #4a4f45;
	--mfx-muted: #8a8f86;
	--mfx-olive: #364322;
	--mfx-olive-2: #4d5e33;
	--mfx-sage: #748f66;
	--mfx-pink: #c85c7b;
	--mfx-pink-soft: #fbeaf1;
	--mfx-pink-pale: #fff7fa;
	--mfx-line: #ece6e8;
	--mfx-card-shadow: 0 1px 2px rgba(31, 38, 24, .04), 0 6px 18px rgba(31, 38, 24, .05);
	--mfx-card-shadow-hover: 0 14px 34px rgba(31, 38, 24, .12);
	--mfx-radius: 16px;
	--mfx-font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mfx-serif: "Playfair Display", Georgia, serif;
}

/* ---------- Shop page shell ---------- */

.mf-shop-modern { padding-bottom: 70px; background: #fff; }

.mf-shop-banner {
	width: min(var(--mf-wrap), calc(100% - 48px));
	margin: 22px auto 30px;
	padding: 34px 44px;
	border-radius: 22px;
	background:
		radial-gradient(circle at 92% 20%, rgba(200, 92, 123, .14), transparent 38%),
		radial-gradient(circle at 75% 110%, rgba(116, 143, 102, .16), transparent 42%),
		linear-gradient(120deg, #fff7fa 0%, #fbeaf1 100%);
	border: 1px solid #f3dbe4;
}
.mf-shop-banner__inner { max-width: 760px; }
.mf-shop-banner .mf-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; color: var(--mfx-muted); font-family: var(--mfx-font); font-size: 13px; }
.mf-shop-banner .mf-breadcrumbs a { color: var(--mfx-olive); font-weight: 500; text-decoration: none; }
.mf-shop-banner .mf-breadcrumbs a:hover { color: var(--mfx-pink); }
.mf-shop-banner h1 { margin: 0 0 8px; color: var(--mfx-ink); font-family: var(--mfx-serif); font-size: clamp(28px, 3vw, 42px); font-weight: 600; line-height: 1.15; }
.mf-shop-banner p { margin: 0; color: var(--mfx-text); font-family: var(--mfx-font); font-size: 15px; line-height: 1.6; }

.mf-shop-modern .mf-shop-wrap {
	display: grid;
	grid-template-columns: 270px minmax(0, 1fr);
	gap: 36px;
	align-items: start;
	width: min(var(--mf-wrap), calc(100% - 48px));
	margin: 0 auto;
	scroll-margin-top: 100px;
}

/* Loading state */
.mf-shop-modern .mf-shop-main { position: relative; min-width: 0; transition: opacity .2s ease; }
.mf-shop-modern.is-loading .mf-shop-main { opacity: .45; pointer-events: none; }
.mf-shop-modern.is-loading .mf-shop-main::after {
	position: absolute; top: 140px; left: 50%; width: 38px; height: 38px; margin-left: -19px;
	border: 3px solid var(--mfx-pink-soft); border-top-color: var(--mfx-pink); border-radius: 50%;
	animation: mfx-spin .7s linear infinite; content: "";
}
@keyframes mfx-spin { to { transform: rotate(360deg); } }

/* ---------- Sidebar / filters ---------- */

.mf-shop-modern .mf-shop-sidebar { position: relative; min-width: 0; }
.mf-shop-modern .mf-shop-sidebar .mf-filter-form { position: static; }
.mf-filter-form--modern {
	padding: 0;
	overflow: visible;
	border: 1px solid var(--mfx-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--mfx-card-shadow);
	font-family: var(--mfx-font);
	scrollbar-width: thin;
	scrollbar-color: #e3d6db transparent;
}
.mf-filter-form--modern::-webkit-scrollbar { width: 5px; }
.mf-filter-form--modern::-webkit-scrollbar-thumb { border-radius: 5px; background: #e3d6db; }
.mf-filter-form--modern::-webkit-scrollbar-track { background: transparent; }
.mf-filter-form--modern .mf-filter-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 18px 20px; border-bottom: 1px solid var(--mfx-line); border-radius: 18px 18px 0 0; background: #fff;
}
.mf-filter-form--modern .mf-filter-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--mfx-ink); font-family: var(--mfx-font); font-size: 16px; font-weight: 700; }
.mf-filter-form--modern .mf-filter-head a { color: var(--mfx-pink); font-size: 13px; font-weight: 600; text-decoration: none; }
.mf-filter-form--modern .mf-filter-head a:hover { text-decoration: underline; }

.mf-filter-block { margin: 0; padding: 16px 20px; border-bottom: 1px solid var(--mfx-line); }
.mf-filter-block:last-of-type { border-bottom: 0; }
.mf-filter-title {
	display: flex; align-items: center; gap: 8px; margin: 0 0 12px;
	color: var(--mfx-ink); font-family: var(--mfx-font); font-size: 12px; font-weight: 700;
	letter-spacing: .09em; text-transform: uppercase; list-style: none; cursor: default; font-family: var(--mfx-font) !important;
}
details.mf-filter-block > summary { margin: 0; cursor: pointer; }
details.mf-filter-block[open] > summary { margin-bottom: 12px; }
details.mf-filter-block > summary::-webkit-details-marker { display: none; }
details.mf-filter-block > summary::after {
	width: 8px; height: 8px; margin-left: auto; border-right: 1.6px solid var(--mfx-muted); border-bottom: 1.6px solid var(--mfx-muted);
	transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; content: "";
}
details.mf-filter-block[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.mf-filter-title em { display: inline-grid; min-width: 18px; height: 18px; padding: 0 5px; place-items: center; border-radius: 999px; color: #fff; background: var(--mfx-pink); font-size: 10px; font-style: normal; letter-spacing: 0; }

/* Category nav – vertical bar */
.mf-cat-nav, .mf-cat-nav__sub { margin: 0; padding: 0; list-style: none; }
.mf-cat-nav { display: grid; gap: 3px; }
.mf-cat-nav__row { display: flex; align-items: center; gap: 4px; }
.mf-cat-nav__link {
	position: relative; display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 10px;
	min-height: 42px; padding: 0 12px 0 14px; border-radius: 11px;
	color: var(--mfx-text) !important; font-size: 14px; font-weight: 500; text-decoration: none !important;
	transition: background .18s ease, color .18s ease;
}
.mf-cat-nav__link::before {
	position: absolute; top: 10px; bottom: 10px; left: 0; width: 3px; border-radius: 3px;
	background: var(--mfx-pink); opacity: 0; transition: opacity .18s ease; content: "";
}
.mf-cat-nav__link:hover { color: var(--mfx-ink) !important; background: #faf6f7; }
.mf-cat-nav__link.is-active { color: var(--mfx-olive) !important; background: var(--mfx-pink-soft); font-weight: 700; }
.mf-cat-nav__link.is-active::before { opacity: 1; }
.mf-cat-nav__count { min-width: 28px; padding: 2px 8px; border-radius: 999px; color: var(--mfx-muted); background: #f5f1f2; font-size: 11px; font-weight: 600; text-align: center; }
.mf-cat-nav__link.is-active .mf-cat-nav__count { color: #fff; background: var(--mfx-pink); }
.mf-cat-nav__toggle {
	display: grid; flex: 0 0 32px; width: 32px; height: 32px; padding: 0; place-items: center;
	border: 0; border-radius: 9px; color: var(--mfx-muted); background: transparent; cursor: pointer;
	transition: transform .2s ease, background .18s ease;
}
.mf-cat-nav__toggle:hover { background: #f5f1f2; }
.mf-cat-nav__item.is-open > .mf-cat-nav__row .mf-cat-nav__toggle { transform: rotate(180deg); }
.mf-cat-nav__sub { display: none; margin: 3px 0 4px 14px; padding-left: 10px; border-left: 1px dashed #e6d6dc; }
.mf-cat-nav__item.is-open > .mf-cat-nav__sub { display: grid; gap: 2px; }
.mf-cat-nav__link--sub { min-height: 38px; font-size: 13.5px; }

/* Chips (size, price, offers) */
.mf-chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mf-chip-list--stack { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.mf-chip { position: relative; margin: 0; cursor: pointer; }
.mf-chip input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.mf-chip span {
	display: inline-flex; align-items: center; justify-content: center; min-width: 46px; min-height: 34px; padding: 0 12px;
	border: 1px solid #e3dcdf; border-radius: 9px; color: var(--mfx-text); background: #fff;
	font-size: 12.5px; font-weight: 600; line-height: 1; white-space: nowrap; transition: all .16s ease;
}
.mf-chip--wide span { width: 100%; }
.mf-chip:hover span { border-color: var(--mfx-olive); color: var(--mfx-olive); }
.mf-chip input:checked + span { border-color: var(--mfx-olive); color: #fff; background: var(--mfx-olive); box-shadow: 0 4px 10px rgba(54, 67, 34, .22); }
.mf-chip input:focus-visible + span { outline: 2px solid var(--mfx-pink); outline-offset: 2px; }

.mf-filter-form--modern .mf-price-inputs { display: flex; align-items: center; gap: 8px; color: var(--mfx-muted); font-size: 12px; }
.mf-filter-form--modern .mf-price-inputs label { position: relative; flex: 1; margin: 0; }
.mf-filter-form--modern .mf-price-inputs i { position: absolute; top: 50%; left: 10px; color: var(--mfx-muted); font-size: 12px; font-style: normal; transform: translateY(-50%); }
.mf-filter-form--modern .mf-price-inputs input {
	width: 100%; height: 38px; padding: 0 8px 0 22px; border: 1px solid #e3dcdf; border-radius: 9px;
	color: var(--mfx-ink); background: #fff; font-size: 13px; -moz-appearance: textfield;
}
.mf-filter-form--modern .mf-price-inputs input:focus { border-color: var(--mfx-olive); outline: 0; box-shadow: 0 0 0 3px rgba(54, 67, 34, .1); }
.mf-filter-form--modern .mf-price-inputs input::-webkit-outer-spin-button,
.mf-filter-form--modern .mf-price-inputs input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.mf-price-go { display: grid; flex: 0 0 38px; width: 38px; height: 38px; padding: 0; place-items: center; border: 0; border-radius: 9px; color: #fff; background: var(--mfx-olive); cursor: pointer; }
.mf-price-go:hover { background: var(--mfx-pink); }

.mf-filter-actions { display: none; padding: 14px 20px 20px; }
.mf-filter-actions .mf-filter-submit { width: 100%; min-height: 46px; border-radius: 12px; font-size: 14px; }

/* ---------- Toolbar, active chips, category pills ---------- */

.mf-shop-modern .mf-shop-toolbar {
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	margin: 0 0 18px; padding: 12px 16px; border: 1px solid var(--mfx-line); border-radius: 14px; background: #fff;
	font-family: var(--mfx-font);
}
.mf-shop-toolbar__left, .mf-shop-toolbar__right { display: flex; align-items: center; gap: 12px; }
.mf-shop-modern .mf-shop-toolbar .woocommerce-result-count { margin: 0 !important; color: var(--mfx-text); font-size: 14px; }
.mf-sort-label { color: var(--mfx-muted); font-size: 13px; }
.mf-shop-modern .mf-shop-toolbar .woocommerce-ordering { margin: 0 !important; }
.mf-shop-modern .mf-shop-toolbar select {
	min-width: 190px; min-height: 40px; padding: 0 38px 0 14px; border: 1px solid #e3dcdf; border-radius: 10px;
	color: var(--mfx-ink); background-color: #fff; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.mf-shop-modern .mf-shop-toolbar select:focus { border-color: var(--mfx-olive); outline: 0; }

.mf-active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 18px; font-family: var(--mfx-font); }
.mf-active-filter {
	display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px;
	border-radius: 999px; color: var(--mfx-olive) !important; background: var(--mfx-pink-soft);
	font-size: 12.5px; font-weight: 600; text-decoration: none !important;
}
.mf-active-filter span { font-size: 15px; line-height: 1; }
.mf-active-filter:hover { color: #fff !important; background: var(--mfx-pink); }
.mf-active-filter--clear { color: var(--mfx-pink) !important; background: transparent; text-decoration: underline !important; }

.mf-cat-pills { display: none; }

/* ---------- Product grid ---------- */

.mf-shop-modern ul.products,
.mf-home-category-products .mf-product-grid ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 22px !important;
	margin: 0 !important;
	padding: 0 !important;
}
.mf-shop-modern ul.products::before, .mf-shop-modern ul.products::after,
.mf-home-category-products ul.products::before, .mf-home-category-products ul.products::after { display: none !important; content: none !important; }

/* ---------- Product card ---------- */

ul.products li.product.mf-product-card,
.mf-product-card {
	position: relative;
	display: flex !important;
	flex-direction: column;
	width: auto !important;
	margin: 0 !important;
	padding: 10px !important;
	float: none !important;
	border: 1px solid var(--mfx-line) !important;
	border-radius: var(--mfx-radius) !important;
	background: #fff !important;
	box-shadow: var(--mfx-card-shadow) !important;
	text-align: center;
	transform: none;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
	font-family: var(--mfx-font);
}
.mf-product-card::before { display: none !important; }
ul.products li.product.mf-product-card:hover,
.mf-product-card:hover { border-color: #ead9df !important; box-shadow: var(--mfx-card-shadow-hover) !important; transform: translateY(-4px); }

.mf-product-card .mf-product-card__media { position: relative; overflow: hidden; border-radius: 12px !important; background: #f7f3f4; }
.mf-product-card .mf-product-card__image { display: block; aspect-ratio: 1 / 1 !important; overflow: hidden; }
.mf-product-card .mf-product-card__image img,
ul.products li.product.mf-product-card a img {
	display: block; width: 100% !important; height: 100% !important; margin: 0 !important;
	object-fit: cover; object-position: center; border-radius: 0 !important;
	transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.mf-product-card:hover .mf-product-card__image img { transform: scale(1.06); }

.mf-product-card .mf-product-card__badge {
	top: 12px; left: 12px; padding: 5px 10px; border-radius: 999px;
	font-size: 11px; font-weight: 700; letter-spacing: .02em; box-shadow: 0 4px 10px rgba(200, 92, 123, .25);
}
.mf-product-card .mf-product-card__badge--sale,
.mf-product-card .mf-product-card__badge--discount,
.mf-product-card .mf-product-card__badge--new { background: var(--mfx-pink); }
.mf-product-card .mf-product-card__actions { top: 10px; right: 10px; }
.mf-product-card .mf-wishlist-toggle {
	display: grid; width: 36px; height: 36px; place-items: center; border: 0 !important; border-radius: 50%;
	color: var(--mfx-ink); background: rgba(255, 255, 255, .95) !important; box-shadow: 0 3px 10px rgba(0, 0, 0, .1);
	transition: transform .2s ease, color .2s ease;
}
.mf-product-card .mf-wishlist-toggle:hover { color: var(--mfx-pink); transform: scale(1.08); }

.mf-product-card .mf-product-card__body { display: flex; flex: 1; flex-direction: column; align-items: center; padding: 14px 6px 4px !important; }
.mf-product-card .mf-product-card__category {
	display: block !important; margin: 0 0 6px; color: var(--mfx-pink); font-size: 11px; font-weight: 700;
	letter-spacing: .12em; text-transform: uppercase;
}
.mf-product-card .mf-product-card__title {
	display: -webkit-box; margin: 0 0 8px; overflow: hidden;
	color: var(--mfx-ink) !important; font-family: var(--mfx-font) !important; font-size: 16px !important; font-weight: 700 !important;
	line-height: 1.3 !important; text-decoration: none !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.mf-product-card .mf-product-card__title:hover { color: var(--mfx-pink) !important; }
.mf-product-card .mf-product-card__description { display: none !important; }
.mf-product-card .mf-product-card__rating { justify-content: center; margin: 0 0 6px; }
.mf-product-card .mf-product-card__price {
	display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px;
	margin: 0 0 12px !important; color: var(--mfx-olive); font-size: 19px !important; font-weight: 800; line-height: 1.2;
}
.mf-product-card .mf-product-card__price-value { display: inline-flex; align-items: baseline; gap: 7px; }
.mf-product-card .mf-product-card__price ins { color: var(--mfx-olive); text-decoration: none; }
.mf-product-card .mf-product-card__price del { order: 2; color: #a3a7a0 !important; font-size: 14px !important; font-weight: 500 !important; opacity: 1; }
.mf-product-card .mf-product-card__price .woocommerce-Price-amount { color: inherit; }
.mf-product-card .mf-product-card__discount {
	padding: 3px 8px; border-radius: 6px; color: #fff !important; background: var(--mfx-pink);
	font-size: 11px !important; font-weight: 700 !important; letter-spacing: .02em;
}

/* Sizes + buttons */
.mf-product-card .mf-product-card__cart { width: 100%; margin-top: auto; }
.mf-product-card .mf-variant-picker { display: grid !important; gap: 12px; }
.mf-product-card .mf-variant-group,
.woocommerce ul.products li.mf-product-card .mf-variant-group,
.woocommerce-page ul.products li.mf-product-card .mf-variant-group { display: grid !important; justify-items: center; gap: 7px; }
.mf-product-card .mf-variant-group__label { color: var(--mfx-muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.mf-product-card .mf-variant-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.mf-product-card .mf-variant-option--label {
	min-width: 40px; height: 30px; padding: 0 10px; border: 1px solid #e3dcdf !important; border-radius: 8px;
	color: var(--mfx-text); background: #fff; font-size: 12px; font-weight: 600; transition: all .15s ease;
}
.mf-product-card .mf-variant-option--label:hover:not(:disabled) { border-color: var(--mfx-olive) !important; color: var(--mfx-olive); }
.mf-product-card .mf-variant-option--label[aria-pressed="true"] { border-color: var(--mfx-olive) !important; color: #fff; background: var(--mfx-olive); box-shadow: none; }
.mf-product-card .mf-variant-option:disabled { opacity: .35; text-decoration: line-through; }

.mf-product-card .mf-product-card__cart-buttons { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; }
.mf-product-card .mf-product-card__cart .mf-ajax-add-to-cart,
.mf-product-card .mf-product-card__cart a.button {
	display: inline-flex !important; align-items: center; justify-content: center; gap: 6px;
	min-height: 42px !important; margin: 0 !important; padding: 0 10px !important;
	border: 1.5px solid var(--mfx-olive) !important; border-radius: 10px !important;
	color: var(--mfx-olive) !important; background: #fff !important; box-shadow: none !important;
	font-family: var(--mfx-font) !important; font-size: 13px !important; font-weight: 700 !important; letter-spacing: .01em; line-height: 1 !important;
	text-transform: none !important; white-space: nowrap; transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease !important;
}
.mf-product-card .mf-product-card__cart a.button::before { display: none !important; }
.mf-product-card .mf-product-card__cart .mf-ajax-add-to-cart:hover:not(:disabled),
.mf-product-card .mf-product-card__cart a.button:hover { color: #fff !important; background: var(--mfx-olive) !important; transform: translateY(-1px); }
.mf-product-card .mf-product-card__cart .mf-ajax-buy-now {
	border-color: var(--mfx-pink) !important; color: #fff !important;
	background: linear-gradient(135deg, #d4718d, var(--mfx-pink)) !important;
	box-shadow: 0 6px 14px rgba(200, 92, 123, .28) !important;
}
.mf-product-card .mf-product-card__cart .mf-ajax-buy-now:hover:not(:disabled) { color: #fff !important; background: #b44c6a !important; box-shadow: 0 8px 18px rgba(200, 92, 123, .36) !important; }
.mf-product-card .mf-product-card__cart .mf-ajax-add-to-cart:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.mf-product-card .mf-product-card__cart .mf-ajax-add-to-cart.is-added { border-color: var(--mfx-sage) !important; color: #fff !important; background: var(--mfx-sage) !important; }

/* ---------- Pagination ---------- */

.mf-shop-pagination { display: grid; justify-items: center; gap: 10px; margin-top: 44px; font-family: var(--mfx-font); }
.mf-shop-modern nav.woocommerce-pagination { margin: 0 !important; text-align: center; }
.mf-shop-modern nav.woocommerce-pagination ul { display: inline-flex !important; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 !important; padding: 0; border: 0 !important; }
.mf-shop-modern nav.woocommerce-pagination ul li { float: none !important; margin: 0 !important; border: 0 !important; overflow: visible !important; }
.mf-shop-modern nav.woocommerce-pagination ul li a,
.mf-shop-modern nav.woocommerce-pagination ul li span {
	display: grid !important; min-width: 44px; height: 44px; padding: 0 12px !important; place-items: center;
	border: 1px solid #e3dcdf !important; border-radius: 12px !important; color: var(--mfx-ink) !important; background: #fff !important;
	font-size: 15px !important; font-weight: 700 !important; line-height: 1 !important; text-decoration: none !important; transition: all .18s ease;
}
.mf-shop-modern nav.woocommerce-pagination ul li a:hover { border-color: var(--mfx-olive) !important; color: var(--mfx-olive) !important; transform: translateY(-2px); }
.mf-shop-modern nav.woocommerce-pagination ul li span.current { border-color: var(--mfx-olive) !important; color: #fff !important; background: var(--mfx-olive) !important; box-shadow: 0 6px 14px rgba(54, 67, 34, .25); }
.mf-shop-modern nav.woocommerce-pagination ul li span.dots { border: 0 !important; background: transparent !important; }
.mf-shop-pagination__info { margin: 0; color: var(--mfx-muted); font-size: 13px; }

/* Empty state */
.mf-shop-modern .mf-shop-empty { display: grid; justify-items: center; gap: 10px; padding: 70px 20px; border: 1px dashed #e6d6dc; border-radius: 18px; color: var(--mfx-muted); text-align: center; font-family: var(--mfx-font); }
.mf-shop-modern .mf-shop-empty h2 { margin: 6px 0 0; color: var(--mfx-ink); font-family: var(--mfx-font); font-size: 20px; font-weight: 700; }
.mf-shop-modern .mf-shop-empty p { margin: 0 0 8px; }

/* ---------- Home: category product sections ---------- */

.mf-home-category-products { padding: 34px 30px 32px !important; }
.mf-home-category-products .mf-product-grid { position: relative; z-index: 1; }

.mf-home-more { position: relative; z-index: 1; display: grid; justify-items: center; gap: 12px; margin-top: 34px; font-family: var(--mfx-font); }
.mf-home-more__status { margin: 0; color: var(--mfx-text); font-size: 13.5px; font-weight: 500; }
.mf-home-more__status span { color: var(--mfx-olive); font-weight: 800; }
.mf-home-more__bar { width: min(240px, 70%); height: 4px; overflow: hidden; border-radius: 4px; background: rgba(54, 67, 34, .12); }
.mf-home-more__bar span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--mfx-sage), var(--mfx-olive)); transition: width .4s ease; }
.mf-home-more__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 6px; }
.mf-home-more .mf-load-more-wrap { margin: 0; }
.mf-home-more .mf-load-more,
.mf-view-all-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 190px; min-height: 50px; padding: 0 26px;
	border-radius: 999px; font-family: var(--mfx-font); font-size: 14.5px; font-weight: 700; letter-spacing: .01em;
	text-decoration: none !important; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.mf-home-more .mf-load-more { border: 1.5px solid var(--mfx-olive); color: var(--mfx-olive) !important; background: #fff; box-shadow: 0 6px 16px rgba(54, 67, 34, .08); }
.mf-home-more .mf-load-more::after {
	width: 7px; height: 7px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg); content: "";
}
.mf-home-more .mf-load-more:hover:not(:disabled) { color: #fff !important; background: var(--mfx-olive); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(54, 67, 34, .22); }
.mf-home-more .mf-load-more:disabled { opacity: .7; cursor: wait; }
.mf-home-more .mf-load-more:disabled::after { width: 14px; height: 14px; margin: 0; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: mfx-spin .7s linear infinite; }
.mf-view-all-btn { border: 1.5px solid var(--mfx-olive); color: #fff !important; background: var(--mfx-olive); box-shadow: 0 8px 20px rgba(54, 67, 34, .22); }
.mf-view-all-btn:hover { color: #fff !important; background: var(--mfx-pink); border-color: var(--mfx-pink); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(200, 92, 123, .3); }
.mf-home-more.is-complete .mf-home-more__bar span { background: var(--mfx-pink); }

/* ---------- Responsive ---------- */

@media (max-width: 1280px) {
	.mf-shop-modern ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
	.mf-shop-modern .mf-shop-wrap { grid-template-columns: 250px minmax(0, 1fr); gap: 26px; }
}

@media (max-width: 1100px) {
	.mf-home-category-products .mf-product-grid ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* Tablet & mobile: filters become a slide-in drawer */
@media (max-width: 1024px) {
	.mf-shop-modern .mf-shop-wrap { display: block; width: calc(100% - 32px); }
	.mf-shop-modern .mf-shop-sidebar {
		position: fixed; top: 0; bottom: 0; left: 0; z-index: 9999; width: min(360px, 88vw); padding: 0;
		overflow: hidden; background: #fff; transform: translateX(-105%); transition: transform .28s ease;
	}
	body.mf-filter-open .mf-shop-modern .mf-shop-sidebar { transform: translateX(0); box-shadow: 10px 0 40px rgba(0, 0, 0, .18); }
	.mf-shop-modern .mf-filter-form--modern { height: 100%; max-height: none; overflow-y: auto; border: 0; border-radius: 0; box-shadow: none; }
	.mf-shop-modern .mf-filter-form--modern .mf-filter-head { padding-right: 60px; }
	.mf-shop-modern .mf-filter-backdrop {
		position: fixed; inset: 0; z-index: 9998; display: block; background: rgba(20, 24, 16, .45);
		opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
	}
	body.mf-filter-open .mf-shop-modern .mf-filter-backdrop { opacity: 1; visibility: visible; }
	.mf-shop-modern .mf-filter-close {
		position: absolute; top: 12px; right: 12px; left: auto; z-index: 5; display: grid; width: 36px; height: 36px; place-items: center;
		border: 0; border-radius: 50%; color: var(--mfx-ink); background: #f5f1f2; font-size: 22px; line-height: 1; cursor: pointer;
	}
	.mf-filter-actions { position: sticky; bottom: 0; display: block; border-top: 1px solid var(--mfx-line); background: #fff; }
	.mf-shop-modern .mf-filter-open-button {
		display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
		border: 1.5px solid var(--mfx-olive); border-radius: 10px; color: var(--mfx-olive); background: #fff;
		font-size: 13.5px; font-weight: 700; cursor: pointer;
	}
	body.mf-filter-open { overflow: hidden; }
	body.admin-bar .mf-shop-modern .mf-shop-sidebar { top: 32px; }

	.mf-cat-pills {
		display: flex; gap: 8px; width: calc(100% - 32px); margin: -10px auto 16px; padding-bottom: 4px;
		overflow-x: auto; scrollbar-width: none; font-family: var(--mfx-font);
	}
	.mf-cat-pills::-webkit-scrollbar { display: none; }
	.mf-cat-pill {
		flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px;
		border: 1px solid #e3dcdf; border-radius: 999px; color: var(--mfx-text) !important; background: #fff;
		font-size: 13.5px; font-weight: 600; text-decoration: none !important; white-space: nowrap;
	}
	.mf-cat-pill.is-active { border-color: var(--mfx-olive); color: #fff !important; background: var(--mfx-olive); }
	.mf-shop-banner { width: calc(100% - 32px); padding: 26px 24px; }
}

@media (max-width: 782px) {
	body.admin-bar .mf-shop-modern .mf-shop-sidebar { top: 46px; }
}

@media (max-width: 780px) {
	.mf-shop-modern ul.products,
	.mf-home-category-products .mf-product-grid ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
	.mf-shop-banner { margin: 14px auto 22px; padding: 22px 18px; border-radius: 18px; }
	.mf-shop-banner p { font-size: 13.5px; }
	.mf-shop-modern .mf-shop-toolbar { flex-wrap: wrap; padding: 10px 12px; }
	.mf-shop-toolbar__left { flex: 1 1 100%; justify-content: space-between; }
	.mf-shop-toolbar__right { flex: 1 1 100%; }
	.mf-shop-modern .mf-shop-toolbar .woocommerce-ordering { flex: 1; width: 100%; }
	.mf-shop-modern .mf-shop-toolbar .woocommerce-ordering select { width: 100% !important; }
	.mf-shop-modern .mf-shop-toolbar select { width: 100%; min-width: 0; }
	.mf-sort-label { display: none; }
	.mf-shop-modern .mf-shop-toolbar .woocommerce-result-count { font-size: 12.5px; }

	ul.products li.product.mf-product-card, .mf-product-card { padding: 7px !important; border-radius: 13px !important; }
	.mf-product-card .mf-product-card__media { border-radius: 9px !important; }
	.mf-product-card .mf-product-card__body { padding: 10px 2px 2px !important; }
	.mf-product-card .mf-product-card__category { font-size: 9.5px; letter-spacing: .08em; }
	.mf-product-card .mf-product-card__title { font-size: 13.5px !important; }
	.mf-product-card .mf-product-card__price { gap: 5px; margin-bottom: 10px !important; font-size: 15.5px !important; }
	.mf-product-card .mf-product-card__price del { font-size: 12px !important; }
	.mf-product-card .mf-product-card__discount { padding: 2px 6px; font-size: 9.5px !important; }
	.mf-product-card .mf-variant-group__label { font-size: 9.5px; }
	.mf-product-card .mf-variant-option--label { min-width: 34px; height: 27px; padding: 0 7px; font-size: 11px; }
	.mf-product-card .mf-product-card__cart-buttons { grid-template-columns: 1fr; gap: 6px; }
	.mf-product-card .mf-product-card__cart .mf-ajax-add-to-cart { min-height: 36px !important; font-size: 12px !important; }
	.mf-product-card .mf-wishlist-toggle { width: 30px; height: 30px; }
	.mf-product-card .mf-product-card__badge { top: 7px; left: 7px; padding: 3px 7px; font-size: 9px; }

	.mf-home-category-products { padding: 22px 12px 22px !important; }
	.mf-home-more .mf-load-more, .mf-view-all-btn { min-width: 0; flex: 1 1 100%; min-height: 46px; font-size: 13.5px; }
	.mf-home-more__actions { width: 100%; }
	.mf-home-more .mf-load-more-wrap { flex: 1 1 100%; display: flex; }
	.mf-shop-modern nav.woocommerce-pagination ul li a,
	.mf-shop-modern nav.woocommerce-pagination ul li span { min-width: 40px; height: 40px; font-size: 14px !important; }
}

/* 3D touch for size chips on product cards */
.mf-product-card .mf-variant-option--label { box-shadow: 0 3px 0 #e3dcdf, 0 5px 8px rgba(31, 38, 24, .06) !important; transform: translateY(-1px); }
.mf-product-card .mf-variant-option--label:hover:not(:disabled) { transform: translateY(-2px); }
.mf-product-card .mf-variant-option--label[aria-pressed="true"] { background: linear-gradient(160deg, #5a6e3c, #364322) !important; box-shadow: 0 2px 0 #1f2a12, 0 6px 12px rgba(54, 67, 34, .25) !important; transform: translateY(1px); }
