/*
Theme Name: Nurvoya
Theme URI: https://nurvoya.com
Description: Nurvoya — premium wellness editorial child theme for Astra. Reproduces the Nurvoya design system (Poppins/Inter, #1C2B2B / #D7A86E / #F8F7F3) with a custom header, mobile drawer, homepage sections, category pages, article template, free guides, premium library and legal pages.
Author: Nurvoya
Template: astra
Version: 2.0.2
Text Domain: nurvoya
*/

/* Inter & Poppins are loaded from Google Fonts (see inc/assets.php). */

/* ============================================================
   1. TOKENS
   ============================================================ */
:root {
  --nv-primary: #1c2b2b;
  --nv-primary-soft: #2a3d3d;
  --nv-accent: #d7a86e;
  --nv-accent-soft: #f0e2cf;
  --nv-bg: #f8f7f3;
  --nv-surface: #f2f0ea;
  --nv-card: #ffffff;
  --nv-text: #1c2b2b;
  --nv-muted: #6b7a7a;
  --nv-border: #e6e3db;

  --nv-cat-women: #e8a0ab;
  --nv-cat-weight: #8fbf6a;
  --nv-cat-gut: #dfa15c;
  --nv-cat-beauty: #d79cc0;
  --nv-cat-nutrition: #7fb894;

  --nv-radius: 14px;
  --nv-radius-lg: 22px;
  --nv-shadow: 0 1px 2px rgba(28, 43, 43, 0.04), 0 8px 24px -12px rgba(28, 43, 43, 0.14);
  --nv-shadow-lift: 0 2px 6px rgba(28, 43, 43, 0.06), 0 20px 40px -18px rgba(28, 43, 43, 0.22);
  --nv-wrap: 1240px;
  --nv-font-display: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --nv-font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
}

/* ============================================================
   2. BASE
   ============================================================ */
html { scroll-behavior: smooth; }
body {
  background: var(--nv-bg);
  color: var(--nv-text);
  font-family: var(--nv-font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 {
  font-family: var(--nv-font-display);
  letter-spacing: -0.02em;
  color: var(--nv-text);
  font-weight: 600;
  margin: 0;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--nv-accent); outline-offset: 3px; border-radius: 4px; }

.nv-wrap { max-width: var(--nv-wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 1024px) { .nv-wrap { padding: 0 32px; } }

.nv-section { padding: 64px 0; }
@media (min-width: 768px) { .nv-section { padding: 88px 0; } }
.nv-section--surface { background: var(--nv-surface); }
.nv-section--dark { background: var(--nv-primary); color: #f8f7f3; }
.nv-section--dark h2, .nv-section--dark h3 { color: #f8f7f3; }

.nv-eyebrow {
  font-family: var(--nv-font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nv-muted);
}
.nv-section--dark .nv-eyebrow { color: var(--nv-accent); }
.nv-rule { display: block; width: 48px; height: 2px; background: var(--nv-accent); border-radius: 2px; margin-top: 18px; }
.nv-rule--center { margin-left: auto; margin-right: auto; }
.nv-lead { color: var(--nv-muted); font-size: 15px; line-height: 1.75; max-width: 620px; }
.nv-section--dark .nv-lead { color: rgba(248, 247, 243, 0.7); }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.nv-skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--nv-primary); color: #fff; padding: 12px 20px; border-radius: 0 0 10px 0;
}
.nv-skip-link:focus { left: 0; }

/* ============================================================
   3. BUTTONS
   ============================================================ */
.nv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; font-family: var(--nv-font-sans);
  cursor: pointer; transition: opacity .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}
.nv-btn:hover { opacity: .9; }
.nv-btn:active { transform: translateY(1px); }
.nv-btn--primary { background: var(--nv-primary); color: var(--nv-bg); }
.nv-btn--accent { background: var(--nv-accent); color: #22201a; }
.nv-btn--ghost { background: transparent; border-color: var(--nv-border); color: var(--nv-text); }
.nv-section--dark .nv-btn--ghost { border-color: rgba(248,247,243,.25); color: #f8f7f3; }
.nv-btn--sm { height: 40px; padding: 0 20px; font-size: 13px; }
.nv-btn[disabled] { opacity: .55; cursor: not-allowed; }
.nv-textlink {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--nv-primary);
}
.nv-textlink:hover { color: var(--nv-accent); }

/* ============================================================
   4. HEADER + NAVIGATION
   ============================================================ */
.nv-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(248, 247, 243, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--nv-border);
}
.nv-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 74px; }
/* Breathing room between the last nav item (Articles) and the search button. */
.nv-header__inner > .nv-nav { margin-right: 14px; }
@media (min-width: 1440px) { .nv-header__inner > .nv-nav { margin-right: 16px; } }
.nv-logo img { height: 34px; width: auto; }
.nv-logo__text { font-family: var(--nv-font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }

.nv-nav { display: none; min-width: 0; flex: 0 1 auto; }
@media (min-width: 1200px) { .nv-nav { display: block; } }
.nv-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; max-width: 100%; }
.nv-nav ul { list-style: none; margin: 0; padding: 0; }
.nv-nav li { position: relative; }
.nv-nav > ul > li > a {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 10px 8px; font-size: 13.5px; font-weight: 500; color: var(--nv-text);
  border-radius: 8px; transition: color .2s ease;
}
@media (min-width: 1440px) { .nv-nav > ul > li > a { padding: 10px 9px; font-size: 14px; } .nv-nav > ul { gap: 2px; } }
.nv-header__inner > .nv-logo { flex: 0 0 auto; }
.nv-header__actions { flex: 0 0 auto; position: relative; z-index: 3; background: inherit; }
.nv-nav { position: relative; z-index: 1; }
.nv-logo { display: flex; align-items: center; flex: 0 0 auto; }
.nv-logo img { display: block; }
@media (min-width: 1200px) and (max-width: 1359px) { .nv-header__cta { display: none; } }
.nv-nav > ul > li > a:hover,
.nv-nav > ul > li.current-menu-item > a,
.nv-nav > ul > li.current-menu-parent > a { color: var(--nv-accent); }
.nv-nav .menu-item-has-children > a::after {
  content: ""; width: 6px; height: 6px; margin-left: 2px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .25s ease;
}
.nv-nav .menu-item-has-children:hover > a::after,
.nv-nav .menu-item-has-children:focus-within > a::after { transform: rotate(225deg) translateY(-2px); }

