/* =============================================================
   Sunday Polish — page styles
   Home (.hm-*), shades (.sh-*), cart (.ct-*), checkout (.co-*),
   404 (.nf-*). Owned by Agent 1.
   ============================================================= */

/* =============================================================
   HOME — hero
   ============================================================= */
.hm-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2rem, 4.5vw, 4rem) clamp(3rem, 7vw, 6rem);
  background:
    radial-gradient(120% 80% at 80% 0%, #FBEFF3 0%, transparent 55%),
    radial-gradient(90% 70% at 0% 30%, #F1ECFA 0%, transparent 60%),
    var(--sp-cream);
}

/* Slow-drifting colour field. The blobs used to sit dead still, which is
   most of why the landing read as flat. */
.hm-hero__blob-1 {
  width: min(46vw, 620px); height: min(46vw, 620px);
  background: var(--sp-coral-soft); top: -18%; right: -6%;
  animation: sp-drift-a 19s ease-in-out infinite;
}
.hm-hero__blob-2 {
  width: min(38vw, 520px); height: min(38vw, 520px);
  background: var(--sp-lilac-soft); bottom: -24%; left: -8%;
  animation: sp-drift-b 23s ease-in-out infinite;
}
.hm-hero__blob-3 {
  width: min(24vw, 300px); height: min(24vw, 300px);
  background: #FDE3C6; top: 34%; right: 40%; opacity: .45;
  animation: sp-drift-c 17s ease-in-out infinite;
}
@keyframes sp-drift-a {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50%     { transform: translate3d(-4%, 5%, 0) scale(1.09); }
}
@keyframes sp-drift-b {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50%     { transform: translate3d(6%, -6%, 0) scale(1.12); }
}
@keyframes sp-drift-c {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50%     { transform: translate3d(-8%, 7%, 0) scale(.9); }
}
@media (prefers-reduced-motion: reduce) {
  .hm-hero__blob-1, .hm-hero__blob-2, .hm-hero__blob-3 { animation: none; }
}

.hm-hero__in {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  max-width: var(--sp-max-wide);
}
@media (min-width: 900px)  { .hm-hero__in { grid-template-columns: 1.06fr 1fr; } }
/* On big screens the art bleeds to the right edge so the layout fills the
   screen instead of stopping short in the middle. .hm-hero clips it.
   Text keeps the larger column — the headline has to land in three lines. */
@media (min-width: 1280px) {
  .hm-hero__in { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); padding-right: 0; }
  .hm-art { margin-right: clamp(-5rem, -3vw, -1rem); }
}

.hm-hero__title {
  margin-top: var(--sp-3);
  /* Capped below --sp-t-4xl: the hero sits in a column, not full width,
     and the line above ran to five lines at the token's max. */
  font-size: clamp(2.6rem, 1.1rem + 3.6vw, 5.15rem);
  letter-spacing: -0.015em;
}
.hm-hero__title em { font-style: normal; color: var(--sp-coral-deep); position: relative; white-space: nowrap; }
.hm-hero__title em::after {
  content: "";
  position: absolute;
  left: 2%; right: 2%;
  bottom: 0.02em;
  height: 0.13em;
  border-radius: 99px;
  background: var(--sp-lilac-soft);
  z-index: -1;
}
.hm-hero__sub { margin-top: var(--sp-4); max-width: 46ch; }
.hm-hero__cta { margin-top: var(--sp-6); }
.hm-hero__facts { margin-top: var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }
.hm-hero__fact { display: flex; align-items: center; gap: 0.45rem; font-size: var(--sp-t-sm); color: var(--sp-ink-2); }
.hm-hero__fact b { color: var(--sp-ink); font-weight: 600; }
.hm-hero__tick { width: 18px; height: 18px; border-radius: 50%; background: var(--sp-lilac-soft); display: grid; place-items: center; font-size: 10px; color: var(--sp-lilac-deep); flex: 0 0 auto; }

