/*
Theme Name: Tea Advent Calendar
Theme URI: https://teaadventcalendar.co.uk
Author: Senior WordPress Build (for Victoria Hoey)
Author URI: https://teaadventcalendar.co.uk
Description: A crafted, editorial micro-ecommerce theme for teaadventcalendar.co.uk, the home of the original tea advent calendar. Built for WooCommerce with two hero products, Stripe & PayPal checkout and a WPForms contact page. Editable throughout via the Customizer and ACF, with the design's copy baked in as defaults.
Version: 1.3.5
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tea-advent-calendar
Tags: ecommerce, woocommerce, two-columns, custom-logo, custom-menu, featured-images, editorial
WC requires at least: 7.0
WC tested up to: 8.7
*/

/* =========================================================================
   1. DESIGN TOKENS  (Evergreen palette  the shipped default)
   ========================================================================= */
:root {
  --paper: #fbf7ee;
  --paper-2: #f1ead9;
  --card: #fffefa;
  --ink: #221f19;
  --ink-soft: #5f5749;
  --line: #e4dac4;
  --brand: #17402f;
  --brand-deep: #0e271c;
  --accent: #b23a2b;
  --accent-soft: #f1e3cf;
  --gold: #b6883a;
  --gold-on-dark: #e7c887;
  --teal: #3f8576;

  --font-display: 'Playwrite NZ', cursive;
  --font-body: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  --wrap: 1240px;
  --gutter: 28px;
}

/* =========================================================================
   2. RESET & BASE
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* stop decorative offsets causing sideways scroll; clip keeps sticky header working */
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--brand-deep);
  margin: 0;
}

p { margin: 0 0 1em; }

/* Accessibility helper */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-deep);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 200;
  font-family: var(--font-mono);
  font-size: 12px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* =========================================================================
   3. LAYOUT HELPERS
   ========================================================================= */
.tac-wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.tac-wrap--narrow { max-width: 940px; }
.tac-wrap--prose  { max-width: 860px; }

/* Eyebrow label (mono, uppercase, accent) */
.tac-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}
.tac-eyebrow--rules {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-bottom: 20px;
}
.tac-eyebrow--rules::before,
.tac-eyebrow--rules::after {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--accent);
  opacity: .55;
}

/* Inline eyebrow with a single leading rule */
.tac-eyebrow--inline { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.tac-eyebrow--inline::before { content: ""; width: 30px; height: 1px; background: var(--accent); }

/* Buttons  letterpress look, near-zero radius */
.tac-btn {
  display: inline-block;
  cursor: pointer;
  border: none;
  background: var(--brand);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 1px;
  text-align: center;
  transition: background .15s ease;
}
.tac-btn:hover { background: var(--brand-deep); color: var(--paper); }

.tac-btn--secondary {
  background: transparent;
  border: 1.4px solid var(--ink);
  color: var(--ink);
  padding: 13px 24px;
  transition: border-color .15s ease, color .15s ease;
}
.tac-btn--secondary:hover { border-color: var(--accent); color: var(--accent); background: transparent; }

.tac-btn--accent { background: var(--accent); }
.tac-btn--accent:hover { background: var(--accent); filter: brightness(.92); }

/* Image frame (white mat; the dashed border was removed at the client's request) */
.tac-stitch { padding: 12px; background: var(--card); }

.tac-stars { color: var(--gold); letter-spacing: 0; }

/* Neutral placeholder shown before real photography is uploaded */
.tac-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  background:
    repeating-linear-gradient(45deg, var(--paper-2), var(--paper-2) 12px, var(--accent-soft) 12px, var(--accent-soft) 24px);
  opacity: .6;
}

/* Generic "view" link with top rule */
.tac-viewlink {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 4px;
  display: block;
}

/* =========================================================================
   4. ANNOUNCEMENT BAR
   ========================================================================= */
.tac-announce {
  background: var(--brand-deep);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 16px;
}

/* =========================================================================
   5. HEADER
   ========================================================================= */
