/*
Theme Name: EarthBloom Press
Theme URI: https://earthbloomtea.com/
Author: EarthBloom Tea
Description: A hand-set, two-ink theme for EarthBloom Tea — a working index of loose leaf and botanicals. Young Serif, Karla and DM Mono on oatmeal paper, with WooCommerce specimen cards and index-style product sheets.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: earthbloom-press
Tags: e-commerce, custom-menu, featured-images, editor-style, full-width-template
*/

/* ---------------------------------------------------------------
   1. Ink, paper, measure
   --------------------------------------------------------------- */

:root {
  --ink:        #17281B;
  --ink-soft:   #36432F;
  --ink-mute:   #47543F;
  --ink-line:   rgba(23, 40, 27, 0.25);
  --ink-hair:   rgba(23, 40, 27, 0.16);
  --paper:      #EAE1CD;
  --paper-card: #F2EBD8;
  --paper-hi:   #F6EFDD;
  --madder:     #A8452B;
  --madder-lt:  #E0A183;
  --wheat:      #E9C98E;
  --organic:    #1E580A;

  --serif: 'Young Serif', 'Superclarendon', 'Bookman Old Style', Georgia, serif;
  --sans:  'Karla', 'Trebuchet MS', 'Segoe UI', sans-serif;
  --mono:  'DM Mono', 'Courier New', monospace;

  --gutter: 40px;
  --measure: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; font-family: var(--serif); line-height: 1.04; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--madder); text-decoration: none; }
a:hover, a:focus { color: var(--ink); }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 2px solid var(--madder); outline-offset: 2px; }

.ebp-skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--paper); padding: 12px 18px;
}
.ebp-skip:focus { left: 0; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; word-wrap: normal !important;
}

/* ---------------------------------------------------------------
   2. Type utilities
   --------------------------------------------------------------- */

.ebp-cut  { font-family: var(--serif); font-weight: 400; }
.ebp-mono { font-family: var(--mono); font-weight: 400; }
.ebp-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.4;
}
.ebp-lead    { border-bottom: 1px dotted rgba(23, 40, 27, 0.4); flex: 1 1 auto; transform: translateY(-4px); min-width: 18px; }
.ebp-lead-dk { border-bottom: 1px dotted rgba(234, 225, 205, 0.35); flex: 1 1 auto; transform: translateY(-4px); min-width: 18px; }

.ebp-row { display: flex; align-items: baseline; gap: 10px; }

/* ---------------------------------------------------------------
   3. Paper grain + shell
   --------------------------------------------------------------- */

.ebp-grain {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0.16; mix-blend-mode: multiply; z-index: 2;
}
.ebp-grain--dark { opacity: 0.2; mix-blend-mode: overlay; }

.ebp-shell { position: relative; overflow: hidden; }
.ebp-shell > * { position: relative; z-index: 1; }

.ebp-wrap { max-width: var(--measure); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.ebp-ink { background: var(--ink); color: #EFE7D4; position: relative; overflow: hidden; }
.ebp-ink a { color: var(--wheat); }
.ebp-ink a:hover { color: var(--paper-hi); }

/* ---------------------------------------------------------------
   4. Notice bar + masthead
   --------------------------------------------------------------- */

.ebp-notice {
  background: var(--madder); color: var(--paper-hi);
  padding: 7px var(--gutter);
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap; text-align: center;
}
.ebp-notice p { margin: 0; font-size: 12.5px; font-weight: 500; }
.ebp-notice .ebp-rule { width: 22px; height: 1px; background: rgba(246, 239, 221, 0.55); }

.ebp-masthead { border-bottom: 3px double var(--ink); background: var(--paper); position: relative; z-index: 20; }
.ebp-masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 16px var(--gutter) 14px;
  max-width: var(--measure); margin: 0 auto;
}
.ebp-masthead__left { display: flex; align-items: center; gap: 36px; min-width: 0; }
.ebp-brand img { width: 118px; height: auto; }
.ebp-brand--text { font-family: var(--serif); font-size: 26px; color: var(--ink); white-space: nowrap; }

.ebp-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.ebp-nav a { color: var(--ink); font-size: 14px; font-weight: 500; }
.ebp-nav .current-menu-item > a,
.ebp-nav .current_page_item > a { font-weight: 700; border-bottom: 2px solid var(--madder); padding-bottom: 2px; }

.ebp-masthead__right { display: flex; align-items: center; gap: 26px; }

.ebp-search { display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--ink); padding: 0 2px 6px; width: 200px; }
.ebp-search input[type="search"] {
  border: 0; background: none; padding: 0; width: 100%;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink);
}
.ebp-search input[type="search"]::placeholder { color: rgba(23, 40, 27, 0.62); }
.ebp-search button { border: 0; background: none; padding: 0; display: flex; }

