/* =============================================================
   Sunday Polish — components
   Buttons, chips, cards, fields, stars, tags, notes,
   header + nav, cart drawer, toast, footer, newsletter.
   Owned by Agent 1 (core build).
   ============================================================= */

/* =============================================================
   Buttons
   ============================================================= */
.btn {
  --btn-bg: var(--sp-paper);
  --btn-fg: var(--sp-ink);
  --btn-bd: var(--sp-ink);
  --btn-shadow: 0 3px 0 var(--sp-ink);
  --btn-lift: -2px;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.78em 1.4em;
  min-height: 46px;
  border: 2px solid var(--btn-bd);
  border-radius: var(--sp-r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sp-font-body);
  font-size: var(--sp-t-sm);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--btn-shadow);
  transform: translateY(0);
  transition:
    transform var(--sp-dur) var(--sp-spring),
    box-shadow var(--sp-dur) var(--sp-spring),
    background-color var(--sp-dur-fast) var(--sp-ease),
    color var(--sp-dur-fast) var(--sp-ease),
    border-color var(--sp-dur-fast) var(--sp-ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover {
  transform: translateY(var(--btn-lift));
  box-shadow: 0 6px 0 var(--btn-bd);
}
.btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--btn-bd);
}
.btn:focus-visible {
  outline: 3px solid var(--sp-lilac-deep);
  outline-offset: 3px;
}
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  box-shadow: none;
}

.btn--primary { --btn-bg: var(--sp-coral); --btn-fg: var(--sp-ink); }
.btn--primary:hover { --btn-bg: var(--sp-coral-soft); }

.btn--lilac { --btn-bg: var(--sp-lilac); --btn-fg: #fff; }
.btn--lilac:hover { --btn-bg: var(--sp-lilac-deep); }

.btn--ink { --btn-bg: var(--sp-ink); --btn-fg: var(--sp-cream); --btn-bd: var(--sp-ink); }
.btn--ink:hover { --btn-bg: #2b222a; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-bd: var(--sp-ink);
  --btn-shadow: 0 0 0 rgba(0,0,0,0);
}
.btn--ghost:hover { --btn-bg: rgba(26,20,24,.06); box-shadow: 0 3px 0 var(--sp-ink); }

.btn--soft {
  --btn-bg: var(--sp-paper);
  --btn-bd: var(--sp-line);
  --btn-shadow: var(--sp-shadow-1);
}
.btn--soft:hover { --btn-bg: var(--sp-cream); box-shadow: var(--sp-shadow-2); }

.btn--bare {
  --btn-bg: transparent;
  --btn-bd: transparent;
  --btn-shadow: none;
  padding-inline: 0.6em;
  min-height: 40px;
}
.btn--bare:hover { transform: none; box-shadow: none; color: var(--sp-coral-deep); }

.btn--lg { padding: 1em 1.9em; min-height: 56px; font-size: var(--sp-t-md); }
.btn--sm { padding: 0.5em 0.95em; min-height: 36px; font-size: var(--sp-t-xs); border-width: 1.5px; }
.btn--block { display: flex; width: 100%; }

.section--ink .btn--ghost { --btn-bd: var(--sp-cream); --btn-fg: var(--sp-cream); }
.section--ink .btn--ghost:hover { --btn-bg: rgba(253,244,234,.1); box-shadow: 0 3px 0 var(--sp-cream); }

/* =============================================================
   Chips (filters)
   ============================================================= */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.42em 0.95em;
  min-height: 36px;
  border: 1.5px solid var(--sp-line);
  border-radius: var(--sp-r-pill);
  background: var(--sp-paper);
  color: var(--sp-ink-2);
  font-size: var(--sp-t-sm);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--sp-dur-fast) var(--sp-ease),
    border-color var(--sp-dur-fast) var(--sp-ease),
    color var(--sp-dur-fast) var(--sp-ease),
    transform var(--sp-dur) var(--sp-spring);
}
.chip:hover { border-color: var(--sp-lilac); color: var(--sp-ink); transform: translateY(-1px); }
.chip.is-active {
  background: var(--sp-ink);
  border-color: var(--sp-ink);
  color: var(--sp-cream);
  font-weight: 600;
}
.chip.is-active .chip__dot { box-shadow: 0 0 0 2px var(--sp-cream); }
.chip__dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--sp-line-soft);
}
.chip__n { font-size: var(--sp-t-xs); opacity: 0.6; }

/* small colour+label chip used inline (reviews, cart) */
.shadechip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.28em 0.7em 0.28em 0.32em;
  border-radius: var(--sp-r-pill);
  background: var(--sp-cream-2);
  font-size: var(--sp-t-xs);
  font-weight: 500;
  color: var(--sp-ink-2);
  border: 1px solid var(--sp-line-soft);
}
.shadechip__sw {
  width: 18px; height: 18px;
  border-radius: 50%;
  box-shadow: inset 0 -2px 3px rgba(0,0,0,.16), inset 0 2px 2px rgba(255,255,255,.4);
}

