:root {
  --bg: #070708;
  --bg-2: #101012;
  --card: #161618;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f1ea;
  --muted: #9a958c;
  --accent: #ff6a1a;
  --accent-2: #ffb347;
  --danger: #ff4d4d;
  --ok: #3dd68c;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --header-h: 92px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html, body { background: var(--bg); color: var(--text); }
body {
  font-family: "Manrope", system-ui, sans-serif;
  overflow-x: hidden;
  min-height: 100dvh;
}
img { max-width: 100%; display: block; }
button, a { font-family: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; }

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  transition: height 0.45s var(--ease), background 0.45s var(--ease),
    backdrop-filter 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.header.scrolled {
  --header-h: 64px;
  justify-content: flex-start;
  background: rgba(7, 7, 8, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.5s var(--ease);
}
.header.scrolled .brand {
  align-items: flex-start;
  transform: translateX(0);
}
.brand-logo {
  display: block;
  height: 72px;
  width: auto;
  max-width: min(72vw, 420px);
  object-fit: contain;
  transition: height 0.45s var(--ease);
}
.header.scrolled .brand-logo {
  height: 44px;
}

@media (max-width: 720px) {
  .header {
    padding: 0 10px;
  }
  .brand-logo {
    height: 46px;
    max-width: calc(100vw - 132px);
  }
  .header.scrolled .brand-logo {
    height: 34px;
    max-width: calc(100vw - 128px);
  }
  .header-actions {
    right: 8px;
    gap: 6px;
  }
  .icon-btn {
    width: 42px;
    height: 42px;
  }
}

.header-actions {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 3;
  flex-shrink: 0;
}
.icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  position: relative;
}
.icon-btn:hover { background: rgba(255,106,26,0.16); }
.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid; place-items: center;
}

.burger span {
  display: block; width: 18px; height: 2px; background: #fff; margin: 4px 0;
  transition: 0.3s var(--ease);
}
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  min-height: 100dvh;
  display: grid;
  place-items: end center;
  padding: 140px 20px 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 110%, rgba(255,106,26,0.28), transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(255,179,71,0.12), transparent 50%),
    url("assets/hero.jpg") center/cover no-repeat,
    #070708;
  filter: saturate(1.1);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,7,8,0.35) 0%, rgba(7,7,8,0.55) 50%, #070708 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 820px;
}
.hero h1 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(36px, 8vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: 18px;
}
.hero p {
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 20px);
  margin-bottom: 28px;
}
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 22px;
  border-radius: 16px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  transition: transform 0.25s var(--ease), background 0.25s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: linear-gradient(135deg, #ff7a2e, #ff4d00); box-shadow: 0 10px 30px rgba(255,77,0,0.35); }
.btn-ghost { background: rgba(255,255,255,0.06); border: 1px solid var(--line); }

/* ===== SECTIONS ===== */
section { padding: 88px 20px; position: relative; z-index: 2; }
.wrap { max-width: 1120px; margin: 0 auto; }
.sec-head { margin-bottom: 28px; }
.sec-head h2 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: -0.04em;
}
.sec-head p { color: var(--muted); margin-top: 8px; }

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

