/* ==========================================================================
   Material category pages (PVC / TPE) — v2 redesign (ported from pvc.html / tpe.html)
   Scoped under `.mat-v2` to avoid leaking onto other pages.
   ========================================================================== */




/* Hide WC's default archive wrappers inside our archive (we render our own) */
.mat-v2-page .woocommerce-products-header,
.mat-v2-page .term-description { display: none !important; }


.mat-v2 img { max-width: 100%; display: block; }


/* ==========================================================================
   Material category pages (PVC / TPE) — v2 redesign (ported from pvc.html / tpe.html)
   Scoped under `.mat-v2` to avoid leaking onto other pages.


/* Hide WC's default archive wrappers inside our archive (we render our own) */
.mat-v2-page .woocommerce-products-header,
.mat-v2-page .term-description { display: none !important; }




/* ==========================================================================
   HERO
   ========================================================================== */
.mat-v2 .mv2-hero {
	position: relative;
	width: 100%;
	min-height: 600px;
	display: flex;
	align-items: flex-end;
	color: #fff;
	overflow: hidden;
	background: #0a0a0a;
	padding: 0 0 56px;
	margin-top: -80px;
}
.mat-v2 .mv2-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		linear-gradient(180deg, rgba(10,10,10,.4) 0%, rgba(10,10,10,.55) 50%, rgba(10,10,10,.9) 100%),
		url('https://wiilove.com/wp-content/uploads/2024/04/1712537254-2-3-scaled.jpg') center/cover no-repeat;
	filter: saturate(.85);
}
.mat-v2 .mv2-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: radial-gradient(ellipse at 15% 40%, rgba(196,47,47,.2), transparent 55%);
	pointer-events: none;
}
.mat-v2 .mv2-hero-inner {
	position: relative;
	z-index: 1;
	max-width: var(--max);
	margin: 0 auto;
	width: 100%;
	padding: 50px 24px 0;
}
.mat-v2 .mv2-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: rgba(255,255,255,.75);
	margin-bottom: 28px;
}
.mat-v2 .mv2-eyebrow::before {
	content: "";
	width: 32px;
	height: 1px;
	background: var(--accent);
}
.mat-v2 .mv2-hero-title {
	font-size: clamp(48px, 7vw, 96px);
	font-weight: 200;
	line-height: 1.02;
	letter-spacing: -.02em;
	max-width: 900px;
	margin-bottom: 28px;
	color: #fff;
}
.mat-v2 .mv2-hero-title em {
	font-style: normal;
	color: var(--accent-2);
	font-weight: 300;
}
.mat-v2 .mv2-hero-lede {
	max-width: 620px;
	font-size: 16px;
	line-height: 1.7;
	color: rgba(255,255,255,.78);
	font-weight: 300;
	margin-bottom: 48px;
}
.mat-v2 .mv2-hero-meta {
	display: flex;
	gap: 56px;
	flex-wrap: wrap;
	padding-top: 32px;
	border-top: 1px solid rgba(255,255,255,.14);
	max-width: 820px;
}
.mat-v2 .mv2-hero-meta .mv2-k {
	font-size: 11px;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: rgba(255,255,255,.5);
	margin-bottom: 8px;
}
.mat-v2 .mv2-hero-meta .mv2-v {
	font-size: 17px;
	font-weight: 400;
	color: rgba(255,255,255,.9);
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.mat-v2 .mv2-crumb {
	background: var(--paper);
	padding: 22px 0;
	border-bottom: 1px solid var(--line);
}
.mat-v2 .mv2-crumb .mv2-wrap {
	font-size: 11.5px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--muted);
}
.mat-v2 .mv2-crumb a { color: var(--muted); transition: color .2s; }
.mat-v2 .mv2-crumb a:hover { color: var(--accent); }
.mat-v2 .mv2-crumb .mv2-sep { margin: 0 10px; color: var(--muted-2); }
.mat-v2 .mv2-crumb .mv2-current { color: var(--ink); }

/* ==========================================================================
   INTRO (Material description + compliance badges)
   ========================================================================== */
.mat-v2 .mv2-intro {
	background: #fff;
	padding: 72px 0;
	border-bottom: 1px solid var(--line);
}
.mat-v2 .mv2-intro-grid {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 80px;
	align-items: start;
}
.mat-v2 .mv2-kicker {
	font-size: 12px;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: var(--accent);
	font-weight: 600;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 12px;
}
.mat-v2 .mv2-kicker span {
	content: "";
	width: 36px;
	height: 1px;
	background: var(--accent);
	display: inline-block;
}
.mat-v2 .mv2-intro h2 {
	font-size: 34px;
	font-weight: 250;
	line-height: 1.15;
	letter-spacing: -.01em;
	color: var(--ink);
}
.mat-v2 .mv2-intro p {
	color: #3a3a42;
	font-size: 15.5px;
	font-weight: 300;
	line-height: 1.8;
	margin-bottom: 16px;
}
.mat-v2 .mv2-intro p:last-of-type { margin-bottom: 24px; }
.mat-v2 .mv2-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 24px;
	border-top: 1px solid var(--line-2);
}
.mat-v2 .mv2-badge {
	padding: 7px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 11.5px;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: #3a3a42;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.mat-v2 .mv2-badge::before {
	content: "";
	width: 5px;
	height: 5px;
	background: var(--accent);
	border-radius: 50%;
}