.ebp-cart { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.ebp-cart__count { font-family: var(--mono); font-size: 13px; }

.ebp-burger { display: none; width: 44px; height: 44px; border: 0; background: none; align-items: center; justify-content: center; padding: 0; }

/* ---------------------------------------------------------------
   5. Buttons
   --------------------------------------------------------------- */

.ebp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 14.5px; font-weight: 700; letter-spacing: 0.01em;
  padding: 15px 28px; border: 1px solid var(--ink); border-radius: 0;
  background: var(--ink); color: var(--paper); cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.ebp-btn:hover { color: var(--paper); transform: translate(-1px, -1px); }
.ebp-btn--press { box-shadow: 4px 4px 0 var(--madder); }
.ebp-btn--press:hover { box-shadow: 6px 6px 0 var(--madder); }
.ebp-btn--wheat { background: var(--wheat); color: var(--ink); border-color: var(--wheat); }
.ebp-btn--wheat:hover { color: var(--ink); }
.ebp-btn--ghost { background: none; color: var(--ink); }
.ebp-btn--ghost:hover { color: var(--ink); }
.ebp-ink .ebp-btn--ghost { border-color: rgba(239, 231, 212, 0.5); color: #EFE7D4; }
.ebp-ink .ebp-btn--ghost:hover { color: var(--paper-hi); }

/* ---------------------------------------------------------------
   6. Pressman's rule + sprig
   --------------------------------------------------------------- */

.ebp-sprig { display: flex; align-items: center; gap: 20px; padding: 26px var(--gutter) 4px; max-width: var(--measure); margin: 0 auto; }
.ebp-sprig span { flex: 1; height: 1px; background: rgba(23, 40, 27, 0.3); }

/* ---------------------------------------------------------------
   7. Hero / masthead plate
   --------------------------------------------------------------- */

.ebp-hero__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 60px;
  padding: 64px var(--gutter) 56px; align-items: center;
  max-width: var(--measure); margin: 0 auto;
}
.ebp-hero__type { display: flex; flex-direction: column; gap: 22px; }
.ebp-hero h1 { font-size: clamp(40px, 6vw, 88px); line-height: 0.94; letter-spacing: -0.008em; color: var(--paper-hi); }
.ebp-hero__sub { font-size: 17px; line-height: 1.66; color: rgba(239, 231, 212, 0.8); max-width: 52ch; }
.ebp-hero__cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.ebp-hero__terms { display: flex; flex-direction: column; gap: 9px; margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(239, 231, 212, 0.28); }
.ebp-hero__terms .ebp-tag { color: rgba(239, 231, 212, 0.72); }
.ebp-hero__terms .ebp-mono { font-size: 14px; color: var(--wheat); }

.ebp-plate { margin: 0; display: flex; flex-direction: column; }
.ebp-plate__frame { border: 1px solid rgba(239, 231, 212, 0.5); padding: 9px; }
.ebp-plate__frame > div { height: 452px; overflow: hidden; }
.ebp-plate__frame img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05) saturate(0.88); }
.ebp-plate figcaption { display: flex; align-items: baseline; gap: 10px; padding-top: 10px; }
.ebp-plate figcaption .ebp-mono { font-size: 12px; color: rgba(239, 231, 212, 0.75); }

/* ---------------------------------------------------------------
   8. Section headers
   --------------------------------------------------------------- */

.ebp-section { padding: 22px var(--gutter) 76px; max-width: var(--measure); margin: 0 auto; }
.ebp-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 16px; flex-wrap: wrap; }
.ebp-section__head h2 { font-size: clamp(30px, 3.4vw, 46px); }
.ebp-section__head .ebp-mono { font-size: 12.5px; color: rgba(23, 40, 27, 0.65); }
.ebp-eyebrow { color: var(--madder); display: block; margin-bottom: 6px; }

/* ---------------------------------------------------------------
   9. Filter rail (real category terms)
   --------------------------------------------------------------- */

