:root {
  --bg: #071428;
  --panel: rgba(255,255,255,.08);
  --panel-strong: rgba(255,255,255,.13);
  --text: #eef6ff;
  --muted: #a9bdd7;
  --blue: #28a9ff;
  --gold: #ffd35a;
  --danger: #ff7676;
  --radius: 24px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #1048b3 0, #071428 45%, #020710 100%);
  color: var(--text);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(7,20,40,.72);
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 70px);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.brand { font-weight: 900; letter-spacing: .02em; }
nav { display: flex; gap: 18px; color: var(--muted); }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 80px; }
.hero {
  min-height: 260px;
  display: flex; align-items: center;
  padding: 40px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(40,169,255,.28), rgba(255,211,90,.14));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 90px rgba(0,0,0,.32);
  margin-bottom: 32px;
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 5.2rem); line-height: .95; margin: 0 0 18px; max-width: 850px; }
.hero p { color: var(--muted); max-width: 650px; font-size: 1.1rem; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 800; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 22px; }
.card, .panel {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
}
.card { overflow: hidden; }
.card img, .product-detail img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; background: rgba(255,255,255,.05); }
.card-body { padding: 18px; }
.card h2 { margin: 0 0 8px; font-size: 1.2rem; }
.price { color: var(--gold); font-weight: 900; font-size: 1.1rem; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sizes span, .mini-size {
  background: rgba(255,255,255,.1);
  color: var(--muted);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: .82rem;
}
.placeholder { aspect-ratio: 1/1; display: grid; place-items: center; font-weight: 1000; font-size: 2rem; color: rgba(255,255,255,.28); background: linear-gradient(135deg, rgba(40,169,255,.4), rgba(255,211,90,.2)); }
.placeholder.big { width: 100%; border-radius: var(--radius); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.product-detail > div { min-width: 0; }
.product-detail img { border-radius: var(--radius); }
.big-price { font-size: 1.8rem; }
.description { color: var(--muted); line-height: 1.7; }
.note, .small { color: var(--muted); font-size: .92rem; }
.empty { color: var(--muted); text-align: center; padding: 60px; border: 1px dashed rgba(255,255,255,.22); border-radius: var(--radius); }
.auth { max-width: 460px; margin: 40px auto; }
.panel { padding: 24px; }
label { display: grid; gap: 8px; margin: 16px 0; color: var(--muted); }
input, textarea {
  width: 100%; border: 1px solid rgba(255,255,255,.14); border-radius: 14px;
  padding: 13px 14px; background: rgba(0,0,0,.24); color: var(--text);
  font: inherit;
}
textarea { resize: vertical; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; padding: 12px 18px;
  background: var(--blue); color: white; font-weight: 800; cursor: pointer;
}
.ghost { background: rgba(255,255,255,.1); }
.error { background: rgba(255,118,118,.14); border: 1px solid rgba(255,118,118,.3); color: #ffd2d2; padding: 12px 14px; border-radius: 14px; }
.admin-top, .actions, .row-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.row-actions { justify-content: flex-end; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 14px; border-bottom: 1px solid rgba(255,255,255,.08); vertical-align: top; }
th { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.row-actions form { margin: 0; }
.link-danger { background: transparent; color: var(--danger); padding: 0; }
.product-form { max-width: 760px; margin: 0 auto; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; align-items: center; grid-template-columns: auto 1fr; gap: 10px; }
.check input { width: auto; }
code { display: block; background: rgba(0,0,0,.3); padding: 12px; border-radius: 12px; overflow: auto; }
.wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .site-header { align-items: flex-start; gap: 12px; flex-direction: column; }
  .hero { padding: 24px; }
  .product-detail, .two { grid-template-columns: 1fr; }
  .admin-top { align-items: flex-start; flex-direction: column; }
  table, thead, tbody, tr, td, th { display: block; }
  thead { display: none; }
  tr { border-bottom: 1px solid rgba(255,255,255,.12); padding: 12px 0; }
  td { border: 0; padding: 8px 0; }
}
.current-image-note { color: var(--muted); font-size: .9rem; }
.admin-preview { width: 160px; aspect-ratio: 1/1; object-fit: cover; border-radius: 16px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); }
.sizes-editor { margin: 22px 0; }
.sizes-editor h2 { margin-bottom: 4px; }
.sizes-table input { min-width: 110px; }
.sizes-table td { padding: 8px 10px 8px 0; }
.sizes-table th { padding-left: 0; }
@media (max-width: 760px) {
  .sizes-table thead { display: none; }
  .sizes-table tr { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 14px; }
  .sizes-table td { padding: 0; }
}
