/* ==========================================================================
   WanjaMall Shop — main.css
   Site-wide styles: reset, typography, header, mega-menu, hero grid, cards,
   sections, footer. WooCommerce-specific styling lives in shop.css.
   ========================================================================== */

/* ---------- Root tokens (overridden inline by Customizer colors) ---------- */
:root {
	--wm-primary: #1B3A5C;
	--wm-secondary: #123049;
	--wm-accent: #FF6B35;
	--wm-accent-2: #FFC72C;
	--wm-dark: #14202B;
	--wm-bg-pale: #F7F5F2;
	--wm-bg-section: #FDF8F3;
	--wm-muted: #6b7785;
	--wm-border: #E7E2DA;
	--wm-logo-height: 56px;

	--wm-font-heading: 'Poppins', 'Segoe UI', system-ui, sans-serif;
	--wm-font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

	--wm-radius-sm: 8px;
	--wm-radius: 12px;
	--wm-radius-lg: 16px;
	--wm-shadow-sm: 0 1px 3px rgba(20, 32, 43, 0.08);
	--wm-shadow: 0 8px 24px rgba(20, 32, 43, 0.1);
	--wm-shadow-lg: 0 16px 40px rgba(20, 32, 43, 0.14);
	--wm-container: 1320px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--wm-bg-pale);
	color: var(--wm-dark);
	font-family: var(--wm-font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--wm-font-heading);
	font-weight: 700;
	color: var(--wm-primary);
	line-height: 1.25;
	margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }
.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px; height: 1px; overflow: hidden;
}
svg { width: 1em; height: 1em; }

.wm-container {
	max-width: var(--wm-container);
	margin: 0 auto;
	padding: 0 20px;
}

.wm-main { display: block; min-height: 40vh; }

/* ---------- Buttons ---------- */
.wm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 26px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.95rem;
	border: 2px solid transparent;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
	white-space: nowrap;
}
.wm-btn svg { width: 18px; height: 18px; }
.wm-btn-accent {
	background: var(--wm-accent);
	color: #fff;
	box-shadow: 0 6px 16px rgba(255, 107, 53, 0.35);
}
.wm-btn-accent:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(255, 107, 53, 0.42); }
.wm-btn-outline {
	background: transparent;
	border-color: var(--wm-primary);
	color: var(--wm-primary);
}
.wm-btn-outline:hover { background: var(--wm-primary); color: #fff; }
.wm-btn-light {
	background: #fff;
	color: var(--wm-primary);
}
.wm-btn-light:hover { transform: translateY(-2px); box-shadow: var(--wm-shadow); }

/* ---------- Announcement bar ---------- */
.wm-announcement { background: var(--wm-secondary); color: #fff; font-size: 0.85rem; }
.wm-announcement-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 8px 20px;
	text-align: center;
	flex-wrap: wrap;
}
.wm-announcement-inner p { margin: 0; }
.wm-announcement-inner a { text-decoration: underline; color: var(--wm-accent-2); font-weight: 600; }

/* ---------- Header ---------- */
.wm-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: #fff;
	border-bottom: 1px solid var(--wm-border);
	box-shadow: var(--wm-shadow-sm);
	transition: padding 0.2s ease;
}
.wm-header-top {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 24px;
	padding: 16px 20px;
	transition: padding 0.2s ease;
}
.wm-header.is-scrolled .wm-header-top { padding-top: 10px; padding-bottom: 10px; }

.wm-logo { display: inline-flex; align-items: center; }
.wm-logo img,
.wm-logo-img { max-height: var(--wm-logo-height); width: auto; }
.custom-logo-link img { max-height: var(--wm-logo-height); width: auto; }

.wm-header-middle {
	display: flex;
	align-items: stretch;
	gap: 0;
	max-width: 760px;
	width: 100%;
	height: 50px;
	margin: 0 auto;
}