/* =============================================================
   Cards / surfaces
   ============================================================= */
.card {
  position: relative;
  background: var(--sp-paper);
  border: 1px solid var(--sp-line-soft);
  border-radius: var(--sp-r-lg);
  box-shadow: var(--sp-shadow-1);
  transition:
    transform var(--sp-dur) var(--sp-ease-out),
    box-shadow var(--sp-dur) var(--sp-ease-out),
    border-color var(--sp-dur) var(--sp-ease);
}
.card--pad { padding: var(--sp-5); }
.card--flat { box-shadow: none; background: transparent; border-color: var(--sp-line); }
.card--lift:hover, .card--lift:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--sp-shadow-2);
  border-color: var(--sp-line);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.2em 0.6em;
  border-radius: 7px;
  background: var(--sp-lilac-soft);
  color: var(--sp-lilac-deep);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag--creme   { background: #F1E7DC; color: #6E5B4C; }
.tag--sheer   { background: #FBE9EC; color: #B25E6A; }
.tag--shimmer { background: #EDE6FA; color: var(--sp-lilac-deep); }
.tag--jelly   { background: #E4F1F2; color: #2A7480; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.3em 0.75em;
  border-radius: var(--sp-r-pill);
  background: var(--sp-coral);
  color: var(--sp-ink);
  font-size: var(--sp-t-xs);
  font-weight: 600;
  border: 1.5px solid var(--sp-ink);
}
.badge--soft { background: var(--sp-cream-2); border-color: var(--sp-line); color: var(--sp-ink-2); }
.badge--ok   { background: #DFF0E7; border-color: #A9D4C0; color: #276B51; }

.note {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--sp-r-md);
  background: var(--sp-cream-2);
  border: 1px dashed var(--sp-line);
  font-size: var(--sp-t-sm);
  color: var(--sp-ink-2);
}
.note--lilac { background: #F2ECFB; border-color: var(--sp-lilac-soft); }
.note--coral { background: #FDECEE; border-color: var(--sp-coral-soft); }
.note strong { color: var(--sp-ink); }

/* =============================================================
   Stars
   ============================================================= */
.stars {
  --pct: 100%;
  position: relative;
  display: inline-block;
  line-height: 1;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--sp-line);
  -webkit-user-select: none;
  user-select: none;
}
.stars::before { content: "\2605\2605\2605\2605\2605"; }
.stars::after {
  content: "\2605\2605\2605\2605\2605";
  position: absolute;
  inset: 0;
  width: var(--pct);
  overflow: hidden;
  color: var(--sp-coral-deep);
  white-space: nowrap;
}
.stars--sm { font-size: 0.8rem; }
.stars--lg { font-size: 1.35rem; }

/* =============================================================
   Fields
   ============================================================= */
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field__label {
  font-size: var(--sp-t-sm);
  font-weight: 600;
  color: var(--sp-ink);
}
.field__hint { font-size: var(--sp-t-xs); color: var(--sp-muted); }
.field__input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  min-height: 48px;
  border: 1.5px solid var(--sp-line);
  border-radius: var(--sp-r-sm);
  background: var(--sp-paper);
  color: var(--sp-ink);
  font-size: var(--sp-t-md);
  transition: border-color var(--sp-dur-fast) var(--sp-ease),
              box-shadow var(--sp-dur-fast) var(--sp-ease);
}
.field__input::placeholder { color: #B6A9B1; }
.field__input:hover { border-color: var(--sp-lilac-soft); }
.field__input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--sp-lilac-deep);
  box-shadow: 0 0 0 3px var(--sp-lilac-soft);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.4rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--sp-ink-2) 50%),
    linear-gradient(135deg, var(--sp-ink-2) 50%, transparent 50%);
  background-position: calc(100% - 19px) 51%, calc(100% - 13px) 51%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.field__err {
  font-size: var(--sp-t-xs);
  font-weight: 500;
  color: #B4402F;
  display: none;
}
.field.is-invalid .field__input,
.field.is-invalid select { border-color: #D97362; background: #FEF6F4; }
.field.is-invalid .field__err { display: block; }

.fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.fieldset__legend {
  font-family: var(--sp-font-display);
  font-size: var(--sp-t-xl);
  font-weight: 700;
  padding: 0;
  margin-bottom: var(--sp-1);
}

.checkline {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: var(--sp-t-sm);
  color: var(--sp-ink-2);
  cursor: pointer;
}
.checkline input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin-top: 2px;
  accent-color: var(--sp-lilac-deep);
  cursor: pointer;
}

/* =============================================================
   Qty stepper
   ============================================================= */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--sp-line);
  border-radius: var(--sp-r-pill);
  background: var(--sp-paper);
  overflow: hidden;
}
.qty__btn {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  color: var(--sp-ink-2);
  transition: background-color var(--sp-dur-fast) var(--sp-ease), color var(--sp-dur-fast) var(--sp-ease);
}
.qty__btn:hover { background: var(--sp-cream-2); color: var(--sp-ink); }
.qty__btn:focus-visible { outline-offset: -3px; }
.qty__n {
  min-width: 30px;
  text-align: center;
  font-size: var(--sp-t-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.qty--sm .qty__btn { width: 28px; height: 28px; font-size: 0.95rem; }

/* =============================================================
   Swatch / nail art holders
   ============================================================= */
.swatch { display: block; line-height: 0; }
.swatch svg { display: block; width: 100%; height: auto; }

/* all generated art scales by width and keeps its ratio */
.sp-nail, .sp-pen, .sp-hand, .sp-setbox { max-width: 100%; height: auto; }

/* =============================================================
   Product photography
   A fixed-ratio frame + object-fit:cover, so images never distort
   and never shift the layout while they load.
   ============================================================= */
.media {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  border-radius: var(--sp-r-lg);
  background: var(--sp-cream-2);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media--sq       { aspect-ratio: 1 / 1; }
.media--4x3      { aspect-ratio: 4 / 3; }
.media--3x2      { aspect-ratio: 3 / 2; }
.media--16x9     { aspect-ratio: 16 / 9; }
.media--5x4      { aspect-ratio: 5 / 4; }
.media--portrait { aspect-ratio: 4 / 5; }
.media--auto     { aspect-ratio: auto; }
.media--auto img { height: auto; }
.media--soft     { border-radius: var(--sp-r-md); }
.media--round    { border-radius: var(--sp-r-xl); }
.media--ring     { border: 1px solid var(--sp-line-soft); }

/* zoom on hover, only where a card opts in */
.media--zoom img { transition: transform 620ms var(--sp-ease-out); }
.card--lift:hover .media--zoom img,
a:hover > .media--zoom img { transform: scale(1.045); }

@supports not (aspect-ratio: 1 / 1) {
  .media { height: auto; }
  .media img { height: auto; }
}

/* =============================================================
   "Choose your colours" — nail slot row
   ============================================================= */
.pickcard {
  position: relative;
  background: #fff;
  border: 1px solid var(--sp-line-soft);
  border-radius: var(--sp-r-lg);
  padding: clamp(1.15rem, 3vw, 1.75rem) clamp(1.15rem, 3vw, 2rem) clamp(1rem, 2.4vw, 1.4rem);
  box-shadow: var(--sp-shadow-1);
  overflow: hidden;
}
.pickcard::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--sp-lilac), var(--sp-lilac-soft));
}
.pickcard__label {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #55505A;
}

