/* =========================================================
   Mãe Atípica UP — Lojinha conversão v3
   ========================================================= */

.maeup-shop-page{
	--gutter:clamp(14px,3vw,40px);
	--wide:1180px;
	--h2-section:clamp(1.7rem,1.35rem + 1vw,2.2rem);
	--kicker:12px;
	overflow:clip;
}

.maeup-shop-page .maeup-wrap,
.maeup-market-discovery,
.maeup-market-feed{
	width:min(var(--wide),calc(100% - (var(--gutter)*2)));
	max-width:none!important;
	margin-inline:auto!important;
}

.maeup-shop-page a:focus-visible,
.maeup-shop-page button:focus-visible,
.maeup-shop-page input:focus-visible,
.maeup-shop-page summary:focus-visible{
	outline:3px solid var(--mu-petrol)!important;
	outline-offset:3px!important;
}

/* Hero */
.maeup-shop-market-hero{
	padding:30px 0 24px;
	background:linear-gradient(180deg,var(--mu-cream),#fffdf9);
}

.maeup-shop-market-hero .maeup-wrap{
	display:grid;
	grid-template-columns:minmax(0,1fr) minmax(300px,.68fr);
	gap:clamp(24px,4vw,46px);
	align-items:center;
}

.maeup-shop-market-hero h1{
	font-family:"Playfair Display",serif!important;
	font-size:clamp(2.25rem,1.8rem + 2vw,3.3rem);
	line-height:1.01;
	letter-spacing:-.035em;
	font-weight:500;
	max-width:12ch;
	margin:0 0 12px;
}

.maeup-shop-market-hero .maeup-lead{
	font-size:16px;
	line-height:1.55;
	max-width:650px;
	color:var(--mu-brown-soft);
}

.maeup-shop-market-promo{
	min-height:138px;
	border-radius:20px;
	background:var(--mu-petrol);
	color:#fff;
	padding:22px;
	display:flex;
	flex-direction:column;
	justify-content:flex-end;
	position:relative;
	overflow:hidden;
}

.maeup-shop-market-promo:after{
	content:"∞";
	position:absolute;
	right:16px;
	top:-8px;
	font-family:Georgia,serif;
	font-size:96px;
	line-height:1;
	color:rgba(255,255,255,.10);
}

.maeup-shop-market-promo small{
	font-size:10px;
	letter-spacing:.11em;
	text-transform:uppercase;
	font-weight:800;
	color:#F6EEE8;
}

.maeup-shop-market-promo strong{
	font-family:"Playfair Display",serif;
	font-size:24px;
	line-height:1.08;
	font-weight:500;
	max-width:13ch;
	margin-top:8px;
}

/* Descoberta */
.maeup-marketplace{
	padding:22px 0 76px;
	background:var(--mu-paper);
}

.maeup-market-discovery{
	position:relative;
}

.maeup-market-discovery-head{
	display:grid;
	grid-template-columns:minmax(0,1fr) minmax(420px,.9fr);
	gap:24px;
	align-items:end;
	margin-bottom:16px;
}

.maeup-market-discovery-head h2,
.maeup-market-section-head h2{
	font-family:"Playfair Display",serif!important;
	font-size:var(--h2-section);
	font-weight:500;
	line-height:1.08;
	margin:0;
}

.maeup-market-search{
	display:flex;
	width:100%;
	height:48px;
	border:2px solid var(--mu-terracotta);
	border-radius:10px;
	overflow:hidden;
	background:#fff;
}

.maeup-market-search input{
	flex:1;
	min-width:0;
	border:0;
	padding:0 15px;
	font:inherit;
	color:var(--mu-brown);
	font-size:15px;
	background:#fff;
}

.maeup-market-search button{
	border:0;
	background:var(--mu-terracotta);
	color:#fff;
	padding:0 22px;
	font-weight:800;
	cursor:pointer;
}

/* Filtros */
.maeup-market-categories{position:relative;}

.maeup-market-category-rail{
	display:grid;
	grid-auto-flow:column;
	grid-auto-columns:minmax(0,1fr);
	grid-template-columns:none;
	gap:8px;
	margin-bottom:24px;
}

.maeup-market-category{
	min-height:88px;
	padding:10px 6px;
	background:#fff;
	border:1px solid var(--mu-line);
	border-radius:13px;
	text-decoration:none!important;
	color:var(--mu-brown)!important;
	display:flex;
	flex-direction:column;
	align-items:center;
	justify-content:center;
	text-align:center;
	gap:7px;
	transition:.18s;
}

.maeup-market-category:hover{
	border-color:var(--mu-terracotta);
	transform:translateY(-1px);
}

.maeup-market-category.is-active{
	background:#F4E1D8;
	border-color:#D4A28A;
	color:var(--mu-terracotta-dark)!important;
	box-shadow:inset 0 0 0 1px rgba(180,97,58,.08);
}

.maeup-market-category-icon{
	width:36px!important;
	height:36px!important;
	min-width:36px!important;
	display:grid!important;
	place-items:center!important;
	border-radius:50%!important;
	background:#F4EADD!important;
	line-height:1!important;
	padding:0!important;
	color:var(--mu-petrol);
}

.maeup-market-category.is-active .maeup-market-category-icon{
	background:#F7D9CA!important;
	color:var(--mu-terracotta)!important;
}

.maeup-market-category-icon svg{
	width:20px;
	height:20px;
	display:block;
	fill:none;
	stroke:currentColor;
	stroke-width:1.8;
	stroke-linecap:round;
	stroke-linejoin:round;
}

.maeup-market-category-icon-all{background:#FFF7E3!important;}

.maeup-market-category-icon-all img{
	width:27px!important;
	height:18px!important;
	object-fit:contain!important;
	display:block!important;
}

.maeup-market-category b{
	min-height:30px;
	display:-webkit-box;
	-webkit-box-orient:vertical;
	-webkit-line-clamp:2;
	overflow:hidden;
	font-size:12.5px;
	line-height:1.18;
	font-weight:700;
}

/* Feed */
.maeup-market-feed{
	padding-top:24px;
	border-top:1px solid var(--mu-line);
}

.maeup-market-section-head{
	display:flex;
	justify-content:space-between;
	gap:18px;
	align-items:flex-end;
	margin-bottom:8px;
}

.maeup-market-section-head .maeup-kicker{
	font-size:var(--kicker);
	margin-bottom:8px;
}

.maeup-market-clear{
	color:var(--mu-terracotta-dark)!important;
	text-decoration:none!important;
	font-size:13px;
	font-weight:800;
	white-space:nowrap;
}

.maeup-shop-disclosure{
	font-size:13.5px;
	line-height:1.55;
	color:#5F5048;
	max-width:860px;
	margin:0 0 20px;
}

/* Seções da visão Todos */
.maeup-market-sections{
	display:grid;
	gap:18px;
}

.maeup-market-category-section{
	border:1px solid var(--mu-line);
	border-radius:16px;
	background:#fff;
	overflow:hidden;
}

.maeup-market-category-section summary{
	list-style:none;
	display:grid;
	grid-template-columns:minmax(0,1fr) auto auto;
	gap:12px;
	align-items:center;
	padding:16px 18px;
	cursor:pointer;
	user-select:none;
}

.maeup-market-category-section summary::-webkit-details-marker{display:none;}

.maeup-market-category-title{
	font-family:"Playfair Display",serif;
	font-size:25px;
	line-height:1.08;
	font-weight:500;
	color:var(--mu-brown);
}

.maeup-market-category-count{
	font-size:12.5px;
	color:var(--mu-brown-soft);
	white-space:nowrap;
}

.maeup-market-category-chevron{
	width:28px;
	height:28px;
	display:grid;
	place-items:center;
	border-radius:999px;
	background:var(--mu-cream);
	color:var(--mu-terracotta);
	font-size:18px;
	font-weight:700;
	transition:transform .2s ease;
}

.maeup-market-category-section:not([open]) .maeup-market-category-chevron{
	transform:rotate(180deg);
}

.maeup-market-category-section>.maeup-market-grid{
	padding:0 16px 16px;
}

/* Grade e card */
.maeup-market-grid{
	display:grid;
	grid-template-columns:repeat(4,minmax(0,1fr));
	gap:14px;
}

.maeup-market-card{
	position:relative;
	display:flex;
	flex-direction:column;
	min-width:0;
	height:100%;
	background:#fff;
	border:1px solid var(--mu-line);
	border-radius:14px;
	overflow:hidden;
	transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}

.maeup-market-card-link-wrap{
	position:absolute;
	inset:0;
	z-index:3;
}

.maeup-market-card-link{
	display:block;
	width:100%;
	height:100%;
}

.maeup-market-media{
	position:relative;
	aspect-ratio:1/1;
	background:#fff;
	overflow:hidden;
}

.maeup-market-media img{
	width:100%;
	height:100%;
	object-fit:contain;
	display:block;
	padding:12px;
	box-sizing:border-box;
	transition:transform .18s ease;
}

.maeup-market-featured{
	position:absolute;
	top:10px;
	left:10px;
	z-index:4;
	display:inline-flex;
	align-items:center;
	min-height:25px;
	padding:0 8px;
	border-radius:999px;
	background:var(--mu-amber);
	color:var(--mu-brown);
	font-size:9.5px;
	font-weight:900;
	letter-spacing:.06em;
	text-transform:uppercase;
}

.maeup-market-copy{
	display:flex;
	flex-direction:column;
	flex:1;
	padding:13px;
}

.maeup-market-card-category{
	font-size:10px;
	letter-spacing:.07em;
	text-transform:uppercase;
	color:var(--mu-terracotta-dark);
	font-weight:800;
	margin-bottom:6px;
}

.maeup-market-card h3{
	font-family:"DM Sans",sans-serif!important;
	font-size:15px;
	line-height:1.34;
	font-weight:650;
	margin:0 0 8px;
	display:-webkit-box;
	-webkit-box-orient:vertical;
	-webkit-line-clamp:3;
	overflow:hidden;
}

.maeup-market-excerpt{
	font-size:13.5px;
	line-height:1.45;
	color:var(--mu-brown-soft);
	margin:0 0 12px!important;
	display:-webkit-box;
	-webkit-box-orient:vertical;
	-webkit-line-clamp:2;
	overflow:hidden;
}

.maeup-market-button-wrap{
	position:relative;
	z-index:4;
	margin-top:auto;
}

.maeup-market-button{
	display:flex;
	align-items:center;
	justify-content:center;
	width:100%;
	min-height:44px;
	border-radius:8px;
	background:var(--mu-terracotta);
	color:#fff!important;
	text-decoration:none!important;
	font-size:13.5px;
	font-weight:800;
	padding:9px 8px;
	box-sizing:border-box;
	text-align:center;
}

.maeup-market-cta-compact{display:none;}

.maeup-market-empty{
	padding:28px;
	border:1px solid var(--mu-line);
	border-radius:16px;
	background:#fff;
	max-width:760px;
}

.maeup-market-empty p{
	margin:0 0 16px;
	color:var(--mu-brown-soft);
}

@media(hover:hover) and (pointer:fine){
	.maeup-market-card:hover{
		transform:translateY(-2px);
		border-color:rgba(168,83,25,.35);
		box-shadow:0 10px 26px rgba(59,42,34,.08);
	}
	.maeup-market-card:hover .maeup-market-media img{transform:scale(1.02);}
}

/* wpautop safety */
.maeup-marketplace p:empty,
.maeup-marketplace br{display:none!important;}

/* Tablet / scroll horizontal */
@media(max-width:1023px){
	.maeup-shop-market-hero{
		padding:24px 0 18px;
	}

	.maeup-shop-market-hero .maeup-wrap{
		grid-template-columns:1fr;
	}

	.maeup-shop-market-promo{
		display:none;
	}

	.maeup-marketplace{
		padding-top:16px;
	}

	.maeup-market-discovery-head{
		grid-template-columns:1fr;
		gap:10px;
		margin-bottom:12px;
	}

	.maeup-market-search{height:46px;}

	.maeup-market-category-rail{
		display:flex;
		overflow-x:auto;
		overflow-y:hidden;
		scroll-snap-type:x mandatory;
		scrollbar-width:none;
		gap:8px;
		margin-left:calc(var(--gutter)*-1);
		margin-right:calc(var(--gutter)*-1);
		padding:0 var(--gutter) 6px;
	}

	.maeup-market-category-rail::-webkit-scrollbar{display:none;}

	.maeup-market-category{
		flex:0 0 80px;
		width:80px;
		min-height:84px;
		padding:8px 5px;
		scroll-snap-align:start;
	}

	.maeup-market-category-icon{
		width:34px!important;
		height:34px!important;
		min-width:34px!important;
	}

	.maeup-market-category b{
		font-size:11.5px;
		min-height:27px;
	}

	.maeup-market-categories:after{
		content:"";
		position:absolute;
		top:0;
		right:calc(var(--gutter)*-1);
		width:30px;
		height:calc(100% - 6px);
		background:linear-gradient(90deg,rgba(255,253,249,0),var(--mu-paper));
		pointer-events:none;
	}

	.maeup-market-grid{
		grid-template-columns:repeat(3,minmax(0,1fr));
	}
}

/* Mobile */
@media(max-width:640px){
	.maeup-shop-page{--gutter:14px;}

	.maeup-shop-market-hero{
		padding:18px 0 12px;
	}

	.maeup-shop-market-hero h1{
		font-size:clamp(2rem,9.4vw,2.35rem);
		max-width:13ch;
		margin-bottom:9px;
	}

	.maeup-shop-market-hero .maeup-lead{
		font-size:14.5px;
		line-height:1.48;
	}

	.maeup-marketplace{
		padding-top:12px;
		padding-bottom:54px;
	}

	.maeup-market-discovery-head{
		gap:8px;
		margin-bottom:8px;
	}

	.maeup-market-discovery-head h2{
		font-size:1.55rem;
	}

	.maeup-market-search{
		height:44px;
	}

	.maeup-market-search input{
		font-size:14px;
		padding-inline:12px;
	}

	.maeup-market-search button{
		padding-inline:14px;
		font-size:13px;
	}

	.maeup-market-category-rail{
		margin-bottom:12px;
	}

	.maeup-market-feed{
		padding-top:16px;
	}

	.maeup-market-section-head{
		align-items:flex-end;
		margin-bottom:6px;
	}

	.maeup-market-section-head h2{
		font-size:1.55rem;
	}

	.maeup-shop-disclosure{
		font-size:13px;
		line-height:1.48;
		margin-bottom:14px;
	}

	.maeup-market-sections{
		gap:12px;
	}

	.maeup-market-category-section summary{
		padding:13px 12px;
		gap:8px;
	}

	.maeup-market-category-title{
		font-size:21px;
	}

	.maeup-market-category-count{
		font-size:11.5px;
	}

	.maeup-market-category-chevron{
		width:26px;
		height:26px;
	}

	.maeup-market-category-section>.maeup-market-grid{
		padding:0 10px 10px;
	}

	.maeup-market-grid{
		grid-template-columns:repeat(2,minmax(0,1fr));
		gap:10px;
	}

	.maeup-market-copy{
		padding:10px;
	}

	.maeup-market-card h3{
		font-size:14px;
		line-height:1.3;
		margin-bottom:7px;
		-webkit-line-clamp:3;
	}

	.maeup-market-excerpt{
		font-size:13px;
		line-height:1.4;
		margin-bottom:10px!important;
	}

	.maeup-market-button{
		min-height:43px;
		font-size:14px;
		padding-inline:6px;
	}

	.maeup-market-media img{
		padding:10px;
	}
}

@media(max-width:420px){
	.maeup-market-cta-full{display:none;}
	.maeup-market-cta-compact{display:inline;}
	.maeup-market-button{font-size:14px;}
}
