/* Interactive NORTHLINE store demonstration */

.section--demo {
  padding-left: max(40px, calc((100% - 1280px) / 2));
  padding-right: max(40px, calc((100% - 1280px) / 2));
}

.demo {
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo__invite {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 520px;
}

.demo__invite-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-glacier);
}

.demo__invite-copy {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink-primary);
}

.demo__frame {
  position: relative;
  width: 100%;
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  background: var(--surface-white);
  overflow: hidden;
}

.demo__caption {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-muted);
}

/* Chrome */

.nl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  padding: 0 64px;
  border-bottom: 1px solid var(--border-subtle);
}

.nl-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--ink-primary);
}

.nl-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.nl-nav__utils {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nl-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: var(--surface-subtle);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-primary);
}

.nl-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 48px 64px;
  border-top: 1px solid var(--border-subtle);
  font-size: 14px;
}

.nl-footer__links {
  display: flex;
  gap: 48px;
}

.nl-footer__links > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nl-footer__links p {
  font-weight: 600;
  color: var(--ink-primary);
}

.nl-footer__links span {
  color: var(--ink-secondary);
}

.nl-footer__copy {
  color: var(--ink-muted);
  white-space: nowrap;
}

/* Views */

.nl-view[hidden] {
  display: none;
}

.nl-view--pdp,
.nl-view--cart {
  animation: nl-view-in 0.35s ease;
}

@keyframes nl-view-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nl-view--pdp,
  .nl-view--cart {
    animation: none;
  }
}

/* PDP */

.nl-pdp {
  display: flex;
  gap: 64px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 64px 96px;
}

.nl-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 560px;
  flex: 0 0 560px;
}

.nl-gallery__main {
  width: 100%;
  aspect-ratio: 560 / 640;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-subtle);
}

.nl-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nl-gallery__thumbs {
  display: flex;
  gap: 16px;
}

.nl-thumb {
  flex: 1 1 0;
  height: 160px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: none;
  cursor: pointer;
}

.nl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nl-thumb.is-active {
  border-color: var(--ink-primary);
}

.nl-thumb:focus-visible {
  outline: 2px solid var(--accent-glacier);
  outline-offset: 2px;
}

.nl-included {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 24px;
  background: var(--surface-subtle);
  border-radius: 12px;
}

.nl-included__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-primary);
}

.nl-included__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nl-included__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-primary);
}

.nl-included__list li::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-glacier);
}

.nl-details {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.nl-details__intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nl-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-glacier);
}

.nl-product-title {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.05;
  color: var(--ink-primary);
}

.nl-price {
  font-size: 32px;
  font-weight: 600;
  color: var(--ink-primary);
}

.nl-details__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nl-details__copy p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.nl-text-link {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-glacier);
  text-decoration: underline;
  cursor: pointer;
}

.nl-text-link--muted {
  color: var(--ink-secondary);
}

.nl-text-link:focus-visible {
  outline: 2px solid var(--accent-glacier);
  outline-offset: 3px;
}

.nl-controls {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.nl-fieldset {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.nl-fieldset legend,
.nl-fieldset__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-primary);
}

.nl-option-group {
  display: flex;
  gap: 12px;
}

.nl-option {
  flex: 1 1 0;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--surface-white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nl-option.is-selected {
  background: var(--ink-primary);
  border-color: var(--ink-primary);
  color: var(--surface-white);
  font-weight: 600;
}

.nl-option:focus-visible {
  outline: 2px solid var(--accent-glacier);
  outline-offset: 2px;
}

.nl-option--static {
  flex: 0 0 88px;
  cursor: default;
  opacity: 1;
}

.nl-swatch-group {
  display: flex;
  gap: 16px;
}

.nl-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
}

.nl-swatch__chip {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  box-sizing: border-box;
}

.nl-swatch__chip--obsidian {
  background: var(--ink-primary);
}

.nl-swatch__chip--alpine {
  background: var(--surface-subtle);
}

.nl-swatch__chip--glacier {
  background: var(--accent-glacier);
}

.nl-swatch.is-selected .nl-swatch__chip {
  border: 2px solid var(--ink-primary);
  box-shadow: 0 0 0 2px var(--surface-white) inset;
}

.nl-swatch__label {
  font-size: 12px;
  color: var(--ink-secondary);
}

.nl-swatch.is-selected .nl-swatch__label {
  color: var(--ink-primary);
}

.nl-swatch:focus-visible .nl-swatch__chip {
  outline: 2px solid var(--accent-glacier);
  outline-offset: 3px;
}

.nl-addon {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--surface-subtle);
}

.nl-addon.is-selected {
  border-color: var(--ink-primary);
}

.nl-addon__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-primary);
}

.nl-addon__header p:first-child {
  font-size: 14px;
  font-weight: 600;
}

.nl-addon__header p:last-child {
  font-size: 12px;
}

.nl-addon__copy,
.nl-addon__note {
  font-size: 14px;
  color: var(--ink-secondary);
}

.nl-addon__toggle {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  background: var(--surface-white);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink-primary);
  cursor: pointer;
}

.nl-addon.is-selected .nl-addon__toggle {
  background: var(--ink-primary);
  border-color: var(--ink-primary);
  color: var(--surface-white);
  font-weight: 600;
}

.nl-addon__toggle:focus-visible {
  outline: 2px solid var(--accent-glacier);
  outline-offset: 2px;
}

.nl-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

.nl-qty--compact {
  width: 144px;
}

.nl-qty__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.nl-qty__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.nl-qty__btn:focus-visible {
  outline: 2px solid var(--accent-glacier);
  outline-offset: 2px;
}

