/* =========================================================================
 * Maison Noer polish layer (2026-11-16). Loaded last.
 * One type scale, one button system, one heading system across every page.
 * ========================================================================= */

:root {
  --mn-caps: 0.14em;          /* letter-spacing for uppercase labels and buttons */
  --mn-caps-wide: 0.2em;      /* eyebrows */
  --mn-btn-h: 50px;           /* primary CTA height */
  --mn-btn-h-sm: 44px;        /* card / secondary CTA height */
  --mn-btn-r: 10px;
  --mn-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 1. Headings ---------- */
/* Page titles: one serif, one weight, one size scale (was 24 / 26.7 bold / 27.5 / 36 bold mixed) */
h1, .entry-title, .page-title, .woocommerce-products-header__title, .product_title, .mn-ty-h {
  font-family: var(--mn-font-display) !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.15 !important;
  color: var(--mn-espresso);
}
.entry-title, .page-title, .woocommerce-products-header__title { font-size: clamp(28px, 22px + 1.4vw, 38px) !important; }
.product_title { font-size: clamp(28px, 22px + 1.4vw, 38px) !important; margin-bottom: 6px !important; }

/* Section labels: Jost caps, same everywhere (home, PDP, content pages, related, cart, checkout, drawer) */
.mn-sh h2,
.entry-content h2,
.single-product .related.products > h2,
.mn-xsell-title,
.mn-cart .cart_totals h2,
.mn-drawer-head h2,
.mn-thankyou .woocommerce-column__title,
.woocommerce-order-details__title {
  font-family: var(--mn-font-body) !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  letter-spacing: var(--mn-caps) !important;
  text-transform: uppercase;
  line-height: 1.3 !important;
  color: var(--mn-espresso) !important;
}
.mn-sh h2 { font-size: 16px !important; }
.entry-content h2 { margin: 28px 0 10px !important; }
.entry-content > h2:first-child { margin-top: 0 !important; }
.mn-cart .cart_totals h2 { text-align: left !important; margin: 0 0 10px !important; }
.single-product .related.products > h2 { margin: 36px 0 16px !important; }

/* Small labels (SIZE, Light it for, mood rows) share one style */
.single-product table.variations th label,
.single-product table.variations th.label { font-weight: 500 !important; letter-spacing: var(--mn-caps) !important; font-size: 14px !important; }

/* Strong text: real weight (Jost 600 is now loaded) */
.entry-content strong, .entry-content b { font-weight: 600; color: var(--mn-espresso); }

/* ---------- 2. Body copy ---------- */
.entry-content p, .entry-content li { line-height: 1.7; }
@media (max-width: 699px) {
  /* Long-form reading text 16px on phones */
  .entry-content p, .entry-content li,
  .mn-pdesc__body p, .mn-pdesc__body li,
  .single-product .woocommerce-product-details__short-description p { font-size: 16px !important; }
}
.mn-content-page .entry-content { max-width: 68ch; margin-inline: auto; }

/* ---------- 3. Buttons: one system ---------- */
.mn-btn,
.woocommerce ul.products li.product .button,
.single-product .single_add_to_cart_button,
.single-product .mn-buy-now,
.mn-buybar-add,
.mn-cart .wc-proceed-to-checkout a.checkout-button,
.mn-checkout #place_order,
.mn-drawer .woocommerce-mini-cart__buttons a,
.mn-ty-btn,
.mn-coupon-apply {
  font-family: var(--mn-font-body) !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  letter-spacing: var(--mn-caps) !important;
  text-transform: uppercase !important;
  border-radius: var(--mn-btn-r) !important;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms var(--mn-ease) !important;
  cursor: pointer;
}
.single-product .mn-buy-now,
.mn-cart .wc-proceed-to-checkout a.checkout-button,
.mn-checkout #place_order,
.mn-ty-btn { min-height: var(--mn-btn-h) !important; }
.mn-drawer .woocommerce-mini-cart__buttons a { min-height: 48px !important; display: flex !important; align-items: center; justify-content: center; }
.mn-coupon-apply { padding: 0 20px !important; }
.mn-btn:active,
.woocommerce ul.products li.product .button:active,
.single-product .single_add_to_cart_button:active,
.single-product .mn-buy-now:active,
.mn-checkout #place_order:active,
.mn-cart .wc-proceed-to-checkout a.checkout-button:active { transform: scale(0.985); }

/* Cross-sell add: small amber pill, same caps style */
.mn-xsell-add { font-weight: 500 !important; font-size: 14px !important; letter-spacing: 0.08em !important; text-transform: uppercase; cursor: pointer; }

/* ---------- 4. Funnel text weights (was faux-bold 600 on a 400/500 font load) ---------- */
.mn-co-name, .mn-xsell-name, .mn-buybar-name,
.mn-cart .woocommerce-cart-form__cart-item td.product-name a,
.mn-drawer .woocommerce-mini-cart-item a:not(.remove) { font-weight: 500 !important; }
.mn-co-price, .mn-co-qty,
.mn-cart .woocommerce-cart-form__cart-item td.product-subtotal,
.mn-cart .woocommerce-cart-form__cart-item td.product-subtotal * { font-weight: 500 !important; }

/* Checkout section heads ("Order review", "Delivery address"): caps label, keep the amber bar */
.mn-checkout .mn-co-h,
.mn-checkout .woocommerce-billing-fields > h3,
.mn-checkout #order_review_heading,
.mn-co-card h3 {
  font-family: var(--mn-font-body) !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  letter-spacing: var(--mn-caps) !important;
  text-transform: uppercase;
  color: var(--mn-espresso) !important;
}
.mn-co-notes-label { font-weight: 500 !important; font-size: 15px !important; }

/* ---------- 5. Header navigation: hover + current page ---------- */
@media (min-width: 922px) {
  .main-header-menu > .menu-item > .menu-link { position: relative; }
  .main-header-menu > .menu-item > .menu-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 22px;
    height: 1px;
    margin-left: -11px;
    background: var(--mn-amber);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 300ms var(--mn-ease);
  }
  .main-header-menu > .menu-item > .menu-link:hover::after,
  .main-header-menu > .current-menu-item > .menu-link::after { transform: scaleX(1); }
  .main-header-menu > .current-menu-item > .menu-link { color: var(--mn-espresso) !important; }
}