.hm-art { position: relative; display: grid; place-items: center; min-height: 340px; }
.hm-art__disc {
  position: absolute;
  width: min(96%, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(155deg, #FFFDFA, #F7E9DA);
  box-shadow: inset 0 -30px 60px rgba(239,138,147,.14), var(--sp-shadow-2);
  animation: sp-spin 44s linear infinite;
}
@keyframes sp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hm-art__disc { animation: none; } }

.hm-art__shot {
  position: relative;
  width: min(100%, 620px);
  z-index: 1;
}

/* Shade swatches orbiting the photo — the hero's main source of life.
   Positions come from --x/--y set inline; each drifts on its own clock. */
.hm-art__orbit {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.hm-orb {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--w, 42px);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 8px 16px rgba(26,20,24,.16));
  animation: sp-orb 9s ease-in-out infinite both;
  animation-delay: calc(var(--i, 0) * -1.35s);
  opacity: 0;
}
.is-in .hm-orb, [data-reveal].is-in .hm-orb { opacity: 1; }
.hm-orb svg { display: block; width: 100%; height: auto; }
@keyframes sp-orb {
  0%, 100% { transform: translate(-50%, -50%) translateY(0) rotate(var(--r, 0deg)); }
  50%      { transform: translate(-50%, -50%) translateY(-14px) rotate(calc(var(--r, 0deg) + 6deg)); }
}
@media (prefers-reduced-motion: reduce) {
  .hm-orb { animation: none; opacity: 1; }
}
@media (max-width: 640px) {
  /* keep only three on a phone, or it crowds the photo */
  .hm-orb:nth-child(n+4) { display: none; }
}
.hm-art__media {
  box-shadow: var(--sp-shadow-3);
  animation: sp-float 7s ease-in-out infinite;
}
@keyframes sp-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* the shade story: a small card of real nail swatches over the photo */
.hm-art__card {
  position: absolute;
  left: 0;
  bottom: 4%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem 0.8rem;
  background: rgba(255, 253, 250, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--sp-line-soft);
  border-radius: var(--sp-r-md);
  box-shadow: var(--sp-shadow-2);
}
@media (min-width: 900px) { .hm-art__card { left: -6%; } }
.hm-art__cardlabel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--sp-t-xs);
  color: var(--sp-ink-2);
}
.hm-art__cardlabel b { color: var(--sp-ink); font-weight: 600; }
.hm-art__cardlabel .shadechip__sw { width: 18px; height: 18px; transition: background-color 700ms var(--sp-ease); }
.hm-art__nails { display: flex; align-items: flex-end; gap: 4px; }
.hm-art__nail {
  width: 30px;
  flex: 0 0 auto;
  animation: sp-nail-in 460ms var(--sp-spring) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
.hm-art__nail:nth-child(odd) { transform: translateY(-3px); }
@keyframes sp-nail-in { from { opacity: 0; transform: translateY(8px) scale(.9); } }
@media (prefers-reduced-motion: reduce) { .hm-art__nail { animation: none; } }

/* how-it-works lead photograph */
.hm-shot { max-width: 940px; margin-inline: auto; }
.hm-shot .media { box-shadow: var(--sp-shadow-2); }

/* spec panels */
.hm-panels {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  align-items: center;
}
.hm-panels .media { box-shadow: var(--sp-shadow-1); }

/* =============================================================
   HOME — marquee
   ============================================================= */
.mq {
  overflow: hidden;
  padding-block: var(--sp-4);
  background: var(--sp-ink);
  color: var(--sp-cream);
  border-block: 2px solid var(--sp-ink);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.mq__track {
  display: flex;
  width: max-content;
  animation: sp-marquee 62s linear infinite;
}
.mq:hover .mq__track { animation-play-state: paused; }
@keyframes sp-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .mq__track { animation: none; }
  .mq { overflow-x: auto; }
}
.mq__set { display: flex; align-items: center; flex: 0 0 auto; }
.mq__item {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding-inline: 1.1rem;
  font-family: var(--sp-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--sp-cream);
  transition: color var(--sp-dur-fast) var(--sp-ease);
}
.mq__item:hover { color: var(--sp-coral); }
.mq__chip {
  width: 15px; height: 22px;
  border-radius: 50% 50% 42% 42% / 60% 60% 40% 40%;
  box-shadow: inset 0 -3px 5px rgba(0,0,0,.28), inset 0 3px 4px rgba(255,255,255,.4);
  flex: 0 0 auto;
}
.mq__dot { color: var(--sp-lilac); opacity: .6; }

/* =============================================================
   HOME — why a pen
   ============================================================= */
.why__card {
  padding: var(--sp-5);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.why__ico {
  width: 66px; height: 66px;
  border-radius: 20px;
  background: var(--sp-cream);
  border: 1.5px solid var(--sp-line);
  display: grid;
  place-items: center;
  transition: transform var(--sp-dur) var(--sp-spring), background-color var(--sp-dur) var(--sp-ease);
}
.why__card:hover .why__ico { transform: rotate(-6deg) scale(1.06); background: var(--sp-coral-soft); }
.why__ico svg { width: 38px; height: 38px; }
.why__h { font-family: var(--sp-font-display); font-size: var(--sp-t-lg); font-weight: 700; }
.why__p { font-size: var(--sp-t-sm); color: var(--sp-ink-2); }

/* =============================================================
   HOME — shade wall
   ============================================================= */
.wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: var(--sp-2);
}
@media (min-width: 700px) { .wall { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: var(--sp-3); } }

/* =============================================================
   HOME — sets strip
   ============================================================= */
/* five set cards: a snap row on mobile, an even grid from tablet up */
@media (min-width: 760px) {
  .setstrip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
}
@media (min-width: 1120px) { .setstrip { grid-template-columns: repeat(5, 1fr); } }

.setcard {
  width: min(84vw, 300px);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  background: linear-gradient(170deg, var(--sp-paper), var(--sp-cream));
}
@media (min-width: 760px) { .setcard { width: auto; } }
.setcard__art { margin-bottom: var(--sp-1); }
.setcard__nails {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  margin-top: calc(var(--sp-4) * -1);
  margin-left: 2px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 6px rgba(26, 20, 24, .18));
}
.setcard__nail { width: 26px; flex: 0 0 auto; }
.setcard__nail:nth-child(odd) { transform: translateY(-3px); }
.setcard__name { font-family: var(--sp-font-display); font-size: var(--sp-t-lg); font-weight: 700; margin-top: var(--sp-2); }
.setcard__tag { font-size: var(--sp-t-sm); color: var(--sp-ink-2); min-height: 2.6em; }
.setcard__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-top: auto; padding-top: var(--sp-2); }
.setcard__price { font-weight: 700; }
.setcard__dots { display: flex; gap: 4px; }
.setcard__dots span { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 -2px 3px rgba(0,0,0,.2); }

