/*
Theme Name: Mewefashion
Description: A responsive fashion storefront for WooCommerce.
Version: 1.3.4
Requires at least: 6.7
Requires PHP: 8.0
Text Domain: mewefashion
*/

:root {
	--mf-ink: #111;
	--mf-line: #e6e6e6;
	--mf-blue: #004be5;
	--mf-muted: #777;
	--mf-header-height: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--mf-header-height) + 12px); }
body { margin: 0; color: var(--mf-ink); background: #fff; font: 14px/1.45 Arial, "Helvetica Neue", sans-serif; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--mf-blue); outline-offset: 3px; }
[hidden] { display: none !important; }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.skip-link:focus { top: 10px; left: 10px; z-index: 50; width: auto; height: auto; padding: 12px; background: #fff; clip-path: none; }

.mf-header { position: sticky; z-index: 20; top: 0; display: flex; flex-direction: column; background: #fff; }
.admin-bar .mf-header { top: 32px; }
.mf-header-row { order: 1; position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 60px; padding: 0 24px; background: #fff; color: #000; }
.mf-header--home .mf-header-row { order: -1; }
.mf-nav, .mf-actions { display: flex; align-items: center; }
.mf-nav { white-space: nowrap; height: 100%; }
.mf-nav-item { display: flex; height: 100%; align-items: center; }
.mf-nav-item > a { display: flex; align-items: center; height: 100%; padding: 0 12px; }
.mf-nav:has(.mf-nav-item:hover) .mf-nav-item:not(:hover) > a { color: #aaa; }
.mf-logo, .mf-logo > a { display: flex; align-items: center; justify-content: center; }
.mf-logo img { display: block; width: clamp(128px, 13.2vw, 190px); height: 36px; object-fit: contain; }
.mf-logo .mf-site-title { display: block; max-width: clamp(114px, 33vw, 190px); overflow: hidden; padding: 2px 5px; background: #fff; color: #111; font: 700 18px Georgia, serif; white-space: nowrap; text-overflow: ellipsis; }
.mf-actions { justify-content: end; gap: 24px; }
.mf-icon { display: inline-block; width: 16px; height: 16px; vertical-align: middle; }
.mf-icon-button { position: relative; display: inline-grid; place-items: center; flex: none; padding: 0; border: 0; background: transparent; color: inherit; }
.mf-icon-button:hover { opacity: .7; }
.mf-menu { margin-right: 24px; }
.mf-menu img { width: 16px; height: 16px; }
.mf-search-button { display: flex; width: 182px; height: 28px; align-items: center; justify-content: space-between; border: 1px solid #eee; padding: 0 12px; color: #999; font-size: 12px; }
.mf-search-button .mf-icon--mobile-search, .mf-bag-button .mf-icon--mobile-bag { display: none; }
.mf-cart-count { position: absolute; top: -7px; right: -9px; min-width: 14px; padding: 0 3px; border-radius: 8px; background: #004be5; color: #fff; font-size: 9px; font-weight: 700; line-height: 14px; text-align: center; }

.mf-announcement { display: grid; grid-template-columns: 2fr 1fr 1fr; place-items: center stretch; height: 32px; background: #000; color: #fff; text-align: center; font-size: 12px; line-height: 16px; }
.mf-announcement--services-0 { grid-template-columns: 1fr; }
.mf-announcement--services-1 { grid-template-columns: 2fr 1fr; }
.mf-announcement--services-only { grid-template-columns: none; grid-auto-columns: 1fr; grid-auto-flow: column; }
.mf-promo-service { border-inline-start: 1px solid #676767; }
.mf-announcement a:hover { text-decoration: underline; }

.mf-megamenu { display: none; position: absolute; inset: 100% 0 auto; padding: 24px; background: #fff; border-top: 1px solid #f8f8f8; box-shadow: 0 12px 20px #0002; white-space: normal; }
.mf-nav-item:hover .mf-megamenu, .mf-nav-item:focus-within .mf-megamenu { display: block; }
.mf-megamenu-inner { display: grid; grid-template-columns: 200px repeat(4, minmax(0, 1fr)) minmax(220px, 1.7fr); gap: 28px; min-height: 240px; }
.mf-megamenu-inner a { display: block; width: fit-content; margin-bottom: 6px; font-size: 13px; }
.mf-megamenu-inner a:hover { text-decoration: underline; }
.mf-megamenu-inner strong { display: block; margin: 0 0 8px; font-size: 14px; }
.mf-megamenu-inner a + strong { margin-top: 17px; }
.mf-mega-rail { border-right: 1px solid #f2f2f2; }
.mf-mega-rail a { margin-bottom: 9px; font-size: 14px; }
.mf-mega-rail a span { margin-left: 6px; color: #aaa; }
.mf-mega-rail .mf-mega-active { font-weight: 700; }
.mf-mega-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mf-mega-cards .mf-mega-card { display: block; width: 100%; font-size: 13px; }
.mf-mega-cards img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; margin-bottom: 8px; }

body:has(dialog[open]) { overflow: hidden; }
.mf-drawer, .mf-search-dialog { max-width: none; max-height: none; padding: 0; border: 0; color: var(--mf-ink); background: #fff; }
.mf-drawer[open] { display: flex; flex-direction: column; }
.mf-drawer { position: fixed; inset: 0 0 0 auto; width: min(100%, 420px); height: 100%; height: 100dvh; margin: 0; }
.mf-drawer--left { right: auto; left: 0; }
.mf-drawer::backdrop, .mf-search-dialog::backdrop { background: #0006; }
.mf-search-dialog { position: fixed; inset: 92px 0 auto; width: min(650px, calc(100% - 24px)); margin: 0 auto; }
.mf-region-dialog { width: min(380px, calc(100% - 24px)); }
.mf-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 24px; border-bottom: 1px solid var(--mf-line); }
.mf-panel-head h2 { margin: 0; color: #000; font-size: 18px; text-transform: uppercase; }
.mf-panel-head button { width: 28px; height: 28px; }
.mf-panel-head img { width: 20px; height: 20px; }
.mf-panel-links, .mf-wishlist-items, .mf-bag-items { overflow: auto; padding: 10px 24px 24px; }
.mf-panel-links > *, .mf-panel-links summary { display: block; padding: 13px 0; border-bottom: 1px solid var(--mf-line); }
.mf-panel-links details { padding: 0; }
.mf-panel-links summary { cursor: pointer; }
.mf-panel-links summary::after { float: right; content: '+'; }
.mf-panel-links details[open] summary::after { content: '−'; }
.mf-panel-links details a { display: block; padding: 10px 14px; }
.mf-panel-link-button { width: 100%; border: 0; background: transparent; text-align: left; }

.mf-search-form { display: flex; height: 42px; margin: 20px 24px; border: 1px solid var(--mf-ink); }
.mf-search-form input { flex: 1; min-width: 0; border: 0; padding: 0 14px; }
.mf-search-form button { width: 42px; }
.mf-search-suggestions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 24px 24px; }
.mf-search-suggestions a { padding: 4px 13px; border: 1px solid var(--mf-line); border-radius: 20px; }
.mf-region-current { padding: 10px 24px 24px; }
.mf-region-current div { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--mf-line); }

.mf-wishlist-items > p, .mf-bag-items .woocommerce-mini-cart__empty-message { margin: 30px 0 20px; text-align: center; }
.mf-wishlist-items article { position: relative; border-bottom: 1px solid var(--mf-line); }
.mf-wishlist-items article a { display: flex; align-items: center; gap: 12px; padding: 12px 35px 12px 0; }
.mf-wishlist-items article button { position: absolute; top: 12px; right: 0; padding: 3px 6px; border: 0; background: transparent; font-size: 19px; }
.mf-wishlist-items article img, .mf-bag-items .mini_cart_item img { width: 58px; height: 76px; object-fit: cover; background: #eee; }
.mf-bag-items { flex: 1; }
.mf-bag-items ul { margin: 0; padding: 0; list-style: none; }
.mf-bag-items .mini_cart_item { position: relative; padding: 14px 26px 14px 0; border-bottom: 1px solid var(--mf-line); display: flow-root; }
.mf-bag-items .mini_cart_item > a:not(.remove) { display: block; font-weight: 600; }
.mf-bag-items .mini_cart_item img { float: left; margin: 0 12px 0 0; }
.mf-bag-items .mini_cart_item .remove { position: absolute; top: 12px; right: 0; }
.mf-bag-items .variation { margin: 4px 0; color: var(--mf-muted); font-size: 12px; }
.mf-bag-items .variation dt, .mf-bag-items .variation dd { display: inline; margin: 0 4px 0 0; }
.mf-bag-items .variation p { display: inline; }
.mf-bag-items .woocommerce-mini-cart__total { display: flex; justify-content: space-between; margin: 0; padding: 16px 0; }
.mf-bag-items .woocommerce-mini-cart__buttons { display: flex; gap: 8px; margin: 0; }
.mf-bag-items .woocommerce-mini-cart__buttons a, .mf-empty-shop { display: block; flex: 1; padding: 11px 14px; border: 1px solid #111; border-radius: 0; color: #111; background: #fff; text-align: center; text-transform: uppercase; font-weight: 700; }
.mf-bag-items .woocommerce-mini-cart__buttons a.checkout, .mf-empty-shop { color: #fff; background: #000; }
.mf-bag-items:not(:has(.woocommerce-mini-cart__empty-message)) .mf-empty-shop { display: none; }
.mf-empty-shop { max-width: 220px; margin: auto; }
.mf-favorite[aria-pressed="true"] { color: #b00030; }
.mf-favorite[aria-pressed="true"] .mf-icon { filter: invert(19%) sepia(99%) saturate(4838%) hue-rotate(332deg) brightness(79%); }

.mf-page { width: min(1220px, calc(100% - 48px)); min-height: 54vh; margin: 0 auto; padding: 24px 0 64px; }
.mf-page article > h1 { text-align: center; text-transform: uppercase; font-size: 26px; }
.mf-page-banner { position: relative; margin-bottom: 18px; }
.mf-page-banner > a, .mf-page-banner picture, .mf-page-banner img { display: block; }
.mf-page-banner img { width: 100%; height: auto; }
.mf-page-banner__text { position: absolute; inset: auto 0 0; padding: 8px 16px; color: #fff; background: #0009; overflow-wrap: anywhere; }
.mf-page article a:not(.wc-block-components-button) { text-decoration: underline; }
.mf-page article .mf-page-banner > a { text-decoration: none; }
.mf-page article :is(input, textarea):not([type="checkbox"], [type="radio"], [type="hidden"]) { max-width: 100%; }
.mf-page .wc-block-components-button:not(.is-link), .mf-page button.button, .mf-page a.button { border-radius: 0; border: 1px solid #111; color: #fff; background: #111; }
.mf-page .wc-block-components-button:not(.is-link):hover, .mf-page .button:hover { background: #303030; }

.mf-footer { padding: 44px 24px 16px; background: #f7f7f7; }
.mf-footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.65fr; gap: 24px; max-width: 1370px; margin: 0 auto 32px; }
.mf-footer h2 { margin: 0 0 10px; font-size: 14px; }
.mf-footer a { display: block; width: fit-content; margin: 0 0 7px; font-size: 13px; }
.mf-footer a:hover { text-decoration: underline; }
.mf-footer-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; max-width: 1370px; margin: auto; padding-top: 16px; border-top: 1px solid var(--mf-line); color: #555; font-size: 12px; }
.mf-footer-end a { margin: 0; font-size: inherit; }
.mf-newsletter-field { display: flex; border: 1px solid #111; background: #fff; }
.mf-newsletter-field input { flex: 1; width: 0; padding: 8px 12px; border: 0; }
.mf-newsletter-field button { padding: 0 14px; border: 0; color: #fff; background: #111; }
.mf-consent { display: block; margin-top: 8px; color: #555; font-size: 12px; }
.mf-consent input { vertical-align: middle; }
.mf-consent a { display: inline; text-decoration: underline; font-size: inherit; }

.mf-mobile-dock, .mf-app-strip { display: none; }

@media (min-width: 801px) and (hover: hover) {
	.mf-menu { height: 100%; }
	.mf-nav:has(.mf-menu:hover) .mf-nav-item:nth-child(2) .mf-megamenu { display: block; }
}

@media (max-width: 1100px) {
	.mf-header-row { padding-inline: 16px; }
	.mf-menu { margin-right: 15px; }
	.mf-nav-item > a { padding-inline: 8px; }
	.mf-actions { gap: 17px; }
	.mf-search-button { width: 132px; }
	.mf-megamenu-inner { grid-template-columns: 145px repeat(4, 1fr); gap: 12px; }
	.mf-mega-cards { display: none; }
}

@media (max-width: 800px) {
	:root { --mf-header-height: 80px; }
	.mf-header, .admin-bar .mf-header { top: 0; }
	.mf-header-row { height: 44px; padding: 0 18px; }
	.mf-header--home .mf-header-row { order: 1; }
	.mf-nav-item, .mf-desktop-action, .mf-promo-service, .mf-search-button span, .mf-search-button .mf-icon--search, .mf-bag-button .mf-icon--bag { display: none; }
	.mf-logo img { width: clamp(114px, 33vw, 150px); height: 28px; }
	.mf-search-button .mf-icon--mobile-search, .mf-bag-button .mf-icon--mobile-bag { display: inline-block; }
	.mf-actions { gap: 18px; }
	.mf-icon-button .mf-icon { width: 20px; height: 20px; }
	.mf-search-button { width: auto; height: auto; padding: 0; border: 0; }
	.mf-announcement { display: flex; justify-content: center; align-items: center; height: 36px; font-weight: 700; }
	.mf-announcement--services-only { display: none; }
	.mf-page { width: calc(100% - 32px); padding: 16px 0 40px; }
	.mf-page article > h1 { font-size: 22px; }
	.mf-footer { padding: 28px 16px 20px; }
	.mf-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
	.mf-footer-grid > :last-child { grid-column: 1 / -1; }
	.mf-mobile-dock { display: grid; position: fixed; z-index: 19; bottom: 0; left: 0; right: 0; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--mf-line); padding-bottom: env(safe-area-inset-bottom); }
	.mf-mobile-dock > * { position: relative; display: grid; min-height: 45px; place-items: center; border: 0; background: transparent; color: #000; font-size: 10px; font-weight: 700; text-transform: uppercase; }
	.mf-mobile-dock [aria-current]::after { position: absolute; bottom: 9px; width: 12px; height: 2px; background: #111; content: ''; }
	body:has(.mf-mobile-dock) .mf-footer { padding-bottom: 68px; }
	.mf-header--home { height: 0; background: transparent; }
	.mf-header--home .mf-announcement, .mf-header--home .mf-bag-button { display: none; }
	.mf-header--home .mf-header-row { position: absolute; top: 42px; width: 100%; height: 64px; background: transparent; pointer-events: none; }
	.mf-header--home .mf-header-row :is(a, button) { pointer-events: auto; }
	.mf-header--home .mf-header-row .mf-icon { filter: invert(1); }
	.mf-header--home .mf-logo img { width: clamp(144px, 44vw, 176px); height: 42px; }
	body:has(.mf-hero) .mf-header--home:not(.mf-home-scrolled) .mf-logo--uploaded > a { padding: 3px 8px; background: #fff; }
	.mf-header--home.mf-app-dismissed .mf-header-row { top: 0; }
	.mf-header--home.mf-home-scrolled .mf-header-row { top: 0; height: 44px; background: #fff; }
	.mf-header--home.mf-home-scrolled .mf-header-row .mf-icon { filter: none; }
	.mf-header--home.mf-home-scrolled .mf-logo img { width: clamp(114px, 33vw, 150px); height: 28px; }
	body:not(:has(.mf-hero)) .mf-header--home { height: 44px; background: #fff; }
	body:not(:has(.mf-hero)) .mf-header--home .mf-header-row { top: 0; height: 44px; }
	body:not(:has(.mf-hero)) .mf-header--home .mf-header-row .mf-icon { filter: none; }
	body:not(:has(.mf-hero)) .mf-header--home .mf-logo img { width: clamp(114px, 33vw, 150px); height: 28px; }
	.mf-app-strip { display: flex; position: relative; z-index: 21; align-items: center; gap: 9px; height: 42px; padding: 0 12px 0 4px; background: #fff; color: #111; font-size: 12px; }
	.mf-app-strip button { padding: 0 2px; border: 0; background: transparent; color: #777; }
	.mf-app-strip img { width: 34px; height: 34px; flex: none; padding: 4px; border: 1px solid var(--mf-line); border-radius: 5px; object-fit: contain; }
	.mf-app-strip .mf-app-logo--uploaded { width: 48px; }
	.mf-app-strip small { display: block; color: #888; }
	.mf-app-strip > a { margin-left: auto; padding: 5px 12px; border-radius: 20px; background: #000; color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; }
}

@media (max-width: 800px) and (max-height: 720px) {
	body:has(.mf-hero) .mf-header--home:not(.mf-home-scrolled) .mf-logo:not(.mf-logo--uploaded) { align-self: start; }
	body:has(.mf-hero) .mf-header--home:not(.mf-home-scrolled) .mf-logo:not(.mf-logo--uploaded) img { object-position: center 4px; }
}