.nrow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(0.4rem, 2.5vw, 1.5rem);
  margin-top: clamp(1.1rem, 3vw, 1.6rem);
}

.nslot {
  position: relative;
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.nslot__art {
  position: relative;
  display: block;
  /* max-width, not width — the row must be able to shrink at 375px
     and still fit ten slots on the top tier. */
  width: 100%;
  max-width: var(--nw, 46px);
  min-width: 0;
  line-height: 0;
}
.nslot__art svg { width: 100%; height: auto; transition: transform var(--sp-dur) var(--sp-spring); }
.nslot.is-filled .nslot__art svg { transform: translateY(-1px); }

.nslot__n {
  position: absolute;
  left: 50%;
  top: 62%;
  transform: translate(-50%, -50%);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1;
  color: #C3BDC2;
  pointer-events: none;
}

.nslot__badge {
  position: absolute;
  left: 88%;
  top: 6%;
  transform: translate(-50%, -50%);
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #D8D3D6;
  color: #6E6873;
  box-shadow: 0 1px 2px rgba(26, 20, 24, .06);
  transition: transform var(--sp-dur) var(--sp-spring),
              border-color var(--sp-dur-fast) var(--sp-ease),
              color var(--sp-dur-fast) var(--sp-ease),
              background-color var(--sp-dur-fast) var(--sp-ease);
  z-index: 2;
}
.nslot__badge svg { width: 13px; height: 13px; }
/* The badge reads as 19px but must be comfortably tappable. Extend the hit
   area to 44px without changing the visual size or the layout. */
.nslot__badge::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}
@media (hover: hover) and (pointer: fine) {
  .nslot__badge::after { width: 30px; height: 30px; }
}
.nslot__badge:hover {
  transform: translate(-50%, -50%) scale(1.14);
  border-color: var(--sp-lilac-deep);
  color: var(--sp-lilac-deep);
}
.nslot.is-filled .nslot__badge:hover { border-color: #C0574B; color: #C0574B; }
.nslot__badge:focus-visible { outline: 3px solid var(--sp-lilac-deep); outline-offset: 2px; }

.nslot__name {
  font-size: 0.68rem;
  line-height: 1.2;
  text-align: center;
  color: var(--sp-ink-2);
  max-width: calc(var(--nw, 46px) + 18px);
  overflow-wrap: anywhere;
}
.nslot__name--empty { color: transparent; }

@media (max-width: 420px) {
  .nrow { gap: 0.25rem; }
  .nslot__name { font-size: 0.6rem; }
}

.fan {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.fan > * { margin-left: -12%; }
.fan > *:first-child { margin-left: 0; }
.fan > *:nth-child(odd) { transform: translateY(-3px); }

/* free-shipping progress */
.ship {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.ship__bar {
  position: relative;
  height: 9px;
  border-radius: 99px;
  background: var(--sp-cream-2);
  overflow: hidden;
  border: 1px solid var(--sp-line-soft);
}
.ship__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--pct, 0%);
  border-radius: 99px;
  background: linear-gradient(90deg, var(--sp-coral), var(--sp-lilac));
  transition: width 620ms var(--sp-ease-out);
}
.ship__fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: sp-sheen 2.4s linear infinite;
}
@keyframes sp-sheen { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.ship__txt { font-size: var(--sp-t-xs); color: var(--sp-ink-2); }
.ship__txt b { color: var(--sp-ink); }
.ship.is-free .ship__txt { color: #2E7357; }

/* =============================================================
   Header
   ============================================================= */
/* The header container ([data-sp-header]) holds a scroll-away announcement
   bar plus a sticky bar, so the sticky element itself never changes height. */
[data-sp-header] { position: relative; z-index: var(--sp-z-header); }

/* --- announcement bar --- */
.sp-ann {
  position: relative;
  overflow: hidden;
  height: 40px;
  background: var(--sp-ink);
  color: var(--sp-cream);
  transition: height var(--sp-dur) var(--sp-ease), opacity var(--sp-dur) var(--sp-ease);
}
.sp-ann__track {
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
}
.sp-ann__msg {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--sp-t-xs);
  letter-spacing: 0.04em;
  text-align: center;
  padding-inline: var(--sp-4);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 520ms var(--sp-ease), transform 520ms var(--sp-ease);
  pointer-events: none;
  white-space: nowrap;
}
/* Below the narrowest phone the longest USP still has to fit somewhere.
   Let it wrap rather than push the whole document sideways. */
@media (max-width: 360px) {
  .sp-ann { height: auto; min-height: 40px; }
  .sp-ann__msg { white-space: normal; line-height: 1.3; padding-block: 4px; }
}
.sp-ann__msg.is-on { opacity: 1; transform: none; }
.sp-ann__msg b { color: var(--sp-coral); font-weight: 600; }
.sp-usp__i { width: 15px; height: 15px; flex: 0 0 auto; color: var(--sp-coral); opacity: .95; }

/* Wide enough for the whole USP set: show them all at once, separated by a
   hairline, instead of rotating one at a time. */
@media (min-width: 940px) {
  .sp-ann { height: 44px; }
  .sp-ann__track {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(1rem, 3vw, 3rem);
    max-width: var(--sp-max-wide);
    margin-inline: auto;
    padding-inline: var(--sp-gutter);
  }
  .sp-ann__msg {
    grid-area: auto;
    opacity: 1;
    transform: none;
    padding-inline: 0;
    position: relative;
  }
  .sp-ann__msg + .sp-ann__msg::before {
    content: "";
    position: absolute;
    left: clamp(-1.5rem, -1.5vw, -0.5rem);
    top: 50%;
    width: 1px;
    height: 14px;
    transform: translateY(-50%);
    background: currentColor;
    opacity: .22;
  }
}
/* Four items don't fit under ~1180px — drop the least critical one. */
@media (min-width: 940px) and (max-width: 1179px) {
  .sp-ann__msg:nth-child(4) { display: none; }
}

/* --- bar --- */
.sp-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(253, 244, 234, 0.86);
  border-bottom: 1px solid transparent;
  transition: background-color var(--sp-dur) var(--sp-ease),
              border-color var(--sp-dur) var(--sp-ease),
              box-shadow var(--sp-dur) var(--sp-ease);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .sp-head { -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
}
.sp-head.is-stuck {
  background: rgba(253, 244, 234, 0.94);
  border-bottom-color: var(--sp-line);
  box-shadow: 0 8px 24px rgba(26, 20, 24, 0.06);
}

.sp-head__in {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: var(--sp-header-h);
}

.sp-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  transition: transform var(--sp-dur) var(--sp-spring);
}
/* The wordmark is the brand — it carries the whole identity, so it leads the
   header rather than sitting in it apologetically. */