/* =============================================================
   HOME — how it works
   ============================================================= */
.steps { counter-reset: step; }
.step {
  position: relative;
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  height: 100%;
}
.step__n {
  position: absolute;
  top: -22px; left: var(--sp-5);
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sp-coral);
  border: 2px solid var(--sp-ink);
  box-shadow: 0 3px 0 var(--sp-ink);
  font-family: var(--sp-font-display);
  font-size: 1.25rem;
  font-weight: 800;
}
.step__art {
  height: 128px;
  margin-bottom: var(--sp-4);
  display: grid;
  place-items: center;
  border-radius: var(--sp-r-md);
  background: var(--sp-cream);
  overflow: hidden;
}
.step__art svg { width: 150px; height: auto; }
.step__h { font-family: var(--sp-font-display); font-size: var(--sp-t-lg); font-weight: 700; }
.step__p { font-size: var(--sp-t-sm); color: var(--sp-ink-2); margin-top: var(--sp-2); }

.anim-swipe { animation: sp-swipe 3.4s var(--sp-ease-out) infinite; }
@keyframes sp-swipe {
  0%, 12%   { transform: translate(0, 0); }
  46%, 62%  { transform: translate(0, -46px); }
  92%, 100% { transform: translate(0, 0); }
}
.anim-dry { animation: sp-dry 3s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes sp-dry {
  0%, 100% { opacity: .25; transform: translateY(0) scale(.9); }
  50%      { opacity: .9; transform: translateY(-10px) scale(1.05); }
}
.anim-pop { animation: sp-poppy 2.6s var(--sp-spring) infinite; transform-origin: 50% 60%; }
@keyframes sp-poppy {
  0%, 70%, 100% { transform: scale(1) rotate(0); }
  80%           { transform: scale(1.08) rotate(-4deg); }
}

/* =============================================================
   HOME — reviews
   ============================================================= */
.rev-sum {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--sp-r-lg);
  background: var(--sp-paper);
  border: 1px solid var(--sp-line-soft);
}
.rev-sum__big { font-family: var(--sp-font-display); font-size: 2.4rem; font-weight: 800; line-height: 1; }
.rev-sum__meta { font-size: var(--sp-t-sm); color: var(--sp-ink-2); }

/* the review row stays a scroll-snapping flex row at every width, so the
   cards need a real width — `auto` would let one card eat the whole row */
