/*
Theme Name: Tea Gift Sets
Theme URI: https://teagiftsets.com
Author: Tea Gift Sets
Author URI: https://teagiftsets.com
Description: A specialist WooCommerce theme for Tea Gift Sets (teagiftsets.com), a UK brand selling handcrafted teabag gift sets with individually sewn envelopes. SEO-first category and product templates, heritage palette (eau de nil, deep green, navy), Stripe and PayPal checkout, WPForms contact page. Fully editable via the Customizer and the WordPress Loop.
Version: 1.2.3
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: teagiftsets
Tags: e-commerce, woocommerce, custom-colors, custom-menu, custom-logo, featured-images, full-width-template, sticky-post, translation-ready
WC requires at least: 7.0
WC tested up to: 8.6
*/

/* ==========================================================================
   1. Design tokens (heritage palette — production default)
   ========================================================================== */
:root {
  --paper: #f4f1e7;       /* page background (warm cream) */
  --paper-2: #d3e7df;     /* eau de nil section background */
  --card: #fffefb;        /* card background */
  --ink: #22302b;         /* primary text */
  --ink-soft: #586a62;    /* secondary text */
  --line: #dce6de;        /* borders / hairlines */
  --brand: #2c6a5e;       /* primary green */
  --brand-deep: #193f39;  /* deep green (footer, headings) */
  --accent: #1c2b50;      /* Fortnum navy (announcement bar, links, "Gift") */
  --accent-soft: #d8e9e1; /* soft eau de nil (pills, image frame backing) */
  --gold: #bf9c45;        /* gold (stars, value-band sub-headings) */
  --teal: #4f9384;        /* mid teal (tick accents, card borders) */
  --rose: #b89a52;        /* secondary accent (gold tone) */
  --plum: #356f63;        /* secondary accent (green tone) */

  --maxw: 1240px;
  --pad: 28px;
  --radius-card: 3px;
  --radius-input: 2px;
  --shadow-hover: 0 18px 36px -26px rgba(0, 0, 0, .45);

  --font-body: 'Hanken Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Italiana', Georgia, 'Times New Roman', serif;
  --font-script: 'Dancing Script', cursive;
  --font-quote: 'Spectral', Georgia, serif;
}

/* ==========================================================================
   2. Base / reset
   ========================================================================== */
* { box-sizing: border-box; }

body.teagiftsets {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Guard against stray horizontal overflow. overflow-x:clip (not hidden) does
     not create a scroll container, so the sticky header and product gallery
     keep working. */
  overflow-x: clip;
}

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

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

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

/* Faux-bold for the Italiana display face.
   Italiana ships at weight 400 only, so font-weight has no effect and small
   titles read too thin. A hairline text-stroke in the current colour thickens
   the glyphs for legibility (the same trick the design uses on the wordmark).
   Larger display headings get a lighter stroke; small UI titles a touch more. */
h1, h2, h3, h4 {
  -webkit-text-stroke: 0.3px currentColor;
  text-stroke: 0.3px currentColor;
}
.tgs-brandtile__name,
.tgs-tile__title,
.tgs-card__title,
.tgs-card__price,
.tgs-value__title,
.tgs-feature__title,
.tgs-infocard__title,
.tgs-sidecard__title,
.tgs-bandcard h3,
.tgs-related__title,
.tgs-hero__float-title,
.tgs-product__price,
.tgs-cathero__eyebrow,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product-category .woocommerce-loop-category__title,
.woocommerce ul.products li.product .price {
  -webkit-text-stroke: 0.4px currentColor;
  text-stroke: 0.4px currentColor;
}

.tgs-container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.tgs-narrow { max-width: 880px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.tgs-narrower { max-width: 820px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.tgs-eyebrow {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 16px;
}
.tgs-stars { color: var(--gold); letter-spacing: .04em; }
.tgs-tick { color: var(--teal); }

.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;
}

/* ==========================================================================
   3. Buttons
   ========================================================================== */
.tgs-btn {
  display: inline-block; cursor: pointer; border: none;
  background: var(--brand); color: var(--paper);
  font-family: inherit; font-size: 15px; font-weight: 600;
  padding: 15px 30px; border-radius: var(--radius-input);
  letter-spacing: .01em; text-decoration: none; transition: background .15s, border-color .15s, color .15s;
}
.tgs-btn:hover { background: var(--brand-deep); color: var(--paper); }
.tgs-btn--outline {
  background: transparent; border: 1px solid var(--ink); color: var(--ink); white-space: nowrap;
}
.tgs-btn--outline:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.tgs-btn--accent { background: var(--accent); color: #fff; }
.tgs-btn--accent:hover { background: var(--brand-deep); }
.tgs-btn--block { display: block; width: 100%; text-align: center; }

/* ==========================================================================
   4. Announcement bar + header
   ========================================================================== */
.tgs-announce {
  background: var(--accent); color: var(--paper);
  font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase;
  text-align: center; padding: 9px 16px; font-weight: 500;
}

.tgs-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.tgs-header__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 15px var(--pad);
}
.tgs-nav { display: flex; gap: 22px; align-items: center; flex: 1; font-size: 14.5px; font-weight: 500; }
.tgs-nav--right { justify-content: flex-end; }
/* Desktop placement via flex order: left nav | wordmark | right nav | (hamburger
   hidden). DOM order is logo, hamburger, primary, right — reordered here so the
   logo/hamburger sit correctly on mobile without changing the desktop design. */
.tgs-nav { order: 1; }
.tgs-wordmark { order: 2; }
.tgs-nav--right { order: 3; }
.tgs-nav-toggle { order: 4; }
.tgs-nav a { color: var(--ink); text-decoration: none; }
.tgs-nav a:hover { color: var(--accent); }
.tgs-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; align-items: center; }

