/**
 * WC Masonry Catalog theme styles.
 * Version 0.3.3
 */

:root {
	--ecmc-bg: #f4f4f1;
	--ecmc-card: #ffffff;
	--ecmc-text: #101010;
	--ecmc-muted: #777777;
	--ecmc-line: rgba(0, 0, 0, 0.08);
	--ecmc-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
	--ecmc-radius: 18px;
}

* {
	box-sizing: border-box;
}

html {
	margin: 0;
	padding: 0;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	background: var(--ecmc-bg);
	color: var(--ecmc-text);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	line-height: 1.5;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.ecmc-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	border-bottom: 1px solid var(--ecmc-line);
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.04);
}

.admin-bar .ecmc-header {
	top: 32px;
}

.ecmc-brand-row {
	min-height: 74px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	padding: 18px 24px;
}

.ecmc-brand {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-width: 0;
	gap: 12px;
}

.ecmc-logo {
	max-height: 48px;
	width: auto;
	flex: 0 0 auto;
}

.ecmc-brand-text {
	display: inline-block;
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.02em;
	color: #111;
}

.ecmc-contact-links {
	position: absolute;
	right: 24px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	gap: 10px;
}

.ecmc-contact-link {
	min-width: 54px;
	min-height: 54px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 9px 12px;
	border-radius: 999px;
	color: #111;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	transition: background .18s ease, transform .18s ease;
}

.ecmc-contact-link:hover {
	background: #f2f2f2;
	transform: translateY(-1px);
}

.ecmc-contact-icon {
	width: 21px;
	height: 21px;
	display: block;
	fill: currentColor;
	flex: 0 0 auto;
}

.ecmc-contact-whatsapp {
	color: #128c48;
}

.ecmc-contact-instagram {
	color: #111;
}

.ecmc-contact-email {
	color: #111;
}

.ecmc-contact-label {
	display: inline-block;
	white-space: nowrap;
}

.ecmc-nav {
	width: 100%;
	border-top: 1px solid var(--ecmc-line);
	border-bottom: 1px solid var(--ecmc-line);
	background: #fff;
}

.ecmc-menu,
.ecmc-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ecmc-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0 18px;
}

.ecmc-menu > li {
	position: relative;
}

.ecmc-menu a {
	display: block;
	padding: 15px 15px;
	font-size: 14px;
	line-height: 1.2;
	font-weight: 800;
	text-transform: uppercase;
	white-space: nowrap;
	color: #111;
}

.ecmc-menu a:hover {
	background: rgba(0, 0, 0, 0.045);
}

.ecmc-menu .sub-menu {
	display: none;
	position: absolute;
	left: 0;
	top: 100%;
	min-width: 210px;
	background: #fff;
	border: 1px solid var(--ecmc-line);
	border-radius: 0 0 14px 14px;
	box-shadow: var(--ecmc-shadow);
	overflow: hidden;
	z-index: 100;
}

.ecmc-menu .has-children:hover > .sub-menu,
.ecmc-menu .has-children:focus-within > .sub-menu {
	display: block;
}

.ecmc-menu .sub-menu a {
	text-transform: none;
	font-size: 14px;
	font-weight: 700;
	padding: 12px 14px;
}

/* WooCommerce product category navigation
   Top-level category links go to category archive pages.
   Product grids follow selected category naturally.
*/

.ecmc-catmega {
	display: none !important;
}

.ecmc-catnav {
	position: relative;
	z-index: 45;
	width: 100%;
	background: #fff;
	border-bottom: 1px solid var(--ecmc-line);
}

.ecmc-catnav-inner {
	max-width: 1720px;
	margin: 0 auto;
	padding: 0 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0;
}

.ecmc-catnav-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 15px;
	color: #111;
	font-size: 14px;
	line-height: 1.2;
	font-weight: 800;
	text-transform: uppercase;
	white-space: nowrap;
	border-radius: 0;
}

.ecmc-catnav-link:hover,
.ecmc-catnav-link.is-active {
	background: #f3f3f0;
	color: #111;
}

/* Current category child categories */

.ecmc-subcats {
	background: #fff;
	border-bottom: 1px solid var(--ecmc-line);
	padding: 18px 24px 22px;
	position: static !important;
}

.ecmc-subcats-head {
	display: none !important;
}

.ecmc-subcats-grid {
	max-width: 1620px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
	gap: 24px 18px;
	align-items: start;
}

