/* NollMade base — tokens, shell, header, footer.  (Brand colors arrive as
   :root vars via wp_add_inline_style: --nm-red, --nm-red-dark, --nm-cream, --nm-ink) */

:root {
	--nm-white: #ffffff;
	--nm-paper: #fffdf9;
	--nm-line: #ece4d8;
	--nm-muted: #6d675f;
	--nm-star: #f5a623;
	--nm-radius: 16px;
	--nm-radius-sm: 10px;
	--nm-shadow: 0 2px 6px rgba(41, 37, 36, .06), 0 10px 28px rgba(41, 37, 36, .07);
	--nm-font-display: "Fraunces", Georgia, serif;
	--nm-font-body: "Nunito Sans", -apple-system, "Segoe UI", sans-serif;
	--nm-container: 1440px;
}

/* --- Reset-ish --- */
*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0;
	font-family: var(--nm-font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--nm-ink);
	background: var(--nm-paper);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--nm-font-display); line-height: 1.15; margin: 0 0 .4em; font-weight: 600; }
p { margin: 0 0 1em; }

.nm-container { max-width: var(--nm-container); margin-inline: auto; padding-inline: 24px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	clip-path: inset(50%);
	overflow: hidden;
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 999;
	width: auto; height: auto; clip-path: none;
	background: var(--nm-white); color: var(--nm-ink);
	padding: 10px 16px; border-radius: 8px; box-shadow: var(--nm-shadow);
}

/* --- Buttons --- */
.nm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--nm-font-body); font-weight: 700; font-size: 15px;
	padding: 13px 26px; border-radius: 999px; text-decoration: none;
	border: 2px solid transparent; cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.nm-btn:active { transform: translateY(1px); }
.nm-btn--primary { background: var(--nm-red); color: var(--nm-white); }
.nm-btn--primary:hover { background: var(--nm-red-dark); }
.nm-btn--outline { background: transparent; color: var(--nm-ink); border-color: var(--nm-ink); }
.nm-btn--outline:hover { border-color: var(--nm-red); color: var(--nm-red); }

/* --- Topbar --- */
.nm-topbar { background: var(--nm-red); color: var(--nm-white); font-size: 13.5px; font-weight: 700; }
.nm-topbar__inner { display: flex; align-items: center; justify-content: center; gap: 14px; padding-block: 8px; text-align: center; flex-wrap: wrap; }
.nm-topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.nm-topbar .nm-icon { width: 17px; height: 17px; }
.nm-topbar__star { opacity: .9; font-size: 11px; }

/* --- Header --- */
.nm-header { background: var(--nm-white); border-bottom: 1px solid var(--nm-line); position: sticky; top: 0; z-index: 50; }
.nm-header__inner { display: flex; align-items: center; gap: 22px; padding-block: 14px; }
.nm-header__brand { flex: 0 0 auto; }
.nm-header__brand img { max-height: 52px; width: auto; }
.nm-logo-text {
	font-family: var(--nm-font-display); font-weight: 700; font-size: 30px;
	color: var(--nm-red); text-decoration: none; letter-spacing: -.5px; position: relative;
}
.nm-logo-text__spark { font-size: 14px; vertical-align: super; margin-left: 2px; }
.nm-logo-text--footer { color: var(--nm-white); }

.nm-nav { flex: 1 1 auto; }
.nm-nav__list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.nm-nav__list a {
	display: block; padding: 8px 11px; text-decoration: none;
	font-weight: 700; font-size: 14.5px; color: var(--nm-ink); border-radius: 8px;
	transition: color .12s ease, background .12s ease;
}
.nm-nav__list a:hover { color: var(--nm-red); background: var(--nm-cream); }
.nm-nav__list .sub-menu {
	list-style: none; margin: 0; padding: 8px; display: none; position: absolute;
	background: var(--nm-white); border: 1px solid var(--nm-line); border-radius: var(--nm-radius-sm);
	box-shadow: var(--nm-shadow); min-width: 180px; z-index: 60;
}
.nm-nav__list li { position: relative; }
.nm-nav__list li:hover > .sub-menu, .nm-nav__list li:focus-within > .sub-menu { display: block; }

