/* ==========================================================================
   NASHIRA HERITAGE DESIGN SYSTEM
   Global tokens + primitives shared by all ns-* sections
   ========================================================================== */

:root {
  --ns-ivory: #f7f0e4;
  --ns-ivory-deep: #efe5d2;
  --ns-maroon: #5a0f1c;
  --ns-maroon-2: #7a1726;
  --ns-gold: #bf9b48;
  --ns-gold-bright: #d8b566;
  --ns-gold-deep: #9a7a32;
  --ns-ink: #2a1810;
  --ns-ink-soft: #6b574a;
  --ns-green: #1f4434;
  --ns-line: #ddccae;
  --ns-cream: #fffdf7;

  --ns-serif: "Cormorant Garamond", "Times New Roman", serif;
  --ns-display: "Marcellus", "Times New Roman", serif;
  --ns-body: "Mukta", "Helvetica Neue", Arial, sans-serif;

  --ns-wrap: 1380px;
  --ns-gutter: 32px;
  --ns-radius: 0px;

  /* Stacking order. Every layer below lives on <body>, so these numbers are
     comparable across the whole theme - keep new overlays on this scale
     instead of inventing another 9999. The drawers sit above the theme's own
     fixed furniture (cart drawer 999, sticky add-to-cart 9990, collection
     filter sheets 9995) and well below GoKwik's checkout, which mounts on
     <body> at z-index 100000001 and must always win. */
  --ns-z-header: 60;
  --ns-z-scrim: 10000;
  --ns-z-drawer: 10010;
  --ns-z-search: 10020;
}

/* --------------------------------------------------------------------------
   BASE OVERRIDES - applied when heritage skin is enabled
   -------------------------------------------------------------------------- */

body.ns-heritage {
  font-family: var(--ns-body);
  color: var(--ns-ink);
  background: var(--ns-ivory);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.ns-heritage h1,
body.ns-heritage h2,
body.ns-heritage h3,
body.ns-heritage h4,
body.ns-heritage .h1,
body.ns-heritage .h2,
body.ns-heritage .h3,
body.ns-heritage .h4 {
  font-family: var(--ns-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
}

body.ns-heritage .button,
body.ns-heritage button.button,
body.ns-heritage .shopify-payment-button__button {
  border-radius: 0;
  font-family: var(--ns-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */

.ns-wrap {
  max-width: var(--ns-wrap);
  margin-inline: auto;
  padding-inline: var(--ns-gutter);
  width: 100%;
}

.ns-section {
  padding-block: var(--ns-pad-top, 100px) var(--ns-pad-bottom, 100px);
  position: relative;
}

.ns-section * {
  box-sizing: border-box;
}

.ns-section img {
  display: block;
  max-width: 100%;
}

.ns-section a {
  text-decoration: none;
  color: inherit;
}

/* --------------------------------------------------------------------------
   ORNAMENT + RULES
   -------------------------------------------------------------------------- */

.ns-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-inline: auto;
}

.ns-ornament::before,
.ns-ornament::after {
  content: "";
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--ns-orn, var(--ns-gold)));
}

.ns-ornament::after {
  background: linear-gradient(90deg, var(--ns-orn, var(--ns-gold)), transparent);
}

.ns-ornament span {
  color: var(--ns-orn, var(--ns-gold));
  font-size: 17px;
  line-height: 1;
}

.ns-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ns-gold) 20%, var(--ns-gold) 80%, transparent);
}

/* --------------------------------------------------------------------------
   TYPE PRIMITIVES
   -------------------------------------------------------------------------- */

.ns-eyebrow {
  font-family: var(--ns-body);
  font-size: 14px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ns-eyebrow-color, var(--ns-gold-deep));
  font-weight: 500;
  display: block;
}

