/* =========================
   CSS RESET & VARIABLES
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #111;
  --muted: #666;
  --accent: #000;
  --accent-hover: #333;
  --border: #e5e7eb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --card: #1a1d23;
    --text: #f5f5f5;
    --muted: #a1a1aa;
    --accent: #ffffff;
    --accent-hover: #e5e7eb;
    --border: #2a2f38;
  }
}

/* =========================
   GLOBAL
========================= */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

img {
  max-width: 100%;
  display: block;
}

/* =========================
   HEADER
========================= */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 42px;
}

.cart-indicator {
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

/* =========================
   HERO
========================= */
.hero {
  text-align: center;
  padding: 60px 20px 40px;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 10px;
}

.hero p {
  color: var(--muted);
  font-size: 16px;
}

/* =========================
   CONTAINER
========================= */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px 60px;
}

/* =========================
   PRODUCTS
========================= */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.product-card img {
  border-radius: 12px;
  margin-bottom: 16px;
  max-width: none;
}

.product-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.price {
  color: var(--muted);
  margin-bottom: 16px;
}

/* =========================
   BUTTONS
========================= */
button {
  font-family: inherit;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: var(--bg);
  transition: transform .1s ease, background .2s ease;
}

button:hover {
  background: var(--accent-hover);
}

button:active {
  transform: scale(.98);
}

/* =========================
   CHECKOUT BAR
========================= */
.checkout-bar {
  margin-top: 50px;
  text-align: center;
}

.checkout-bar button {
  padding: 16px 36px;
  font-size: 17px;
}

/* =========================
   TRUST BADGES
========================= */
.trust-badges {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
  color: var(--muted);
}

/* =========================
   FOOTER
========================= */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 30px 20px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* =========================
   ADMIN (BASIC)
========================= */
.center {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.card {
  background: var(--card);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid var(--border);
  width: 100%;
  max-width: 360px;
}

.card input {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

.card button {
  width: 100%;
}

.error {
  color: #ef4444;
  margin-bottom: 10px;
}