/* Phone menu: roomy rows, current page marked, panel separated from the page */
#ast-hf-mobile-menu .menu-link {
  min-height: 52px;
  display: flex !important;
  align-items: center;
  padding: 0 20px !important;
  font-size: 16px !important;
  letter-spacing: 0.02em;
}
#ast-hf-mobile-menu .current-menu-item > .menu-link { color: var(--mn-amber) !important; }
#ast-hf-mobile-menu .current-menu-item > .menu-link::before {
  content: "";
  width: 6px; height: 6px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--mn-amber);
}
.ast-mobile-header-content { box-shadow: 0 18px 30px -18px rgba(34, 20, 9, 0.35); border-bottom: 1px solid var(--mn-line); }

/* ---------- 6. Product cards ---------- */
.woocommerce ul.products li.product { transition: box-shadow 300ms var(--mn-ease), transform 300ms var(--mn-ease); }
@media (hover: hover) {
  .woocommerce ul.products li.product:hover { box-shadow: 0 14px 30px -18px rgba(34, 20, 9, 0.35); transform: translateY(-2px); }
  .mn-mood-card { transition: box-shadow 300ms var(--mn-ease), transform 300ms var(--mn-ease); }
  .mn-mood-card:hover { box-shadow: 0 14px 30px -18px rgba(34, 20, 9, 0.35); transform: translateY(-2px); }
}
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-weight: 500 !important; }
.woocommerce ul.products li.product .price { font-weight: 500; }

