/* ==========================================================================
   Neema Naturals — shop, category & product-search pages
   Loaded only on those pages (see inc/enqueue.php). Uses the tokens in neema.css.
   Rhythm: banner travertine → category bar → sections ivory / linen / travertine / ivory → forest promise strip.
   ========================================================================== */

body.nn-shop {
  --nn-shop-container: 1240px;
  --nn-shop-section-y: clamp(3.5rem, 7vw, 6rem);
  --nn-catbar-top: var(--nn-header-h);
  background-color: var(--nn-ivory);
  background-image: var(--nn-grain);
}

@media (min-width: 601px) {
  body.nn-shop.admin-bar {
    --nn-catbar-top: calc(var(--nn-header-h) + var(--wp-admin--admin-bar--height, 32px));
  }
}

body.nn-shop .site-main.nn-shop-main {
  width: 100%;
  padding: 0;
}

.nn-shop-banner__inner,
.nn-catbar__inner,
.nn-shop-section__inner,
.nn-shop-notices,
.nn-promise__list {
  width: min(100% - 2 * var(--nn-gutter), var(--nn-shop-container));
  margin-inline: auto;
}

/* Shared small pieces (scoped copies of the homepage accents, so the homepage CSS stays untouched) */
.nn-shop .nn-script {
  margin: 0;
  color: var(--nn-amber);
  font-family: var(--nn-font-wordmark);
  font-size: clamp(1.75rem, 2.4vw, 2.125rem);
  font-weight: 400;
  line-height: 1.1;
}

.nn-shop .nn-eyebrow {
  color: var(--nn-olive-ink);
}

.nn-shop-leaves {
  position: absolute;
  top: -6%;
  right: -4%;
  z-index: 0;
  width: min(60%, 820px);
  height: 90%;
  pointer-events: none;
  background-image: image-set(url("../images/textures/leaf-shadow-soft.webp") type("image/webp"), url("../images/textures/leaf-shadow-soft.png") type("image/png"));
  background-position: right top;
  background-repeat: no-repeat;
  background-size: contain;
}

/* Kraft price tag with the small dot */
.nn-tag-price {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem 0.375rem 0.625rem;
  border-radius: 4px 16px 16px 4px;
  background: var(--nn-grain) var(--nn-kraft);
  color: var(--nn-espresso);
  font-size: 0.9375rem;
  font-weight: var(--nn-weight-medium);
  line-height: 1.3;
  white-space: nowrap;
}

.nn-tag-price::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nn-linen);
}

.nn-tag-price--lg {
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  border-radius: 4px 18px 18px 4px;
  font-size: 1.125rem;
}

.nn-tag-price .amount,
.nn-tag-price bdi {
  color: inherit;
}

.nn-tag-price del {
  opacity: 0.6;
}

.nn-tag-price ins {
  text-decoration: none;
}

/* Forest pill button */
.nn-shop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.25rem;
  border: 0;
  border-radius: var(--nn-radius-pill);
  background: var(--nn-forest);
  color: var(--nn-ivory);
  font-family: var(--nn-font-body);
  font-size: var(--nn-text-sm);
  font-weight: var(--nn-weight-medium);
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s var(--nn-ease), opacity 0.3s var(--nn-ease);
}

.nn-shop-btn:visited {
  color: var(--nn-ivory);
}

.nn-shop-btn:hover,
.nn-shop-btn:focus-visible {
  background: var(--nn-forest-deep);
  color: var(--nn-ivory);
}

.nn-shop-btn--lg {
  min-height: 52px;
  padding: 0 2rem;
  font-size: 0.9375rem;
}

.nn-shop-btn__icon {
  display: none;
}

.nn-shop-btn:hover .nn-arrow,
.nn-shop-btn:focus-visible .nn-arrow {
  transform: translateX(4px);
}

.nn-shop-btn.loading {
  opacity: 0.6;
  pointer-events: none;
}

.nn-shop-btn.added .nn-shop-btn__label::after {
  content: " \2713";
}

/* WooCommerce inserts this after a successful AJAX add */
.nn-shop a.added_to_cart {
  display: inline-block;
  padding: 0.25rem 0;
  border-bottom: 1px solid currentColor;
  color: var(--nn-forest);
  font-size: var(--nn-text-xs);
  font-weight: var(--nn-weight-medium);
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   1. Banner
   -------------------------------------------------------------------------- */
.nn-shop-banner {
  position: relative;
  overflow: hidden;
  background-color: var(--nn-travertine);
  background-image: var(--nn-tex-stone);
}

.nn-shop-banner__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 5vw, 4.5rem) clamp(4rem, 6vw, 5.5rem);
}

