:root {
  --cream: #f2efe8;
  --paper: #faf8f4;
  --ink: #1b241e;
  --muted: #5a635c;
  --line: #ddd8cd;
  --forest: #234536;
  --forest-deep: #1a3429;
  --moss: #3a5c48;
  --accent-soft: #e4ece7;
  --on-forest: #f4f7f4;
  --shadow: 0 20px 50px rgba(27, 36, 30, 0.08);
  --radius: 24px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: Outfit, system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 8% -12%, rgba(35, 69, 54, 0.08), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(35, 69, 54, 0.05), transparent 50%),
    var(--cream);
}

h1,
h2,
h3,
.brand strong {
  font-family: Fraunces, Georgia, serif;
  letter-spacing: -0.03em;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.glow {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  filter: blur(40px);
  opacity: 0.28;
}

.glow-a {
  top: 80px;
  left: -80px;
  width: 260px;
  height: 260px;
  background: #3a5c48;
  border-radius: 50%;
}

.glow-b {
  right: -60px;
  bottom: 10%;
  width: 280px;
  height: 280px;
  background: #234536;
  border-radius: 50%;
}

#app,
.foot {
  position: relative;
  z-index: 1;
}

.top {
  position: relative;
  z-index: 40;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 22px 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--forest);
  color: var(--on-forest);
  font-family: Fraunces, serif;
  font-weight: 700;
  font-size: 1.3rem;
}

.brand strong {
  display: block;
  font-size: 1.15rem;
}

.brand small {
  color: var(--muted);
}

.nav {
  display: flex;
  margin-left: auto;
  gap: 2px;
  flex-wrap: nowrap;
  align-items: center;
}

.nav a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  text-decoration: none;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

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

.nav a.active {
  background: var(--accent-soft);
  color: var(--forest-deep);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

#app {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 22px 80px;
}

.hero {
  padding: 18px 0 28px;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 16px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--forest);
}

h1 {
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  line-height: 0.95;
  margin: 0 0 16px;
  max-width: 14ch;
}

.lede {
  max-width: 46ch;
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0;
}

.choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.choice {
  min-height: 280px;
  padding: 26px;
  border-radius: 32px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.choice:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(27, 36, 30, 0.14);
}

.choice h2 {
  font-size: 2rem;
  margin: 10px 0 8px;
}

.choice p {
  margin: 0;
  color: inherit;
  opacity: 0.86;
}

.choice-sell {
  background: linear-gradient(165deg, #3d5c4a, var(--forest-deep));
  color: var(--on-forest);
}

.choice-buy {
  background: linear-gradient(165deg, #2f4a3c, #173028);
  color: var(--on-forest);
}

.choice-stores {
  background: linear-gradient(165deg, #4a5c4e, #24332a);
  color: var(--on-forest);
}

.kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stats {
  display: flex;
  gap: 18px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-head {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.page-head h1 {
  font-size: clamp(1.85rem, 5vw, 3.2rem);
  max-width: none;
  overflow-wrap: break-word;
}

.page-head p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.notice {
  background: var(--accent-soft);
  border: 1px solid #c5d4cb;
  color: var(--forest-deep);
  padding: 16px 18px;
  border-radius: 18px;
  margin: 8px 0 22px;
}

.form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--ink);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}

.media-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.slot,
.video-slot {
  position: relative;
  min-height: 120px;
  border: 1.5px dashed #d8cbbb;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 10px;
  cursor: pointer;
}

.slot img,
.video-slot video {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.slot.has-file,
.video-slot.has-file {
  padding: 0;
  border-style: solid;
}

.remove {
  position: absolute;
  top: 6px;
  right: 6px;
  border: 0;
  background: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
}

.check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  cursor: pointer;
  background: var(--forest-deep);
  color: var(--on-forest);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn.wa {
  background: #128c7e;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn.ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.toolbar input,
.toolbar select {
  flex: 1;
  min-width: 180px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--paper);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card a.cover {
  display: block;
  aspect-ratio: 4 / 3;
  background: #efe6db;
  text-decoration: none;
}

.card img,
.detail-gallery img,
.store-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 16px;
  display: grid;
  gap: 8px;
}

.price {
  font-weight: 700;
  font-size: 1.15rem;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.badge {
  display: inline-flex;
  background: var(--accent-soft);
  color: var(--forest-deep);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.empty {
  background: var(--paper);
  border-radius: 28px;
  padding: 40px 24px;
  text-align: center;
  border: 1px dashed var(--line);
}

.detail {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.detail-gallery {
  display: grid;
  gap: 10px;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.thumbs button {
  border: 0;
  padding: 0;
  background: #efe6db;
  border-radius: 12px;
  overflow: hidden;
  height: 72px;
  cursor: pointer;
}

.detail-panel {
  background: var(--paper);
  border-radius: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  align-content: start;
}

.store-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  background: var(--paper);
  border-radius: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.store-photo {
  width: 120px;
  height: 120px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--moss), var(--forest-deep));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: Fraunces, serif;
  font-size: 2rem;
}

.store-list {
  display: grid;
  gap: 14px;
}

.success {
  background: var(--paper);
  border-radius: 28px;
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.error {
  color: #9f1239;
  background: #fff1f2;
  padding: 12px 14px;
  border-radius: 12px;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px 40px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .choices,
  .cards,
  .detail,
  .grid-2,
  .store-card {
    grid-template-columns: 1fr;
  }

  .media-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    z-index: 50;
    top: calc(100% + 8px);
    right: 22px;
    left: 22px;
    margin-left: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 10px;
    flex-direction: column;
    flex-wrap: nowrap;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
  }
}