/* Wordmark */
.tgs-wordmark { text-align: center; text-decoration: none; color: var(--brand-deep); flex-shrink: 0; }
.tgs-wordmark__lockup { display: flex; align-items: center; justify-content: center; gap: 9px; line-height: 1; }
.tgs-wordmark__word {
  font-family: var(--font-display); font-size: 24px; letter-spacing: .17em;
  text-transform: uppercase; color: var(--brand-deep);
  -webkit-text-stroke: 0.5px var(--brand-deep); /* faux-bold: Italiana ships at 400 only */
}
.tgs-wordmark__script {
  font-family: var(--font-script); font-weight: 700; font-size: 34px;
  color: var(--accent); line-height: .7; position: relative; top: 2px;
}
.tgs-wordmark__tag {
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: 9px; white-space: nowrap;
}

/* Basket link */
.tgs-basket {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand); font-weight: 600; cursor: pointer; text-decoration: none;
  border-left: 1px solid var(--line); padding-left: 18px;
}
.tgs-basket:hover { color: var(--brand-deep); }
.tgs-basket__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 100px;
  background: var(--accent); color: var(--paper); font-size: 11px;
}

/* Mobile nav toggle (hidden on desktop) */
.tgs-nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--ink); padding: 4px; }

/* Header product search */
.tgs-search { position: relative; display: inline-flex; align-items: center; }
.tgs-search-toggle { background: none; border: none; cursor: pointer; color: var(--ink); padding: 4px; display: inline-flex; align-items: center; }
.tgs-search-toggle:hover { color: var(--accent); }
.tgs-search-panel {
  position: absolute; top: calc(100% + 16px); right: 0; z-index: 50; width: 300px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 10px; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .4);
}
.tgs-search-panel[hidden] { display: none; }
.tgs-search-panel form { display: flex; gap: 8px; }
.tgs-search-panel input[type="search"] {
  flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--paper);
  border-radius: var(--radius-input); padding: 10px 12px; font-family: inherit; font-size: 14.5px; color: var(--ink);
}
.tgs-search-panel button {
  background: var(--brand); border: none; color: var(--paper); border-radius: var(--radius-input);
  padding: 0 13px; cursor: pointer; display: inline-flex; align-items: center;
}
.tgs-search-panel button:hover { background: var(--brand-deep); }

/* ==========================================================================
   5. Homepage
   ========================================================================== */
.tgs-hero {
  max-width: var(--maxw); margin: 0 auto; padding: 60px var(--pad) 40px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center;
}
.tgs-pill {
  display: inline-block; white-space: nowrap;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 18px;
  background: var(--accent-soft); padding: 6px 14px; border-radius: 100px;
}
.tgs-hero h1 {
  font-size: 53px; line-height: 1.04; letter-spacing: -.01em; margin: 0 0 22px;
}
.tgs-hero__lead { font-size: 17px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 16px; max-width: 34em; }
.tgs-hero__lead--sm { font-size: 15.5px; margin-bottom: 30px; }
.tgs-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.tgs-hero__trust {
  display: flex; gap: 24px; margin-top: 32px; font-size: 13.5px; color: var(--ink-soft); flex-wrap: wrap;
}
.tgs-hero__trust span { display: inline-flex; gap: 8px; align-items: center; }

/* Scaled down a little so the (portrait) image doesn't rise too close to the
   nav; the offset backing and floating card scale with it. */
.tgs-hero__media { position: relative; max-width: 88%; margin: 0 auto; }
/* Invisible stretched link overlaying an image: clickable, with no visible
   link styling (used on the hero and SEO block images). */
.tgs-imglink { position: absolute; inset: 0; z-index: 2; display: block; }
.tgs-hero__backing { position: absolute; inset: -18px -26px 12px 26px; background: var(--accent-soft); border-radius: 14px; }
.tgs-hero__img { position: relative; width: 100%; aspect-ratio: 4/5; border-radius: 12px; overflow: hidden; background: var(--accent-soft); }
.tgs-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.tgs-hero__float {
  position: absolute; bottom: -22px; left: -22px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-card); padding: 15px 19px;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .4); max-width: 210px; z-index: 2;
}
.tgs-hero__float-title { font-family: var(--font-display); font-size: 18px; color: var(--brand); }
.tgs-hero__float-sub { font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; }

/* Section header rows */
.tgs-section { max-width: var(--maxw); margin: 0 auto; padding: 34px var(--pad); }
.tgs-section--tight { padding: 28px var(--pad) 50px; }
.tgs-section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 22px; flex-wrap: wrap; gap: 12px;
}
.tgs-section__head h2 { font-size: 29px; margin: 0; }
.tgs-link { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }

/* Shop by brand tiles */
.tgs-brandgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
/* Brand tiles: image (or brand colour) on top, name + subtitle on a card below
   (same layout as the recipient cards). */
.tgs-brandtile {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 4px; overflow: hidden; text-decoration: none; color: inherit;
  transition: box-shadow .15s, transform .15s;
}
.tgs-brandtile:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.tgs-brandtile__img { position: relative; aspect-ratio: 5/4; overflow: hidden; }
.tgs-brandtile__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tgs-brandtile__body { padding: 15px 18px; }
.tgs-brandtile__name { font-family: var(--font-display); font-size: 18px; color: var(--brand-deep); line-height: 1.15; }
.tgs-brandtile__sub { font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; }