.nn-shop-banner__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.nn-shop-banner__text .nn-eyebrow {
  margin: 0;
}

.nn-shop-banner__title {
  margin: 0;
  color: var(--nn-ink);
  font-size: clamp(3.2rem, 6vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: capitalize;
}

.nn-shop-banner__title em {
  color: var(--nn-olive);
}

.nn-shop-banner__lead {
  max-width: 28rem;
  margin: 0;
  color: var(--nn-ink-warm);
  font-size: 1.0625rem;
  font-weight: var(--nn-weight-light);
  line-height: 1.7;
}

.nn-shop-banner__sprig {
  width: 150px;
  height: auto;
  color: var(--nn-olive);
}

.nn-shop-banner__visual {
  position: relative;
  height: clamp(320px, 32vw, 420px);
}

.nn-shop-banner__slab {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 78%;
  height: 48px;
  border-radius: 10px;
  background-color: var(--nn-sand-warm);
  background-image: var(--nn-tex-stone);
  box-shadow: 0 18px 30px -18px rgb(var(--nn-espresso-rgb) / 0.45);
}

.nn-shop-banner__photo {
  position: absolute;
  display: block;
  overflow: hidden;
  box-shadow: 0 30px 50px -30px rgb(var(--nn-espresso-rgb) / 0.6);
}

.nn-shop-banner__photo--arch {
  top: 20px;
  left: 6%;
  width: 46%;
  height: calc(100% - 80px);
  border-radius: 999px 999px 18px 18px;
}

.nn-shop-banner__photo--round {
  top: 70px;
  right: 4%;
  width: 42%;
  height: calc(100% - 120px);
  border-radius: 18px;
}

.nn-shop-banner__img,
.nn-shop-banner__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nn-shop-stamp {
  position: absolute;
  top: 0;
  left: 44%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  border: 1px solid var(--nn-honey);
  border-radius: 50%;
  background: var(--nn-ivory);
  box-shadow: 0 10px 20px -12px rgb(var(--nn-espresso-rgb) / 0.5);
  color: var(--nn-forest);
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
}

.nn-shop-banner__wave {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 40px;
  fill: var(--nn-ivory);
}

/* Compact banner (category pages, search) */
.nn-shop-banner--compact .nn-shop-banner__inner {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  padding-block: clamp(2.25rem, 4vw, 3.25rem) clamp(3.5rem, 5vw, 4.5rem);
}

.nn-shop-banner--compact .nn-shop-banner__title {
  font-size: clamp(2.8rem, 5vw, 4.25rem);
}

.nn-shop-banner--compact .nn-shop-banner__sprig {
  width: 120px;
}

.nn-shop-banner__visual--single {
  height: clamp(220px, 22vw, 300px);
}

.nn-shop-banner__visual--single .nn-shop-banner__slab {
  right: 4%;
  width: 82%;
  height: 36px;
}

.nn-shop-banner__visual--single .nn-shop-banner__img {
  position: absolute;
  bottom: 18px;
  left: 18%;
  width: 62%;
  height: calc(100% - 18px);
  border-radius: 999px 999px 16px 16px;
  box-shadow: 0 30px 50px -30px rgb(var(--nn-espresso-rgb) / 0.6);
}

.nn-shop-banner--search .nn-shop-banner__inner {
  grid-template-columns: minmax(0, 1fr);
}

/* Breadcrumb */
.nn-shop .woocommerce-breadcrumb {
  margin: 0 0 0.25rem;
  color: var(--nn-ink-soft);
  font-size: var(--nn-text-label);
  font-weight: var(--nn-weight-medium);
  letter-spacing: var(--nn-tracking-label);
  text-transform: uppercase;
}

.nn-shop .woocommerce-breadcrumb a {
  color: var(--nn-olive-ink);
}

.nn-shop .woocommerce-breadcrumb a:hover {
  color: var(--nn-forest);
}

/* --------------------------------------------------------------------------
   2. Sticky category bar
   -------------------------------------------------------------------------- */
.nn-catbar {
  position: sticky;
  top: var(--nn-catbar-top);
  z-index: 50;
  border-bottom: 1px solid var(--nn-sand);
  background: rgb(var(--nn-ivory-rgb) / 0.96);
}

.nn-catbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.nn-catbar__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nn-pill,
.nn-pill:visited {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.375rem;
  border: 1px solid var(--nn-stone);
  border-radius: var(--nn-radius-pill);
  color: var(--nn-ink);
  font-size: var(--nn-text-sm);
  white-space: nowrap;
  transition: background-color 0.25s var(--nn-ease), border-color 0.25s var(--nn-ease), color 0.25s var(--nn-ease);
}

.nn-pill__name {
  text-transform: capitalize;
}

.nn-pill__count {
  color: var(--nn-ink-soft);
  font-size: var(--nn-text-label);
}

.nn-pill:hover {
  background: var(--nn-sand);
  color: var(--nn-ink);
}

.nn-pill.is-active {
  border-color: var(--nn-forest);
  background: var(--nn-forest);
  color: var(--nn-ivory);
  font-weight: var(--nn-weight-medium);
}

.nn-pill.is-active .nn-pill__count {
  color: var(--nn-ivory-soft);
}

.nn-catbar__sort {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.625rem;
}

.nn-catbar__sort-label {
  color: var(--nn-ink-soft);
  font-size: var(--nn-text-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nn-shop .nn-catbar .woocommerce-ordering {
  float: none;
  margin: 0;
}

.nn-shop .nn-catbar .woocommerce-ordering select {
  min-height: 44px;
  padding: 0 2.5rem 0 1.125rem;
  border: 1px solid var(--nn-stone);
  border-radius: var(--nn-radius-pill);
  background-color: var(--nn-linen);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%232A2722' stroke-width='1.25' stroke-linecap='round'/%3E%3C/svg%3E");
  background-position: right 1rem center;
  background-repeat: no-repeat;
  background-size: 10px 6px;
  color: var(--nn-ink);
  font-size: var(--nn-text-sm);
  cursor: pointer;
  appearance: none;
}

/* Section anchors land below the sticky header + category bar */
.nn-shop-section,
#nn-shop-top {
  scroll-margin-top: calc(var(--nn-catbar-top) + 84px);
}

/* --------------------------------------------------------------------------
   3. Sections
   -------------------------------------------------------------------------- */
.nn-shop-section {
  position: relative;
  overflow: hidden;
  padding-block: var(--nn-shop-section-y);
}

.nn-shop-section__inner {
  position: relative;
  z-index: 1;
}

.nn-surface--ivory {
  background-color: var(--nn-ivory);
}

.nn-surface--linen {
  background-color: var(--nn-linen);
  background-image: var(--nn-tex-linen);
}

.nn-surface--travertine {
  background-color: var(--nn-travertine);
  background-image: var(--nn-tex-stone);
}

.nn-shop-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.nn-shop-section__head-text,
.nn-shop-section__head--cell {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  max-width: 35rem;
}

.nn-shop-section .nn-eyebrow {
  margin: 0;
}

.nn-shop-section__title {
  margin: 0;
  color: var(--nn-ink);
  font-size: clamp(2.25rem, 3.8vw, 3.375rem);
  line-height: 1.05;
}

.nn-shop-section__title a {
  color: inherit;
}

.nn-shop-section__title a:hover {
  color: var(--nn-forest);
}

.nn-shop-section__intro {
  margin: 0;
  color: var(--nn-ink-soft);
  font-size: 1rem;
  font-weight: var(--nn-weight-light);
  line-height: 1.7;
}

.nn-shop-section__sprig {
  width: 44px;
  height: auto;
  color: var(--nn-olive);
}

.nn-shop-section__all {
  flex: 0 0 auto;
}

/* Product grid */
.nn-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.75rem);
}

