/* KitLoop — mobile-first, no framework. Sporty but calm. */
:root {
  --ink: #16181d; --ink-soft: #5c6470; --paper: #fafbfc; --card: #ffffff;
  --line: #e4e8ee; --accent: #0e9f6e; --accent-dark: #0b7f58; --warn: #b45309;
  --danger: #b91c1c; --radius: 10px;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--paper); }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
main { max-width: 1080px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.5rem; margin: 0.6em 0; } h2 { font-size: 1.15rem; margin: 1.2em 0 0.5em; }
.muted { color: var(--ink-soft); font-size: 0.9em; } .num { text-align: right; }
.danger { color: var(--danger); }

.banner { text-align: center; padding: 8px 12px; font-weight: 600; font-size: 0.9rem; }
.banner-test { background: #fef3c7; color: #92400e; }
.banner-soft { background: #d1fae5; color: #065f46; }

.site-head, .admin-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.logo { font-weight: 800; font-size: 1.3rem; color: var(--ink); letter-spacing: -0.5px; }
.logo-dot { color: var(--accent); }
.site-head nav a, .admin-head nav a { margin-right: 14px; font-weight: 600; color: var(--ink); }
.head-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.search input { padding: 7px 12px; border: 1px solid var(--line); border-radius: 20px; width: 150px; }
.basket-link { font-weight: 700; }

.hero { text-align: center; padding: 40px 16px; }
.hero h1 { font-size: 2rem; letter-spacing: -1px; }
.hero p { color: var(--ink-soft); max-width: 34em; margin: 0.5em auto 1.2em; }

.btn { display: inline-block; padding: 9px 16px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--card); color: var(--ink);
  font-weight: 600; font-size: 0.95rem; cursor: pointer; }
.btn:hover { text-decoration: none; border-color: var(--ink-soft); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-big { padding: 13px 26px; font-size: 1.05rem; width: 100%; text-align: center; }
.btn-small { padding: 4px 10px; font-size: 0.85rem; }
.btn-link { background: none; border: none; color: var(--accent-dark); cursor: pointer;
  padding: 0; font-size: 0.9em; text-decoration: underline; }
.btn-link.danger { color: var(--danger); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: var(--ink); display: flex; flex-direction: column; }
.card:hover { text-decoration: none; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.card-img { position: relative; aspect-ratio: 1; background: #eef1f5; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.no-photo { display: flex; align-items: center; justify-content: center; height: 100%;
  color: var(--ink-soft); font-size: 0.85rem; }
.no-photo.big { aspect-ratio: 1; border-radius: var(--radius); background: #eef1f5; }
.card-body { padding: 10px 12px; }
.card-brand { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-soft); font-weight: 700; min-height: 1em; }
.card-title { font-weight: 600; font-size: 0.95rem; }
.card-meta { color: var(--ink-soft); font-size: 0.85rem; }
.card-price { font-weight: 800; margin-top: 4px; }
.rrp { color: var(--ink-soft); font-weight: 400; font-size: 0.85em; margin-left: 6px; }

.tag { display: inline-block; padding: 2px 9px; border-radius: 20px; background: #eef1f5;
  font-size: 0.78rem; font-weight: 600; }
.tag-new { background: var(--accent); color: #fff; position: absolute; top: 8px; left: 8px; }
.item-meta .tag-new { position: static; }
.tag-live { background: #d1fae5; color: #065f46; } .tag-draft { background: #fef3c7; color: #92400e; }
.tag-sold_out, .tag-archived { background: #e5e7eb; color: #4b5563; }
.tag-paid { background: #dbeafe; color: #1e40af; } .tag-shipped { background: #d1fae5; color: #065f46; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 14px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--card); color: var(--ink); font-weight: 600; font-size: 0.9rem; }

.item-page { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .item-page { grid-template-columns: 1.1fr 1fr; } }
.gallery img#main-photo { width: 100%; height: auto; border-radius: var(--radius); }
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; cursor: pointer; }
.item-price { font-size: 1.6rem; font-weight: 800; margin: 12px 0; }
.item-desc { margin-top: 16px; white-space: pre-line; }
.trust { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 12px; }
.trust p { margin: 4px 0; font-size: 0.9rem; color: var(--ink-soft); }
.soldout { font-weight: 600; color: var(--warn); }
.qty { width: 64px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.filters select, .filters input { padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--card); font-size: 0.9rem; }
.pager { display: flex; justify-content: space-between; margin: 20px 0; }

.notice { background: #fef3c7; border: 1px solid #fde68a; color: #92400e;
  padding: 10px 14px; border-radius: var(--radius); }
.empty-state { text-align: center; color: var(--ink-soft); padding: 30px 0; }
.narrow { max-width: 520px; margin: 0 auto; } .center { text-align: center; }
.prose ul { padding-left: 1.2em; }

.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-small { display: flex; flex-direction: column; gap: 4px; }
.stack label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 0.9rem; }
.stack input, .stack select, .stack textarea { padding: 10px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 1rem; font-family: inherit; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } .span2 { grid-column: span 2; } }
.hp { position: absolute; left: -9999px; }

.basket-table, .table { width: 100%; border-collapse: collapse; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table td, .table th, .basket-table td { padding: 10px 12px; border-bottom: 1px solid var(--line);
  text-align: left; vertical-align: top; }
.table tr:last-child td, .basket-table tr:last-child td { border-bottom: none; }
.totals td { font-weight: 600; } .grand td { font-weight: 800; font-size: 1.05em; }
.row-warn { background: #fff7ed; }
.thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.thumb-cell { width: 64px; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px; margin: 16px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; text-align: center; }
.stat-n { font-size: 1.4rem; font-weight: 800; } .stat-l { color: var(--ink-soft); font-size: 0.8rem; }
.row-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.row-gap { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.inline { display: inline-flex; gap: 8px; align-items: center; }
.two-col { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; } }

.photo-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.photo-tile { width: 110px; text-align: center; }
.photo-tile img { width: 110px; height: 110px; object-fit: cover; border-radius: 8px; }
.upload-zone { border: 2px dashed var(--line); border-radius: var(--radius); padding: 20px;
  text-align: center; margin: 12px 0; background: var(--card); }
.upload-zone.drag { border-color: var(--accent); background: #ecfdf5; }
.upload-zone input[type=file] { width: 100%; }

.site-foot { text-align: center; padding: 24px 16px; color: var(--ink-soft);
  border-top: 1px solid var(--line); margin-top: 40px; font-size: 0.9rem; }