/* Product card grids */
.tgs-grid { display: grid; gap: 20px; }
.tgs-grid--4 { grid-template-columns: repeat(4, 1fr); }
.tgs-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Find the perfect set (recipient tiles) */
.tgs-band { background: var(--paper-2); }
.tgs-band--green { background: var(--brand); color: var(--paper); }
.tgs-band__inner { max-width: var(--maxw); margin: 0 auto; padding: 50px var(--pad); }
.tgs-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.tgs-tile {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-card); overflow: hidden; text-decoration: none; transition: border-color .15s;
}
.tgs-tile:hover { border-color: var(--teal); }
.tgs-tile__img { position: relative; aspect-ratio: 5/4; overflow: hidden; background: linear-gradient(150deg, #cfe7de, #a6cdc1); }
.tgs-tile__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tgs-tile__body { padding: 15px 18px; }
.tgs-tile__title { font-family: var(--font-display); font-size: 18px; color: var(--brand-deep); }
.tgs-tile__sub { font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; }

/* Value props */
/* auto-fit so the row stays evenly filled whether there are 2, 3 or 4 props. */
.tgs-values { max-width: var(--maxw); margin: 0 auto; padding: 42px var(--pad); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.tgs-value__title { font-family: var(--font-display); font-size: 20px; margin-bottom: 6px; color: var(--gold); }
.tgs-value__text { font-size: 13.5px; opacity: .85; line-height: 1.55; }

/* SEO content block */
.tgs-seo { max-width: var(--maxw); margin: 0 auto; padding: 62px var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.tgs-seo h2 { font-size: 30px; margin: 0 0 18px; line-height: 1.15; }
.tgs-seo p { font-size: 15.5px; line-height: 1.78; color: var(--ink-soft); margin: 0 0 16px; }
.tgs-seo p:last-child { margin-bottom: 0; }
.tgs-seo__cards { display: flex; flex-direction: column; gap: 14px; }
/* SEO block image (replaces the old info-card panels). Stretches to match the
   copy column height via the grid; min-height keeps it presentable if short. */
.tgs-seo__media { position: relative; min-height: 360px; }
.tgs-seo__backing { position: absolute; inset: -18px -26px 12px 26px; background: var(--accent-soft); border-radius: 14px; }
.tgs-seo__frame { position: relative; height: 100%; min-height: 360px; border-radius: 12px; overflow: hidden; background: var(--accent-soft); }
.tgs-seo__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tgs-seo__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(0, 0, 0, .34); font-family: var(--font-display); font-size: 16px; }
.tgs-infocard {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius-card); padding: 22px 26px;
}
.tgs-infocard--teal { border-left-color: var(--teal); }
.tgs-infocard--gold { border-left-color: var(--gold); }
.tgs-infocard__title { font-family: var(--font-display); font-size: 19px; color: var(--brand); margin-bottom: 6px; }
.tgs-infocard__text { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }

/* Reviews */
.tgs-reviews__head { text-align: center; margin-bottom: 32px; }
.tgs-reviews__head h2 { font-size: 28px; margin: 8px 0 0; }
.tgs-reviewcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 26px; }
.tgs-reviewcard__quote { font-family: var(--font-quote); font-size: 17px; line-height: 1.6; color: var(--ink); margin: 12px 0 16px; }
.tgs-reviewcard__by { font-size: 13px; color: var(--ink-soft); font-weight: 600; }

/* Newsletter */
.tgs-news { max-width: 780px; margin: 0 auto; padding: 62px var(--pad); text-align: center; }
.tgs-news h2 { font-size: 30px; margin: 0 0 12px; }
.tgs-news p { font-size: 15.5px; color: var(--ink-soft); margin: 0 0 24px; line-height: 1.65; }
.tgs-news__form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.tgs-input {
  flex: 1; border: 1px solid var(--line); background: var(--card);
  border-radius: var(--radius-input); padding: 14px 16px;
  font-family: inherit; font-size: 15px; color: var(--ink);
}

/* Theme a WPForms (or similar) newsletter form dropped into the newsletter band:
   centre it, lay the email field + button inline, and match the input/button. */
.tgs-news .wpforms-container { max-width: 470px; margin: 8px auto 0; text-align: left; }
.tgs-news .wpforms-container .wpforms-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; justify-content: center; }
.tgs-news .wpforms-field-container { flex: 1 1 240px; min-width: 0; margin: 0 !important; }
.tgs-news .wpforms-field { padding: 0 !important; margin: 0 !important; max-width: none !important; flex: 1 1 240px; min-width: 0; }
/* Hide the field label visually (keeps it for screen readers) for a clean inline look. */
.tgs-news .wpforms-field-label,
.tgs-news .wpforms-field-sublabel,
.tgs-news .wpforms-field-description {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; white-space: nowrap;
}
.tgs-news .wpforms-field input[type="email"],
.tgs-news .wpforms-field input[type="text"] {
  width: 100% !important; max-width: 100% !important; box-sizing: border-box; height: auto !important;
  border: 1px solid var(--line) !important; background: var(--card) !important;
  border-radius: var(--radius-input) !important; padding: 14px 16px !important;
  font-family: inherit !important; font-size: 15px !important; color: var(--ink) !important; box-shadow: none !important;
}
.tgs-news .wpforms-submit-container { padding: 0 !important; margin: 0 !important; flex: 0 0 auto; }
.tgs-news button.wpforms-submit {
  background: var(--accent) !important; color: #fff !important; border: none !important;
  border-radius: var(--radius-input) !important; padding: 14px 26px !important; height: 100%;
  font-family: inherit !important; font-weight: 600 !important; font-size: 15px !important; cursor: pointer; white-space: nowrap;
}
.tgs-news button.wpforms-submit:hover { background: var(--brand-deep) !important; }

