/* GodSMP store — responsive styles (desktop → mobile) */
* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #0f0f0f;
  color: #fff;
  overflow-x: hidden;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; border-radius: 8px; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: #151515;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo { font-weight: bold; font-size: 22px; white-space: nowrap; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #fff;
  margin-left: 14px;
  cursor: pointer;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 15px;
  transition: background 0.15s;
}

.nav-links a:hover { background: rgba(255, 255, 255, 0.08); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  padding: 11px 9px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  margin: 4px 0;
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- hero ---------- */
.hero {
  text-align: center;
  padding: clamp(44px, 9vw, 84px) 20px;
  background: linear-gradient(135deg, #6a00ff, #00d4ff);
}

.hero h1 {
  font-size: clamp(32px, 7vw, 52px);
  margin: 0 0 10px;
  line-height: 1.1;
}

.hero p { font-size: clamp(15px, 3.6vw, 18px); opacity: 0.95; margin: 0 0 8px; }

.hero .btn { margin-top: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  font-family: inherit;
  transition: transform 0.12s, opacity 0.15s;
}

.btn:active { transform: scale(0.98); }

.btn-primary { background: #000; color: #fff; }
.btn-secondary { background: #fff; color: #000; }

/* ---------- grids ---------- */
.products, .staff {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 40px 20px;
}

.card, .staff-card {
  background: #1b1b1b;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card:hover, .staff-card:hover { transform: scale(1.03); }

.card img, .staff-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0 auto;
}

.card h3, .staff-card h3 { margin: 0; font-size: 18px; }

.price { color: #00d4ff; font-weight: bold; margin: 0; font-size: 18px; }

.card .btn { width: 100%; }

/* ---------- admin / login / cart panels ---------- */
#admin-panel, #login-panel, #cart-panel {
  display: none;
  background: #222;
  padding: 22px;
  color: #fff;
  position: fixed;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: min(380px, calc(100vw - 32px));
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 12px;
  z-index: 50;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

#admin-panel input, #login-panel input, #cart-panel input {
  width: 100%;
  margin: 6px 0;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #444;
  background: #151515;
  color: #fff;
  font-size: 16px;
  font-family: inherit;
}

#admin-panel input:focus, #login-panel input:focus, #cart-panel input:focus {
  outline: 2px solid #00d4ff;
  border-color: transparent;
}

#admin-panel button, #login-panel button { margin: 6px 0; width: 100%; }
#admin-panel h3 { margin: 18px 0 8px; }

/* ---------- cart ---------- */
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-item .btn { min-height: 40px; padding: 8px 16px; font-size: 14px; }

.cart-total { font-weight: bold; margin-top: 10px; font-size: 18px; }

.page-title { text-align: center; margin: 28px 0 0; font-size: clamp(22px, 5vw, 30px); }

/* ---------- footer ---------- */
.footer {
  text-align: center;
  padding: 24px 20px;
  background: #151515;
  margin-top: 40px;
  color: #aaa;
  font-size: 14px;
}

/* ---------- focus visibility ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid #00d4ff;
  outline-offset: 2px;
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #151515;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    border-top: 1px solid #333;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    margin-left: 0;
    padding: 14px 12px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links a:last-child { border-bottom: none; }

  .products, .staff {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    padding: 28px 16px;
  }

  .card, .staff-card { padding: 16px; }

  .card h3, .staff-card h3 { font-size: 16px; }

  #admin-panel, #login-panel, #cart-panel { top: 4%; }
}
