/*
 * Emberstore — Storefront child theme styles.
 * Design tokens measured from the reference design:
 * accent #311c0c, hover #6e3f1b, body #444, links #000, footer #121212,
 * content width 1170px, Inter body 16px, Lora section headings 30px/500,
 * breakpoints: <=1024 tablet, <=768 mobile (2-col grids), <=989 nav drawer.
 */

/* ---------- Fonts ---------- */
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/inter-var.woff2') format('woff2');
}
@font-face {
	font-family: 'Lora';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/lora-var.woff2') format('woff2');
}

/* ---------- Tokens / reset ---------- */
:root {
	--em-accent: #311c0c;
	--em-accent-hover: #6e3f1b;
	--em-text: #444;
	--em-heading: #000;
	--em-link: #000;
	--em-link-hover: #111;
	--em-bg: #fff;
	--em-surface: #f8f8f8;
	--em-border: #dbdada;
	--em-footer-bg: #121212;
	--em-width: 1170px;
	--em-font: 'Inter', system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--em-serif: 'Lora', Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--em-bg);
	font-family: var(--em-font);
	font-size: 16px;
	font-weight: 400;
	color: var(--em-text);
	line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--em-link); text-decoration: none; }
a:hover { color: var(--em-link-hover); }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--em-font); font-weight: 600; color: var(--em-heading); line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: 42px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }

.em-container {
	max-width: var(--em-width);
	margin: 0 auto;
	padding: 0 20px;
}
.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px;
	margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link { position: absolute; left: -9999px; }
.clear { clear: both; }

/* Storefront clips #page and body with overflow:hidden / overflow-x:hidden,
   which turns body into its own scroll container and breaks position:sticky
   for the header wrapper. Restore visible overflow on both (drawers are
   position:fixed, so nothing else relies on the clip). */
#page.hfeed { overflow: visible; }
body { overflow-x: visible; }

/* ---------- Announcement bar ---------- */
.em-announce {
	background: #fff;
	border-bottom: 1px solid var(--em-border);
	text-align: center;
	padding: 8px 16px;
}
.em-announce-text {
	font-size: 14px;
	font-weight: 400;
	color: var(--em-accent);
	letter-spacing: 0.2px;
	line-height: 1.5;
}

/* ---------- Header ---------- */
.em-header-wrapper {
	position: sticky;
	top: 0;
	z-index: 999;
	background: #fff;
}
.em-header { background: #fff; }
.em-header-main { padding: 14px 0; }
.em-header-main-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
}
.em-logo { grid-column: 2; text-align: center; line-height: 0; }
.em-logo img { height: 50px; width: auto; }
.em-logo .custom-logo-link img { height: 50px; width: auto; }

