/* Sneakercopter: plain grey desktop-app look (JavaFX "Modena"-style controls). */
:root {
  --bg: #f4f4f4;
  --text: #333;
  --muted: #666;
  --border: #b5b5b5;
  --panel-border: #a8a8a8;
  --row-alt: #f9f9f9;
  --focus: #039ed3;
  --ok: #2e7d32;
  --err: #c62828;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 15px;
  color: var(--text);
  background: #dcdcdc;
}
* { box-sizing: border-box; }
body { margin: 0; padding: 24px 16px; }
a { color: #0b62a6; }

/* Window frame */
.window {
  max-width: 1040px; margin: 0 auto; background: var(--bg);
  border: 1px solid #8f8f8f; box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
.titlebar { background: #fff; border-bottom: 1px solid #dadada; padding: 6px 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #111; text-decoration: none; font-size: 15px; }

/* Tabs */
.tabs { display: flex; gap: 2px; padding: 8px 10px 0; border-bottom: 1px solid var(--border); background: #e4e4e4; }
.tab {
  padding: 5px 14px; color: var(--text); text-decoration: none;
  border: 1px solid var(--border); border-bottom: 0; border-radius: 3px 3px 0 0;
  background: linear-gradient(#f2f2f2, #dcdcdc);
}
.tab:hover { background: linear-gradient(#fafafa, #e6e6e6); }
.tab.selected { background: var(--bg); position: relative; top: 1px; }
.tab.selected, .tab:focus-visible { box-shadow: inset 0 0 0 1px var(--focus); }
.tab-content { padding: 16px 22px 28px; }

/* Panels (list-view look) */
.panel-title { font-size: 20px; font-weight: 400; text-align: center; margin: 14px 0 8px; }
.panel {
  background: #fff; border: 1px solid var(--panel-border);
  box-shadow: 0 1px 5px rgba(0, 0, 0, .35); margin: 0 0 20px;
}
.panel.empty, .panel.checkout { padding: 28px; text-align: center; }

/* Home */
.hero { display: flex; align-items: center; justify-content: center; gap: 24px; padding: 8px 0 4px; }
.hero h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.hero p { margin: 4px 0 0; color: var(--muted); }

.grid {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.card { border-right: 1px solid #ececec; border-bottom: 1px solid #ececec; }
.card:nth-child(even) { background: var(--row-alt); }
.card a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; color: var(--text); text-decoration: none; }
.card a:hover { background: #e8f4fa; }
.card a:focus-visible { outline: 1px solid var(--focus); outline-offset: -2px; }
.card img { width: 100%; height: auto; }
.card-price { color: var(--muted); }

/* Product */
.product { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; margin-top: 8px; }
.product-image { padding: 16px; }
.product-image img { width: 100%; height: auto; }
.product-info h1 { margin: 0 0 4px; font-size: 22px; font-weight: 600; }
.price { font-size: 18px; margin: 0 0 10px; }
.description { color: var(--muted); line-height: 1.5; margin: 0; }

.sizes { border: 0; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sizes legend { margin-bottom: 6px; }
.size {
  position: relative; display: flex; flex-direction: column; align-items: center; padding: 6px 4px;
  border: 1px solid var(--border); border-radius: 3px; background: linear-gradient(#fbfbfb, #e3e3e3); cursor: pointer;
}
.size:hover { background: linear-gradient(#fdfdfd, #ececec); }
.size input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.size:has(input:checked) { background: linear-gradient(#cfcfcf, #dedede); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25); }
.size:has(input:focus-visible) { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.size.sold-out { opacity: .45; cursor: default; }
.size.sold-out input { cursor: default; }
.size small { font-size: 11px; }

/* Buttons */
.btn {
  display: inline-block; padding: 4px 12px; font: inherit; color: var(--text); text-decoration: none; cursor: pointer;
  border: 1px solid var(--border); border-radius: 3px; background: linear-gradient(#fbfbfb, #e3e3e3);
}
.btn:hover { background: linear-gradient(#fdfdfd, #ececec); }
.btn:active { background: linear-gradient(#d6d6d6, #e4e4e4); }
.btn:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.btn.default { border-color: #7ea9c4; background: linear-gradient(#d8eef9, #acd6ec); }
.btn.default:hover { background: linear-gradient(#e2f3fb, #bfe0f1); }

/* Status lines */
.status { padding: 6px 10px; margin: 6px 0 10px; background: #fff; border: 1px solid var(--panel-border); }
.status.success { color: var(--ok); }
.status.error { color: var(--err); }

/* Cart */
table.cart { width: 100%; border-collapse: collapse; }
table.cart th { text-align: left; font-weight: 400; padding: 6px 10px; background: linear-gradient(#fafafa, #e6e6e6); border-bottom: 1px solid var(--border); }
table.cart td { padding: 6px 10px; vertical-align: middle; }
table.cart tbody tr:nth-child(even) { background: var(--row-alt); }
table.cart .item { display: flex; align-items: center; gap: 10px; }
form.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
input[type=number] { width: 60px; padding: 3px 6px; font: inherit; border: 1px solid var(--border); border-radius: 3px; background: #fff; }
input[type=number]:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }

.checkout-message { font-size: 18px; margin: 0; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 720px) {
  body { padding: 0; }
  .product { grid-template-columns: 1fr; }
  .hero { flex-direction: column; text-align: center; }
}