/* ==========================================================================
   6. Product card (shared: home, category, product, WooCommerce)
   ========================================================================== */
.tgs-card {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-card);
  overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .15s;
}
.tgs-card:hover { box-shadow: var(--shadow-hover); }
.tgs-card__media {
  position: relative; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #d8e6d2, #aec79f);
}
.tgs-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tgs-card__ph { font-family: var(--font-display); font-size: 15px; color: rgba(0, 0, 0, .34); letter-spacing: .04em; }
.tgs-card__badge {
  position: absolute; top: 12px; left: 12px; background: var(--brand-deep); color: var(--paper);
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  padding: 5px 9px; border-radius: var(--radius-input); z-index: 2;
}
.tgs-card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.tgs-card__title { font-family: var(--font-display); font-weight: 500; font-size: 17.5px; margin: 0; color: var(--ink); line-height: 1.2; }
.tgs-card__sub { font-size: 13px; color: var(--ink-soft); margin: 0; flex: 1; }
.tgs-card__rating { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-soft); }
.tgs-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 4px; }
.tgs-card__price { font-family: var(--font-display); font-size: 19px; color: var(--brand-deep); }
.tgs-card__price del { color: var(--ink-soft); font-size: .8em; margin-right: 6px; opacity: .7; }
.tgs-card__add {
  font-size: 12.5px; font-weight: 600; color: var(--accent); border: 1px solid var(--accent);
  padding: 7px 12px; border-radius: var(--radius-input); background: none; cursor: pointer; text-decoration: none; transition: background .15s, color .15s;
}
.tgs-card__add:hover { background: var(--accent); color: var(--paper); }
.tgs-card__add--full { color: var(--paper); background: var(--brand); border-color: var(--brand); padding: 8px 16px; font-size: 13px; }
.tgs-card__add--full:hover { background: var(--brand-deep); color: var(--paper); }

/* ==========================================================================
   7. Category template (hero band — production default)
   ========================================================================== */
.tgs-breadcrumb { max-width: var(--maxw); margin: 0 auto; padding: 18px var(--pad) 0; font-size: 13px; color: var(--ink-soft); }
.tgs-breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.tgs-breadcrumb a:hover { color: var(--accent); }
.tgs-breadcrumb__sep { margin: 0 8px; opacity: .5; }
.tgs-breadcrumb__current { color: var(--ink); }

.tgs-cathero { max-width: var(--maxw); margin: 24px auto 0; padding: 0 var(--pad); }
.tgs-cathero__card {
  background: var(--brand); color: var(--paper); border-radius: 4px; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr .9fr;
}
.tgs-cathero__copy { padding: 54px 50px; }
.tgs-cathero__eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 16px; }
.tgs-cathero h1 { font-size: 45px; line-height: 1.05; margin: 0 0 20px; color: var(--paper); }
.tgs-cathero p { font-size: 16.5px; line-height: 1.72; opacity: .92; margin: 0 0 14px; max-width: 36em; }
/* Links in the category description sit on the dark green band: lighten them so
   they read clearly against it. */
