/* Premium furniture factory — custom styles */
:root {
  --ink: #0c0c0c;
  --charcoal: #1a1a1a;
  --brass: #c4a882;
  --mist: #f7f4ef;
  --sand: #e8e0d4;
}

body { background-color: var(--mist); }

/* Grain overlay */
.grain::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 1;
}

.hero-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(196, 168, 130, 0.12) 0%, transparent 60%),
    linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 45%, #2a241c 100%);
}

.hero-kitchen-scene {
  position: relative;
  background: linear-gradient(180deg, #121212 0%, #1a1714 100%);
}

.hero-kitchen-scene__grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
}

.hero-kitchen-layout {
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  width: 88%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
  gap: 4px;
  width: 100%;
}

.hero-row--wall {
  height: 72px;
  margin-bottom: 10px;
}

.hero-base-stack {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.hero-row--base {
  height: 96px;
}

.hero-cab {
  flex: 1 1 0;
  min-width: 0;
  background: linear-gradient(180deg, #d4b896 0%, #a88b62 100%);
  border-radius: 2px 2px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 16px rgba(0, 0, 0, 0.25);
  position: relative;
}

.hero-cab--wall {
  height: 100%;
}

.hero-cab--wall::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 42%;
  height: 2px;
  background: rgba(12, 12, 12, 0.25);
  border-radius: 1px;
}

.hero-cab--base {
  height: 100%;
}

.hero-cab--base::before {
  content: "";
  position: absolute;
  right: 14%;
  top: 38%;
  width: 3px;
  height: 22%;
  background: rgba(12, 12, 12, 0.45);
  border-radius: 1px;
}

.hero-cab--oven {
  background: linear-gradient(180deg, #3a3a3a 0%, #1a1a1a 55%, #252525 100%);
}

.hero-cab--oven::before {
  display: none;
}

.hero-cab--oven::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 22%;
  bottom: 28%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.35);
}

.hero-cab--sink::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -100%);
  width: 55%;
  height: 7px;
  background: #c8cdd2;
  border-radius: 2px 2px 0 0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-cab--cook::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -100%);
  width: 62%;
  height: 5px;
  background: #111;
  border-radius: 1px 1px 0 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero-counter {
  height: 5px;
  width: 100%;
  background: linear-gradient(180deg, #faf8f5 0%, #e8e4de 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  z-index: 2;
}

.hero-floor {
  height: 3px;
  margin-top: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 1px;
}

.hero-visual-panel {
  box-shadow: 0 28px 80px -36px rgba(0, 0, 0, 0.75);
}

.hero-visual-panel img {
  transform: scale(1.01);
}

.bento-item {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.bento-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.45);
}

.img-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.placeholder-visual {
  background:
    linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 50%, #3d3428 100%);
  position: relative;
  overflow: hidden;
}
.placeholder-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 40%, rgba(196,168,130,0.08) 50%, transparent 60%);
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { transform: translateX(-30%); }
  50% { transform: translateX(30%); }
}

.price-tag {
  font-variant-numeric: tabular-nums;
}

.kanban-col {
  min-height: 200px;
}

/* CodeMirror-ish for template editor */
.tpl-editor {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  tab-size: 2;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #e8e0d4; }
::-webkit-scrollbar-thumb { background: #c4a882; }
::-webkit-scrollbar-thumb:hover { background: #a88b62; }

/* Constructor layout */
#canvas-container {
  touch-action: none;
}
.config-panel::-webkit-scrollbar { width: 4px; }

[x-cloak] { display: none !important; }

/* ── Header nav ───────────────────────────────────────────── */
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(247, 244, 239, 0.62);
  transition: color 0.25s ease;
}
.nav-link:hover,
.nav-link--accent {
  color: rgba(247, 244, 239, 0.95);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.2rem;
  height: 1px;
  background: #c4a882;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover::after,
.nav-link--accent:hover::after {
  transform: scaleX(1);
}

.mobile-nav-link {
  display: block;
  padding: 0.85rem 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #f7f4ef;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s ease, padding-left 0.25s ease;
}
.mobile-nav-link:hover {
  color: #c4a882;
  padding-left: 0.5rem;
}
