/* ==========================================================================
   HERBARIUM ARCHIVE — design system for ordermagicmushrooms.uk
   Reference point: natural-history specimen cards, herbarium sheets,
   scientific journal plates. Not a mushroom/psychedelic aesthetic,
   not a generic e-commerce template.
   ========================================================================== */

:root {
  /* ---- Color ---- */
  --omm-moss:        #1F3B2C;
  --omm-moss-dark:   #152A20;
  --omm-moss-tint:   #DDE5DC;
  --omm-paper:       #F5F1E6;
  --omm-paper-warm:  #ECE3CE;
  --omm-ink:         #16140F;
  --omm-ink-soft:    #4A4536;
  --omm-rust:        #B5542D;
  --omm-rust-dark:   #8F4221;
  --omm-amber:       #C98A3B;
  --omm-line:        #C7BC9F;
  --omm-line-strong: var(--omm-ink);

  /* ---- Type ---- */
  --font-display: 'Fraunces', 'Iowan Old Style', serif;
  --font-body:    'Public Sans', -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* ---- Spacing scale (deliberate, not default 4/8px grid) ---- */
  --space-1: .5rem;
  --space-2: .75rem;
  --space-3: 1.25rem;
  --space-4: 2rem;
  --space-5: 3.25rem;
  --space-6: 5.25rem;

  /* ---- Shape ---- */
  --radius-sm: 3px;
  --radius-md: 5px;
  --container-max: 1280px;
}

/* ==========================================================================
   BASE
   ========================================================================== */

/* `html body` (not bare `body`) deliberately: Blocksy prints an inline
   `body { background-color: var(--theme-palette-color-7); }` rule late in
   <head>, same specificity as a bare `body` selector, which wins on source
   order. Bumping to two elements beats it on specificity instead of
   reaching for !important. */
html body {
  background: var(--omm-paper);
  color: var(--omm-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4,
.ct-text-block.ct-headline {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--omm-ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.15; }
h3 { font-size: 1.35rem; }

a { color: var(--omm-moss); }
a:hover { color: var(--omm-rust); }

/* small caps / label text used throughout for a scientific-record feel */
.omm-eyebrow,
.omm-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--omm-ink-soft);
}

/* ==========================================================================
   DOUBLE-RULE DIVIDER — replaces generic thin 1px borders between sections
   ========================================================================== */

.omm-rule {
  border: none;
  border-top: 2px solid var(--omm-ink);
  position: relative;
  margin: var(--space-4) 0;
}
.omm-rule::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--omm-ink);
}

/* ==========================================================================
   HEADER
   ========================================================================== */

#header {
  background: var(--omm-paper);
  border-bottom: 2px solid var(--omm-ink);
}

/* Blocksy's archive/page-title banner ships inline dynamic rules scoped per
   "type" variant (e.g. `[data-prefix="woo_categories"] .hero-section[data-type="type-2"]`),
   each with different, unpredictable specificity. Rather than out-specify
   every variant individually, !important here is the deliberate, bounded
   override for this one element. */
.hero-section {
  background: var(--omm-paper-warm) !important;
  border-bottom: 2px solid var(--omm-line);
}
.hero-section .page-title {
  font-family: var(--font-display);
}

/* Our logo image already contains the wordmark + tagline — hide Blocksy's
   separate text site-title so it doesn't duplicate it underneath. */
.site-branding .site-title-container {
  display: none;
}

/* Verified against actual rendered markup: desktop + mobile nav links both
   use .ct-menu-link regardless of which menu-container wraps them. */
.ct-menu-link {
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--omm-ink);
  font-weight: 500;
}

.ct-menu-link:hover {
  color: var(--omm-rust);
}

/* cart icon — square, not a soft pill badge */
.ct-header-item .ct-cart-count {
  background: var(--omm-rust);
  color: #fff;
  font-family: var(--font-mono);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* ==========================================================================
   BUTTONS — solid fill, sharp label type, no AI-slop pill/gradient/soft-shadow
   ========================================================================== */

.button,
button.button,
a.button,
.wp-block-button__link,
.single_add_to_cart_button,
.woocommerce #respond input#submit {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--omm-moss);
  color: var(--omm-paper) !important;
  border: none;
  border-radius: var(--radius-sm);
  padding: .95em 1.8em;
  box-shadow: none;
  transition: background-color .15s ease, transform .1s ease;
}