.sp-logo img {
  height: clamp(44px, 4.4vw, 62px);
  width: auto;
  display: block;
}
.sp-logo:hover { transform: rotate(-1.5deg) scale(1.03); }
/* The logo shrinks a little once the header is stuck, so it never eats the
   viewport while scrolling, but stays clearly larger than the nav. */
.sp-head.is-stuck .sp-logo img { height: clamp(38px, 3.4vw, 48px); }
.sp-logo img { transition: height var(--sp-dur) var(--sp-ease); }

.sp-nav { display: none; flex: 1 1 auto; }
@media (min-width: 1000px) { .sp-nav { display: block; } }
.sp-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
}
.sp-nav__item { position: relative; }
.sp-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.55rem 0.8rem;
  border-radius: var(--sp-r-pill);
  font-size: var(--sp-t-sm);
  font-weight: 500;
  color: var(--sp-ink-2);
  white-space: nowrap;
  transition: color var(--sp-dur-fast) var(--sp-ease), background-color var(--sp-dur-fast) var(--sp-ease);
}
.sp-nav__link:hover { color: var(--sp-ink); background: rgba(155, 132, 201, 0.13); }
.sp-nav__link.is-active { color: var(--sp-ink); font-weight: 600; }
.sp-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0.85rem; right: 0.85rem;
  bottom: 0.22rem;
  height: 3px;
  border-radius: 99px;
  background: var(--sp-coral);
}