/* Categories mega-menu trigger */
.wm-categories-trigger-wrap { position: relative; flex-shrink: 0; }
.wm-categories-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 100%;
	padding: 0 18px;
	background: var(--wm-accent);
	color: #fff;
	border: none;
	border-radius: 10px 0 0 10px;
	font-weight: 600;
	font-size: 0.92rem;
	white-space: nowrap;
}
.wm-categories-btn svg { width: 18px; height: 18px; }
.wm-categories-btn svg:last-child { width: 14px; height: 14px; transition: transform 0.15s ease; }
.wm-categories-trigger-wrap.is-open .wm-categories-btn svg:last-child { transform: rotate(180deg); }

.wm-categories-panel {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	width: 320px;
	max-height: 70vh;
	overflow-y: auto;
	background: #fff;
	border-radius: var(--wm-radius);
	box-shadow: var(--wm-shadow-lg);
	padding: 10px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
	z-index: 70;
}
.wm-categories-trigger-wrap.is-open .wm-categories-panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.wm-mega-cat-list li a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: var(--wm-radius-sm);
	color: var(--wm-dark);
	font-size: 0.92rem;
}
.wm-mega-cat-list li a:hover { background: var(--wm-bg-section); color: var(--wm-accent); }
.wm-mega-cat-icon {
	width: 34px;
	height: 34px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--wm-bg-section);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wm-accent);
	flex-shrink: 0;
}
.wm-mega-cat-icon img { width: 100%; height: 100%; object-fit: cover; }
.wm-mega-cat-icon svg { width: 18px; height: 18px; }
.wm-mega-cat-name { flex: 1; }
.wm-mega-cat-count { color: var(--wm-muted); font-size: 0.8rem; }

