:root {
  --bg: #0b0710;
  --card: #160e22;
  --line: #2b1d42;
  --p: #8b3dff;
  --p2: #b377ff;
  --tx: #fff;
  --mut: #b9aed0;
  --err: #ff6b81;
  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html {
  scroll-padding-top: 120px;
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  line-height: 1.45;
}
button {
  font: inherit;
  cursor: pointer;
  border: 0;
}
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: rgba(11, 7, 16, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.logo {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  background: none;
  color: var(--tx);
}
.logo {
  padding: 0;
  display: flex;
  align-items: center;
}
.logo img {
  height: 56px;
  width: auto;
  display: block;
}
@media (max-width: 480px) {
  .logo img {
    height: 48px;
  }
}
.cartbtn {
  position: relative;
  background: var(--p);
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s;
}
.cartbtn:hover {
  background: var(--p2);
  transform: translateY(-1px);
}
.badge {
  background: #fff;
  color: #000;
  border-radius: 999px;
  padding: 0 7px;
  margin-left: 6px;
  font-size: 0.8rem;
}
nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 10px;
  scrollbar-width: none;
}
nav a {
  white-space: nowrap;
  color: var(--mut);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  transition: 0.2s;
}
nav a:hover {
  color: #fff;
  border-color: var(--p);
}
.hero {
  padding: 56px 0 40px;
  background:
    radial-gradient(circle at 80% 0, #3a1470 0, transparent 55%),
    radial-gradient(circle at 10% 100%, #25094a 0, transparent 50%);
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  margin: 0 0 12px;
  line-height: 1.1;
}
.hero h1 span {
  color: var(--p2);
}
.hero p {
  color: var(--mut);
  max-width: 520px;
  margin: 0 0 24px;
}
.btn {
  display: inline-block;
  background: var(--p);
  color: #fff;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s;
}
.btn:hover {
  background: var(--p2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 61, 255, 0.35);
}
.btn.ghost {
  background: transparent;
  border: 1px solid var(--p);
  color: var(--p2);
}
.btn.wa {
  background: #1fa855;
}
.btn.wa:hover {
  background: #25c264;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
h2 {
  margin: 40px 0 16px;
  font-size: 1.5rem;
}
h2:after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: var(--p);
  margin-top: 6px;
  border-radius: 2px;
}
.cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.cat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  transition: 0.2s;
}
.cat:hover {
  border-color: var(--p);
  transform: translateY(-3px);
}
.cat img {
  width: 64px;
  height: 64px;
}
.cat div {
  font-weight: 600;
  margin-top: 6px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.2s;
}
.card:hover {
  border-color: var(--p);
  transform: translateY(-3px);
}
.card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #1d1230;
}
.card .in {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.card .nm {
  font-weight: 600;
}
.card .vl {
  color: var(--mut);
  font-size: 0.85rem;
}
.card .pr {
  color: var(--p2);
  font-weight: 800;
  font-size: 1.2rem;
  margin-top: auto;
}
.card .btn {
  padding: 10px;
  margin-top: 8px;
  text-align: center;
  width: 100%;
}
footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--mut);
  font-size: 0.9rem;
}
footer a {
  color: var(--p2);
}
.ov {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 30;
  display: none;
}
.ov.on {
  display: block;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: #120b1d;
  z-index: 40;
  transform: translateX(100%);
  transition: 0.25s;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.drawer.on {
  transform: none;
}
.dh {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 1.1rem;
}
.x {
  background: none;
  color: #fff;
  font-size: 1.5rem;
}
.db {
  flex: 1;
  overflow: auto;
  padding: 12px 16px;
}
.item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.item img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}
.item .inf {
  flex: 1;
  min-width: 0;
}
.item .inf small {
  color: var(--mut);
  display: block;
}
.qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.qty button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--line);
  color: #fff;
  font-weight: 700;
}
.qty button:hover {
  background: var(--p);
}
.rm {
  background: none;
  color: var(--err);
  font-size: 0.8rem;
  margin-left: auto;
}
.df {
  padding: 16px;
  border-top: 1px solid var(--line);
}
.tot {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 12px;
}
label {
  display: block;
  font-weight: 600;
  margin: 12px 0 4px;
  font-size: 0.9rem;
}
input[type="text"],
textarea {
  width: 100%;
  background: #0b0710;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #fff;
  padding: 11px;
  font: inherit;
}
input:focus,
textarea:focus {
  outline: 2px solid var(--p);
  border-color: var(--p);
}
.err {
  color: var(--err);
  font-size: 0.85rem;
  min-height: 1em;
  margin-top: 3px;
}
.pays {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pay {
  padding: 12px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b0710;
  color: #fff;
  font-weight: 600;
}
.pay.sel {
  background: var(--p);
  border-color: var(--p);
}
.box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
}
.box h3 {
  margin: 0 0 10px;
  color: var(--p2);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
}
.acts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.empty {
  text-align: center;
  color: var(--mut);
  padding: 40px 0;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .two {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.hidden {
  display: none !important;
}
select {
  width: 100%;
  background: #0b0710;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #fff;
  padding: 11px;
  font: inherit;
}
.sm {
  color: var(--mut);
  font-size: 0.85rem;
}

.w100 {
  width: 100%;
}
.mt8 {
  margin-top: 8px;
}
.ov {
  z-index: 30;
}

.store-status {
  font-weight: 800;
  font-size: 0.95rem;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid;
}
.store-status.open {
  color: #3ddc84;
  border-color: #3ddc84;
  background: rgba(61, 220, 132, 0.1);
}
.store-status.closed {
  color: #ff5d6c;
  border-color: #ff5d6c;
  background: rgba(255, 93, 108, 0.1);
}
.closedbar {
  background: #3a0f18;
  color: #ff9aa5;
  border: 1px solid #ff5d6c;
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 0 10px;
  font-size: 0.92rem;
}
.closednote {
  color: #ff5d6c;
  font-weight: 600;
  margin: 10px 0;
}