.ns-sechead {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.ns-sechead .ns-ornament {
  margin-bottom: 18px;
}

.ns-sechead h2 {
  font-family: var(--ns-display);
  font-size: clamp(36px, 4.83vw, 62px);
  margin: 8px 0 14px;
  line-height: 1.06;
  font-weight: 400;
  color: var(--ns-head-color, var(--ns-ink));
}

.ns-sechead h2 em,
.ns-sechead h2 i {
  font-family: var(--ns-serif);
  font-style: italic;
  color: var(--ns-accent-color, var(--ns-maroon));
}

.ns-sechead p {
  color: var(--ns-body-color, var(--ns-ink-soft));
  font-size: 20px;
  font-family: var(--ns-serif);
  font-style: italic;
  margin: 0;
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */

.ns-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ns-gold);
  color: var(--ns-ink);
  padding: 16px 40px;
  font-family: var(--ns-body);
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  transition: 0.4s;
  border: 1px solid var(--ns-gold);
  cursor: pointer;
  text-align: center;
}

.ns-btn:hover {
  background: var(--ns-gold-bright);
  border-color: var(--ns-gold-bright);
  color: var(--ns-ink);
}

.ns-btn--line {
  background: transparent;
  color: var(--ns-ivory);
  border-color: rgba(216, 181, 102, 0.6);
}

.ns-btn--line:hover {
  background: var(--ns-ivory);
  color: var(--ns-maroon);
  border-color: var(--ns-ivory);
}

.ns-btn--maroon {
  background: var(--ns-maroon);
  color: var(--ns-ivory);
  border-color: var(--ns-maroon);
}

.ns-btn--maroon:hover {
  background: var(--ns-maroon-2);
  border-color: var(--ns-maroon-2);
  color: var(--ns-ivory);
}

.ns-btn--ink {
  background: var(--ns-ink);
  color: var(--ns-ivory);
  border-color: var(--ns-ink);
}

.ns-btn--ink:hover {
  background: var(--ns-maroon);
  border-color: var(--ns-maroon);
  color: var(--ns-ivory);
}

.ns-viewall {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--ns-body);
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ns-link-color, var(--ns-maroon));
  font-weight: 600;
  border-bottom: 1px solid var(--ns-gold);
  padding-bottom: 4px;
  transition: 0.3s;
}

.ns-viewall:hover {
  gap: 16px;
  color: var(--ns-gold-deep);
}

.ns-rowfoot {
  text-align: center;
  margin-top: 54px;
}

/* --------------------------------------------------------------------------
   PRODUCT CARD (shared across all product-grid sections)
   -------------------------------------------------------------------------- */

.ns-prow {
  display: grid;
  grid-template-columns: repeat(var(--ns-cols, 4), minmax(0, 1fr));
  gap: 38px 28px;
}

.ns-pcard {
  text-align: center;
  position: relative;
  display: block;
}

.ns-pcard__frame {
  position: relative;
  aspect-ratio: 1 / 1.16;
  overflow: hidden;
  background: var(--ns-ivory-deep);
  border: 1px solid var(--ns-line);
}

.ns-pcard__frame::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(191, 155, 72, 0);
  transition: 0.4s;
  pointer-events: none;
  z-index: 3;
}

.ns-pcard:hover .ns-pcard__frame::after {
  border-color: rgba(191, 155, 72, 0.5);
}

.ns-pcard__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ns-pcard__img--alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 2;
}

.ns-pcard:hover .ns-pcard__img--alt {
  opacity: 1;
}

.ns-pcard:hover .ns-pcard__frame img {
  transform: scale(1.06);
}

.ns-badge {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  background: var(--ns-maroon);
  color: var(--ns-gold-bright);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 7px 13px;
  font-weight: 500;
  z-index: 5;
  font-family: var(--ns-body);
  line-height: 1.4;
}

.ns-badge--gold {
  background: var(--ns-gold);
  color: var(--ns-ink);
}

.ns-badge--sold {
  background: #6b574a;
  color: var(--ns-ivory);
}

.ns-pcard__wish {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  width: 34px;
  height: 34px;
  background: rgba(255, 253, 247, 0.94);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-6px);
  transition: 0.35s;
  z-index: 5;
  border: none;
  cursor: pointer;
  padding: 0;
}

.ns-pcard:hover .ns-pcard__wish {
  opacity: 1;
  transform: translateY(0);
}