/* Search — dominant header element */
.wm-search-form {
	display: flex;
	flex: 1;
	background: #fff;
	border-radius: 0 10px 10px 0;
	overflow: hidden;
}
.wm-search-input {
	flex: 1;
	border: none;
	outline: none;
	padding: 0 16px;
	font-size: 0.95rem;
	color: var(--wm-dark);
	min-width: 0;
}
.wm-search-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	background: var(--wm-accent);
	color: #fff;
	border: none;
	padding: 0 22px;
	font-weight: 600;
	font-size: 0.9rem;
}
.wm-search-btn svg { width: 18px; height: 18px; }
.wm-search-btn:hover { background: #e85a26; }

/* Header actions */
.wm-header-actions {
	display: flex;
	align-items: center;
	gap: 18px;
	color: var(--wm-dark);
	justify-self: end;
}
.wm-header-action { display: flex; align-items: center; gap: 8px; color: var(--wm-dark); position: relative; }
.wm-header-action svg { width: 22px; height: 22px; }
.wm-header-action-text { display: flex; flex-direction: column; line-height: 1.2; }
.wm-header-action-text small { font-size: 0.7rem; opacity: 0.75; }
.wm-header-action-text strong { font-size: 0.85rem; }
.wm-header-action--whatsapp svg { color: #25D366; }
.wm-cart-link { position: relative; }
.wm-cart-count {
	position: absolute;
	top: -8px;
	right: -10px;
	background: var(--wm-accent-2);
	color: var(--wm-dark);
	font-size: 0.68rem;
	font-weight: 700;
	min-width: 18px;
	height: 18px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
}
.wm-mobile-toggle {
	display: none;
	background: none;
	border: none;
	color: var(--wm-dark);
}
.wm-mobile-toggle svg { width: 26px; height: 26px; }

/* Primary nav */
.wm-primary-nav { background: var(--wm-secondary); }
.wm-primary-nav-list { display: flex; gap: 4px; flex-wrap: wrap; }
.wm-primary-nav-list li a,
.wm-primary-nav-list li > * {
	display: block;
	padding: 12px 16px;
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.9rem;
	font-weight: 500;
}
.wm-primary-nav-list li a:hover { color: var(--wm-accent-2); }
.wm-primary-nav-list li.menu-item-has-children { position: relative; }
.wm-primary-nav-list .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: #fff;
	border-radius: var(--wm-radius-sm);
	box-shadow: var(--wm-shadow-lg);
	padding: 8px;
	z-index: 65;
}
.wm-primary-nav-list li.menu-item-has-children:hover .sub-menu,
.wm-primary-nav-list li.menu-item-has-children:focus-within .sub-menu { display: block; }
.wm-primary-nav-list .sub-menu li a { color: var(--wm-dark); padding: 8px 12px; border-radius: 6px; }
.wm-primary-nav-list .sub-menu li a:hover { background: var(--wm-bg-section); color: var(--wm-accent); }

/* Mobile drawer */
.wm-mobile-drawer-backdrop {
	position: fixed; inset: 0;
	background: rgba(20, 32, 43, 0.5);
	z-index: 90;
	opacity: 0; visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s;
}
.wm-mobile-drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.wm-mobile-drawer {
	position: fixed;
	top: 0; left: 0; bottom: 0;
	width: min(340px, 86vw);
	background: #fff;
	z-index: 95;
	overflow-y: auto;
	transform: translateX(-100%);
	transition: transform 0.25s ease;
	padding: 18px;
}
.wm-mobile-drawer.is-open { transform: translateX(0); }
.wm-mobile-drawer-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.wm-mobile-drawer-logo { max-height: 36px; }
.wm-mobile-drawer-close { background: none; border: none; color: var(--wm-dark); }
.wm-mobile-drawer-close svg { width: 22px; height: 22px; }
.wm-search-form--mobile { margin-bottom: 18px; border: 1px solid var(--wm-border); border-radius: 10px; }
.wm-mobile-nav-list li a { display: block; padding: 12px 6px; border-bottom: 1px solid var(--wm-border); color: var(--wm-dark); font-weight: 600; }
.wm-mobile-drawer-categories { margin-top: 18px; }
.wm-mobile-drawer-categories h3 { font-size: 0.95rem; margin-bottom: 8px; }
.wm-mobile-drawer-contact { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--wm-border); }
.wm-mobile-drawer-contact a { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.wm-mobile-drawer-contact svg { width: 18px; height: 18px; color: var(--wm-accent); }

/* ---------- Section shell ---------- */
.wm-section { padding: 64px 0; }
.wm-section-alt { background: var(--wm-bg-section); }
.wm-section-heading { text-align: center; max-width: 620px; margin: 0 auto 36px; }
.wm-section-heading h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.wm-section-heading p { color: var(--wm-muted); margin: 0; }
.wm-section-footer { text-align: center; margin-top: 32px; }

/* ---------- Hero promo grid ---------- */
.wm-hero-grid-section { padding: 24px 0 8px; }
.wm-hero-grid {
	display: grid;
	grid-template-columns: 65% 1fr;
	gap: 16px;
}
.wm-hero-grid-side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.wm-promo-tile {
	position: relative;
	display: block;
	border-radius: var(--wm-radius-lg);
	overflow: hidden;
	background-color: var(--wm-primary);
	background-size: cover;
	background-position: center;
	min-height: 380px;
}
.wm-promo-tile--small { min-height: 182px; }
.wm-promo-tile-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(18,48,73,0.05) 0%, rgba(18,48,73,0.75) 100%);
}
.wm-promo-tile-content {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 28px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}
.wm-promo-tile--small .wm-promo-tile-content { padding: 18px; gap: 6px; }
.wm-promo-tile-heading {
	font-family: var(--wm-font-heading);
	font-weight: 800;
	font-size: clamp(1.4rem, 2.6vw, 2rem);
	color: #fff;
	max-width: 22ch;
}
.wm-promo-tile-heading--sm { font-size: 1.15rem; max-width: 18ch; }
.wm-promo-tile-sub { color: rgba(255,255,255,0.88); max-width: 40ch; font-size: 0.95rem; }
.wm-promo-tile-btn { pointer-events: none; }
.wm-promo-tile-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--wm-accent-2);
	font-weight: 700;
	font-size: 0.9rem;
}
.wm-promo-tile:hover .wm-promo-tile-heading { text-decoration: underline; }

