/* ==========================================================
   UPINIT page styles (used with glow2.css)
   Colors are at the top so they're easy to change.
   ========================================================== */

:root {
  --page-bg:   #0b1a12;   /* dark forest green page */
  --panel-bg:  #10261a;   /* cards and boxes */
  --button-bg: #163a26;   /* buttons */
  --text:      #e7f3ea;
  --muted:     #a9c4b0;
  --gold:      #ffd45c;
  --green:     #5dff8f;
}

* { box-sizing: border-box; }

html { background: var(--page-bg); }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a { color: var(--green); }
a:hover { color: var(--gold); }

/* ---------- layout: menu on the left, page on the right ---------- */
.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.side {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  padding: 24px 20px 30px;
  border-right: 1px solid #1d3a29;
  background: var(--page-bg);
}
.side-logo {
  display: block;
  width: 184px;
  margin: 6px auto 26px;
  padding: 2px;
  line-height: 0;
  --glow2-bg: var(--page-bg);
}
.side-logo img { display: block; width: 180px; height: auto; border-radius: 10px; }

.cats { display: flex; flex-direction: column; gap: 14px; }
.cat {
  display: block;
  padding: 9px 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  --glow2-bg: var(--page-bg);
  --glow2-width: 1px;
  --glow2-radius: 9px;
  --glow2-blur: 8px;
}
.cat:hover { color: var(--gold); }
.cat.active {
  --glow2-bg: var(--button-bg);
  --glow2-width: 2px;
  color: var(--gold);
  font-weight: bold;
}

.main { padding: 28px 34px 40px; min-width: 0; }

/* ---------- top box ---------- */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 30px;
  padding: 26px 30px;
  --glow2-bg: var(--panel-bg);
  --glow2-radius: 16px;
}
.hero h1 {
  margin: 0;
  font-size: 44px;
  letter-spacing: 6px;
  color: var(--gold);
  text-shadow: 0 0 14px rgba(255, 212, 92, 0.45);
}
.tagline { margin: 6px 0 0; max-width: 560px; color: var(--muted); font-size: 17px; }
.welcome { margin: 10px 0 0; color: var(--green); font-weight: bold; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 11px 20px;
  color: var(--text);
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
  text-align: center;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  --glow2-bg: var(--button-bg);
  --glow2-radius: 10px;
}
.btn:hover { color: var(--gold); }

/* ---------- glowing divider line ---------- */
.glow-divider {
  height: 2px;
  margin: 34px 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--green), var(--gold), #ffffff, var(--gold), var(--green), transparent);
  background-size: 200% 100%;
  box-shadow: 0 0 12px rgba(93, 255, 143, 0.55), 0 0 26px rgba(255, 212, 92, 0.25);
  animation: divider-move 10s linear infinite;
}
@keyframes divider-move { to { background-position: -200% 0; } }

/* ---------- page heading ---------- */
.page-title { margin: 0 0 22px; font-size: 26px; }
.count { color: var(--muted); font-weight: normal; font-size: 18px; }

/* ---------- product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}
.card {
  display: flex;
  flex-direction: column;
  padding: 16px 16px 18px;
  --glow2-bg: var(--panel-bg);
  --glow2-radius: 14px;
  --glow2-blur: 12px;
}
/* each card's bright spot starts at a different place, so they don't all move together */
.card:nth-child(4n+2)::before { animation-delay: -4s; }
.card:nth-child(4n+3)::before { animation-delay: -8s; }
.card:nth-child(4n+4)::before { animation-delay: -12s; }

.badges { position: absolute; top: 24px; left: 24px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: bold; letter-spacing: .5px; }
.badge.new  { background: var(--gold); color: #1a1400; }
.badge.ship { background: var(--green); color: #002a0f; }

.pic {
  display: block;
  aspect-ratio: 1 / 1;
  margin-bottom: 14px;
  border-radius: 10px;
  overflow: hidden;
  background: #0a1610;
}
.pic img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .3s; }
.pic:hover img { transform: scale(1.04); }

.card-title { margin: 0 0 8px; font-size: 17px; line-height: 1.35; }
.desc { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; }
.btn.view { margin-top: auto; display: block; }

/* ---------- admin things ---------- */
.admin-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-bottom: 30px; padding: 12px 16px;
  --glow2-bg: #2a2410;
  --glow2-color-1: #ffd45c; --glow2-color-2: #ff8a3c;
}
.admin-msg { color: var(--gold); }
.inline { display: inline; margin: 0; }
.mini {
  display: inline-block; padding: 5px 11px; font-size: 13px;
  color: var(--text); text-decoration: none; border: 0; cursor: pointer; font-family: inherit;
  --glow2-bg: var(--button-bg); --glow2-width: 1px; --glow2-radius: 7px; --glow2-blur: 6px;
}
.tiny {
  padding: 2px 7px; margin: 3px 3px 3px 0; font-size: 12px;
  background: var(--button-bg); color: var(--text); border: 1px solid #2f6a47; border-radius: 5px; cursor: pointer;
}
.item-admin { margin: 0 0 14px; padding: 8px; font-size: 13px; color: var(--muted); background: #0b1a12; border-radius: 8px; }
.edit-form textarea {
  width: 100%; margin-bottom: 8px; padding: 8px;
  background: #0b1a12; color: var(--text); border: 1px solid var(--green); border-radius: 8px; font: inherit;
}
.paypal { margin-top: 6px; }

.empty { padding: 20px; --glow2-bg: var(--panel-bg); }

/* ---------- footer ---------- */
.foot { text-align: center; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 12px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--gold); }
.small { font-size: 13px; }

/* ---------- login page ---------- */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.login-box { width: 100%; max-width: 380px; padding: 30px; text-align: center; --glow2-bg: var(--panel-bg); --glow2-radius: 16px; }
.login-box h1 { margin: 10px 0 20px; font-size: 24px; color: var(--gold); }
.login-logo { border-radius: 12px; }
.login-box label { display: block; text-align: left; margin: 12px 0 6px; color: var(--muted); font-size: 14px; }
.field { display: block; padding: 0; --glow2-bg: #0b1a12; --glow2-radius: 9px; --glow2-width: 1px; --glow2-blur: 6px; }
.field input { width: 100%; padding: 10px 12px; background: transparent; border: 0; outline: 0; color: var(--text); font-size: 16px; }
.login-box .btn { width: 100%; margin-top: 22px; }
.login-msg { color: var(--gold); }
.hash-line { white-space: pre-wrap; word-break: break-all; text-align: left; font-size: 12px; background: #0b1a12; padding: 10px; border-radius: 8px; }

/* ---------- phones and small screens ---------- */
@media (max-width: 820px) {
  .layout { display: block; }
  .side {
    position: static; height: auto; overflow: visible;
    padding: 16px 14px 6px; border-right: 0; border-bottom: 1px solid #1d3a29;
  }
  .side-logo { width: 104px; margin: 0 auto 14px; }
  .side-logo img { width: 100px; }
  .cats {                         /* categories become a row you can swipe sideways */
    flex-direction: row; gap: 12px;
    overflow-x: auto; padding: 8px 6px 14px;
    scrollbar-width: none;
  }
  .cat { flex: 0 0 auto; white-space: nowrap; padding: 7px 12px; font-size: 14px; }
  .main { padding: 22px 16px 30px; }
  .hero { padding: 20px; }
  .hero h1 { font-size: 34px; }
  .hero-buttons, .hero-buttons .btn { width: 100%; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
}
.tiny.hide-btn { border-color: #8a3a3a; color: #ffb0b0; }   /* Hide button (admin) */
