/* Nuggela & Sulé — Design Tokens */
:root {
  /* Brand */
  --ink: #15110D;
  --ink-2: #2A211B;
  --ink-3: #3F3429;
  --paper: #FBF7F1;          /* warm cream — base body */
  --paper-2: #F5EFE5;        /* deeper cream — sections */
  --paper-3: #EDE3D3;        /* warm khaki/taupe */
  --line: #E5DBC8;
  --line-2: #D2C5AC;
  --muted: #6F6353;
  --muted-2: #94886F;

  /* Brand orange */
  --orange: #E86D31;
  --orange-2: #FF7B3A;
  --orange-soft: #FCDFC4;
  --orange-tint: #FFF1E2;
  --orange-deep: #B84F1C;

  /* Accent for the trellis pattern — muted gold from packaging */
  --gold: #C49A4A;
  --gold-soft: #E8CB95;

  --green-dot: #2E7D32;

  /* Type — friendlier serif display + clean humanist sans */
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Fraunces", "Cormorant Garamond", "Times New Roman", Georgia, serif;

  /* Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-pill: 999px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ── Utility primitives used across artboards ──────────────────────── */

.ns-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; letter-spacing: 0.01em;
  border: 0; cursor: pointer; border-radius: var(--r-pill);
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.ns-btn:active { transform: translateY(1px); }
.ns-btn--primary { background: var(--ink); color: #fff; }
.ns-btn--primary:hover { background: #000; }
.ns-btn--primary:disabled,
.ns-btn--primary[disabled] { background: var(--ink); color: #fff; }
.ns-btn--orange { background: var(--orange); color: #fff; }
.ns-btn--orange:hover { background: var(--orange-2); }
.ns-btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.ns-btn--lg { height: 56px; padding: 0 24px; font-size: 15px; }
.ns-btn--md { height: 44px; padding: 0 18px; font-size: 14px; }
.ns-btn--sm { height: 36px; padding: 0 14px; font-size: 13px; }
.ns-btn--block { width: 100%; }

.ns-eyebrow {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600; color: var(--muted);
}
.ns-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  padding: 5px 10px; border-radius: var(--r-pill);
  background: var(--orange-tint); color: var(--orange);
  text-transform: uppercase;
}
.ns-tag--ink { background: var(--ink); color: #fff; }
.ns-tag--soft { background: var(--paper-3); color: var(--ink); }

.ns-stars { color: var(--orange); letter-spacing: 1px; font-size: 13px; }

/* SVG gwiazdek (ns_pdp_stars_html) — usuwa „dziurę” baseline pod ikoną */
.ns-stars.ns-stars--svg svg { display: block; }

.ns-hr { height: 1px; background: var(--line); border: 0; margin: 0; }

.ns-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
}

.ns-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green-dot);
  box-shadow: 0 0 0 0 rgba(46,125,50,.5);
  animation: nsPulse 1.6s infinite;
}
@keyframes nsPulse {
  0% { box-shadow: 0 0 0 0 rgba(46,125,50,.45); }
  70% { box-shadow: 0 0 0 8px rgba(46,125,50,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,125,50,0); }
}

/* Marquee USP bar */
.ns-marquee {
  overflow: hidden; white-space: nowrap; background: var(--ink); color: #fff;
}
.ns-marquee__track {
  display: inline-flex; gap: 48px; padding: 10px 0;
  animation: nsMarq 40s linear infinite;
}
.ns-marquee__item { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.ns-marquee__sep { opacity: .4; }
@keyframes nsHeritageSlide {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes nsSparkDraw {
  from { stroke-dasharray: 1; stroke-dashoffset: 1; }
  to { stroke-dasharray: 1; stroke-dashoffset: 0; }
}
@keyframes nsSparkFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes nsMarq {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Newsletter artwork */
@keyframes nsOrbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes nsBottleFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}
@keyframes nsGlowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes nsPulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}
@keyframes nsParticle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.85; }
}
@keyframes nsBadgeRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes nsBadgePop {
  0% { opacity: 0; transform: scale(0.4); }
  60% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes nsCheckDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes nsIngFloat0 {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-6px) scale(1.04); }
}
@keyframes nsIngFloat1 {
  0%, 100% { transform: translateX(-4px) scale(0.96); }
  50% { transform: translateX(4px) scale(1.06); }
}
@keyframes nsIngFloat2 {
  0%, 100% { transform: translateY(4px) scale(1.02); }
  50% { transform: translateY(-4px) scale(0.98); }
}