/* ---------- Trust badges ---------- */
.wm-trust-strip { padding: 40px 0; background: #fff; border-bottom: 1px solid var(--wm-border); }
.wm-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.wm-trust-item { display: flex; align-items: center; gap: 14px; }
.wm-trust-icon {
	width: 52px; height: 52px;
	border-radius: 50%;
	background: var(--wm-bg-section);
	color: var(--wm-accent);
	display: flex; align-items: center; justify-content: center;
	flex-shrink: 0;
}
.wm-trust-icon svg { width: 24px; height: 24px; }
.wm-trust-item div { display: flex; flex-direction: column; }
.wm-trust-item strong { color: var(--wm-primary); font-size: 0.95rem; }
.wm-trust-item span { color: var(--wm-muted); font-size: 0.85rem; }

/* ---------- Category grid ---------- */
.wm-category-section { background: #fff; }
.wm-category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.wm-cat-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
	padding: 18px 12px;
	border-radius: var(--wm-radius);
	background: var(--wm-bg-pale);
	border: 1px solid var(--wm-border);
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.wm-cat-card:hover { transform: translateY(-4px); box-shadow: var(--wm-shadow); border-color: var(--wm-accent); }
.wm-cat-card-media {
	width: 88px; height: 88px;
	border-radius: 50%;
	overflow: hidden;
	background: linear-gradient(135deg, var(--wm-accent) 0%, var(--wm-accent-2) 100%);
	display: flex; align-items: center; justify-content: center;
}
.wm-cat-card-media img { width: 100%; height: 100%; object-fit: cover; }
.wm-cat-card-placeholder { color: #fff; display: flex; align-items: center; justify-content: center; }
.wm-cat-card-placeholder svg { width: 34px; height: 34px; }
.wm-cat-card-name { font-weight: 700; font-size: 0.92rem; color: var(--wm-primary); }
.wm-cat-card-count { font-size: 0.78rem; color: var(--wm-muted); }

/* ---------- Product grid + card (used on homepage sections) ---------- */
.wm-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.wm-card {
	background: #fff;
	border-radius: var(--wm-radius);
	overflow: hidden;
	border: 1px solid var(--wm-border);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	display: flex;
	flex-direction: column;
}
.wm-card:hover { transform: translateY(-5px); box-shadow: var(--wm-shadow); }
.wm-card-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--wm-bg-section); }
.wm-card-img-link { display: block; width: 100%; height: 100%; }
.wm-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.wm-card:hover .wm-card-img { transform: scale(1.07); }
.wm-badge {
	position: absolute; top: 12px; left: 12px;
	font-size: 0.72rem; font-weight: 700;
	padding: 4px 10px; border-radius: 999px;
	color: #fff;
}
.wm-badge-sale { background: var(--wm-accent); }
.wm-wishlist-btn {
	position: absolute; top: 10px; right: 10px;
	width: 34px; height: 34px;
	border-radius: 50%;
	background: rgba(255,255,255,0.92);
	border: none;
	display: flex; align-items: center; justify-content: center;
	color: var(--wm-muted);
	transition: color 0.15s ease, transform 0.15s ease;
}
.wm-wishlist-btn svg { width: 17px; height: 17px; }
.wm-wishlist-btn:hover { transform: scale(1.08); }
.wm-wishlist-btn.is-active { color: var(--wm-accent); }
.wm-wishlist-btn.is-active svg { fill: var(--wm-accent); }

.wm-card-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.wm-card-eyebrow { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--wm-accent); font-weight: 700; }
.wm-card-title { font-size: 0.95rem; margin: 0; font-family: var(--wm-font-body); font-weight: 600; color: var(--wm-dark); }
.wm-card-title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wm-card-title a:hover { color: var(--wm-accent); }