/* --- mega panel --- */
.sp-mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 8px);
  width: min(660px, 78vw);
  padding: var(--sp-5);
  background: var(--sp-paper);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-r-lg);
  box-shadow: var(--sp-shadow-3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--sp-dur) var(--sp-ease), transform var(--sp-dur) var(--sp-ease-out), visibility var(--sp-dur);
  z-index: 2;
}
.sp-nav__item:hover > .sp-mega,
.sp-nav__item:focus-within > .sp-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.sp-mega__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}
.sp-mega__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--sp-r-sm);
  font-size: var(--sp-t-sm);
  color: var(--sp-ink-2);
  transition: background-color var(--sp-dur-fast) var(--sp-ease), color var(--sp-dur-fast) var(--sp-ease);
}
.sp-mega__link:hover { background: var(--sp-cream); color: var(--sp-ink); }
.sp-mega__sw {
  width: 20px; height: 20px;
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: inset 0 -3px 4px rgba(0,0,0,.18), inset 0 2px 2px rgba(255,255,255,.45);
}
.sp-mega__foot {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--sp-line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

/* --- actions --- */
.sp-head__act {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-left: auto;
  flex: 0 0 auto;
}
.sp-head__cta { display: none; }
@media (min-width: 1160px) { .sp-head__cta { display: inline-flex; } }

.sp-cartbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem 0.5rem 0.85rem;
  min-height: 42px;
  border: 2px solid var(--sp-ink);
  border-radius: var(--sp-r-pill);
  background: var(--sp-paper);
  font-size: var(--sp-t-sm);
  font-weight: 600;
  box-shadow: 0 3px 0 var(--sp-ink);
  transition: transform var(--sp-dur) var(--sp-spring), box-shadow var(--sp-dur) var(--sp-spring), background-color var(--sp-dur-fast) var(--sp-ease);
}
.sp-cartbtn:hover { background: var(--sp-coral-soft); transform: translateY(-2px); box-shadow: 0 5px 0 var(--sp-ink); }
.sp-cartbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--sp-ink); }
.sp-cartbtn__ico { width: 19px; height: 19px; }
.sp-cartbtn__n {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding-inline: 5px;
  border-radius: 99px;
  background: var(--sp-lilac);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.sp-cartbtn__n.is-empty { background: var(--sp-line); color: var(--sp-muted); }
.sp-cartbtn.is-pulse { animation: sp-pulse 620ms var(--sp-spring); }
@keyframes sp-pulse {
  0%   { transform: scale(1); }
  32%  { transform: scale(1.09) rotate(-2deg); }
  62%  { transform: scale(0.97); }
  100% { transform: scale(1); }
}

/* --- burger --- */
.sp-burger {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  flex: 0 0 auto;
  transition: background-color var(--sp-dur-fast) var(--sp-ease);
}
.sp-burger:hover { background: rgba(26,20,24,.06); }
@media (min-width: 1000px) { .sp-burger { display: none; } }
.sp-burger__box { width: 22px; height: 15px; position: relative; }
.sp-burger__box i {
  position: absolute;
  left: 0; right: 0;
  height: 2.5px;
  border-radius: 3px;
  background: var(--sp-ink);
  transition: transform var(--sp-dur) var(--sp-ease-out), opacity var(--sp-dur-fast) var(--sp-ease);
}
.sp-burger__box i:nth-child(1) { top: 0; }
.sp-burger__box i:nth-child(2) { top: 6.2px; }
.sp-burger__box i:nth-child(3) { top: 12.5px; }
.sp-burger[aria-expanded="true"] .sp-burger__box i:nth-child(1) { transform: translateY(6.2px) rotate(45deg); }
.sp-burger[aria-expanded="true"] .sp-burger__box i:nth-child(2) { opacity: 0; }
.sp-burger[aria-expanded="true"] .sp-burger__box i:nth-child(3) { transform: translateY(-6.3px) rotate(-45deg); }

/* --- mobile sheet --- */
.sp-sheet {
  position: fixed;
  inset: 0;
  z-index: var(--sp-z-modal);
  background: var(--sp-cream);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-2%);
  transition: opacity var(--sp-dur) var(--sp-ease), transform var(--sp-dur) var(--sp-ease-out), visibility var(--sp-dur);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sp-sheet.is-open { opacity: 1; visibility: visible; transform: none; }
.sp-sheet__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--sp-header-h);
  padding-inline: var(--sp-gutter);
  border-bottom: 1px solid var(--sp-line-soft);
}
.sp-sheet__body { padding: var(--sp-6) var(--sp-gutter) var(--sp-8); }
.sp-sheet__list { display: flex; flex-direction: column; }
.sp-sheet__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--sp-line-soft);
  font-family: var(--sp-font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--sp-ink);
  opacity: 0;
  transform: translateY(10px);
  transition: color var(--sp-dur-fast) var(--sp-ease);
}
.sp-sheet.is-open .sp-sheet__link {
  animation: sp-sheet-in 460ms var(--sp-ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 45ms + 60ms);
}
@keyframes sp-sheet-in { to { opacity: 1; transform: none; } }
.sp-sheet__link:hover { color: var(--sp-coral-deep); }
.sp-sheet__link.is-active { color: var(--sp-lilac-deep); }
.sp-sheet__link span { font-family: var(--sp-font-body); font-size: var(--sp-t-xs); font-weight: 500; color: var(--sp-muted); }
.sp-sheet__cta { margin-top: var(--sp-6); display: grid; gap: var(--sp-3); }
.sp-sheet__shades { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-6); }
.sp-sheet__sw { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 -3px 5px rgba(0,0,0,.2), inset 0 2px 2px rgba(255,255,255,.4); }