.tac-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1.5px dashed var(--line);
}
@supports not (background: color-mix(in srgb, white 92%, transparent)) {
  .tac-header { background: rgba(251, 247, 238, .94); }
}
.tac-header__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
}
.tac-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 1; min-width: 0; }
.tac-logo__text { display: flex; flex-direction: column; line-height: 1; text-align: center; }
.tac-logo__over {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 9px;
  text-indent: .24em; /* offset trailing letter-spacing so the tracked line centres evenly */
}
.tac-logo__name {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: .005em;
  line-height: .82; /* crop the cursive font's tall line box so the lines sit evenly */
  color: var(--brand-deep);
}
.tac-logo__tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 5px;
  text-indent: .2em; /* offset trailing letter-spacing so the tracked line centres evenly */
}
.tac-logo img { max-height: 64px; width: auto; }

.tac-nav { display: flex; gap: 26px; align-items: center; white-space: nowrap; }
.tac-nav ul { display: flex; gap: 26px; align-items: center; margin: 0; padding: 0; list-style: none; }
.tac-nav a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color .15s ease;
}
.tac-nav a:hover { color: var(--accent); }

.tac-basket {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand);
  border-left: 1px solid var(--line);
  padding-left: 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.tac-basket:hover { color: var(--accent); }
.tac-basket__count { font-weight: 700; }

/* Mobile nav toggle */
.tac-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 1px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* =========================================================================
   6. HOME  HERO (two products)
   ========================================================================= */
.tac-hero { text-align: center; padding: 58px var(--gutter) 30px; max-width: 940px; margin: 0 auto; }
.tac-hero h1 {
  font-size: 66px;
  line-height: 1.18;
  letter-spacing: -.01em;
  margin: 0 0 22px;
  color: var(--brand-deep);
}
.tac-hero__intro {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 38em;
}

.tac-duo {
  max-width: 1140px;
  margin: 0 auto;
  padding: 8px var(--gutter) 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* Product card */
.tac-pcard {
  background: var(--card);
  padding: 13px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease;
  color: inherit;
}
.tac-pcard:hover { box-shadow: 0 26px 50px -32px rgba(0,0,0,.5); }
.tac-pcard__media { position: relative; aspect-ratio: 5/4; border: 1px solid var(--line); overflow: hidden; }
.tac-pcard__media img { width: 100%; height: 100%; object-fit: cover; }
.tac-pcard__no {
  position: absolute; top: 13px; left: 13px;
  background: var(--brand-deep); color: var(--paper);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px;
}
.tac-pcard__no--gold { background: var(--gold); color: var(--brand-deep); }
.tac-pcard__body { padding: 22px 16px 14px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.tac-pcard__eyebrow {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}
.tac-pcard__title { font-size: 30px; line-height: 1.2; margin: 0; color: var(--brand-deep); }
.tac-pcard__desc { font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); margin: 0; flex: 1; }

/* Wax-seal price stamp */
.tac-stamp {
  position: absolute; top: 11px; right: 11px;
  width: 62px; height: 62px;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--accent);
  background: color-mix(in srgb, var(--card) 80%, transparent);
  transform: rotate(-7deg);
}
@supports not (background: color-mix(in srgb, white 80%, transparent)) {
  .tac-stamp { background: rgba(255,254,250,.8); }
}
.tac-stamp__price { font-family: var(--font-body); font-weight: 700; font-size: 15px; line-height: 1; letter-spacing: -.01em; }
.tac-stamp__sub { font-family: var(--font-mono); font-size: 6.5px; letter-spacing: .14em; margin-top: 1px; }

/* =========================================================================
   7. HOME  VALUE PROPS BAND
   ========================================================================= */