.revcard {
  width: min(82vw, 340px);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.revcard__t { font-family: var(--sp-font-display); font-size: var(--sp-t-lg); font-weight: 700; }
.revcard__b { font-size: var(--sp-t-sm); color: var(--sp-ink-2); flex: 1 1 auto; }
.revcard__who { display: flex; align-items: center; gap: 0.65rem; margin-top: auto; padding-top: var(--sp-2); }
.revcard__av {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sp-lilac-soft);
  color: var(--sp-lilac-deep);
  font-size: var(--sp-t-xs);
  font-weight: 700;
  flex: 0 0 auto;
}
.revcard > .shadechip { align-self: flex-start; }
.revcard__nm { display: block; font-size: var(--sp-t-sm); font-weight: 600; line-height: 1.2; }
.revcard__loc { display: block; font-size: var(--sp-t-xs); color: var(--sp-muted); }

/* =============================================================
   HOME — builder teaser
   ============================================================= */
.teaser {
  display: grid;
  gap: var(--sp-6);
  padding: clamp(1.5rem, 4vw, var(--sp-7));
  border-radius: var(--sp-r-xl);
  background: linear-gradient(150deg, #FFFDFA, #F4ECFB);
  border: 1px solid var(--sp-line-soft);
  box-shadow: var(--sp-shadow-2);
}
@media (min-width: 880px) { .teaser { grid-template-columns: 1fr 1.05fr; align-items: center; gap: var(--sp-8); } }
.teaser__pick { align-self: center; }
.teaser__picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(34px, 1fr));
  gap: 6px;
  max-height: 190px;
  overflow-y: auto;
  padding: 4px;
}
.teaser__sw {
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset 0 -3px 5px rgba(0,0,0,.22), inset 0 2px 3px rgba(255,255,255,.4);
  transition: transform var(--sp-dur) var(--sp-spring), box-shadow var(--sp-dur) var(--sp-ease);
  position: relative;
}
.teaser__sw:hover { transform: scale(1.16); }
.teaser__sw.is-on { transform: scale(1.1); box-shadow: 0 0 0 2.5px var(--sp-ink), inset 0 -3px 5px rgba(0,0,0,.22); }
.teaser__sw.is-on::after {
  content: "\2713";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}

/* =============================================================
   HOME — sign off
   ============================================================= */
.signoff { text-align: center; }
.signoff__art {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

/* =============================================================
   SHADES PAGE
   ============================================================= */
.sh-bar {
  position: sticky;
  top: var(--sp-header-h);
  z-index: 20;
  padding-block: var(--sp-3);
  background: rgba(253, 244, 234, 0.92);
  border-bottom: 1px solid var(--sp-line-soft);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .sh-bar { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
.sh-bar__rows { display: grid; gap: var(--sp-3); min-width: 0; }
.sh-bar__scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  /* grid/flex children default to min-width:auto, which would refuse to
     shrink below the chip row and push the page sideways on mobile */
  min-width: 0;
}
.sh-bar__scroll::-webkit-scrollbar { display: none; }
.sh-bar__end {
  display: flex;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
  flex-wrap: wrap;
  min-width: 0;
}
.sh-bar__end > .sh-bar__scroll { flex: 1 1 160px; }
.sh-bar__count { font-size: var(--sp-t-sm); color: var(--sp-muted); margin-right: auto; }
.sh-sort { display: flex; align-items: center; gap: 0.5rem; font-size: var(--sp-t-sm); min-width: 0; }
.sh-sort select { max-width: 100%; }

@media (max-width: 620px) {
  .sh-bar__end > .sh-bar__scroll { flex: 1 1 100%; order: -1; }
  .sh-bar__count { font-size: var(--sp-t-xs); }
  /* hide the word "Sort" visually but keep it as the select's label */
  .sh-sort span {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
.sh-sort select {
  padding: 0.45rem 2.1rem 0.45rem 0.8rem;
  min-height: 36px;
  border: 1.5px solid var(--sp-line);
  border-radius: var(--sp-r-pill);
  background-color: var(--sp-paper);
  font-size: var(--sp-t-sm);
  -webkit-appearance: none;
  appearance: none;
  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% - 17px) 51%, calc(100% - 11px) 51%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.sh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 148px), 1fr));
  gap: var(--sp-3);
}
@media (min-width: 560px) { .sh-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: var(--sp-4); } }
@media (min-width: 760px) { .sh-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 208px), 1fr)); } }
@media (max-width: 559px) {
  .sh-card { padding: var(--sp-3); }
  .sh-card__art svg { width: 62px; }
  .sh-card__blurb { display: none; }
}