.tgs-cathero__copy a {
  color: var(--paper); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px;
}
.tgs-cathero__copy a:hover { color: var(--gold); }
.tgs-cathero__ticks { display: flex; gap: 22px; font-size: 13.5px; opacity: .85; flex-wrap: wrap; margin-top: 12px; }
.tgs-cathero__img {
  background: linear-gradient(150deg, #bcd6cc, #8db3a6); min-height: 340px;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.tgs-cathero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tgs-cathero__img span { font-family: var(--font-display); color: rgba(255, 255, 255, .75); font-size: 16px; }

.tgs-sortbar {
  max-width: var(--maxw); margin: 0 auto; padding: 30px var(--pad) 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.tgs-sortbar__count { font-size: 14px; color: var(--ink-soft); }
.tgs-sortbar__count strong { color: var(--ink); }
.tgs-sortbar form, .tgs-sortbar__sort { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink-soft); }
.tgs-select {
  font-family: inherit; font-size: 13.5px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); padding: 8px 12px; border-radius: var(--radius-input);
}

/* Shared below-grid content */
.tgs-twocards { max-width: var(--maxw); margin: 0 auto; padding: 46px var(--pad) 10px; }
.tgs-twocards__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tgs-bandcard { background: var(--paper-2); border-radius: var(--radius-card); padding: 32px 34px; border-left: 4px solid var(--accent); }
.tgs-bandcard--teal { border-left-color: var(--teal); }
.tgs-bandcard__eyebrow { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.tgs-bandcard--teal .tgs-bandcard__eyebrow { color: var(--teal); }
.tgs-bandcard h3 { font-size: 22px; margin: 0 0 10px; }
.tgs-bandcard p { font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); margin: 0; }

.tgs-longform { max-width: 880px; margin: 0 auto; padding: 40px var(--pad) 10px; }
.tgs-longform h2 { font-size: 28px; margin: 0 0 16px; }
.tgs-longform p { font-size: 15.5px; line-height: 1.8; color: var(--ink-soft); margin: 0 0 16px; }
.tgs-longform p:last-child { margin-bottom: 0; }

/* FAQ accordion */
.tgs-faq { max-width: 880px; margin: 0 auto; padding: 36px var(--pad) 10px; }
.tgs-faq h2 { font-size: 26px; margin: 0 0 18px; }
.tgs-faq__list { border-top: 1px solid var(--line); }
.tgs-faq__item { border-bottom: 1px solid var(--line); }
.tgs-faq__q {
  cursor: pointer; width: 100%; text-align: left; background: none; border: none;
  font-family: var(--font-display); font-size: 18px; color: var(--ink);
  padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.tgs-faq__icon { color: var(--accent); font-size: 22px; flex-shrink: 0; transition: transform .2s; }
.tgs-faq__item.is-open .tgs-faq__icon { transform: rotate(45deg); }
.tgs-faq__a { font-size: 14.5px; line-height: 1.75; color: var(--ink-soft); margin: 0 0 20px; max-width: 60em; display: none; }
.tgs-faq__item.is-open .tgs-faq__a { display: block; }

/* Related categories */
.tgs-related { max-width: var(--maxw); margin: 0 auto; padding: 40px var(--pad) 64px; }
.tgs-related h2 { font-size: 24px; margin: 0 0 20px; }
.tgs-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tgs-related__card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; text-decoration: none; transition: border-color .15s; }
.tgs-related__card:hover { border-color: var(--accent); }
.tgs-related__img { position: relative; aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(150deg, #c6dedb, #8fbdb7); }
.tgs-related__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tgs-related__body { padding: 16px 18px; }
.tgs-related__title { font-family: var(--font-display); font-size: 18px; color: var(--brand-deep); }
.tgs-related__sub { font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; }

/* ==========================================================================
   8. Single product
   ========================================================================== */
.tgs-product { max-width: var(--maxw); margin: 0 auto; padding: 28px var(--pad) 0; display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: start; }
/* Neutralise WooCommerce's default single-product floats/widths so our grid
   tracks fill correctly (the .images / .summary 48% rules must not apply here). */
.tgs-product .tgs-product__gallery,
.tgs-product .tgs-product__details { width: auto; float: none; margin: 0; }
.tgs-product__gallery { position: sticky; top: 96px; }
.tgs-product__main { width: 100%; aspect-ratio: 1/1; border-radius: 4px; overflow: hidden; background: var(--accent-soft); }
.tgs-product__main img { width: 100%; height: 100%; object-fit: cover; }
.tgs-product__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.tgs-product__thumb { aspect-ratio: 1/1; border-radius: var(--radius-card); overflow: hidden; background: var(--accent-soft); cursor: pointer; }
.tgs-product__thumb img { width: 100%; height: 100%; object-fit: cover; }

.tgs-product__eyebrow { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.tgs-product__eyebrow a { color: inherit; text-decoration: none; }
.tgs-product h1 { font-size: 38px; line-height: 1.08; margin: 0 0 14px; }
.tgs-product__rating { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 18px; }
.tgs-product__price { font-family: var(--font-display); font-size: 30px; color: var(--brand-deep); margin-bottom: 20px; }
.tgs-product__price del { color: var(--ink-soft); opacity: .7; margin-right: 10px; }
.tgs-product__desc { font-size: 15.5px; line-height: 1.72; color: var(--ink-soft); margin: 0 0 24px; }

.tgs-product__block { margin-bottom: 22px; }
.tgs-product__block-label { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.tgs-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.tgs-pill-btn {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-size: 13.5px; font-weight: 600; padding: 10px 18px; border-radius: var(--radius-input); cursor: pointer;
}
.tgs-pill-btn.is-active, .tgs-pill-btn:hover { border-color: var(--brand); background: var(--brand); color: var(--paper); }

.tgs-giftmsg {
  display: flex; gap: 11px; align-items: flex-start;
  border: 1px solid var(--line); background: var(--card); border-radius: var(--radius-card);
  padding: 14px 16px; margin-bottom: 18px; cursor: pointer;
}
.tgs-giftmsg input { margin-top: 3px; }
.tgs-giftmsg__title { font-size: 14px; font-weight: 600; color: var(--ink); }
.tgs-giftmsg__hint { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 2px; }

.tgs-buyrow { display: flex; gap: 12px; margin-bottom: 22px; }
.tgs-qty { display: flex; align-items: center; border: 1px solid var(--line); background: var(--card); border-radius: var(--radius-input); }
.tgs-qty button { background: none; border: none; padding: 0 14px; font-size: 18px; color: var(--ink-soft); cursor: pointer; height: 100%; }
.tgs-qty input { width: 40px; text-align: center; border: none; background: none; font-family: inherit; font-size: 15px; padding: 14px 0; -moz-appearance: textfield; }
.tgs-qty input::-webkit-outer-spin-button, .tgs-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.tgs-trustlist { display: flex; flex-direction: column; gap: 9px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 13.5px; color: var(--ink-soft); }
.tgs-trustlist span { display: flex; gap: 10px; align-items: center; }

/* WooCommerce native add-to-cart form, restyled to the design inside .tgs-product.
   The blend <select> is upgraded into .tgs-pills by js/theme.js; the raw select
   is hidden but kept in the DOM as the real, functional control. */
.tgs-product form.cart { margin: 0 0 22px; }
.tgs-product .variations { width: 100%; margin: 0 0 18px; border: 0; }
.tgs-product .variations tr { display: block; margin-bottom: 14px; }
.tgs-product .variations th,
.tgs-product .variations td { display: block; padding: 0; border: 0; text-align: left; }
.tgs-product .variations th.label { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.tgs-product .variations label { font-weight: 600; }
.tgs-product .variations .reset_variations { font-size: 12.5px; color: var(--accent); margin-left: 8px; }
.tgs-product .tgs-swatch-select { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tgs-product .single_variation .price { font-family: var(--font-display); font-size: 24px; color: var(--brand-deep); display: block; margin-bottom: 14px; }
.tgs-product .single_variation .stock,
.tgs-product .woocommerce-variation-availability { font-size: 13px; color: var(--ink-soft); margin-bottom: 10px; }

.tgs-product form.cart:not(.variations_form),
.tgs-product .woocommerce-variation-add-to-cart {
  display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap;
}
.tgs-product form.cart .quantity {
  display: flex; align-items: center; border: 1px solid var(--line);
  background: var(--card); border-radius: var(--radius-input);
}
.tgs-product form.cart .quantity .qty {
  width: 48px; text-align: center; border: none; background: none;
  font-family: inherit; font-size: 15px; padding: 14px 0; -moz-appearance: textfield;
}
.tgs-product form.cart .quantity .qty::-webkit-outer-spin-button,
.tgs-product form.cart .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tgs-product form.cart button.single_add_to_cart_button {
  flex: 1; min-width: 220px; background: var(--brand); color: var(--paper); border: none;
  border-radius: var(--radius-input); font-family: inherit; font-weight: 600; font-size: 15px; padding: 15px; cursor: pointer;
}
.tgs-product form.cart button.single_add_to_cart_button:hover { background: var(--brand-deep); }
.tgs-product .woocommerce-variation-add-to-cart.woocommerce-variation-add-to-cart-disabled button { opacity: .45; cursor: not-allowed; }

.tgs-prosesimple { max-width: 880px; margin: 0 auto; padding: 56px var(--pad) 0; }
.tgs-prosesimple h2 { font-size: 24px; margin: 0 0 14px; }
.tgs-prosesimple p { font-size: 15.5px; line-height: 1.8; color: var(--ink-soft); margin: 0 0 14px; }

/* ==========================================================================
   9. About + Contact
   ========================================================================== */
.tgs-pageintro { max-width: 820px; margin: 0 auto; padding: 70px var(--pad) 12px; text-align: center; }
.tgs-pageintro h1 { font-size: 47px; line-height: 1.06; margin: 0 0 20px; }
.tgs-pageintro__lead { font-size: 17.5px; line-height: 1.7; color: var(--ink-soft); margin: 0; }

.tgs-feature-cards { max-width: var(--maxw); margin: 0 auto; padding: 48px var(--pad); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tgs-feature {
  background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--accent);
  border-radius: var(--radius-card); padding: 30px 28px;
}
.tgs-feature--teal { border-top-color: var(--teal); }
.tgs-feature--gold { border-top-color: var(--gold); }
.tgs-feature__title { font-family: var(--font-display); font-size: 21px; color: var(--brand); margin-bottom: 8px; }
.tgs-feature p { font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); margin: 0; }

.tgs-founder { max-width: 1100px; margin: 0 auto; padding: 64px var(--pad); display: grid; grid-template-columns: .8fr 1.2fr; gap: 54px; align-items: center; }
.tgs-founder__media { position: relative; }
.tgs-founder__backing { position: absolute; inset: 16px -12px -12px 16px; background: var(--accent-soft); border-radius: 6px; }
.tgs-founder__img { position: relative; width: 100%; aspect-ratio: 4/5; border-radius: 4px; overflow: hidden; background: var(--accent-soft); }
.tgs-founder__img img { width: 100%; height: 100%; object-fit: cover; }
.tgs-founder__tag { position: absolute; bottom: -16px; left: -16px; background: var(--brand); color: var(--paper); padding: 12px 18px; border-radius: var(--radius-card); z-index: 2; }
.tgs-founder__tag-name { font-family: var(--font-display); font-size: 17px; }
.tgs-founder__tag-role { font-size: 11.5px; opacity: .82; letter-spacing: .04em; }
.tgs-founder h2 { font-size: 34px; line-height: 1.1; margin: 0 0 18px; }
.tgs-founder p { font-size: 15.5px; line-height: 1.78; color: var(--ink-soft); margin: 0 0 15px; }
.tgs-founder p:last-child { margin-bottom: 0; }

.tgs-ctaband { max-width: 820px; margin: 0 auto; padding: 64px var(--pad); text-align: center; }
.tgs-ctaband h2 { font-size: 30px; margin: 0 0 14px; }
.tgs-ctaband p { font-size: 15.5px; color: var(--ink-soft); margin: 0 0 24px; line-height: 1.65; }
.tgs-ctaband__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Contact */
.tgs-contact { max-width: 1080px; margin: 0 auto; padding: 44px var(--pad) 72px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: start; }
.tgs-formcard { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 36px 36px 38px; }
.tgs-formcard__badge { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-bottom: 22px; }
.tgs-sidecards { display: flex; flex-direction: column; gap: 18px; }
.tgs-sidecard { background: var(--paper-2); border-radius: var(--radius-card); padding: 26px; border-left: 4px solid var(--accent); }
.tgs-sidecard--teal { border-left-color: var(--teal); }
.tgs-sidecard--gold { border-left-color: var(--gold); }
.tgs-sidecard__title { font-family: var(--font-display); font-size: 19px; color: var(--brand); margin-bottom: 6px; }
.tgs-sidecard__text { font-size: 14.5px; color: var(--ink-soft); line-height: 1.7; }

/* Fallback HTML form (used only if WPForms is not yet placed) */
.tgs-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.tgs-field { margin-bottom: 18px; }
.tgs-field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.tgs-field .req { color: var(--accent); }
.tgs-field input, .tgs-field select, .tgs-field textarea {
  width: 100%; border: 1px solid var(--line); background: var(--paper);
  border-radius: var(--radius-input); padding: 13px 14px; font-family: inherit; font-size: 14.5px; color: var(--ink);
}
.tgs-field textarea { resize: vertical; }

/* ==========================================================================
   10. Footer
   ========================================================================== */
.tgs-footer { background: var(--brand-deep); color: var(--paper); }
.tgs-footer__top { max-width: var(--maxw); margin: 0 auto; padding: 54px var(--pad) 30px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 34px; }
.tgs-footer__lockup { display: flex; align-items: center; gap: 8px; line-height: 1; margin-bottom: 14px; }
.tgs-footer__word { font-family: var(--font-display); font-size: 21px; letter-spacing: .17em; text-transform: uppercase; -webkit-text-stroke: 0.4px currentColor; }
.tgs-footer__script { font-family: var(--font-script); font-weight: 700; font-size: 30px; color: var(--accent-soft); line-height: .7; position: relative; top: 2px; }
.tgs-footer__blurb { font-size: 13.5px; opacity: .78; line-height: 1.65; margin: 0 0 16px; max-width: 24em; }
.tgs-footer__domain { font-size: 12.5px; opacity: .7; }
.tgs-footer__credit { text-align: center; }
.tgs-footer__credit a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 2px; }
.tgs-footer__credit a:hover { color: var(--paper); }
.tgs-footer__coltitle { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; margin-bottom: 14px; font-weight: 600; }
.tgs-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.tgs-footer__col a { font-size: 13.5px; opacity: .85; color: inherit; text-decoration: none; }
.tgs-footer__col a:hover { opacity: 1; }
.tgs-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .14); }
.tgs-footer__bottom-inner { max-width: var(--maxw); margin: 0 auto; padding: 18px var(--pad); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; opacity: .7; }

/* ==========================================================================
   11. WooCommerce bridging (map default Woo markup to the card design)
   ========================================================================== */
/* Centred container for the loop region (count, ordering, grid, pagination). */
.tgs-shop { max-width: var(--maxw); margin: 0 auto; padding: 30px var(--pad) 56px; }
.tgs-shop__title { font-size: 42px; margin: 8px 0 12px; }
.tgs-shop__intro { max-width: 60em; margin: 0 0 26px; font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.tgs-shop__intro p { margin: 0 0 12px; }
.tgs-shop__intro p:last-child { margin-bottom: 0; }
.tgs-shop::after { content: ""; display: table; clear: both; }
.tgs-shop .woocommerce-result-count { float: left; font-size: 14px; color: var(--ink-soft); margin: 0 0 20px; }
.tgs-shop .woocommerce-ordering { float: right; margin: 0 0 20px; }
.tgs-shop .woocommerce-ordering select {
  font-family: inherit; font-size: 13.5px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); padding: 8px 12px; border-radius: var(--radius-input);
}
.tgs-shop .woocommerce-notices-wrapper { width: 100%; float: none; }
.tgs-wc > .woocommerce-info, .tgs-wc > .woocommerce-message, .tgs-wc > .woocommerce-error {
  max-width: var(--maxw); margin-left: auto; margin-right: auto;
}

.woocommerce ul.products, .woocommerce-page ul.products {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; clear: both;
}
/* WooCommerce's own .columns-N rules (used by the [products] shortcode and the
   archive loop) set a fixed percentage width + float on each product, which is
   higher specificity than the rules below and leaves the cards narrower than
   their grid cells. Force them to fill the cell so the grid spreads evenly. */
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
  width: auto !important; float: none !important; margin: 0 !important;
}
/* WooCommerce adds ::before/::after clearfix pseudo-elements to ul.products.
   With display:grid these become grid items and occupy the first cells, pushing
   product 1 into column 2. Remove them so auto-placement starts at column 1. */
.woocommerce ul.products::before, .woocommerce ul.products::after,
.woocommerce-page ul.products::before, .woocommerce-page ul.products::after {
  content: none; display: none;
}
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
  width: auto; margin: 0; float: none; text-align: left;
  display: flex; flex-direction: column; height: 100%; /* equal-height cards */
}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
  display: flex; flex-direction: column; flex: 1 1 auto; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden;
  text-decoration: none; color: inherit; transition: box-shadow .15s;
}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link:hover { box-shadow: var(--shadow-hover); }
.woocommerce ul.products li.product img { margin: 0; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display); font-weight: 500; font-size: 17.5px; color: var(--ink);
  padding: 16px 16px 0; line-height: 1.2;
}
.woocommerce ul.products li.product .price {
  font-family: var(--font-display); font-size: 19px; color: var(--brand-deep); padding: 8px 16px 16px; display: block;
  margin-top: auto; /* pin price to the bottom of the card so prices align */
}
.woocommerce ul.products li.product .star-rating { margin: 8px 16px 0; font-size: 13px; }
.woocommerce ul.products li.product .price del { color: var(--ink-soft); opacity: .7; font-size: .8em; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
  display: block; margin: 12px 16px 16px; background: var(--brand); color: var(--paper);
  border-radius: var(--radius-input); font-weight: 600; font-size: 13px; padding: 10px 16px; text-align: center; text-decoration: none;
}
.woocommerce ul.products li.product .button:hover { background: var(--brand-deep); }
.woocommerce span.onsale {
  background: var(--brand-deep); color: var(--paper); border-radius: var(--radius-input);
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; min-height: auto; min-width: auto; padding: 5px 9px; top: 12px; left: 12px; margin: 0;
}