.wm-rating { display: flex; align-items: center; gap: 6px; }
.wm-stars { display: flex; gap: 2px; }
.wm-star { position: relative; width: 15px; height: 15px; display: inline-block; }
.wm-star svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wm-star-bg { fill: var(--wm-border); }
.wm-star-fg { fill: var(--wm-accent-2); }
.wm-rating-count { font-size: 0.75rem; color: var(--wm-muted); }

.wm-card-price { font-weight: 700; color: var(--wm-primary); font-size: 1.02rem; margin-top: 2px; }
.wm-card-price del { color: var(--wm-muted); font-weight: 400; font-size: 0.85rem; margin-right: 6px; }
.wm-card-price ins { text-decoration: none; color: var(--wm-accent); }

.wm-card-action { margin-top: auto; padding-top: 8px; }
.wm-card-action a.button,
.wm-card-action a.add_to_cart_button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 10px 14px;
	border-radius: 999px;
	background: var(--wm-primary);
	color: #fff;
	font-weight: 600;
	font-size: 0.88rem;
	border: none;
	transition: background 0.15s ease;
}
.wm-card-action a.button:hover,
.wm-card-action a.add_to_cart_button:hover { background: var(--wm-accent); }
.wm-card-action a.button.loading { opacity: 0.7; }
.wm-card-action a.added_to_cart { display: inline-block; margin-top: 6px; font-size: 0.78rem; text-align: center; width: 100%; color: var(--wm-accent); font-weight: 600; }