.ns-pcard__wish svg {
  width: 16px;
  height: 16px;
  stroke: var(--ns-maroon);
  fill: none;
  stroke-width: 1.5;
}

.ns-pcard__add {
  position: absolute;
  inset-inline: 8px;
  bottom: 8px;
  background: var(--ns-ink);
  color: var(--ns-ivory);
  text-align: center;
  padding: 13px;
  font-family: var(--ns-body);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0;
  transform: translateY(14px);
  transition: 0.4s;
  z-index: 5;
  border: none;
  cursor: pointer;
  width: calc(100% - 16px);
}

.ns-pcard:hover .ns-pcard__add {
  opacity: 1;
  transform: translateY(0);
}

.ns-pcard__add:hover {
  background: var(--ns-maroon);
}

.ns-pcard__add[disabled] {
  opacity: 1;
  transform: none;
  background: #8a7767;
  cursor: not-allowed;
}

.ns-pcard__name {
  font-family: var(--ns-display);
  font-size: 22px;
  margin-top: 18px;
  letter-spacing: 0.02em;
  color: var(--ns-head-color, var(--ns-ink));
  line-height: 1.3;
}

.ns-pcard__desc {
  font-family: var(--ns-serif);
  font-size: 17px;
  font-style: italic;
  color: var(--ns-ink-soft);
  margin-top: 2px;
}

.ns-pcard__price {
  margin-top: 9px;
  font-size: 17px;
  color: var(--ns-ink);
  letter-spacing: 0.04em;
  font-family: var(--ns-body);
}

.ns-pcard__price .ns-was {
  text-decoration: line-through;
  color: #ad9d86;
  margin-inline-start: 8px;
  font-size: 15.5px;
}

.ns-pcard__stars {
  margin-top: 6px;
  color: var(--ns-gold);
  font-size: 14px;
  letter-spacing: 3px;
}

/* --------------------------------------------------------------------------
   REVEAL ANIMATION
   -------------------------------------------------------------------------- */

/* Only hide for the reveal animation once JS has confirmed it can un-hide.
   Without this gate a script error leaves every revealed element invisible. */
html.ns-js .ns-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}

html.ns-js .ns-reveal.ns-in {
  opacity: 1;
  transform: none;
}

/* Belt and braces: if the observer has not fired within 3s, show anyway. */
html.ns-js .ns-reveal {
  animation: ns-reveal-failsafe 0s linear 3s forwards;
}