.nn-shop-section__head--cell {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 0;
  padding-right: 1.5rem;
}

/* --------------------------------------------------------------------------
   4. Product card
   -------------------------------------------------------------------------- */
.nn-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--nn-linen);
  transition: box-shadow 0.4s var(--nn-ease);
}

.nn-surface--linen .nn-card {
  background: var(--nn-ivory);
}

.nn-card:hover,
.nn-card:focus-within {
  box-shadow: 0 26px 44px -28px rgb(var(--nn-amber-rgb) / 0.45);
}

.nn-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--nn-sand-warm);
}

.nn-card__img,
.nn-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--nn-ease);
}

.nn-card:hover .nn-card__img {
  transform: scale(1.04);
}

.nn-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--nn-radius-pill);
  background: var(--nn-ivory);
  color: var(--nn-forest);
  font-size: 0.6875rem;
  font-weight: var(--nn-weight-medium);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nn-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.875rem;
  padding: 1.375rem 1.5rem 1.5rem;
}

.nn-card__text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nn-card__meta {
  margin: 0;
  color: var(--nn-ink-soft);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nn-card__title {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  line-height: 1.15;
  text-transform: capitalize;
}

.nn-card__title a {
  color: var(--nn-ink);
}

.nn-card__title a:hover {
  color: var(--nn-forest);
}

.nn-card__buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   5. Feature (whipped tallow butter) & editorial (baby)
   -------------------------------------------------------------------------- */
.nn-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.nn-feature__media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1.25rem;
}

