:root {
  --primary: #414141;
  --secondary: #d7ccc3;
  --accent: #545454;
  --background: #ffffff;
  --surface: #f9f3ee;
  --text: #333333;
  --muted: #666666;
  --error: #b00020;
  --radius: 4px;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Verdana, sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
}

a { color: var(--primary); }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--secondary);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-inner .brand { margin-right: auto; }

.logo { height: 36px; width: auto; }

.season {
  margin: 0;
  flex: 1;
  font-size: 0.95rem;
  color: var(--accent);
}

.logout-link {
  font-size: 0.85rem;
  text-decoration: none;
}

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

.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--secondary);
}

h1, h2, h3 { color: var(--primary); line-height: 1.25; }

.intro-block { margin-bottom: 2rem; }

.product-category { margin-bottom: 2.5rem; }

.category-heading {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a6b4a;
  font-weight: 600;
  margin: 0 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--secondary);
}

.product-category:first-of-type .category-heading { margin-top: 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.product-card {
  border: 1px solid var(--secondary);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.product-image-wrap {
  aspect-ratio: 3 / 4;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder {
  color: var(--muted);
  font-size: 0.9rem;
}

.product-meta { padding: 1rem; }

.sku {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.25rem;
}

.description { font-size: 0.9rem; color: var(--muted); }

.price { font-weight: 600; }

.qty-label {
  display: block;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.qty-input {
  width: 5rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--secondary);
  border-radius: var(--radius);
  margin-top: 0.25rem;
}

.order-form {
  border-top: 1px solid var(--secondary);
  padding-top: 1.5rem;
}

.form-row { margin-bottom: 1rem; }

.form-row label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  max-width: 32rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--secondary);
  border-radius: var(--radius);
  font: inherit;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

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

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

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--secondary);
}

.btn-link {
  background: transparent;
  color: var(--primary);
}

.btn-lg { padding: 0.85rem 1.5rem; font-size: 1rem; }

.login-card,
.confirm-card {
  max-width: 36rem;
  margin: 2rem auto;
  padding: 2rem;
  border: 1px solid var(--secondary);
  border-radius: var(--radius);
  background: var(--surface);
}

.error { color: var(--error); }

.payment-options { margin-top: 2rem; }

.payment-option {
  background: #fff;
  border: 1px solid var(--secondary);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.summary-list { list-style: none; padding: 0; }

.summary-list li { margin-bottom: 0.5rem; }

.muted { color: var(--muted); font-size: 0.9rem; }

.empty { grid-column: 1 / -1; color: var(--muted); }

@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* --- Public wholesale home (WordPress-style grid) --- */

.header-centered { background: #fff; border-bottom: none; }
.header-centered-inner {
  max-width: 940px;
  margin: 0 auto;
  padding: 2.25rem 1rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.header-centered-inner .brand { margin-right: 0; }
.header-centered .logo-home {
  display: block;
  height: 61px;
  width: auto;
  max-width: 220px;
}

.home-main {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 1rem 2.5rem;
}

.home-image-placeholder {
  height: 100%;
  min-height: 230px;
  background: var(--surface);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
}
.home-image-placeholder.tall { min-height: 460px; }

.home-panel {
  background: #ececec;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem;
}

.panel-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 1rem;
  color: #222;
}

.panel-title {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  color: #333;
  font-weight: 400;
}

.panel-text {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
  text-transform: lowercase;
}

.panel-cta {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #944121;
}

.panel-cta:hover { text-decoration: underline; }

.page-heading {
  text-align: center;
  margin: 1rem 0 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--secondary);
}

.page-heading h1 {
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a6b4a;
  font-weight: 600;
}

.page-title {
  text-align: center;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a6b4a;
  border-bottom: 1px solid var(--secondary);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.apply-form { max-width: 520px; margin: 0 auto 2rem; }
.apply-form .form-row input,
.apply-form .form-row textarea,
.apply-form .form-row select {
  max-width: none;
  background: #f3f3f3;
  border-color: #ddd;
}

.account-section { max-width: 520px; margin: 0 auto; }
.account-login h2 {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0;
}
.apply-link { margin-top: 1.25rem; }

.nav-link {
  font-size: 0.85rem;
  margin-left: auto;
  text-decoration: none;
}

.footer-legal { font-size: 0.75rem; color: #999; margin-top: 0.35rem; }