.em-header-search {
	grid-column: 3;
	justify-self: end;
	width: 340px;
}
.em-search { position: relative; }
.em-search .search-field {
	width: 100%;
	background: var(--em-surface);
	border: 1px solid #eee;
	border-radius: 40px;
	padding: 10px 44px 10px 42px;
	font-size: 14px;
	font-family: var(--em-font);
	color: var(--em-text);
	outline: none;
}
.em-search .search-field::placeholder { color: #999; }
.em-search .search-field:focus { border-color: #ddd; }
.em-search::before {
	content: '';
	position: absolute;
	left: 16px;
	top: 50%;
	width: 16px;
	height: 16px;
	transform: translateY(-50%);
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E") center/contain no-repeat;
	opacity: 0.55;
	pointer-events: none;
}
.em-search-submit {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: 0;
	padding: 6px;
	line-height: 0;
	color: #666;
	cursor: pointer;
	display: none;
}

.em-header-icons { display: none; grid-column: 3; justify-self: end; align-items: center; gap: 6px; }
.em-header-icons button {
	background: transparent;
	border: 0;
	padding: 6px;
	line-height: 0;
	color: var(--em-accent);
	cursor: pointer;
	position: relative;
}
.em-menu-toggle { display: none; background: transparent; border: 0; padding: 8px 8px 8px 0; cursor: pointer; color: var(--em-accent); line-height: 0; }
.em-bars { display: inline-block; width: 22px; }
.em-bars span { display: block; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; }
.em-cart-count { position: absolute; top: -2px; right: -6px; background: var(--em-accent); color: #fff; font-size: 10px; line-height: 16px; min-width: 16px; border-radius: 50%; text-align: center; }

/* Nav row */
.em-nav-row { border-top: 0; }
.em-nav-row-inner { display: flex; align-items: center; justify-content: space-between; }
.em-nav { line-height: 60px; }
.em-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.em-menu-item { position: relative; }
.em-menu-item > a {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.1px;
	color: var(--em-accent);
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.em-menu-item > a:hover { color: var(--em-accent-hover); }
.em-caret { display: inline-flex; line-height: 0; color: var(--em-accent); opacity: 0.7; }

/* Dropdown (2 levels, CSS hover) */
.em-submenu-wrapper {
	position: absolute;
	left: 0;
	top: 100%;
	background: #fff;
	min-width: 260px;
	padding: 12px 0;
	box-shadow: 0 8px 24px rgba(0,0,0,0.08);
	border: 1px solid #f2f2f2;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
	z-index: 1001;
}
.em-menu-item.has-children:hover > .em-submenu-wrapper,
.em-menu-item.has-children:focus-within > .em-submenu-wrapper { opacity: 1; visibility: visible; transform: translateY(0); }
.em-submenu { list-style: none; margin: 0; padding: 0; }
.em-submenu .em-menu-item { position: relative; }
.em-submenu .em-menu-item > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 14px;
	font-weight: 400;
	color: var(--em-accent);
	padding: 7px 20px;
	line-height: 1.4;
}
.em-submenu .em-menu-item > a:hover { background: #faf7f4; color: var(--em-accent); }
.em-submenu .em-submenu-wrapper { top: -12px; left: 100%; }

.em-nav-cart { line-height: 60px; }
.em-nav-cart .shoptimizer-cart .cart-contents {
	color: var(--em-accent);
	font-size: 15px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.em-nav-cart .count {
	font-size: 12px;
	color: var(--em-accent);
	border: 1px solid var(--em-border);
	border-radius: 50%;
	width: 22px;
	height: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

/* ---------- Drawers ---------- */
.em-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.5);
	z-index: 1200;
	opacity: 0;
	transition: opacity 0.2s ease;
}
.em-overlay.is-open { opacity: 1; }
.em-drawer {
	position: fixed;
	top: 0;
	bottom: 0;
	width: 360px;
	max-width: 88vw;
	background: #fff;
	z-index: 1300;
	display: flex;
	flex-direction: column;
	transition: transform 0.25s ease;
}
.em-mobile-drawer { left: 0; transform: translateX(-100%); }
.em-cart-drawer { right: 0; transform: translateX(100%); }
.em-drawer.is-open { transform: translateX(0); }
.em-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #eee;
}
.em-drawer-title { font-size: 18px; font-weight: 600; color: var(--em-heading); }
.em-drawer-close { background: transparent; border: 0; padding: 4px; line-height: 0; color: #333; cursor: pointer; }
.em-drawer-close svg { width: 22px; height: 22px; }
.em-mobile-drawer .em-mobile-menu { list-style: none; margin: 0; padding: 8px 0; overflow-y: auto; }
.em-mobile-menu-item { border-bottom: 1px solid #f3f3f3; }
.em-mobile-menu-row { display: flex; align-items: center; justify-content: space-between; }
.em-mobile-menu-row > a { display: block; padding: 12px 20px; font-size: 15px; font-weight: 600; color: var(--em-accent); flex: 1; }
.em-mobile-acc { background: transparent; border: 0; padding: 12px 16px; line-height: 0; color: #666; cursor: pointer; }
.em-mobile-submenu { list-style: none; margin: 0; padding: 0 0 6px; display: none; }
.em-mobile-menu-item.is-open > .em-mobile-submenu { display: block; }
.em-mobile-submenu .em-mobile-menu-item { border-bottom: 0; }
.em-mobile-submenu .em-mobile-menu-row > a { padding: 9px 20px 9px 32px; font-size: 14px; font-weight: 400; }
.em-cart-drawer-body { overflow-y: auto; padding: 16px 20px; }
.em-cart-drawer-body .woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.em-cart-drawer-body .woocommerce-mini-cart-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f3f3f3; }
.em-cart-drawer-body .woocommerce-mini-cart-item img { width: 60px; }
.em-cart-drawer-body .woocommerce-mini-cart__total { padding: 12px 0; font-weight: 600; }
.em-cart-drawer-body .woocommerce-mini-cart__buttons { display: grid; gap: 8px; }

/* Mobile search panel */
.em-mobile-search { padding: 10px 20px 14px; border-top: 1px solid #f3f3f3; }
.em-mobile-search[hidden] { display: none; }

/* ---------- Generic buttons ---------- */
.em-btn-outline,
.em-btn-solid {
	display: inline-block;
	font-family: var(--em-font);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
	text-align: center;
}
.em-btn-outline {
	background: #fff;
	color: var(--em-accent);
	border: 1px solid var(--em-accent);
	border-radius: 1px;
	padding: 13px 15px;
}
.em-btn-outline:hover { background: var(--em-accent); color: #fff; }
.em-btn-sm { font-size: 13px; }

/* ---------- Home ---------- */
.em-hero a { display: block; line-height: 0; }
.em-hero img { width: 100%; }
.em-hero-mobile { display: none; }

.em-featured-head {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	padding-top: 60px;
	padding-bottom: 20px;
}
.em-featured-head .em-featured-spacer { height: 100%; }
.em-section-title {
	font-family: var(--em-serif);
	font-size: 30px;
	font-weight: 500;
	color: var(--em-accent);
	text-align: center;
	margin: 0;
	line-height: 1.25;
}
.em-featured-viewall { justify-self: end; }
.em-featured-group + .em-featured-group { display: none; } /* desktop renders the first row only, matching the reference */

/* Product grid + card */
.em-products,
ul.products {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
	column-gap: 0;
	row-gap: 0;
	position: static;
}
.em-products::before,
.em-products::after,
ul.products::before,
ul.products::after { content: none !important; }
ul.products li.product,
.em-products li.product {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 6px 34px;
	position: relative;
	display: block;
	text-align: left;
}
.woocommerce-image__wrapper { position: relative; }
.woocommerce-loop-product__link { display: block; }
.woocommerce-image__wrapper .shoptimizer-plp-image-wrapper {
	width: 100%;
	aspect-ratio: 1 / 1;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
}
.woocommerce-image__wrapper .shoptimizer-plp-image-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.3s ease;
}
ul.products li.product:hover .shoptimizer-plp-image-wrapper img { transform: scale(1.04); }
li.product span.onsale,
.onsale {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	background: var(--em-accent);
	color: #fff;
	font-size: 11px;
	line-height: 15px;
	border-radius: 3px;
	padding: 3px 6px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	letter-spacing: 0.2px;
	text-transform: none !important;
}
li.product .woocommerce-card__header { padding: 6px 2px 0; text-align: left !important; }
.woocommerce-loop-product__title {
	font-size: 15px;
	font-weight: 600;
	color: var(--em-heading);
	line-height: 1.4;
	margin: 0 0 6px;
	text-align: left;
}
.woocommerce-loop-product__title a { color: inherit; font-weight: inherit; }
ul.products li.product .price {
	display: block;
	margin: 0 0 10px;
	color: #111;
	font-size: 15px;
	text-align: left;
}
ul.products li.product .price del { color: #999; font-weight: 400; margin-right: 5px; }
ul.products li.product .price ins { text-decoration: none; font-weight: 700; color: #000; }
ul.products li.product .button,
ul.products li.product .add_to_cart_button {
	background: var(--em-accent);
	color: #fff;
	font-family: var(--em-font);
	font-size: 14px;
	font-weight: 600;
	border: 0;
	border-radius: 2px;
	padding: 10px 18px;
	line-height: 1;
	display: inline-block;
	cursor: pointer;
	transition: background 0.15s ease, opacity 0.15s ease, visibility 0.15s;
	opacity: 0;
	visibility: hidden;
}
ul.products li.product:hover .button,
ul.products li.product:hover .add_to_cart_button,
ul.products li.product .button:focus,
ul.products li.product .add_to_cart_button:focus { opacity: 1; visibility: visible; }
ul.products li.product .button:hover,
ul.products li.product .add_to_cart_button:hover { background: var(--em-accent-hover); color: #fff; }
ul.products li.product .added_to_cart { font-size: 14px; margin-left: 10px; }

/* Banner */
.em-banner a { display: block; line-height: 0; }
.em-banner img { width: 100%; }
.em-banner { padding-top: 20px; }
.em-banner-mobile { display: none; }

/* Category tiles */
.em-category { padding-top: 40px; padding-bottom: 35px; }
.em-category-title { margin-bottom: 24px; }
.em-category-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	padding-bottom: 0;
}
.em-category-tile { text-align: center; }
.em-category-image { display: block; line-height: 0; }
.em-category-name {
	font-family: var(--em-font);
	font-size: 17px;
	letter-spacing: -0.1px;
	font-weight: 400;
	color: var(--em-accent);
	margin: 14px 0 0;
	line-height: 1.35;
}
.em-category-name a { color: inherit; }
.em-hidden-desk { display: none; }

/* About split */
.em-about { padding: 0 0 0; }
.em-about-grid {
	display: grid;
	grid-template-columns: 55% 45%;
	align-items: stretch;
}
.em-about-media { line-height: 0; }
.em-about-media img { width: 100%; height: 100%; object-fit: cover; }
.em-about-body {
	background: #f3ece7;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: 40px 30px 40px 60px;
}
.em-about-title { font-family: var(--em-font); font-size: 30px; font-weight: 600; color: var(--em-accent); margin: 0 0 12px; }
.em-about-text { font-size: 16px; font-weight: 300; line-height: 1.3; color: var(--em-accent); margin: 0 0 22px; }
.em-about-mobile { display: none; }
.em-about-body-mobile { background: #f3ece7; padding: 24px 20px 28px; }
.em-about-title-mobile { font-family: var(--em-serif); font-size: 30px; font-weight: 700; color: var(--em-accent); text-align: left; margin: 0 0 10px; }

/* ---------- Archive header / breadcrumb ---------- */
.em-archive-header { padding: 14px 0 10px; }
.em-archive-header-pdp { background: var(--em-surface); padding-top: 16px; }
.em-breadcrumb { font-size: 14px; color: #888; }
.em-breadcrumb::before, .em-breadcrumb a::before { content: none !important; font-family: var(--em-font) !important; }
.em-breadcrumb a { color: #888; text-decoration: none; }
.em-breadcrumb a::after { content: none !important; }
.em-breadcrumb a:hover { color: var(--em-accent); }
.em-crumb-current { color: #555; }
.breadcrumb-separator { margin: 0 6px; color: #bbb; }

/* ---------- Shop layout ---------- */
.em-shop-layout {
	display: grid;
	grid-template-columns: 250px 1fr;
	gap: 40px;
	align-items: start;
	padding-top: 6px;
	padding-bottom: 40px;
}
.em-shop-sidebar { position: sticky; top: 170px; }
.em-mobile-filter { display: none; }

.em-widget { margin-bottom: 28px; }
.em-widget-title {
	display: block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	color: var(--em-heading);
	margin-bottom: 14px;
}

/* Price filter */
.em-price-slider {
	position: relative;
	height: 26px;
	margin-bottom: 10px;
}
.em-price-track {
	position: absolute;
	left: 4px;
	right: 4px;
	top: 50%;
	height: 3px;
	transform: translateY(-50%);
	background: #e3e3e3;
	border-radius: 2px;
}
.em-price-track::before {
	content: '';
	position: absolute;
	left: 0;
	right: 20%;
	top: 0;
	bottom: 0;
	background: var(--em-accent);
	border-radius: 2px;
}
.em-price-slider::before,
.em-price-slider::after {
	content: '';
	position: absolute;
	top: 50%;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #ccc;
	box-shadow: 0 1px 2px rgba(0,0,0,0.15);
	transform: translate(-50%, -50%);
	z-index: 1;
}
.em-price-slider::before { left: 4px; }
.em-price-slider::after { left: 82%; }
.em-price-fields { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.em-price-fields input {
	width: 62px;
	border: 1px solid #ddd;
	border-radius: 2px;
	padding: 7px 8px;
	font-size: 13px;
	font-family: var(--em-font);
}
.em-filter-btn {
	background: var(--em-accent);
	color: #fff;
	border: 0;
	border-radius: 40px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
}
.em-filter-btn:hover { background: var(--em-accent-hover); }
.em-price-label { font-size: 13px; color: #666; width: 100%; }
.em-price-label .woocommerce-Price-amount { color: #444; }

/* Top rated widget */
.em-product-list-widget { list-style: none; margin: 0; padding: 0; }
.em-product-list-widget li { border-bottom: 1px solid #f3f3f3; }
.em-product-list-widget li:last-child { border-bottom: 0; }
.em-product-list-widget a { display: flex; gap: 12px; padding: 12px 0; align-items: flex-start; }
.em-plw-text { flex: 1; }
.em-plw-title { display: block; font-size: 14px; font-weight: 500; color: var(--em-heading); line-height: 1.4; margin-bottom: 5px; }
.em-product-list-widget .price { display: block; font-size: 13px; }
.em-product-list-widget .price del { color: #999; margin-right: 4px; }
.em-product-list-widget .price ins { text-decoration: none; font-weight: 700; color: #000; }
.em-plw-img { width: 60px; flex-shrink: 0; }

/* Toolbar */
.em-toolbar {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 6px 0 18px;
}
.em-toolbar:last-of-type { padding: 22px 0 6px; }
.em-ordering select {
	font-family: var(--em-font);
	font-size: 14px;
	color: var(--em-text);
	border: 0;
	background: transparent;
	padding: 6px 18px 6px 0;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23666'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right center;
	background-size: 13px;
}
.em-result-count { margin: 0; font-size: 14px; color: #666; }
.em-pagination { margin-left: auto; }
.em-pagination .nav-links { display: flex; gap: 4px; align-items: center; }
.em-pagination .page-numbers,
.em-pagination ul.page-numbers { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.em-pagination .page-numbers li { display: inline-block; }
.em-pagination .page-numbers li .page-numbers,
.em-pagination .page-numbers li span,
.em-pagination .page-numbers li a,
.em-pagination .nav-links .page-numbers,
.em-pagination .nav-links span.page-numbers,
.em-pagination .nav-links a.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	height: 30px;
	font-size: 14px;
	color: var(--em-text);
	border-radius: 2px;
}
.em-pagination .nav-links .current,
.em-pagination .page-numbers li .current {
	color: #000;
	font-weight: 600;
	text-decoration: underline;
}
.em-pagination .nav-links a.page-numbers:hover,
.em-pagination .page-numbers li a:hover { color: #000; }

/* 3-col shop grid */
.em-shop-main ul.products,
.em-shop-main .em-products {
	grid-template-columns: repeat(3, 1fr);
	margin-bottom: 6px;
}

.em-no-products { padding: 30px 0; }

/* ---------- Single product ---------- */
.em-pdp-band { background: var(--em-surface); padding: 20px 0 30px; }
.em-pdp {
	display: grid;
	grid-template-columns: minmax(0, 55%) 1fr;
	gap: 46px;
	align-items: start;
}
.em-gallery { position: relative; }
.em-gallery-main { position: relative; background: #fff; }
.em-gallery-slide { display: none; line-height: 0; }
.em-gallery-slide.is-active { display: block; }
.em-gallery-image { width: 100%; height: auto; }
.em-gallery-zoom {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	background: #fff;
	border: 0;
	border-radius: 50%;
	width: 34px;
	height: 34px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #333;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.em-gallery-zoom svg { width: 20px; height: 20px; }
.em-search-toggle svg, .em-cart-toggle svg, .em-menu-toggle svg, .em-mobile-acc svg, .em-caret svg { width: 20px; height: 20px; }
.em-caret svg { width: 12px; height: 12px; }
.woocommerce-Tabs-panel--description > h2:first-child { display: none; }
.em-gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.em-gallery-thumb {
	width: 72px;
	height: 72px;
	padding: 3px;
	background: #fff;
	border: 1px solid #e5e5e5;
	cursor: pointer;
	line-height: 0;
	opacity: 0.75;
}
.em-gallery-thumb.is-active { border-color: var(--em-accent); opacity: 1; }
.em-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.em-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.85);
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 30px;
	cursor: zoom-out;
}
.em-lightbox img { max-width: 92vw; max-height: 92vh; }

.summary { font-size: 15px; }
.em-prevnext { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 4px; }
.em-pn { position: relative; color: #555; line-height: 0; padding: 4px; }
.em-pn svg { width: 18px; height: 18px; }
.em-pn-tooltip {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: 240px;
	background: #fff;
	box-shadow: 0 6px 22px rgba(0,0,0,0.14);
	border: 1px solid #eee;
	padding: 12px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.15s ease;
	z-index: 50;
	text-align: left;
}
.em-pn:hover .em-pn-tooltip { opacity: 1; visibility: visible; }
.em-pn-tooltip img { width: 64px; float: left; margin-right: 10px; }
.em-pn-tooltip .title { display: block; font-size: 14px; font-weight: 600; color: var(--em-heading); margin-bottom: 4px; }
.em-pn-tooltip .prevnext_price { font-size: 13px; display: block; }
.em-pn-tooltip .prevnext_price del { color: #999; margin-right: 4px; }
.em-pn-tooltip .prevnext_price ins { text-decoration: none; font-weight: 700; color: #000; }

.summary .em-summary-badge { color: var(--em-accent); font-size: 13px; font-weight: 500; }
.summary h1.product_title {
	font-size: 34px;
	font-weight: 600;
	color: var(--em-heading);
	margin: 2px 0 10px;
	line-height: 1.15;
}
.summary p.price { font-size: 20px; margin: 0 0 14px; color: #000; }
.summary p.price del { color: #999; font-size: 0.82em; margin-right: 7px; }
.summary p.price ins { text-decoration: none; font-weight: 700; color: #000; }
.woocommerce-product-details__short-description { font-size: 14px; line-height: 1.55; color: var(--em-text); margin-bottom: 14px; }
.summary .stock { color: #0f834d; font-size: 14px; margin: 0 0 4px; padding-top: 12px; border-top: 1px solid #e8e8e8; }
.summary .stock::before { content: '✓ '; }
.summary .stock.out-of-stock { color: #b3261e; }
.summary .stock.out-of-stock::before { content: ''; }

.summary form.cart { display: flex; align-items: stretch; gap: 10px; margin: 14px 0 0; flex-wrap: wrap; }
.summary form.cart .quantity { margin: 0; }
.summary form.cart .qty {
	width: 64px;
	height: 46px;
	border: 1px solid #ddd;
	border-radius: 2px;
	text-align: center;
	font-family: var(--em-font);
	font-size: 15px;
}
.summary .single_add_to_cart_button {
	flex: 1;
	min-width: 180px;
	height: 46px;
	background: var(--em-accent);
	color: #fff;
	border: 0;
	border-radius: 2px;
	font-family: var(--em-font);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}
.summary .single_add_to_cart_button:hover { background: var(--em-accent-hover); color: #fff; }
.em-buy-now {
	flex-basis: 100%;
	height: 44px;
	padding: 0;
	background: #fff;
	color: var(--em-accent);
	border: 1px solid var(--em-accent);
	border-radius: 2px;
	font-family: var(--em-font);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}
.em-buy-now:hover { background: var(--em-accent); color: #fff; }

/* Light DOM product tabs (Woo markup) */
.em-tabs-wrap { padding-top: 26px; }
.woocommerce-tabs ul.tabs,
.woocommerce-tabs ul.wc-tabs {
	list-style: none;
	display: flex;
	gap: 26px;
	margin: 0 0 22px;
	padding: 0;
	border-bottom: 1px solid #eee;
}
.woocommerce-tabs ul.tabs li { margin: 0; }
.woocommerce-tabs ul.tabs li a {
	display: inline-block;
	padding: 10px 0;
	font-size: 15px;
	font-weight: 500;
	color: #777;
	border-bottom: 2px solid transparent;
	cursor: pointer;
}
.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover { color: #000; border-bottom-color: var(--em-accent); }
.woocommerce-tabs ul.tabs li a span {
	background: var(--em-accent);
	color: #fff;
	font-size: 11px;
	line-height: 16px;
	min-width: 16px;
	height: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	margin-left: 4px;
}
.woocommerce-tabs .woocommerce-Tabs-panel { display: none; font-size: 15px; max-width: 900px; }
.woocommerce-tabs .woocommerce-Tabs-panel[style*="block"],
.woocommerce-tabs .woocommerce-Tabs-panel.is-active { display: block; }
.woocommerce-tabs .woocommerce-Tabs-panel h2 { font-size: 24px; }

/* Related / upsell */
.related-wrapper,
.related,
.upsells { max-width: calc(var(--em-width) + 40px); margin: 0 auto; padding: 0 20px; }
.related-wrapper { padding-top: 40px; }
.related h2, .upsells h2, .woocommerce-columns .related h2 { font-size: 30px; font-weight: 600; color: var(--em-heading); margin-bottom: 22px; }
.related ul.products, .upsells ul.products { grid-template-columns: repeat(4, 1fr); }

/* ---------- Pages / generic ---------- */
.em-page-wrap { padding: 10px 20px 60px; }
.em-page-title { font-size: 34px; margin: 14px 0 18px; }
.em-page-wrap .entry-content { font-size: 16px; }
.em-page-wrap .entry-content h1, .em-page-wrap .entry-content h2, .em-page-wrap .entry-content h3 { color: var(--em-heading); }
.em-post { padding: 18px 0; border-bottom: 1px solid #eee; }
.em-post-title { font-size: 24px; }

/* ---------- Footer ---------- */
.em-footer {
	background: var(--em-footer-bg);
	color: #fff;
	padding: 44px 0 60px;
	margin-top: 30px;
}
.em-footer-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1.3fr;
	gap: 30px;
}
.em-footer-title {
	display: block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 16px;
}
.em-footer-links p { margin: 0 0 12px; }
.em-footer-links a, .em-footer a { color: #fff !important; font-size: 14px; text-decoration: none !important; }
.em-footer-links a:hover { color: #fff !important; text-decoration: underline !important; }
.em-footer-contact p { font-size: 14px; line-height: 1.7; margin: 0 0 16px; }
.em-payment { line-height: 0; }
.em-payment img { width: 300px; max-width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.em-featured-grid { grid-template-columns: repeat(2, 1fr); }
	.em-featured-group + .em-featured-group { display: block; }
	.em-featured-head { grid-template-columns: 1fr auto 1fr; padding-top: 50px; }
	.em-category-grid { grid-template-columns: repeat(2, 1fr); }
	.em-shop-layout { grid-template-columns: 1fr; }
	.em-shop-sidebar {
		position: static;
		display: none;
		border: 1px solid #eee;
		padding: 18px;
		margin-bottom: 18px;
	}
	.em-shop-sidebar.is-open { display: block; }
	.em-mobile-filter {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		background: #fff;
		border: 1px solid #ddd;
		border-radius: 2px;
		padding: 9px 14px;
		font-family: var(--em-font);
		font-size: 14px;
		color: var(--em-text);
		cursor: pointer;
		margin: 4px 0 14px;
	}
	.em-shop-main ul.products { grid-template-columns: repeat(3, 1fr); }
	.em-pdp { grid-template-columns: 1fr; gap: 30px; }
	.em-toolbar { flex-wrap: wrap; }
}

@media (max-width: 989px) {
	.em-header-main { padding: 10px 0; }
	.em-header-main-inner { grid-template-columns: 48px 1fr 48px; }
	.em-logo { grid-column: 2; }
	.em-logo img { height: 44px; }
	.em-header-search { display: none; }
	.em-header-icons { display: inline-flex; }
	.em-menu-toggle { display: inline-block; }
	.em-nav-row { display: none; }
	.em-nav-cart { display: none; }
	.em-mobile-search .search-field { background: var(--em-surface); }
}

@media (max-width: 768px) {
	body { font-size: 15px; }
	ul.products li.product .add_to_cart_button,
	ul.products li.product .button { display: inline-block; opacity: 1; visibility: visible; }
	.em-featured-viewall { display: none; }
	.em-featured-head { padding-top: 30px; }
	.em-featured-group + .em-featured-group { margin-top: -10px; }
	.em-featured-group ul { margin-bottom: 0; }
	.em-container { padding: 0 20px; }
	h1 { font-size: 30px; }
	h2 { font-size: 24px; }
	.em-section-title { font-size: 26px; }
	.em-hero-desktop { display: none; }
	.em-hero-mobile { display: block; }
	.em-banner-desktop { display: none; }
	.em-banner-mobile { display: block; }
	.em-featured-head {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 34px 0 16px;
	}
	.em-featured-head .em-featured-spacer { display: none; }
	.em-featured-head .em-section-title { font-size: 24px; text-align: left; }
	.em-featured-grid { grid-template-columns: repeat(2, 1fr); }
	.em-products li.product { padding: 0 8px 26px; }
	.woocommerce-loop-product__title { font-size: 14px; }
	ul.products li.product .price { font-size: 14px; }
	.em-category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.em-category-name { font-size: 16px; }
	.em-hidden-mobile { display: none; }
	.em-hidden-desk { display: block; }
	.em-category-title { text-align: center; }
	.em-about-desktop { display: none; }
	.em-about-mobile { display: block; }
	.em-about-title-mobile { font-size: 26px; }
	.em-about-text { font-size: 14px; }
	.em-footer-grid { grid-template-columns: 1fr; gap: 8px; }
	.em-footer { padding: 36px 0 44px; }
	.em-footer-col { margin-bottom: 18px; }
	.em-shop-main ul.products { grid-template-columns: repeat(2, 1fr); }
	.summary h1.product_title { font-size: 28px; }
	.em-toolbar { gap: 10px; flex-direction: row-reverse; flex-wrap: wrap; }
	.em-toolbar .em-pagination { flex-basis: 100%; margin-left: 0; }
	.em-toolbar .em-result-count { margin-right: auto; }
	.em-mobile-filter {
		background: transparent;
		border: 0;
		padding: 8px 0;
		text-transform: uppercase;
		letter-spacing: 0.3px;
		font-size: 13px;
	}
	ul.products li.product .add_to_cart_button,
	ul.products li.product .button { width: 100%; text-align: center; }
	.em-pagination .page-numbers li .page-numbers { min-width: 26px; }
	.woocommerce-tabs ul.tabs,
	.woocommerce-tabs ul.wc-tabs { flex-direction: column; gap: 0; border-bottom: 0; margin-bottom: 12px; }
	.woocommerce-tabs ul.tabs li a { width: 100%; padding: 12px 0; border-bottom: 1px solid #eee; border-bottom-width: 1px; }
	.woocommerce-tabs ul.tabs li.active a { border-bottom: 2px solid var(--em-accent); }
	.related ul.products,
	.upsells ul.products { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
	.related ul.products li.product,
	.upsells ul.products li.product { flex: 0 0 78%; scroll-snap-align: start; }
	.em-announce { padding: 7px 12px; }
	.em-announce-text { font-size: 12px; }
	.em-drawer { width: 340px; }
}

/* ==========================================================================
   FIX-20261017  响应式 / 排版修复（站点装配时发现）
   1) .em-featured-grid 的媒体查询选择器只有 1 个类（特异性 0,1,0），
      而基础规则 ".em-products, ul.products" 里的 ul.products 是 (0,1,1)，
      元素本身是 <ul class="em-products products columns-4 em-featured-grid">，
      因此 ul.products 恒胜出 → 手机/平板端错误保持 4 列（卡片仅 83px 宽）。
      修复：媒体查询内改用 .em-products.em-featured-grid（0,2,0）。
   2) 断点对齐对标站实测：>=961px 4 列；<=960px 2 列（对标站 1024=4、960=2）。
   3) 移动端保留 “View all” 按钮（对标站移动端可见）。
   4) 首页正文宽度对齐对标站内容区 1354px（对标站 .e-con-inner 实测），
      仅作用于首页正文，不影响头部与其它页面。
   ========================================================================== */
@media (max-width: 960px) {
	.em-products.em-featured-grid { grid-template-columns: repeat(2, 1fr); }
	.em-featured-group + .em-featured-group { display: block; }
}
@media (min-width: 961px) {
	.em-products.em-featured-grid { grid-template-columns: repeat(4, 1fr); }
	.em-featured-group + .em-featured-group { display: none; }
}
@media (max-width: 768px) {
	.em-featured-viewall { display: block; }
	.em-featured-head { gap: 12px; }
}
body.home .em-home-main .em-container { max-width: 1394px; }

/* ==========================================================================
   FIX-20261017b  购物车图标 / 商品标签箭头 / 导航下拉定位
   1) 商品标签页文字上压着一个箭头：来自 Storefront 的 icons.css
      `.woocommerce-tabs ul.tabs li::after { content: "\f105" }`（Font Awesome
      右箭头，Storefront 自己用于垂直标签栏）。本主题把标签改成了横向
      light-DOM 版式，箭头 position:absolute 却没有 top/left，落回文字的
      静态位置，正好压在 "Description" 的 o 上。直接关掉该伪元素。
   2) 桌面导航购物车补图标尺寸，与金额/数量在同一基线上。
   3) 导航下拉：一级菜单项原为 position:static，子菜单 absolute 的定位参考
      变成 .em-header-wrapper（sticky），left:0 直接贴到视口左边。
      已在基础规则里改为 position:relative，这里只补 hover 可见性兜底。
   ========================================================================== */
.woocommerce-tabs ul.tabs li::after,
.woocommerce-tabs ul.wc-tabs li::after { content: none; display: none; }

.em-nav-cart .cart-contents svg { width: 20px; height: 20px; flex: 0 0 auto; }
.em-nav-cart .cart-contents:hover { color: var(--em-accent-hover); }
.em-nav-cart .cart-contents .amount { line-height: 1; }

/* 二级菜单项里的展开箭头：<a> 是 flex 块级元素，紧随其后的 .em-caret 会掉到
   下一行左侧，在面板里露出一枚孤零零的箭头。改成绝对定位贴右侧。 */
.em-submenu .em-menu-item > .em-caret {
	position: absolute;
	top: 50%;
	right: 14px;
	transform: translateY(-50%);
	pointer-events: none;
}
.em-submenu .em-menu-item > a { padding-right: 34px; }