.ecmc-subcat-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	color: #111;
	gap: 8px;
	min-width: 0;
}

.ecmc-subcat-card:hover .ecmc-subcat-thumb {
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
}

.ecmc-subcat-thumb {
	width: 70px;
	height: 70px;
	border-radius: 18px;
	background: #f7f7f4;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease;
}

.ecmc-subcat-img {
	width: 60px;
	height: 60px;
	object-fit: contain;
	object-position: center center;
}

.ecmc-subcat-placeholder {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #111;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	font-weight: 800;
}

.ecmc-subcat-name {
	display: block;
	color: #111;
	font-size: 13px;
	line-height: 1.35;
	font-weight: 500;
	word-break: normal;
	overflow-wrap: anywhere;
}

.ecmc-subcat-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: -2px;
	padding: 3px 8px;
	border-radius: 999px;
	background: #f2f2ef;
	color: #555;
	font-size: 10px;
	line-height: 1;
	font-weight: 800;
	text-transform: uppercase;
}

/* Keep contact links visible in header */

.ecmc-brand-row .ecmc-contact-links {
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
	z-index: 80 !important;
}

/* Search */

.ecmc-search-row {
	padding: 20px 18px;
	background: var(--ecmc-bg);
}

.ecmc-search {
	max-width: 780px;
	height: 50px;
	margin: 0 auto;
	display: flex;
	align-items: stretch;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 999px;
	overflow: hidden;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.ecmc-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 50px;
	border: none;
	outline: none;
	background: transparent;
	padding: 0 20px;
	color: #111;
	font-size: 15px;
}

.ecmc-search button {
	flex: 0 0 auto;
	width: 118px;
	height: 50px;
	border: none;
	background: #111;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
}

.ecmc-search button:hover {
	background: #222;
}

.ecmc-main {
	width: 100%;
	padding: 30px 24px 64px;
}

.ecmc-hero {
	max-width: 1300px;
	margin: 0 auto 22px;
	text-align: center;
	color: var(--ecmc-muted);
}

.ecmc-hero h1 {
	margin: 0 0 8px;
	color: #111;
	font-size: clamp(22px, 2vw, 30px);
	line-height: 1.2;
}

.ecmc-hero p {
	margin: 0;
}

.ecmc-masonry {
	max-width: 1720px;
	margin: 0 auto;
	column-width: 260px;
	column-gap: 24px;
}

.ecmc-card {
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	display: block;
	margin: 0 0 24px;
	background: var(--ecmc-card);
	border-radius: var(--ecmc-radius);
	overflow: hidden;
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.07);
	border: 1px solid rgba(0, 0, 0, 0.04);
	position: relative;
	transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.ecmc-card:hover {
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.11);
	border-color: rgba(0, 0, 0, 0.09);
}

.ecmc-card-link {
	display: block;
	position: relative;
	color: #111;
}

.ecmc-card-media {
	position: relative;
	display: block;
	width: 100%;
	background: #eeeeea;
	overflow: hidden;
}

.ecmc-card-img {
	width: 100%;
	height: auto;
	background: #eeeeea;
	transition: opacity 0.22s ease;
}

.ecmc-card-img-main {
	position: relative;
	z-index: 1;
}

.ecmc-card-img-hover {
	position: absolute;
	inset: 0;
	z-index: 2;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center center;
	background: #eeeeea;
	opacity: 0;
	pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
	.ecmc-card.has-hover-image:hover .ecmc-card-img-main {
		opacity: 0;
	}

	.ecmc-card.has-hover-image:hover .ecmc-card-img-hover {
		opacity: 1;
	}
}

.ecmc-card-title,
.ecmc-card-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 5;
	padding: 30px 10px 12px 15px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
	color: #fff;
	opacity: 1;
	pointer-events: none;
}

.ecmc-card-title h2,
.ecmc-card-overlay h2 {
	margin: 0;
	color: #fff;
	font-size: 13px;
	line-height: 1.35;
	font-weight: 600;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
	text-align: left;
}

.ecmc-pagination {
	max-width: 1300px;
	margin: 34px auto 0;
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.ecmc-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 13px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 5px 16px rgba(0, 0, 0, 0.07);
	color: #111;
	font-weight: 800;
}

.ecmc-pagination .page-numbers.current {
	background: #111;
	color: #fff;
}

