:root {
  --everblack: #1a1a1a;
  --evergold: #c9a962;
  --bg-cream: #f8f6f3;
  --text-muted: #666;
  --border: #eee;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--everblack);
  background: #fff;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; font-weight: 400; margin: 0 0 0.5em; }

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

/* Header/footer styles now live in nav.css */

/* Page header */
.page-header { padding: 6rem 5% 2.5rem; background: var(--bg-cream); text-align: center; }
.page-header h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: 0.05em; text-transform: uppercase; }
.page-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 1rem; line-height: 1.6; }

/* About page */
.about-section { padding: 8rem 5% 4rem; background: #fff; }
.about-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-image img { width: 100%; height: auto; display: block; border-radius: 4px; }
.about-content h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.5rem; }
.about-content p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 2rem; color: #333; }
.about-content ul { list-style: none; padding: 0; margin: 0; }
.about-content li { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; font-size: 1rem; color: #333; }
.about-content li svg { flex-shrink: 0; }
@media (max-width: 768px) {
  .about-container { grid-template-columns: 1fr; gap: 2rem; }
}

/* Product grid */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 3rem 5%; max-width: 1200px; margin: 0 auto; }
.product-card { border-radius: 8px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; background: #fff; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.product-card a { display: block; text-decoration: none; color: inherit; position: relative; }
.product-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; background: #f5f5f5; }
.product-card .badge { position: absolute; top: 1rem; left: 1rem; padding: 0.25rem 0.75rem; border-radius: 0; font-size: 0.75rem; color: #fff; text-transform: uppercase; letter-spacing: 0.05em; }
.product-card .info { padding: 1.5rem; }
.product-card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; font-weight: 400; }
.product-card .desc { color: var(--text-muted); font-size: 0.875rem; margin: 0 0 1rem; }
.product-card .price-row { display: flex; justify-content: space-between; align-items: center; }
.product-card .price { font-weight: 500; font-size: 1rem; }
.product-card .btn-add { background: #1a1a1a; color: #fff; border: none; padding: 0.5rem 1rem; border-radius: 4px; cursor: pointer; font-family: inherit; font-size: 0.875rem; }
.product-card .btn-add:hover { background: var(--evergold); }
.hidden-product { display: none; }

.products-section { background: var(--bg-cream); min-height: 60vh; }

/* Category filter bar */
.filter-bar { padding: 1.5rem 5%; background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 60px; z-index: 50; }
.filter-bar-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.filter-btn { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border: 1px solid #ddd; background: #fff; border-radius: 4px; cursor: pointer; font-family: inherit; font-size: 0.875rem; color: #1a1a1a; }
.sort-wrap { display: flex; align-items: center; gap: 1rem; }
.sort-wrap span { font-size: 0.875rem; color: var(--text-muted); }
.sort-wrap select { padding: 0.5rem 1rem; border: 1px solid #ddd; background: #fff; border-radius: 4px; font-family: inherit; font-size: 0.875rem; color: #1a1a1a; cursor: pointer; }
.results-count { font-size: 0.875rem; color: var(--text-muted); }

.load-more-wrap { text-align: center; margin-top: 1rem; padding-bottom: 3rem; }
.load-more-btn { background: transparent; color: #1a1a1a; border: 1px solid #1a1a1a; padding: 0.75rem 2rem; border-radius: 4px; cursor: pointer; font-family: inherit; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em; transition: all 0.3s ease; }
.load-more-btn:hover { background: #1a1a1a; color: #fff; }

@media (max-width: 1024px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .products-grid { grid-template-columns: 1fr; } }

/* Forms */
.form-page { max-width: 560px; margin: 0 auto; padding: 3rem 5%; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.7rem; border: 1px solid #ddd; border-radius: 6px; font-family: inherit; font-size: 0.95rem;
}
.btn-primary {
  display: inline-block; background: var(--everblack); color: #fff; padding: 0.8rem 1.75rem;
  border-radius: 8px; border: none; cursor: pointer; font-size: 0.9rem; font-family: inherit;
}
.btn-primary:hover { background: var(--evergold); }
.alert { padding: 1rem; border-radius: 6px; margin-bottom: 1.5rem; }
.alert-success { background: #e6f4ea; color: #1e7e34; }
.alert-error { background: #fdecea; color: #b3261e; }

/* Category tiles on home */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; max-width: 1200px; margin: 0 auto; padding: 2.5rem 5%; }
.category-tile { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; }
.category-tile img { width: 100%; height: 100%; object-fit: cover; }
.category-tile .label { position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem; background: linear-gradient(transparent, rgba(0,0,0,0.6)); color: #fff; font-family: 'Playfair Display', serif; font-size: 1.1rem; }

.hero { padding: 8rem 5% 4rem; text-align: center; background: var(--bg-cream); }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: 0.05em; text-transform: uppercase; }
.hero p { color: var(--text-muted); max-width: 600px; margin: 1rem auto 0; }
