/* =====================================================
   Nutrimoon / Margarita Moon — theme stylesheet
   ===================================================== */

:root {
  --color-olive: #A8AE5B;
  --color-olive-dark: #8E9548;
  --color-cream: #F6EFEA;
  --color-tan: #E1D1C4;
  --color-tan-dark: #CBB8AB;
  --color-pale-yellow: #FCF9DB;
  --color-blush: #F7F0EB;
  --color-white: #FFFFFF;
  --color-text: #373737;
  --color-text-light: #373737;
  --color-border: #E7DFD5;

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --font-alt: 'Unbounded', sans-serif;
  --font-serif: 'Lora', serif;

  --container-width: 1240px;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  font-size: 16px;
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.25;
  margin: 0 0 16px;
}
h1 { font-size: 46px; font-weight: 700; line-height: 56px; }
h2 { font-size: 30px; font-weight: 700; line-height: 39px; }
h3 { font-size: 20px; font-weight: 700; line-height: 23px; }

p { margin: 0 0 26px; }
a { color: inherit; text-decoration: none; }
a:visited { color: inherit; }
a:focus, a:focus-visible, button:focus, button:focus-visible { outline-color: var(--color-olive-dark); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

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

mark, .nm-highlight {
  background: var(--color-olive);
  color: var(--color-text);
  padding: 0 6px;
  border-radius: 2px;
  font-weight: 600;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Buttons -------------------------------------------------- */
.nm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
  white-space: nowrap;
}
.nm-btn-solid {
  background: var(--color-olive);
  color: var(--color-cream);
}
.nm-btn-solid:visited { color: var(--color-cream); }
.nm-btn-solid:hover { background: var(--color-olive-dark); color: var(--color-cream); }
.nm-btn-outline {
  background: transparent;
  border-color: var(--color-olive);
  color: var(--color-text);
}
.nm-btn-outline:hover { background: var(--color-olive); color: var(--color-cream); }
.nm-btn-block { width: 100%; }

.nm-link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 600; font-size: 16px;
  color: var(--color-olive) !important; margin-top: auto;
}
.nm-link-arrow svg { width: 18px; height: 18px; }
.nm-link-arrow:hover { color: var(--color-text) !important; }

/* Announcement bar ------------------------------------------ */
.nm-announce {
  background: var(--color-olive);
  color: var(--color-text);
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  padding: 10px 16px;
  letter-spacing: .2px;
}

/* Header ------------------------------------------------------ */
header.nm-header {
  background: var(--color-cream);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: relative;
  z-index: 100;
}
.nm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  max-width: 1680px;
  margin: 0 auto;
}
.nm-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nm-logo img { height: 46px; width: 46px; }
.nm-logo-text {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.15;
  color: var(--color-text);
}

.nm-nav { flex: 1; min-width: 0; }
/* Never wrap to a second row — the nav tightens instead, until the burger
   takes over at 1180px. */
.nm-nav ul { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: nowrap; }
.nm-nav a, .nm-nav a:visited {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--color-text);
  transition: color .15s ease;
}
.nm-nav a { white-space: nowrap; }
.nm-nav a:hover { color: var(--color-olive-dark); }
.nm-nav a.is-active { font-weight: 700; }

.nm-header-icons { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
/* The account and cart buttons are inline-flex inside plain block wrappers, so
   each wrapper builds a line box and the descender space pushes the button off
   centre. Making the wrappers flex removes the line box and lines all three
   icons up. Targeted rather than `> *`, which would beat .nm-mobile-toggle's
   display:none and reveal the burger on desktop. */
.nm-header-icons > .nm-account,
.nm-header-icons > #cart { display: flex; align-items: center; }
/* stylesheet.css ships `#cart { margin-bottom: 10px }`; against align-items:center
   that taller margin box lifts the cart icon half the margin off centre. */
.nm-header-icons > #cart { margin: 0; }
.nm-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nm-icon-btn:hover { color: var(--color-olive-dark); }
.nm-icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }

/* All line-style icons in this theme are drawn with stroke only */
.nm-sign-icon svg,
.nm-principle-icon svg,
.nm-account-toggle svg,
.nm-footer-social svg {
  fill: none;
  stroke: currentColor;
}

/* Search override -------------------------------------------- */
header #search {
  position: absolute;
  top: 100%;
  right: 24px;
  width: 320px;
  max-width: calc(100% - 48px);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  display: none;
  overflow: hidden;
}
header #search.nm-open { display: flex; }
header #search input {
  border: none;
  padding: 12px 14px;
  flex: 1;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
}
/* Bootstrap makes .input-group-btn a table-cell, which won't stretch as a flex
   child — so the button collapsed to a sliver. Force both to flex. */
header #search .input-group-btn { display: flex; width: auto; font-size: 0; }
header #search .input-group-btn button {
  border: none;
  background: var(--color-olive);
  color: #fff;
  width: 48px;
  height: auto;
  align-self: stretch;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
header #search .input-group-btn button:hover { background: var(--color-olive-dark); }
header #search .input-group-btn button svg { width: 19px; height: 19px; }

/* Cart / account dropdown overrides --------------------------- */
header #cart { position: relative; }
header #cart > button {
  background: none !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  padding: 0 !important;
  margin: 0;
  width: auto;
  color: var(--color-text) !important;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
header #cart > button:hover,
header #cart > button:focus,
header #cart > button:active {
  background: none !important;
  color: var(--color-olive-dark) !important;
  box-shadow: none !important;
}
header #cart > button .fa-shopping-cart { font-size: 17px; }
header #cart > button svg { width: 20px; height: 20px; }

/* Cart slide-out drawer ------------------------------------------------------ */
.nm-cart-backdrop {
  position: fixed; inset: 0; background: rgba(30,28,20,.35);
  opacity: 0; visibility: hidden; transition: opacity .25s ease;
  z-index: 998;
}
#cart.open .nm-cart-backdrop { opacity: 1; visibility: visible; }

.nm-cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 420px;
  max-width: 92vw;
  background: #fff;
  box-shadow: -12px 0 32px rgba(0,0,0,.15);
  transform: translateX(100%);
  transition: transform .3s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  overflow-y: auto;
}
#cart.open .nm-cart-drawer { transform: translateX(0); }

.nm-cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px; border-bottom: 1px solid var(--color-border);
  font-family: var(--font-heading); font-weight: 600; font-size: 15px; letter-spacing: .3px;
  flex-shrink: 0;
}
.nm-cart-close { background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--color-text); }

.nm-cart-items { padding: 8px 24px; flex: 1; }
.nm-cart-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--color-border); }
.nm-cart-thumb img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; background: var(--color-blush); }
.nm-cart-row-name { display: block; font-family: var(--font-heading); font-weight: 500; font-size: 14.5px; color: var(--color-text); margin-bottom: 4px; }
.nm-cart-row-option, .nm-cart-row-qty { font-size: 12.5px; color: var(--color-text-light); }
.nm-cart-remove { background: none; border: none; padding: 0; margin-top: 6px; font-size: 12.5px; color: var(--color-text-light); text-decoration: underline; cursor: pointer; }
.nm-cart-remove:hover { color: var(--color-olive-dark); }
.nm-cart-row-total { font-family: var(--font-heading); font-weight: 600; font-size: 14px; white-space: nowrap; }