.ebp-rail {
  display: flex; align-items: stretch; flex-wrap: wrap;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.ebp-rail__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(23, 40, 27, 0.6); padding: 13px 16px 13px 0; display: flex; align-items: center; }
.ebp-rail a {
  font-family: var(--mono); font-size: 13px; color: var(--ink);
  padding: 13px 15px; border-left: 1px solid var(--ink-line);
  display: flex; align-items: center; gap: 8px; min-height: 44px;
}
.ebp-rail a:first-of-type { border-left: 0; }
.ebp-rail a:hover { background: rgba(23, 40, 27, 0.06); color: var(--ink); }
.ebp-rail a.is-on { background: var(--ink); color: var(--paper); }
.ebp-rail a.is-on:hover { background: var(--ink); color: var(--paper); }
.ebp-rail__n { opacity: 0.72; }

/* ---------------------------------------------------------------
   10. Specimen card (WooCommerce loop)
   --------------------------------------------------------------- */

.ebp-specimens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; padding-top: 38px; list-style: none; margin: 0; }
.ebp-specimens.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

li.ebp-card, .ebp-card {
  border: 1px solid var(--ink); background: var(--paper-card);
  box-shadow: 5px 5px 0 rgba(23, 40, 27, 0.16);
  display: flex; flex-direction: column; position: relative;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  margin: 0; list-style: none;
}
.ebp-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 rgba(23, 40, 27, 0.18); }

.ebp-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgba(23, 40, 27, 0.3); }
.ebp-card__no { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink); }
.ebp-card__flag { color: rgba(23, 40, 27, 0.62); }
.ebp-card__flag--hot { color: var(--madder); }
.ebp-card__flag--free { color: var(--organic); }

.ebp-card__plate { padding: 20px 16px 8px; display: flex; justify-content: center; position: relative; min-height: 180px; }
.ebp-card__plate img { width: 240px; max-width: 100%; mix-blend-mode: multiply; }

.ebp-stamp {
  position: absolute; top: 24px; right: 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--organic); border: 1.5px solid var(--organic);
  padding: 5px 9px 4px; transform: rotate(-7deg); background: transparent;
}

.ebp-card__body { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 9px; }
.ebp-card__body h3, .ebp-card__body h2 { font-size: 31px; line-height: 1; }
.ebp-card__body h3 a, .ebp-card__body h2 a { color: var(--ink); }
.ebp-card__desc { font-size: 13.5px; line-height: 1.55; color: #3F4B3C; margin: 0; }

.ebp-card__specs { margin-top: auto; padding: 0 16px 14px; display: flex; flex-direction: column; gap: 6px; }
.ebp-card__specs .ebp-tag { color: rgba(23, 40, 27, 0.62); }
.ebp-card__specs .ebp-mono { font-size: 12.5px; }

.ebp-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--ink); }
.ebp-card__price { font-family: var(--serif); font-size: 25px; color: var(--ink); }
.ebp-card__price .woocommerce-Price-amount { font-family: var(--serif); }
.ebp-card__price del { opacity: 0.5; font-size: 0.7em; }
.ebp-card__price ins { text-decoration: none; }
.ebp-card__buy { background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 700; padding: 11px 17px; min-height: 44px; display: inline-flex; align-items: center; }
.ebp-card__buy:hover { background: var(--madder); color: var(--paper); }

/* ---------------------------------------------------------------
   11. Index list (also in the index)
   --------------------------------------------------------------- */

.ebp-index { margin-top: 44px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.ebp-index__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 0 10px; border-bottom: 1px solid rgba(23, 40, 27, 0.2); }
.ebp-index__row { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--ink-hair); color: var(--ink); min-height: 44px; }
.ebp-index__row:last-child { border-bottom: 0; }
.ebp-index__row:hover { color: var(--madder); }
.ebp-index__n { font-family: var(--mono); font-size: 12px; color: rgba(23, 40, 27, 0.5); width: 44px; flex: 0 0 44px; }
.ebp-index__name { font-size: 15px; font-weight: 600; }
.ebp-index__cat { font-family: var(--mono); font-size: 12px; color: rgba(23, 40, 27, 0.6); }
.ebp-index__price { font-family: var(--mono); font-size: 13.5px; }

/* ---------------------------------------------------------------
   12. Custom blends band
   --------------------------------------------------------------- */