.nn-feature__img {
  display: block;
  overflow: hidden;
  box-shadow: 0 30px 50px -30px rgb(var(--nn-espresso-rgb) / 0.6);
}

.nn-feature__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nn-feature__img--arch {
  height: clamp(340px, 34vw, 480px);
  border-radius: 999px 999px 20px 20px;
}

.nn-feature__img--round {
  height: clamp(280px, 28vw, 400px);
  margin-top: clamp(3rem, 6vw, 5rem);
  border-radius: 20px;
}

.nn-feature__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.nn-feature__body .nn-shop-section__title {
  font-size: clamp(2.5rem, 4vw, 3.625rem);
  line-height: 1.02;
}

.nn-feature__script {
  margin-top: -0.5rem;
}

.nn-feature__group {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.nn-feature__label {
  margin: 0;
  color: var(--nn-ink-soft);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Read-only option pills (working selection lives on the product page) */
.nn-option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nn-option-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0 1.25rem;
  border: 1px solid var(--nn-stone);
  border-radius: var(--nn-radius-pill);
  background: var(--nn-linen);
  color: var(--nn-ink);
  font-size: var(--nn-text-sm);
}

.nn-option-pill__price {
  color: var(--nn-ink-soft);
}

.nn-option-pill__price .amount {
  color: inherit;
}

.nn-feature__buy,
.nn-editorial__buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding-top: 0.5rem;
}

.nn-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  overflow: hidden;
  border-radius: 24px;
  background: var(--nn-linen);
}

.nn-editorial__media {
  display: block;
  min-height: 460px;
  background: var(--nn-sand-warm);
}

.nn-editorial__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nn-editorial__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.125rem;
  padding: clamp(2rem, 5vw, 4rem);
}

.nn-editorial__text {
  margin: 0;
  color: var(--nn-ink-soft);
  font-size: 1rem;
  font-weight: var(--nn-weight-light);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   6. Flat grids, results, pagination, empty state, notices
   -------------------------------------------------------------------------- */
.nn-shop-results .woocommerce-result-count {
  float: none;
  margin: 0 0 1.5rem;
  color: var(--nn-ink-soft);
  font-size: var(--nn-text-label);
  letter-spacing: var(--nn-tracking-label);
  text-transform: uppercase;
}

.nn-shop .woocommerce-pagination {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

.nn-shop .woocommerce-pagination ul.page-numbers {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.nn-shop .woocommerce-pagination ul.page-numbers li {
  float: none;
  border: 0;
  overflow: visible;
}

.nn-shop .woocommerce-pagination ul.page-numbers li .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.875rem;
  border: 1px solid var(--nn-stone);
  border-radius: var(--nn-radius-pill);
  background: transparent;
  color: var(--nn-ink);
  font-size: var(--nn-text-sm);
}

.nn-shop .woocommerce-pagination ul.page-numbers li a.page-numbers:hover {
  background: var(--nn-sand);
  color: var(--nn-ink);
}

.nn-shop .woocommerce-pagination ul.page-numbers li span.current {
  border-color: var(--nn-forest);
  background: var(--nn-forest);
  color: var(--nn-ivory);
}

.nn-shop-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 34rem;
  margin: 0 auto;
  padding-block: 2rem;
  text-align: center;
}

.nn-shop-empty__sprig {
  width: 48px;
  height: auto;
  color: var(--nn-olive);
}

.nn-shop-empty .woocommerce-info {
  margin: 0;
}

.nn-shop-notices:empty {
  display: none;
}

.nn-shop-notices {
  padding-top: 1.5rem;
}

.nn-shop-notices .woocommerce-message,
.nn-shop-notices .woocommerce-info,
.nn-shop-notices .woocommerce-error {
  margin: 0;
}

.nn-shop-notices .woocommerce-message .button {
  float: right;
  min-height: 0;
  padding: 0.5rem 1.1rem;
}

/* --------------------------------------------------------------------------
   7. Promise strip
   -------------------------------------------------------------------------- */
.nn-promise {
  background-color: var(--nn-forest);
  background-image: var(--nn-grain);
  color: var(--nn-ivory);
}

.nn-promise__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin-block: 0;
  padding: 3.5rem 0;
  list-style: none;
}