.nm-header__actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.nm-search { display: flex; align-items: center; background: var(--nm-cream); border: 1px solid var(--nm-line); border-radius: 999px; padding: 2px 4px 2px 16px; }
.nm-search__input { border: 0; background: transparent; font-family: inherit; font-size: 14px; width: 170px; outline: none; color: var(--nm-ink); }
.nm-search__input::placeholder { color: var(--nm-muted); }
.nm-search__btn { border: 0; background: transparent; cursor: pointer; color: var(--nm-muted); display: grid; place-items: center; padding: 8px; }
.nm-search__btn:hover { color: var(--nm-red); }

.nm-header__link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 700; font-size: 14px; position: relative; }
.nm-header__link:hover { color: var(--nm-red); }
.nm-icon { width: 21px; height: 21px; }
.nm-cart-count {
	position: absolute; top: -7px; left: 12px;
	min-width: 18px; height: 18px; padding-inline: 4px;
	background: var(--nm-red); color: var(--nm-white);
	border-radius: 999px; font-size: 11px; font-weight: 800;
	display: none; align-items: center; justify-content: center; line-height: 1;
}
.nm-cart-count.has-items { display: inline-flex; }

/* Mobile nav */
.nm-nav-toggle { display: none; border: 0; background: transparent; cursor: pointer; padding: 8px; margin-left: auto; }
.nm-nav-toggle__bar { display: block; width: 24px; height: 3px; background: var(--nm-ink); border-radius: 2px; margin: 5px 0; transition: transform .18s ease, opacity .18s ease; }
.nm-nav-toggle[aria-expanded="true"] .nm-nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nm-nav-toggle[aria-expanded="true"] .nm-nav-toggle__bar:nth-child(2) { opacity: 0; }
.nm-nav-toggle[aria-expanded="true"] .nm-nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 980px) {
	.nm-nav-toggle { display: block; order: 3; }
	.nm-header__actions { order: 2; margin-left: auto; }
	.nm-search { display: none; }
	.nm-header__link-label { display: none; }
	.nm-nav { display: none; flex-basis: 100%; order: 4; }
	.nm-nav.is-open { display: block; }
	.nm-nav__list { flex-direction: column; gap: 0; padding-block: 8px; }
	.nm-nav__list .sub-menu { display: block; position: static; box-shadow: none; border: 0; padding-left: 18px; }
	.nm-header__inner { flex-wrap: wrap; }
}

/* --- Generic page shell --- */
.nm-page { padding-block: 48px; }
.nm-entry__title { font-size: clamp(30px, 4vw, 42px); }

/* --- Product card (shared: homepage grids + shop loop + related products) --- */
.nm-product-card {
	background: var(--nm-white); border: 1px solid var(--nm-line); border-radius: var(--nm-radius);
	padding: 12px 12px 16px; box-shadow: var(--nm-shadow);
	display: flex; flex-direction: column;
	transition: transform .15s ease, box-shadow .15s ease;
}
.nm-product-card:hover { transform: translateY(-3px); }
.nm-product-card__media { display: block; position: relative; border-radius: var(--nm-radius-sm); overflow: hidden; background: var(--nm-cream); margin-bottom: 12px; }
.nm-product-card__media img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .25s ease; }
.nm-product-card:hover .nm-product-card__media img { transform: scale(1.04); }
.nm-product-card__title {
	font-family: var(--nm-font-body); font-size: 14px; font-weight: 700; line-height: 1.35; margin: 0 0 6px;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	min-height: calc(2 * 1.35em);
}
.nm-product-card__title a { text-decoration: none; }
.nm-product-card__title a:hover { color: var(--nm-red); }
.nm-product-card__rating { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.nm-product-card__rating .star-rating { font-size: 12px; }
.nm-review-count { font-size: 12px; color: var(--nm-muted); }
.nm-product-card__meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.nm-product-card__price { font-weight: 800; font-size: 15px; }
.nm-product-card__price del { color: var(--nm-muted); font-weight: 600; margin-right: 5px; }
.nm-product-card__price ins { text-decoration: none; color: var(--nm-red); }
.nm-swatches { display: inline-flex; gap: 5px; }
.nm-swatch { width: 13px; height: 13px; border-radius: 999px; border: 1.5px solid rgba(41,37,36,.18); }
.nm-badge {
	position: absolute; top: 10px; left: 10px; z-index: 2;
	font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
	padding: 4px 10px; border-radius: 999px;
}
.nm-badge--sale { background: var(--nm-red); color: var(--nm-white); }
.nm-product-card__cta { margin-top: 12px; }
.nm-product-card__cta .button {
	display: block; width: 100%; text-align: center;
	background: var(--nm-red); color: var(--nm-white);
	border: 0; border-radius: 999px; padding: 10px 16px;
	font-family: var(--nm-font-body); font-weight: 800; font-size: 13.5px;
	text-decoration: none; cursor: pointer; transition: background .15s ease;
}
.nm-product-card__cta .button:hover { background: var(--nm-red-dark); }
.nm-product-card__cta .added_to_cart { display: block; text-align: center; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--nm-red); text-decoration: none; }