.ebp-blend__inner { display: grid; grid-template-columns: minmax(0, 1fr) 500px; gap: 72px; padding: 74px var(--gutter) 78px; align-items: start; max-width: var(--measure); margin: 0 auto; }
.ebp-blend h2 { font-size: clamp(34px, 4vw, 58px); line-height: 0.98; color: var(--paper-hi); }
.ebp-blend p { font-size: 16.5px; line-height: 1.7; color: rgba(239, 231, 212, 0.8); max-width: 52ch; }
.ebp-bases { border: 1px solid rgba(239, 231, 212, 0.45); }
.ebp-bases__head { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid rgba(239, 231, 212, 0.32); }
.ebp-bases__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ebp-bases__grid a {
  padding: 17px 18px; font-size: 14.5px; color: #EFE7D4;
  border-right: 1px solid rgba(239, 231, 212, 0.22);
  border-bottom: 1px solid rgba(239, 231, 212, 0.22);
  min-height: 44px; display: flex; align-items: center;
}
.ebp-bases__grid a:nth-child(3n) { border-right: 0; }
.ebp-bases__grid a:hover { background: rgba(239, 231, 212, 0.08); color: var(--paper-hi); }

/* ---------------------------------------------------------------
   13. Story strip
   --------------------------------------------------------------- */

.ebp-story { display: grid; grid-template-columns: 540px minmax(0, 1fr); align-items: stretch; }
.ebp-story__img { overflow: hidden; min-height: 430px; border-right: 1px solid var(--ink-line); }
.ebp-story__img img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.04) saturate(0.85); }
.ebp-story__type { padding: 62px var(--gutter); display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.ebp-story__type h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.06; max-width: 21ch; }
.ebp-story__type p { font-size: 16px; line-height: 1.72; color: var(--ink-soft); max-width: 60ch; }
.ebp-underline { font-size: 14.5px; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--madder); padding-bottom: 3px; }

/* ---------------------------------------------------------------
   14. Single product — the specimen sheet
   --------------------------------------------------------------- */

.ebp-crumbs { padding: 13px var(--gutter); border-bottom: 1px solid var(--ink-line); }
.ebp-crumbs__inner { max-width: var(--measure); margin: 0 auto; font-family: var(--mono); font-size: 12.5px; color: rgba(23, 40, 27, 0.68); }
.ebp-crumbs a { color: rgba(23, 40, 27, 0.68); }
.ebp-crumbs a:hover { color: var(--ink); }

.ebp-sheet { padding: 46px var(--gutter) 64px; display: grid; grid-template-columns: 600px minmax(0, 1fr); gap: 68px; align-items: start; max-width: var(--measure); margin: 0 auto; }

.ebp-sheet__plate { position: relative; border: 1px solid var(--ink); padding: 10px; background: var(--paper-card); }
.ebp-sheet__plate .woocommerce-product-gallery { margin: 0 !important; width: 100% !important; float: none !important; }
.ebp-sheet__plate .woocommerce-product-gallery img { mix-blend-mode: multiply; }
.ebp-sheet__plate .woocommerce-product-gallery__trigger { display: none; }
.ebp-sheet__plate .flex-control-thumbs { display: flex; gap: 12px; padding: 12px 0 0; margin: 0; list-style: none; }
.ebp-sheet__plate .flex-control-thumbs li { width: auto !important; flex: 0 0 22%; margin: 0 !important; }
.ebp-sheet__plate .flex-control-thumbs img { border: 1px solid var(--ink-line); }
.ebp-sheet__plate .flex-control-thumbs img.flex-active { border-color: var(--ink); }
.ebp-sheet__cap { display: flex; align-items: baseline; gap: 10px; padding-top: 10px; }
.ebp-sheet__cap .ebp-mono { font-size: 12px; color: rgba(23, 40, 27, 0.7); }

.ebp-sheet__entry { display: flex; flex-direction: column; gap: 20px; }
.ebp-sheet__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ebp-sheet__meta .ebp-div { width: 1px; height: 12px; background: rgba(23, 40, 27, 0.35); }
.ebp-sheet__entry .product_title { font-size: clamp(38px, 5vw, 68px); line-height: 0.96; letter-spacing: -0.008em; }
.ebp-sheet__strap { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; color: var(--madder); margin: 0; }
.ebp-sheet__excerpt { font-size: 16.5px; line-height: 1.72; color: var(--ink-soft); max-width: 58ch; }
.ebp-sheet__excerpt p:last-child { margin-bottom: 0; }

