:root {
  --bg: #070a08;
  --surface: #0f1511;
  --surface-2: #151d18;
  --line: #263329;
  --ink: #edf3ea;
  --muted: #9aac9f;
  --chip: #1e2822;
  --chip-active: #2f3f34;
  --accent: #d6893c;
  --accent-2: #9e5f23;
  --ok: #78c08d;
  --error: #de7b80;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #142018 0%, var(--bg) 42%);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  padding: 0 0 98px;
}

.app-shell {
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 12px 10px 0;
}

.top {
  display: grid;
  gap: 10px;
}

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

.addr-block {
  display: flex;
  gap: 10px;
  align-items: center;
}

.icon-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1a241d;
  color: var(--accent);
  font-weight: 900;
  display: grid;
  place-items: center;
}

.addr {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.warn {
  margin: 2px 0 0;
  color: var(--ok);
  font-size: 12px;
}

.profile {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.profile-badge {
  border-radius: 999px;
  font-size: 11px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #476553, #2d4336);
  color: #d9ecde;
}

.admin-link {
  color: #9cb6a4;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.chips {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 2px;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  border: none;
  border-radius: 999px;
  background: var(--chip);
  color: #9dab9f;
  padding: 10px 15px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.chip.active {
  background: var(--chip-active);
  color: #f6faf4;
}

main {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.hero-card {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid #3f513f;
  background: linear-gradient(165deg, #364b3b, #223229);
  cursor: pointer;
}

.hero-visual {
  height: 300px;
  padding: 16px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(241, 196, 130, 0.22), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(153, 209, 155, 0.2), transparent 38%),
    linear-gradient(145deg, #2e4336, #1b2921);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.hero-content {
  padding: 14px;
}

.badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f19ec5, #ffc0db);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-transform: lowercase;
}

.hero-content h2 {
  margin: 10px 0 7px;
  font-size: 36px;
  line-height: 0.88;
}

.hero-content p {
  margin: 0;
  color: #ccdbc8;
  font-size: 15px;
}

.hero-actions {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.price-block {
  display: grid;
  gap: 2px;
}

.price-main {
  font-size: 34px;
  font-weight: 900;
  line-height: 0.86;
}

.price-old {
  color: #93a193;
  text-decoration: line-through;
  font-size: 15px;
}

.products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.product {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}

.product-cover {
  height: 162px;
  padding: 10px;
  background: linear-gradient(145deg, #233327, #171f1a);
}

.product-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.product-body {
  padding: 10px;
}

.product-title {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 0.9;
}

.product-sub {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}

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

.price {
  display: grid;
  gap: 2px;
}

.price-now {
  font-size: 28px;
  font-weight: 900;
  line-height: 0.86;
}

.price-before {
  color: #7f8f84;
  font-size: 13px;
  text-decoration: line-through;
}

.qty {
  display: flex;
  align-items: center;
  gap: 5px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: #2c3a2f;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.qty-num {
  min-width: 16px;
  text-align: center;
  font-weight: 900;
}

.dock {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  width: min(calc(100% - 16px), 460px);
  border-radius: 18px;
  border: 1px solid #2a372d;
  background: #0f1612;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
}

.dock-title {
  margin: 0;
  color: #8ea197;
  font-size: 11px;
}

#dock-total {
  font-size: 20px;
  line-height: 1;
}

.primary {
  border: none;
  border-radius: 999px;
  padding: 10px 15px;
  font: inherit;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  cursor: pointer;
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
  z-index: 25;
}

.drawer {
  position: fixed;
  left: 50%;
  transform: translate(-50%, 105%);
  bottom: 0;
  width: min(100%, 460px);
  max-height: 86vh;
  border-radius: 20px 20px 0 0;
  border-top: 1px solid #2a382d;
  background: #101712;
  padding: 12px;
  overflow-y: auto;
  transition: transform 0.22s ease;
  z-index: 30;
}

.drawer.open {
  transform: translate(-50%, 0);
}

.backdrop.open {
  opacity: 1;
  visibility: visible;
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-block {
  display: grid;
  gap: 8px;
  border: 1px solid #2a392c;
  border-radius: 12px;
  background: var(--surface-2);
  padding: 10px;
  margin-bottom: 10px;
}

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

.profile-summary {
  color: #c9d6ca;
  font-size: 13px;
  line-height: 1.35;
}

.profile-editor {
  display: grid;
  gap: 8px;
}

.profile-editor.hidden {
  display: none;
}

.profile-actions {
  display: flex;
  gap: 8px;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #d4ded2;
}

.pay-option input {
  accent-color: #c57a32;
}

.ghost {
  border: 1px solid #344438;
  border-radius: 999px;
  color: #d5e0d5;
  background: transparent;
  padding: 6px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cart-items {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}

.cart-row {
  border-radius: 12px;
  border: 1px solid #28372b;
  background: var(--surface-2);
  padding: 9px;
}

.cart-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.drawer-total {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  margin-bottom: 10px;
}

.order-primary {
  width: 100%;
  margin-bottom: 8px;
}

input,
textarea {
  border-radius: 11px;
  border: 1px solid #334538;
  background: #162018;
  color: #edf3ea;
  font: inherit;
  padding: 10px;
}

.status {
  margin: 0;
  min-height: 20px;
  font-size: 12px;
  color: #8ad29c;
  font-weight: 800;
}

.status.error {
  color: var(--error);
}

@media (max-width: 390px) {
  .products {
    grid-template-columns: 1fr;
  }

  .hero-content h2 {
    font-size: 32px;
  }
}