.tac-values { background: var(--brand); color: var(--paper); }
.tac-values__grid {
  max-width: var(--wrap); margin: 0 auto;
  padding: 44px var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.tac-values__item { padding: 0 14px; border-left: 1px solid rgba(255,255,255,.18); }
.tac-values__title { font-family: var(--font-display); font-size: 23px; color: var(--gold-on-dark); margin-bottom: 7px; }
.tac-values__desc { font-size: 14px; opacity: .85; line-height: 1.55; }

/* =========================================================================
   8. HOME  HOW IT WORKS
   ========================================================================= */
.tac-how { max-width: 1180px; margin: 0 auto; padding: 62px var(--gutter) 24px; }
.tac-section-head { text-align: center; margin-bottom: 38px; }
.tac-section-head .tac-eyebrow { display: block; margin-bottom: 12px; }
.tac-section-head h2 { font-size: 38px; margin: 0; color: var(--brand-deep); }
.tac-how__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tac-how__col { text-align: center; padding: 0 16px; }
.tac-how__col--mid { border-left: 1.5px dashed var(--line); border-right: 1.5px dashed var(--line); }
.tac-how__num { font-family: var(--font-display); font-size: 54px; line-height: 1; color: var(--gold); margin-bottom: 10px; }
.tac-how__col h3 { font-size: 24px; margin: 0 0 9px; color: var(--brand-deep); }
.tac-how__col p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

/* =========================================================================
   9. HOME  STORY TEASER
   ========================================================================= */
.tac-story { background: var(--paper-2); }
.tac-story__grid {
  max-width: 1120px; margin: 0 auto; padding: 64px var(--gutter);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
}
.tac-story h2 { font-size: 40px; line-height: 1.18; margin: 0 0 16px; color: var(--brand-deep); }
.tac-story p { font-size: 16px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 15px; }
.tac-story__cta { margin-top: 9px; }
.tac-story__media { position: relative; }
.tac-story__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.tac-roundel {
  position: absolute; bottom: -22px; right: -16px;
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--brand-deep); color: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transform: rotate(8deg);
}
.tac-roundel__est { font-family: var(--font-mono); font-size: 8px; letter-spacing: .16em; }
.tac-roundel__word { font-family: var(--font-display); font-size: 17px; line-height: 1; margin-top: 1px; }

/* =========================================================================
   10. HOME  REVIEWS
   ========================================================================= */
.tac-reviews { max-width: var(--wrap); margin: 0 auto; padding: 60px var(--gutter); }
.tac-reviews__head { text-align: center; margin-bottom: 34px; }
.tac-reviews__head .tac-stars { font-size: 18px; }
.tac-reviews__head h2 { font-size: 34px; margin: 8px 0 0; color: var(--brand-deep); }
.tac-reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tac-review { background: var(--card); border: 1px solid var(--line); padding: 28px 28px 26px; }
.tac-review .tac-stars { font-size: 13px; margin-bottom: 14px; display: block; }
.tac-review__quote { font-style: italic; font-size: 18px; line-height: 1.55; color: var(--ink); margin: 0 0 16px; }
.tac-review__by { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }

/* =========================================================================
   11. HOME  NEWSLETTER
   ========================================================================= */
.tac-news { background: var(--brand-deep); color: var(--paper); }
.tac-news__inner { max-width: 760px; margin: 0 auto; padding: 60px var(--gutter); text-align: center; }
.tac-news h2 { font-size: 38px; margin: 0 0 12px; color: var(--paper); }
.tac-news p { font-size: 16px; opacity: .85; margin: 0 0 26px; line-height: 1.6; }
.tac-news__form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.tac-news__form input[type="email"] {
  flex: 1; border: 1px solid rgba(255,255,255,.3); background: transparent;
  color: var(--paper); padding: 14px 16px; font-family: var(--font-mono);
  font-size: 13px; border-radius: 1px;
}
.tac-news__form input::placeholder { color: rgba(251,247,238,.6); }

/* =========================================================================
   12. PRODUCT PAGE
   ========================================================================= */
.tac-breadcrumb {
  max-width: var(--wrap); margin: 0 auto; padding: 22px var(--gutter) 0;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-soft);
}
.tac-breadcrumb a { color: var(--ink-soft); }
.tac-breadcrumb .sep { margin: 0 9px; opacity: .5; }
.tac-breadcrumb .current { color: var(--ink); }

.tac-product {
  max-width: var(--wrap); margin: 0 auto; padding: 26px var(--gutter) 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
}
.tac-gallery { position: sticky; top: 100px; }
.tac-gallery__main { position: relative; }
.tac-gallery__main img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }

/* Carousel arrows + counter */
.tac-gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  color: var(--brand); cursor: pointer; border-radius: 50%; z-index: 2;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
@supports not (background: color-mix(in srgb, white 88%, transparent)) {
  .tac-gallery__nav { background: rgba(255,254,250,.9); }
}
.tac-gallery__nav:hover { background: var(--brand); color: var(--paper); border-color: var(--brand); }
.tac-gallery__nav--prev { left: 18px; }
.tac-gallery__nav--next { right: 18px; }
.tac-gallery__counter {
  position: absolute; bottom: 18px; right: 18px; z-index: 2;
  background: var(--brand-deep); color: var(--paper);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em;
  padding: 5px 10px; border-radius: 1px;
}

