:root {
  --bg-cream: #F9F5EF;
  --primary-red: #7D1212;
  --text-dark: #221212;
  --card-bg: #FFFFFF;
  --border-color: #E5DAD0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  padding: 0 2rem;
  background-color: var(--bg-cream);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  z-index: 2;
}

.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary-red);
  transition: 0.3s;
}

.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header-logo {
  height: 90px;
  width: auto;
  object-fit: contain;
}

.header-spacer {
  width: 34px;
}

.nav-drawer {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background: var(--card-bg);
  box-shadow: 2px 0 10px rgba(0,0,0,0.05);
  transition: 0.3s ease-in-out;
  z-index: 1000;
  padding: 2rem 1.5rem;
}

.nav-drawer.open {
  left: 0;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-bottom: 2rem;
  float: right;
  color: var(--primary-red);
}

.nav-links {
  list-style: none;
  margin-top: 3rem;
}

.nav-links li {
  margin-bottom: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 1.1rem;
  color: var(--text-dark);
  font-weight: 500;
}

.nav-links a.active, .nav-links a:hover {
  color: var(--primary-red);
}

main {
  max-width: 800px;
  margin: 1rem auto 3rem auto;
  padding: 0 1.5rem;
}

.hero {
  text-align: center;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--primary-red);
}

.hero p {
  color: #554444;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.contact-section {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px -1px rgba(125, 18, 18, 0.03);
}

.contact-section h2 {
  margin-bottom: 1.5rem;
  color: var(--primary-red);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  background-color: var(--bg-cream);
}

.form-group textarea {
  resize: vertical;
  height: 120px;
}

button.submit-btn {
  background-color: var(--primary-red);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
}

button.submit-btn:hover {
  opacity: 0.9;
}

#formStatus {
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
  color: var(--primary-red);
}

/* Admin Dashboard Specific Styles */
.admin-container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.admin-container h1 {
  color: var(--primary-red);
  margin-bottom: 1.5rem;
}

.message-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.message-header h3 {
  color: var(--primary-red);
}

.message-date {
  font-size: 0.85rem;
  color: #776666;
}

.message-body p {
  margin-bottom: 0.4rem;
}

.delete-btn {
  background-color: #991b1b;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.delete-btn:hover {
  opacity: 0.9;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.product-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-red);
}

.product-card p {
  color: #554444;
  font-size: 0.9rem;
}