.nv-nav .sub-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 248px;
  background: var(--nv-card); border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius); box-shadow: var(--nv-shadow-lift);
  padding: 10px; display: block; flex-direction: column; gap: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nv-nav li:hover > .sub-menu,
.nv-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nv-nav .sub-menu li { width: 100%; }
.nv-nav .sub-menu a {
  display: block; padding: 9px 12px; font-size: 14px; color: var(--nv-text);
  border-radius: 9px; transition: background .18s ease, color .18s ease;
}
.nv-nav .sub-menu a:hover { background: var(--nv-surface); color: var(--nv-accent); }

.nv-header__actions { display: flex; align-items: center; gap: 14px !important; }
.nv-iconbtn {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid var(--nv-border); background: transparent;
  color: var(--nv-text); cursor: pointer; transition: border-color .2s ease, color .2s ease;
}
.nv-iconbtn:hover { border-color: var(--nv-accent); color: var(--nv-accent); }

/* --- Header icon-button fix (scoped to the header actions cluster): every
   round icon control (search, cart, 3-dot "more", hamburger) shares one
   fixed 42px circle so none of them can be stretched into an oval/pill by
   inherited Astra parent-theme button/anchor padding, min-width or
   line-height. Previously this lock only covered the search button, which
   is why cart/more/hamburger could render larger than search. --- */
.nv-header .nv-header__actions .nv-iconbtn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  flex: 0 0 42px !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: normal !important;
  border-radius: 999px !important;
}
.nv-header .nv-header__actions .nv-iconbtn svg,
.nv-header .nv-header__actions .nv-iconbtn img {
  width: 18px !important;
  height: 18px !important;
  display: block;
}
/* Cart badge stays anchored to its own 42px circle, never pushed off it. */
.nv-header .nv-header__actions .nv-cartlink__count {
  top: -2px;
  right: -2px;
}
/* Guaranteed gap between the nav ("Articles") and the search button, on every breakpoint. */
.nv-header .nv-header__inner > .nv-nav {
  margin-right: 16px;
}
@media (max-width: 1439px) {
  .nv-header .nv-header__inner > .nv-nav {
    margin-right: 14px;
  }
}
.nv-header__cta { display: none; }
@media (min-width: 768px) { .nv-header__cta { display: inline-flex; } }
.nv-burger { display: inline-flex; }
@media (min-width: 1200px) { .nv-burger { display: none; } }
@media (max-width: 359px) {
  /* Very narrow phones: trim the cluster gap slightly, never below the 12px floor. */
  .nv-header__actions { gap: 12px; }
}

/* Search overlay */
.nv-search {
  position: fixed; inset: 0; z-index: 900; background: rgba(28, 43, 43, .55);
  backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s;
}
.nv-search.is-open { opacity: 1; visibility: visible; }
.nv-search__panel { background: var(--nv-bg); padding: 32px 24px 38px; border-bottom: 1px solid var(--nv-border); }
.nv-search form { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 960px; margin: 0 auto; }
.nv-search input[type="search"] {
  flex: 1 1 auto; min-width: 0; height: 58px; border-radius: 999px; border: 1px solid var(--nv-border);
  padding: 0 26px; font-size: 16px; background: var(--nv-card); color: var(--nv-text);
}
.nv-search form .nv-btn { flex: 0 0 auto; white-space: nowrap; padding-left: 26px; padding-right: 26px; }
.nv-search form .nv-iconbtn { flex: 0 0 auto; }
@media (max-width: 600px) { .nv-search form { flex-wrap: wrap; gap: 10px; } .nv-search input[type="search"] { flex: 1 1 100%; height: 52px; } }
.nv-search input[type="search"]:focus { outline: none; border-color: var(--nv-accent); }