/* ---------- Sale banner ---------- */
.wm-sale-banner {
	background: linear-gradient(120deg, var(--wm-accent) 0%, #ff8c5c 100%);
	background-size: cover;
	background-position: center;
	color: #fff;
	padding: 70px 0;
	position: relative;
}
.wm-sale-banner::before {
	content: "";
	position: absolute; inset: 0;
	background: rgba(18,48,73,0.25);
}
.wm-sale-banner-inner { position: relative; text-align: center; max-width: 620px; margin: 0 auto; }
.wm-sale-banner-inner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.wm-sale-banner-inner p { color: rgba(255,255,255,0.92); margin-bottom: 22px; }

/* ---------- Feature service ---------- */
.wm-feature-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.wm-feature-media img { border-radius: var(--wm-radius-lg); box-shadow: var(--wm-shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.wm-feature-copy h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.wm-feature-copy p { color: var(--wm-muted); margin-bottom: 22px; }

/* ---------- Testimonials ---------- */
.wm-testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.wm-testimonial-card {
	background: #fff;
	border-radius: var(--wm-radius);
	padding: 26px;
	border: 1px solid var(--wm-border);
}
.wm-testimonial-quote { font-style: italic; color: var(--wm-dark); margin-bottom: 16px; }
.wm-testimonial-author { display: flex; flex-direction: column; }
.wm-testimonial-author strong { color: var(--wm-primary); }
.wm-testimonial-author span { color: var(--wm-muted); font-size: 0.85rem; }

/* ---------- Blog teaser (homepage) ---------- */
.wm-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.wm-blog-card {
	background: #fff;
	border-radius: var(--wm-radius);
	overflow: hidden;
	border: 1px solid var(--wm-border);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wm-blog-card:hover { transform: translateY(-4px); box-shadow: var(--wm-shadow); }
.wm-blog-card-media { display: block; aspect-ratio: 16/10.5; overflow: hidden; background: var(--wm-bg-section); }
.wm-blog-card-media img { width: 100%; height: 100%; object-fit: cover; }
.wm-blog-card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--wm-accent); }
.wm-blog-card-placeholder svg { width: 40px; height: 40px; }
.wm-blog-card-body { padding: 18px; }
.wm-blog-card-body h3 { font-size: 1.02rem; margin-bottom: 8px; }
.wm-blog-card-body h3 a:hover { color: var(--wm-accent); }
.wm-blog-card-body p { color: var(--wm-muted); font-size: 0.9rem; }
.wm-read-more { display: inline-flex; align-items: center; gap: 6px; color: var(--wm-accent); font-weight: 700; font-size: 0.86rem; }
.wm-read-more svg { width: 14px; height: 14px; }

/* ---------- Newsletter ---------- */
.wm-newsletter { background: var(--wm-primary); color: #fff; padding: 56px 0; }
.wm-newsletter-inner { text-align: center; max-width: 620px; margin: 0 auto; }
.wm-newsletter-copy h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.wm-newsletter-copy p { color: rgba(255,255,255,0.85); margin-bottom: 22px; }
.wm-newsletter-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.wm-newsletter-form input[type="email"] {
	flex: 1;
	padding: 13px 16px;
	border-radius: 999px;
	border: none;
	outline: none;
}
.wm-newsletter-success { color: var(--wm-accent-2); font-weight: 600; }
.wm-newsletter-error { color: #ffb4a3; font-size: 0.85rem; margin-top: 8px; }

/* ---------- Footer ---------- */
.wm-footer { background: var(--wm-secondary); color: rgba(255,255,255,0.85); padding-top: 56px; }
.wm-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.wm-footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.wm-footer-logo img { max-height: 40px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.wm-footer-about p { font-size: 0.9rem; color: rgba(255,255,255,0.72); }
.wm-footer-social { display: flex; gap: 12px; margin-top: 14px; }
.wm-footer-social a {
	width: 36px; height: 36px;
	border-radius: 50%;
	background: rgba(255,255,255,0.1);
	display: flex; align-items: center; justify-content: center;
	color: #fff;
}
.wm-footer-social a:hover { background: var(--wm-accent); }
.wm-footer-social svg { width: 16px; height: 16px; }
.wm-footer-list li,
.wm-footer-nav-list li { margin-bottom: 10px; }
.wm-footer-list a,
.wm-footer-nav-list a { font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.wm-footer-list a:hover,
.wm-footer-nav-list a:hover { color: var(--wm-accent-2); }
.wm-footer-contact-list a { display: flex; align-items: center; gap: 8px; }
.wm-footer-contact-list svg { width: 15px; height: 15px; color: var(--wm-accent-2); }
.wm-footer-address { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.wm-footer-trust-text { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin-top: 14px; }

.wm-footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 0; }
.wm-footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.wm-footer-copyright { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin: 0; }
.wm-footer-credit { display: block; opacity: 0.8; }
.wm-footer-payment-icons { display: flex; gap: 10px; color: rgba(255,255,255,0.55); }
.wm-footer-payment-icons svg { width: 20px; height: 20px; }

/* ---------- Blog templates (index/archive/single/page) ---------- */
.wm-page-header { text-align: center; padding: 40px 0 20px; }
.wm-blog-page { padding: 48px 0 80px; }
.wm-blog-page-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.wm-blog-list { display: grid; gap: 24px; }
.wm-blog-list-item { display: grid; grid-template-columns: 260px 1fr; gap: 22px; background: #fff; border: 1px solid var(--wm-border); border-radius: var(--wm-radius); overflow: hidden; }
.wm-blog-list-media { display: block; overflow: hidden; }
.wm-blog-list-media img { width: 100%; height: 100%; object-fit: cover; }
.wm-blog-list-body { padding: 18px 18px 18px 0; display: flex; flex-direction: column; justify-content: center; }
.wm-blog-list-date { font-size: 0.78rem; color: var(--wm-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.wm-blog-list-body h2 { font-size: 1.2rem; margin: 6px 0 8px; }
.wm-blog-list-body h2 a:hover { color: var(--wm-accent); }
.wm-blog-list-body p { color: var(--wm-muted); font-size: 0.92rem; }
.wm-pagination { margin-top: 32px; display: flex; justify-content: center; gap: 16px; }
.wm-pagination .page-numbers { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--wm-radius-sm); background: #fff; border: 1px solid var(--wm-border); }
.wm-pagination .page-numbers.current { background: var(--wm-accent); color: #fff; border-color: var(--wm-accent); }
.wm-widget { background: #fff; border: 1px solid var(--wm-border); border-radius: var(--wm-radius); padding: 20px; margin-bottom: 20px; }
.wm-widget-title { font-size: 1rem; margin-bottom: 12px; }

.wm-single-post-header { padding: 40px 0 16px; text-align: center; }
.wm-single-post-meta { display: flex; justify-content: center; gap: 14px; color: var(--wm-muted); font-size: 0.85rem; flex-wrap: wrap; }
.wm-single-post-thumb { margin-bottom: 28px; border-radius: var(--wm-radius-lg); overflow: hidden; }
.wm-single-post-content { max-width: 780px; margin: 0 auto; }
.wm-single-post-content p { margin-bottom: 1.2em; }
.wm-single-post-content img { border-radius: var(--wm-radius); }
.wm-single-post-tags { max-width: 780px; margin: 24px auto 0; color: var(--wm-muted); font-size: 0.85rem; }
.wm-post-nav { max-width: 780px; margin: 32px auto 0; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--wm-border); padding-top: 20px; }
.wm-post-nav a { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.wm-comments-wrap { max-width: 780px; margin: 40px auto 0; }

.wm-page-content { padding: 48px 0 80px; }
.wm-single-page { max-width: 860px; margin: 0 auto; }
.wm-page-thumb { margin-bottom: 24px; border-radius: var(--wm-radius-lg); overflow: hidden; }

/* ---------- 404 ---------- */
.wm-404 { padding: 80px 0; }
.wm-404-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.wm-404-code { font-family: var(--wm-font-heading); font-size: 5rem; font-weight: 800; color: var(--wm-border); display: block; }
.wm-404-inner p { color: var(--wm-muted); margin-bottom: 24px; }
.wm-search-form--404 { margin-bottom: 24px; border: 1px solid var(--wm-border); border-radius: 999px; overflow: hidden; }
.wm-404-ctas { display: flex; gap: 14px; justify-content: center; margin-bottom: 50px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
	.wm-hero-grid { grid-template-columns: 1fr; }
	.wm-hero-grid-side { grid-template-rows: 1fr; grid-template-columns: 1fr 1fr; }
	.wm-category-grid { grid-template-columns: repeat(4, 1fr); }
	.wm-product-grid { grid-template-columns: repeat(3, 1fr); }
	.wm-trust-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
	.wm-feature-inner { grid-template-columns: 1fr; }
	.wm-testimonial-grid { grid-template-columns: repeat(2, 1fr); }
	.wm-blog-grid { grid-template-columns: repeat(2, 1fr); }
	.wm-blog-page-layout { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
	.wm-header-top { grid-template-columns: auto 1fr auto; gap: 12px; }
	.wm-header-middle { display: none; }
	.wm-header-action-text { display: none; }
	.wm-primary-nav { display: none; }
	.wm-mobile-toggle { display: inline-flex; }
	.wm-category-grid { grid-template-columns: repeat(3, 1fr); }
	.wm-product-grid { grid-template-columns: repeat(2, 1fr); }
	.wm-blog-list-item { grid-template-columns: 1fr; }
	.wm-blog-list-media { aspect-ratio: 16/9; }
	.wm-blog-list-body { padding: 16px; }
}

@media (max-width: 600px) {
	.wm-container { padding: 0 16px; }
	.wm-hero-grid-side { grid-template-columns: 1fr; }
	.wm-promo-tile { min-height: 280px; }
	.wm-promo-tile--small { min-height: 150px; }
	.wm-trust-grid { grid-template-columns: 1fr; }
	.wm-category-grid { grid-template-columns: repeat(2, 1fr); }
	.wm-product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.wm-testimonial-grid { grid-template-columns: 1fr; }
	.wm-blog-grid { grid-template-columns: 1fr; }
	.wm-footer-grid { grid-template-columns: 1fr; }
	.wm-newsletter-form { flex-direction: column; }
	.wm-404-ctas { flex-direction: column; }
	.wm-section { padding: 44px 0; }
}