/* Quiz slide transitions */
@keyframes quizSlideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes quizSlideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Placeholder image — striped */
.ns-ph {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, #EFE4D0 0 14px, #E6D9BF 14px 28px);
  color: var(--muted); display: flex; align-items: center; justify-content: center;
  font: 500 11px/1.2 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: .08em; text-transform: uppercase;
  border-radius: 8px;
}
.ns-ph--ink {
  background:
    repeating-linear-gradient(135deg, #1B1B1B 0 14px, #141414 14px 28px);
  color: rgba(255,255,255,.5);
}
.ns-ph--orange {
  background:
    repeating-linear-gradient(135deg, var(--orange) 0 14px, #D6541B 14px 28px);
  color: rgba(255,255,255,.85);
}

/* Real image wrapper — used for product shots */
.ns-img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.ns-product-bg {
  background: linear-gradient(180deg, #FFF8EC 0%, #F7E9D0 100%);
}

/* Brand trellis pattern — the iconic packaging motif. Tile via SVG. */
.ns-trellis {
  background-color: transparent;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'><g fill='none' stroke='%23E86D31' stroke-width='1.4' stroke-linecap='round'><path d='M0 22 Q11 0 22 22 Q33 44 44 22'/><path d='M0 22 Q11 44 22 22 Q33 0 44 22'/><path d='M22 0 Q44 11 22 22 Q0 33 22 44'/><path d='M22 0 Q0 11 22 22 Q44 33 22 44'/></g></svg>");
  background-size: 44px 44px;
}
.ns-trellis--gold {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'><g fill='none' stroke='%23C49A4A' stroke-width='1.4' stroke-linecap='round'><path d='M0 22 Q11 0 22 22 Q33 44 44 22'/><path d='M0 22 Q11 44 22 22 Q33 0 44 22'/><path d='M22 0 Q44 11 22 22 Q0 33 22 44'/><path d='M22 0 Q0 11 22 22 Q44 33 22 44'/></g></svg>");
}
.ns-trellis--cream {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'><g fill='none' stroke='%23E8CB95' stroke-width='1.4' stroke-linecap='round'><path d='M0 22 Q11 0 22 22 Q33 44 44 22'/><path d='M0 22 Q11 44 22 22 Q33 0 44 22'/><path d='M22 0 Q44 11 22 22 Q0 33 22 44'/><path d='M22 0 Q0 11 22 22 Q44 33 22 44'/></g></svg>");
}

/* Decorative scallop divider (the embroidered look from the packaging) */
.ns-scallop {
  height: 14px; width: 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 14' preserveAspectRatio='none'><path d='M0 7 Q3 0 6 7 T12 7 T18 7 T24 7' fill='none' stroke='%23C49A4A' stroke-width='1.2' stroke-linecap='round'/></svg>");
  background-repeat: repeat-x;
  background-size: 24px 14px;
  background-position: center;
  opacity: .9;
}

/* Display heading helper — friendlier serif */
.ns-display {
  font-family: var(--display);
  letter-spacing: -0.02em;
  font-weight: 400;
  line-height: 1.05;
  font-style: normal;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.ns-display em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--orange);
}

/* Number quantity stepper */
.ns-qty {
  display: inline-grid; grid-template-columns: 40px 44px 40px;
  align-items: center; height: 48px;
  border: 1px solid var(--ink); border-radius: var(--r-pill); overflow: hidden;
  background: #fff;
}
.ns-qty button {
  height: 100%; border: 0; background: transparent; cursor: pointer; font-size: 18px;
}
.ns-qty button:hover { background: var(--paper-3); }
.ns-qty input {
  width: 100%; height: 100%; border: 0; outline: 0; text-align: center;
  font: 600 15px var(--sans); background: transparent;
}
.ns-qty input::-webkit-outer-spin-button,
.ns-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Density control */
.ns-density-compact .ns-section { padding-top: 56px !important; padding-bottom: 56px !important; }
.ns-density-spacious .ns-section { padding-top: 120px !important; padding-bottom: 120px !important; }

/* Conditional booster visibility */
.ns-hide { display: none !important; }
