:root {
  --ink: #1c1a17;
  --paper: #faf8f4;
  --line: #e4ded2;
  --accent: #b8501f;
  --accent-dark: #8f3c14;
  --muted: #706a5c;
  --card: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

header.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo span { color: var(--accent); }

.cart-link {
  border: 1px solid var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.cart-link:hover { background: var(--ink); color: var(--paper); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.filters a {
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}

.filters a.active, .filters a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin: 24px 0 60px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f0ede4;
}

.product-card .no-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f0ede4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
}

.product-card .info {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-card .type {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.product-card .title {
  font-weight: 600;
  font-size: 15px;
}

.product-card .price {
  margin-top: auto;
  font-weight: 700;
  color: var(--accent-dark);
}

.badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3e3d3;
  color: var(--accent-dark);
  width: fit-content;
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover { background: var(--accent-dark); }

.btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 32px 0 60px;
}

@media (max-width: 720px) {
  .product-detail { grid-template-columns: 1fr; }
}

.product-detail img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.product-detail .no-image {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f0ede4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.price-lg {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-dark);
  margin: 8px 0 20px;
}

select, input[type=number], input[type=text], input[type=email], input[type=tel], textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 100%;
  margin-bottom: 14px;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}

table.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

table.cart-table th, table.cart-table td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.cart-total-row {
  font-weight: 700;
  font-size: 18px;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  margin-top: 60px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.notice {
  background: #f3e3d3;
  border: 1px solid #e2c199;
  color: var(--accent-dark);
  padding: 14px 18px;
  border-radius: 10px;
  margin: 20px 0;
  font-size: 14px;
}

.qty-form { display: flex; align-items: center; gap: 8px; }
.qty-form input { width: 60px; margin-bottom: 0; }