@keyframes ns-reveal-failsafe {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ns-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .ns-prow {
    grid-template-columns: repeat(var(--ns-cols-tab, 3), minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  :root {
    --ns-gutter: 18px;
  }

  .ns-section {
    padding-block: var(--ns-pad-top-mob, 66px) var(--ns-pad-bottom-mob, 66px);
  }

  .ns-prow {
    grid-template-columns: repeat(var(--ns-cols-mob, 2), minmax(0, 1fr));
    gap: 28px 16px;
  }

  .ns-pcard__name {
    font-size: 20px;
  }

  .ns-pcard__desc {
    font-size: 16px;
  }

  .ns-sechead {
    margin-bottom: 36px;
  }

  .ns-btn {
    padding: 14px 28px;
  }

  .ns-rowfoot {
    margin-top: 36px;
  }
}

/* --------------------------------------------------------------------------
   MOBILE DRAWER + SCRIM + TOAST (global - rendered outside section scope)
   -------------------------------------------------------------------------- */

.ns-dr {
  position: fixed;
  inset: 0 28% 0 0;
  background: var(--ns-cream);
  z-index: var(--ns-z-drawer);
  transform: translateX(-100%);
  transition: transform 0.45s cubic-bezier(0.7, 0, 0.2, 1);
  padding: 28px 26px 40px;
  overflow-y: auto;
  border-inline-end: 2px solid var(--ns-gold);
  display: flex;
  flex-direction: column;
}

.ns-dr.ns-open {
  transform: translateX(0);
}

.ns-dr__close {
  font-size: 32px;
  cursor: pointer;
  text-align: end;
  margin-bottom: 8px;
  font-family: var(--ns-display);
  color: var(--ns-maroon);
  background: none;
  border: none;
  align-self: flex-end;
  line-height: 1;
  padding: 4px 8px;
}

.ns-dr__item {
  border-bottom: 1px solid var(--ns-line);
}

.ns-dr__parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 400;
  font-family: var(--ns-body);
  color: var(--ns-ink);
}

.ns-dr__parent svg {
  transition: transform 0.3s;
  flex: none;
}

.ns-dr__item.ns-open .ns-dr__parent svg {
  transform: rotate(180deg);
}

.ns-dr__sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.ns-dr__item.ns-open .ns-dr__sub {
  grid-template-rows: 1fr;
}

.ns-dr__sub > * {
  overflow: hidden;
}

/* Submenu links - plain text list by default (tablet + desktop drawer) */
.ns-dr__card {
  display: block;
  padding: 11px 0 11px 14px;
  font-family: var(--ns-serif);
  font-size: 19px;
  color: var(--ns-ink-soft);
  text-transform: none;
  letter-spacing: 0;
}

.ns-dr__grid > .ns-dr__card:first-child {
  padding-top: 4px;
}

.ns-dr__grid > .ns-dr__card:last-child {
  padding-bottom: 16px;
}

/* Thumbnails are phone-only */
.ns-dr__thumb {
  display: none;
}

.ns-dr__cta {
  margin-top: 28px;
  width: 100%;
}

.ns-scrim {
  position: fixed;
  inset: 0;
  background: rgba(40, 15, 12, 0.5);
  z-index: var(--ns-z-scrim);
  opacity: 0;
  visibility: hidden;
  transition: 0.4s;
}

.ns-scrim.ns-open {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 680px) {
  .ns-dr {
    inset: 0 14% 0 0;
  }

  /* Phone: submenu becomes a 2-up grid of collection image cards */
  .ns-dr__grid:not(.ns-dr__grid--plain) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 6px 0 18px;
  }

  .ns-dr__grid:not(.ns-dr__grid--plain) .ns-dr__card {
    position: relative;
    display: block;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--ns-gold);
    background: var(--ns-ivory-deep);
    -webkit-tap-highlight-color: transparent;
  }

  .ns-dr__grid:not(.ns-dr__grid--plain) .ns-dr__card:active {
    opacity: 0.82;
  }

  .ns-dr__grid:not(.ns-dr__grid--plain) .ns-dr__thumb {
    display: block;
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(155deg, var(--ns-ivory-deep), var(--ns-line));
  }

  .ns-dr__grid:not(.ns-dr__grid--plain) .ns-dr__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .ns-dr__grid:not(.ns-dr__grid--plain) .ns-dr__thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(40, 10, 12, 0.72), rgba(40, 10, 12, 0.04) 58%);
  }

  .ns-dr__grid:not(.ns-dr__grid--plain) .ns-dr__label {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 2;
    padding: 0 8px 10px;
    text-align: center;
    font-family: var(--ns-display);
    font-size: 16px;
    line-height: 1.25;
    letter-spacing: 0.04em;
    color: var(--ns-ivory);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  }

  /* No image available - keep the card, drop the photo well */
  .ns-dr__grid:not(.ns-dr__grid--plain) .ns-dr__card--noimg .ns-dr__thumb {
    aspect-ratio: 16 / 7;
    background: linear-gradient(150deg, var(--ns-maroon), var(--ns-maroon-2));
  }

  .ns-dr__grid:not(.ns-dr__grid--plain) .ns-dr__card--noimg .ns-dr__thumb::after {
    background: none;
  }
}

/* Toast */
.ns-toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ns-ink);
  color: var(--ns-ivory);
  padding: 14px 26px;
  font-family: var(--ns-body);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--ns-gold);
  z-index: 200;
  opacity: 0;
  transition: 0.4s;
}

