/* Manto Online shop & category pages. Markup: shop.php. */

/* ================= hero ================= */
.mo-shophero {
	width: min(1222px, 100% - 32px);
	margin: 18px auto 6px;
}
.mo-shophero__box {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	overflow: hidden;
	padding: 30px 34px;
	border-radius: 30px;
	background:
		radial-gradient(420px 260px at 8% 120%, rgba(216, 197, 173, .35), transparent 70%),
		linear-gradient(120deg, #332821, #4A3B31);
	color: var(--mo-cream);
}
.mo-shophero__box::after {                         /* soft knit pattern */
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 12px);
	pointer-events: none;
}
.mo-shophero__text,
.mo-shophero__side { position: relative; z-index: 1; }
.mo-shophero__crumb {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 13px;
	color: rgba(248, 239, 227, .7);
}
.mo-shophero__crumb a { color: rgba(248, 239, 227, .7) !important; }
.mo-shophero__crumb a:hover { color: var(--mo-cream) !important; }
.mo-shophero__crumb b { color: var(--mo-soft); font-weight: 600; }
html .mo-shophero__title {
	margin: 8px 0 6px !important;
	font-size: 34px !important;
	font-weight: 900 !important;
	line-height: 1.35 !important;
	color: var(--mo-cream) !important;
}
.mo-shophero__desc {
	max-width: 560px;
	margin: 0 !important;
	font-size: 14.5px;
	line-height: 1.9;
	color: rgba(248, 239, 227, .78);
}
.mo-shophero__side {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}
.mo-shophero__count {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--mo-cream);
	color: var(--mo-taupe);
	font-size: 13px;
	font-weight: 600;
}
.mo-shophero__count b { font-size: 20px; font-weight: 900; color: var(--mo-brown); }
.mo-shophero__perk {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 14px;
	border: 1px solid rgba(248, 239, 227, .22);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: var(--mo-cream);
}
.mo-shophero svg,
.mo-shopbar svg,
.mo-cats svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: none;
}

/* category chips */
.mo-cats {
	display: flex;
	gap: 8px;
	margin-top: 12px;
	padding: 2px 2px 8px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}
.mo-cats::-webkit-scrollbar { display: none; }
.mo-cat {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 7px;
	height: 42px;
	padding: 0 16px;
	border: 1px solid rgba(140, 117, 98, .22);
	border-radius: 999px;
	background: var(--mo-white);
	color: var(--mo-brown) !important;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	scroll-snap-align: start;
	transition: background-color .2s ease, border-color .2s ease, transform .25s var(--mo-ease);
}
.mo-cat small {
	display: grid;
	place-items: center;
	min-width: 24px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--mo-cream);
	color: var(--mo-taupe);
	font-size: 11.5px;
	font-weight: 700;
}
.mo-cat:hover { border-color: var(--mo-taupe); transform: translateY(-1px); }
.mo-cat.is-on { background: var(--mo-brown); border-color: var(--mo-brown); color: var(--mo-cream) !important; }
.mo-cat.is-on small { background: rgba(248, 239, 227, .18); color: var(--mo-cream); }
.mo-cat:focus-visible { outline: 2px solid var(--mo-taupe); outline-offset: 2px; }

/* ================= layout: products take the full width ================= */
html .mo-shop-layout > .wd-content-area { --wd-col-lg: 12 !important; }
html .mo-shop-layout .wd-content-area .products { --wd-col-lg: 4 !important; --wd-gap-lg: 18px !important; }
@media (max-width: 1024px) {
	html .mo-shop-layout .wd-content-area .products { --wd-col-md: 3 !important; }
}
@media (max-width: 767px) {
	html .mo-shop-layout .wd-content-area .products { --wd-col-sm: 2 !important; --wd-gap-sm: 10px !important; }
}