/* Subcategory tiles (shown on a parent category, e.g. "Tea gifts").
   WooCommerce renders child categories as li.product-category with different
   markup to product cards, so they need their own card styling to match. */
.woocommerce ul.products li.product-category { width: auto; margin: 0; float: none; text-align: left; }
.woocommerce ul.products li.product-category > a {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden;
  text-decoration: none; color: inherit; transition: box-shadow .15s;
}
.woocommerce ul.products li.product-category > a:hover { box-shadow: var(--shadow-hover); }
.woocommerce ul.products li.product-category img {
  margin: 0; width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block;
}
.woocommerce ul.products li.product-category .woocommerce-loop-category__title {
  font-family: var(--font-display); font-weight: 500; font-size: 17.5px; color: var(--ink);
  padding: 16px 16px 18px; margin: 0; line-height: 1.2; text-transform: none;
}
.woocommerce ul.products li.product-category .woocommerce-loop-category__title .count {
  color: var(--ink-soft); font-weight: 400; font-size: 13px; background: none; padding: 0; margin-left: 6px;
  -webkit-text-stroke: 0; text-stroke: 0;
}
.woocommerce .star-rating span::before, .woocommerce .star-rating::before { color: var(--gold); }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-top-color: var(--brand); background: var(--card);
}
.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  background: var(--brand); color: var(--paper); border-radius: var(--radius-input); font-family: inherit; font-weight: 600;
}
.woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--brand-deep); }
.woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt { background: var(--brand); }