/* =============================================================
   Cart drawer
   ============================================================= */
.sp-scrim {
  position: fixed;
  inset: 0;
  z-index: var(--sp-z-drawer);
  background: rgba(26, 20, 24, 0.42);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--sp-dur) var(--sp-ease), visibility var(--sp-dur);
}
.sp-scrim.is-open { opacity: 1; visibility: visible; }

.sp-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: calc(var(--sp-z-drawer) + 1);
  width: min(430px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--sp-cream);
  border-left: 1px solid var(--sp-line);
  box-shadow: -20px 0 60px rgba(26, 20, 24, 0.16);
  transform: translateX(101%);
  visibility: hidden;
  transition: transform 420ms var(--sp-ease-out), visibility 420ms;
}
.sp-drawer.is-open { transform: none; visibility: visible; }

.sp-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--sp-line);
  background: var(--sp-paper);
}
.sp-drawer__title { font-family: var(--sp-font-display); font-size: var(--sp-t-xl); font-weight: 700; }
.sp-drawer__title span { font-family: var(--sp-font-body); font-size: var(--sp-t-sm); font-weight: 500; color: var(--sp-muted); }

.sp-x {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--sp-line);
  background: var(--sp-paper);
  color: var(--sp-ink-2);
  transition: background-color var(--sp-dur-fast) var(--sp-ease), transform var(--sp-dur) var(--sp-spring), color var(--sp-dur-fast) var(--sp-ease);
}
.sp-x:hover { background: var(--sp-cream-2); color: var(--sp-ink); transform: rotate(90deg); }
.sp-x svg { width: 15px; height: 15px; }

.sp-drawer__ship { padding: var(--sp-3) var(--sp-5); background: var(--sp-paper); border-bottom: 1px solid var(--sp-line-soft); }
.sp-drawer__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: var(--sp-4) var(--sp-5); }
.sp-drawer__foot {
  padding: var(--sp-4) var(--sp-5) calc(var(--sp-5) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--sp-line);
  background: var(--sp-paper);
  display: grid;
  gap: var(--sp-3);
}