.card {
  background: linear-gradient(180deg, #1b1b1e, #121214);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card-photo {
  height: 168px;
  background: #0c0c0d center/cover no-repeat;
  position: relative;
}
.card-photo::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 70px;
  background: linear-gradient(transparent, #121214);
}
.card-body { padding: 16px 16px 18px; }
.card-body h3 { font-size: 18px; margin-bottom: 6px; }
.meta { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.price { font-family: "Unbounded", sans-serif; color: var(--accent-2); font-size: 18px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.select {
  width: 100%;
  margin: 10px 0 12px;
  height: 42px;
  border-radius: 12px;
  background: #0d0d0f;
  color: #fff;
  border: 1px solid var(--line);
  padding: 0 12px;
  font-size: 14px;
}
.qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  font-size: 18px;
  display: grid;
  place-items: center;
  line-height: 1;
  padding: 0;
  flex: 0 0 36px;
}
.qty-val {
  width: 48px;
  height: 36px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  background: #0d0d0f;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.qty input {
  width: 48px;
  height: 36px;
  text-align: center;
  background: #0d0d0f;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  line-height: 36px;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.add-btn {
  width: 100%;
  height: 44px;
  margin-top: 10px;
  border-radius: 12px;
  background: rgba(255,106,26,0.16);
  color: #ffb347;
  font-weight: 700;
  border: 1px solid rgba(255,106,26,0.25);
}
.add-btn:hover { background: rgba(255,106,26,0.28); }

/* ===== INFO / CONTACTS ===== */
.info-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}
@media (max-width: 800px) {
  .info-grid { grid-template-columns: 1fr; }
}
.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.info-card h3 { margin-bottom: 10px; font-family: "Unbounded", sans-serif; }
.info-card p, .info-card a { color: var(--muted); line-height: 1.6; }
.info-card a { color: var(--accent-2); text-decoration: none; }
.contact-list { display: grid; gap: 10px; margin-top: 14px; }
.contact-list a, .contact-list span { color: var(--text); }

/* ===== DRAWER MENU ===== */
.overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0,0,0,0.55);
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.overlay.show { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(86vw, 380px);
  background: #0e0e10;
  border-left: 1px solid var(--line);
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  display: flex; flex-direction: column;
  padding: 22px 22px 18px;
}
.drawer.open { transform: translateX(0); }
.drawer nav { display: grid; gap: 6px; margin-top: 28px; }
.drawer nav a {
  color: #fff; text-decoration: none;
  font-size: 28px; font-family: "Unbounded", sans-serif;
  padding: 8px 0;
}
.drawer nav a:hover { color: var(--accent-2); }
.drawer-bottom { margin-top: auto; }
.drawer-bottom h4 {
  color: var(--muted); font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase;
  margin: 18px 0 10px;
}
#adminIdsInput {
  width: 100%;
  min-height: 72px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #121214;
  color: #fff;
  padding: 10px;
  font: inherit;
}
.welcome {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0,0,0,0.72);
  display: grid;
  place-items: center;
  padding: 20px;
}
.welcome[hidden] { display: none; }
.welcome-card {
  width: min(420px, 100%);
  background: #141416;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  display: grid;
  gap: 12px;
}
.welcome-card h2 { font-family: Unbounded, sans-serif; }
.welcome-card p { color: var(--muted); line-height: 1.5; }

.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a {
  color: #fff; text-decoration: none;
  padding: 10px 14px; border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  font-size: 13px;
}

/* ===== CART DRAWER ===== */
.cart-drawer { width: min(92vw, 430px); }
.cart-list { overflow: auto; flex: 1; margin: 16px 0; display: grid; gap: 10px; align-content: start; }
.cart-item {
  display: grid; grid-template-columns: 1fr auto;
  gap: 6px 10px;
  padding: 12px;
  background: #161618;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.cart-item b { font-size: 14px; }
.cart-item small { color: var(--muted); display: block; }
.cart-total {
  display: flex; justify-content: space-between;
  font-size: 20px; font-weight: 800; margin: 8px 0 12px;
}
.checkout { display: grid; gap: 8px; }
.checkout input, .checkout textarea, .checkout select {
  width: 100%;
  background: #121214; color: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px;
  font: inherit;
}
.checkout textarea { min-height: 72px; resize: vertical; }
.hint { color: var(--muted); font-size: 12px; }

/* swipe zone */
.swipe-edge {
  position: fixed; top: 0; right: 0; bottom: 0; width: 18px;
  z-index: 35;
}

.toast {
  position: fixed; left: 50%; bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #1c1c1f; border: 1px solid var(--line);
  padding: 12px 16px; border-radius: 14px;
  z-index: 80; opacity: 0; pointer-events: none;
  transition: 0.3s var(--ease);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

footer {
  padding: 28px 20px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.empty { color: var(--muted); text-align: center; padding: 30px 10px; }
