:root {
  --ys-ink: #081a33;
  --ys-blue: #0d2e57;
  --ys-gold: #f4b740;
  --ys-cream: #fff9ed;
  --ys-mint: #dff7eb;
}

html {
  scroll-behavior: smooth;
}

body.ys-page-enter {
  animation: ys-page-enter 260ms ease-out both;
}

@keyframes ys-page-enter {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.ys-local-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.4rem 0.65rem;
  color: #76530a;
  background: #fff1c8;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ys-category-art {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  color: var(--ys-blue);
  background:
    radial-gradient(circle at 72% 22%, rgba(244, 183, 64, 0.48), transparent 23%),
    linear-gradient(145deg, #fffaf0, #e8f1fb);
}

.ys-category-art svg {
  width: min(68%, 240px);
  height: min(68%, 240px);
  filter: drop-shadow(0 18px 24px rgba(8, 26, 51, 0.12));
}

.ys-category-art-label {
  position: absolute;
  right: 0.85rem;
  bottom: 0.75rem;
  color: rgba(8, 26, 51, 0.55);
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ys-empty-state {
  display: grid;
  min-height: 260px;
  place-items: center;
  border: 1px dashed #cbd8e6;
  border-radius: 20px;
  padding: 2rem;
  color: #60738a;
  background:
    radial-gradient(circle at 50% 0%, rgba(244, 183, 64, 0.13), transparent 34%),
    #fbfcfe;
  text-align: center;
}

.ys-empty-state-art {
  position: relative;
  display: grid;
  width: 5.5rem;
  height: 5.5rem;
  margin-inline: auto;
  place-items: center;
  border-radius: 24px;
  color: var(--ys-blue);
  background: #fff1c8;
  font-size: 2rem;
  transform: rotate(-3deg);
}

.ys-empty-state-art::after {
  position: absolute;
  right: -0.45rem;
  bottom: -0.45rem;
  width: 1.8rem;
  height: 1.8rem;
  border: 4px solid #fbfcfe;
  border-radius: 999px;
  content: "";
  background: var(--ys-gold);
}

.ys-empty-state h3 {
  margin-top: 1rem;
  color: var(--ys-ink);
  font-size: 1.15rem;
  font-weight: 950;
  letter-spacing: -0.025em;
}

.ys-empty-state p {
  max-width: 30rem;
  margin: 0.45rem auto 0;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.55;
}

.ys-empty-state a,
.ys-empty-state button {
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
  border-radius: 11px;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--ys-ink);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ys-empty-state--compact {
  min-height: 180px;
  padding: 1.25rem;
}

.ys-empty-state--compact .ys-empty-state-art {
  width: 4.25rem;
  height: 4.25rem;
  font-size: 1.5rem;
}

.ys-order-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0.85rem;
  padding: 0.9rem 0.6rem 0.65rem;
  border: 1px solid #dbe4ee;
  border-radius: 15px;
  background: #f8fafc;
}

.ys-order-step {
  position: relative;
  min-width: 0;
  color: #8796a8;
  text-align: center;
}

.ys-order-step:not(:last-child)::after {
  position: absolute;
  z-index: 0;
  top: 0.38rem;
  left: calc(50% + 0.45rem);
  width: calc(100% - 0.9rem);
  height: 3px;
  border-radius: 999px;
  content: "";
  background: #dbe4ee;
}

.ys-order-step[data-state="complete"]:not(:last-child)::after {
  background: #20a572;
}

.ys-order-dot {
  position: relative;
  z-index: 1;
  display: grid;
  width: 0.88rem;
  height: 0.88rem;
  margin-inline: auto;
  place-items: center;
  border: 3px solid #f8fafc;
  border-radius: 999px;
  background: #c6d0dc;
  box-shadow: 0 0 0 1px #c6d0dc;
}

.ys-order-step[data-state="complete"] .ys-order-dot {
  background: #20a572;
  box-shadow: 0 0 0 1px #20a572;
}

.ys-order-step[data-state="active"] .ys-order-dot {
  background: var(--ys-gold);
  box-shadow: 0 0 0 3px rgba(244, 183, 64, 0.24);
}

.ys-order-label {
  display: block;
  overflow: hidden;
  margin-top: 0.55rem;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.ys-order-step[data-state="complete"] .ys-order-label {
  color: #087350;
}

.ys-order-step[data-state="active"] .ys-order-label {
  color: var(--ys-ink);
}

.ys-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 1rem;
}

.ys-skeleton-card {
  overflow: hidden;
  border: 1px solid #e1e7ef;
  border-radius: 20px;
  background: #fff;
}

.ys-skeleton-block {
  position: relative;
  overflow: hidden;
  border-radius: 9px;
  background: #edf1f5;
}

.ys-skeleton-block::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  transform: translateX(-100%);
  animation: ys-shimmer 1.25s infinite;
}

@keyframes ys-shimmer {
  to { transform: translateX(100%); }
}

img.ys-image-loading {
  opacity: 0;
}

img.ys-image-ready {
  opacity: 1;
  transition: opacity 220ms ease;
}

.ys-mobile-nav {
  display: none;
}

@media (max-width: 760px) {
  body:not(.embed-mode) {
    padding-bottom: calc(5.3rem + env(safe-area-inset-bottom));
  }

  .ys-mobile-nav {
    position: fixed;
    z-index: 70;
    right: 0.65rem;
    bottom: calc(0.55rem + env(safe-area-inset-bottom));
    left: 0.65rem;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.15rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    padding: 0.45rem;
    background: rgba(8, 26, 51, 0.96);
    box-shadow: 0 18px 46px rgba(2, 12, 27, 0.32);
    backdrop-filter: blur(18px);
  }

  .ys-mobile-nav a {
    display: flex;
    min-width: 0;
    min-height: 3.5rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    border-radius: 14px;
    color: #c2cee0;
    font-size: 0.55rem;
    font-weight: 850;
    text-decoration: none;
  }

  .ys-mobile-nav a i {
    font-size: 1rem;
  }

  .ys-mobile-nav a[aria-current="page"] {
    color: var(--ys-ink);
    background: var(--ys-gold);
  }

  .ys-mobile-nav a.ys-mobile-sell {
    color: var(--ys-ink);
    background: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.ys-page-enter { animation: none; }
  .ys-skeleton-block::after { animation: none; }
}