.button:hover,
button.button:hover,
a.button:hover,
.single_add_to_cart_button:hover {
  background: var(--omm-rust);
  color: #fff !important;
  transform: translateY(-1px);
}

.button:active,
.single_add_to_cart_button:active {
  transform: translateY(0);
}

.button.alt,
.checkout-button {
  background: var(--omm-rust);
}
.button.alt:hover { background: var(--omm-rust-dark); }

/* ==========================================================================
   PRODUCT CARDS — "specimen card": corner-bracket marks instead of a full
   box border, paper-toned image mount, monospace specimen metadata.
   ========================================================================== */

ul.products li.product,
.omm-specimen-card {
  position: relative;
  background: var(--omm-paper-warm);
  padding: var(--space-2);
  margin: 0 !important;
}

/* corner brackets — the signature structural motif replacing borders */
ul.products li.product::before,
ul.products li.product::after,
.omm-specimen-card::before,
.omm-specimen-card::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
ul.products li.product::before,
.omm-specimen-card::before {
  top: 6px; left: 6px;
  border-top: 2px solid var(--omm-ink);
  border-left: 2px solid var(--omm-ink);
}
ul.products li.product::after,
.omm-specimen-card::after {
  bottom: 6px; right: 6px;
  border-bottom: 2px solid var(--omm-ink);
  border-right: 2px solid var(--omm-ink);
}

ul.products li.product img {
  background: var(--omm-paper);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: var(--space-3);
}

ul.products li.product .omm-eyebrow,
ul.products li.product .posted_in {
  display: block;
  margin-top: var(--space-2);
}

ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: .3rem 0 .4rem;
}

ul.products li.product .price {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--omm-ink);
}

ul.products li.product .price del {
  color: var(--omm-ink-soft);
  opacity: .7;
}
ul.products li.product .price ins {
  text-decoration: none;
  color: var(--omm-rust);
}

/* ==========================================================================
   PRICE-BREAK / TIER LIST — dotted leader lines, catalog-style
   ========================================================================== */

.omm-tier-list { list-style: none; margin: 0; padding: 0; }
.omm-tier-list li {
  display: flex;
  align-items: baseline;
  gap: .4em;
  font-family: var(--font-mono);
  font-size: .9rem;
  padding: .35em 0;
}
.omm-tier-list li .omm-tier-fill {
  flex: 1;
  border-bottom: 1px dotted var(--omm-line);
  transform: translateY(-4px);
}
.omm-tier-list li .omm-tier-price { font-weight: 600; }

/* ==========================================================================
   PRODUCT PAGE
   ========================================================================== */

.woocommerce div.product .product_title {
  font-family: var(--font-display);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--omm-ink);
}

.woocommerce div.product .woocommerce-product-gallery {
  background: var(--omm-paper-warm);
  padding: var(--space-3);
}

/* quantity stepper — sharp, bracketed, not rounded */
.quantity .qty {
  font-family: var(--font-mono);
  border: 2px solid var(--omm-ink);
  border-radius: 0;
  text-align: center;
  background: var(--omm-paper);
  height: 46px;
}

.woocommerce-tabs ul.tabs li {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .08em;
}

.woocommerce-tabs ul.tabs li.active {
  border-bottom: 2px solid var(--omm-rust);
}

/* ==========================================================================
   CART
   ========================================================================== */

.woocommerce-cart table.cart img { background: var(--omm-paper-warm); }

.woocommerce-cart table.cart,
.woocommerce-checkout-review-order-table {
  border: none;
}
.woocommerce-cart table.cart th {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: .74rem;
  letter-spacing: .1em;
  border-bottom: 2px solid var(--omm-ink);
  color: var(--omm-ink-soft);
}
.woocommerce-cart table.cart td { border-bottom: 1px solid var(--omm-line); }

.cart-collaterals .cart_totals {
  background: var(--omm-paper-warm);
  padding: var(--space-3);
}
.cart_totals .order-total .amount {
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 680px) {
  ul.products { grid-template-columns: repeat(2, 1fr) !important; }
  .omm-wordmark { font-size: 1.25rem; }
}
