/* Deliberately minimal. Will be replaced by a real design later. */

:root {
  --fg: #1d1d1f;
  --muted: #6b6b70;
  --bg: #ffffff;
  --surface: #f6f4f1;
  --accent: #8a3b4f;
  --error: #b3261e;
  --radius: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
h1 { font-size: 1.75rem; line-height: 1.2; margin: 1.5rem 0 .5rem; }
h2 { font-size: 1.1rem; margin: .5rem 0; }

.container { max-width: 960px; margin: 0 auto; padding: 0 16px; }

.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid #eee;
  position: sticky; top: 0; background: var(--bg); z-index: 1;
}
.logo { font-weight: 700; font-size: 1.25rem; text-decoration: none; color: var(--fg); }
.cart-badge { text-decoration: none; font-weight: 600; }
.cart-badge .count {
  display: inline-block; min-width: 1.5em; padding: 0 .4em; border-radius: 999px;
  background: var(--accent); color: #fff; text-align: center; font-size: .85em;
}

.lead { color: var(--muted); margin-top: 0; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: .9rem; }
.error { color: var(--error); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Products */
.product-grid {
  list-style: none; padding: 0; margin: 1.5rem 0;
  display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.product-card a { color: inherit; text-decoration: none; display: block; }
.product-card h2 { margin: .5rem 0 0; }
.price { font-weight: 600; margin: .25rem 0; }
.swatch-image { aspect-ratio: 1; border-radius: var(--radius); }
.swatch-image.large { width: 100%; max-width: 420px; }
.dot {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.15); vertical-align: middle; margin-right: 4px;
}
.sold-out { color: var(--muted); font-size: .85rem; }

.product { display: grid; gap: 24px; margin-top: 1.5rem; }
@media (min-width: 720px) { .product { grid-template-columns: 1fr 1fr; } }
.variants { border: 0; padding: 0; margin: 1rem 0; }
.variants legend { font-weight: 600; margin-bottom: .25rem; }
.variant { display: flex; align-items: center; gap: 6px; padding: 6px 0; }
.variant.disabled { color: var(--muted); }
.qty { display: block; margin: 1rem 0; }
.qty input { width: 5rem; margin-left: .5rem; }
.add-result { min-height: 1.5em; }

/* Forms & buttons */
button, .button {
  display: inline-block; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--accent); color: #fff; border: 0; border-radius: var(--radius);
  padding: 12px 20px; text-decoration: none; min-height: 44px;
}
button:disabled { opacity: .5; cursor: not-allowed; }
button.link { background: none; color: var(--accent); padding: 0; min-height: 0; text-decoration: underline; font-weight: 400; }
input { font: inherit; padding: 10px; border: 1px solid #ccc; border-radius: 6px; }

/* Cart */
.cart-lines { list-style: none; padding: 0; }
.cart-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid #eee;
}
.cart-line-name { flex: 1 1 160px; }
.cart-line-name small { display: block; color: var(--muted); }
.cart-line input[type=number] { width: 4.5rem; }
.line-total { font-weight: 600; margin-left: auto; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; max-width: 360px; margin-left: auto; }
.totals dd { margin: 0; text-align: right; }
.totals .total { font-weight: 700; font-size: 1.1rem; }

/* Checkout */
.checkout { display: grid; gap: 32px; }
@media (min-width: 720px) { .checkout { grid-template-columns: 3fr 2fr; } }
.field { margin-bottom: 12px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; }
.field input { width: 100%; }
.field.invalid input { border-color: var(--error); }
.field .error { margin: 4px 0 0; font-size: .9rem; }
.summary { background: var(--surface); border-radius: var(--radius); padding: 16px; align-self: start; }
.summary ul { list-style: none; padding: 0; }
.summary li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; }

.site-footer { color: var(--muted); font-size: .85rem; margin-top: 3rem; padding-bottom: 2rem; }
