:root {
  --bg: #ece7df;
  --bg-2: #f5f1eb;
  --panel: rgba(255,255,255,0.72);
  --panel-strong: rgba(255,255,255,0.9);
  --text: #2d312f;
  --muted: #66706b;
  --line: rgba(61, 67, 64, 0.12);
  --accent: #6f756f;
  --accent-dark: #4f5651;
  --shadow: 0 18px 45px rgba(40, 44, 42, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1380px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.75), transparent 32%),
    radial-gradient(circle at top right, rgba(210, 209, 203, 0.45), transparent 25%),
    linear-gradient(180deg, #e8e2d8 0%, #efebe3 38%, #e6e1d8 100%);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, select, input {
  font: inherit;
}
.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(239, 235, 227, 0.82);
  border-bottom: 1px solid rgba(61, 67, 64, 0.08);
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 20px 14px;
}
.logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
  margin-bottom: 14px;
}
.logo-wrap {
  width: min(220px, 28vw);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-wrap img {
  max-height: 58px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.06));
}
.nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tab {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.66);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  transition: 0.18s ease;
}
.tab:hover,
.tab.active {
  background: var(--accent-dark);
  color: #fff;
  border-color: var(--accent-dark);
}
.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.select,
.search {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.8);
  padding: 0 16px;
  color: var(--text);
}
.search { min-width: 240px; }
.main {
  width: 100%;
  flex: 1;
}
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px 20px 44px;
}
.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--muted);
}
.breadcrumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid rgba(61, 67, 64, 0.08);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(40, 44, 42, 0.12);
}
.card-image {
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, #f3eee5 0%, #ece6dc 100%);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.style-number {
  text-align: center;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.card-stats {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}
.card-stats span:last-child { color: var(--text); }
.empty,
.notice-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.empty h2,
.notice-panel h2 {
  margin: 0 0 10px;
  font-size: 24px;
}
.empty p,
.notice-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.product-page {
  display: grid;
  grid-template-columns: minmax(320px, 540px) minmax(300px, 1fr);
  gap: 34px;
  align-items: start;
}
.product-visual,
.product-info {
  background: var(--panel);
  border: 1px solid rgba(61, 67, 64, 0.08);
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.product-visual {
  padding: 26px;
}
.product-visual-frame {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f6f2ea 0%, #ede7dc 100%);
  border-radius: 20px;
  padding: 24px;
}
.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.product-info {
  padding: 28px;
}
.product-info h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
}
.desc {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.price-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #5f665f;
  color: #fff;
  padding: 12px 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
  box-shadow: 0 14px 28px rgba(56, 62, 58, 0.18);
}
.specs {
  display: grid;
  gap: 12px;
}
.spec-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.spec-row:first-child { border-top: 0; padding-top: 0; }
.spec-label {
  color: var(--muted);
  font-weight: 600;
}
.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.74);
  border: 1px solid var(--line);
  padding: 10px 14px;
  font-weight: 600;
}
.footer {
  border-top: 1px solid rgba(61, 67, 64, 0.08);
  background: rgba(239, 235, 227, 0.72);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 20px 34px;
  color: var(--muted);
  line-height: 1.65;
}
.footer-inner strong { color: var(--text); }
.small-note {
  margin-top: 14px;
  font-size: 13px;
}
.admin-shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 34px 20px 56px;
}
.admin-grid {
  display: grid;
  gap: 22px;
}
.upload-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 24px;
}
.upload-card h2 {
  margin: 0 0 8px;
}
.upload-card p,
.upload-card li {
  color: var(--muted);
  line-height: 1.6;
}
.input-row {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}
.file-input {
  display: grid;
  gap: 8px;
}
.file-input input,
.file-input button,
.action-btn {
  min-height: 48px;
  border-radius: 14px;
}
.file-input input,
.text-input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.85);
  padding: 12px 14px;
}
.action-btn {
  border: 0;
  background: var(--accent-dark);
  color: #fff;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 700;
}
.action-btn.secondary {
  background: #7a817a;
}
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.status {
  margin-top: 14px;
  color: var(--muted);
}
.preview-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 14px;
}
.preview-table th,
.preview-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.preview-table th {
  color: var(--muted);
  font-weight: 700;
}
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
@media (max-width: 900px) {
  .product-page { grid-template-columns: 1fr; }
  .nav-row, .meta-row { align-items: flex-start; }
}
@media (max-width: 640px) {
  .logo-row { gap: 18px; }
  .logo-wrap { width: 40vw; height: 58px; }
  .container { padding-top: 22px; }
  .card-body { padding: 16px; }
  .spec-row { grid-template-columns: 1fr; gap: 6px; }
  .search { min-width: 0; width: 100%; }
  .controls { width: 100%; }
  .controls > * { flex: 1 1 100%; }
}
