﻿:root {
  --bg: #f9f2e8;
  --card: #fffdf8;
  --ink: #2a221d;
  --muted: #6d635b;
  --accent: #d9480f;
  --accent-2: #9a3412;
  --line: #efdcc8;
  --warn: #b45309;
  --danger: #ac2a2a;
  --shadow: 0 16px 36px rgba(104, 67, 46, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, #ffe1b6 0, rgba(255, 225, 182, 0) 32%),
    radial-gradient(circle at 88% 20%, #ffd8b8 0, rgba(255, 216, 184, 0) 28%),
    linear-gradient(180deg, #fff7ea 0%, #f8eee2 65%, #f9f2e8 100%);
}

.bg-shape {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.5;
}

.bg-shape-a {
  width: 240px;
  height: 240px;
  top: -40px;
  right: -70px;
  background: #ffd19d;
}

.bg-shape-b {
  width: 300px;
  height: 300px;
  bottom: -110px;
  left: -70px;
  background: #ffc8a2;
}

.hero {
  max-width: 1200px;
  margin: 14px auto 0;
  padding: 0 22px;
  position: relative;
}

.store-cover {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid #edd8c3;
  background:
    radial-gradient(circle at 20% 18%, #ffd9b3 0, rgba(255, 217, 179, 0) 35%),
    linear-gradient(120deg, #f4b285 0%, #d9480f 90%);
  box-shadow: var(--shadow);
}

.hero-overlay {
  position: absolute;
  top: 12px;
  right: 34px;
}

.admin-link {
  border: 1px solid #ebcfb5;
  border-radius: 999px;
  text-decoration: none;
  color: #8f2f0d;
  background: #fff8ec;
  padding: 8px 12px;
  font-size: 0.84rem;
  transition: all 150ms ease;
}

.admin-link:hover {
  background: #ffe3cb;
  border-color: #efb489;
}

.topbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 22px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.brand-wrap {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.store-logo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid #efd9c6;
  object-fit: cover;
  object-position: center;
  background: #fff;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

h1,
h2,
h3 {
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  line-height: 1.1;
}

h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
}

.store-description {
  margin: 0;
  color: #5a4438;
  max-width: 62ch;
}

#store-tagline {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 62ch;
  font-size: 0.9rem;
}

.city-chip {
  margin: 10px 0 0;
  display: inline-block;
  border-radius: 999px;
  background: #fbe8d2;
  color: #7b4f35;
  padding: 7px 11px;
  font-size: 0.84rem;
}

.status-card {
  min-width: 255px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}

.status-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.status-pill {
  display: inline-block;
  margin: 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e9f8ee;
  color: #1f6d31;
  font-weight: 600;
  font-size: 0.85rem;
}

.status-pill.closed {
  background: #ffe9e9;
  color: var(--danger);
}

.status-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.status-reopening {
  margin: 8px 0 0;
  color: #7d341f;
  font-size: 0.82rem;
}

.store-countdown {
  display: inline-block;
  margin: 8px 0 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fff1eb;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 22px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 18px;
}

.menu-panel,
.cart-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.menu-panel {
  padding: 18px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 14px;
}

.panel-head h2 {
  margin: 0;
}

.panel-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.search-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
  font-size: 0.82rem;
  color: var(--muted);
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #e5d4c0;
  border-radius: 11px;
  padding: 10px 12px;
  background: #fffcf5;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(217, 72, 15, 0.16);
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  position: sticky;
  top: 6px;
  z-index: 2;
  background: linear-gradient(180deg, #fffdf8 70%, rgba(255, 253, 248, 0));
  padding-top: 2px;
}

.filter-btn {
  border: 1px solid #ebcfb5;
  border-radius: 999px;
  background: #fff8ec;
  color: #7a5440;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 180ms ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: #ffe3cb;
  border-color: #efb489;
  color: #8f2f0d;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.menu-item {
  border: 1px solid #f1ddc8;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 330px;
  background: linear-gradient(180deg, #fffef8 0%, #fff6eb 100%);
  animation: reveal 300ms ease both;
}

.item-image {
  width: 100%;
  height: 136px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #f2dfca;
  margin-bottom: 10px;
  background: #f5e8d7;
}

.item-image.is-placeholder {
  background:
    radial-gradient(circle at 12% 20%, #ffd4a7 0, rgba(255, 212, 167, 0.1) 38%),
    linear-gradient(120deg, #fff4e5 0%, #f9e8d2 100%);
}

.item-category {
  margin: 0;
  font-size: 0.72rem;
  color: #956b53;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.item-name {
  margin: 8px 0;
  font-size: 1.06rem;
}

.item-description {
  margin: 0;
  color: #6f6259;
  font-size: 0.89rem;
}

.item-stock {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: #8e3d20;
  background: #ffe8d7;
  display: inline-block;
  border-radius: 999px;
  padding: 4px 8px;
}

.item-footer {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.item-prices {
  display: grid;
  gap: 2px;
}

.item-price {
  margin: 0;
  font-weight: 700;
  color: #22633e;
}

.item-old-price {
  margin: 0;
  font-size: 0.8rem;
  text-decoration: line-through;
  color: #8a7d73;
}

.add-btn {
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  transition: transform 120ms ease, background 120ms ease;
}

.add-btn:hover {
  background: #be3b0d;
  transform: translateY(-1px);
}

.add-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.cart-panel {
  padding: 16px;
  align-self: start;
  position: sticky;
  top: 10px;
}

.cart-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.cart-head h2 {
  margin: 0;
}

#cart-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.cart-items {
  list-style: none;
  padding: 0;
  margin: 14px 0;
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
}

.empty-cart {
  margin: 6px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.cart-item {
  border: 1px solid #f1dfcb;
  border-radius: 12px;
  padding: 10px;
  background: #fff9f0;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.cart-item-name {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
}

.cart-item-subtotal {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
}

.qty-controls {
  margin-top: 8px;
  display: inline-flex;
  border: 1px solid #efc9a8;
  border-radius: 999px;
  overflow: hidden;
}

.qty-controls button {
  width: 32px;
  border: 0;
  background: #fff2e4;
  cursor: pointer;
}

.qty-controls span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  font-weight: 600;
}

.totals {
  border-top: 1px dashed #e9d4bf;
  border-bottom: 1px dashed #e9d4bf;
  padding: 10px 0;
  margin-bottom: 12px;
}

.totals p {
  margin: 8px 0;
  display: flex;
  justify-content: space-between;
  color: #5c5148;
}

.total-line {
  font-size: 1.02rem;
  color: var(--ink);
}

.checkout-form {
  display: grid;
  gap: 8px;
}

.checkout-form h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.checkout-form label,
.order-type-fieldset legend {
  font-size: 0.84rem;
  color: #5f554d;
}

.order-type-fieldset {
  border: 1px solid #e6d7c8;
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.order-type-fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.order-type-fieldset input {
  width: auto;
}

.warning {
  margin: 2px 0;
  color: var(--warn);
  font-size: 0.82rem;
}

.eta-line {
  margin: 2px 0;
  color: #256c4a;
  font-size: 0.82rem;
}

.pix-info {
  margin: 2px 0;
  font-size: 0.79rem;
  color: #5e4e45;
  background: #fff4e9;
  border: 1px dashed #e8c6a8;
  border-radius: 10px;
  padding: 8px;
}

.send-btn {
  border: 0;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  background: linear-gradient(90deg, #d9480f 0%, #f97316 100%);
  color: #fff;
  font-weight: 600;
}

.send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hidden {
  display: none !important;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero {
    margin-top: 8px;
  }

  .store-cover {
    height: 160px;
  }

  .hero-overlay {
    top: 8px;
    right: 18px;
  }

  .topbar {
    flex-direction: column;
  }

  .status-card {
    width: 100%;
  }

  .layout {
    grid-template-columns: 1fr;
    padding-bottom: 90px;
  }

  .cart-panel {
    position: static;
  }
}

@media (max-width: 600px) {
  .hero,
  .topbar,
  .layout {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-overlay {
    position: static;
    margin-top: 8px;
    text-align: right;
  }

  .store-cover {
    height: 132px;
  }

  .brand-wrap {
    width: 100%;
  }

  .store-logo {
    width: 70px;
    height: 70px;
  }

  .panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .search-wrap {
    min-width: auto;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }
}
