:root {
  color-scheme: light;
  --bg: #fff8f0;
  --surface: #ffffff;
  --text: #1b1b1b;
  --muted: #5f5f5f;
  --accent: #e45a2a;
  --accent-dark: #c9461b;
  --border: #efe3d6;
  --shadow: 0 12px 32px rgba(20, 20, 20, 0.08);
  --radius: 18px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
}

.container {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 16px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
}

.skip-link:focus {
  left: 16px;
  z-index: 10;
}

header {
  background: var(--surface);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 5;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-weight: 500;
}

.nav-links a {
  color: var(--text);
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  background: rgba(228, 90, 42, 0.12);
  color: var(--accent-dark);
}

.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.nav-cta:hover,
.nav-cta:focus {
  background: var(--accent-dark);
}

.hero {
  padding: 72px 0;
  display: grid;
  gap: 32px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 3vw + 1.5rem, 3.5rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-content p {
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent-dark);
}

.btn-secondary {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.hero-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.section {
  padding: 48px 0;
}

.section h2 {
  font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem);
  margin-bottom: 12px;
}

.section p {
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 640px;
}

.section-actions {
  margin-top: 20px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(20, 20, 20, 0.12);
}

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

.card-body {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.card h3 {
  font-size: 1.1rem;
}

.price {
  font-weight: 700;
}

.pill {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(228, 90, 42, 0.12);
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.85rem;
}

.menu-filter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.menu-filter button {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.menu-filter button.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.basket-layout {
  display: grid;
  gap: 24px;
}

.basket-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.basket-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
}

.basket-item h3 {
  margin-bottom: 4px;
}

.basket-item p {
  color: var(--muted);
  font-size: 0.95rem;
}

.basket-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.quantity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}

.quantity button {
  border: none;
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
}

.basket-remove {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  cursor: pointer;
}

.basket-remove:hover,
.basket-remove:focus {
  color: var(--accent-dark);
  border-color: rgba(228, 90, 42, 0.4);
}

.order-summary {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.order-summary .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.payment-selection {
  border: none;
  padding: 0;
  margin-top: 8px;
}

.payment-selection legend {
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 1rem;
}

.payment-options {
  display: grid;
  gap: 12px;
}

.payment-option {
  cursor: pointer;
  position: relative;
}

.payment-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.payment-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: #fff;
  transition: all 0.2s ease;
}

.payment-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 10px;
}

.payment-details strong {
  display: block;
  font-size: 0.95rem;
}

.payment-details p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

.payment-option input:checked + .payment-card {
  border-color: var(--accent);
  background: rgba(228, 90, 42, 0.04);
}

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

/* Announcement Bar */
.announcement-bar {
  background: var(--accent);
  color: white;
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 900;
  font-weight: 600;
  font-size: 0.95rem;
}

.announcement-content {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-text 20s linear infinite;
}

.announcement-content a {
  color: white;
  text-decoration: underline;
}

@keyframes scroll-text {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

form {
  display: grid;
  gap: 14px;
}

label {
  font-weight: 600;
  display: grid;
  gap: 6px;
}

input,
select,
textarea {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 1rem;
  background: #fff;
}

footer {
  background: #1b1b1b;
  color: #fff;
  padding: 32px 0;
  margin-top: 48px;
}

footer a {
  color: #fff;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #25d366 !important;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.whatsapp-link:hover {
  opacity: 0.8;
}

.whatsapp-icon {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  fill: #25d366 !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

/* Chat Widget */
.chat-widget {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  width: auto !important;
  z-index: 10000 !important;
  font-family: inherit;
  display: block !important;
}

.chat-button {
  width: 60px !important;
  height: 60px !important;
  border-radius: 30px !important;
  background: var(--accent) !important;
  color: white !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
  transition: transform 0.2s ease !important;
  margin-left: auto !important;
}

.chat-button:hover {
  transform: scale(1.05) !important;
}

.chat-window {
  position: absolute !important;
  bottom: 80px !important;
  right: 0 !important;
  width: 320px !important;
  max-width: calc(100vw - 48px) !important;
  height: 450px !important;
  max-height: calc(100vh - 120px) !important;
  background: white !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  transform: translateY(20px) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: all 0.3s ease !important;
  border: 1px solid var(--border) !important;
}

.chat-window.active {
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: all !important;
}

.chat-header {
  background: var(--accent) !important;
  color: white !important;
  padding: 16px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

.chat-messages {
  flex: 1 !important;
  padding: 16px !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  background: #f8f9fa !important;
}

.chat-message {
  max-width: 85% !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  font-size: 0.9rem !important;
  line-height: 1.4 !important;
  word-wrap: break-word !important;
}

.message-bot {
  align-self: flex-start !important;
  background: white !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-bottom-left-radius: 2px !important;
}

.message-user {
  align-self: flex-end !important;
  background: var(--accent) !important;
  color: white !important;
  border-bottom-right-radius: 2px !important;
}

.chat-input-area {
  padding: 12px !important;
  border-top: 1px solid var(--border) !important;
  display: flex !important;
  gap: 8px !important;
  background: white !important;
  flex-shrink: 0 !important;
}

.chat-input {
  flex: 1 !important;
  border: 1px solid var(--border) !important;
  padding: 8px 12px !important;
  border-radius: 20px !important;
  outline: none !important;
  font-size: 0.9rem !important;
  width: 100% !important;
}

.chat-send {
  background: var(--accent) !important;
  color: white !important;
  border: none !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 18px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.footer-grid {
  display: grid;
  gap: 16px;
}

.map-placeholder {
  background: #f2e7da;
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--muted);
}

.notice {
  background: #fff1e6;
  border: 1px solid #f4d1be;
  padding: 16px;
  border-radius: 16px;
  color: #9b3d1d;
}

.notice:empty {
  display: none;
}

.empty-state {
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px dashed var(--border);
  color: var(--muted);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .basket-layout {
    grid-template-columns: 1.5fr 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