.nn-promise__item {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.nn-promise__icon {
  fill: none;
  stroke: var(--nn-kraft);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nn-promise__text {
  font-family: var(--nn-font-heading);
  font-size: 1.375rem;
  line-height: 1.25;
}

/* --------------------------------------------------------------------------
   7b. Concept details: short labels, line-art fills, card option pills,
       working option pills (feature), stacked baby card
   -------------------------------------------------------------------------- */
.nn-shop .nn-pill__short {
  display: none;
}

.nn-honey-dot {
  fill: var(--nn-honey);
  stroke: none;
}

.nn-sand-fill {
  fill: var(--nn-sand);
}

.nn-card__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nn-card__option {
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--nn-stone);
  border-radius: var(--nn-radius-pill);
  color: var(--nn-ink-soft);
  font-size: 0.8125rem;
}

.nn-card__option.is-default {
  border-color: var(--nn-forest);
  color: var(--nn-forest);
}

/* Feature form: real radio pills */
.nn-feature__form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  width: 100%;
}

.nn-feature__group {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.nn-feature__group legend {
  float: left;
  width: 100%;
  margin-bottom: 0.625rem;
  padding: 0;
}

.nn-option-pills {
  clear: both;
}

label.nn-option-pill {
  position: relative;
  cursor: pointer;
  transition: background-color 0.25s var(--nn-ease), border-color 0.25s var(--nn-ease), color 0.25s var(--nn-ease);
}

label.nn-option-pill input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

label.nn-option-pill:hover {
  border-color: var(--nn-kraft-deep);
}

label.nn-option-pill:has(input:focus-visible) {
  outline: var(--nn-focus-ring);
  outline-offset: 3px;
}

/* First group (size): selected = filled forest. Other groups (scent): selected = forest outline on ivory. */
.nn-feature__group:first-of-type label.nn-option-pill {
  background: transparent;
}

.nn-feature__group:first-of-type label.nn-option-pill:has(input:checked) {
  border-color: var(--nn-forest);
  background: var(--nn-forest);
  color: var(--nn-ivory);
}

.nn-feature__group:first-of-type label.nn-option-pill:has(input:checked) .amount {
  color: inherit;
}

.nn-feature__group + .nn-feature__group label.nn-option-pill:has(input:checked) {
  border-color: var(--nn-forest);
  background: var(--nn-ivory);
  color: var(--nn-forest);
  font-weight: var(--nn-weight-medium);
}

.nn-option-pill .amount {
  color: inherit;
}

.nn-shop-btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.nn-shop-btn__price {
  display: none;
}

/* Baby: one wide card. Desktop = photo left, text right (approved concept), photo height capped so landing on
   /shop/#baby shows the eyebrow, title, price and button together with the photo. Tablet/phone: photo on top. */
.nn-editorial__media {
  height: clamp(460px, 38vw, 540px);
  min-height: 0;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .nn-editorial__media {
    height: auto;
  }

  .nn-editorial__body {
    padding: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem) clamp(2rem, 4.5vw, 3.5rem);
  }
}

/* Phone: a slightly shorter photo and a three-line summary keep the price and button in view on landing */
@media (max-width: 767px) {
  .nn-editorial .nn-editorial__media {
    aspect-ratio: 16 / 10;
  }

  .nn-editorial__text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}

