:root {
  --color-bg: #ffffff;
  --color-text: #1f2a24;
  --color-accent: #5c7a6a;
  --color-accent-dark: #46604f;
  --color-border: #e5e5e5;
  --color-muted: #6b7a72;
  --font-main: Helvetica, Arial, sans-serif;
  --radius: 4px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--color-border);
}

.header .logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--color-text);
}

.header nav a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 14px;
}

.hero {
  padding: 80px 32px;
  text-align: center;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 12px;
}

.hero p {
  color: var(--color-muted);
  font-size: 16px;
}

.section {
  padding: 48px 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.category-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  text-decoration: none;
  color: var(--color-text);
  transition: border-color 0.2s;
}

.card:hover {
  border-color: var(--color-accent);
}

.product-card {
  text-align: left;
  padding: 16px;
}

.product-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  background: #f5f5f5;
}

.product-price {
  font-weight: 700;
  color: var(--color-accent-dark);
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
}

.btn:hover { background: var(--color-accent-dark); }

.btn-order { width: 100%; margin-top: 8px; }

.footer {
  padding: 32px;
  text-align: center;
  color: var(--color-muted);
  font-size: 13px;
  border-top: 1px solid var(--color-border);
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal.is-open { display: flex; }

.modal-content {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius);
  width: 90%;
  max-width: 420px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-main);
}

#order-feedback {
  margin-top: 12px;
  font-size: 14px;
  color: var(--color-accent-dark);
}

.chat-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 90;
}

.chat-panel {
  display: none;
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 320px;
  max-height: 440px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  flex-direction: column;
  z-index: 90;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.chat-panel.is-open { display: flex; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-message {
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  max-width: 85%;
}

.chat-message--user {
  align-self: flex-end;
  background: var(--color-accent);
  color: #fff;
}

.chat-message--assistant {
  align-self: flex-start;
  background: #f0f0f0;
}

.chat-input-row {
  display: flex;
  border-top: 1px solid var(--color-border);
}

.chat-input-row input {
  flex: 1;
  border: none;
  padding: 10px;
  font-family: var(--font-main);
}

.chat-input-row button {
  border: none;
  background: var(--color-accent);
  color: #fff;
  padding: 0 16px;
  cursor: pointer;
}