.nl-qty__value {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-primary);
}

.nl-purchase {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.nl-btn--primary {
  width: 100%;
  background: var(--ink-primary);
  color: var(--surface-white);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nl-btn--primary:hover {
  opacity: 0.92;
}

.nl-btn--primary:focus-visible {
  outline: 2px solid var(--accent-glacier);
  outline-offset: 3px;
}

.nl-shipping {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-glacier);
}

/* Cart */

.nl-cart {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 64px 96px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.nl-cart__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.nl-cart__heading h3 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--ink-primary);
}

.nl-cart__heading p {
  font-size: 14px;
  color: var(--ink-secondary);
}

.nl-cart__layout {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}

.nl-cart__items {
  flex: 0 0 656px;
  width: 656px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.nl-cart-item {
  display: flex;
  gap: 24px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.nl-cart-item__image {
  width: 200px;
  height: 228px;
  flex: 0 0 200px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-subtle);
}

.nl-cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nl-cart-item__details {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nl-cart-item__config {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nl-cart-item__title-row {
  display: flex;
  gap: 16px;
  align-items: baseline;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-primary);
}

.nl-cart-item__title-row p:first-child {
  flex: 1 1 0;
}

.nl-cart-item__meta {
  font-size: 16px;
  color: var(--ink-secondary);
}

.nl-cart-item__filter p:first-child {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-primary);
}

.nl-cart-item__filter p:last-child {
  font-size: 12px;
  color: var(--ink-secondary);
}

.nl-cart-item__qty {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nl-cart-item__actions {
  display: flex;
  gap: 24px;
}

.nl-cross-sell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nl-cross-sell__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-primary);
}

.nl-cross-sell__card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  border-radius: 12px;
  background: var(--surface-subtle);
}

.nl-cross-sell__card > img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
}

.nl-cross-sell__copy {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.nl-cross-sell__copy p:first-child {
  font-weight: 600;
  color: var(--ink-primary);
}

.nl-cross-sell__copy p:last-child {
  color: var(--ink-secondary);
}

.nl-summary {
  flex: 0 0 400px;
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--surface-white);
}

.nl-summary__title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--ink-primary);
}

.nl-summary__rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 14px;
}

.nl-summary__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.nl-summary__row span:first-child {
  color: var(--ink-secondary);
}

.nl-summary__row span:last-child {
  color: var(--ink-primary);
  text-align: right;
}

.nl-summary__shipping.is-free {
  color: var(--accent-glacier);
  font-weight: 600;
}

.nl-summary__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  color: var(--ink-primary);
  font-weight: 600;
}

.nl-summary__total span:first-child {
  font-size: 16px;
}

.nl-summary__total span:last-child {
  font-size: 32px;
}

.nl-summary__checkout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nl-summary__express-label {
  font-size: 12px;
  color: var(--ink-secondary);
  text-align: center;
}

.nl-express {
  display: flex;
  gap: 12px;
}

.nl-express__btn {
  flex: 1 1 0;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 4px;
  background: #000;
  cursor: pointer;
}

.nl-express__btn--apple img {
  height: 22px;
  width: auto;
}

.nl-express__btn:focus-visible {
  outline: 2px solid var(--accent-glacier);
  outline-offset: 2px;
}

.nl-cart__empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 48px 0;
  max-width: 480px;
}

.nl-cart__empty[hidden] {
  display: none;
}

.nl-cart__empty-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--ink-primary);
}

.nl-cart__empty-copy {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.nl-cart__empty .nl-btn {
  width: auto;
  min-width: 220px;
}

.nl-toast {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--ink-primary);
  color: var(--surface-white);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.18);
  z-index: 5;
}

.nl-toast[hidden] {
  display: none;
}

/* Responsive */

@media (max-width: 1200px) {
  .nl-header,
  .nl-footer {
    padding-left: 40px;
    padding-right: 40px;
  }

  .nl-pdp,
  .nl-cart {
    padding-left: 40px;
    padding-right: 40px;
  }

  .nl-gallery,
  .nl-cart__items {
    width: auto;
    flex: 1 1 0;
  }

  .nl-cart__layout {
    gap: 40px;
  }

  .nl-summary {
    flex: 0 0 340px;
    width: 340px;
  }
}

@media (max-width: 960px) {
  .section--demo {
    padding-left: 40px;
    padding-right: 40px;
  }

  .nl-nav > span {
    display: none;
  }

  .nl-pdp {
    flex-direction: column;
    gap: 40px;
    padding: 32px 24px 64px;
  }

  .nl-gallery {
    width: 100%;
    flex: none;
  }

  .nl-thumb {
    height: 96px;
  }

  .nl-product-title,
  .nl-cart__heading h3 {
    font-size: 36px;
  }

  .nl-cart {
    padding: 32px 24px 64px;
  }

  .nl-cart__layout {
    flex-direction: column;
  }

  .nl-cart__items,
  .nl-summary {
    width: 100%;
    flex: none;
  }

  .nl-cart-item {
    flex-direction: column;
  }

  .nl-cart-item__image {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    flex: none;
  }

  .nl-footer {
    flex-direction: column;
    padding: 32px 24px;
  }

  .nl-header {
    padding: 0 24px;
    height: 72px;
  }
}

@media (max-width: 560px) {
  .nl-option-group {
    flex-direction: column;
  }

  .nl-cross-sell__card {
    flex-wrap: wrap;
  }

  .nl-option--static {
    width: 100%;
    flex: 1 1 100%;
  }

  .nl-express {
    flex-direction: column;
  }
}