.tac-buy h1 { font-size: 46px; line-height: 1.22; margin: 0 0 14px; color: var(--brand-deep); }
.tac-buy__rating {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 18px;
}
.tac-buy__rating .tac-stars { font-size: 14px; }
.tac-buy__price { font-family: var(--font-display); font-size: 38px; color: var(--brand-deep); margin-bottom: 20px; }
.tac-buy__lead { font-size: 16.5px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 22px; }

.tac-scripture {
  background: var(--paper-2); border-left: 3px solid var(--gold);
  padding: 18px 22px; margin: 0 0 24px;
}
.tac-scripture p { font-style: italic; font-size: 17px; line-height: 1.55; color: var(--ink); margin: 0 0 7px; }
.tac-scripture__cap { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }

.tac-reassure {
  display: flex; flex-direction: column; gap: 10px;
  border-top: 1.5px dashed var(--line); padding-top: 20px;
  font-size: 14.5px; color: var(--ink-soft);
}
.tac-reassure span { display: flex; gap: 10px; align-items: center; }
.tac-check { color: var(--teal); flex-shrink: 0; }
.tac-marker { color: var(--accent); flex-shrink: 0; }

/* WooCommerce add-to-cart styling inside buy column */
.tac-buy form.cart { margin: 0 0 22px; }

/* Variations table (e.g. the "tea flavours" selector) */
.tac-buy table.variations { width: 100%; border-collapse: collapse; margin: 0 0 18px; }
.tac-buy table.variations th,
.tac-buy table.variations td { display: block; width: 100%; text-align: left; padding: 0; }
.tac-buy table.variations th.label { margin-bottom: 10px; }
.tac-buy table.variations th.label label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink); font-weight: 400; margin: 0;
}
.tac-buy table.variations select,
.tac-buy .tac-select {
  width: 100%; font-family: var(--font-mono); font-size: 13px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  padding: 13px 14px; border-radius: 1px;
}
.tac-buy .reset_variations {
  display: inline-block; margin: 8px 0 0;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
}
.tac-buy .woocommerce-variation-price { margin: 0 0 14px; }
.tac-buy .woocommerce-variation-price .price { font-family: var(--font-display); font-size: 26px; color: var(--brand-deep); }