/* Generic page / post content */
.tgs-page { max-width: 820px; margin: 0 auto; padding: 60px var(--pad); }
.tgs-page h1 { font-size: 42px; margin: 0 0 24px; }
.tgs-page p { font-size: 16px; line-height: 1.8; color: var(--ink-soft); }
.tgs-page a { color: var(--accent); }

/* ==========================================================================
   12. Responsive
   ========================================================================== */
/* .tgs-brandgrid, .tgs-values and .tgs-tiles use auto-fit, so they self-adjust
   and are not listed in these fixed-column breakpoints. */
@media (max-width: 1024px) {
  .tgs-grid--4, .woocommerce ul.products { grid-template-columns: repeat(3, 1fr) !important; }
  .tgs-footer__top { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 860px) {
  /* Header: logo left, hamburger right, both nav groups in one dropdown. */
  .tgs-header__inner { flex-wrap: wrap; gap: 12px 16px; }
  .tgs-wordmark { order: 1; margin-right: auto; text-align: left; }
  .tgs-nav-toggle { order: 2; display: inline-flex; }
  .tgs-nav { order: 3; display: none; width: 100%; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 14px; padding: 6px 0; }
  .tgs-nav--right { order: 4; justify-content: flex-start; }
  .tgs-header.is-open .tgs-nav { display: flex; }
  .tgs-nav ul, .tgs-nav .tgs-menu { flex-direction: column; align-items: flex-start; gap: 14px; width: 100%; margin: 0; padding: 0; list-style: none; }
  .tgs-basket { border-left: none; padding-left: 0; }
  /* Search: inline full-width inside the dropdown instead of an absolute popup. */
  .tgs-search { width: 100%; }
  .tgs-search-panel { position: static; width: 100%; box-shadow: none; padding: 10px 0 0; border: none; }

  .tgs-hero, .tgs-seo, .tgs-product, .tgs-founder, .tgs-contact, .tgs-cathero__card, .tgs-twocards__grid { grid-template-columns: 1fr; gap: 36px; }
  .tgs-hero { padding-top: 40px; }
  .tgs-hero h1 { font-size: 40px; }
  /* Hero buttons: equal-width side by side rather than ragged content widths. */
  .tgs-hero__cta .tgs-btn { flex: 1 1 0; min-width: 0; text-align: center; white-space: normal; }
  .tgs-product__gallery { position: static; }
  .tgs-grid--3, .tgs-grid--4, .tgs-feature-cards, .tgs-related__grid, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; }
  .tgs-form__row { grid-template-columns: 1fr; }
  .tgs-cathero__copy { padding: 38px 30px; }
  .tgs-pageintro h1 { font-size: 36px; }
}

@media (max-width: 540px) {
  .tgs-grid--3, .tgs-grid--4, .tgs-feature-cards, .tgs-related__grid, .woocommerce ul.products { grid-template-columns: 1fr !important; }
  .tgs-footer__top { grid-template-columns: 1fr 1fr; }
  .tgs-hero h1 { font-size: 34px; }
  .tgs-news__form { flex-direction: column; }
  /* Too narrow for two buttons side by side: stack them full width. */
  .tgs-hero__cta { flex-direction: column; }
  .tgs-hero__cta .tgs-btn { width: 100%; }
}