/* --------------------------------------------------------------------------
   8. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .nn-shop-grid,
  .nn-shop-grid--intro {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nn-shop-section__head--cell {
    grid-column: 1 / -1;
    padding-right: 0;
  }

  .nn-feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .nn-editorial {
    grid-template-columns: minmax(0, 1fr);
  }

  .nn-editorial__media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .nn-promise__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .nn-shop-banner__inner,
  .nn-shop-banner--compact .nn-shop-banner__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .nn-shop-banner__sprig {
    display: none;
  }

  .nn-shop-banner__visual {
    height: 250px;
  }

  .nn-shop-banner__photo--arch {
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
  }

  .nn-shop-banner__photo--round {
    top: 30px;
    right: 0;
    width: 47%;
    height: calc(100% - 30px);
  }

  .nn-shop-banner__slab,
  .nn-shop-stamp {
    display: none;
  }

  .nn-shop-banner__visual--single {
    display: none;
  }

  /* One horizontal, snap-scrolling row: pills then sort */
  .nn-catbar__inner {
    width: 100%;
    padding: 0.75rem var(--nn-gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .nn-catbar__inner::-webkit-scrollbar {
    display: none;
  }

  .nn-catbar__nav,
  .nn-catbar__sort {
    flex: 0 0 auto;
  }

  .nn-catbar__list {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .nn-catbar__list li {
    scroll-snap-align: start;
  }

  .nn-pill {
    padding: 0 1.125rem;
  }

  .nn-shop-grid,
  .nn-shop-grid--intro {
    gap: 0.875rem;
  }

  .nn-card {
    border-radius: 16px;
  }

  .nn-card__body {
    gap: 0.5rem;
    padding: 0.75rem 0.875rem 0.875rem;
  }

  .nn-card__meta {
    display: none;
  }

  .nn-card__title {
    font-size: 1.3rem;
  }

  .nn-card__buy {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .nn-card .nn-tag-price {
    min-width: 0;
    padding: 0.25rem 0.75rem 0.25rem 0.5rem;
    font-size: 0.875rem;
    white-space: normal;
  }

  /* Compact round icon button; the accessible name comes from aria-label */
  .nn-card .nn-shop-btn {
    flex: 0 0 auto;
    width: 44px;
    padding: 0;
  }

  .nn-card .nn-shop-btn__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .nn-card .nn-shop-btn__icon {
    display: block;
  }

  .nn-card .nn-shop-btn--link .nn-arrow {
    margin: 0;
  }

  .nn-card a.added_to_cart {
    flex-basis: 100%;
  }

  .nn-feature__media {
    gap: 0.75rem;
  }

  .nn-feature__img--arch {
    height: 300px;
  }

  .nn-feature__img--round {
    height: 240px;
  }

  .nn-feature__buy .nn-shop-btn,
  .nn-editorial__buy .nn-shop-btn {
    flex: 1 1 auto;
  }

  /* Phone concept: short labels, no counts, two soap cards, one tallow photo, price inside the button */
  .nn-shop .nn-pill__long {
    display: none;
  }

  .nn-shop .nn-pill__short {
    display: inline;
  }

  .nn-pill__count {
    display: none;
  }

  .nn-shop-grid--section .nn-card:nth-child(n+3) {
    display: none;
  }

  .nn-shop-section__head {
    flex-wrap: nowrap;
  }

  .nn-shop-section__head .nn-shop-section__all {
    border-bottom: 0;
    font-size: 0.8125rem;
  }

  .nn-shop-section__head .nn-shop-section__all .nn-arrow {
    display: none;
  }

  .nn-card__options {
    display: none;
  }

  .nn-feature__media {
    grid-template-columns: minmax(0, 1fr);
  }

  .nn-feature__img--round {
    display: none;
  }

  .nn-feature__buy .nn-tag-price {
    display: none;
  }

  .nn-feature__buy .nn-shop-btn {
    width: 100%;
  }

  .nn-feature__buy .nn-shop-btn__price {
    display: inline;
  }

  .nn-feature__buy .nn-shop-btn .nn-arrow {
    display: none;
  }

  .nn-promise__list {
    gap: 1.5rem;
    padding: 2.5rem 0;
  }

  .nn-promise__text {
    font-size: 1.15rem;
  }
}

@media (max-width: 420px) {
  .nn-promise__list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nn-card__img {
    transition: none;
  }

  .nn-card:hover .nn-card__img {
    transform: none;
  }
}