/* --- Footer --- */
.nm-footer { background: var(--nm-red-dark); color: var(--nm-white); margin-top: 72px; }
.nm-footer a { color: var(--nm-white); }
.nm-footer__grid {
	display: grid; gap: 36px;
	grid-template-columns: 1.4fr .8fr .8fr .8fr 1.4fr;
	padding-block: 52px 36px;
}
.nm-footer__tagline { font-size: 14px; opacity: .92; max-width: 260px; margin-top: 10px; }
.nm-footer__heading { font-family: var(--nm-font-body); font-size: 15px; font-weight: 800; text-transform: none; margin-bottom: 12px; }
.nm-footer__list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.nm-footer__list a { text-decoration: none; opacity: .9; display: inline-block; padding-block: 4px; }
.nm-footer__list a:hover { opacity: 1; text-decoration: underline; }
.nm-social { display: flex; gap: 12px; margin-top: 16px; }
.nm-social__link { display: grid; place-items: center; width: 34px; height: 34px; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 999px; transition: background .15s ease; }
.nm-social__link:hover { background: var(--nm-red); border-color: transparent; }
.nm-social__link .nm-icon { width: 16px; height: 16px; }

.nm-footer__nl-sub { font-size: 13.5px; opacity: .92; }
.nm-nl-form { display: flex; gap: 8px; margin-top: 6px; }
.nm-nl-form__input {
	flex: 1 1 auto; min-width: 0; border: 0; border-radius: 999px;
	padding: 11px 18px; font-family: inherit; font-size: 14px; color: var(--nm-ink);
}
.nm-nl-form__btn {
	border: 0; border-radius: 999px; padding: 11px 20px; cursor: pointer;
	background: var(--nm-white); color: var(--nm-red); font-weight: 800; font-family: inherit; font-size: 14px;
	transition: transform .1s ease;
}
.nm-nl-form__btn:hover { transform: translateY(-1px); }
.nm-nl-form__btn[disabled] { opacity: .6; cursor: wait; }
.nm-nl-form__hp { position: absolute; left: -9999px; }
.nm-nl-form__msg { font-size: 13.5px; font-weight: 700; margin-top: 10px; min-height: 1em; }

.nm-footer__legal { border-top: 1px solid rgba(255, 255, 255, .25); }
.nm-footer__legal-inner { display: flex; justify-content: flex-end; gap: 12px; padding-block: 16px; font-size: 13px; }
.nm-footer__legal a { text-decoration: none; opacity: .9; }
.nm-footer__legal a:hover { text-decoration: underline; }

@media (max-width: 980px) {
	.nm-footer__grid { grid-template-columns: 1fr 1fr; }
	.nm-footer__brand, .nm-footer__newsletter { grid-column: 1 / -1; }
	.nm-footer__legal-inner { justify-content: center; }
}

/* --- Woo shell niceties (until shop pages get real templates) --- */
.nm-woo-wrap .woocommerce-breadcrumb { font-size: 13px; color: var(--nm-muted); }
.nm-woo-wrap .button, .nm-woo-wrap button.button {
	background: var(--nm-red); color: var(--nm-white); border-radius: 999px; font-weight: 700;
}
.nm-woo-wrap .button:hover { background: var(--nm-red-dark); color: var(--nm-white); }
.woocommerce-store-notice { background: var(--nm-red-dark); }

/* --- Star ratings (Woo markup) --- */
.star-rating { color: var(--nm-star); }