/* Mobile drawer */
.nv-drawer {
  position: fixed; inset: 0; z-index: 950; visibility: hidden; pointer-events: none; overflow: hidden;
}
.nv-drawer.is-open { visibility: visible; pointer-events: auto; }
.nv-drawer__overlay {
  position: absolute; inset: 0; background: rgba(28, 43, 43, .5);
  opacity: 0; transition: opacity .25s ease;
}
.nv-drawer.is-open .nv-drawer__overlay { opacity: 1; }
.nv-drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(390px, 92vw);
  background: var(--nv-bg); box-shadow: var(--nv-shadow-lift);
  transform: translateX(100%); transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  display: flex; flex-direction: column; overflow-y: auto;
}
.nv-drawer.is-open .nv-drawer__panel { transform: translateX(0); }
.nv-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--nv-border);
}
.nv-drawer__nav { padding: 12px 12px 24px; }
.nv-drawer__nav ul { list-style: none; margin: 0; padding: 0; }
.nv-drawer__nav > ul > li { border-bottom: 1px solid var(--nv-border); }
.nv-drawer__nav > ul > li > a {
  display: block; padding: 15px 10px; font-family: var(--nv-font-display);
  font-size: 16px; font-weight: 500;
}
.nv-drawer__row { display: flex; align-items: center; justify-content: space-between; }
.nv-drawer__row > a { flex: 1; }
.nv-acc-toggle {
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: var(--nv-muted);
}
.nv-acc-toggle svg { transition: transform .25s ease; }
.nv-acc-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nv-drawer__nav .sub-menu { display: none; padding: 0 0 12px 12px; }
.nv-drawer__nav .sub-menu.is-open { display: block; }
.nv-drawer__nav .sub-menu a { display: block; padding: 10px; font-size: 14px; color: var(--nv-muted); }
.nv-drawer__nav .sub-menu a:hover { color: var(--nv-accent); }
.nv-drawer__foot { padding: 8px 22px 32px; }
.nv-drawer__foot .nv-btn { width: 100%; }
body.nv-locked { overflow: hidden; }

/* ============================================================
   5. HERO
   ============================================================ */
.nv-hero { padding: 46px 0 60px; }
@media (min-width: 1024px) { .nv-hero { padding: 76px 0 92px; } }
.nv-hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .nv-hero__grid { grid-template-columns: 1.05fr 1fr; gap: 64px; } }
.nv-hero h1 {
  font-size: clamp(34px, 7vw, 60px); line-height: 1.08; margin-top: 14px;
}
.nv-hero__accent { color: var(--nv-accent); font-style: italic; }
.nv-hero p { margin-top: 22px; font-size: 16px; line-height: 1.8; color: var(--nv-muted); max-width: 520px; }
.nv-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.nv-hero__media { position: relative; }
.nv-hero__media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--nv-radius-lg);
  box-shadow: var(--nv-shadow-lift);
}
.nv-hero__badge {
  position: absolute; left: -14px; bottom: 26px; background: var(--nv-card);
  border: 1px solid var(--nv-border); border-radius: var(--nv-radius);
  padding: 14px 18px; box-shadow: var(--nv-shadow); max-width: 220px;
}
.nv-hero__badge strong { display: block; font-family: var(--nv-font-display); font-size: 20px; }
.nv-hero__badge span { font-size: 12px; color: var(--nv-muted); }

/* Trust bar */
.nv-trust { border-top: 1px solid var(--nv-border); border-bottom: 1px solid var(--nv-border); background: var(--nv-surface); }
.nv-trust__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; padding: 30px 0; }
@media (min-width: 900px) { .nv-trust__grid { grid-template-columns: repeat(4, 1fr); } }
.nv-trust__item { display: flex; gap: 12px; align-items: flex-start; }
.nv-trust__item svg { flex: none; color: var(--nv-accent); margin-top: 2px; }
.nv-trust__item h3 { font-size: 14px; font-weight: 600; }
.nv-trust__item p { margin: 3px 0 0; font-size: 13px; color: var(--nv-muted); line-height: 1.6; }

/* ============================================================
   6. HEADINGS / GRIDS
   ============================================================ */
.nv-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 40px; }
.nv-head h2 { font-size: clamp(26px, 4vw, 38px); line-height: 1.15; margin-top: 10px; }
.nv-grid { display: grid; gap: 24px; }
.nv-grid--2 { grid-template-columns: 1fr; }
.nv-grid--3 { grid-template-columns: 1fr; }
.nv-grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .nv-grid--2, .nv-grid--3, .nv-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .nv-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .nv-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   7. CARDS
   ============================================================ */
.nv-card {
  background: var(--nv-card); border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius-lg); overflow: hidden; box-shadow: var(--nv-shadow);
  display: flex; flex-direction: column; height: 100%;
  transition: transform .3s ease, box-shadow .3s ease;
}
.nv-card:hover { transform: translateY(-4px); box-shadow: var(--nv-shadow-lift); }
.nv-card__media { position: relative; overflow: hidden; background: var(--nv-surface); }
.nv-card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s ease; }
.nv-card:hover .nv-card__media img { transform: scale(1.04); }
.nv-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.nv-card__title { font-size: 18px; line-height: 1.35; margin-top: 10px; }
.nv-card:hover .nv-card__title { color: var(--nv-primary); }
.nv-card__excerpt { margin: 10px 0 0; font-size: 14px; color: var(--nv-muted); line-height: 1.7; }
.nv-card__meta { margin-top: auto; padding-top: 16px; font-size: 12px; color: var(--nv-muted); display: flex; gap: 12px; align-items: center; }