.ecmc-empty {
	max-width: 760px;
	margin: 50px auto;
	padding: 38px 28px;
	background: #fff;
	border-radius: 22px;
	text-align: center;
	box-shadow: var(--ecmc-shadow);
}

.ecmc-empty h1,
.ecmc-empty h2 {
	margin: 0 0 10px;
	font-size: 26px;
	line-height: 1.2;
}

.ecmc-empty p {
	margin: 0;
	color: var(--ecmc-muted);
}

.ecmc-footer {
	border-top: 1px solid var(--ecmc-line);
	background: #fff;
	color: var(--ecmc-muted);
	padding: 22px 18px;
	text-align: center;
	font-size: 13px;
}

.ecmc-single {
	max-width: 1380px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 28px;
	align-items: start;
}

.ecmc-single-gallery {
	column-width: 340px;
	column-gap: 22px;
}

.ecmc-single-image {
	break-inside: avoid;
	display: block;
	background: #fff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.07);
	margin: 0 0 22px;
}

.ecmc-single-info {
	position: sticky;
	top: 178px;
	background: #fff;
	border-radius: 22px;
	padding: 24px;
	box-shadow: var(--ecmc-shadow);
}

.ecmc-single-info h1 {
	margin: 0 0 14px;
	font-size: 26px;
	line-height: 1.25;
}

.ecmc-single-excerpt {
	color: #444;
	margin-bottom: 18px;
}

.ecmc-single-info .ecmc-contact-links {
	position: static;
	transform: none;
	justify-content: flex-start;
	flex-wrap: wrap;
	margin: 14px 0 18px;
}

.ecmc-back {
	display: inline-flex;
	align-items: center;
	padding: 10px 14px;
	border-radius: 999px;
	background: #111;
	color: #fff;
	font-weight: 800;
}