/* --- Cart drawer --- */
.nm-drawer-overlay {
	position: fixed; inset: 0; z-index: 200;
	background: rgba(41, 37, 36, .5); opacity: 0; transition: opacity .2s ease;
}
.nm-drawer-overlay.is-open { opacity: 1; }
.nm-cart-drawer {
	position: fixed; top: 0; right: 0; bottom: 0; z-index: 201;
	width: min(400px, 92vw); background: var(--nm-paper);
	box-shadow: -12px 0 40px rgba(41, 37, 36, .18);
	transform: translateX(100%); transition: transform .22s ease;
	display: flex; flex-direction: column;
}
.nm-cart-drawer.is-open { transform: translateX(0); }
body.nm-drawer-lock { overflow: hidden; }
.nm-cart-drawer__head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 18px 22px; border-bottom: 1px solid var(--nm-line);
}
.nm-cart-drawer__title { font-size: 22px; margin: 0; }
.nm-cart-drawer__close {
	border: 0; background: transparent; cursor: pointer;
	font-size: 30px; line-height: 1; color: var(--nm-muted); padding: 2px 8px;
}
.nm-cart-drawer__close:hover { color: var(--nm-red); }
.nm-cart-drawer__body { flex: 1; overflow-y: auto; padding: 18px 22px; }

/* Mini cart (Woo widget markup inside the drawer) */
.nm-cart-drawer .woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.nm-cart-drawer .woocommerce-mini-cart-item {
	display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center;
	padding: 12px 0; border-bottom: 1px solid var(--nm-line); position: relative;
}
.nm-cart-drawer .woocommerce-mini-cart-item a { text-decoration: none; font-weight: 700; font-size: 14px; }
.nm-cart-drawer .woocommerce-mini-cart-item img {
	width: 64px; height: 64px; object-fit: cover; border-radius: var(--nm-radius-sm);
	background: var(--nm-cream); float: none; margin: 0; grid-column: 1; grid-row: 1;
}
.nm-cart-drawer .woocommerce-mini-cart-item a:not(.remove) { grid-column: 2; display: block; }
.nm-cart-drawer .woocommerce-mini-cart-item .quantity { grid-column: 2; font-size: 13px; color: var(--nm-muted); display: block; }
.nm-cart-drawer .woocommerce-mini-cart-item dl.variation { grid-column: 2; margin: 2px 0 0; font-size: 12px; color: var(--nm-muted); display: flex; gap: 6px; flex-wrap: wrap; }
.nm-cart-drawer .woocommerce-mini-cart-item dl.variation dt,
.nm-cart-drawer .woocommerce-mini-cart-item dl.variation dd { margin: 0; display: inline; }
.nm-cart-drawer .woocommerce-mini-cart-item a.remove {
	position: absolute; top: 12px; right: 0;
	width: 22px; height: 22px; display: grid; place-items: center;
	border-radius: 999px; color: var(--nm-muted) !important; font-size: 16px; font-weight: 700;
	text-decoration: none; transition: color .12s ease, background .12s ease;
}
.nm-cart-drawer .woocommerce-mini-cart-item a.remove:hover { color: var(--nm-white) !important; background: var(--nm-red); }
.nm-cart-drawer .woocommerce-mini-cart__total {
	display: flex; justify-content: space-between; align-items: baseline;
	padding: 16px 0 6px; margin: 0; font-size: 15px; font-weight: 800; border-bottom: 0;
}
.nm-cart-drawer .woocommerce-mini-cart__total .amount { color: var(--nm-red-dark); font-size: 18px; }
.nm-cart-drawer .woocommerce-mini-cart__buttons {
	display: flex; flex-direction: column; gap: 10px; margin: 12px 0 0; padding: 0;
}
.nm-cart-drawer .woocommerce-mini-cart__buttons .button {
	display: block; text-align: center; border-radius: 999px; padding: 12px 20px;
	font-family: var(--nm-font-body); font-weight: 800; font-size: 14.5px; text-decoration: none;
	border: 2px solid var(--nm-red); transition: background .15s ease, color .15s ease;
}
.nm-cart-drawer .woocommerce-mini-cart__buttons .button:not(.checkout) { background: transparent; color: var(--nm-red); }
.nm-cart-drawer .woocommerce-mini-cart__buttons .button:not(.checkout):hover { background: var(--nm-cream); }
.nm-cart-drawer .woocommerce-mini-cart__buttons .button.checkout { background: var(--nm-red); color: var(--nm-white); }
.nm-cart-drawer .woocommerce-mini-cart__buttons .button.checkout:hover { background: var(--nm-red-dark); border-color: var(--nm-red-dark); }
.nm-cart-drawer .woocommerce-mini-cart__empty-message { text-align: center; color: var(--nm-muted); padding: 40px 0; }

/* Add-to-cart button loading state (PDP AJAX) */
.single_add_to_cart_button.loading { opacity: .6; cursor: wait; }