.nm-cart-totals { padding: 20px 24px 28px; border-top: 1px solid var(--color-border); flex-shrink: 0; }
.nm-cart-total-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--color-text-light); margin-bottom: 8px; }
.nm-cart-total-row.nm-cart-total-final { font-family: var(--font-heading); font-weight: 600; font-size: 16px; color: var(--color-text); margin-bottom: 18px; }
.nm-cart-view-link { display: block; text-align: center; margin-top: 12px; font-size: 13.5px; color: var(--color-text-light); text-decoration: underline; }
.nm-cart-empty { padding: 40px 24px; text-align: center; color: var(--color-text-light); }
header #cart.open .dropdown-menu { display: block; }
header #cart table { width: 100%; font-size: 13px; }

.nm-account { position: relative; }
.nm-account-toggle {
  background: none; border: none; cursor: pointer; color: var(--color-text);
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; padding: 0;
}
.nm-account-toggle svg { width: 20px; height: 20px; }
.nm-account-menu {
  position: absolute; right: 0; top: calc(100% + 14px); min-width: 190px;
  background: #fff; border: 1px solid var(--color-border); border-radius: 4px;
  box-shadow: 0 12px 28px rgba(0,0,0,.12); padding: 8px 0; display: none; z-index: 50;
}
.nm-account.nm-open .nm-account-menu { display: block; }
.nm-account-menu a {
  display: block; padding: 9px 18px; font-size: 14px; font-family: var(--font-body);
}
.nm-account-menu a:hover { background: var(--color-blush); }

.nm-mobile-toggle { display: none; background: none; border: none; cursor: pointer; }

/* Sections ------------------------------------------------------ */
.nm-section { padding: 72px 0; }
.nm-section-tight { padding: 48px 0; }
.nm-eyebrow {
  font-family: var(--font-alt);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 10px;
  display: block;
}
.nm-bg-cream { background: var(--color-cream); }
.nm-bg-tan { background: var(--color-tan); }
.nm-bg-tan-dark { background: var(--color-tan-dark); }
.nm-bg-yellow { background: var(--color-pale-yellow); }
.nm-bg-blush { background: var(--color-blush); }

/* Hero ------------------------------------------------------- */
.nm-hero {
  background: var(--color-tan);
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
}
.nm-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: 0;
}
.nm-hero-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 40px max(24px, calc((100% - 1240px) / 2));
}
.nm-hero-overlay .nm-hero-copy { max-width: 620px; padding: 0; }
.nm-hero-overlay-right .nm-hero-copy { margin-left: auto; }
.nm-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  gap: 32px;
  min-height: 620px;
  padding-left: max(24px, calc((100% - 1240px) / 2));
  padding-right: 0;
}
.nm-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
.nm-hero-copy h1 {
  margin-bottom: 20px;
}
.nm-hero-copy p { font-family: var(--font-alt); font-size: 16px; line-height: 27px; color: var(--color-text-light); max-width: 480px; margin-bottom: 28px; }
.nm-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.nm-hero-photo { position: relative; height: 100%; min-height: 500px; }
.nm-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.nm-hero-dots { display: flex; gap: 8px; margin-top: 28px; }
.nm-hero-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(55,55,55,.25); }
.nm-hero-dots span:first-child { background: var(--color-text); }

/* Symptoms / signs grid ---------------------------------------- */
.nm-signs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 64px; }
.nm-sign-item { text-align: center; }
.nm-sign-icon {
  width: 92px; height: 92px; border-radius: 50%; border: 1.5px solid var(--color-olive);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
  color: var(--color-olive-dark);
}
.nm-sign-icon svg { width: 40px; height: 40px; }
.nm-sign-item span { font-family: var(--font-heading); font-weight: 600; font-size: 16px; }

.nm-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.nm-signs-section { gap: 80px; align-items: center; }

/* Cards ---------------------------------------------------------- */
.nm-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: auto;
}
.nm-card-media { position: relative; aspect-ratio: 3 / 2; background: var(--color-blush); overflow: hidden; }
.nm-card-media img { width: 100%; height: 100%; object-fit: contain; }
.nm-card-media.nm-cover img { object-fit: cover; }
.nm-card-media.nm-media-white { background: #fff; aspect-ratio: 3 / 2; }
.nm-card-media.nm-ratio-wide { aspect-ratio: 4 / 3; }
.nm-card:hover, .nm-card { box-shadow: 8px 8px 40px 2px rgba(0,0,0,.09); }
.nm-card-tag {
  position: absolute; top: 14px; right: 14px; background: var(--color-tan-dark);
  color: #fff; font-family: var(--font-heading); font-size: 11px; font-weight: 700;
  letter-spacing: .6px; padding: 5px 10px; border-radius: 2px;
}
.nm-card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.nm-card-body h3 { margin-bottom: 10px; }
.nm-card-body p { font-family: var(--font-alt); font-size: 14px; line-height: 25px; color: var(--color-text-light); flex: 1; }
.nm-card-body .nm-btn { margin-top: 14px; }

.nm-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.nm-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.nm-carousel-wrap { position: relative; }
.nm-carousel-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
.nm-carousel-track::-webkit-scrollbar { display: none; }
.nm-carousel-track > * { scroll-snap-align: start; flex: 0 0 calc(33.333% - 16px); min-width: 260px; }
.nm-carousel-nav, .nm-carousel-prev, .nm-carousel-next {
  position: absolute; top: 48%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; background: #fff;
  border: none; box-shadow: 0 0 14.5px 5px rgba(0,0,0,.05);
  display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 5;
  color: var(--color-text); padding: 0;
}
.nm-carousel-prev { left: -21px; }
.nm-carousel-next { right: -21px; }
.nm-carousel-prev svg, .nm-carousel-next svg { width: 18px; height: 18px; }
.nm-carousel-prev:hover, .nm-carousel-next:hover { background: var(--color-olive); color: #fff; }
@media (max-width: 640px) {
  .nm-carousel-prev, .nm-carousel-next { display: none; }
}

/* Banner / split sections ---------------------------------------- */
.nm-banner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
.nm-banner h2 { font-size: 30px; }
.nm-banner-photo { aspect-ratio: 4/5; overflow: hidden; border-radius: 4px; }
.nm-banner-photo img { width: 100%; height: 100%; object-fit: cover; }

.nm-split-panel { display: grid; grid-template-columns: 1fr 1fr; max-width: 1760px; margin: 0 auto; }
.nm-split-panel .nm-split-photo { height: 100%; min-height: 420px; max-height: 640px; }
.nm-split-panel .nm-split-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.nm-split-panel .nm-split-copy { padding: 56px; }
.nm-split-panel .nm-split-copy h2 { font-size: 26px; }
.nm-split-panel .nm-split-copy p { color: var(--color-text-light); }

/* Stats bar -------------------------------------------------------- */
.nm-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 24px; }
.nm-stats strong { display: block; font-family: var(--font-heading); font-size: 40px; color: var(--color-text); }
.nm-stats span { font-size: 16px; font-weight: 500; color: var(--color-text-light); }

/* Feature panel — rounded inset card (photo + copy), e.g. "About Margarita" -- */
.nm-panel-group { border-radius: 8px; overflow: hidden; }
.nm-feature-panel { background: var(--color-tan); display: grid; grid-template-columns: 46% 54%; align-items: stretch; min-height: 480px; }
.nm-feature-panel-photo { position: relative; min-height: 420px; }
.nm-feature-panel-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nm-feature-panel-copy { padding: 56px; display: flex; flex-direction: column; justify-content: center; }
.nm-feature-stats { background: var(--color-pale-yellow); padding: 44px 56px; }
@media (max-width: 900px) {
  .nm-feature-panel { grid-template-columns: 1fr; min-height: auto; }
  .nm-feature-panel-photo { min-height: 300px; }
  .nm-feature-panel-copy, .nm-feature-stats { padding: 32px; }
}

/* Areas grid (Sritys su kuriomis dirbu) ----------------------------- */
.nm-areas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; }
.nm-area h4 {
  display: inline-block; background: var(--color-olive); color: var(--color-text);
  font-size: 20px; font-weight: 600; padding: 6px 12px; border-radius: 2px; margin-bottom: 12px;
}
.nm-area p { color: var(--color-text-light); font-size: 14.5px; margin-bottom: 12px; }

