/*
Theme Name: Tidemark Science
Theme URI: https://tidemark2.wpenginepowered.com/
Author: Tidemark Science
Description: A research-first WooCommerce storefront inspired by classic scientific catalog interfaces.
Version: 1.2.1
Text Domain: tidemark-science
Requires at least: 6.5
Requires PHP: 8.1
*/

:root {
  --tm-brand: #e7461e;
  --tm-brand-focus: #df3206;
  --tm-brand-strong: #b83213;
  --tm-brand-deep: #7a1f0c;
  --tm-brand-soft: #fff1ec;
  --tm-brand-pale: #fde0d6;
  --tm-charcoal: #333333;
  /* Legacy aliases keep older templates reproducible while the system is now red. */
  --tm-navy: var(--tm-brand-deep);
  --tm-blue: var(--tm-brand-strong);
  --tm-teal: var(--tm-brand);
  --tm-aqua: #ff9b80;
  --tm-slate: #625b59;
  --tm-ink: #302725;
  --tm-muted: #6f625f;
  --tm-line: #eadbd7;
  --tm-soft: #fff7f4;
  --tm-pale: #fde9e3;
  --tm-white: #fff;
  --tm-shadow: 0 14px 36px rgba(122, 31, 12, .12);
  --tm-radius: 8px;
  --tm-max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--tm-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--tm-brand-strong); text-decoration: none; }