/* ==========================================================================
   TOOLBAR (count + sort)
   ========================================================================== */
.mat-v2 .mv2-toolbar {
	background: var(--paper);
	padding: 36px 0 24px;
}
.mat-v2 .mv2-toolbar .mv2-wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}
.mat-v2 .mv2-count {
	font-size: 13px;
	color: var(--muted);
	letter-spacing: .05em;
}
.mat-v2 .mv2-sort-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: var(--muted);
}
.mat-v2 .mv2-sort-wrap select,
.mat-v2 .mv2-sort-wrap .orderby {
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	border: 0;
	font: inherit;
	color: var(--ink);
	padding: 6px 20px 6px 0;
	cursor: pointer;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M2 4l3 3 3-3' stroke='%23161616' stroke-width='1.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
	background-repeat: no-repeat;
	background-position: right center;
	border-bottom: 1px solid transparent;
	transition: border-color .2s;
}
.mat-v2 .mv2-sort-wrap select:hover,
.mat-v2 .mv2-sort-wrap .orderby:hover {
	border-bottom-color: var(--ink);
}
.mat-v2 .mv2-sort-wrap select:focus,
.mat-v2 .mv2-sort-wrap .orderby:focus {
	outline: none;
	border-bottom-color: var(--accent);
}

/* ==========================================================================
   PRODUCTS GRID + CARDS
   ========================================================================== */
.mat-v2 .mv2-products {
	background: var(--paper);
	padding: 8px 0 96px;
}
.mat-v2 .mv2-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 48px 32px;
}

.mat-v2 .mv2-card {
	background: var(--card);
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--line);
	transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
	cursor: pointer;
	position: relative;
	color: inherit;
	text-decoration: none;
	display: block;
}
.mat-v2 .mv2-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 40px -12px rgba(0,0,0,.12);
	border-color: transparent;
}
.mat-v2 .mv2-card-media {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--tile);
	overflow: hidden;
}
.mat-v2 .mv2-card-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .6s ease;
}
.mat-v2 .mv2-card:hover .mv2-card-img {
	transform: scale(1.04);
}
.mat-v2 .mv2-card-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f5f5f7 0%, #eaeaef 100%);
	color: rgba(0,0,0,.25);
	font-size: 14px;
	letter-spacing: .4em;
	font-weight: 500;
	text-align: center;
	padding: 12px;
}
.mat-v2 .mv2-card-tag {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	padding: 5px 10px;
	background: rgba(255,255,255,.9);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	font-size: 10px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--ink);
	border-radius: 4px;
	font-weight: 500;
}
.mat-v2 .mv2-card-tag.mv2-new {
	background: var(--accent);
	color: #fff;
}
.mat-v2 .mv2-card-body {
	padding: 22px 20px 24px;
	border-top: 1px solid var(--line-2);
}
.mat-v2 .mv2-card-title {
	font-size: 16px;
	font-weight: 500;
	letter-spacing: -.005em;
	color: var(--ink);
	margin-bottom: 4px;
}
.mat-v2 .mv2-card-sub {
	font-size: 11px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--muted-2);
}

/* Empty state */
.mat-v2 .mv2-empty {
	text-align: center;
	color: var(--muted);
	padding: 80px 0;
	font-size: 15px;
}

/* ==========================================================================
   PAGINATION (override WC's default look to match prototype)
   WC output structure:
     <div class="mv2-pagination">
       <nav class="woocommerce-pagination">
         <ul class="page-numbers">
           <li><span class="page-numbers current">1</span></li>
           <li><a class="page-numbers" href="...">2</a></li>
           ...
         </ul>
       </nav>
     </div>
   The `.page-numbers` class is applied to BOTH `<ul>` (container) and
   `<a>` / `<span>` (buttons), so we must style the wrapper `<ul>` and the
   buttons separately to avoid double-applying button styles to the container.
   ========================================================================== */
.mat-v2 .mv2-pagination {
	margin-top: 72px;
}
.mat-v2 .mv2-pagination .woocommerce-pagination {
	margin: 0;
	padding: 0;
}
.mat-v2 .mv2-pagination ul.page-numbers {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
	overflow: visible;
	float: none;
}
.mat-v2 .mv2-pagination ul.page-numbers li {
	border: 0;
	background: transparent;
	padding: 0;
	margin: 0;
	overflow: visible;
	float: none;
	display: inline-block;
}
.mat-v2 .mv2-pagination a.page-numbers,
.mat-v2 .mv2-pagination span.page-numbers {
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line);
	background: #fff;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 400;
	color: var(--ink);
	transition: all .2s;
	text-decoration: none;
	line-height: 1;
}
.mat-v2 .mv2-pagination a.page-numbers:hover {
	border-color: var(--ink);
	color: var(--accent);
}
.mat-v2 .mv2-pagination span.page-numbers.current {
	background: var(--ink);
	color: #fff;
	border-color: var(--ink);
}
.mat-v2 .mv2-pagination a.page-numbers.next,
.mat-v2 .mv2-pagination a.page-numbers.prev {
	font-size: 16px;
}