/* line item */
.cline {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--sp-line-soft);
  animation: sp-line-in 380ms var(--sp-ease-out) both;
}
@keyframes sp-line-in { from { opacity: 0; transform: translateY(8px); } }
.cline:last-child { border-bottom: 0; }
.cline__art {
  width: 74px;
  min-height: 74px;
  display: grid;
  place-items: center;
  border-radius: var(--sp-r-sm);
  background: var(--sp-paper);
  border: 1px solid var(--sp-line-soft);
  padding: 5px;
}
.cline__art .fan > * { margin-left: -14%; }
.cline__art .fan > *:first-child { margin-left: 0; }
.cline__t { font-size: var(--sp-t-sm); font-weight: 600; line-height: 1.35; }
.cline__t a:hover { color: var(--sp-coral-deep); }
.cline__sub { font-size: var(--sp-t-xs); color: var(--sp-muted); margin-top: 2px; }
.cline__row { display: flex; align-items: center; gap: var(--sp-3); margin-top: 0.55rem; }
.cline__price { text-align: right; font-size: var(--sp-t-sm); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cline__was { display: block; font-size: var(--sp-t-xs); font-weight: 400; }
.cline__rm {
  font-size: var(--sp-t-xs);
  color: var(--sp-muted);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: color var(--sp-dur-fast) var(--sp-ease);
}
.cline__rm:hover { color: #B4402F; }

.sumrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: var(--sp-t-sm);
}
.sumrow--total { font-size: var(--sp-t-lg); font-weight: 700; font-family: var(--sp-font-display); }
.sumrow--save { color: #2E7357; font-weight: 600; }
.sumrow b { font-variant-numeric: tabular-nums; }

.cart-empty { text-align: center; padding: var(--sp-7) var(--sp-3); }
.cart-empty__art { width: 132px; margin: 0 auto var(--sp-4); }
.cart-empty h3 { font-family: var(--sp-font-display); font-size: var(--sp-t-xl); }
.cart-empty p { font-size: var(--sp-t-sm); color: var(--sp-muted); margin-top: var(--sp-2); }
.cart-empty .btn { margin-top: var(--sp-5); }

/* =============================================================
   Toast
   ============================================================= */
.sp-toasts {
  position: fixed;
  z-index: var(--sp-z-toast);
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  width: min(420px, calc(100vw - 24px));
  pointer-events: none;
}
@media (min-width: 768px) {
  .sp-toasts {
    left: auto; right: 20px; bottom: 20px;
    transform: none;
    align-items: flex-end;
    transition: right var(--sp-dur) var(--sp-ease-out);
  }
  /* step out of the way of the cart drawer instead of sitting on its buttons */
  body.sp-cart-open .sp-toasts { right: calc(min(430px, 100vw) + 20px); }
}
.sp-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem 0.7rem 1rem;
  border-radius: var(--sp-r-pill);
  background: var(--sp-ink);
  color: var(--sp-cream);
  font-size: var(--sp-t-sm);
  font-weight: 500;
  box-shadow: var(--sp-shadow-3);
  animation: sp-toast-in 380ms var(--sp-spring) both;
}
.sp-toast.is-out { animation: sp-toast-out 260ms var(--sp-ease) both; }
@keyframes sp-toast-in  { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes sp-toast-out { to   { opacity: 0; transform: translateY(8px) scale(.97); } }
.sp-toast__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sp-coral); flex: 0 0 auto; }
.sp-toast--ok .sp-toast__dot { background: #7BD2A8; }
.sp-toast__msg { flex: 1 1 auto; }
.sp-toast__act {
  flex: 0 0 auto;
  padding: 0.35rem 0.8rem;
  border-radius: 99px;
  background: rgba(253, 244, 234, 0.14);
  color: var(--sp-cream);
  font-size: var(--sp-t-xs);
  font-weight: 600;
  white-space: nowrap;
  transition: background-color var(--sp-dur-fast) var(--sp-ease);
}
.sp-toast__act:hover { background: rgba(253, 244, 234, 0.26); }

/* =============================================================
   Footer
   ============================================================= */
.sp-foot { background: var(--sp-ink); color: var(--sp-cream); padding-top: var(--sp-8); }
.sp-foot a { color: rgba(253, 244, 234, 0.74); }
.sp-foot__top {
  display: grid;
  gap: var(--sp-7);
  padding-bottom: var(--sp-7);
}
@media (min-width: 900px) { .sp-foot__top { grid-template-columns: 1.15fr 2fr; gap: var(--sp-8); } }

.sp-foot__brand { max-width: 340px; }
.sp-foot__brand img { height: 52px; width: auto; }
.sp-foot__line { margin-top: var(--sp-4); font-size: var(--sp-t-sm); line-height: 1.6; color: rgba(253, 244, 234, 0.7); }

.sp-foot__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6) var(--sp-4);
}
@media (min-width: 620px) { .sp-foot__cols { grid-template-columns: repeat(4, 1fr); } }
.sp-foot__h {
  font-size: var(--sp-t-xs);
  font-weight: 600;
  letter-spacing: var(--sp-track-wide);
  text-transform: uppercase;
  color: var(--sp-coral);
  margin-bottom: var(--sp-3);
}
.sp-foot__col li + li { margin-top: 0.55rem; }
.sp-foot__col a {
  font-size: var(--sp-t-sm);
  transition: color var(--sp-dur-fast) var(--sp-ease), padding-left var(--sp-dur) var(--sp-ease-out);
  display: inline-block;
}
.sp-foot__col a:hover { color: var(--sp-cream); padding-left: 4px; }

.sp-foot__mid {
  display: grid;
  gap: var(--sp-5);
  padding-block: var(--sp-6);
  border-top: 1px solid rgba(253, 244, 234, 0.14);
  border-bottom: 1px solid rgba(253, 244, 234, 0.14);
  align-items: center;
}
@media (min-width: 860px) { .sp-foot__mid { grid-template-columns: 1.2fr 1fr; gap: var(--sp-8); } }