.ebp-sheet__price { display: flex; align-items: baseline; gap: 16px; padding-top: 14px; border-top: 1px solid var(--ink-line); }
.ebp-sheet__price .price, .ebp-sheet__price .woocommerce-Price-amount { font-family: var(--serif); font-size: 42px; line-height: 1.2; color: var(--ink); }
.ebp-sheet__price .price del { opacity: 0.45; font-size: 0.55em; }
.ebp-sheet__price .price ins { text-decoration: none; }

.ebp-terms { display: flex; flex-direction: column; gap: 7px; padding-top: 14px; border-top: 1px solid var(--ink-line); }
.ebp-terms .ebp-tag { color: rgba(23, 40, 27, 0.65); }
.ebp-terms .ebp-mono { font-size: 12.5px; }
.ebp-terms .is-stock { color: var(--organic); }

.ebp-ingredients { border: 1px solid rgba(23, 40, 27, 0.35); padding: 18px 20px; background: var(--paper-card); display: flex; flex-direction: column; gap: 8px; }
.ebp-ingredients p { font-size: 15.5px; line-height: 1.68; color: var(--ink-soft); margin: 0; }

/* Woo add-to-cart form, set as press furniture */
.ebp-sheet__entry form.cart { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.ebp-sheet__entry .variations { width: 100%; border-collapse: collapse; margin: 0; }
.ebp-sheet__entry .variations th,
.ebp-sheet__entry .variations td { padding: 0 0 10px; text-align: left; vertical-align: middle; }
.ebp-sheet__entry .variations th.label label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(23, 40, 27, 0.65);
}
.ebp-sheet__entry .variations select {
  width: 100%; border: 1px solid var(--ink); background: var(--paper-hi); color: var(--ink);
  padding: 13px 14px; min-height: 48px; border-radius: 0; font-family: var(--mono); font-size: 14px;
}
.ebp-sheet__entry .reset_variations { font-family: var(--mono); font-size: 12px; }

.ebp-sheet__entry .quantity { display: inline-flex; align-items: center; border: 1px solid var(--ink); }
.ebp-sheet__entry .quantity input.qty {
  width: 64px; height: 56px; border: 0; background: none; text-align: center;
  font-family: var(--mono); font-size: 16px; color: var(--ink);
}
.ebp-sheet__entry .single_add_to_cart_button,
.ebp-sheet__entry button.button.alt {
  flex: 1; min-height: 56px; background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: 0; box-shadow: 4px 4px 0 var(--madder);
  font-family: var(--sans); font-size: 15.5px; font-weight: 700; padding: 0 28px;
}
.ebp-sheet__entry .single_add_to_cart_button:hover { background: var(--madder); border-color: var(--madder); box-shadow: 4px 4px 0 var(--ink); }
.ebp-cart-line { display: flex; align-items: stretch; gap: 12px; }
.ebp-sheet__entry .woocommerce-variation-price { margin-bottom: 8px; }
.ebp-sheet__entry .woocommerce-variation-price .woocommerce-Price-amount { font-family: var(--serif); font-size: 30px; }

/* Tabs → index sheet */
.ebp-data { padding: 0 var(--gutter) 70px; max-width: var(--measure); margin: 0 auto; }
.ebp-data .woocommerce-tabs ul.tabs {
  display: flex; gap: 34px; margin: 0 0 30px; padding: 0; list-style: none;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink-line);
}
.ebp-data .woocommerce-tabs ul.tabs::before,
.ebp-data .woocommerce-tabs ul.tabs li::before,
.ebp-data .woocommerce-tabs ul.tabs li::after { display: none !important; }
.ebp-data .woocommerce-tabs ul.tabs li {
  margin: 0; padding: 0; border: 0; background: none; border-radius: 0;
}
.ebp-data .woocommerce-tabs ul.tabs li a {
  display: block; padding: 13px 0; border-bottom: 3px solid transparent; margin-bottom: -1px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(23, 40, 27, 0.55); font-weight: 400;
}
.ebp-data .woocommerce-tabs ul.tabs li.active a,
.ebp-data .woocommerce-tabs ul.tabs li a:hover { color: var(--ink); border-bottom-color: var(--madder); }
.ebp-data .woocommerce-Tabs-panel h2 { font-size: 30px; margin-bottom: 16px; }
.ebp-data .woocommerce-Tabs-panel p { font-size: 16px; line-height: 1.74; color: var(--ink-soft); max-width: 78ch; }
.ebp-data .woocommerce-Tabs-panel ul { font-size: 16px; line-height: 1.8; color: var(--ink-soft); padding-left: 1.1em; }

