* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #2b1f16;
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.page {
  min-height: 70vh;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #efe7df;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.logo {
  width: 80px;
  flex: 0 0 80px;
  border-radius: 50%;
  background: #f2ebe4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 15px;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  padding: 8px 12px;
  border: 1px solid #6b3e2e;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.auth-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.mobile-nav {
  display: none;
  padding-bottom: 12px;
}

.mobile-nav nav {
  display: grid;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid #efe7df;
}

.mobile-nav a {
  padding: 6px 0;
}

.user-email {
  font-weight: 600;
  color: #5a7d54;
}

.hero {
  background: linear-gradient(120deg, #fff8f2, #f5f0e9);
  padding: 72px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.hero-card {
  background: #ffffff;
  border: 1px solid #efe7df;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(89, 61, 47, 0.08);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #5a7d54;
  font-size: 12px;
  margin-bottom: 8px;
}

.section {
  padding: 64px 0;
}

.section.alt {
  background: #faf7f3;
}

.section-lead {
  max-width: 760px;
}

.brand-block {
  margin-top: 32px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.product-card {
  background: #ffffff;
  border: 1px solid #efe7df;
  padding: 18px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-image {
  height: 200px;
  background: #f2ebe4;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #6b3e2e;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price {
  color: #5a7d54;
  font-weight: 700;
}

.button {
  border: 1px solid #6b3e2e;
  padding: 10px 18px;
  border-radius: 999px;
  background: #6b3e2e;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
}

.button.small {
  padding: 6px 12px;
  font-size: 13px;
}

.button.ghost {
  background: transparent;
  color: #6b3e2e;
}

.button.primary {
  background: #5a7d54;
  border-color: #5a7d54;
}

.service-grid,
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.service-card,
.location-card {
  background: #ffffff;
  border: 1px solid #efe7df;
  padding: 18px;
  border-radius: 12px;
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f2ebe4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: #6b3e2e;
}

.service-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.cart-list,
.order-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.cart-item,
.order-card {
  background: #ffffff;
  border: 1px solid #efe7df;
  padding: 16px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cart-product {
  display: flex;
  align-items: center;
}

.cart-thumb {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  background: #f2ebe4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 700;
  color: #6b3e2e;
}

.cart-thumb img {
  width:70px;
  height: 70px;
  object-fit: cover;
}

.cart-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: #fff8f2;
}

.cart-summary.total {
  background: #f3efe9;
  font-size: 16px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
}

.order-items {
  width: 100%;
  margin-top: 8px;
}

.order-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal.open {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 16, 12, 0.5);
}

.modal-content {
  position: relative;
  background: #ffffff;
  width: min(820px, 92%);
  border-radius: 16px;
  padding: 20px;
  z-index: 1;
  max-height: 80vh;
  overflow: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.form-card {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid #efe7df;
  background: #ffffff;
}

.form-card input,
.form-card select,
.form-card textarea {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d7ccc1;
  font-size: 14px;
}

.narrow .container {
  width: min(520px, 92%);
}

.messages {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.message {
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff8f2;
  border: 1px solid #efe7df;
  margin-bottom: 10px;
}

.message.success {
  border-color: #5a7d54;
}

.message.error {
  border-color: #b04832;
}

.muted {
  color: #7b6f65;
}

.site-footer {
  background: #2b1f16;
  color: #ffffff;
  padding: 40px 0 20px;
  margin-top: 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.footer-bottom {
  text-align: center;
  padding-top: 16px;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
}

@media (max-width: 900px) {
  .nav,
  .auth-links {
    display: none;
  }

  .nav-toggle-label {
    display: inline-flex;
  }

  .site-header .nav-toggle:checked ~ .mobile-nav {
    display: block;
  }
}