/* newsletter */
.nl__h { font-family: var(--sp-font-display); font-size: var(--sp-t-xl); font-weight: 700; }
.nl__p { font-size: var(--sp-t-sm); color: rgba(253, 244, 234, 0.7); margin-top: 0.35rem; }
.nl__form { display: flex; gap: 0.5rem; margin-top: var(--sp-4); flex-wrap: wrap; }
.nl__input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.8rem 1.1rem;
  min-height: 50px;
  border: 1.5px solid rgba(253, 244, 234, 0.24);
  border-radius: var(--sp-r-pill);
  background: rgba(253, 244, 234, 0.06);
  color: var(--sp-cream);
  font-size: var(--sp-t-sm);
  transition: border-color var(--sp-dur-fast) var(--sp-ease), background-color var(--sp-dur-fast) var(--sp-ease);
}
.nl__input::placeholder { color: rgba(253, 244, 234, 0.44); }
.nl__input:hover { border-color: rgba(253, 244, 234, 0.4); }
.nl__input:focus-visible {
  outline: none;
  border-color: var(--sp-coral);
  background: rgba(253, 244, 234, 0.1);
  box-shadow: 0 0 0 3px rgba(239, 138, 147, 0.28);
}
.nl__btn {
  flex: 0 0 auto;
  padding: 0.8rem 1.5rem;
  min-height: 50px;
  border-radius: var(--sp-r-pill);
  background: var(--sp-coral);
  color: var(--sp-ink);
  font-size: var(--sp-t-sm);
  font-weight: 600;
  transition: background-color var(--sp-dur-fast) var(--sp-ease), transform var(--sp-dur) var(--sp-spring);
}
.nl__btn:hover { background: var(--sp-coral-soft); transform: translateY(-2px); }
.nl__err { font-size: var(--sp-t-xs); color: var(--sp-coral-soft); margin-top: 0.5rem; min-height: 1em; }
.nl__done {
  margin-top: var(--sp-4);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.2rem;
  border-radius: var(--sp-r-md);
  background: rgba(123, 210, 168, 0.14);
  border: 1px solid rgba(123, 210, 168, 0.4);
  font-size: var(--sp-t-sm);
  animation: sp-line-in 420ms var(--sp-ease-out) both;
}
.nl__tick {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #7BD2A8;
  display: grid;
  place-items: center;
  color: var(--sp-ink);
  font-weight: 700;
  font-size: 0.85rem;
}

/* trust row — CSS shapes, no images */
.trust { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.pay {
  width: 50px; height: 32px;
  border-radius: 6px;
  background: rgba(253, 244, 234, 0.09);
  border: 1px solid rgba(253, 244, 234, 0.18);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.pay i {
  font-style: normal;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(253, 244, 234, 0.8);
}
.pay--visa i { color: #C6CFF5; font-style: italic; }
.pay--mc::before, .pay--mc::after {
  content: "";
  position: absolute;
  width: 17px; height: 17px;
  border-radius: 50%;
}
.pay--mc::before { background: #E9776C; left: 11px; }
.pay--mc::after  { background: #EFB25C; right: 11px; mix-blend-mode: screen; }
.pay--amex { background: rgba(120, 170, 220, 0.2); }
.pay--pp i { color: #A9C4EA; }
.pay--ap i { font-size: 0.7rem; }

.sp-foot__bot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  align-items: center;
  justify-content: space-between;
  padding-block: var(--sp-5);
  font-size: var(--sp-t-xs);
  color: rgba(253, 244, 234, 0.56);
}
.sp-foot__bot nav { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.sp-foot__demo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: 99px;
  background: rgba(239, 138, 147, 0.14);
  border: 1px dashed rgba(239, 138, 147, 0.45);
  color: var(--sp-coral-soft);
}

/* =============================================================
   Nail chip (used on shade walls / grids)
   ============================================================= */
.nailchip {
  position: relative;
  display: block;
  padding: 0.55rem 0.35rem 0.6rem;
  border-radius: var(--sp-r-md);
  text-align: center;
  transition: transform var(--sp-dur) var(--sp-spring), background-color var(--sp-dur) var(--sp-ease);
}
.nailchip:hover, .nailchip:focus-visible { transform: translateY(-6px); background: var(--sp-paper); }
.nailchip__art { width: 100%; max-width: 74px; margin: 0 auto; filter: drop-shadow(0 5px 8px rgba(26,20,24,.14)); }
.nailchip__meta {
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity var(--sp-dur) var(--sp-ease), transform var(--sp-dur) var(--sp-ease-out);
}
.nailchip:hover .nailchip__meta,
.nailchip:focus-visible .nailchip__meta { opacity: 1; transform: none; }
@media (hover: none) { .nailchip__meta { opacity: 1; transform: none; } }
.nailchip__no { font-size: 0.65rem; letter-spacing: 0.1em; color: var(--sp-muted); }
.nailchip__name { font-size: var(--sp-t-sm); font-weight: 600; line-height: 1.2; }
