:root {
  --bg: #F3F1EC;
  --surface: #FFFFFF;
  --ink: #14171C;
  --muted: #6B7280;
  --accent: #B08D2A;
  --line: #DAD5CB;
  --font-display: 'Fraunces', serif;
  --font-body: 'Work Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  border-bottom: 1px solid var(--line);
}

header .logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

header nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero {
  padding: 64px 40px 40px;
  max-width: 640px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero p {
  color: var(--muted);
  font-size: 16px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 32px;
  padding: 0 40px 64px;
}

.product-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
}

.product-card .image-wrap {
  aspect-ratio: 3 / 4;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card .name {
  font-family: var(--font-display);
  font-size: 17px;
  margin-bottom: 4px;
}

.product-card .price {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
}

.empty-state {
  padding: 64px 40px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 20px;
}

footer {
  padding: 32px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px 40px;
  max-width: 1100px;
}

.product-detail .image-wrap {
  aspect-ratio: 3 / 4;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.product-detail .image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail .info h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 8px;
}

.product-detail .info .price {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 24px;
}

.product-detail .info .description {
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.product-detail .info .stock {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 16px;
}

.add-to-cart-btn {
  background: var(--ink);
  color: var(--surface);
  border: none;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  width: 100%;
}

.add-to-cart-btn:hover {
  background: var(--accent);
}

.add-to-cart-btn:disabled {
  background: var(--muted);
  cursor: not-allowed;
}

@media (max-width: 700px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}


.cart-page {
  padding: 48px 40px;
  max-width: 700px;
}

.cart-page h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 32px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item .details .name {
  font-family: var(--font-display);
  font-size: 17px;
  margin-bottom: 4px;
}

.cart-item .details .qty {
  color: var(--muted);
  font-size: 14px;
}

.cart-item .price {
  font-family: var(--font-mono);
  font-size: 15px;
}

.cart-item .remove-btn {
  background: none;
  border: none;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  font-size: 13px;
  margin-left: 16px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  padding: 24px 0;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
}

.checkout-btn {
  background: var(--ink);
  color: var(--surface);
  border: none;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  width: 100%;
}

.checkout-btn:hover {
  background: var(--accent);
}

.email-input {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 14px;
  margin-bottom: 16px;
  background: var(--surface);
}