.nm-dot-list li { position: relative; padding-left: 18px; margin-bottom: 6px; }
.nm-dot-list li::before {
  content: ''; position: absolute; left: 2px; top: 10px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--color-text-light);
}

/* Certification badge (Issilavinimas) ---------------------------------------- */
.nm-section-title-row { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 40px; }
.nm-section-title-row h2 { margin: 0; }
.nm-cert-badge { width: 80px; height: 80px; flex-shrink: 0; color: var(--color-text-light); }
.nm-cert-badge svg { width: 100%; height: 100%; }
.nm-cert-badge-text { font-size: 15px; }

/* Small brand mark used inline in copy blocks ------------------------------- */
.nm-inline-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.nm-inline-logo img { height: 72px; width: 72px; }
.nm-inline-logo span { font-family: var(--font-serif); font-size: 28px; line-height: 1.15; color: var(--color-text); }

/* Timeline ------------------------------------------------------------ */
.nm-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; margin-top: 40px; }
.nm-timeline::before {
  content: ''; position: absolute; top: 8px; left: 12%; right: 12%; height: 1px; background: var(--color-olive);
}
.nm-timeline-item { text-align: center; position: relative; }
.nm-timeline-dot { width: 15px; height: 15px; border-radius: 50%; background: var(--color-olive); margin: 0 auto 20px; position: relative; z-index: 2; }
.nm-timeline-item h5 { font-family: var(--font-heading); font-weight: 700; font-size: 17px; line-height: 25px; margin-bottom: 8px; }
.nm-timeline-item p { font-size: 14px; line-height: 25px; color: var(--color-text-light); }

/* Principles icon row --------------------------------------------------- */
.nm-principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.nm-principle-icon {
  width: 74px; height: 74px; border-radius: 50%; border: 1.5px solid var(--color-olive);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: var(--color-olive-dark);
}
.nm-principle-icon svg { width: 32px; height: 32px; }
.nm-principles h5 { font-size: 20px; margin-bottom: 8px; }
.nm-principles p { font-size: 14px; color: var(--color-text-light); }
.nm-principles-compact h5 { font-size: 16px; }
.nm-principles-compact p { font-weight: 300; }

/* Category / listing hero (olive, full-bleed photo) -------------------------- */
.nm-cat-hero {
  background: var(--color-olive);
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
}
.nm-cat-hero .nm-hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%; z-index: 0;
}
.nm-cat-hero .nm-hero-overlay {
  position: relative; z-index: 1; width: 100%;
  padding: 40px max(24px, calc((100% - 1240px) / 2));
}
.nm-cat-hero .nm-hero-copy { max-width: 620px; padding: 0; }
.nm-cat-hero .nm-hero-copy h1 { color: var(--color-text); font-size: 40px; }
.nm-cat-hero mark { background: var(--color-cream); color: var(--color-text); }
.nm-cat-hero .nm-hero-copy p { font-family: var(--font-body); font-size: 14px; line-height: 1.7; color: var(--color-text); max-width: 481px; }
.nm-cat-hero .nm-btn-solid { background: var(--color-olive); color: var(--color-cream); }
.nm-cat-hero .nm-btn-solid:hover { background: var(--color-olive-dark); }

/* Simple 4-across value props (no icon) -------------------------------------- */
.nm-value-props { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.nm-value-props h4 { font-family: var(--font-alt); color: var(--color-olive); font-size: 20px; font-weight: 700; line-height: 1.5; margin-bottom: 14px; }
.nm-value-props p { font-size: 14px; font-weight: 500; color: var(--color-text-light); }

/* Feature spotlight (product + checklist) ------------------------------------ */
.nm-spotlight {
  background: #fff; border: 1px solid var(--color-border); border-radius: 4px;
  padding: 48px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
}
.nm-spotlight-check { list-style: none; margin: 18px 0 24px; padding: 0; }
.nm-spotlight-check li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-family: var(--font-alt); font-size: 16px; }
.nm-spotlight-check svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--color-olive-dark); margin-top: 1px; }
.nm-spotlight-media { display: flex; gap: 16px; }
.nm-spotlight-media img { width: 180px; height: 220px; object-fit: cover; border-radius: 4px; }

/* Product detail --------------------------------------------------------------- */
.nm-product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 40px 0 20px; }
.nm-product-media { background: var(--color-blush); border-radius: 4px; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.nm-product-media img { width: 100%; height: 100%; object-fit: contain; }
.nm-product-info h1 { font-size: 26px; margin-bottom: 6px; }
.nm-product-meta { font-size: 13px; color: var(--color-text-light); margin-bottom: 18px; }
.nm-product-meta span { display: block; }
.nm-product-price { font-family: var(--font-heading); font-size: 26px; font-weight: 600; margin-bottom: 18px; }
.nm-product-price .nm-price-old { font-size: 16px; color: var(--color-text-light); text-decoration: line-through; font-weight: 400; margin-left: 8px; }
.nm-qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.nm-qty-selector { display: flex; align-items: center; border: 1px solid var(--color-border); border-radius: 3px; overflow: hidden; }
.nm-qty-selector button { width: 38px; height: 40px; background: var(--color-cream); border: none; font-size: 16px; cursor: pointer; }
.nm-qty-selector input { width: 48px; height: 40px; border: none; text-align: center; font-family: var(--font-heading); }
.nm-product-actions { display: flex; flex-direction: column; gap: 12px; max-width: 360px; margin-bottom: 20px; }
.nm-product-notes { font-size: 13.5px; color: var(--color-text-light); display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.nm-product-notes span { display: flex; align-items: center; gap: 8px; }
.nm-product-notes svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--color-olive-dark); }