.ebp-data table.shop_attributes { width: 100%; border-collapse: collapse; border: 0; }
.ebp-data table.shop_attributes th,
.ebp-data table.shop_attributes td {
  border: 0; border-bottom: 1px solid var(--ink-hair); padding: 13px 0; font-style: normal; background: none;
}
.ebp-data table.shop_attributes th { font-family: var(--sans); font-weight: 400; font-size: 15px; color: var(--ink-mute); width: 40%; }
.ebp-data table.shop_attributes td { font-family: var(--mono); font-size: 14px; color: var(--ink); text-align: right; }
.ebp-data table.shop_attributes td p { margin: 0; }

/* Reviews on ink */
.ebp-reviews { padding: 58px var(--gutter) 64px; }
.ebp-reviews__inner { max-width: var(--measure); margin: 0 auto; }
.ebp-reviews h2, .ebp-reviews .woocommerce-Reviews-title { font-size: clamp(28px, 3vw, 40px); color: var(--paper-hi); margin-bottom: 26px; }
.ebp-reviews ol.commentlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ebp-reviews ol.commentlist li { margin: 0; padding: 0; }
.ebp-reviews ol.commentlist li .comment_container {
  border: 1px solid rgba(239, 231, 212, 0.4); padding: 26px; display: flex; flex-direction: column; gap: 14px; background: none;
}
.ebp-reviews ol.commentlist li img.avatar { display: none; }
.ebp-reviews .comment-text { margin: 0; border: 0; padding: 0; }
.ebp-reviews .comment-text p { font-size: 15.5px; line-height: 1.64; color: rgba(239, 231, 212, 0.92); }
.ebp-reviews .woocommerce-review__author { font-family: var(--mono); font-size: 12.5px; color: rgba(239, 231, 212, 0.68); font-weight: 400; }
.ebp-reviews .woocommerce-review__published-date { font-family: var(--mono); font-size: 12.5px; color: rgba(239, 231, 212, 0.68); }
.ebp-reviews .star-rating span::before,
.ebp-reviews .star-rating::before { color: var(--wheat); }
.ebp-reviews #review_form_wrapper { margin-top: 32px; }
.ebp-reviews #respond input[type="text"],
.ebp-reviews #respond input[type="email"],
.ebp-reviews #respond textarea {
  width: 100%; background: rgba(239, 231, 212, 0.06); border: 1px solid rgba(239, 231, 212, 0.4);
  color: #EFE7D4; padding: 12px 14px; border-radius: 0; font-family: var(--sans); min-height: 48px;
}
.ebp-reviews #respond .submit {
  background: var(--wheat); color: var(--ink); border: 0; border-radius: 0;
  padding: 15px 28px; font-weight: 700; min-height: 48px; box-shadow: 4px 4px 0 var(--madder);
}

.star-rating span::before, .star-rating::before { color: var(--madder); }

/* ---------------------------------------------------------------
   15. Shop notices, cart, checkout — left on Woo structure, re-inked
   --------------------------------------------------------------- */

.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-top: 0; border-left: 3px solid var(--madder); background: var(--paper-card);
  color: var(--ink); border-radius: 0; font-family: var(--sans);
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--madder); }

.ebp-plain { padding: 56px var(--gutter) 76px; max-width: var(--measure); margin: 0 auto; }
.ebp-plain h1, .ebp-plain .entry-title { font-size: clamp(34px, 4vw, 56px); margin-bottom: 24px; }
.ebp-plain .entry-content { font-size: 16.5px; line-height: 1.74; color: var(--ink-soft); }
.ebp-plain .entry-content h2 { font-size: 34px; margin: 36px 0 14px; color: var(--ink); }
.ebp-plain .entry-content h3 { font-size: 26px; margin: 28px 0 12px; color: var(--ink); }