/* off-canvas filter panel */
html .mo-shop-layout .wd-sidebar {
	background: var(--mo-white) !important;
}
html .mo-shop-layout .wd-sidebar .widget-title {
	font-size: 15px !important;
	font-weight: 800 !important;
	color: var(--mo-brown) !important;
}
html .mo-shop-layout .wd-sidebar .wd-widget-stock-status a {
	display: inline-flex;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--mo-cream);
	color: var(--mo-brown) !important;
}
html .mo-shop-layout .wd-sidebar .widget_price_filter .button {
	border-radius: 12px !important;
	background: var(--mo-brown) !important;
	color: var(--mo-cream) !important;
}

/* ================= toolbar ================= */
.mo-shopbar {
	position: sticky;
	top: var(--mo-shopbar-top, 76px);
	z-index: 20;
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 10px 16px;
	margin: 6px 0 18px !important;
	padding: 8px 10px 8px 12px !important;
	border: 1px solid rgba(140, 117, 98, .16);
	border-radius: 20px;
	background: rgba(255, 255, 255, .94);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 16px 30px -26px rgba(51, 40, 33, .5);
}
.mo-shopbar__sort {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	color: var(--mo-taupe);
}
.mo-shopbar__label { font-size: 13px; font-weight: 600; white-space: nowrap; }
.mo-shopbar__chips {
	display: flex;
	gap: 4px;
	padding: 4px;
	border-radius: 14px;
	background: var(--mo-cream);
	overflow-x: auto;
	scrollbar-width: none;
}
.mo-shopbar__chips::-webkit-scrollbar { display: none; }
.mo-sort {
	flex: none;
	padding: 7px 14px;
	border-radius: 11px;
	color: var(--mo-taupe) !important;
	font-size: 13.5px;
	font-weight: 700;
	white-space: nowrap;
	transition: background-color .2s ease, color .2s ease;
}
.mo-sort:hover { color: var(--mo-brown) !important; }
.mo-sort.is-on {
	background: var(--mo-white);
	color: var(--mo-brown) !important;
	box-shadow: 0 6px 14px -10px rgba(51, 40, 33, .55);
}
.mo-shopbar__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}
.mo-qf,
html .mo-filterbtn > a {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	height: 38px;
	padding: 0 13px !important;
	border: 1px solid rgba(140, 117, 98, .25);
	border-radius: 12px;
	color: var(--mo-brown) !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	white-space: nowrap;
	transition: background-color .2s ease, border-color .2s ease;
}
.mo-qf:hover,
html .mo-filterbtn > a:hover { background: var(--mo-cream); }
.mo-qf.is-on { background: var(--mo-brown); border-color: var(--mo-brown); color: var(--mo-cream) !important; }
html .mo-filterbtn > a::before { display: none !important; }       /* WoodMart burger icon */
html .mo-filterbtn { margin: 0 !important; }
.mo-shopbar__count {
	padding: 0 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--mo-taupe);
	white-space: nowrap;
}
.mo-shopbar a:focus-visible { outline: 2px solid var(--mo-taupe); outline-offset: 2px; }

/* ================= product cards: a clearer frame on the shop grid ================= */
html .mo-shop-layout .mo-card {
	border: 1.5px solid rgba(140, 117, 98, .3);
	box-shadow: 0 14px 30px -26px rgba(51, 40, 33, .45);
}
html .mo-shop-layout .mo-card:hover { border-color: rgba(140, 117, 98, .55); }
html .mo-shop-layout .products > .mo-fresh { animation: mo-shop-in .5s var(--mo-ease) both; }
@keyframes mo-shop-in {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}

