:root {
  color-scheme: dark;
  --bg: #080a08;
  --panel: #111510;
  --panel-2: #171c15;
  --line: rgba(215,183,83,.22);
  --gold: #d7b753;
  --gold-light: #f0d77c;
  --green: #7bc96f;
  --text: #f5f1e6;
  --muted: #a8aa9f;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(87,114,52,.18), transparent 34rem),
    radial-gradient(circle at 0% 30%, rgba(215,183,83,.08), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Arial, "Noto Sans Hebrew", sans-serif;
  min-height: 100vh;
}

button, a { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8,10,8,.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 14px;
  color: var(--gold-light);
  font-weight: 900;
  background: linear-gradient(145deg, #252718, #10130e);
}

.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); margin-top: 2px; }

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.status i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
}

.hero {
  padding: 78px 0 52px;
  max-width: 820px;
}

.eyebrow {
  color: var(--gold);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .12em;
}

h1 {
  margin: 12px 0;
  font-size: clamp(42px, 8vw, 78px);
  line-height: .98;
}

h2 { margin: 7px 0 0; font-size: 30px; }

.hero p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
  max-width: 650px;
}

.stats {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.stats div {
  min-width: 130px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(17,21,16,.74);
}

.stats strong, .stats span { display: block; }
.stats strong { color: var(--gold-light); font-size: 19px; }
.stats span { color: var(--muted); margin-top: 4px; font-size: 13px; }

.catalog { padding: 20px 0 45px; }

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.secondary-button, .menu-button {
  border: 1px solid var(--gold);
  color: var(--gold-light);
  background: transparent;
  border-radius: 12px;
  padding: 10px 17px;
  cursor: pointer;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.store-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
}

.store-card:hover {
  transform: translateY(-5px);
  border-color: rgba(215,183,83,.65);
}

.store-cover {
  height: 185px;
  background: linear-gradient(145deg, #25301f, #10130f);
  background-position: center;
  background-size: cover;
  position: relative;
}

.store-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, var(--panel));
}

.store-logo {
  position: absolute;
  z-index: 2;
  bottom: -25px;
  right: 20px;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 20px;
  border: 2px solid var(--gold);
  background: #111;
}

.store-body {
  padding: 38px 20px 20px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.store-body h3 { font-size: 23px; margin: 0 0 7px; }
.store-city { color: var(--gold); font-size: 14px; }
.store-description {
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
  flex: 1;
}

.store-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}

.product-total { color: var(--muted); font-size: 13px; }

.notice {
  margin-bottom: 55px;
  padding: 20px;
  border: 1px solid rgba(123,201,111,.25);
  background: rgba(123,201,111,.07);
  border-radius: 18px;
}

.notice strong { color: var(--green); }
.notice p { margin: 7px 0 0; color: var(--muted); line-height: 1.6; }

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(4px);
}

.drawer {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  width: min(680px, 100%);
  height: 100vh;
  overflow-y: auto;
  background: #0c0f0b;
  border-right: 1px solid var(--line);
  transform: translateX(-102%);
  transition: transform .25s ease;
  box-shadow: 15px 0 50px rgba(0,0,0,.45);
}

.drawer.open { transform: translateX(0); }

.close-button {
  position: fixed;
  z-index: 5;
  top: 16px;
  left: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: white;
  background: rgba(0,0,0,.65);
  cursor: pointer;
  font-size: 28px;
}

.drawer-hero {
  min-height: 240px;
  padding: 120px 28px 28px;
  background-position: center;
  background-size: cover;
  position: relative;
}

.drawer-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, #0c0f0b);
}

.drawer-title { position: relative; z-index: 1; }
.drawer-title h2 { font-size: 35px; }
.drawer-title p { color: var(--gold); }

.products {
  padding: 12px 24px 40px;
  display: grid;
  gap: 13px;
}

.product-card {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 15px;
  min-height: 110px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.product-image {
  width: 105px;
  height: 105px;
  border-radius: 13px;
  object-fit: cover;
  background: var(--panel-2);
}

.product-placeholder {
  width: 105px;
  height: 105px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--panel-2);
  color: var(--gold);
  font-size: 30px;
}

.product-content h3 { margin: 4px 0 7px; font-size: 18px; }
.product-content p { color: var(--muted); margin: 0; line-height: 1.45; font-size: 13px; }

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.badge {
  border-radius: 20px;
  padding: 5px 9px;
  background: rgba(215,183,83,.1);
  border: 1px solid var(--line);
  color: var(--gold-light);
  font-size: 12px;
}

.badge.verify {
  color: var(--green);
  border-color: rgba(123,201,111,.3);
  background: rgba(123,201,111,.08);
}

.loading, .error, .empty {
  grid-column: 1 / -1;
  padding: 45px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 18px;
}

.error { color: #ff8b8b; }

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  min-height: 90px;
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

footer strong { color: var(--gold); }

@media (max-width: 850px) {
  .store-grid { grid-template-columns: 1fr; }
  .store-card { min-height: 340px; }
  .hero { padding-top: 48px; }
}

@media (max-width: 520px) {
  .status { font-size: 0; }
  .status i { display: block; }
  .product-card { grid-template-columns: 82px 1fr; }
  .product-image, .product-placeholder { width: 82px; height: 82px; }
  footer { flex-direction: column; }
}