.ns-toast--in {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Wishlist saved state */
.ns-pcard__wish.ns-saved svg {
  fill: var(--ns-maroon);
}

/* Placeholder */
.ns-placeholder {
  width: 100%;
  height: 100%;
  background: var(--ns-ivory-deep);
  fill: rgba(191, 155, 72, 0.35);
}

/* ==========================================================================
   BACKGROUND SYSTEM - subtle premium surface treatment
   Low-opacity, never competes with product imagery.
   ========================================================================== */
.ns-heritage {
  background-color: var(--ns-ivory, #f7f0e4);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(191, 155, 72, .055) 0%, transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(90, 15, 28, .04) 0%, transparent 38%),
    radial-gradient(circle at 50% 96%, rgba(191, 155, 72, .045) 0%, transparent 45%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* very fine grain - pure CSS, no image request */
.ns-heritage::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.028'/%3E%3C/svg%3E");
}
.ns-heritage > * { position: relative; z-index: 1; }

/* That rule is for page sections, but it catches everything that sits directly
   on <body> - including the overlays NS.liftOverlays moves there (menu drawer,
   search drawer, scrim) and the toast NS.toast appends. Same specificity and
   later in the file, so it was overriding their position:fixed: the menu drawer
   dropped into the page flow after the footer (a 726px gap below the footer,
   and a hamburger that "did nothing" because the drawer opened 8,000px down the
   page), and their z-indexes were flattened to 1. One notch more specific here,
   naming only the overlays, so sections keep the grain stacking. */
.ns-heritage > .ns-scrim { position: fixed; z-index: var(--ns-z-scrim); }
.ns-heritage > .ns-dr    { position: fixed; z-index: var(--ns-z-drawer); }
.ns-heritage > .ns-sd    { position: fixed; z-index: var(--ns-z-search); }
.ns-heritage > .ns-toast { position: fixed; z-index: 200; }

/* alternating section surfaces so pages never read as flat white */
.ns-heritage .ns-surface-soft { background: rgba(239, 229, 210, .55); }
.ns-heritage .ns-surface-cream { background: rgba(255, 253, 247, .7); }

/* ==========================================================================
   FOOTER - corner ornament + soft texture
   ========================================================================== */
.ns-ft {
  position: relative;
  overflow: hidden;
}

.ns-ft::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -140px;
  width: 420px;
  height: 420px;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23bf9b48' stroke-width='.6'%3E%3Ccircle cx='100' cy='100' r='96'/%3E%3Ccircle cx='100' cy='100' r='74'/%3E%3Ccircle cx='100' cy='100' r='52'/%3E%3Cpath d='M100 4v192M4 100h192M32 32l136 136M168 32L32 168'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.ns-ft::after {
  content: "";
  position: absolute;
  bottom: -180px;
  left: -120px;
  width: 380px;
  height: 380px;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23d8b566' stroke-width='.5'%3E%3Cpath d='M100 20c30 30 44 56 44 80a44 44 0 0 1-88 0c0-24 14-50 44-80z'/%3E%3Cpath d='M100 50c18 20 26 36 26 50a26 26 0 0 1-52 0c0-14 8-30 26-50z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.ns-ft > * { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .ns-heritage { background-attachment: scroll; }
}

/* --------------------------------------------------------------------------
   DEFERRED SECTIONS (recommendations / recently viewed)
   Rendered empty server-side, hydrated by ns-dynamic-grid.js
   -------------------------------------------------------------------------- */
.ns-section--deferred {
  min-height: 1px;
}

.ns-section--deferred .ns-prow,
.ns-section--deferred .ns-track {
  min-height: 0;
}

/* --------------------------------------------------------------------------
   CATEGORY CIRCLES (mega menu + search drawer)
   -------------------------------------------------------------------------- */
.ns-circles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ns-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.ns-circle__pic {
  position: relative;
  display: block;
  width: 96px;
  /* The column is a centred flex box, so this is belt and braces - but it is
     what keeps the image under the middle of its label if anything ever
     overrides that alignment. */
  margin-inline: auto;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--ns-gold);
  background: var(--ns-ivory-deep);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s;
}

.ns-circle__pic::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(247, 240, 228, 0.55);
  pointer-events: none;
}

.ns-circle__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ns-circle:hover .ns-circle__pic {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -14px rgba(90, 15, 28, 0.75);
}

.ns-circle__label {
  font-family: var(--ns-body);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ns-ink);
}