/* ================= load more ================= */
.mo-more {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin: 26px auto 8px;
	max-width: 360px;
	text-align: center;
}
.mo-more__info { margin: 0 !important; font-size: 13.5px; color: var(--mo-taupe); }
.mo-more__info b { color: var(--mo-brown); }
.mo-more__bar {
	width: 220px;
	height: 6px;
	overflow: hidden;
	border-radius: 999px;
	background: rgba(140, 117, 98, .18);
}
.mo-more__bar i {
	display: block;
	height: 100%;
	margin-inline-start: 0;
	border-radius: inherit;
	background: var(--mo-brown);
	transition: width .5s var(--mo-ease);
}
.mo-more__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 240px;
	height: 50px;
	margin-top: 4px;
	padding: 0 26px;
	border: 0;
	border-radius: 16px;
	background: var(--mo-brown);
	color: var(--mo-cream);
	font: inherit;
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 16px 28px -18px rgba(51, 40, 33, .9);
	transition: background-color .25s ease, transform .25s var(--mo-ease);
}
.mo-more__btn:hover { background: var(--mo-hover); transform: translateY(-1px); }
.mo-more__btn:focus-visible { outline: 2px solid var(--mo-taupe); outline-offset: 3px; }
.mo-more__spin {
	display: none;
	width: 18px;
	height: 18px;
	border: 2.5px solid rgba(248, 239, 227, .35);
	border-top-color: var(--mo-cream);
	border-radius: 50%;
	animation: mo-spin .8s linear infinite;
}
.mo-more.is-loading .mo-more__spin { display: inline-block; }
.mo-more.is-done .mo-more__btn { display: none; }
@keyframes mo-spin { to { transform: rotate(360deg); } }

/* with JS the pagination numbers are replaced by "load more" */
html.mo-has-more .mo-shop-layout .woocommerce-pagination,
html.mo-has-more .mo-shop-layout .wd-load-more { display: none !important; }

/* ================= responsive ================= */
@media (max-width: 1024px) {
	.mo-shopbar { position: relative; top: auto; }
	/* phones scroll the list automatically: the button becomes a quiet loader */
	.mo-more__btn { min-width: 0; height: 44px; background: var(--mo-cream); color: var(--mo-brown); box-shadow: none; }
	.mo-more__spin { border-color: rgba(51, 40, 33, .2); border-top-color: var(--mo-brown); }
}
@media (max-width: 767px) {
	.mo-shophero { width: calc(100% - 20px); margin-top: 10px; }
	.mo-shophero__box { flex-direction: column; align-items: stretch; gap: 14px; padding: 20px 18px; border-radius: 24px; }
	html .mo-shophero__title { font-size: 24px !important; }
	.mo-shophero__desc { font-size: 13px; }
	.mo-shophero__side { justify-content: flex-start; }
	.mo-shophero__perk { padding: 7px 11px; font-size: 12px; }
	.mo-shophero__count { padding: 6px 12px; }
	.mo-shophero__count b { font-size: 17px; }
	.mo-cat { height: 38px; padding: 0 13px; font-size: 13px; }

	.mo-shopbar { gap: 8px; padding: 8px !important; border-radius: 18px; margin-bottom: 12px !important; }
	.mo-shopbar__sort { width: 100%; }
	.mo-shopbar__sort > svg,
	.mo-shopbar__label { display: none; }
	.mo-shopbar__chips { flex: 1 1 auto; }
	.mo-sort { flex: 1 0 auto; padding: 7px 10px; font-size: 12.5px; text-align: center; }
	.mo-shopbar__tools { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.mo-shopbar__tools::-webkit-scrollbar { display: none; }
	.mo-qf, html .mo-filterbtn > a { height: 34px; padding: 0 11px !important; font-size: 12.5px !important; }
	.mo-shopbar__count { margin-inline-start: auto; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	html .mo-shop-layout .products > .mo-fresh, .mo-more__spin { animation: none !important; }
}

/* Phones: compact title card so products show up right away */
@media (max-width: 767px) {
	.mo-shophero { margin-top: 8px; }
	.mo-shophero__box { flex-direction: row; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 18px; }
	.mo-shophero__crumb { font-size: 11px; }
	html .mo-shophero__title { margin: 2px 0 0 !important; font-size: 19px !important; }
	.mo-shophero__desc,
	.mo-shophero__perk { display: none; }
	.mo-shophero__side { flex: none; }
	.mo-shophero__count { padding: 5px 11px; font-size: 11px; }
	.mo-shophero__count b { font-size: 15px; }
	.mo-cats { margin-top: 8px; padding-bottom: 4px; }
	.mo-cat { height: 34px; padding: 0 12px; font-size: 12.5px; }
}