.nm-faq-panel { background: #fff; border-radius: 4px; box-shadow: 8px 8px 40px 2px rgba(0,0,0,.09); padding: 8px 32px; }
.nm-faq-panel .nm-accordion { max-width: none; }
.nm-faq-panel .nm-accordion summary { font-family: var(--font-alt); font-weight: 500; font-size: 17px; padding: 20px 4px; }
.nm-accordion { border-top: 1px solid var(--color-border); max-width: 480px; }
.nm-accordion details { border-bottom: 1px solid var(--color-border); }
.nm-accordion summary {
  padding: 16px 4px; cursor: pointer; font-family: var(--font-heading); font-weight: 500;
  display: flex; justify-content: space-between; align-items: center; list-style: none;
}
.nm-accordion summary::-webkit-details-marker { display: none; }
.nm-accordion summary::after { content: '+'; font-size: 18px; color: var(--color-olive-dark); }
.nm-accordion details[open] summary::after { content: '\2212'; }
.nm-accordion .nm-accordion-body { padding: 0 4px 18px; font-size: 14px; color: var(--color-text-light); }

/* Search landing --------------------------------------------------------------- */
.nm-search-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; padding: 56px 0 100px; }
.nm-search-grid h1 { font-size: 32px; margin-bottom: 14px; }
.nm-search-grid p { color: var(--color-text-light); max-width: 460px; margin-bottom: 32px; }
.nm-search-input-row { display: flex; max-width: 480px; }
.nm-search-input-row input {
  flex: 1; border: 1px solid var(--color-border); border-right: none; padding: 15px 18px;
  font-family: var(--font-body); font-size: 15px; border-radius: 3px 0 0 3px; outline: none;
}
.nm-search-input-row input:focus { border-color: var(--color-olive); }
.nm-search-btn { border-radius: 0 3px 3px 0; max-width: 480px; margin-top: 14px; }
.nm-search-topics h4 { font-family: var(--font-heading); font-size: 15px; margin-bottom: 18px; }
.nm-search-topics a { display: block; padding: 7px 0; font-size: 14.5px; text-decoration: underline; }
.nm-search-topics a:hover { color: var(--color-olive-dark); }

/* Newsletter ---------------------------------------------------------------- */
.nm-newsletter { display: grid; grid-template-columns: 1fr 1fr; background: var(--color-pale-yellow); border-radius: 4px; overflow: hidden; }
.nm-newsletter > * { min-width: 0; }
.nm-newsletter-photo { min-height: 380px; }
.nm-newsletter-photo img { width: 100%; height: 100%; object-fit: cover; }
.nm-newsletter-copy { padding: 56px; }
.nm-newsletter-copy h2 { font-size: 26px; }
.nm-newsletter-copy p { color: var(--color-text-light); }
.nm-newsletter-form { display: flex; margin-top: 22px; max-width: 420px; }
.nm-newsletter-form input {
  flex: 1; border: 1px solid var(--color-border); border-right: none; padding: 13px 16px;
  font-family: var(--font-body); font-size: 14px; border-radius: 3px 0 0 3px; outline: none;
}
.nm-newsletter-form button {
  border-radius: 0 3px 3px 0;
}

/* Video block ----------------------------------------------------------------- */
.nm-video-frame { position: relative; border-radius: 4px; overflow: hidden; aspect-ratio: 705/393; }
.nm-video-frame img { width: 100%; height: 100%; object-fit: cover; }
.nm-video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center;
}
.nm-video-play svg { width: 22px; height: 22px; fill: var(--color-text); margin-left: 3px; }

/* Footer ------------------------------------------------------------------------ */
footer.nm-footer {
  background: var(--color-tan-dark);
  padding: 64px 0 72px;
  color: var(--color-text);
  margin-top: 0;
  border-top: none;
}
footer.nm-footer a, footer.nm-footer a:visited { color: var(--color-text); }
footer.nm-footer a:hover { color: var(--color-olive-dark); }
/* Middle column carries the contact line, so it needs room to stay on one row */
.nm-footer-top { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 40px; margin-bottom: 0; }
/* Brand lockup (moon mark + wordmark) is a single asset taken from the design
   file, so the wordmark keeps its own display serif and line weight. */
.nm-footer-logo { margin-bottom: 30px; }
.nm-footer-logo img { width: 300px; max-width: 100%; height: auto; }
.nm-footer-social { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.nm-footer-social a { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; }
.nm-footer-social svg { width: 18px; height: 18px; }
.nm-footer h4 { font-family: var(--font-heading); font-size: 15px; margin-bottom: 16px; }
/* Tight list rhythm — the body's 1.75 line-height is too airy for the footer */
.nm-footer ul li { margin-bottom: 0; line-height: 1.4; }
.nm-footer ul a, .nm-footer ul a:visited { font-size: 14.5px; color: var(--color-text); }
.nm-footer ul a:hover { color: var(--color-olive-dark); }
.nm-footer-contact { margin: 26px 0 6px; font-size: 14px; font-weight: 700; }
.nm-footer-company { margin: 0; font-size: 13.5px; }

/* Responsive ---------------------------------------------------------------------- */
@media (max-width: 1400px) {
  .nm-nav ul { gap: 18px; }
  .nm-nav a { font-size: 13.5px; }
}
@media (max-width: 1180px) {
  .nm-nav { display: none; }
  .nm-mobile-toggle { display: inline-flex; }
}
@media (max-width: 992px) {
  .nm-hero { display: block; min-height: auto; }
  .nm-hero-bg { position: static; width: 100%; height: 340px; object-position: center 25%; }
  .nm-hero-overlay { padding: 32px 24px; }
  .nm-hero-overlay .nm-hero-copy { max-width: none; }
  .nm-hero-grid { grid-template-columns: 1fr; min-height: auto; padding-left: 24px; padding-right: 24px; }
  .nm-hero-photo { min-height: 340px; order: -1; margin: 0 -24px; width: calc(100% + 48px); }
  .nm-two-col, .nm-banner, .nm-split-panel, .nm-newsletter, .nm-areas-grid { grid-template-columns: 1fr; }
  .nm-signs-section { gap: 40px; }
  .nm-signs-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 32px; }
  .nm-grid-3, .nm-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .nm-timeline, .nm-principles { grid-template-columns: repeat(2, 1fr); }
  .nm-stats { grid-template-columns: 1fr; }
  .nm-footer-top { grid-template-columns: 1fr; }
  .nm-carousel-track > * { flex: 0 0 calc(50% - 12px); }
  .nm-cat-hero { display: block; min-height: auto; }
  .nm-cat-hero .nm-hero-bg { position: static; width: 100%; height: 340px; object-position: center 25%; }
  .nm-cat-hero .nm-hero-overlay { padding: 32px 24px; }
  .nm-cat-hero .nm-hero-copy { max-width: none; }
  .nm-value-props { grid-template-columns: repeat(2, 1fr); }
  .nm-spotlight { grid-template-columns: 1fr; padding: 32px; text-align: left; }
  .nm-spotlight-media { flex-wrap: wrap; }
  .nm-product-grid { grid-template-columns: 1fr; gap: 28px; }
  .nm-search-grid { grid-template-columns: 1fr; gap: 32px; padding: 32px 0 56px; }
}
@media (max-width: 640px) {
  .nm-header-inner { flex-wrap: wrap; }
  .nm-hero-copy h1 { font-size: 30px; }
  .nm-grid-3, .nm-grid-2, .nm-signs-grid, .nm-timeline, .nm-principles, .nm-value-props { grid-template-columns: 1fr; }
  .nm-timeline { gap: 32px; }
  .nm-timeline::before { display: none; }
  .nm-spotlight-media img { width: 140px; height: 170px; }
  .nm-carousel-track > * { flex: 0 0 88%; }
  .nm-split-panel .nm-split-copy, .nm-newsletter-copy { padding: 32px; }
  .nm-newsletter-form { flex-direction: column; max-width: none; }
  .nm-newsletter-form input { border-right: 1px solid var(--color-border); border-radius: 3px; }
  .nm-newsletter-form button { border-radius: 3px; }
}