.sh-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--sp-4) var(--sp-4) var(--sp-3);
  transition: transform 420ms var(--sp-ease-out), opacity 320ms var(--sp-ease),
              box-shadow var(--sp-dur) var(--sp-ease), border-color var(--sp-dur) var(--sp-ease);
}
.sh-card:hover { box-shadow: var(--sp-shadow-2); border-color: var(--sp-line); }
.sh-card.is-going { opacity: 0; transform: scale(.94); }
.sh-card.is-coming { animation: sp-card-in 380ms var(--sp-ease-out) both; }
@keyframes sp-card-in { from { opacity: 0; transform: scale(.94) translateY(8px); } }

.sh-card__art {
  display: grid;
  place-items: center;
  padding-block: var(--sp-3) var(--sp-4);
  border-radius: var(--sp-r-md);
  background: radial-gradient(60% 60% at 50% 35%, var(--sp-cream), transparent 70%);
}
.sh-card__art svg { width: 78px; height: auto; filter: drop-shadow(0 8px 12px rgba(26,20,24,.16)); transition: transform var(--sp-dur) var(--sp-spring); }
.sh-card:hover .sh-card__art svg { transform: translateY(-4px) rotate(3deg); }
.sh-card__top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.sh-card__no { font-size: 0.68rem; letter-spacing: 0.12em; color: var(--sp-muted); }
.sh-card__name { font-family: var(--sp-font-display); font-size: var(--sp-t-lg); font-weight: 700; line-height: 1.15; margin-top: 0.15rem; }
.sh-card__name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.sh-card__blurb { font-size: var(--sp-t-xs); color: var(--sp-ink-2); margin-top: 0.35rem; min-height: 2.6em; }
.sh-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--sp-line-soft); }
.sh-card__price { font-size: var(--sp-t-sm); font-weight: 600; }
.sh-card__add { position: relative; z-index: 2; }

.sh-cta { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 860px) { .sh-cta { grid-template-columns: 1fr 1fr; gap: var(--sp-8); } }
.sh-cta__shot .media { box-shadow: var(--sp-shadow-2); }

.sh-empty { text-align: center; padding: var(--sp-8) var(--sp-4); }
.sh-empty__art { width: 120px; margin: 0 auto var(--sp-4); opacity: .7; }

/* =============================================================
   CART PAGE
   ============================================================= */
.ct-layout { display: grid; gap: var(--sp-6); align-items: start; }
@media (min-width: 940px) { .ct-layout { grid-template-columns: 1.55fr 1fr; gap: var(--sp-7); } }

.ct-line {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--sp-line);
}
@media (min-width: 680px) { .ct-line { grid-template-columns: 128px 1fr auto; align-items: start; } }
.ct-line:first-child { padding-top: 0; }
.ct-line__art {
  display: grid;
  place-items: center;
  padding: var(--sp-3);
  border-radius: var(--sp-r-md);
  background: var(--sp-paper);
  border: 1px solid var(--sp-line-soft);
  min-height: 96px;
}
.ct-line__art .fan > * { margin-left: -14%; }
.ct-line__art .fan > *:first-child { margin-left: 0; }
.ct-line__name { font-family: var(--sp-font-display); font-size: var(--sp-t-xl); font-weight: 700; line-height: 1.15; }
.ct-line__sub { font-size: var(--sp-t-sm); color: var(--sp-muted); margin-top: 0.2rem; }
.ct-line__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--sp-3); }
.ct-line__ctrl { display: flex; align-items: center; gap: var(--sp-4); margin-top: var(--sp-4); }
.ct-line__price { font-size: var(--sp-t-lg); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 680px) { .ct-line__price { text-align: right; } }
.ct-line__was { display: block; font-size: var(--sp-t-xs); font-weight: 400; }

.ct-sum { position: sticky; top: calc(var(--sp-header-h) + 16px); padding: var(--sp-5); display: grid; gap: var(--sp-3); }
.ct-sum__h { font-family: var(--sp-font-display); font-size: var(--sp-t-xl); font-weight: 700; }

.ct-upsell {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--sp-r-md);
  background: linear-gradient(120deg, #FDECEE, #F2ECFB);
  border: 1px solid var(--sp-coral-soft);
  font-size: var(--sp-t-sm);
}
.ct-upsell b { color: var(--sp-coral-deep); }
.ct-upsell__ico { flex: 0 0 auto; width: 40px; }

.ct-addons { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); gap: var(--sp-3); }
.ct-addon { padding: var(--sp-4); display: flex; flex-direction: column; gap: 0.4rem; text-align: center; }
.ct-addon__art { margin: 0 auto var(--sp-2); }
.ct-addon__n { font-size: var(--sp-t-sm); font-weight: 600; line-height: 1.25; }
.ct-addon__b { font-size: var(--sp-t-xs); color: var(--sp-muted); flex: 1 1 auto; }
.ct-addon .btn { margin-top: var(--sp-2); }