/* Quantity + add to basket on one tidy row */
.tac-buy .woocommerce-variation-add-to-cart,
.tac-buy form.cart:not(.variations_form) { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.tac-buy .quantity { display: flex; }
.tac-buy .quantity input.qty {
  width: 72px; padding: 14px 8px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font-family: var(--font-mono);
  font-size: 14px; text-align: center; border-radius: 1px;
}
/* High-specificity + !important so the brand green beats WooCommerce's
   default purple button styling (.woocommerce button.button.alt). */
.tac-buy .single_add_to_cart_button,
.woocommerce .tac-buy button.single_add_to_cart_button.alt {
  flex: 1; min-width: 200px; border: none;
  background-color: var(--brand) !important; color: var(--paper) !important;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: 15px 24px; border-radius: 1px; cursor: pointer;
  transition: background-color .15s ease;
}
.tac-buy .single_add_to_cart_button:hover,
.woocommerce .tac-buy button.single_add_to_cart_button.alt:hover {
  background-color: var(--brand-deep) !important; color: var(--paper) !important;
}
.tac-buy .single_add_to_cart_button.disabled,
.tac-buy .single_add_to_cart_button:disabled { opacity: .5; cursor: not-allowed; }

/* Stock + variation messages */
.tac-buy .stock {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--teal); margin: 0 0 12px;
}
.tac-buy .stock.out-of-stock { color: var(--accent); }
.tac-buy .wc-no-matching-variations { font-size: 14.5px; color: var(--ink-soft); }
.tac-buy .tac-flavour, .tac-buy .tac-gift { margin-bottom: 18px; }
.tac-buy label.tac-field-label,
.tac-buy .tac-flavour-label {
  display: block; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px;
}
.tac-buy select.tac-select {
  width: 100%; font-family: var(--font-mono); font-size: 13px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  padding: 13px 14px; border-radius: 1px;
}
.tac-gift label {
  display: flex; gap: 11px; align-items: flex-start;
  border: 1px dashed var(--gold); background: var(--card);
  padding: 14px 16px; cursor: pointer;
}
.tac-gift__title { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.tac-gift__hint { display: block; font-size: 14.5px; color: var(--ink-soft); margin-top: 3px; }

/* =========================================================================
   12b. WOOCOMMERCE CART / CHECKOUT / ACCOUNT
   ========================================================================= */
/* Section headings use the display font (not WooCommerce's uppercase sans) */
.woocommerce .cart_totals h2,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout #ship-to-different-address,
.woocommerce .cross-sells > h2,
.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account h2,
.woocommerce-order-received h2 {
  font-family: var(--font-display); font-weight: 600; color: var(--brand-deep);
  text-transform: none; font-size: 30px;
}

/* Shop tables */
.woocommerce table.shop_table { border: 1px solid var(--line); border-radius: 1px; }
.woocommerce table.shop_table th { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.woocommerce table.shop_table td,
.woocommerce table.shop_table tbody th,
.woocommerce table.shop_table tfoot td,
.woocommerce table.shop_table tfoot th { border-top: 1px solid var(--line); }
.woocommerce-cart table.cart td.product-name a,
.woocommerce-checkout .product-name a { color: var(--brand); text-decoration: none; }
.woocommerce-cart table.cart td.product-name a:hover { color: var(--accent); }

/* Prices */
.woocommerce .cart_totals .order-total .amount,
.woocommerce-checkout .order-total .amount { color: var(--brand-deep); font-weight: 700; }

/* Primary WooCommerce buttons -> brand green (beats WC's default purple) */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout #place_order {
  background-color: var(--brand) !important;
  color: var(--paper) !important;
  font-family: var(--font-mono); font-weight: 700; font-size: 12.5px;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none !important;
  border: none; border-radius: 1px; padding: 14px 26px;
  transition: background-color .15s ease;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-checkout #place_order:hover {
  background-color: var(--brand-deep) !important; color: var(--paper) !important;
}

/* Secondary actions (Update basket / Apply coupon) as outline buttons */
.woocommerce button[name="update_cart"],
.woocommerce button[name="apply_coupon"],
.woocommerce .button.wc-backward {
  background-color: transparent !important; color: var(--ink) !important;
  border: 1.4px solid var(--ink) !important;
}
.woocommerce button[name="update_cart"]:hover,
.woocommerce button[name="apply_coupon"]:hover,
.woocommerce .button.wc-backward:hover {
  background-color: transparent !important; border-color: var(--accent) !important; color: var(--accent) !important;
}

/* Form fields */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce #order_comments,
.woocommerce-cart .coupon input[type="text"] {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 1px; padding: 12px 14px; font-family: var(--font-body); font-size: 15px;
}
.woocommerce form .form-row label,
.woocommerce-checkout .form-row label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink);
}
.woocommerce .quantity input.qty {
  border: 1px solid var(--line); background: var(--card); border-radius: 1px;
  font-family: var(--font-mono); padding: 10px 6px;
}

/* Coupon accordion / order review panels */
.woocommerce-checkout #payment,
.woocommerce .cart_totals,
.woocommerce-checkout .woocommerce-checkout-review-order { background: var(--card); border: 1px solid var(--line); }

/* Notices in the brand palette */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews {
  border-top-color: var(--brand) !important; background: var(--paper-2);
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--brand) !important; }

/* About / included / details blocks */
.tac-about-blk {
  max-width: 1080px; margin: 0 auto; padding: 58px var(--gutter) 0;
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: start;
}
.tac-about-blk h2 { font-size: 30px; margin: 0 0 14px; color: var(--brand-deep); }
.tac-about-blk p { font-size: 16px; line-height: 1.75; color: var(--ink-soft); margin: 0 0 14px; }
.tac-included { background: var(--paper-2); border: 1px dashed var(--gold); padding: 28px 30px; }
.tac-included__title { font-family: var(--font-display); font-size: 22px; color: var(--brand); margin-bottom: 16px; }
.tac-included ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tac-included li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); line-height: 1.5; }