.woocommerce table.shop_table { border-radius: 0; border-color: var(--ink-line); }
.woocommerce table.shop_table th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.woocommerce .button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  background: var(--ink); color: var(--paper); border-radius: 0; font-family: var(--sans); font-weight: 700;
  padding: 13px 22px; min-height: 44px; line-height: 1.2;
}
.woocommerce .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
  background: var(--madder); color: var(--paper);
}
.woocommerce a.button.alt, .woocommerce button.button.alt { background: var(--madder); color: var(--paper-hi); }
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--ink); }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container .select2-selection--single {
  border: 1px solid var(--ink-line); border-radius: 0; padding: 12px 14px; min-height: 48px; background: var(--paper-hi);
}
.woocommerce-pagination ul { border: 0 !important; display: flex; gap: 8px; }
.woocommerce-pagination ul li { border: 0 !important; }
.woocommerce-pagination ul li a, .woocommerce-pagination ul li span {
  border: 1px solid var(--ink); font-family: var(--mono); min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center; background: none !important;
}
.woocommerce-pagination ul li span.current { background: var(--ink) !important; color: var(--paper); }

.woocommerce .woocommerce-ordering select,
.woocommerce .woocommerce-result-count { font-family: var(--mono); font-size: 12.5px; }

/* ---------------------------------------------------------------
   16. Colophon
   --------------------------------------------------------------- */

.ebp-colophon { padding: 52px var(--gutter) 28px; border-top: 3px double var(--madder); }
.ebp-colophon__inner { max-width: var(--measure); margin: 0 auto; }
.ebp-colophon__cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 38px; border-bottom: 1px solid rgba(239, 231, 212, 0.25); }
.ebp-colophon__brand img { width: 138px; filter: invert(1); }
.ebp-colophon__motto { font-family: var(--serif); font-size: 22px; line-height: 1.3; color: var(--wheat); margin: 14px 0 0; }
.ebp-colophon h2, .ebp-colophon .widget-title { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--madder-lt); margin: 0 0 11px; }
.ebp-colophon ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ebp-colophon ul a { font-size: 14.5px; color: rgba(239, 231, 212, 0.85); min-height: 40px; display: flex; align-items: center; }
.ebp-colophon ul a:hover { color: var(--wheat); }
.ebp-colophon__contact p { font-size: 14.5px; line-height: 1.6; color: rgba(239, 231, 212, 0.85); }
.ebp-colophon__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 20px; font-family: var(--mono); font-size: 12px; color: rgba(239, 231, 212, 0.6); flex-wrap: wrap; }

/* ---------------------------------------------------------------
   17. Mobile drawer
   --------------------------------------------------------------- */

.ebp-drawer {
  position: fixed; inset: 0; background: var(--ink); color: #EFE7D4;
  z-index: 200; padding: 20px; display: none; flex-direction: column; gap: 6px; overflow-y: auto;
}
.ebp-drawer.is-open { display: flex; }
.ebp-drawer__top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid rgba(239, 231, 212, 0.3); margin-bottom: 14px; }
.ebp-drawer__close { width: 44px; height: 44px; border: 0; background: none; display: flex; align-items: center; justify-content: center; }
.ebp-drawer ul { list-style: none; margin: 0; padding: 0; }
.ebp-drawer ul a {
  display: flex; align-items: center; min-height: 52px;
  font-family: var(--serif); font-size: 26px; color: #EFE7D4;
  border-bottom: 1px solid rgba(239, 231, 212, 0.18);
}
.ebp-drawer ul a:hover { color: var(--wheat); }

/* ---------------------------------------------------------------
   18. Responsive — the press folds down
   --------------------------------------------------------------- */

@media (max-width: 1200px) {
  .ebp-hero__inner { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; }
  .ebp-blend__inner { grid-template-columns: minmax(0, 1fr) 400px; gap: 46px; }
  .ebp-sheet { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 46px; }
  .ebp-story { grid-template-columns: 420px minmax(0, 1fr); }
  .ebp-specimens { gap: 22px; }
  .ebp-nav ul { gap: 18px; }
  .ebp-search { width: 150px; }
}