/* =====================================================
   Brand baseline for every other OpenCart page
   (account, checkout, error, sitemap, and any page that
   doesn't have a fully custom nm- template yet)
   ===================================================== */
#content, #product-category, #product-product, #product-search,
#account-account, #checkout-cart, #information-contact,
#information-information, .container > #content {
  font-family: var(--font-body);
  color: var(--color-text);
  padding-top: 32px;
  padding-bottom: 64px;
}
#content h1, #content h2, #content h3, #content h4,
.container h1, .container h2, .container h3 {
  font-family: var(--font-heading);
  color: var(--color-text);
}
#content a, .container a, #content a:visited, .container a:visited { color: var(--color-olive-dark); }
#content a:hover, .container a:hover { color: var(--color-text); }

.breadcrumb {
  background: transparent;
  padding: 18px 0;
  margin: 0;
  font-size: 13px;
  color: var(--color-text-light);
}
.breadcrumb li a, .breadcrumb li a:visited { color: var(--color-text-light); }
.breadcrumb li a:hover { color: var(--color-olive-dark); }
.breadcrumb > li + li::before { color: var(--color-text-light); }

/* Buttons everywhere default back to the brand button */
.btn, button, input[type="submit"] {
  font-family: var(--font-heading);
  border-radius: 3px;
  font-weight: 600;
}
.btn-primary, .btn-success, button[onclick*="cart.add"], .product-thumb .button-group button:first-child {
  background: var(--color-olive) !important;
  border-color: var(--color-olive) !important;
  color: #fff !important;
}
.btn-primary:hover, .btn-success:hover, button[onclick*="cart.add"]:hover {
  background: var(--color-olive-dark) !important;
  border-color: var(--color-olive-dark) !important;
}
.btn-default { border-color: var(--color-border); color: var(--color-text); }
.btn-default:hover { background: var(--color-blush); color: var(--color-text); }
.btn-link { color: var(--color-olive-dark); }

/* Form fields */
.form-control, select, textarea, input[type="text"], input[type="email"],
input[type="password"], input[type="tel"], input[type="number"] {
  border-radius: 3px;
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  box-shadow: none;
}
.form-control:focus {
  border-color: var(--color-olive);
  box-shadow: 0 0 0 3px rgba(168,174,91,.15);
}
label { font-family: var(--font-heading); font-weight: 500; font-size: 14px; }

/* Product grid (category/search default listing, kept as fallback) */
.product-thumb {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.product-thumb:hover { box-shadow: 0 12px 28px rgba(0,0,0,.08); }
.product-thumb .caption h4 a { font-family: var(--font-heading); font-weight: 600; color: var(--color-text); }
.product-thumb .price { font-family: var(--font-heading); font-weight: 600; color: var(--color-text); }
.product-thumb .price-new { color: var(--color-olive-dark); }
.product-thumb .price-old { color: var(--color-text-light); text-decoration: line-through; margin-left: 6px; }
.product-thumb .button-group button {
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

/* Tables / pagination / panels */
.table > thead > tr > th { font-family: var(--font-heading); border-bottom-color: var(--color-border); }
.table > tbody > tr > td { border-color: var(--color-border); }
.pagination > li > a, .pagination > li > span { color: var(--color-text); border-color: var(--color-border); }
.pagination > .active > a, .pagination > .active > span { background: var(--color-olive); border-color: var(--color-olive); }
.panel { border-color: var(--color-border); border-radius: 4px; box-shadow: none; }
.panel-default > .panel-heading { background: var(--color-cream); font-family: var(--font-heading); }
.alert-success { background: var(--color-blush); border-color: var(--color-olive); color: var(--color-text); }
.list-group-item.active, .list-group-item.active:hover { background: var(--color-olive); border-color: var(--color-olive); }

/* =====================================================
   "Kūno ženklai" program landing page
   ===================================================== */
.nm-hero-kz { background: var(--color-blush); }
.nm-hero-kz .nm-hero-grid { padding-right: max(24px, calc((100% - 1240px) / 2)); min-height: 560px; }
.nm-hero-kz .nm-hero-copy p { font-family: var(--font-body); font-size: 14px; }

.nm-kz-need-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.nm-check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.nm-check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 300; color: var(--color-text); }
.nm-check-list svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--color-olive-dark); margin-top: 2px; }

.nm-areas-grid-3 { grid-template-columns: repeat(3, 1fr); }

.nm-kz-community { margin-top: 48px; }
.nm-kz-community img { width: 100%; border-radius: 4px; }