.tac-perfect { max-width: 1080px; margin: 0 auto; padding: 46px var(--gutter) 0; }
.tac-perfect h2 { font-size: 30px; margin: 0 0 18px; color: var(--brand-deep); }
.tac-perfect__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tac-perfect__grid li {
  list-style: none; background: var(--card); border: 1px solid var(--line);
  padding: 16px 20px; font-size: 15px; color: var(--ink);
  display: flex; gap: 11px; align-items: flex-start; line-height: 1.5;
}
.tac-perfect__grid ul { margin: 0; padding: 0; display: contents; }

.tac-detail-row {
  max-width: 1080px; margin: 0 auto; padding: 46px var(--gutter) 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.tac-detailcard { background: var(--card); border: 1px solid var(--line); padding: 26px 28px; }
.tac-detailcard--teal { border-top: 3px solid var(--teal); }
.tac-detailcard--gold { border-top: 3px solid var(--gold); }
.tac-detailcard__title { font-family: var(--font-display); font-size: 22px; color: var(--brand); margin-bottom: 14px; }
.tac-detailcard dl, .tac-detailcard .tac-rows { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.tac-detail-line {
  display: flex; justify-content: space-between; gap: 16px;
  border-bottom: 1px dashed var(--line); padding-bottom: 9px;
}
.tac-detail-line dt, .tac-detail-line .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.tac-detail-line dd, .tac-detail-line .value { font-size: 14.5px; color: var(--ink); text-align: right; margin: 0; }
.tac-detailcard p { font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); margin: 0; }

/* FAQ accordion */
.tac-faq { max-width: 880px; margin: 0 auto; padding: 50px var(--gutter) 0; }
.tac-faq h2 { font-size: 32px; margin: 0 0 18px; color: var(--brand-deep); }
.tac-faq__list { border-top: 1.5px dashed var(--line); }
.tac-faq__item { border-bottom: 1.5px dashed var(--line); }
.tac-faq__q {
  cursor: pointer; width: 100%; text-align: left; background: none; border: none;
  font-family: var(--font-display); font-size: 21px; color: var(--ink);
  padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.tac-faq__sign { color: var(--accent); font-size: 24px; flex-shrink: 0; line-height: 1; }
.tac-faq__a { font-size: 15.5px; line-height: 1.75; color: var(--ink-soft); margin: 0 0 20px; max-width: 60em; }
.tac-faq__item[hidden] { display: block; } /* guard */
.tac-faq__a[hidden] { display: none; }

/* Cross-sell band */
.tac-cross { max-width: 1080px; margin: 0 auto; padding: 56px var(--gutter) 66px; }
.tac-cross__inner {
  background: var(--brand); color: var(--paper); overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.4fr; align-items: center;
  transition: box-shadow .2s ease;
}
.tac-cross__inner:hover { box-shadow: 0 26px 50px -30px rgba(0,0,0,.6); }
.tac-cross__media { width: 100%; height: 100%; min-height: 210px; object-fit: cover; }
.tac-cross__body { padding: 36px 40px; }
.tac-cross__eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-on-dark); margin-bottom: 12px; }
.tac-cross__body h3 { font-size: 32px; margin: 0 0 10px; line-height: 1.18; color: var(--paper); }
.tac-cross__body p { font-size: 15.5px; line-height: 1.6; opacity: .9; margin: 0 0 20px; max-width: 33em; }
.tac-cross__cta {
  display: inline-block; font-family: var(--font-mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand-deep);
  background: var(--paper); padding: 12px 20px; border-radius: 1px;
}

/* =========================================================================
   13. ABOUT PAGE
   ========================================================================= */
.tac-about-intro { max-width: 860px; margin: 0 auto; padding: 72px var(--gutter) 14px; text-align: center; }
.tac-about-intro h1 { font-size: 54px; line-height: 1.18; margin: 0 0 20px; color: var(--brand-deep); }
.tac-about-intro p { font-size: 18.5px; line-height: 1.62; color: var(--ink-soft); margin: 0; }

.tac-founder { background: var(--paper-2); }
.tac-founder__grid {
  max-width: 1100px; margin: 0 auto; padding: 66px var(--gutter);
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center;
}
.tac-founder__media { position: relative; }
.tac-founder__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.tac-founder__plate {
  position: absolute; bottom: -18px; left: -16px;
  background: var(--brand); color: var(--paper); padding: 13px 18px; z-index: 2;
}
.tac-founder__name { font-family: var(--font-display); font-size: 19px; }
.tac-founder__role { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; margin-top: 3px; }
.tac-founder__body h2 { font-size: 40px; line-height: 1.18; margin: 0 0 18px; color: var(--brand-deep); }
.tac-founder__body p { font-size: 16px; line-height: 1.75; color: var(--ink-soft); margin: 0 0 15px; }

