/*
  Base styles shared by the storefront and the admin panel.

  Elements only — no page or component styles. Those live with the pages that
  use them, so that changing one screen cannot quietly restyle another.
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--n-bg);
  color: var(--n-ink);
  font-family: var(--n-font-body);
  font-size: var(--n-text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--n-font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--n-space-3);
  color: var(--n-ink);
}

h1 { font-size: var(--n-text-3xl); }
h2 { font-size: var(--n-text-2xl); }
h3 { font-size: var(--n-text-xl); }
h4 { font-size: var(--n-text-lg); }

p { margin: 0 0 var(--n-space-4); }

a {
  color: var(--n-primary);
  text-decoration: none;
  transition: color var(--n-transition);
}

a:hover { color: var(--n-primary-dark); }

/*
  Keyboard users need to see where they are. The ring is offset so it clears
  the element rather than sitting on its edge.
*/
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--n-primary);
  outline-offset: 2px;
  border-radius: var(--n-radius-sm);
}

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

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ---- Utilities used across pages ------------------------------------- */

.n-container {
  width: 100%;
  max-width: var(--n-container);
  margin-inline: auto;
  padding-inline: var(--n-space-6);
}

/* Small uppercase labels — the wide tracking is part of the brand's voice. */
.n-eyebrow {
  font-size: var(--n-text-xs);
  letter-spacing: var(--n-tracking-wider);
  text-transform: uppercase;
  color: var(--n-ink-muted);
}

.n-price {
  font-weight: 600;
  color: var(--n-ink);
}

/* The struck-through MRP. Only rendered when there is a real discount. */
.n-price-mrp {
  color: var(--n-ink-faint);
  text-decoration: line-through;
  font-weight: 400;
}

.n-discount {
  color: var(--n-success);
  font-weight: 500;
}

.n-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--n-space-1);
  padding: 4px 10px;
  border-radius: var(--n-radius-pill);
  font-size: var(--n-text-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.n-badge--sold-out { background: var(--n-danger-bg); color: var(--n-danger); }
.n-badge--coming-soon { background: var(--n-info-bg); color: var(--n-info); }
.n-badge--low-stock { background: var(--n-warning-bg); color: var(--n-warning); }
.n-badge--offer { background: var(--n-surface-blush); color: var(--n-primary); }

/*
  Hidden visually, still read aloud. Used for the headings and labels that
  make a page navigable by screen reader without cluttering the design.
*/
.n-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Lets a keyboard user jump past the header straight to the products. */
.n-skip-link {
  position: absolute;
  left: var(--n-space-4);
  top: -100px;
  z-index: 100;
  padding: var(--n-space-3) var(--n-space-5);
  background: var(--n-primary);
  color: #fff;
  border-radius: var(--n-radius-sm);
  transition: top var(--n-transition);
}

.n-skip-link:focus {
  top: var(--n-space-4);
  color: #fff;
}