/* ---------- 7. Motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .woocommerce ul.products li.product:hover, .mn-mood-card:hover { transform: none; }
}

/* Funnel buttons: beat the old "text-transform: none" funnel rule */
body .mn-xsell-add, body .mn-coupon-apply, body .mn-funnel .mn-xsell-add, body .mn-funnel .mn-coupon-apply { text-transform: uppercase !important; letter-spacing: 0.1em !important; font-weight: 500 !important; }
body .mn-funnel .checkout-button, body .mn-funnel #place_order, body .mn-drawer .woocommerce-mini-cart__buttons a { letter-spacing: var(--mn-caps) !important; text-transform: uppercase !important; }

/* Cart totals on phones: Woo's responsive table adds "Total:" via ::before; no colon, real weight */
.mn-cart .cart_totals td::before { content: attr(data-title) !important; font-weight: 500 !important; color: var(--mn-espresso); }
/* "via Inside Dhaka" note on order tables is redundant (delivery row already says it) */
.shipped_via { display: none; }
/* Woo bold (700) has no Jost file: map to the loaded 600 */
.woocommerce strong, .woocommerce b, .woocommerce th { font-weight: 600; }

/* ---------- Home ---------- */
/* Hero title: stronger scale on desktop (hierarchy) */
@media (min-width: 900px) { .mn-hero h1 { font-size: clamp(46px, 2.2vw + 24px, 58px) !important; } .mn-hero__lede { font-size: 16px; max-width: 30rem; } }
/* Mood cards: fewer layers. Mood, name, line, tags, price, button. "Light it for" lives on the candle page. */
.mn-mood-card__for { display: none; }
.mn-mood-card__tags { margin-top: 10px; }

/* ---------- Responsive tuning ---------- */
/* Hero title scales smoothly 900-1440 (was 4 lines at 1024) */
@media (min-width: 900px) { .mn-hero h1 { font-size: clamp(40px, 3.2vw + 8px, 58px) !important; } }

/* Small phones (320-374): tighter caps so labels and buttons never clip or wrap */
@media (max-width: 374px) {
  .mn-btn,
  .woocommerce ul.products li.product .button,
  .single-product .single_add_to_cart_button,
  .single-product .mn-buy-now,
  .mn-buybar-add { letter-spacing: 0.06em !important; padding-left: 8px !important; padding-right: 8px !important; }
  .woocommerce ul.products li.product .ast-woo-product-category,
  .woocommerce ul.products li.product .mn-mood-label--card { letter-spacing: 0.06em !important; white-space: nowrap; }
  .mn-hero__eyebrow, .mn-sh__eyebrow { letter-spacing: 0.12em !important; }
  .ast-above-header-bar .ast-builder-html-element p { letter-spacing: 0.03em !important; }
  .single-product .single_add_to_cart_button { white-space: nowrap; }
}
@media (max-width: 374px) {
  .woocommerce ul.products li.product .ast-woo-product-category { font-size: 13px !important; letter-spacing: 0.02em !important; overflow: visible !important; text-overflow: clip !important; }
  .woocommerce ul.products li.product .ast-woo-product-category * { overflow: visible !important; text-overflow: clip !important; }
}

/* Keyboard focus on selects and qty inputs (were the only controls without a ring) */
select:focus-visible, input.qty:focus-visible, textarea:focus-visible { outline: 2px solid var(--mn-amber) !important; outline-offset: 2px; }

/* Desktop hero: wider copy column, photo starts later, title max 2-3 lines */
@media (min-width: 900px) {
  .mn-hero__img { left: 44% !important; width: 56% !important; }
  .mn-hero::after { background: linear-gradient(to right, var(--mn-espresso) 44%, rgba(34, 20, 9, 0.6) 49%, rgba(34, 20, 9, 0) 60%) !important; }
  .mn-hero__copy { max-width: 40% !important; min-width: 400px !important; }
  .mn-hero h1 { font-size: clamp(40px, 2vw + 22px, 52px) !important; }
}