.tac-valuecards { max-width: var(--wrap); margin: 0 auto; padding: 58px var(--gutter); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tac-valuecard { background: var(--card); border: 1px solid var(--line); padding: 30px 28px; }
.tac-valuecard--accent { border-top: 3px solid var(--accent); }
.tac-valuecard--teal { border-top: 3px solid var(--teal); }
.tac-valuecard--gold { border-top: 3px solid var(--gold); }
.tac-valuecard h3 { font-size: 23px; color: var(--brand); margin-bottom: 9px; }
.tac-valuecard p { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin: 0; }

.tac-choose { max-width: 820px; margin: 0 auto; padding: 8px var(--gutter) 66px; text-align: center; }
.tac-choose h2 { font-size: 36px; margin: 0 0 14px; color: var(--brand-deep); }
.tac-choose p { font-size: 16px; color: var(--ink-soft); margin: 0 0 26px; line-height: 1.6; }
.tac-choose__btns { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }

/* =========================================================================
   14. CONTACT PAGE
   ========================================================================= */
.tac-contact-intro { max-width: 820px; margin: 0 auto; padding: 72px var(--gutter) 10px; text-align: center; }
.tac-contact-intro h1 { font-size: 52px; line-height: 1.18; margin: 0 0 18px; color: var(--brand-deep); }
.tac-contact-intro p { font-size: 17.5px; line-height: 1.62; color: var(--ink-soft); margin: 0; }

.tac-contact-grid {
  max-width: 1080px; margin: 0 auto; padding: 46px var(--gutter) 74px;
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: start;
}
.tac-contact-form { background: var(--card); border: 1px dashed var(--gold); padding: 36px 36px 38px; }
.tac-contact-form__badge {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 24px;
}
.tac-contact-aside { display: flex; flex-direction: column; gap: 16px; }
.tac-infocard { background: var(--paper-2); padding: 26px; }
.tac-infocard--accent { border-left: 3px solid var(--accent); }
.tac-infocard--teal { border-left: 3px solid var(--teal); }
.tac-infocard--gold { border-left: 3px solid var(--gold); }
.tac-infocard__title { font-family: var(--font-display); font-size: 21px; color: var(--brand); margin-bottom: 7px; }
.tac-infocard__mono { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); }
.tac-infocard p { font-size: 15px; color: var(--ink-soft); line-height: 1.65; margin: 6px 0 0; }
.tac-infocard p.muted { font-size: 14px; opacity: .85; }

/* Light styling pass over WPForms so it inherits the editorial look */
.tac-contact-form .wpforms-field-label {
  font-family: var(--font-mono); font-size: 10.5px !important; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink) !important; margin-bottom: 8px;
}
.tac-contact-form input[type="text"],
.tac-contact-form input[type="email"],
.tac-contact-form select,
.tac-contact-form textarea {
  width: 100%; border: 1px solid var(--line); background: var(--paper);
  padding: 13px 14px; font-family: var(--font-body); font-size: 15px;
  color: var(--ink); border-radius: 1px;
}
.tac-contact-form .wpforms-submit {
  cursor: pointer; border: none; background: var(--brand) !important; color: var(--paper) !important;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: 15px 32px !important; border-radius: 1px;
}
.tac-contact-form .wpforms-submit:hover { background: var(--brand-deep) !important; }

/* =========================================================================
   15. FOOTER
   ========================================================================= */
