:root {
  --bg: #0c0808;
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.1);
  --orange: #ea580c;
  --orange-hi: #f97316;
  --red: #dc2626;
  --text: #f4f4f5;
  --muted: #a1a1aa;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}
a {
  color: #fdba74;
}
.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}
header.site {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border);
  background: rgba(20, 12, 12, 0.9);
  backdrop-filter: blur(12px);
}
header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
}
.brand small {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(253, 186, 116, 0.9);
}
.brand strong {
  font-size: 1.5rem;
  font-weight: 600;
}
.btn-cart {
  position: relative;
  border: none;
  border-radius: 9999px;
  background: #ea580c;
  color: #fff;
  padding: 0.5rem 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 40px rgba(127, 29, 29, 0.35);
}
.btn-cart:hover {
  background: var(--orange-hi);
}
.badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 4px;
  border-radius: 9999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
section {
  margin: 2rem 0;
}
h2 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}
.grid-featured {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid-featured {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .grid-featured {
    grid-template-columns: repeat(4, 1fr);
  }
}
.card {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
}
.card-img {
  position: relative;
  aspect-ratio: 4/3;
  background: #18181b;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tag-rec {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  background: linear-gradient(to right, #f97316, #dc2626);
  color: #fff;
}
.card-body {
  padding: 1rem;
}
.price {
  color: #fdba74;
  font-weight: 600;
  font-size: 1.125rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.chip {
  border: none;
  border-radius: 9999px;
  padding: 0.35rem 1rem;
  font-size: 0.875rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  color: #d4d4d8;
  border: 1px solid var(--border);
}
.chip:hover {
  background: rgba(255, 255, 255, 0.1);
}
.chip.on {
  background: #ea580c;
  color: #fff;
  border-color: transparent;
}
.grid-menu {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid-menu {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .grid-menu {
    grid-template-columns: repeat(3, 1fr);
  }
}
.row-item {
  display: flex;
  gap: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.75rem;
}
.thumb {
  width: 6rem;
  height: 6rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #18181b;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.meta {
  min-width: 0;
  flex: 1;
}
.meta .cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #71717a;
}
.btn-sm {
  border: none;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: #ea580c;
  color: #fff;
  cursor: pointer;
}
.btn-sm:hover {
  background: var(--orange-hi);
}
/* Modal */
.modal-bg {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  padding: 0;
}
@media (min-width: 640px) {
  .modal-bg {
    align-items: center;
    padding: 1.5rem;
  }
}
.modal {
  width: 100%;
  max-width: 28rem;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 1.5rem 1.5rem 0 0;
  border: 1px solid var(--border);
  background: #140f0f;
  padding: 1.25rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}
@media (min-width: 640px) {
  .modal {
    border-radius: 1.5rem;
  }
}
.modal h2 {
  margin-top: 0;
}
.err {
  color: #fca5a5;
  font-size: 0.875rem;
}
input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"],
textarea,
select {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
}
.btn-pay {
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem;
  border: none;
  border-radius: 1rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(to right, #ea580c, #b91c1c);
  box-shadow: 0 10px 40px rgba(127, 29, 29, 0.35);
}
.btn-pay:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
/* Admin */
.admin-wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.admin-nav a {
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: #d4d4d8;
}
.admin-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}
.admin-nav a.is-active {
  border-color: rgba(251, 146, 60, 0.6);
  color: #fdba74;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
th,
td {
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}
th {
  background: rgba(255, 255, 255, 0.04);
  color: #71717a;
  font-size: 0.7rem;
  text-transform: uppercase;
}
.btn-danger {
  background: rgba(220, 38, 38, 0.25);
  color: #fecaca;
  border: none;
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
}
.btn-primary {
  background: #ea580c;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  cursor: pointer;
  font-weight: 600;
}