.ct-empty { text-align: center; padding: var(--sp-8) var(--sp-4); }
.ct-empty__art { width: 220px; margin: 0 auto var(--sp-5); }

/* =============================================================
   CHECKOUT PAGE
   ============================================================= */
.co-layout { display: grid; gap: var(--sp-6); align-items: start; }
@media (min-width: 940px) { .co-layout { grid-template-columns: 1.35fr 1fr; gap: var(--sp-8); } }

.co-form { display: grid; gap: var(--sp-7); }
.co-fs { display: grid; gap: var(--sp-4); }
.co-fs__head { display: flex; align-items: baseline; gap: var(--sp-3); }
.co-fs__num {
  width: 28px; height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--sp-lilac-soft);
  color: var(--sp-lilac-deep);
  display: grid;
  place-items: center;
  font-size: var(--sp-t-xs);
  font-weight: 700;
}
.co-row { display: grid; gap: var(--sp-4); }
@media (min-width: 560px) { .co-row--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 560px) { .co-row--3 { grid-template-columns: 1.4fr 1fr 1fr; } }

.co-demo {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  padding: var(--sp-4);
  border-radius: var(--sp-r-md);
  background: #FDECEE;
  border: 1px dashed var(--sp-coral);
  font-size: var(--sp-t-sm);
  color: var(--sp-ink-2);
}
.co-demo__ico {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--sp-coral);
  color: var(--sp-ink);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.co-demo b { color: var(--sp-ink); }

.co-pay {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--sp-r-md);
  background: var(--sp-cream-2);
  border: 1px solid var(--sp-line);
}
.co-pay__strip { display: flex; gap: 0.4rem; }
.co-pay__strip .pay { background: rgba(26,20,24,.05); border-color: var(--sp-line); }
.co-pay__strip .pay i { color: var(--sp-ink-2); }

.co-sum {
  position: sticky;
  top: calc(var(--sp-header-h) + 16px);
  padding: var(--sp-5);
  display: grid;
  gap: var(--sp-3);
}
.co-sum__lines { display: grid; gap: var(--sp-3); max-height: 320px; overflow-y: auto; }
.co-sum__line { display: grid; grid-template-columns: 46px 1fr auto; gap: var(--sp-3); align-items: center; font-size: var(--sp-t-sm); }
.co-sum__art { display: grid; place-items: center; border-radius: 10px; background: var(--sp-cream); border: 1px solid var(--sp-line-soft); padding: 3px; min-height: 46px; }
.co-sum__art .fan > * { margin-left: -14%; }
.co-sum__art .fan > *:first-child { margin-left: 0; }
.co-sum__n { display: block; font-weight: 600; line-height: 1.25; }
.co-sum__q { display: block; font-size: var(--sp-t-xs); color: var(--sp-muted); }

.co-done { text-align: center; max-width: 620px; margin-inline: auto; padding-block: var(--sp-6); }
.co-done__badge {
  width: 92px; height: 92px;
  margin: 0 auto var(--sp-5);
  border-radius: 50%;
  background: #DFF0E7;
  border: 2px solid var(--sp-ink);
  box-shadow: 0 5px 0 var(--sp-ink);
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  animation: sp-pop-in 620ms var(--sp-spring) both;
}
@keyframes sp-pop-in { from { transform: scale(.5) rotate(-12deg); opacity: 0; } }
.co-done__no {
  display: inline-block;
  margin-top: var(--sp-4);
  padding: 0.5rem 1.1rem;
  border-radius: var(--sp-r-pill);
  background: var(--sp-cream-2);
  border: 1px solid var(--sp-line);
  font-family: var(--sp-font-mono);
  font-size: var(--sp-t-sm);
  letter-spacing: 0.06em;
}
.co-done__art { margin: var(--sp-6) auto 0; max-width: 380px; }

/* =============================================================
   404
   ============================================================= */
.nf {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--sp-8);
}
.nf__art { width: min(280px, 70vw); margin: 0 auto var(--sp-5); }
.nf__big {
  font-family: var(--sp-font-display);
  font-size: clamp(4rem, 18vw, 9rem);
  line-height: 0.9;
  color: var(--sp-coral);
  -webkit-text-stroke: 2px var(--sp-ink);
}
.nf__links { margin-top: var(--sp-6); }
.nf__wall { margin-top: var(--sp-8); }