.tac-footer { background: var(--brand-deep); color: var(--paper); }
.tac-footer__top {
  max-width: var(--wrap); margin: 0 auto; padding: 54px var(--gutter) 30px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px;
}
.tac-footer__brand { display: flex; flex-direction: column; margin-bottom: 16px; color: var(--paper); }
.tac-footer__brand-over { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-on-dark); margin-bottom: 6px; }
.tac-footer__brand-name { font-family: var(--font-display); font-size: 26px; line-height: 1.05; }
.tac-footer__desc { font-size: 14.5px; opacity: .78; line-height: 1.6; margin: 0 0 14px; max-width: 26em; }
.tac-footer__url { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; opacity: .7; }
.tac-footer__group { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: rgba(255,255,255,.7); margin: 12px 0 0; }
.tac-footer__group a { color: var(--gold-on-dark); text-decoration: underline; text-underline-offset: 2px; }
.tac-footer__group a:hover { color: var(--paper); }
.tac-footer__heading { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; margin-bottom: 15px; }
.tac-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tac-footer__col a, .tac-footer__col span, .tac-footer__col li { font-size: 14.5px; opacity: .85; color: var(--paper); }
.tac-footer__col a:hover { opacity: 1; color: var(--paper); }
.tac-footer__bottom { border-top: 1.5px dashed rgba(255,255,255,.2); }
.tac-footer__credit { text-align: center; }
.tac-footer__credit a { color: var(--gold-on-dark); text-decoration: underline; text-underline-offset: 2px; }
.tac-footer__credit a:hover { color: var(--paper); }
.tac-footer__bottom-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gutter);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; opacity: .7;
}

/* =========================================================================
   16. GENERIC PAGE / BLOG (index fallback)
   ========================================================================= */
.tac-page { max-width: 820px; margin: 0 auto; padding: 60px var(--gutter); }
.tac-page h1.entry-title { font-size: 48px; margin: 0 0 24px; }
.tac-page .entry-content { font-size: 16.5px; line-height: 1.75; color: var(--ink-soft); }
.tac-page .entry-content h2 { font-size: 30px; margin: 1.4em 0 .5em; }
.tac-page .entry-content h3 { font-size: 24px; margin: 1.2em 0 .4em; }
.tac-page .entry-content a { color: var(--accent); text-decoration: underline; }
.tac-archive-item { border-bottom: 1.5px dashed var(--line); padding: 26px 0; }
.tac-archive-item h2 { font-size: 28px; margin: 0 0 8px; }
.tac-pagination { padding: 30px 0; font-family: var(--font-mono); font-size: 12px; }
.tac-pagination a, .tac-pagination .current { padding: 6px 10px; }

/* =========================================================================
   17. RESPONSIVE
   ========================================================================= */
@media (max-width: 980px) {
  .tac-hero h1 { font-size: 52px; }
  .tac-values__grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .tac-product { grid-template-columns: 1fr; gap: 36px; }
  .tac-gallery { position: static; }
  .tac-story__grid, .tac-founder__grid, .tac-contact-grid, .tac-about-blk { grid-template-columns: 1fr; gap: 40px; }
  .tac-footer__top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .tac-cross__inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  /* Tighter header so the logo + hamburger fit a phone width */
  .tac-header__inner { padding: 12px 16px; gap: 12px; }
  .tac-logo__name { font-size: 20px; }
  .tac-logo__over, .tac-logo__tag { font-size: 8px; letter-spacing: .18em; }

  .tac-nav-toggle { display: inline-flex; align-items: center; flex-shrink: 0; }
  .tac-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1.5px dashed var(--line); padding: 8px 16px 18px;
  }
  .tac-nav.is-open { display: flex; }
  .tac-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .tac-nav li { width: 100%; border-top: 1px dashed var(--line); }
  .tac-nav a { display: block; padding: 14px 0; }
  .tac-basket { border-left: none; padding-left: 0; padding-top: 14px; border-top: 1px dashed var(--line); width: 100%; }

  /* Keep decorative roundels/plates from spilling past the viewport */
  .tac-roundel { right: 6px; }
  .tac-founder__plate { left: 6px; }

  .tac-hero { padding-top: 40px; }
  .tac-hero h1 { font-size: 42px; }
  .tac-duo { grid-template-columns: 1fr; }
  .tac-how__grid, .tac-reviews__grid, .tac-valuecards { grid-template-columns: 1fr; }
  .tac-how__col--mid { border: none; border-top: 1.5px dashed var(--line); border-bottom: 1.5px dashed var(--line); padding: 24px 16px; }
  .tac-perfect__grid, .tac-detail-row { grid-template-columns: 1fr; }
  .tac-values__grid { grid-template-columns: 1fr; }
  .tac-values__item { border-left: none; border-top: 1px solid rgba(255,255,255,.18); padding: 16px 0 0; }
  .tac-footer__top { grid-template-columns: 1fr; }
  .tac-news__form { flex-direction: column; }
}
