:root{
  --bg:#ffffff;
  --panel:#ffffff;
  --panel-2:#f6f6f7;
  --text:#111111;
  --muted:#565656;
  --accent:#111111;
  --accent-2:#111111;
  --border:#e5e5e8;
  --shadow:0 10px 30px rgba(0,0,0,.08);
  --radius:14px;
}


* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.nav { display: flex; gap: 16px; }

.header-actions { display: flex; gap: 10px; align-items: center; }

.badge {
  display: inline-block;
  background: var(--yellow);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  margin-left: 8px;
}

.badge.warn { background: #ffb14a; }

.site-main { padding: 32px 0 64px; }

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
  padding: 28px;
  background: var(--panel);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  animation: fadeUp 0.6s ease;
}

.hero .eyebrow { color: var(--yellow); letter-spacing: 2px; text-transform: uppercase; font-size: 12px; }
.hero h1 { font-size: 36px; margin: 8px 0; }
.hero p { color: var(--muted); }

.hero-card {
  background: var(--panel-2);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.card-top { color: var(--pink); font-weight: 600; }

.section { margin-top: 40px; }
.section-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.section-head.small { margin-bottom: 8px; }

.grid { display: grid; gap: 16px; }
.grid.products { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid.checkout { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.stats { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.product-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display:flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border 0.2s ease;
}

.product-card:hover { transform: translateY(-4px); border-color: #343447; }

.product-title { font-weight: 600; }
.product-price { font-weight: 700; font-size: 18px; }
.product-price.big { font-size: 24px; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.card.narrow { max-width: 420px; }

.lead { color: var(--muted); }

.variants { display: grid; gap: 12px; }
.variant-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding: 12px; background: var(--panel-2); border-radius: 12px; border: 1px solid var(--border); }

.inline-form { display:flex; align-items:center; gap:8px; }

.qty-input { width: 70px; }

.cart-row { display:flex; justify-content:space-between; align-items:center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.cart-row:last-child { border-bottom: none; }
.cart-actions { display:flex; gap: 12px; align-items:center; }

.total-row { display:flex; justify-content:space-between; padding: 8px 0; }
.total-row.total { font-weight: 700; font-size: 18px; }

.table { display:grid; gap: 8px; }
.table-row { display:grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.table-row.head { color: var(--muted); text-transform: uppercase; font-size: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 16px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
}

.btn.primary { background: var(--accent); color: #fff; }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn.danger { background: #ff6b6b; color: #fff; }
.btn.full { width: 100%; }

.icon-btn { background: none; border: none; color: var(--text); font-size: 20px; }

.muted { color: var(--muted); font-size: 14px; }

.flash { display: none; }

.toast-root { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 100; }
.toast {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 12px;
  min-width: 220px;
  animation: fadeUp 0.3s ease;
}
.toast.success { border-color: #57d37f; }
.toast.error { border-color: #ff6b6b; }

.drawer { position: fixed; inset: 0; display: none; background: rgba(0,0,0,0.4); }
.drawer.open { display: block; }
.drawer-panel {
  position: absolute; right: 0; top: 0; height: 100%; width: min(360px, 90vw);
  background: var(--panel);
  border-left: 1px solid var(--border);
  padding: 16px;
  display: flex; flex-direction: column; gap: 16px;
  animation: slideIn 0.3s ease;
}
.drawer-head { display:flex; justify-content:space-between; align-items:center; }
.drawer-body { display: grid; gap: 12px; }

.site-footer { border-top: 1px solid var(--border); padding: 24px 0; }
.footer-row { display:flex; justify-content:space-between; align-items:center; }
.footer-links { display:flex; gap: 12px; }

.admin .site-header { display:none; }
.admin-shell { display:flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: var(--panel); border-right: 1px solid var(--border); padding: 20px; display: grid; gap: 20px; }
.admin-sidebar nav { display: grid; gap: 10px; }
.admin-main { flex: 1; padding: 24px; }
.admin-topbar { display:flex; justify-content:space-between; margin-bottom: 16px; }
.admin-login { padding: 40px; }

.stat-card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
.stat-value { font-size: 24px; font-weight: 700; }

.radio { display:flex; align-items:center; gap: 8px; margin-bottom: 8px; }

.divider { height: 1px; background: var(--border); margin: 12px 0; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { transform: translateX(10px); }
  to { transform: translateX(0); }
}

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; }
  .nav { display:none; }
  .header-row { justify-content: space-between; }
  .table-row { grid-template-columns: 1fr 1fr; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; }
}
input, select, textarea {
  width: 100%;
  background: #0f0f14;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  margin-top: 6px;
}

label { display: block; margin-bottom: 12px; }

.actions { display: flex; gap: 10px; }

.full { width: 100%; }

.hero-actions { display: flex; gap: 12px; margin-top: 16px; }
.hero-content { display: grid; gap: 8px; }
.product-info { display: grid; gap: 6px; }
.card-title { font-weight: 700; font-size: 18px; }
.card-text { color: var(--muted); }
.inline { display: inline-flex; align-items: center; gap: 6px; }
.product-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #0f0f14;
}

.product-image.large {
  height: 260px;
  margin-bottom: 16px;
}

.product-image.placeholder {
  height: 180px;
  border-radius: 14px;
  border: 1px dashed var(--border);
  background: linear-gradient(135deg, rgba(255,209,89,0.12), rgba(255,92,168,0.12));
}


.announcement{
  background:#111;
  color:#fff;
  font-size:13px;
}
.announcement .container{
  display:flex;
  align-items:center;
  justify-content:center;
  height:34px;
  gap:10px;
}
.announcement a{ text-decoration:underline; }

.category-bar{
  border-bottom:1px solid var(--border);
  background:#fff;
}
.category-bar .container{
  display:flex;
  gap:14px;
  overflow:auto;
  padding:10px 20px;
  scrollbar-width:none;
}
.category-bar .container::-webkit-scrollbar{ display:none; }
.category-link{
  white-space:nowrap;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--panel);
  font-size:13px;
}
.category-link.active{
  border-color:#111;
  box-shadow:0 0 0 1px #111 inset;
}

.hero{
  grid-template-columns:1fr;
  padding:26px;
  border-radius:var(--radius);
}
.hero h1{ font-size:34px; }
.hero .eyebrow{ color:#111; letter-spacing:1.5px; }
.hero-card{ border-radius:var(--radius); }

.product-card{
  border-radius:var(--radius);
  box-shadow:none;
}
.product-card:hover{ transform: translateY(-2px); }

.site-footer{
  border-top:1px solid var(--border);
  padding:28px 0;
  color:var(--muted);
}
.footer-links{ display:flex; flex-wrap:wrap; gap:14px; font-size:14px; }
.footer-links a{ text-decoration:underline; }

.promo-strip{
  margin-top:24px;
  padding:18px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--panel-2);
}
.promo-strip form{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }
.promo-strip input{ flex:1; min-width:220px; }