@media (max-width: 1000px) {
  :root { --gutter: 24px; }
  .ebp-burger { display: flex; }
  .ebp-nav, .ebp-search { display: none; }
  .ebp-masthead__left { gap: 14px; }
  .ebp-masthead__inner { padding: 10px var(--gutter); }
  .ebp-brand img { width: 104px; }

  .ebp-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 30px var(--gutter) 28px; }
  .ebp-plate__frame > div { height: 260px; }
  .ebp-blend__inner { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 44px var(--gutter) 48px; }
  .ebp-story { grid-template-columns: minmax(0, 1fr); }
  .ebp-story__img { min-height: 260px; max-height: 300px; border-right: 0; border-bottom: 1px solid var(--ink-line); }
  .ebp-story__type { padding: 34px var(--gutter) 38px; }

  .ebp-sheet { grid-template-columns: minmax(0, 1fr); gap: 30px; padding: 26px var(--gutter) 40px; }
  .ebp-specimens, .ebp-specimens.columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ebp-reviews ol.commentlist { grid-template-columns: minmax(0, 1fr); }
  .ebp-data .woocommerce-tabs ul.tabs { gap: 20px; overflow-x: auto; }

  .ebp-colophon__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }

  .ebp-rail { overflow-x: auto; flex-wrap: nowrap; }
  .ebp-rail__label { display: none; }
  .ebp-rail a { flex: 0 0 auto; }
}

@media (max-width: 640px) {
  .ebp-specimens, .ebp-specimens.columns-4 { grid-template-columns: minmax(0, 1fr); }
  .ebp-hero h1 { font-size: clamp(36px, 12vw, 50px); }
  .ebp-card__plate img { width: 200px; }
  .ebp-section { padding: 18px var(--gutter) 44px; }
  .ebp-section__head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .ebp-colophon__cols { grid-template-columns: minmax(0, 1fr); }
  .ebp-cart-line { flex-direction: column; }
  .ebp-sheet__entry .quantity { align-self: flex-start; }
  .ebp-index__cat { display: none; }
  .ebp-notice { text-align: left; justify-content: flex-start; }
  .ebp-notice .ebp-rule { display: none; }
}

/* ---------------------------------------------------------------
   19. Elementor pages keep their own furniture
   --------------------------------------------------------------- */

.ebp-elementor .ebp-plain { padding-left: 0; padding-right: 0; max-width: none; }
.elementor-page .ebp-plain { padding: 0; max-width: none; }

/* ---------------------------------------------------------------
   20. Beat WooCommerce's own float grid back into the press grid
   --------------------------------------------------------------- */

.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  padding: 38px 0 0;
  margin: 0;
  list-style: none;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce ul.products li.product::before,
.woocommerce ul.products li.product::after { content: none !important; display: none !important; }

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left;
  clear: none !important;
}
.woocommerce ul.products li.product a img { margin: 0; box-shadow: none; }
.woocommerce ul.products li.product .price { color: var(--ink); font-size: inherit; margin: 0; }
.woocommerce ul.products li.product .button { display: none; }
.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale {
  background: var(--madder); color: var(--paper-hi); border-radius: 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  min-height: 0; min-width: 0; line-height: 1; padding: 7px 10px; top: 0; left: 0; margin: 0;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title { display: none; }

/* Single product: unfloat the gallery/summary, the sheet grid owns layout */
.woocommerce div.product div.images,
.woocommerce div.product div.summary,
.woocommerce #content div.product div.images,
.woocommerce #content div.product div.summary {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}
.woocommerce div.product { margin-bottom: 0; }
.woocommerce div.product .woocommerce-tabs { padding-top: 0; }
.woocommerce div.product form.cart { margin-bottom: 0; }
.woocommerce div.product form.cart div.quantity { float: none; margin: 0; }
.woocommerce div.product p.stock { font-family: var(--mono); font-size: 13px; }
.woocommerce div.product .woocommerce-product-rating { margin: 0; display: flex; align-items: center; gap: 8px; }
.woocommerce div.product .woocommerce-product-rating .woocommerce-review-link { display: none; }

.woocommerce #reviews #comments ol.commentlist li .comment-text { margin-left: 0; }
.woocommerce #review_form #respond p { margin: 0 0 12px; }
.woocommerce #reviews #respond .comment-reply-title { font-family: var(--serif); font-size: 24px; color: var(--paper-hi); display: block; margin-bottom: 12px; }
.woocommerce .comment-form-rating label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }

.related.products > h2,
.up-sells > h2,
.cross-sells > h2 { font-family: var(--serif); font-size: clamp(28px, 3vw, 38px); margin-bottom: 4px; }

@media (max-width: 1000px) {
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}
@media (max-width: 640px) {
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: minmax(0, 1fr); }
}