a:hover { color: var(--tm-brand-focus); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--tm-brand);
  outline-offset: 2px;
}
::selection { background: var(--tm-brand-pale); color: var(--tm-brand-deep); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.tm-shell { width: min(calc(100% - 40px), var(--tm-max)); margin-inline: auto; }

.tm-ruo-bar {
  background: linear-gradient(90deg, var(--tm-brand-deep), var(--tm-brand-strong));
  color: #fff;
  font-size: 12px;
  letter-spacing: .02em;
}
.tm-ruo-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.tm-ruo-inner p { margin: 0; }
.tm-utility { display: flex; align-items: center; gap: 22px; }
.tm-utility a { color: #fff; font-weight: 700; }

.tm-header-main { border-bottom: 1px solid var(--tm-line); background: rgba(255,255,255,.98); }
.tm-header-grid {
  min-height: 104px;
  display: grid;
  grid-template-columns: minmax(300px, 410px) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 36px;
}
.tm-brand { display: inline-flex; align-items: center; min-width: 0; color: var(--tm-ink); }
.tm-brand-mark { width: 78px; height: 70px; object-fit: contain; flex: 0 0 auto; }
.tm-brand-copy { min-width: 0; }
.tm-wordmark { display: block; font-size: clamp(27px, 2.4vw, 43px); line-height: .98; letter-spacing: -.055em; white-space: nowrap; }
.tm-wordmark strong { color: var(--tm-navy); font-weight: 800; }
.tm-wordmark span { color: #68605e; font-weight: 300; }
.tm-tagline { display: block; margin-top: 7px; color: #746a67; font-size: 8.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; white-space: nowrap; }

.tm-search { display: flex; height: 46px; border: 1px solid #ddcbc6; border-radius: 4px; background: #fff; overflow: hidden; box-shadow: 0 3px 12px rgba(122,31,12,.05); }
.tm-search input { min-width: 0; flex: 1; border: 0; padding: 0 16px; color: var(--tm-ink); outline: 0; }
.tm-search:focus-within { border-color: var(--tm-brand); box-shadow: 0 0 0 3px var(--tm-brand-pale); }
.tm-search button { width: 54px; border: 0; background: var(--tm-brand-strong); color: #fff; cursor: pointer; font-size: 20px; }
.tm-search button:hover { background: var(--tm-charcoal); }
.tm-trust-mini { display: flex; gap: 22px; align-items: center; }
.tm-trust-mini div { display: grid; grid-template-columns: 30px auto; gap: 8px; align-items: center; color: var(--tm-navy); font-size: 10px; font-weight: 800; line-height: 1.25; text-transform: uppercase; white-space: nowrap; }
.tm-trust-mini svg { width: 29px; height: 29px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.tm-nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--tm-line); box-shadow: 0 5px 18px rgba(122,31,12,.055); backdrop-filter: blur(12px); }
.tm-nav-inner { min-height: 49px; display: flex; align-items: stretch; justify-content: space-between; }
.tm-nav-list { display: flex; align-items: stretch; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tm-nav-list a { display: flex; align-items: center; padding: 0 17px; color: var(--tm-ink); font-size: 13px; font-weight: 750; border-bottom: 3px solid transparent; }
.tm-nav-list a:hover, .tm-nav-list .current-menu-item > a, .tm-nav-list .current_page_item > a { color: var(--tm-brand-strong); border-color: var(--tm-brand); }
.tm-nav-actions { display: flex; align-items: center; gap: 18px; font-weight: 750; font-size: 13px; }
.tm-cart-count { display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 99px; background: var(--tm-brand-strong); color: #fff; font-size: 11px; }
.tm-menu-toggle { display: none; border: 0; background: transparent; color: var(--tm-navy); font-size: 25px; }

.tm-main { min-height: 55vh; }
.tm-home-grid { display: grid; grid-template-columns: 228px minmax(0,1fr); gap: 22px; padding: 22px 0 10px; }
.tm-category-rail { align-self: start; border: 1px solid var(--tm-line); border-radius: var(--tm-radius); background: #fff; overflow: hidden; box-shadow: 0 7px 24px rgba(122,31,12,.07); }
.tm-category-rail h2 { margin: 0; padding: 13px 16px; background: linear-gradient(115deg, var(--tm-navy), var(--tm-blue)); color: #fff; font-size: 16px; }
.tm-category-rail ul { margin: 0; padding: 0; list-style: none; }
.tm-category-rail li { border-bottom: 1px solid var(--tm-line); }
.tm-category-rail li:last-child { border: 0; }
.tm-category-rail a { display: flex; align-items: center; justify-content: space-between; min-height: 43px; padding: 7px 15px; color: var(--tm-ink); font-size: 12.5px; font-weight: 650; }
.tm-category-rail a::after { content: "›"; color: #b78679; font-size: 20px; font-weight: 400; }
.tm-category-rail a:hover { background: var(--tm-soft); color: var(--tm-blue); padding-left: 19px; }
.tm-side-card { margin-top: 16px; padding: 18px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius); background: linear-gradient(135deg,#fff,var(--tm-brand-soft)); }
.tm-side-card strong { display: block; color: var(--tm-navy); font-size: 13px; }
.tm-side-card p { margin: 4px 0 0; color: var(--tm-muted); font-size: 11px; }

.tm-hero {
  position: relative;
  min-height: 300px;
  display: grid;
  grid-template-columns: minmax(0,1.03fr) minmax(390px,.97fr);
  overflow: hidden;
  border: 1px solid #ead5cf;
  border-radius: var(--tm-radius);
  background:
    radial-gradient(circle at 84% 30%, rgba(231,70,30,.2), transparent 23%),
    linear-gradient(102deg,#fffaf8 0%,#fff3ef 48%,#f7dcd4 100%);
}
.tm-hero-copy { padding: 32px 34px; position: relative; z-index: 2; }
.tm-eyebrow { margin: 0 0 7px; color: var(--tm-blue); font-size: 10px; font-weight: 800; letter-spacing: .25em; text-transform: uppercase; }
.tm-hero h1 { max-width: 700px; margin: 0; color: var(--tm-ink); font-size: clamp(33px, 3.25vw, 53px); line-height: .99; letter-spacing: -.045em; }
.tm-hero-lede { max-width: 640px; margin: 15px 0 20px; color: #5f514e; font-size: 17px; line-height: 1.5; }
.tm-button, .button, button.button, input.button, .wp-element-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(115deg,var(--tm-brand-focus),var(--tm-brand-strong));
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(184,50,19,.24);
  cursor: pointer;
}
.tm-button:hover, .button:hover, .wp-element-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--tm-charcoal); color: #fff; transform: translateY(-1px); }
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  border-color: var(--tm-brand-focus);
  background: linear-gradient(115deg,var(--tm-brand-focus),var(--tm-brand-strong));
  color: #fff;
}
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  border-color: var(--tm-charcoal);
  background: var(--tm-charcoal);
  color: #fff;
}
.woocommerce #respond input#submit.alt.disabled,
.woocommerce #respond input#submit.alt:disabled,
.woocommerce a.button.alt.disabled,
.woocommerce button.button.alt.disabled,
.woocommerce button.button.alt:disabled,
.woocommerce input.button.alt.disabled,
.woocommerce input.button.alt:disabled {
  background: var(--tm-brand-strong);
  color: #fff;
  opacity: .48;
}
.tm-button--ghost { margin-left: 10px; background: #fff; color: var(--tm-brand-strong); border: 1px solid var(--tm-brand); box-shadow: none; }
.tm-button--ghost:hover { border-color: var(--tm-charcoal); background: var(--tm-charcoal); color: #fff; }
.tm-hero-badges { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; color: var(--tm-navy); font-size: 11px; font-weight: 750; }
.tm-hero-badges span::before { content: "✓"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 6px; border-radius: 50%; background: var(--tm-navy); color: #fff; font-size: 10px; }
.tm-hero-visual { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 14px; padding: 26px 24px 0; }
.tm-hero-visual::before { content: ""; position: absolute; inset: 18px 12px 0; border-radius: 50% 50% 0 0; background: linear-gradient(180deg,rgba(255,255,255,.68),rgba(255,255,255,.12)); filter: blur(.2px); }
.tm-hero-product { position: relative; width: 31%; max-width: 165px; aspect-ratio: .79; display: grid; place-items: end center; padding: 7px; border: 1px solid rgba(228,180,166,.72); border-radius: 22px 22px 12px 12px; background: rgba(255,250,248,.86); box-shadow: 0 18px 28px rgba(122,31,12,.13); }
.tm-hero-product:nth-child(2) { width: 38%; max-width: 190px; z-index: 2; }
.tm-hero-product img { width: 100%; height: 100%; object-fit: contain; border-radius: 15px 15px 8px 8px; mix-blend-mode: multiply; }
.tm-hero-note { position: absolute; right: 15px; top: 42%; color: var(--tm-navy); font-size: 10px; font-weight: 800; letter-spacing: .3em; line-height: 1.75; text-transform: uppercase; writing-mode: vertical-rl; }

.tm-section { padding: 24px 0 34px; }
.tm-section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.tm-section-head h2 { margin: 0; color: var(--tm-navy); font-size: clamp(24px,2.3vw,35px); letter-spacing: -.035em; line-height: 1.05; }
.tm-section-head p { max-width: 680px; margin: 6px 0 0; color: var(--tm-muted); }
.tm-section-link { font-weight: 800; font-size: 12px; white-space: nowrap; }
.tm-product-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; }
.tm-product-card { position: relative; min-width: 0; display: flex; flex-direction: column; padding: 11px; border: 1px solid var(--tm-line); border-radius: 5px; background: #fff; transition: .18s ease; }
.tm-product-card:hover { z-index: 2; border-color: #dda08f; box-shadow: var(--tm-shadow); transform: translateY(-3px); }
.tm-product-image { position: relative; aspect-ratio: 1/1; display: grid; place-items: center; margin-bottom: 7px; background: linear-gradient(150deg,#fff,#fff7f4); overflow: hidden; }
.tm-product-image img { width: 100%; height: 100%; object-fit: contain; }
.tm-badge { position: absolute; left: 7px; top: 7px; z-index: 1; padding: 3px 6px; border-radius: 3px; background: var(--tm-brand-strong); color: #fff; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.tm-product-card h3 { flex: 1; margin: 2px 0 7px; color: var(--tm-ink); font-size: 12.5px; line-height: 1.25; text-align: center; }
.tm-product-card h3 a { color: inherit; }
.tm-product-price { min-height: 23px; margin-bottom: 7px; color: var(--tm-ink); font-size: 13px; font-weight: 850; text-align: center; }
.tm-product-price del { color: #8b98a6; font-weight: 500; }
.tm-product-price ins { text-decoration: none; }
.tm-product-card .button { width: 100%; min-height: 34px; padding: 7px 9px; font-size: 11px; box-shadow: none; }
.tm-product-card .added_to_cart { margin-top: 5px; font-size: 11px; font-weight: 800; text-align: center; }

.tm-proof-band { margin-top: 18px; border: 1px solid var(--tm-line); background: linear-gradient(90deg,#fffaf8,var(--tm-brand-soft)); }
.tm-proof-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.tm-proof-item { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; padding: 20px 22px; border-right: 1px solid #e8d2cb; }
.tm-proof-item:last-child { border: 0; }
.tm-proof-icon { width: 40px; height: 40px; display: grid; place-items: center; border: 2px solid var(--tm-navy); border-radius: 50%; color: var(--tm-navy); font-size: 18px; font-weight: 900; }
.tm-proof-item strong { display: block; color: var(--tm-navy); font-size: 12px; text-transform: uppercase; }
.tm-proof-item span { display: block; margin-top: 2px; color: var(--tm-muted); font-size: 10.5px; line-height: 1.35; }

.tm-standard { padding: 56px 0; background: var(--tm-navy); color: #fff; }
.tm-standard-grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 72px; align-items: center; }
.tm-standard h2 { margin: 0 0 15px; font-size: clamp(34px,4vw,58px); letter-spacing: -.045em; line-height: .98; }
.tm-standard p { color: #f5d9d0; }
.tm-standard .tm-button--ghost { margin: 12px 0 0; border-color: rgba(255,255,255,.38); background: transparent; color: #fff; }
.tm-standard-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.tm-standard-card { padding: 23px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); }
.tm-standard-card b { display: block; margin-bottom: 5px; color: #ffb39f; font-size: 12px; letter-spacing: .13em; }
.tm-standard-card strong { display: block; font-size: 17px; }
.tm-standard-card p { margin: 7px 0 0; font-size: 12px; line-height: 1.55; }

.tm-content { padding: 42px 0 64px; }
.tm-page-header { padding: 34px 0; background: linear-gradient(110deg,var(--tm-brand-soft),#fff); border-bottom: 1px solid var(--tm-line); }
.tm-page-header h1 { margin: 0; font-size: clamp(34px,4vw,58px); letter-spacing: -.045em; }
.tm-prose { max-width: 920px; }
.tm-prose h2 { margin-top: 2.1em; color: var(--tm-navy); }
.tm-prose h3 { color: var(--tm-blue); }
.tm-prose p, .tm-prose li { color: #554946; }
.tm-prose a { text-decoration: underline; text-underline-offset: 2px; }

.woocommerce .woocommerce-breadcrumb { margin: 0 0 18px; color: var(--tm-muted); font-size: 12px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--tm-blue); }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { margin-bottom: 20px; }
.woocommerce .woocommerce-ordering select { height: 40px; border: 1px solid var(--tm-line); border-radius: 4px; padding: 0 35px 0 12px; background: #fff; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 13px; margin: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; min-width: 0; margin: 0 !important; padding: 13px; border: 1px solid var(--tm-line); border-radius: 5px; background: #fff; }
.woocommerce ul.products li.product:hover { border-color: #dda08f; box-shadow: var(--tm-shadow); }
.woocommerce ul.products li.product a img { aspect-ratio: 1/1; object-fit: contain; margin-bottom: 10px; background: #fff9f7; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 41px; padding: 0; color: var(--tm-ink); font-size: 13px; line-height: 1.28; }
.woocommerce ul.products li.product .price { color: var(--tm-navy); font-size: 14px; font-weight: 800; }
.woocommerce ul.products li.product .button { width: 100%; margin-top: 8px; font-size: 11px; }
.woocommerce span.onsale { min-width: auto; min-height: auto; margin: 7px !important; padding: 4px 7px; border-radius: 3px; background: var(--tm-brand-strong); color: #fff; line-height: 1.2; font-size: 10px; }
.woocommerce div.product { padding-top: 10px; }
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { border: 1px solid var(--tm-line); background: #fff9f7; }
.woocommerce div.product div.summary h1 { color: var(--tm-navy); font-size: clamp(31px,3.4vw,48px); line-height: 1.02; letter-spacing: -.045em; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--tm-blue); font-size: 24px; font-weight: 850; }
.woocommerce div.product form.cart { padding: 18px; border: 1px solid var(--tm-line); background: var(--tm-soft); }
.woocommerce .quantity .qty { min-height: 42px; border: 1px solid #d9b8ae; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding-left: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-color: var(--tm-line); background: var(--tm-soft); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-top-color: var(--tm-brand); background: #fff; }
.woocommerce div.product .woocommerce-tabs .panel { padding: 15px 0 28px; color: #554946; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--tm-brand); background: var(--tm-soft); }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { color: var(--tm-brand-strong); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .select2-container--default .select2-selection--single { min-height: 43px; border: 1px solid #d9b8ae; border-radius: 3px; padding: 9px 11px; }
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus, .select2-container--focus .select2-selection--single { border-color: var(--tm-brand); box-shadow: 0 0 0 3px var(--tm-brand-pale); outline: 0; }
.woocommerce table.shop_table { border-color: var(--tm-line); border-radius: 4px; }
.woocommerce-cart table.cart img { width: 78px; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-checkout-review-order { padding: 20px; border: 1px solid var(--tm-line); background: var(--tm-soft); }
.woocommerce a.remove { color: var(--tm-brand-strong) !important; }
.woocommerce a.remove:hover { background: var(--tm-brand-strong); color: #fff !important; }
.woocommerce .star-rating, .woocommerce p.stars a { color: var(--tm-brand-strong); }
.woocommerce nav.woocommerce-pagination ul { border-color: var(--tm-line); }
.woocommerce nav.woocommerce-pagination ul li { border-color: var(--tm-line); }
.woocommerce nav.woocommerce-pagination ul li span.current, .woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--tm-brand-strong); color: #fff; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--tm-brand-focus); }

/* WooCommerce Blocks: Cart and Checkout inherit the same red interaction system. */
.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button {
  border-color: var(--tm-brand-focus);
  border-radius: 4px;
  background: linear-gradient(115deg,var(--tm-brand-focus),var(--tm-brand-strong));
  color: #fff;
  box-shadow: 0 6px 14px rgba(184,50,19,.2);
}
.wc-block-components-button:not(.is-link):hover,
.wc-block-cart__submit-button:hover,
.wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button:hover {
  border-color: var(--tm-charcoal);
  background: var(--tm-charcoal);
  color: #fff;
}
.wc-block-components-button:focus-visible { outline: 3px solid var(--tm-brand); outline-offset: 2px; }
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.wc-block-components-textarea,
.wc-block-components-select .wc-block-components-select__select {
  border-color: #d9b8ae;
}
.wc-block-components-text-input input:focus,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input:focus,
.wc-block-components-textarea:focus,
.wc-block-components-select .wc-block-components-select__select:focus {
  border-color: var(--tm-brand);
  box-shadow: 0 0 0 2px var(--tm-brand-pale);
  outline: 0;
}
.wc-block-components-checkbox .wc-block-components-checkbox__input:checked,
.wc-block-components-radio-control .wc-block-components-radio-control__input:checked {
  border-color: var(--tm-brand-focus);
  background: var(--tm-brand-focus);
}
.wc-block-components-notice-banner { border-color: var(--tm-brand); background: var(--tm-soft); }
.wc-block-components-notice-banner > svg { background: var(--tm-brand-strong); }
.wc-block-cart-item__remove-link,
.wc-block-components-product-name,
.wc-block-components-totals-coupon-link { color: var(--tm-brand-strong); }
.wc-block-components-totals-wrapper,
.wc-block-cart-items,
.wc-block-checkout__order-notes,
.wc-block-components-order-summary { border-color: var(--tm-line); }

.tm-footer { border-top: 1px solid var(--tm-line); background: #fff9f7; }
.tm-footer-main { display: grid; grid-template-columns: 1.45fr repeat(3,1fr); gap: 50px; padding: 48px 0 38px; }
.tm-footer-brand .tm-brand-mark { width: 58px; height: 52px; }
.tm-footer-brand .tm-wordmark { font-size: 27px; }
.tm-footer-brand .tm-tagline { font-size: 7px; }
.tm-footer-brand p { max-width: 450px; color: var(--tm-muted); font-size: 12px; }
.tm-footer h3 { margin: 5px 0 13px; color: var(--tm-navy); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.tm-footer ul { margin: 0; padding: 0; list-style: none; }
.tm-footer li { margin: 7px 0; }
.tm-footer li a { color: #5f514e; font-size: 12px; }
.tm-footer li a:hover { color: var(--tm-brand-strong); }
.tm-legal { padding: 20px 0 24px; border-top: 1px solid var(--tm-line); color: #756966; font-size: 10.5px; line-height: 1.6; }
.tm-legal p { margin: 0 0 7px; }
.tm-copyright { display: flex; justify-content: space-between; gap: 20px; padding-top: 12px; color: #887c79; }

@media (max-width: 1240px) {
  .tm-header-grid { grid-template-columns: 330px 1fr; gap: 24px; }
  .tm-trust-mini { display: none; }
  .tm-product-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .woocommerce ul.products { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

@media (max-width: 920px) {
  .tm-shell { width: min(calc(100% - 28px), var(--tm-max)); }
  .tm-utility span { display: none; }
  .tm-header-grid { min-height: 82px; grid-template-columns: 1fr auto; }
  .tm-search { display: none; }
  .tm-brand-mark { width: 60px; height: 55px; }
  .tm-wordmark { font-size: 31px; }
  .tm-tagline { font-size: 7px; letter-spacing: .18em; }
  .tm-menu-toggle { display: block; }
  .tm-nav-inner { min-height: 0; display: block; }
  .tm-nav-list, .tm-nav-actions { display: none; }
  .tm-nav.is-open .tm-nav-list { display: flex; flex-direction: column; padding: 8px 0; }
  .tm-nav.is-open .tm-nav-list a { min-height: 43px; border: 0; }
  .tm-nav.is-open .tm-nav-actions { display: flex; padding: 13px 17px 18px; border-top: 1px solid var(--tm-line); }
  .tm-home-grid { grid-template-columns: 1fr; }
  .tm-category-column { display: none; }
  .tm-hero { grid-template-columns: 1fr; }
  .tm-hero-copy { padding: 30px 28px; }
  .tm-hero-visual { min-height: 255px; }
  .tm-product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .tm-proof-grid { grid-template-columns: repeat(2,1fr); }
  .tm-proof-item:nth-child(2) { border-right: 0; }
  .tm-proof-item:nth-child(-n+2) { border-bottom: 1px solid #e8d2cb; }
  .tm-standard-grid { grid-template-columns: 1fr; gap: 35px; }
  .woocommerce ul.products { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .tm-footer-main { grid-template-columns: 1.5fr 1fr 1fr; }
  .tm-footer-main > :last-child { display: none; }
}

@media (max-width: 620px) {
  .tm-shell { width: min(calc(100% - 22px), var(--tm-max)); }
  .tm-ruo-inner { min-height: 40px; font-size: 10px; }
  .tm-utility { gap: 10px; }
  .tm-header-grid { min-height: 70px; gap: 8px; }
  .tm-brand-mark { width: 48px; height: 45px; }
  .tm-wordmark { font-size: 25px; }
  .tm-tagline { display: none; }
  .tm-home-grid { padding-top: 12px; }
  .tm-hero { min-height: 0; }
  .tm-hero-copy { padding: 25px 20px; }
  .tm-hero h1 { font-size: 35px; }
  .tm-hero-lede { font-size: 15px; }
  .tm-button--ghost { margin: 8px 0 0; }
  .tm-hero-badges { gap: 9px 14px; }
  .tm-hero-visual { min-height: 210px; padding-inline: 14px; }
  .tm-hero-note { display: none; }
  .tm-section { padding-top: 18px; }
  .tm-section-head { align-items: start; }
  .tm-section-link { display: none; }
  .tm-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .tm-product-card { padding: 9px; }
  .tm-proof-grid { grid-template-columns: 1fr; }
  .tm-proof-item { border-right: 0; border-bottom: 1px solid #e8d2cb; }
  .tm-proof-item:last-child { border-bottom: 0; }
  .tm-standard { padding: 42px 0; }
  .tm-standard-cards { grid-template-columns: 1fr; }
  .tm-page-header { padding: 26px 0; }
  .tm-content { padding: 28px 0 45px; }
  .woocommerce ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .woocommerce ul.products li.product { padding: 9px; }
  .woocommerce div.product div.images, .woocommerce div.product div.summary { width: 100%; float: none; }
  .tm-footer-main { grid-template-columns: 1fr 1fr; gap: 28px; }
  .tm-footer-brand { grid-column: 1 / -1; }
  .tm-copyright { display: block; }
}
