/* ---------- cart drawer ---------- */
html.nn-drawer-open { overflow: hidden; }

.nn-cart {
  position: fixed;
  inset: 0;
  z-index: 90;
  visibility: hidden;
  pointer-events: none;
}
.nn-cart.is-open { visibility: visible; pointer-events: auto; }

.nn-cart__overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 49, 58, 0.38);
  opacity: 0;
  transition: opacity 0.45s var(--nn-ease);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.nn-cart.is-open .nn-cart__overlay { opacity: 1; }

.nn-cart__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(430px, 100%);
  background: var(--nn-cream);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.5s var(--nn-ease);
  box-shadow: -30px 0 60px -30px rgba(18, 49, 58, 0.5);
}
.nn-cart.is-open .nn-cart__panel { transform: none; }
.nn-cart.is-busy .nn-cart__panel { opacity: 0.7; }

.nn-cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--nn-line-soft);
}
.nn-cart__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nn-ink);
}
.nn-cart__close {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--nn-ink);
  transition: background 0.3s var(--nn-ease);
}
.nn-cart__close:hover { background: rgba(18, 49, 58, 0.07); }

.nn-cart__body { flex: 1; overflow-y: auto; padding: 8px 24px; -webkit-overflow-scrolling: touch; }

.nn-cart__empty { padding: 54px 0; text-align: center; }
.nn-cart__empty-title { font-family: var(--nn-serif); font-size: 24px; color: var(--nn-ink); }
.nn-cart__empty-text { margin-top: 10px; font-size: 14.5px; color: var(--nn-ink-soft); }
.nn-cart__empty .nn-btn { margin-top: 26px; }

.nn-cart__items { display: grid; }
.nn-ci {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--nn-line-soft);
}
.nn-ci__media { display: block; border-radius: 3px; overflow: hidden; background: var(--nn-cream-2); }
.nn-ci__img { width: 70px; height: auto; display: block; }
.nn-ci__ph { width: 70px; height: 94px; background: var(--nn-cream-2); }
.nn-ci__title {
  font-family: var(--nn-serif);
  font-size: 18px;
  line-height: 1.25;
  color: var(--nn-ink);
  letter-spacing: -0.012em;
}
.nn-ci__title:hover { color: var(--nn-cobalt); }
.nn-ci__variant { margin-top: 4px; font-size: 12.5px; color: var(--nn-ink-mute); }
.nn-ci__tag {
  margin-top: 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nn-terra-text);
}
.nn-ci__row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.nn-ci__price { font-size: 15px; font-weight: 600; color: var(--nn-ink); font-variant-numeric: tabular-nums; }
.nn-ci__remove {
  margin-top: 10px;
  font-size: 12px;
  color: var(--nn-ink-mute);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s var(--nn-ease);
}
.nn-ci__remove:hover { color: var(--nn-terra); }

/* quantity stepper */
.nn-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--nn-line);
  border-radius: 100px;
  background: var(--nn-paper);
  overflow: hidden;
}
.nn-qty__btn {
  width: 42px; height: 46px;
  display: grid;
  place-items: center;
  font-size: 17px;
  line-height: 1;
  color: var(--nn-ink);
  transition: background 0.3s var(--nn-ease), color 0.3s var(--nn-ease);
}
.nn-qty__btn:hover { background: rgba(18, 49, 58, 0.06); }
.nn-qty__input {
  width: 44px;
  height: 46px;
  border: 0;
  background: none;
  text-align: center;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--nn-ink);
  -moz-appearance: textfield;
  font-variant-numeric: tabular-nums;
}
.nn-qty__input::-webkit-outer-spin-button,
.nn-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nn-qty__input:focus { outline: none; }
.nn-qty--sm .nn-qty__btn { width: 32px; height: 34px; font-size: 15px; }
.nn-qty--sm .nn-qty__input { width: 34px; height: 34px; font-size: 13.5px; }

.nn-cart__footer { padding: 20px 24px 24px; border-top: 1px solid var(--nn-line); background: var(--nn-paper); }
.nn-cart__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 6px;
}
.nn-cart__row span { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--nn-ink-mute); }
.nn-cart__row b {
  font-family: var(--nn-serif);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--nn-ink);
  font-variant-numeric: tabular-nums;
}
.nn-cart__note { font-size: 12.5px; color: var(--nn-ink-mute); margin-bottom: 16px; }
.nn-cart__footer .nn-btn { margin-bottom: 10px; }
.nn-cart__continue {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: var(--nn-ink-soft);
  padding: 8px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nn-cart__continue:hover { color: var(--nn-ink); }

/* header count bubble is driven by JS */
.nn-header__count[hidden] { display: none !important; }