.nm-kz-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.nm-kz-pricing-col { background: #fff; border: 1px solid var(--color-border); border-radius: 4px; padding: 32px; }
.nm-kz-features { list-style: decimal; margin: 20px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 14px; }
.nm-kz-features li { font-size: 13.5px; line-height: 1.6; color: var(--color-text-light); }
.nm-kz-excluded { text-decoration: line-through; opacity: .45; }

.nm-kz-partners { display: flex; align-items: center; justify-content: center; gap: 64px; margin-top: 56px; flex-wrap: wrap; }
.nm-kz-partners img { height: 40px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; }

.nm-kz-testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.nm-kz-testimonials p { font-size: 14px; line-height: 27px; text-align: center; color: var(--color-text); }

@media (max-width: 992px) {
  .nm-hero-kz .nm-hero-grid { grid-template-columns: 1fr; min-height: auto; padding-left: 24px; padding-right: 24px; }
  .nm-hero-kz .nm-hero-photo { min-height: 340px; margin: 0 -24px; width: calc(100% + 48px); }
  .nm-kz-need-grid, .nm-kz-pricing, .nm-kz-testimonials, .nm-areas-grid-3 { grid-template-columns: 1fr; }
}

/* =====================================================
   "Mitybos programa" (Pseudobadavimas) program landing page
   ===================================================== */
.nm-mp-section-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.nm-mp-section-head h2 { margin: 0; }

.nm-mp-suits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.nm-mp-suit-photo { aspect-ratio: 358 / 229; border-radius: 4px; overflow: hidden; margin-bottom: 20px; }
.nm-mp-suit-photo img { width: 100%; height: 100%; object-fit: cover; }
.nm-mp-suit-col h3 { text-align: center; margin-bottom: 18px; }

.nm-mp-note { font-size: 13px; font-style: italic; color: var(--color-text-light); margin: -8px 0 20px; }

@media (max-width: 992px) {
  .nm-mp-suits-grid { grid-template-columns: 1fr; }
  .nm-mp-section-head { justify-content: flex-start; }
}

/* Mokymai listing grid — titles vary from 1 to 4 lines, so every card gets
   a fixed-height title slot and a bottom-pinned button, keeping all 11
   cards (not just each row) the same total height. */
.nm-mokymai-grid .nm-card-body h3 { min-height: 92px; }
.nm-mokymai-grid .nm-card-body .nm-btn { margin-top: auto; }

/* Kontaktai page --------------------------------------------------- */
.nm-contact-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 64px; align-items: start; }
.nm-contact-heading { font-size: 22px; margin: 0 0 28px; }
.nm-contact-grid p { margin: 0 0 6px; color: var(--color-text-light); }
.nm-contact-person { font-weight: 700; color: var(--color-text) !important; }
.nm-contact-role { margin-bottom: 22px !important; }
.nm-contact-mail { color: var(--color-text); text-decoration: underline; font-weight: 500; }
.nm-contact-mail:hover { color: var(--color-olive-dark); }
.nm-contact-company { font-weight: 700; color: var(--color-text) !important; margin-top: 26px !important; }
.nm-contact-legal { font-size: 13.5px; }
.nm-contact-links { list-style: none; margin: 0 0 34px; padding: 0; }
.nm-contact-links li { margin-bottom: 12px; }
.nm-contact-links a { color: var(--color-text-light); font-size: 15px; }
.nm-contact-links a:hover { color: var(--color-olive-dark); }
.nm-contact-social { display: flex; flex-direction: column; gap: 14px; }
.nm-contact-social a { display: flex; align-items: center; gap: 10px; color: var(--color-text-light); font-size: 14.5px; }
.nm-contact-social a:hover { color: var(--color-olive-dark); }
.nm-contact-social svg { width: 20px; height: 20px; flex: none; }
.nm-contact-photo { aspect-ratio: 5/6; overflow: hidden; border-radius: 4px; }
.nm-contact-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Stats bar — same rhythm as .nm-feature-stats but tan, sits under the newsletter */
.nm-stats-bar { background: var(--color-tan); padding: 44px 56px; }

