/*
Theme Name: MyExtraCards Native
Theme URI: https://myextracards.com/
Description: Native storefront theme for MyExtraCards with WooCommerce support and no page-builder dependency.
Author: DCTree
Version: 0.1.1
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: myextracards-native
*/

@font-face { font-family: Poppins; src: url("assets/poppins-400.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: Poppins; src: url("assets/poppins-600.woff2") format("woff2"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: Poppins; src: url("assets/poppins-700.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: Poppins; src: url("assets/poppins-800.woff2") format("woff2"); font-style: normal; font-weight: 800; font-display: swap; }

:root {
	--mxc-blue: #0089c5;
	--mxc-blue-dark: #006b9b;
	--mxc-blue-bright: #049edb;
	--mxc-ink: #222529;
	--mxc-muted: #545454;
	--mxc-gray: #f2f2f2;
	--mxc-line: #dce0e3;
	--mxc-round: 8px;
	--mxc-layout: 1190px;
}

*, *::before, *::after { box-sizing: border-box; }
body.mxc-site {
	margin: 0;
	background: #fff;
	color: var(--mxc-ink);
	font: 400 .9375rem/1.6 Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.mxc-site img { display: block; max-width: 100%; height: auto; }
.mxc-site a { color: var(--mxc-blue-dark); text-decoration: none; }
.mxc-site a:hover { color: #004e71; text-decoration: none; }
.mxc-site button, .mxc-site input, .mxc-site select, .mxc-site textarea { font: inherit; }
.mxc-site :focus-visible { outline: 2px solid var(--mxc-blue-bright); outline-offset: 3px; }
.mxc-shell { width: min(var(--mxc-layout), calc(100% - 48px)); margin-inline: auto; }
.mxc-visually-hidden, .mxc-site .screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%);
	white-space: nowrap; border: 0;
}
.mxc-skip { position: absolute; top: 0; left: 12px; z-index: 200; padding: .65rem 1rem; background: #fff; transform: translateY(-120%); }
.mxc-skip:focus { transform: translateY(0); }

.mxc-header { background: #fff; }
.mxc-top { background: var(--mxc-blue); color: #fff; }
.mxc-top-inner, .mxc-top-links { display: flex; align-items: center; }
.mxc-top-inner { min-height: 34px; justify-content: space-between; }
.mxc-top-links { gap: 1rem; font-size: .75rem; font-weight: 600; letter-spacing: .025em; text-transform: uppercase; }
.mxc-top-links a, .mxc-top-links a:hover { color: #fff; text-decoration: none; }
.mxc-top-links a:hover { opacity: .82; }
.mxc-top-links .mxc-social { font-size: 1rem; font-weight: 700; text-transform: none; }

.mxc-header-main {
	min-height: 112px;
	display: grid;
	grid-template-columns: minmax(155px, 230px) minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(1.75rem, 4vw, 4.75rem);
	padding-block: .7rem;
}
.mxc-brand a { display: block; width: fit-content; }
.mxc-brand img { max-width: 230px; max-height: 70px; width: 100%; object-fit: contain; object-position: left center; }
.mxc-search {
	display: flex;
	min-width: 0;
	min-height: 43px;
	background: #f5f5f5;
	border-radius: 999px;
	color: #515459;
}
.mxc-search :is(input, select, button) { border: 0; background: transparent; color: inherit; min-width: 0; font: inherit; }
.mxc-search input[type=search] { flex: 1 1 9rem; width: 100%; padding: .6rem .85rem .6rem 1.25rem; border-radius: 999px 0 0 999px; font-size: .875rem; }
.mxc-search select { flex: 0 1 auto; max-width: 40%; padding: .4rem 1.2rem .4rem .75rem; border-left: 1px solid #e4e4e4; font-size: .8125rem; }
.mxc-search button { width: 48px; flex: 0 0 48px; display: grid; place-items: center; border-left: 1px solid #e4e4e4; border-radius: 0 999px 999px 0; cursor: pointer; }
.mxc-search button:hover { color: var(--mxc-blue-dark); }
.mxc-search svg { width: 19px; height: 19px; }
.mxc-header-tools { display: flex; gap: .875rem; align-items: center; }
.mxc-header-tools > a, .mxc-header-cart > summary { display: inline-grid; width: 34px; height: 36px; place-items: center; color: var(--mxc-ink); }
.mxc-header-tools > a:hover, .mxc-header-cart > summary:hover { color: var(--mxc-blue-dark); }
.mxc-header-tools svg { width: 23px; height: 23px; }
.mxc-header-cart { position: relative; z-index: 15; }
.mxc-header-cart > summary { position: relative; list-style: none; cursor: pointer; }
.mxc-header-cart > summary::-webkit-details-marker, .mxc-welcome summary::-webkit-details-marker, .mxc-mobile-nav > summary::-webkit-details-marker { display: none; }
.mxc-cart-count { position: absolute; top: 0; right: 0; display: grid; place-items: center; min-width: 16px; height: 16px; border-radius: 50%; background: #d84448; color: white; font: 700 .65rem/1 Poppins, system-ui, sans-serif; }
.mxc-cart-panel {
	position: absolute; right: 0; top: 100%; width: min(315px, 86vw);
	background: #fff; padding: 1.1rem; border: 1px solid var(--mxc-line);
	box-shadow: 0 12px 30px rgba(0,0,0,.13);
}
.mxc-view-cart { display: inline-block; font-weight: 700; margin-bottom: .35rem; }
.mxc-cart-contents p:last-child { margin-bottom: 0; }
.mxc-cart-contents .woocommerce-mini-cart { list-style: none; padding: 0; }
.mxc-cart-contents .woocommerce-mini-cart li { padding: .55rem 0; overflow: auto; border-bottom: 1px solid var(--mxc-line); }
.mxc-cart-contents .woocommerce-mini-cart img { width: 42px; float: right; }

.mxc-main-nav { position: relative; z-index: 5; background: #f2f2f2; border-bottom: 1px solid #e9ecee; }
.mxc-menu, .mxc-menu ul { list-style: none; padding: 0; margin: 0; }
.mxc-menu li { position: relative; }
.mxc-menu a { display: block; color: var(--mxc-muted); text-decoration: none; }
.mxc-menu a:hover { color: var(--mxc-blue-dark); }
.mxc-desktop-nav > .mxc-menu { display: flex; align-items: center; justify-content: center; gap: clamp(.35rem, 1.35vw, 1.6rem); }
.mxc-desktop-nav > .mxc-menu > li > a { padding: .8rem 0; font-weight: 700; font-size: .875rem; line-height: 1.5; white-space: nowrap; }
.mxc-desktop-nav li.menu-item-has-children > a::after, .mxc-category-nav li.menu-item-has-children > a::after {
	content: ""; display: inline-block; width: .39em; height: .39em; margin: 0 .18rem .21em .4rem;
	border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg);
}
.mxc-desktop-nav .mxc-menu ul, .mxc-category-nav .mxc-menu ul {
	display: none; position: absolute; left: 0; top: 100%; z-index: 10;
	min-width: 200px; width: max-content; max-width: 300px; padding: .28rem 0;
	background: #fff; box-shadow: 0 9px 24px rgba(0,0,0,.12);
}
.mxc-desktop-nav .mxc-menu ul a, .mxc-category-nav .mxc-menu ul a { padding: .52rem .85rem; font-size: .875rem; }
.mxc-desktop-nav .mxc-menu ul a:hover, .mxc-category-nav .mxc-menu ul a:hover { background: #f2f7fa; }
.mxc-desktop-nav .mxc-menu li:is(:hover,:focus-within) > ul,
.mxc-category-nav .mxc-menu li:is(:hover,:focus-within) > ul { display: block; }
.mxc-desktop-nav .mxc-menu ul ul, .mxc-category-nav .mxc-menu ul ul { top: 0; left: 100%; }
.mxc-desktop-nav .mxc-menu > :last-child > ul { left: auto; right: 0; }
.mxc-mobile-nav { display: none; }
.mxc-mobile-nav summary { list-style: none; display: flex; align-items: center; gap: .55rem; min-height: 44px; font-weight: 700; cursor: pointer; }
.mxc-mobile-nav summary svg { width: 20px; height: 20px; }
.mxc-mobile-nav nav { padding-bottom: .8rem; }
.mxc-mobile-nav nav a { padding: .35rem 0; }
.mxc-mobile-nav nav ul ul { padding-left: 1rem; }

.mxc-home { display: grid; grid-template-columns: minmax(210px, 25%) minmax(0, 1fr); align-items: start; gap: 20px; padding-block: 20px 56px; }
.mxc-home-primary { min-width: 0; }
.mxc-category-nav { margin-bottom: 20px; background: #fff; }
.mxc-category-nav > .mxc-menu > li > a { display: flex; align-items: center; gap: .65rem; position: relative; padding: .65rem 2rem .65rem 1rem; color: #444; font-size: .9375rem; font-weight: 600; }
.mxc-category-nav > .mxc-menu > li > a svg { width: 19px; height: 19px; flex: 0 0 19px; }
.mxc-category-nav > .mxc-menu > li.menu-item-has-children > a::after { position: absolute; right: 1rem; top: 50%; margin: 0; transform: translateY(-50%) rotate(-45deg); color: inherit; }
.mxc-category-nav > .mxc-menu > li:is(:hover,:focus-within) > a { color: #fff; background: var(--mxc-blue); }
.mxc-category-nav > .mxc-menu > li > ul { left: 100%; top: 0; }

.mxc-store { display: grid; gap: .55rem; padding: 1.35rem 1.15rem; background: var(--mxc-blue); color: #fff; }
.mxc-store:first-child { border-radius: var(--mxc-round) var(--mxc-round) 0 0; }
.mxc-store:last-child { border-radius: 0 0 var(--mxc-round) var(--mxc-round); }
.mxc-store + .mxc-store { margin-top: 1px; }
.mxc-store h2 { margin: 0 0 .15rem; color: #fff; font-size: 1.03rem; font-weight: 800; text-transform: uppercase; }
.mxc-store a, .mxc-store a:hover { color: #fff; }
.mxc-store address { font-style: normal; }
.mxc-sidebar-posts { margin-top: 1.5rem; }
.mxc-sidebar-posts h2 { margin: 0 0 .7rem; font-size: .95rem; font-weight: 700; text-transform: uppercase; }
.mxc-sidebar-posts article { padding: .6rem 0; border-top: 1px solid var(--mxc-line); }
.mxc-sidebar-posts article a { color: var(--mxc-ink); font-weight: 600; }
.mxc-sidebar-posts p { margin: .28rem 0 0; color: var(--mxc-muted); font-size: .8125rem; }

.mxc-welcome {
	display: grid; gap: 1.55rem; min-height: 275px; padding: 1.18rem 1.15rem 1rem;
	border-left: 5px solid var(--mxc-blue-bright); border-radius: 0 var(--mxc-round) var(--mxc-round) 0; background: var(--mxc-gray);
}
.mxc-welcome summary { position: relative; cursor: pointer; list-style: none; line-height: 1.25; padding-right: 2.2rem; }
.mxc-welcome summary::after {
	content: "+"; position: absolute; top: .05rem; right: 0; display: grid; place-items: center;
	width: 1.55rem; height: 1.55rem; color: var(--mxc-blue-dark); background: #fff;
	border: 1px solid #dce5ea; border-radius: 50%; font-size: 1rem; font-weight: 600;
}
.mxc-welcome details[open] summary::after { content: "−"; }
.mxc-welcome summary:hover::after { color: #fff; background: var(--mxc-blue-dark); }
.mxc-welcome summary strong { display: block; font-size: 1.015rem; font-weight: 800; text-transform: uppercase; color: var(--mxc-ink); }
.mxc-welcome summary span { display: block; color: var(--mxc-blue-dark); font-size: 1rem; font-weight: 600; }
.mxc-welcome p { margin: .45rem 0 0; color: #444; }

.mxc-product-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 23px); margin-top: 1.6rem; }
.mxc-product-group { display: flex; flex-direction: column; min-width: 0; }
.mxc-product-group h2, .mxc-preorders h2 {
	margin: 0 0 .75rem;
	color: #565656; font-size: 1.02rem; font-weight: 800; line-height: 1.35;
	text-transform: uppercase;
}
.mxc-product-card { display: grid; grid-template-columns: minmax(50px, 82px) minmax(0, 1fr); align-items: center; gap: .65rem; margin: 0 0 1rem; }
.mxc-product-image {
	position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden;
	padding: .32rem; border: 1px solid var(--mxc-line); border-radius: 7px; background: #fff;
}
.mxc-product-card:is(:hover, :focus-within) .mxc-product-image { border-color: #96bfd2; }
.mxc-product-image img { height: 100%; width: 100%; object-fit: contain; transition: opacity .16s ease-out; }
.mxc-product-image.mxc-image-loading, .mxc-product-image.mxc-image-unavailable { background: #edf2f5; }
.mxc-product-image:is(.mxc-image-loading, .mxc-image-unavailable) img { opacity: 0; }
.mxc-image-loading.mxc-image-in-view::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(105deg, transparent 22%, rgba(255, 255, 255, .75) 50%, transparent 78%);
	transform: translateX(-100%); animation: mxc-image-shimmer 1.45s ease-in-out infinite;
}
@keyframes mxc-image-shimmer {
	to { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
	.mxc-product-image img { transition: none; }
	.mxc-image-loading.mxc-image-in-view::after { animation: none; }
}
.mxc-product-info { min-width: 0; }
.mxc-product-info h3 { margin: 0 0 .18rem; font-size: .84rem; line-height: 1.35; font-weight: 600; }
.mxc-product-info a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--mxc-ink); text-decoration: none; }
.mxc-product-info a:hover { color: var(--mxc-blue-dark); }
.mxc-price { color: #404040; font-size: .875rem; font-weight: 700; }
.mxc-price del { font-size: .81em; opacity: .7; }
.mxc-price ins { text-decoration: none; }
.mxc-more { display: inline-block; width: fit-content; padding: .3rem 0; color: var(--mxc-ink); font-size: .78rem; font-weight: 700; text-transform: uppercase; text-decoration: none; }
.mxc-product-group .mxc-more { margin-top: auto; }
.mxc-more:hover { color: var(--mxc-blue-dark); }

.mxc-category-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 1.7rem 0 1.9rem; }
.mxc-tile {
	position: relative; display: block; aspect-ratio: 1.58; overflow: hidden;
	background: #19242a; border-radius: var(--mxc-round); color: #fff; text-decoration: none;
}
.mxc-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mxc-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 25%,rgba(0,0,0,.7)); }
.mxc-tile-label { position: absolute; z-index: 1; inset: auto .8rem .75rem; display: grid; color: #fff; }
.mxc-tile-label strong { font-size: 1rem; font-weight: 800; line-height: 1.4; text-transform: uppercase; }
.mxc-tile-label span { font-size: .75rem; text-transform: uppercase; font-weight: 600; }
.mxc-tile:hover .mxc-tile-label span { color: #c3e7f8; }
.mxc-preorders p { color: var(--mxc-muted); margin: -.25rem 0 1rem; }
.mxc-preorder-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.mxc-product-card-grid { grid-template-columns: 1fr; align-items: start; }
.mxc-product-card-grid .mxc-product-image { aspect-ratio: 1; }

.mxc-content { min-height: 55vh; padding-block: 32px 60px; }
.mxc-content h1 { margin: 0 0 1.1rem; font-size: clamp(1.65rem, 3vw, 2.4rem); line-height: 1.2; }
.mxc-content h2 { margin: 1rem 0 .4rem; line-height: 1.25; }
.mxc-content .mxc-entry + .mxc-entry { padding-block: 1rem; border-top: 1px solid var(--mxc-line); }
.mxc-content .mxc-entry > :is(p, ul, ol) { max-width: 75ch; }
.mxc-entry :is(p, li) a, .mxc-welcome p a { font-weight: 700; }

.mxc-commerce .product_title, .mxc-commerce .woocommerce-products-header__title { font-weight: 800; }
.mxc-site .woocommerce :is(a.button,button.button,input.button),
.mxc-site .mxc-commerce :is(a.button,button.button,input.button) {
	border-radius: 4px; color: #fff; background: var(--mxc-blue-dark);
	font-weight: 700; text-decoration: none; padding: .65rem .9rem;
}
.mxc-site .woocommerce :is(a.button,button.button,input.button):hover,
.mxc-site .mxc-commerce :is(a.button,button.button,input.button):hover { color: #fff; background: #005984; }
.mxc-commerce .mxc-catalog-cart { margin: .45rem 0; }
.mxc-commerce .woocommerce-product-gallery img { border-radius: 5px; }
.mxc-site p.demo_store { position: fixed; top: auto; bottom: 0; background: #151515; color: #fff; font-size: .81rem; }
.mxc-site p.demo_store a { color: #fff; font-weight: 700; text-decoration: none; }
.mxc-site p.demo_store a:hover { color: #b5ddf1; }

.mxc-footer { padding: 2rem 0 0; background: #222529; color: #f1f2f4; }
.mxc-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; padding-bottom: 1.4rem; }
.mxc-footer h2 { margin: 0 0 .4rem; font-size: .9rem; color: #fff; text-transform: uppercase; }
.mxc-footer p { margin: 0 0 .45rem; color: #e3e6e9; }
.mxc-footer a, .mxc-footer .mxc-menu a { display: inline-block; color: #fff; text-decoration: none; }
.mxc-footer a:hover { color: #b5ddf1; }
.mxc-footer-bottom { border-top: 1px solid #56595c; padding: .8rem 0 1.1rem; font-size: .8rem; }

@media (max-width: 910px) {
	.mxc-header-main { grid-template-columns: minmax(130px, 180px) minmax(0, 1fr) auto; gap: 1.1rem; min-height: 83px; }
	.mxc-brand img { max-width: 180px; }
	.mxc-home { grid-template-columns: minmax(170px, 24%) minmax(0, 1fr); }
	.mxc-product-columns { gap: 11px; }
	.mxc-product-card:not(.mxc-product-card-grid) { grid-template-columns: minmax(43px, 62px) minmax(0, 1fr); gap: .45rem; }
}
@media (max-width: 730px) {
	.mxc-shell { width: calc(100% - 28px); }
	.mxc-top-links:nth-child(2) > span { display: none; }
	.mxc-top-links { font-size: .69rem; gap: .7rem; }
	.mxc-header-main { grid-template-columns: 1fr auto; gap: .55rem .75rem; padding-block: .65rem; }
	.mxc-brand img { max-width: 168px; }
	.mxc-header-tools { grid-column: 2; grid-row: 1; gap: .55rem; }
	.mxc-search { grid-column: 1 / -1; grid-row: 2; }
	.mxc-desktop-nav { display: none; }
	.mxc-mobile-nav { display: block; }
	.mxc-home { grid-template-columns: 1fr; padding-top: 14px; }
	.mxc-home-sidebar { grid-row: 2; }
	.mxc-category-nav { display: none; }
	.mxc-store-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
	.mxc-store + .mxc-store { margin-top: 0; }
	.mxc-store { padding: .85rem; }
	.mxc-store:first-child, .mxc-store:last-child { border-radius: var(--mxc-round); }
	.mxc-welcome { min-height: auto; gap: 1rem; padding: .9rem; }
	.mxc-product-columns { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
	.mxc-category-tiles { gap: 6px; }
	.mxc-tile-label { inset: auto .45rem .5rem; }
	.mxc-tile-label strong { font-size: .79rem; }
	.mxc-tile-label span { font-size: .65rem; }
	.mxc-preorder-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.mxc-footer-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
	.mxc-footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 395px) {
	.mxc-product-columns { grid-template-columns: 1fr; }
	.mxc-product-card:not(.mxc-product-card-grid) { grid-template-columns: 64px 1fr; }
	.mxc-store-list { grid-template-columns: 1fr; }
}
