:root {
  --color-cream: #fff8f0;
  --color-brown: #5d4037;
  --color-accent: #d84315;
  --color-accent-hover: #bf360c;
  --color-text: #3e2723;
  --color-muted: #8d6e63;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  margin: 0 0 1rem;
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

.site-header {
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-brown);
  text-decoration: none;
}

nav a {
  margin: 0 1rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
}

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

.header-actions button {
  margin-left: 0.75rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
}

.cart-btn {
  background: var(--color-cream);
  color: var(--color-brown);
}

.login-btn {
  background: var(--color-accent);
  color: #fff;
}

.hero {
  position: relative;
  min-height: 70vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(62, 39, 35, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.2rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

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

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
}

.section {
  padding: 4rem 0;
}

.section.alt {
  background: #fff;
}

.section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--color-brown);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.categories-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.products-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-4px);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 1.25rem;
}

.category-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-brown);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  background: #fff;
  border: 1px solid var(--color-muted);
  color: var(--color-text);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-grid img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-footer {
  background: var(--color-brown);
  color: #fff;
  text-align: center;
  padding: 1.5rem 0;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: var(--radius);
  width: 90%;
  max-width: 420px;
  padding: 1.5rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal label {
  display: block;
  margin: 0.75rem 0 0.25rem;
  font-weight: 600;
}

.modal input {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.modal .btn-primary {
  width: 100%;
  margin-top: 1rem;
}

.error {
  color: #c62828;
  margin-top: 0.5rem;
}

.message {
  margin-top: 0.5rem;
  color: var(--color-brown);
  font-weight: 600;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.cart-total {
  text-align: right;
  font-weight: 700;
  margin-top: 0.75rem;
}

.checkout-form {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  nav {
    display: none;
  }
}
