/* Matches danallison.info: light-only, system fonts, centered white card on
 * a light gray field, square corners, subtle shadows, #0969da links. */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #eee;
  color: #1f2328;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.store-body {
  margin: 0 auto;
  max-width: 800px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  min-height: 100vh;
}

a {
  color: #0969da;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.store-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #d1d9e0;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.store-header h1 {
  font-size: 1.4em;
  margin: 0;
}

.store-header h1 a {
  color: #1f2328;
}

.store-header nav {
  display: flex;
  gap: 16px;
}

.store-footer {
  margin-top: 40px;
  border-top: 1px solid #d1d9e0;
  padding-top: 12px;
  font-size: 0.85em;
  color: #59636e;
}

.flash {
  padding: 8px 12px;
  margin-bottom: 16px;
}

.flash-notice {
  background: #dafbe1;
}

.flash-alert {
  background: #ffebe9;
}

/* Gallery grid, same rhythm as the site's drawing galleries */
.drawing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.drawing-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
  display: block;
}

.drawing-card figcaption {
  font-size: 0.75em;
  color: #59636e;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Product pages */
.product-page {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}

.product-image {
  flex: 1 1 280px;
}

.product-image img {
  max-width: 100%;
  box-shadow: -3px 3px 10px rgba(0, 0, 0, 0.3);
}

.product-details {
  flex: 1 1 300px;
}

.price {
  font-size: 1.3em;
  font-weight: 600;
}

.sku-picker label {
  display: block;
  padding: 8px 10px;
  border: 1px solid #d1d9e0;
  margin-bottom: 6px;
  cursor: pointer;
}

.sku-picker label:has(input:checked) {
  border-color: #0969da;
  background: #f3f8ff;
}

.sku-group-title {
  margin: 14px 0 6px;
  font-weight: 600;
  font-size: 0.9em;
  color: #59636e;
}

button,
.button {
  background: #1f2328;
  color: #fff;
  border: none;
  padding: 10px 18px;
  font-size: 1em;
  cursor: pointer;
  font-family: inherit;
}

button:hover,
.button:hover {
  background: #0969da;
}

/* Cart & order tables */
.line-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.line-table th,
.line-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid #d1d9e0;
}

.line-table td.amount,
.line-table th.amount {
  text-align: right;
}

.remove-link {
  color: #d1242f;
  font-size: 0.85em;
}

/* Order status timeline */
.status-list {
  list-style: none;
  padding: 0;
}

.status-list li {
  padding: 10px 12px;
  border: 1px solid #d1d9e0;
  margin-bottom: 8px;
}

.status-badge {
  display: inline-block;
  font-size: 0.8em;
  padding: 2px 8px;
  background: #eee;
  text-transform: capitalize;
}

.status-badge.status-shipped,
.status-badge.status-delivered {
  background: #dafbe1;
}

.status-badge.status-error {
  background: #ffebe9;
}

.pagy-nav {
  margin: 20px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pagy-nav .page a,
.pagy-nav .page.active,
.pagy-nav .page.prev,
.pagy-nav .page.next {
  padding: 4px 10px;
  border: 1px solid #d1d9e0;
}

.pagy-nav .page.active {
  background: #1f2328;
  color: #fff;
}