@media (max-width: 900px) {
	.ecmc-header {
		position: relative;
		top: auto;
	}

	.ecmc-brand-row {
		min-height: 58px;
		padding: 14px 12px;
		flex-direction: column;
	}

	.ecmc-brand {
		gap: 8px;
	}

	.ecmc-logo {
		max-height: 38px;
	}

	.ecmc-brand-text {
		font-size: 23px;
	}

	.ecmc-contact-links {
		position: static;
		transform: none;
		justify-content: center;
		margin-top: 8px;
		width: 100%;
		flex-wrap: wrap;
		gap: 6px;
	}

	.ecmc-contact-link {
		min-width: 38px;
		min-height: 38px;
		font-size: 12px;
		padding: 7px 10px;
	}

	.ecmc-contact-icon {
		width: 19px;
		height: 19px;
	}

	.ecmc-menu {
		justify-content: center;
		align-items: center;
		flex-wrap: wrap;
		padding: 0 6px;
		max-height: 132px;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.ecmc-menu > li {
		position: static;
		flex: 0 0 auto;
	}

	.ecmc-menu a {
		padding: 10px 8px;
		font-size: 11.5px;
		line-height: 1.15;
	}

	.ecmc-menu .sub-menu {
		display: none !important;
	}

	.ecmc-catnav-inner {
		justify-content: flex-start;
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding: 0 8px;
	}

	.ecmc-catnav-link {
		min-height: 42px;
		padding: 0 10px;
		font-size: 12px;
		flex: 0 0 auto;
	}

	.ecmc-subcats {
		padding: 14px 10px 16px;
		position: static !important;
	}

	.ecmc-subcats-head {
		display: none !important;
	}

	.ecmc-subcats-grid {
		grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
		gap: 16px 10px;
	}

	.ecmc-subcat-thumb {
		width: 58px;
		height: 58px;
		border-radius: 16px;
	}

	.ecmc-subcat-img {
		width: 50px;
		height: 50px;
	}

	.ecmc-subcat-placeholder {
		width: 50px;
		height: 50px;
		font-size: 18px;
	}

	.ecmc-subcat-name {
		font-size: 11.5px;
		line-height: 1.3;
	}

	.ecmc-search-row {
		padding: 14px 12px;
	}

	.ecmc-search {
		height: 44px;
	}

	.ecmc-search input[type="search"] {
		height: 44px;
		font-size: 14px;
		padding-left: 16px;
	}

	.ecmc-search button {
		width: 88px;
		height: 44px;
		font-size: 12px;
	}

	.ecmc-main {
		padding: 0 10px 38px;
	}

	.ecmc-hero {
		margin-bottom: 14px;
	}

	.ecmc-masonry {
		column-width: 156px;
		column-gap: 10px;
	}

	.ecmc-card {
		margin-bottom: 10px;
		border-radius: 14px;
		box-shadow: 0 6px 18px rgba(0, 0, 0, 0.065);
	}

	.ecmc-card-title,
	.ecmc-card-overlay {
		position: static;
		opacity: 1;
		background: #fff;
		color: #111;
		padding: 10px 10px 12px;
		pointer-events: auto;
	}

	.ecmc-card-title h2,
	.ecmc-card-overlay h2 {
		color: #111;
		text-shadow: none;
		font-size: 12px;
		line-height: 1.35;
		text-align: center;
	}

	.ecmc-single {
		display: block;
	}

	.ecmc-single-gallery {
		column-width: 155px;
		column-gap: 10px;
	}

	.ecmc-single-image {
		margin-bottom: 10px;
		border-radius: 14px;
	}

	.ecmc-single-info {
		position: static;
		margin-top: 18px;
		border-radius: 18px;
		padding: 18px;
	}

	.ecmc-single-info h1 {
		font-size: 21px;
	}
}

@media (max-width: 390px) {
	.ecmc-masonry {
		column-width: 148px;
		column-gap: 9px;
	}

	.ecmc-menu {
		max-height: 118px;
	}

	.ecmc-menu a {
		padding: 9px 7px;
		font-size: 11px;
	}
}

/* =========================================================
   Sub category has-children icon
   把 MORE 改回右上角 + 图标
========================================================= */

.ecmc-subcat-card.has-children .ecmc-subcat-more {
	position: absolute !important;
	right: 6px !important;
	top: 0 !important;
	width: 20px !important;
	height: 20px !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 999px !important;
	background: #111 !important;
	color: #fff !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 0 !important;
	line-height: 1 !important;
	font-weight: 800 !important;
	text-transform: none !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
	pointer-events: none;
}

.ecmc-subcat-card.has-children .ecmc-subcat-more::before {
	content: "+";
	display: block;
	font-size: 14px;
	line-height: 1;
	font-weight: 800;
	color: #fff;
	transform: translateY(-1px);
}

@media (max-width: 900px) {
	.ecmc-subcat-card.has-children .ecmc-subcat-more {
		right: 2px !important;
		top: -2px !important;
		width: 18px !important;
		height: 18px !important;
	}

	.ecmc-subcat-card.has-children .ecmc-subcat-more::before {
		font-size: 13px;
	}
}

/* =========================================================
   Normal WordPress page template
   For pages like /size-chart/
========================================================= */

.ecmc-page-wrap {
	width: 100%;
	padding: 36px 18px 70px;
	background: var(--ecmc-bg);
}

.ecmc-page {
	max-width: 1120px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid var(--ecmc-line);
	border-radius: 22px;
	box-shadow: 0 10px 32px rgba(0, 0, 0, 0.06);
	padding: 34px 36px 42px;
}

.ecmc-page-header {
	margin-bottom: 24px;
	text-align: center;
}

.ecmc-page-title {
	margin: 0;
	color: #111;
	font-size: clamp(26px, 3vw, 38px);
	line-height: 1.2;
	font-weight: 800;
}

.ecmc-page-content {
	color: #222;
	font-size: 15px;
	line-height: 1.75;
}

.ecmc-page-content p {
	margin: 0 0 16px;
}

.ecmc-page-content h2,
.ecmc-page-content h3,
.ecmc-page-content h4 {
	color: #111;
	line-height: 1.25;
	margin: 28px 0 14px;
}

.ecmc-page-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 18px 0;
	background: #fff;
}

.ecmc-page-content table th,
.ecmc-page-content table td {
	border: 1px solid rgba(0, 0, 0, 0.10);
	padding: 10px 12px;
	text-align: left;
	vertical-align: middle;
}

.ecmc-page-content table th {
	background: #f5f5f2;
	font-weight: 800;
}

.ecmc-page-content img {
	max-width: 100%;
	height: auto;
	border-radius: 14px;
}

@media (max-width: 900px) {
	.ecmc-page-wrap {
		padding: 22px 10px 44px;
	}

	.ecmc-page {
		border-radius: 16px;
		padding: 22px 16px 28px;
	}

	.ecmc-page-content {
		font-size: 14px;
		line-height: 1.65;
		overflow-x: auto;
	}

	.ecmc-page-content table {
		min-width: 620px;
	}
}