.nv-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--nv-primary);
}
.nv-tag::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--nv-accent); }
.nv-tag[data-cat="womens-health"]::before { background: var(--nv-cat-women); }
.nv-tag[data-cat="weight-loss"]::before { background: var(--nv-cat-weight); }
.nv-tag[data-cat="gut-health"]::before { background: var(--nv-cat-gut); }
.nv-tag[data-cat="beauty"]::before { background: var(--nv-cat-beauty); }
.nv-tag[data-cat="nutrition"]::before { background: var(--nv-cat-nutrition); }

.nv-card--feature { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .nv-card--feature { grid-template-columns: 1.15fr 1fr; align-items: stretch; } }
.nv-card--feature .nv-card__media img { height: 100%; aspect-ratio: 16 / 11; }
.nv-card--feature .nv-card__body { padding: 30px 34px 34px; justify-content: center; }
.nv-card--feature .nv-card__title { font-size: clamp(22px, 3vw, 30px); }

/* Category tiles */
.nv-cat {
  position: relative; border-radius: var(--nv-radius-lg); overflow: hidden;
  min-height: 260px; display: flex; align-items: flex-end; box-shadow: var(--nv-shadow);
}
.nv-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.nv-cat:hover img { transform: scale(1.06); }
.nv-cat::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,43,43,.86) 0%, rgba(28,43,43,.28) 55%, rgba(28,43,43,.05) 100%);
}
.nv-cat__body { position: relative; z-index: 1; padding: 24px; color: #f8f7f3; }
.nv-cat__body h3 { color: #fff; font-size: 20px; }
.nv-cat__body p { margin: 6px 0 0; font-size: 13px; color: rgba(248,247,243,.78); }
.nv-cat__count { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--nv-accent); font-weight: 600; }

/* Resource / guide cards */
.nv-res { background: var(--nv-card); border: 1px solid var(--nv-border); border-radius: var(--nv-radius-lg); overflow: hidden; box-shadow: var(--nv-shadow); display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease; }
.nv-res:hover { transform: translateY(-4px); box-shadow: var(--nv-shadow-lift); }
.nv-res__cover { position: relative; background: linear-gradient(150deg, #24393a, #1c2b2b 60%); padding: 34px 26px; min-height: 260px; aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: flex-end; }
.nv-res__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .88; }
.nv-res__cover > * { position: relative; z-index: 1; }
.nv-res__cover h3 { color: #f8f7f3; font-size: 19px; line-height: 1.3; }
.nv-res__kicker { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--nv-accent); font-weight: 600; margin-bottom: 8px; }
.nv-res__body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.nv-res__body p { margin: 0; font-size: 14px; color: var(--nv-muted); line-height: 1.7; }
.nv-res__body .nv-btn { margin-top: auto; }
.nv-badge {
  display: inline-block; align-self: flex-start; padding: 7px 14px; border-radius: 999px;
  font-size: 11.5px; line-height: 1.2; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; background: var(--nv-accent-soft); color: #6b5227;
  white-space: nowrap;
}
/* Availability badges — high contrast, readable on light cards. */
.nv-badge--available { background: #e6f2ea; color: #14532d; border: 1px solid #bfe0cb; }
.nv-badge--soon { background: #2f2a1c; color: #ffe8a3; border: 1px solid #4a4229; }

/* Product status cards */
.nv-shop--soon .nv-shop__media img { opacity: .82; }
.nv-shop__notify { margin-top: auto; padding-top: 6px; }
.nv-shop__notify .nv-form { gap: 10px; }
.nv-res__btns { margin-top: auto; display: inline-flex; gap: 8px; flex-wrap: wrap; }

/* Why Nurvoya */
.nv-why { display: grid; gap: 26px; }
@media (min-width: 640px) { .nv-why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .nv-why { grid-template-columns: repeat(4, 1fr); } }
.nv-why__item { padding: 26px; border: 1px solid rgba(248,247,243,.14); border-radius: var(--nv-radius-lg); }
.nv-why__item svg { color: var(--nv-accent); }
.nv-why__item h3 { font-size: 17px; margin-top: 16px; }
.nv-why__item p { margin: 8px 0 0; font-size: 14px; color: rgba(248,247,243,.7); line-height: 1.7; }

/* ============================================================
   8. FORMS
   ============================================================ */
.nv-form { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.nv-form--inline { flex-direction: column; max-width: 460px; margin: 0 auto; }
@media (min-width: 640px) { .nv-form--inline { flex-direction: row; } }
.nv-field { display: flex; flex-direction: column; gap: 6px; }
.nv-field label { font-size: 13px; font-weight: 600; }
.nv-input, .nv-textarea {
  width: 100%; border-radius: 14px; border: 1px solid var(--nv-border);
  background: var(--nv-card); color: var(--nv-text); padding: 14px 18px; font-size: 15px;
  font-family: var(--nv-font-sans);
}
.nv-form--inline .nv-input { border-radius: 999px; height: 48px; padding: 0 22px; }
.nv-input:focus, .nv-textarea:focus { outline: none; border-color: var(--nv-accent); }
.nv-textarea { min-height: 150px; resize: vertical; }
.nv-section--dark .nv-input {
  background: transparent; border-color: rgba(248,247,243,.25); color: #f8f7f3;
}
.nv-section--dark .nv-input::placeholder { color: rgba(248,247,243,.5); }
.nv-form__msg { font-size: 13px; margin: 0; min-height: 18px; }
.nv-form__msg.is-ok { color: #3f8f5f; }
.nv-form__msg.is-err { color: #b3453c; }
.nv-section--dark .nv-form__msg.is-ok { color: #a8dcb9; }
.nv-section--dark .nv-form__msg.is-err { color: #f0b3ad; }
.nv-hp { position: absolute !important; left: -9999px; }

/* ============================================================
   9. PAGE HEADER / ARTICLE
   ============================================================ */
.nv-pagehead { background: var(--nv-surface); border-bottom: 1px solid var(--nv-border); padding: 54px 0; }
@media (min-width: 768px) { .nv-pagehead { padding: 76px 0; } }
.nv-pagehead h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.12; margin-top: 12px; max-width: 780px; }
.nv-pagehead p { margin-top: 20px; }

.nv-breadcrumb { font-size: 12px; color: var(--nv-muted); display: flex; flex-wrap: wrap; gap: 8px; }
.nv-breadcrumb a:hover { color: var(--nv-accent); }

.nv-article { padding: 44px 0 0; }
.nv-article__head { max-width: 760px; margin: 0 auto; padding: 0 20px; text-align: left; }
.nv-article__head h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.14; margin-top: 16px; }
.nv-article__meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 22px; font-size: 13px; color: var(--nv-muted); }
.nv-article__hero { max-width: 1000px; margin: 38px auto 0; padding: 0 20px; }
.nv-article__hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--nv-radius-lg); }
.nv-prose { max-width: 760px; margin: 0 auto; padding: 40px 20px 64px; }
.nv-prose p { margin: 0 0 20px; line-height: 1.85; color: rgba(28,43,43,.88); }
.nv-prose h2 { font-size: 26px; margin: 40px 0 14px; }
.nv-prose h3 { font-size: 20px; margin: 32px 0 10px; }
.nv-prose ul, .nv-prose ol { margin: 0 0 20px 20px; }
.nv-prose li { margin-bottom: 8px; line-height: 1.8; }
.nv-prose img { border-radius: var(--nv-radius); margin: 26px 0; }
.nv-prose blockquote {
  margin: 28px 0; padding: 18px 24px; border-left: 3px solid var(--nv-accent);
  background: var(--nv-surface); border-radius: 0 var(--nv-radius) var(--nv-radius) 0;
  font-size: 17px;
}
.nv-prose a { color: var(--nv-primary); box-shadow: inset 0 -1.5px 0 var(--nv-accent); }
.nv-share { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.nv-share span { font-size: 12px; color: var(--nv-muted); }

/* Article actions (three-dot menu) */
.nv-more { position: relative; }
.nv-more__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; z-index: 600;
  background: var(--nv-card); border: 1px solid var(--nv-border); border-radius: var(--nv-radius);
  box-shadow: var(--nv-shadow-lift); padding: 8px; display: none;
}
.nv-more__menu.is-open { display: block; }
.nv-more__menu button, .nv-more__menu a {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px;
  border: 0; background: transparent; font-size: 14px; color: var(--nv-text);
  border-radius: 9px; cursor: pointer; text-align: left; font-family: var(--nv-font-sans);
}
.nv-more__menu button:hover, .nv-more__menu a:hover { background: var(--nv-surface); color: var(--nv-accent); }

/* Filters / pagination */
.nv-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.nv-chip {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--nv-border);
  font-size: 13px; font-weight: 500; background: transparent; color: var(--nv-text);
  transition: all .2s ease;
}
.nv-chip:hover { border-color: var(--nv-accent); color: var(--nv-accent); }
.nv-chip.is-active { background: var(--nv-primary); color: var(--nv-bg); border-color: var(--nv-primary); }
.nv-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.nv-pagination .page-numbers {
  min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid var(--nv-border); font-size: 14px; padding: 0 14px;
}
.nv-pagination .page-numbers.current { background: var(--nv-primary); color: var(--nv-bg); border-color: var(--nv-primary); }
.nv-pagination .page-numbers:hover { border-color: var(--nv-accent); color: var(--nv-accent); }
.nv-pagination .page-numbers.current:hover { color: var(--nv-bg); }
.nv-empty { text-align: center; padding: 60px 0; color: var(--nv-muted); }

/* ============================================================
   10. FOOTER
   ============================================================ */
.nv-footer { background: var(--nv-primary); color: #f8f7f3; }
.nv-footer__grid { display: grid; gap: 44px; padding: 64px 0 0; }
@media (min-width: 768px) { .nv-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .nv-footer__grid { grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding-top: 80px; } }
.nv-footer__brand img { height: 42px; width: auto; }
.nv-footer__brand p { margin-top: 20px; font-size: 14px; line-height: 1.75; color: rgba(248,247,243,.7); max-width: 300px; }
.nv-footer h3 { font-family: var(--nv-font-display); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--nv-accent); }
.nv-footer ul { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.nv-footer ul a { font-size: 14px; color: rgba(248,247,243,.7); transition: color .2s ease; }
.nv-footer ul a:hover { color: var(--nv-accent); }
.nv-social { display: flex; gap: 8px; margin-top: 24px; }
.nv-social a {
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid rgba(248,247,243,.2);
  display: inline-flex; align-items: center; justify-content: center; color: rgba(248,247,243,.7);
  transition: border-color .2s ease, color .2s ease;
}
.nv-social a:hover { border-color: var(--nv-accent); color: var(--nv-accent); }
.nv-footer__legal { margin-top: 56px; border-top: 1px solid rgba(248,247,243,.15); padding: 30px 0 40px; }
.nv-footer__legal p { font-size: 12px; line-height: 1.7; color: rgba(248,247,243,.55); margin: 0; }
.nv-footer__bottom { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; font-size: 12px; color: rgba(248,247,243,.55); }
@media (min-width: 640px) { .nv-footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.ast-builder-layout-element, .site-footer .ast-footer-copyright, #ast-scroll-top { }
.astra-advanced-hook-footer, .site-primary-footer-wrap, .site-below-footer-wrap, .ast-small-footer { display: none !important; }

/* ============================================================
   11. UTILITIES / MOTION
   ============================================================ */
.nv-reveal { opacity: 0; transform: translateY(16px); }
.nv-reveal.is-visible { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .nv-reveal { opacity: 1; transform: none; }
}


/* Premium pricing (USD) */
.nv-price{display:inline-block;margin-left:.5rem;font-family:var(--nv-display,inherit);font-weight:600;font-size:1.05rem;color:var(--nv-primary,#1C2B2B)}
.nv-price__cur{font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;opacity:.6}

/* ---- Shop Ebooks + single guide / ebook detail ---- */
.nv-shop{display:flex;flex-direction:column;background:#fff;border:1px solid var(--nv-border);border-radius:14px;overflow:hidden;transition:transform .3s ease,box-shadow .3s ease}
.nv-shop:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(28,43,43,.10)}
.nv-shop__media{display:block;aspect-ratio:3/2;overflow:hidden}
.nv-shop__media img{width:100%;height:100%;object-fit:cover;display:block}
.nv-shop__body{padding:22px;display:flex;flex-direction:column;gap:10px;flex:1}
.nv-shop__body h3{font-family:var(--nv-display,inherit);font-size:1.15rem;line-height:1.3;margin:0}
.nv-shop__body h3 a{color:inherit;text-decoration:none}
.nv-shop__body p{margin:0;color:var(--nv-muted,#5b6a6a);font-size:.95rem}
.nv-shop__foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:8px}
.nv-shop__foot .nv-price{margin-left:0}

.nv-detail{display:grid;grid-template-columns:minmax(0,420px) minmax(0,1fr);gap:48px;align-items:start}
.nv-detail__media img{width:100%;height:auto;border-radius:14px;display:block}
.nv-detail__buy{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:18px}
.nv-detail__gate{margin-top:28px;padding:26px;border:1px solid var(--nv-border);border-radius:14px;background:var(--nv-surface,#f8f7f3)}
.nv-detail__gate h2{margin:0 0 8px;font-size:1.25rem}
.nv-detail__gate p{margin:0 0 16px;color:var(--nv-muted,#5b6a6a)}
.nv-ticks{list-style:none;margin:0 0 22px;padding:0;display:grid;gap:10px}
.nv-ticks li{display:flex;align-items:flex-start;gap:10px;color:var(--nv-text,#1C2B2B)}
.nv-ticks li svg{color:var(--nv-accent,#D7A86E);flex:none;margin-top:3px}
@media (max-width:900px){.nv-detail{grid-template-columns:1fr;gap:28px}}

/* Category visual band */
.nv-category-visual { max-height: 370px; overflow: hidden; background: var(--nv-surface); }
.nv-category-visual img { width: 100%; height: 370px; object-fit: cover; object-position: center; }
@media (max-width: 640px) { .nv-category-visual, .nv-category-visual img { height: 240px; } }

/* Checkout — follows the supplied two-column order/payment reference. */
.nv-checkout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 52px; align-items: start; }
.nv-checkout__main, .nv-order { background: var(--nv-card); border: 1px solid var(--nv-border); border-radius: var(--nv-radius); padding: 32px; box-shadow: var(--nv-shadow); }
.nv-checkout__main h2, .nv-order h2 { font-size: 24px; margin-bottom: 22px; }
.nv-payment-note { display: flex; align-items: flex-start; gap: 14px; background: var(--nv-surface); border: 1px solid var(--nv-border); border-radius: 8px; padding: 20px; margin: 0 0 24px; }
.nv-payment-note svg { flex: none; color: var(--nv-accent); }
.nv-payment-note strong { display: block; font-family: var(--nv-font-display); }
.nv-payment-note p { margin: 6px 0 0; color: var(--nv-muted); font-size: 14px; }
.nv-btn--wide { width: 100%; }
.nv-order { position: sticky; top: 104px; }
.nv-order img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; margin: 18px 0; }
.nv-order p { color: var(--nv-muted); font-size: 14px; }
.nv-order__total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--nv-border); margin-top: 22px; padding-top: 20px; }
.nv-order__total strong { font-size: 24px; font-family: var(--nv-font-display); }
.nv-order__total small { color: var(--nv-muted); font-size: 11px; }
@media (max-width: 800px) { .nv-checkout { grid-template-columns: 1fr; gap: 24px; } .nv-order { position: static; order: -1; } .nv-checkout__main, .nv-order { padding: 22px; } }


/* Header: three-dot menu + bundled logo */
.nv-logo__img { display: block; height: 34px; width: auto; }
@media (min-width: 768px) { .nv-logo__img { height: 38px; } }
.nv-header__more { position: relative; display: inline-flex; }
.nv-header .nv-more__menu { z-index: 1200; min-width: 220px; }
.nv-header .nv-more__menu a { text-decoration: none; }
.nv-header { position: sticky; top: 0; z-index: 800; }

/* ---------- Footer pre-sections: Why Trust Nurvoya + Weekly tips ---------- */
.nv-trustband .nv-trust__grid { padding: 0; gap: 26px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .nv-trustband .nv-trust__grid { grid-template-columns: repeat(3, 1fr); } }
.nv-trustband .nv-trust__item h3 { font-size: 16px; }
.nv-trustband .nv-trust__item p { font-size: 14px; }
.nv-weekly .nv-form--inline { justify-content: center; }
.nv-weekly .nv-btn { justify-content: center; }
@media (max-width: 640px) {
	.nv-trustband .nv-trust__grid { grid-template-columns: 1fr; gap: 20px; }
	.nv-weekly .nv-weekly__actions .nv-btn { width: 100%; }
}

/* Prevent any horizontal scroll on small screens */
html { overflow-x: hidden; max-width: 100%; }
body { max-width: 100%; }
img, video, iframe, table { max-width: 100%; }

/* Checkout order summary lines */
.nv-order__lines { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.nv-order__lines li { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.nv-order__lines span { color: var(--nv-muted); }
.nv-order__lines strong { font-weight: 600; text-align: right; }
.nv-checkout__fine { margin-top: 14px; font-size: 13px; color: var(--nv-muted); }

/* Elementor: let Nurvoya sections keep their own full-width layout */
.elementor-section.elementor-section-boxed > .elementor-container { max-width: none; }
.elementor-widget-wrap > .elementor-element.elementor-widget[data-widget_type^="nurvoya-"] { width: 100%; }
.elementor-page .nv-hero,
.elementor-page .nv-section { width: 100%; }
.elementor-editor-active .nv-header, .elementor-editor-active .nv-footer { pointer-events: auto; }
.nv-shop__btns { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* ============================================================
   DIGITAL STORE: cart, checkout, order confirmation
   ============================================================ */
.nv-cartform { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 0; }
.nv-cartform .nv-btn { margin: 0; flex: 0 0 auto; }
.nv-qty {
  padding: 9px 10px; border: 1px solid var(--nv-border); border-radius: 10px;
  background: var(--nv-card); color: var(--nv-text); font-family: var(--nv-font-sans); font-size: 14px;
}
/* Lock quantity to a compact fixed size on every screen — guards against it
   ever being stretched full-width by broader parent-theme input styles. */
.nv-cartform .nv-qty {
  box-sizing: border-box;
  width: 74px !important;
  min-width: 74px;
  max-width: 74px;
  flex: 0 0 74px;
}
.nv-cartlink { position: relative; }
.nv-cartlink__count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--nv-accent); color: #22201a; border-radius: 999px;
  font-size: 11px; font-weight: 700; line-height: 1;
}
.nv-notice {
  background: var(--nv-accent-soft); border: 1px solid var(--nv-accent);
  color: var(--nv-text); border-radius: var(--nv-radius);
  padding: 12px 16px; margin-bottom: 22px; font-size: 14px;
}
.nv-notice--error { background: #fdecec; border-color: #e2a1a1; }
.nv-input--error { border-color: #c96a6a !important; background: #fdf6f6; }

.nv-cart { display: block; }
.nv-cart__table { display: grid; gap: 14px; }
.nv-cart__row {
  display: grid; grid-template-columns: 96px 1fr 110px 130px; gap: 18px; align-items: center;
  background: var(--nv-card); border: 1px solid var(--nv-border); border-radius: var(--nv-radius-lg);
  padding: 16px; box-shadow: var(--nv-shadow);
}
.nv-cart__media img { width: 96px; height: 120px; object-fit: cover; border-radius: 10px; display: block; }
.nv-cart__info h2 { font-size: 18px; margin: 0 0 6px; }
.nv-cart__info h2 a { color: inherit; text-decoration: none; }
.nv-cart__meta { color: var(--nv-muted); font-size: 13px; margin: 0 0 6px; }
.nv-cart__price { margin: 0; font-weight: 600; }
.nv-cart__line { text-align: right; }
.nv-cart__linetotal { display: block; font-weight: 700; font-size: 17px; }
.nv-cart__remove {
  border: 0; background: none; padding: 4px 0; margin-top: 6px;
  color: var(--nv-muted); font-size: 13px; text-decoration: underline; cursor: pointer;
}
.nv-cart__remove:hover { color: #a34848; }
.nv-cart__foot {
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between;
  align-items: flex-start; margin-top: 26px;
}
.nv-cart__totals {
  width: min(380px, 100%); background: var(--nv-card); border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius-lg); padding: 20px; box-shadow: var(--nv-shadow);
}
.nv-cart__totals p { display: flex; justify-content: space-between; gap: 14px; margin: 0 0 10px; font-size: 14px; }
.nv-cart__grand { border-top: 1px solid var(--nv-border); padding-top: 12px; font-size: 17px !important; }
.nv-cart__totals .nv-btn--wide { width: 100%; margin: 8px 0 10px; justify-content: center; }

.nv-checkout__form .nv-field { display: block; margin: 0 0 16px; }
.nv-checkout__form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.nv-checkout__form .nv-input { width: 100%; }
.nv-checkout__form small { display: block; color: var(--nv-muted); font-size: 12px; margin-top: 5px; }
.nv-checkout__form textarea.nv-input { min-height: 88px; resize: vertical; }
.nv-checkout__form .nv-btn--wide { width: 100%; justify-content: center; margin-top: 8px; }

.nv-detail__cart { display: grid; gap: 16px; margin-top: 20px; }
.nv-detail__digital {
  display: flex; align-items: flex-start; gap: 8px;
  color: var(--nv-muted); font-size: 13px; line-height: 1.5; margin: 0;
}
.nv-detail__digital svg { flex: 0 0 auto; margin-top: 2px; }
.nv-detail__digital span { flex: 1 1 auto; min-width: 0; }

.nv-thanks__items { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.nv-thanks__items li {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  background: var(--nv-card); border: 1px solid var(--nv-border); border-radius: var(--nv-radius);
  padding: 14px 16px;
}
.nv-thanks__items span { display: block; color: var(--nv-muted); font-size: 13px; }

@media (max-width: 900px) {
  .nv-cart__row { grid-template-columns: 80px 1fr; grid-template-areas: "media info" "qty line"; }
  .nv-cart__media { grid-area: media; }
  .nv-cart__info { grid-area: info; }
  .nv-cart__qty { grid-area: qty; }
  .nv-cart__line { grid-area: line; text-align: right; }
  .nv-cart__media img { width: 80px; height: 100px; }
  .nv-cart__foot { flex-direction: column; }
  .nv-cart__totals { width: 100%; }
}
@media (max-width: 560px) {
  .nv-cartform { width: 100%; }
  .nv-cartform .nv-qty { flex: 0 0 auto; }
  .nv-cartform .nv-btn { flex: 1 1 calc(50% - 7px); min-width: 132px; justify-content: center; }
  .nv-thanks__items li { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .nv-cartform .nv-btn { flex: 1 1 100%; }
}

/* Sale price: struck-through regular price shown beside the selling price. */
.nv-price__was {
	opacity: .55;
	font-weight: 400;
	margin-right: 6px;
}

/* ============================================================
   EMAIL GATE MODAL (Buy Now / Get the File)
   ============================================================ */
.nv-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.nv-gate.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
.nv-gate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 43, 43, 0.55);
}
.nv-gate__dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--nv-card);
  border-radius: var(--nv-radius-lg);
  box-shadow: var(--nv-shadow-lift);
  padding: 32px 28px 28px;
  transform: translateY(8px);
  transition: transform .18s ease;
}
.nv-gate.is-open .nv-gate__dialog { transform: translateY(0); }
.nv-gate__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: var(--nv-muted);
  cursor: pointer;
  border-radius: 50%;
}
.nv-gate__close:hover { background: var(--nv-surface); color: var(--nv-text); }
.nv-gate__body h2 { margin: 0 0 8px; font-family: var(--nv-font-display); font-size: 22px; }
.nv-gate__lead { color: var(--nv-muted); font-size: 14px; margin: 0 0 18px; }
.nv-gate__form .nv-input { width: 100%; margin-bottom: 12px; }
.nv-gate__form .nv-form__msg { margin-top: 10px; }
.nv-gate--success .nv-gate__form { display: none; }
.nv-gate__done { display: none; text-align: center; padding: 6px 0 4px; }
.nv-gate--success .nv-gate__done { display: block; }
.nv-gate__done-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--nv-accent-soft);
  color: var(--nv-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
body.nv-locked { overflow: hidden; }
