:root {
  --bg: #171310;
  --surface: #211b17;
  --surface-2: #2a2320;
  --border: #3a322c;
  --gold: #c9a25c;
  --text: #f2ece3;
  --text-muted: #a89e92;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 32px;
}

body.splash-active {
  overflow: hidden;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ecd3bc;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.splash-logo {
  width: min(60vw, 260px);
  animation: splash-in 0.8s ease both;
}

@keyframes splash-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.splash.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-header {
  padding: 24px 16px 12px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.site-header h1 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  font-weight: 700;
}

.search-bar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 16px 0;
}

.search-bar input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-bar input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}

.special-banner {
  max-width: 1100px;
  margin: 14px auto 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--gold);
  background: linear-gradient(120deg, rgba(201, 162, 92, 0.16), rgba(201, 162, 92, 0.03));
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.special-banner:hover {
  background: linear-gradient(120deg, rgba(201, 162, 92, 0.22), rgba(201, 162, 92, 0.05));
}

.special-banner img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
  background: var(--surface-2);
}

.special-banner .special-text {
  min-width: 0;
  flex: 1;
}

.special-banner .label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.special-banner .name {
  font-weight: 700;
  color: var(--text);
}

.special-banner .desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.special-banner .price {
  margin-left: auto;
  flex: none;
  font-weight: 700;
  color: var(--gold);
}

.category-tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.tab-btn:hover {
  border-color: var(--gold);
}

.tab-btn.active {
  background: var(--gold);
  color: #1a1512;
  border-color: var(--gold);
}

.tab-icon {
  font-size: 1.05rem;
}

.menu-sections {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 16px 20px;
}

.menu-section {
  margin-top: 24px;
}

.menu-section:first-child {
  margin-top: 20px;
}

.menu-section-title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.menu-section-divider {
  height: 1px;
  background: var(--border);
  margin: 0 0 16px;
}

.menu-section-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 4px 0 4px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  animation: fade-in 0.2s ease;
}

.product-card.sold .product-photo {
  filter: grayscale(70%);
  opacity: 0.5;
}

.product-card.sold .product-info {
  opacity: 0.5;
}

.sold-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: var(--text);
  color: var(--bg);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
}

.product-cat {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-photo {
  width: 120px;
  flex: none;
  object-fit: cover;
  background: var(--surface-2);
  display: block;
}

@media (min-width: 420px) {
  .product-photo {
    width: 140px;
  }
}

.product-info {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.product-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

.product-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.product-price {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 16px;
}

@media (min-width: 640px) {
  .site-header h1 {
    font-size: 2rem;
  }
}
