/* EXQUISITE BOTANICAL — Minimalist Venetian Apothecary Stylesheet */

:root {
  --bg: #ffffff;
  --ink: #0d0d0d;
  --muted: #555555;
  --border: #0d0d0d;
  --light-border: #d8d8d8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding: 2.5rem 1.25rem 4rem;
}

.container {
  max-width: 680px;
  margin: 0 auto;
}

/* Header & Tight Minimalist Wordmark */
header {
  text-align: center;
  padding-bottom: 2.25rem;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 2.5rem;
}

.stamp-placeholder {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Replace .stamp-placeholder with <img src="logo.png" class="stamp-logo" alt="Exquisite Botanical"> */
.stamp-logo {
  width: 72px;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
}

.wordmark {
  display: inline-block;
  font-size: 1.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em; /* Tight, solid seal-like block */
  line-height: 1;
  border: 1.5px solid var(--border);
  padding: 0.45rem 0.75rem;
  color: var(--ink);
  text-decoration: none;
}

.subtitle {
  margin-top: 0.85rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Apothecary Index Table */
.section-label {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  color: var(--muted);
}

table.formulary-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
}

table.formulary-table th {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.06em;
}

table.formulary-table td {
  padding: 1rem 0.5rem;
  border-bottom: 1px solid var(--light-border);
  vertical-align: middle;
}

table.formulary-table tr:last-child td {
  border-bottom: none;
}

.batch-num {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.85rem;
  white-space: nowrap;
  width: 75px;
}

.product-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}

.product-link:hover {
  background-color: var(--ink);
  color: var(--bg);
}

.product-note {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.action-cell {
  text-align: right;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* Individual Product Sheet */
.back-nav {
  display: inline-block;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 1.75rem;
}

.back-nav:hover {
  text-decoration: underline;
}

.product-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
}

.product-meta {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.product-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.photo-frame {
  width: 100%;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  background: #f7f7f7;
  text-align: center;
}

.photo-frame img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
}

.photo-placeholder {
  padding: 5rem 1rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
}

.spec-block {
  margin-bottom: 1.75rem;
}

.spec-block h2 {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--light-border);
  padding-bottom: 0.35rem;
  margin-bottom: 0.75rem;
}

.inci-list {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.88rem;
  line-height: 1.7;
}

/* Footer */
footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

footer a {
  color: var(--ink);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 520px) {
  .wordmark {
    font-size: 1.35rem;
  }
  footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}