:root {
  --fg: #0D0D0D;
  --muted: #3A3A3A;
  --subtle: #7A7A7A;
  --bg: #FFFFFF;
  --surface: #F6F6F6;
  --border: #E5E5E5;
  --accent: #F26B1F;
  --destructive: #B3261E;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--muted); }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.2px;
  color: var(--fg);
}
.brand:hover { color: var(--fg); }
.brand img {
  height: 26px;
  width: 26px;
  object-fit: contain;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a {
  font-weight: 500;
  font-size: 14px;
  color: var(--muted);
}
.nav a:hover,
.nav a.is-active { color: var(--fg); }
.nav .bag-link {
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  margin-top: 24px;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--subtle);
  font-size: 13px;
}
.site-footer a { color: var(--subtle); }
.site-footer a:hover { color: var(--fg); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 14px;
  display: inline-block;
}

.hero { padding: 64px 0 28px; }
.hero h1 {
  font-size: clamp(36px, 6vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.05;
  margin-bottom: 14px;
}
.hero .lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  cursor: pointer;
  letter-spacing: 0.1px;
}
.btn:hover {
  background: var(--muted);
  border-color: var(--muted);
  color: var(--bg);
}
.btn:active { transform: scale(0.98); }
.btn:disabled {
  background: #cfcfcf;
  border-color: #cfcfcf;
  cursor: not-allowed;
  transform: none;
}
.btn.ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn.ghost:hover {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--muted);
}
.btn.accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn.accent:hover {
  background: #d85d18;
  border-color: #d85d18;
}

.status {
  padding: 32px 0 64px;
  color: var(--muted);
  font-size: 15px;
}
.status.error { color: var(--destructive); }

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 12px 0 64px;
}
@media (min-width: 720px) {
  .skeleton-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.skel {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
}
.skel-img {
  aspect-ratio: 1;
  background: linear-gradient(90deg, var(--surface) 25%, #eee 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease infinite;
}
.skel-body { padding: 16px; display: grid; gap: 10px; }
.skel-line {
  height: 12px;
  border-radius: 6px;
  background: var(--surface);
}
.skel-line.w60 { width: 60%; }
.skel-line.w40 { width: 40%; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 8px 0 72px;
  animation: fade-up 0.45s ease both;
}
@media (min-width: 720px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

.shop-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.shop-card:hover {
  transform: translateY(-2px);
  border-color: var(--muted);
  box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.18);
  color: inherit;
}
.shop-card img,
.shop-card .ph {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--surface);
}
.shop-card .meta {
  padding: 14px 14px 16px;
  display: grid;
  gap: 4px;
}
.shop-card h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.3;
}
.shop-card .price {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.shop-card .seller {
  font-size: 12px;
  color: var(--subtle);
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--subtle);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.crumb {
  padding: 20px 0 8px;
  font-size: 13px;
  color: var(--subtle);
}
.crumb a:hover { color: var(--fg); }

.note { font-size: 13px; color: var(--subtle); line-height: 1.5; }
.note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 640px) {
  .nav a:not(.bag-link):not(.nav-home) { display: none; }
}
