:root {
  --color-bg: #faf9f7;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #6b6b6b;
  --color-accent: #8b4513;
  --color-accent-hover: #6d360f;
  --color-border: #e5e2dd;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 960px;
  --radius: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
}

nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-left: 1.5rem;
}

nav a:hover {
  color: var(--color-text);
}

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 0 3rem;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 0 4rem;
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

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

.product-card-body {
  padding: 1.25rem;
}

.product-card-body h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.product-card-body .roast {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.product-card-body .notes {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.product-card-body .price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-accent);
}

/* PDP */
.pdp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem 0 4rem;
  align-items: start;
}

@media (max-width: 640px) {
  .pdp {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.pdp-image img {
  width: 100%;
  border-radius: var(--radius);
}

.pdp-details h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.pdp-details .roast-badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 1rem;
}

.pdp-details .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.pdp-details .description {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.pdp-details .meta {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.pdp-details .meta dt {
  font-weight: 600;
  display: inline;
}

.pdp-details .meta dd {
  display: inline;
  margin-left: 0;
  color: var(--color-text-muted);
}

.pdp-details .meta dd::after {
  content: "";
  display: block;
  margin-bottom: 0.4rem;
}

.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
}

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

/* Footer */
footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