/* mega menu variant sits on a gold rule above it */
.ns-circles--mega {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--ns-line);
}

.ns-circles--search {
  grid-template-columns: repeat(auto-fill, minmax(96px, 132px));
  justify-content: start;
  gap: 22px;
}

.ns-circles--search .ns-circle__pic {
  width: 82px;
}

@media (max-width: 680px) {
  .ns-circles--search {
    gap: 12px;
  }
  .ns-circles--search .ns-circle__pic {
    width: 100%;
  }
  .ns-circle__label {
    font-size: 13px;
    letter-spacing: 0.1em;
  }
}

/* --------------------------------------------------------------------------
   SEARCH DRAWER
   -------------------------------------------------------------------------- */
.ns-sd {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: var(--ns-z-search);
  background: var(--ns-cream);
  border-bottom: 2px solid var(--ns-gold);
  transform: translateY(-100%);
  transition: transform 0.45s cubic-bezier(0.7, 0, 0.2, 1);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.ns-sd.ns-open {
  transform: translateY(0);
}

.ns-sd__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--ns-line);
  flex: none;
}

.ns-sd__form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  border-bottom: 1px solid var(--ns-gold);
  padding-bottom: 8px;
}

.ns-sd__ico {
  color: var(--ns-gold-deep);
  display: flex;
  flex: none;
}

.ns-sd__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: none;
  font-family: var(--ns-serif);
  font-size: clamp(21px, 3.15vw, 28px);
  color: var(--ns-ink);
  outline: none;
  padding: 2px 0;
}

.ns-sd__input::placeholder {
  color: #b3a08c;
}

.ns-sd__input::-webkit-search-cancel-button {
  display: none;
}

.ns-sd__clear,
.ns-sd__close {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--ns-display);
  color: var(--ns-maroon);
  line-height: 1;
  padding: 4px 8px;
  flex: none;
}

.ns-sd__clear {
  font-size: 24px;
}

.ns-sd__close {
  font-size: 32px;
}

.ns-sd__body {
  overflow-y: auto;
  padding: 24px clamp(16px, 4vw, 48px) 36px;
  width: 100%;
  max-width: var(--ns-wrap);
  margin-inline: auto;
}

.ns-sd__group + .ns-sd__group {
  margin-top: 30px;
}

.ns-sd__label {
  font-family: var(--ns-body);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ns-gold-deep);
  font-weight: 600;
  margin-bottom: 14px;
}

.ns-sd__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.ns-sd__tag {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid var(--ns-line);
  font-family: var(--ns-body);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--ns-ink);
  background: var(--ns-ivory);
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}

.ns-sd__tag:hover {
  border-color: var(--ns-gold);
  background: var(--ns-maroon);
  color: var(--ns-ivory);
}

.ns-sd__recs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 210px));
  justify-content: start;
  gap: 18px;
}

.ns-sdp {
  display: block;
}

.ns-sdp__pic {
  display: block;
  aspect-ratio: 1 / 1.16;
  overflow: hidden;
  border: 1px solid var(--ns-line);
  background: var(--ns-ivory-deep);
  margin-bottom: 9px;
}

.ns-sdp__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ns-sdp:hover .ns-sdp__pic img {
  transform: scale(1.06);
}

.ns-sdp__name {
  display: block;
  font-family: var(--ns-serif);
  font-size: 17px;
  color: var(--ns-ink);
  line-height: 1.35;
}

.ns-sdp__price {
  display: block;
  font-family: var(--ns-body);
  font-size: 15px;
  color: var(--ns-ink-soft);
  margin-top: 3px;
}

.ns-sd__empty {
  font-family: var(--ns-serif);
  font-style: italic;
  font-size: 19px;
  color: var(--ns-ink-soft);
}

/* Route out of the drawer to the full search page, which paginates every match
   rather than the first ten. */
