/* ============================================================
   PYREX STORE — Clean White & Red theme (desktop + mobile)
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-soft: #fdf3f4;
  --panel: #ffffff;
  --panel-2: #fbfbfd;
  --red: #e60023;
  --red-dark: #b3001b;
  --red-soft: #fff0f1;
  --ink: #15171c;
  --muted: #6b7280;
  --line: rgba(230, 0, 35, 0.16);
  --line-strong: rgba(230, 0, 35, 0.4);
  --shadow: 0 2px 12px rgba(20, 20, 30, 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Rajdhani", "Segoe UI", system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand, .neon { font-family: "Orbitron", "Rajdhani", "Segoe UI", system-ui, sans-serif; }
a { color: var(--red); text-decoration: none; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 900; letter-spacing: 1.5px; font-size: 19px;
}
.brand .logo { width: 34px; height: 34px; display: block; }
.brand .px { color: var(--red); }
.brand .store { color: var(--ink); }
.nav-links { display: flex; gap: 16px; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; font-size: 13px; }
.nav-links a:hover { color: var(--red); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 8px;
}
.nav-toggle span { width: 24px; height: 3px; background: var(--ink); border-radius: 2px; display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; cursor: pointer;
  font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; font-size: 13px;
  border: 1px solid transparent; transition: transform .12s ease, background .2s, box-shadow .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 4px 14px rgba(230, 0, 35, 0.25); }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-danger { background: #fff; border: 1px solid var(--red); color: var(--red); }
.btn-danger:hover { background: var(--red-soft); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 22px 64px; text-align: center; background: var(--bg-soft); }
.hero .tag {
  display: inline-block; padding: 6px 14px; border: 1px solid var(--line-strong);
  border-radius: 999px; color: var(--red); letter-spacing: 2px; font-size: 12px; text-transform: uppercase; margin-bottom: 18px; font-weight: 700;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 66px); margin: 0 0 12px; font-weight: 900; letter-spacing: 1px; color: var(--ink);
}
.hero h1 .accent { color: var(--red); }
.hero p { color: var(--muted); max-width: 620px; margin: 0 auto 26px; font-size: 18px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Section ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: 46px 22px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.section-head h2 { font-size: 26px; margin: 0; letter-spacing: 0.5px; }
.section-head .sub { color: var(--muted); font-size: 14px; }

/* ---------- Account grid / cards ---------- */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  position: relative; transition: transform .15s ease, box-shadow .25s ease, border-color .25s; box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(230, 0, 35, 0.12); border-color: var(--red); }
.card .thumb { position: relative; aspect-ratio: 4/3; background: var(--bg-soft); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 5px 10px; border-radius: 8px; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  background: #fff; border: 1px solid var(--line-strong);
}
.badge.feat { color: var(--red); border-color: var(--red); background: var(--red-soft); }
.badge.lvl { color: var(--ink); left: auto; right: 10px; border-color: var(--line); }
.card .body { padding: 14px 16px 18px; }
.card .title { font-weight: 800; font-size: 17px; margin: 0 0 6px; font-family: "Orbitron", sans-serif; }
.card .desc { color: var(--muted); font-size: 14px; min-height: 38px; }
.card .row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.price { font-family: "Orbitron", sans-serif; font-weight: 900; font-size: 22px; color: var(--red); }
.price small { font-size: 12px; color: var(--muted); font-weight: 600; }

.empty { text-align: center; color: var(--muted); padding: 60px 20px; border: 1px dashed var(--line-strong); border-radius: 16px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 30px 22px; text-align: center; color: var(--muted); font-size: 14px; background: var(--bg-soft); }
.footer .brand { justify-content: center; margin-bottom: 12px; }

/* ---------- Admin ---------- */
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 30px 22px 60px; }
.login-card {
  max-width: 400px; margin: 7vh auto; padding: 30px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 44px rgba(20, 20, 30, 0.1);
}
.login-card h2 { text-align: center; margin: 0 0 6px; letter-spacing: 1.5px; color: var(--ink); }
.login-card .hint { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 20px; }
label { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
input, textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line-strong); color: var(--ink);
  font-size: 15px; font-family: inherit; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
textarea { resize: vertical; min-height: 80px; }
.admin-grid { display: grid; grid-template-columns: 360px 1fr; gap: 24px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.panel.sticky { position: sticky; top: 90px; }
.preview-box {
  margin-top: 10px; border: 1px dashed var(--line-strong); border-radius: 12px; min-height: 120px;
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.preview-box img { max-width: 100%; max-height: 220px; display: block; }
.admin-list { display: grid; gap: 14px; }
.admin-item { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.admin-item img { width: 90px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--bg-soft); }
.admin-item .meta { flex: 1; min-width: 0; }
.admin-item .meta .t { font-weight: 700; }
.admin-item .meta .p { color: var(--red); font-weight: 700; }
.admin-item .acts { display: flex; gap: 8px; }
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; border: 1px solid var(--red);
  padding: 12px 18px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  opacity: 0; transition: opacity .25s; z-index: 100; pointer-events: none;
}
.toast.show { opacity: 1; }
.admin-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.pill { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; }
  .panel.sticky { position: static; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 22px 18px; display: none; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 4px; font-size: 14px; }
  .nav-links .btn { justify-content: center; margin-top: 6px; }
  .hero { padding: 56px 18px 44px; }
  .section { padding: 34px 18px; }
  .cards { grid-template-columns: 1fr; }
  .admin-item { flex-wrap: wrap; }
  .admin-item .acts { width: 100%; }
}