/* Soc tinklai ------------------------------------------------------ */
.nm-social-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.nm-social-head h2 { margin: 0; font-size: 30px; }
.nm-social-head .nm-btn { flex: none; }
.nm-social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nm-social-tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: var(--color-blush); }
.nm-social-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.nm-social-tile:hover img { transform: scale(1.04); }
.nm-social-badge { position: absolute; top: 12px; right: 12px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.nm-social-badge svg { width: 22px; height: 22px; display: block; }

@media (max-width: 992px) {
  .nm-contact-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .nm-contact-photo { grid-column: 1 / -1; aspect-ratio: 16/9; }
  .nm-stats-bar { padding: 32px; }
}
@media (max-width: 640px) {
  .nm-contact-grid { grid-template-columns: 1fr; }
  .nm-social-head { flex-direction: column; align-items: flex-start; }
  .nm-social-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
}

/* Tinklarastis (blog) page ----------------------------------------- */
/* Hero background matches the photo's own backdrop (sampled ~#A5A160) so the
   image edge disappears into the section. */
/* The hero art already contains its own olive backdrop, so it's used as the
   section background and the copy sits in the right-hand column. */
.nm-blog-hero {
  background: var(--color-olive) url('../image/blog-hero.jpg') center / cover no-repeat;
  overflow: hidden;
}
.nm-blog-hero-inner {
  width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  min-height: 500px;
}
.nm-blog-hero-copy { grid-column: 2; padding: 56px 0; max-width: 560px; }
.nm-blog-hero-copy .nm-eyebrow { color: #fff; }
.nm-blog-hero-copy h1 { font-size: 30px; line-height: 1.35; margin: 0 0 26px; color: #fff; }
.nm-blog-hero-copy p { color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.7; margin-bottom: 12px; }

.nm-section-head-center { text-align: center; margin-bottom: 44px; }
.nm-section-head-center h2 { margin: 0; font-size: 30px; }

.nm-topics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.nm-topic-card {
  border: 1px solid var(--color-border); border-radius: 4px;
  padding: 26px 24px; text-align: center; background: var(--color-white);
}
.nm-topic-card h3 { font-size: 17px; margin: 0 0 12px; }
.nm-topic-card p { font-family: var(--font-alt); font-size: 13.5px; line-height: 23px; color: var(--color-text-light); margin: 0; }

.nm-blog-listing-title { font-size: 22px; margin: 0 0 26px; }
.nm-blog-listing .nm-grid-3 + .nm-blog-listing-title { margin-top: 56px; }

.nm-blog-cta { text-align: center; max-width: 760px; }
.nm-blog-cta h2 { font-size: 28px; margin: 0 0 14px; }
.nm-blog-cta p { color: var(--color-text-light); margin: 0 auto 28px; max-width: 620px; }
.nm-blog-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

@media (max-width: 992px) {
  /* Single column: keep the copy legible over the photo */
  .nm-blog-hero { background-position: 22% center; }
  .nm-blog-hero-inner { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .nm-blog-hero-copy { grid-column: 1; padding: 40px 0 48px; max-width: none; background: rgba(122,126,60,.72); border-radius: 4px; }
  .nm-topics-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nm-topics-grid { grid-template-columns: 1fr; }
  .nm-blog-hero-copy h1 { font-size: 26px; }
}

/* Straipsnis (article) page ---------------------------------------- */
.nm-article { padding: 56px 0 24px; }
.nm-article-head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; margin-bottom: 64px; }
.nm-article-head h1 { font-size: 34px; line-height: 1.3; margin: 0 0 24px; }
.nm-article-intro { color: var(--color-text-light); margin: 0; }
.nm-article-hero { aspect-ratio: 3/2; overflow: hidden; border-radius: 2px; }
.nm-article-hero img { width: 100%; height: 100%; object-fit: cover; }

.nm-article-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; margin-bottom: 56px; }
.nm-article-row p { margin: 0 0 20px; }
.nm-article-row p:last-child { margin-bottom: 0; }
.nm-article-row h3 { font-size: 16.5px; line-height: 1.5; margin: 0 0 18px; }
.nm-article-row .nm-dot-list { margin: 0 0 20px; padding: 0; }
.nm-article-row .nm-dot-list li { position: relative; padding-left: 18px; margin-bottom: 6px; }
.nm-article-row .nm-dot-list li::before { content: "·"; position: absolute; left: 4px; }
.nm-article-figure { overflow: hidden; border-radius: 2px; }
.nm-article-figure img { width: 100%; height: auto; }

@media (max-width: 992px) {
  .nm-article-head, .nm-article-row { grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
  .nm-article-head h1 { font-size: 27px; }
}

/* Listing card price — mirrors .nm-product-price on the product page */
.nm-card-price { font-family: var(--font-heading); font-size: 20px; font-weight: 600; margin: 4px 0 14px; }
.nm-card-price .nm-price-old { font-size: 14px; color: var(--color-text-light); text-decoration: line-through; font-weight: 400; margin-left: 8px; }

/* Mokymai (digital course/lecture products) ----------------------------- */
.nm-kursas-hero-media { aspect-ratio: 4/3; background: none; }
.nm-kursas-hero-media img { object-fit: cover; }
.nm-kursas-note { font-size: 13px; color: var(--color-text-light); margin-top: 16px; }
.nm-kursas-note a { text-decoration: underline; }
.nm-kursas-note a:hover { color: var(--color-olive-dark); }
.nm-kursas-callout { font-weight: 600; margin-bottom: 18px; }
.nm-kursas-legal { font-size: 12.5px; line-height: 1.6; color: var(--color-text-light); }
.nm-kursas-legal p { margin-bottom: 10px; }
.nm-kursas-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.nm-kursas-2col h4 { font-size: 15px; margin: 0 0 6px; }
.nm-kursas-module { margin-bottom: 22px; }
.nm-kursas-module p { font-size: 14px; color: var(--color-text-light); margin: 0; }

@media (max-width: 992px) {
  .nm-kursas-2col { grid-template-columns: 1fr; gap: 8px; }
}

/* Account: login / register ---------------------------------------- */
.nm-auth { padding: 40px 0 96px; }
.nm-auth .nm-eyebrow { display: block; margin-bottom: 40px; }
.nm-auth-form { max-width: 400px; margin: 0 auto; }
.nm-auth-form h1 { font-size: 30px; text-align: center; margin: 0 0 34px; }
.nm-auth-form input[type="text"],
.nm-auth-form input[type="email"],
.nm-auth-form input[type="password"] {
  width: 100%; padding: 14px 16px; margin-bottom: 14px;
  border: 1px solid var(--color-border); border-radius: 3px;
  font-family: var(--font-body); font-size: 14px; outline: none; background: #fff;
}
.nm-auth-form input:focus { border-color: var(--color-olive); }
.nm-auth-forgot { display: block; text-align: right; font-size: 13px; text-decoration: underline; margin-bottom: 26px; }
.nm-auth-forgot:hover { color: var(--color-olive-dark); }
.nm-auth-alt { text-align: center; font-size: 13.5px; margin: 18px 0 0; color: var(--color-text-light); }
.nm-auth-alt a { text-decoration: underline; }
.nm-auth-note { padding: 12px 16px; border-radius: 3px; font-size: 14px; margin-bottom: 20px; }
.nm-auth-note-ok { background: var(--color-pale-yellow); }
.nm-auth-note-error { background: var(--color-blush); border: 1px solid var(--color-tan-dark); }

/* Account: dashboard ----------------------------------------------- */
.nm-account-page { padding: 40px 0 96px; }
.nm-account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 64px; align-items: start; }
.nm-account-nav { display: flex; flex-direction: column; gap: 14px; }
.nm-account-nav a { font-size: 14.5px; color: var(--color-text); }
.nm-account-nav a:hover { color: var(--color-olive-dark); }
.nm-account-nav a.is-active { font-weight: 700; }
.nm-account-main .nm-eyebrow { display: block; margin-bottom: 14px; }
.nm-account-main h1 { font-size: 30px; margin: 0 0 16px; }
.nm-account-intro { color: var(--color-text-light); font-size: 14px; max-width: 460px; }
.nm-account-help { margin-top: 96px; max-width: 460px; }
.nm-account-help h3 { font-size: 15px; margin: 0 0 12px; }
.nm-account-help p { font-size: 13.5px; color: var(--color-text-light); margin: 0 0 10px; }

/* Account: order history table ------------------------------------- */
.nm-account-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.nm-account-table th {
  background: var(--color-olive); color: var(--color-text);
  font-family: var(--font-heading); font-weight: 700; text-align: left; padding: 12px 14px;
}
.nm-account-table td { padding: 14px; border: 1px solid var(--color-border); }

@media (max-width: 900px) {
  .nm-account-layout { grid-template-columns: 1fr; gap: 32px; }
  .nm-account-nav { flex-direction: row; flex-wrap: wrap; gap: 16px 22px; }
  .nm-account-help { margin-top: 56px; }
}

/* Register form — same treatment as login, a little wider for more fields */
.nm-auth-form-wide { max-width: 460px; }
.nm-field-error { color: #a4442f; font-size: 12.5px; margin: -8px 0 12px; }
.nm-auth-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; font-size: 13.5px; color: var(--color-text-light); }
.nm-auth-check input { margin-top: 3px; flex: none; accent-color: var(--color-olive); }
.nm-auth-check a { text-decoration: underline; }

/* Order history table extras */
.nm-table-scroll { overflow-x: auto; }
.nm-account-table td:first-child { white-space: nowrap; }
.nm-order-link { text-decoration: underline; }
.nm-order-link:hover { color: var(--color-olive-dark); }
.nm-account-pagination { margin-top: 24px; font-size: 13.5px; }

/* Account forms (edit / newsletter / address) ---------------------- */
.nm-account-form { max-width: 460px; margin-top: 28px; }
.nm-account-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.nm-account-form input[type="text"],
.nm-account-form input[type="email"],
.nm-account-form input[type="tel"],
.nm-account-form input[type="password"],
.nm-account-form textarea,
.nm-account-form select {
  width: 100%; padding: 12px 14px; margin-bottom: 16px;
  border: 1px solid var(--color-border); border-radius: 3px;
  font-family: var(--font-body); font-size: 14px; background: #fff; outline: none;
}
.nm-account-form input:focus, .nm-account-form textarea:focus, .nm-account-form select:focus { border-color: var(--color-olive); }
.nm-account-form .nm-auth-check label { margin-bottom: 0; }
.nm-account-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.nm-address-list { display: grid; gap: 16px; margin-top: 26px; max-width: 620px; }
.nm-address-card { border: 1px solid var(--color-border); border-radius: 4px; padding: 20px 22px; }
.nm-address-card p { margin: 0 0 16px; font-size: 14px; line-height: 1.7; }
.nm-address-card-actions { display: flex; gap: 10px; }
.nm-address-card-actions .nm-btn { padding: 9px 18px; font-size: 13px; }
.nm-btn-danger { border-color: var(--color-tan-dark); }
.nm-btn-danger:hover { background: var(--color-tan-dark); color: #fff; }

/* Address form still uses Bootstrap's form-horizontal markup — flatten it so it
   stacks like the hand-built account forms instead of floating labels left. */
.nm-account-stack .form-horizontal .form-group { margin: 0 0 16px; }
.nm-account-stack .control-label { float: none; width: auto; text-align: left; padding: 0 0 6px; font-size: 13px; font-weight: 600; }
.nm-account-stack .form-horizontal .col-sm-2,
.nm-account-stack .form-horizontal .col-sm-10 { float: none; width: 100%; padding: 0; }
.nm-account-stack .form-control {
  width: 100%; height: auto; padding: 12px 14px; box-shadow: none;
  border: 1px solid var(--color-border); border-radius: 3px;
  font-family: var(--font-body); font-size: 14px;
}
.nm-account-stack .form-control:focus { border-color: var(--color-olive); box-shadow: none; }
.nm-account-stack fieldset { max-width: 460px; }
.nm-account-stack legend { border: none; font-family: var(--font-heading); font-size: 16px; font-weight: 700; margin: 24px 0 14px; }
.nm-account-stack .buttons { display: flex; gap: 12px; margin-top: 26px; max-width: 460px; }
.nm-account-stack .buttons .pull-left, .nm-account-stack .buttons .pull-right { float: none !important; }
.nm-account-stack .btn-primary, .nm-account-stack .btn-default {
  background: var(--color-olive); border-color: var(--color-olive); color: var(--color-cream);
  padding: 13px 28px; border-radius: 3px; font-weight: 600; text-shadow: none;
}
.nm-account-stack .btn-default { background: transparent; color: var(--color-text); }
.nm-account-stack .btn-primary:hover { background: var(--color-olive-dark); border-color: var(--color-olive-dark); }
.nm-account-stack .btn-default:hover { background: var(--color-olive); color: var(--color-cream); }
.nm-account-stack .radio-inline { margin-right: 18px; font-size: 14px; }

/* Shared confirmation / message page (logout, order success, contact sent) */
.nm-message-page { padding: 72px 0 110px; }
.nm-message-box { max-width: 560px; margin: 0 auto; text-align: center; }
.nm-message-box h1 { font-size: 30px; line-height: 1.3; margin: 0 0 20px; }
.nm-message-body { color: var(--color-text-light); font-size: 14.5px; }
.nm-message-body p { margin: 0 0 14px; }
.nm-message-box .nm-btn { margin-top: 20px; }

/* Intro line under an auth heading (forgotten / reset password) */
.nm-auth-lead { text-align: center; font-size: 14px; color: var(--color-text-light); margin: -18px 0 28px; }

/* Cart page --------------------------------------------------------- */
.nm-cart-page { padding: 40px 0 96px; }
.nm-cart-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 40px; align-items: start; }
.nm-cart-main .nm-eyebrow { display: block; margin-bottom: 12px; }
.nm-cart-main h1 { font-size: 30px; margin: 0 0 14px; }
.nm-cart-lead { color: var(--color-text-light); font-size: 14px; max-width: 420px; margin-bottom: 34px; }
.nm-cart-subhead { font-family: var(--font-heading); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 16px; }

/* Progress steps */
.nm-steps { display: flex; justify-content: space-between; list-style: none; margin: 0 0 44px; padding: 0; position: relative; }
.nm-steps::before { content: ""; position: absolute; left: 6px; right: 6px; bottom: 5px; height: 1px; background: var(--color-border); }
.nm-steps li { position: relative; flex: 1; font-size: 12px; color: var(--color-text-light); }
.nm-steps li:last-child { flex: 0 0 auto; }
.nm-step-label { display: block; margin-bottom: 12px; }
.nm-step-dot { display: block; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 1px solid var(--color-border); position: relative; z-index: 1; }
.nm-steps li.is-active .nm-step-dot { background: var(--color-olive); border-color: var(--color-olive); }
.nm-steps li.is-active { color: var(--color-text); font-weight: 600; }

/* Cart lines */
.nm-cart-line { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; background: var(--color-blush); border-radius: 4px; padding: 20px; margin-bottom: 14px; }
.nm-cart-line-thumb img { width: 96px; height: 96px; object-fit: cover; border-radius: 3px; }
.nm-cart-line-name { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.nm-cart-line-code { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-light); margin-bottom: 14px; }
.nm-cart-line-option { font-size: 12.5px; color: var(--color-text-light); }
.nm-cart-oos { color: #a4442f; font-weight: 700; }
.nm-cart-line-controls { display: flex; align-items: center; gap: 26px; margin-top: 12px; }
.nm-cart-line-price { font-family: var(--font-heading); font-weight: 700; font-size: 16px; white-space: nowrap; }
.nm-cart-remove { background: none; border: none; padding: 0; cursor: pointer; font-family: var(--font-heading); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text); }
.nm-cart-remove:hover { color: var(--color-olive-dark); }
.nm-qty-selector .nm-qty-minus, .nm-qty-selector .nm-qty-plus { width: 30px; height: 32px; background: #fff; border: none; cursor: pointer; font-size: 15px; }
.nm-qty-selector input { width: 36px; height: 32px; border: none; text-align: center; font-family: var(--font-heading); background: #fff; }

/* Right column boxes */
.nm-cart-side { display: grid; gap: 16px; }
.nm-cart-box { background: var(--color-blush); border-radius: 4px; padding: 22px; }
.nm-cart-box h3 { font-family: var(--font-heading); font-size: 13.5px; font-weight: 600; margin: 0 0 18px; color: var(--color-text-light); }
.nm-cart-totals { margin: 0 0 18px; }
.nm-cart-totals > div { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; margin-bottom: 10px; }
.nm-cart-totals dt, .nm-cart-totals dd { margin: 0; }
.nm-cart-totals > div.is-grand { font-family: var(--font-heading); font-weight: 700; font-size: 15px; border-top: 1px solid var(--color-border); padding-top: 12px; margin-top: 14px; }
.nm-cart-input { width: 100%; padding: 12px 14px; margin-bottom: 12px; border: 1px solid var(--color-border); border-radius: 3px; font-family: var(--font-body); font-size: 13.5px; background: #fff; outline: none; }
.nm-cart-input:focus { border-color: var(--color-olive); }
.nm-cart-box .nm-btn-outline { background: #fff; }

@media (max-width: 992px) {
  .nm-cart-layout { grid-template-columns: 1fr; }
  .nm-steps { display: none; }
  .nm-cart-line { grid-template-columns: 72px 1fr; }
  .nm-cart-line-thumb img { width: 72px; height: 72px; }
  .nm-cart-line-price { grid-column: 2; }
}

/* Cart drawer — product row detail, savings band */
.nm-cart-row-code { font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--color-text-light); margin-bottom: 8px; }
.nm-cart-row-controls { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.nm-cart-row-price { text-align: right; white-space: nowrap; }
.nm-cart-row-old { display: block; font-size: 12px; color: var(--color-text-light); text-decoration: line-through; font-weight: 400; margin-top: 2px; }
.nm-qty-small .nm-qty-minus, .nm-qty-small .nm-qty-plus { width: 24px; height: 26px; font-size: 13px; }
.nm-qty-small input { width: 28px; height: 26px; font-size: 13px; }
.nm-cart-savings { display: flex; justify-content: space-between; background: var(--color-blush); padding: 14px 24px; font-size: 13.5px; font-weight: 600; }
/* Discounted price reads red, matching the design */
.nm-cart-row-total.is-discounted { color: #C0392B; }
.nm-cart-line-price .is-discounted { color: #C0392B; }
.nm-cart-line-old { display: block; font-size: 13px; font-weight: 400; color: var(--color-text-light); text-decoration: line-through; margin-top: 3px; }

/* Product page — neutral image backdrop and quantity label, per design */
.nm-product-media { background: #F3F2F0; }
.nm-qty-row { gap: 12px; }
.nm-qty-label { font-size: 13px; color: var(--color-text-light); }