.ns-sd__all {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--ns-body);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ns-ink);
  border-bottom: 1px solid var(--ns-line);
  padding-bottom: 3px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.ns-sd__all:hover,
.ns-sd__all:focus-visible {
  color: var(--ns-gold, var(--ns-ink));
  border-bottom-color: currentColor;
}

@media (max-width: 680px) {
  .ns-sd__recs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .ns-circles--search {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
  .ns-sd__body {
    padding-bottom: 28px;
  }
}

/* --------------------------------------------------------------------------
   1CHECKOUT MODAL STATE
   The app renders a bare checkbox after the footer; unstyled it reserves
   layout space and reads as a gap under the footer. Keep it in the DOM
   (:checked selectors depend on it) but out of flow.
   -------------------------------------------------------------------------- */
body.ns-heritage input.checkoutmodal-state {
  position: absolute;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   MOBILE DRAWER EXTRAS (search, category circles, links, socials)
   -------------------------------------------------------------------------- */
.ns-dr__search {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin-bottom: 18px;
  padding: 11px 13px;
  border: 1px solid var(--ns-gold);
  background: var(--ns-ivory);
  color: var(--ns-ink-soft);
  font-family: var(--ns-body);
  font-size: 16px;
  letter-spacing: 0.04em;
  text-align: start;
  cursor: pointer;
}

.ns-dr__search svg {
  flex: none;
  color: var(--ns-gold-deep);
}

.ns-dr__circles {
  padding: 4px 0 18px;
}

/* quick links (Bestsellers / Newly Launched / All Products) above the drawer circles */
.ns-dr__quick {
  display: flex;
  flex-direction: column;
  padding: 0 0 8px;
}

.ns-dr__quick .ns-dr__card {
  padding: 9px 0 9px 14px;
  font-family: var(--ns-body);
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ns-ink);
}

.ns-dr__circles .ns-circles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 10px;
}

.ns-dr__circles .ns-circle__pic {
  width: 100%;
  max-width: 108px;
}

.ns-dr__circles .ns-circle__label {
  font-size: 13px;
  letter-spacing: 0.05em;
  line-height: 1.3;
  word-break: normal;
}

.ns-dr__links {
  margin-top: 4px;
}

.ns-dr__foot {
  margin-top: auto;
  padding-top: 24px;
}

.ns-dr__social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--ns-line);
}

.ns-dr__social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ns-line);
  color: var(--ns-maroon);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.ns-dr__social a:hover {
  background: var(--ns-maroon);
  border-color: var(--ns-maroon);
  color: var(--ns-ivory);
}

.ns-dr__social svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

/* --------------------------------------------------------------------------
   Cart drawer order total + reward-tier nudge.
   The drawer previously listed each discount but never stated what the order
   came to, so the first full number a shopper saw was at checkout.
   -------------------------------------------------------------------------- */
.ns-cart-total {
  border-top: 1px solid var(--ns-line, #ddccae);
  margin-top: 10px;
  padding-top: 12px;
}

.ns-cart-total__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.ns-cart-total__label {
  font-family: var(--ns-body, inherit);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ns-ink, #2a1810);
}

.ns-cart-total__value {
  font-family: var(--ns-serif, inherit);
  font-size: 22px;
  font-weight: 500;
  color: var(--ns-ink, #2a1810);
}

.ns-cart-total__saved {
  margin-top: 4px;
  font-size: 14px;
  color: var(--ns-maroon, #5a0f1c);
  font-weight: 600;
}

.ns-tier-nudge {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--ns-ivory-deep, #efe5d2);
  border: 1px solid var(--ns-line, #ddccae);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ns-ink, #2a1810);
  text-align: center;
}

.ns-tier-nudge b {
  color: var(--ns-maroon, #5a0f1c);
  font-weight: 700;
}

.ns-tier-nudge--won {
  background: var(--ns-maroon, #5a0f1c);
  border-color: var(--ns-maroon, #5a0f1c);
  color: var(--ns-gold-bright, #d8b566);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}
