:root {
  --ths-green: #73c900;
  --ths-green-dark: #5daa00;
  --ths-black: #0f0f0f;
  --ths-dark: #151515;
  --ths-gray: #f1f1f1;
  --ths-mid: #d9d9d9;
  --ths-text: #242424;
  --ths-font-head: "Anton", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --ths-font-body: "Montserrat", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  background: #fff;
  color: var(--ths-text);
  font-family: var(--ths-font-body);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.content-wrap {
  width: min(100% - 72px, 1260px);
  margin-inline: auto;
}
h1, h2, h3, h4,
.woocommerce-loop-product__title {
  font-family: var(--ths-font-head);
  letter-spacing: 0;
  line-height: .98;
  text-transform: uppercase;
  color: #151515;
}
h1 { font-size: clamp(2.4rem, 4vw, 5.1rem); }
h2 { font-size: clamp(2rem, 3vw, 3.5rem); }
h3 { font-size: 1.35rem; }
.eyebrow,
.section-heading-row p,
.quality-band > .content-wrap > p,
.locations-block > p,
.financing-band p:first-child,
.home-hero-content > p:first-child {
  margin: 0 0 6px;
  color: #6d6d6d;
  font-family: var(--ths-font-head);
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  padding: 12px 22px;
  font-family: var(--ths-font-body);
  font-size: .9rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
.button-green,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--ths-green);
  color: #fff;
}
.button-green:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover { background: var(--ths-green-dark); color: #fff; }
.woocommerce a.button.loading,
.woocommerce button.button.loading,
.woocommerce input.button.loading {
  background: var(--ths-green-dark);
  opacity: .85;
}
.button-outline { border: 2px solid #fff; color: #fff; background: transparent; }

/* Header */
.site-header {
  position: relative;
  z-index: 50;
  background: #fff;
}
.header-top {
  display: grid;
  grid-template-columns: 340px 1fr;
  align-items: center;
  min-height: 104px;
  padding: 0 46px;
  gap: 24px;
}
.site-logo { display: block; width: 330px; max-width: 100%; }
.ths-logo-svg { width: 100%; height: auto; display: block; }
.header-phones {
  display: flex;
  justify-content: flex-end;
  gap: 58px;
}
.phone-link {
  display: grid;
  grid-template-columns: 28px auto;
  column-gap: 8px;
  align-items: center;
  color: #111;
}
.phone-link strong {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}
.phone-link small {
  grid-column: 2;
  color: var(--ths-green);
  font-size: .92rem;
}
.email-link strong {
  font-size: 1.05rem;
  letter-spacing: .01em;
}
.pin-icon {
  position: relative;
  width: 24px;
  height: 24px;
  border: 4px solid var(--ths-green);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}
.pin-icon::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--ths-green);
}
.email-icon {
  position: relative;
  width: 28px;
  height: 21px;
  border: 4px solid var(--ths-green);
  border-radius: 2px;
}
.email-icon::before,
.email-icon::after {
  content: "";
  position: absolute;
  top: 3px;
  width: 15px;
  height: 4px;
  background: var(--ths-green);
}
.email-icon::before {
  left: 0;
  transform: rotate(35deg);
  transform-origin: left center;
}
.email-icon::after {
  right: 0;
  transform: rotate(-35deg);
  transform-origin: right center;
}
.header-nav-row {
  display: grid;
  grid-template-columns: 1fr 260px 70px;
  align-items: stretch;
  background: var(--ths-black);
  padding-left: 46px;
}
.primary-nav { min-height: 74px; }
.ths-nav-list {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ths-nav-list > li { position: relative; }
.ths-nav-list > li > a {
  display: flex;
  height: 100%;
  align-items: center;
  padding: 0 26px;
  color: #fff;
  font-family: var(--ths-font-head);
  font-size: 1.18rem;
  text-transform: uppercase;
  white-space: nowrap;
}
.ths-nav-list > li > a:hover,
.ths-nav-list > li:hover > a { color: var(--ths-green); }
.has-submenu > a::after,
.has-mega > a::after {
  content: "⌄";
  margin-left: 9px;
  font-size: .9em;
}
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  margin: 0;
  padding: 14px 0;
  list-style: none;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .18s ease;
}
.has-submenu:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sub-menu a {
  display: block;
  padding: 10px 18px;
  color: #222;
  font-weight: 700;
}
.header-search {
  background: var(--ths-green);
  padding: 13px;
}
.site-cart-link {
  position: relative;
  display: grid;
  place-items: center;
  background: var(--ths-green);
  color: #fff;
  border-left: 1px solid rgba(255,255,255,.35);
}
.cart-icon {
  display: block;
  width: 35px;
  height: 35px;
}
.cart-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.cart-icon path {
  fill: none;
  stroke: #fff;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-count {
  position: absolute;
  top: 8px;
  right: 10px;
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
}
.search-form { position: relative; height: 100%; }
.search-field {
  width: 100%;
  min-height: 48px;
  border: 0;
  padding: 0 18px 0 48px;
  font-family: var(--ths-font-body);
  font-size: .96rem;
}
.search-submit {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 20px;
  height: 20px;
  border: 3px solid #777;
  border-radius: 50%;
  background: transparent;
  transform: translateY(-50%);
}
.search-submit::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: -5px;
  width: 9px;
  height: 3px;
  background: #777;
  transform: rotate(45deg);
}
.mobile-menu-toggle,
.mobile-panel { display: none; }

/* Mega menu */
.mega-menu {
  position: fixed;
  top: 178px;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 60% 40%;
  min-height: min(520px, calc(100vh - 178px));
  max-height: calc(100vh - 178px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  box-shadow: 0 20px 35px rgba(0,0,0,.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: .16s ease;
}
body.admin-bar .mega-menu {
  top: 210px;
  min-height: min(520px, calc(100vh - 210px));
  max-height: calc(100vh - 210px);
}
.mega-menu::-webkit-scrollbar {
  width: 12px;
}
.mega-menu::-webkit-scrollbar-track {
  background: #efefef;
}
.mega-menu::-webkit-scrollbar-thumb {
  background: #8a8a8a;
  border: 3px solid #efefef;
}
.has-mega:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mega-types { padding: 50px 70px; }
.mega-brands { padding: 50px 70px; background: #f3f3f3; }
.mega-menu h3 {
  margin: 0 0 30px;
  font-size: 2rem;
}
.mega-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.mega-type-card {
  display: grid;
  min-height: 180px;
  place-items: center;
  border: 1px solid #ddd;
  padding: 18px;
  text-align: center;
}
.mega-type-card img {
  max-height: 95px;
  object-fit: contain;
  margin: auto;
}
.mega-type-card span,
.mega-brand-list a {
  font-family: var(--ths-font-head);
  font-size: 1.45rem;
  text-transform: uppercase;
}
.mega-brand-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 19px 52px;
  margin-bottom: 40px;
}

/* Homepage */
.home-hero {
  position: relative;
  min-height: 450px;
  overflow: hidden;
  background: #1b1b1b;
}
.home-hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.66) 42%, rgba(0,0,0,.08) 43%),
    url("https://images.unsplash.com/photo-1502877338535-766e1452684a?auto=format&fit=crop&w=1800&q=70") center/cover;
}
.home-hero-content {
  position: relative;
  width: min(720px, 90%);
  padding: 62px 0 70px 46px;
  color: #fff;
}
.home-hero h1 {
  max-width: 660px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(3rem, 5vw, 5.4rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 20px 0;
}
.hero-copy { max-width: 620px; }
.brand-strip {
  background: #fff;
  border-bottom: 1px solid #ddd;
  overflow: hidden;
  padding: 0;
}
.brand-strip-track {
  display: flex;
  align-items: center;
  width: max-content;
  min-width: 100%;
  animation: ths-brand-ticker 32s linear infinite;
}
.brand-strip:hover .brand-strip-track {
  animation-play-state: paused;
}
.brand-strip-group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.brand-strip a,
.brand-logo-grid a {
  color: #444;
  font-family: var(--ths-font-head);
  font-size: 1.25rem;
  text-transform: uppercase;
}
.brand-strip a {
  flex: 0 0 auto;
  min-width: max-content;
  padding: 22px 42px;
  text-align: center;
  white-space: nowrap;
}
@keyframes ths-brand-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.section-block { padding: 70px 0; }
.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 34px;
}
.section-heading-row h2 { margin: 0; }
.category-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.category-tile {
  position: relative;
  display: flex;
  min-height: 180px;
  align-items: end;
  justify-content: space-between;
  padding: 20px;
  overflow: hidden;
  color: #fff;
  background: #222 center/cover;
}
.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.12));
}
.category-tile span,
.category-tile b {
  position: relative;
  z-index: 1;
  font-family: var(--ths-font-head);
  font-size: 1.35rem;
  text-transform: uppercase;
}
.category-tile b {
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 50%;
  line-height: 1;
  padding: 0 0 2px 1px;
}
.brand-grid-section { background: #eee; }
.brand-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.brand-logo-grid a {
  display: grid;
  min-height: 95px;
  place-items: center;
  background: #fff;
  border: 1px solid #dedede;
  padding: 14px;
  text-align: center;
  color: #222;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.brand-logo-grid a:hover {
  border-color: var(--ths-green);
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.quality-band {
  padding: 72px 0;
  background: #111;
  color: #cfcfcf;
  text-align: center;
}
.quality-band h2 { color: #fff; }
.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 44px;
}
.quality-grid span {
  color: var(--ths-green);
  font-size: 2rem;
}
.quality-grid h3 { color: #fff; }
.locations-block { text-align: center; }
.location-map-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.map-placeholder {
  min-height: 170px;
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(115,201,0,.12), rgba(0,0,0,.03)),
    repeating-linear-gradient(0deg, #e8efe8, #e8efe8 14px, #dce7dc 15px);
  color: #4386d8;
  font-size: .85rem;
}
.ths-map {
  display: block;
  width: 100%;
  min-height: 170px;
  border: 0;
}
.location-map-grid h3 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}
.location-map-grid p {
  margin: 0 auto 6px;
  max-width: 240px;
  color: #5e5e5e;
}
.location-map-grid a { color: var(--ths-green); font-weight: 800; }
.location-page-grid article {
  background: #fff;
  padding-bottom: 24px;
}
.location-page-grid .button {
  margin-top: 14px;
  color: #fff;
}
.financing-band {
  background: #efefef;
  padding: 76px 0;
}
.financing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.finance-cards {
  display: grid;
  gap: 14px;
}
.finance-cards a {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 4px 16px;
  background: #fff;
  padding: 24px;
}
.finance-cards span {
  grid-row: span 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  background: #111;
  color: var(--ths-green);
}
.finance-cards b {
  display: block;
  font-family: var(--ths-font-head);
  text-transform: uppercase;
}

/* Shop */
.shop-page {
  display: grid;
  grid-template-columns: 245px 1fr;
  gap: 36px;
  padding: 34px 0 90px;
}
.shop-filters {
  align-self: start;
  background: #e9e9e9;
  padding: 12px;
}
.shop-filters form > input[type="search"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid #ddd;
  padding: 0 14px;
}
.shop-filters .button {
  width: 100%;
  margin: 10px 0 12px;
}
.filter-group {
  border-top: 1px solid #cfcfcf;
  background: #f7f7f7;
  padding: 16px 14px;
}
.filter-group h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}
.filter-options {
  max-height: 205px;
  overflow: auto;
}
.filter-options label {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 7px 0;
  font-size: .86rem;
}
.price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.price-row input {
  width: 100%;
  border: 1px solid #ddd;
  padding: 8px;
}
.shop-results-header {
  margin-bottom: 28px;
}
.shop-results-header h1 {
  margin: 0 0 8px;
  font-size: 3rem;
}
.archive-description {
  max-width: 920px;
  color: #555;
}
.woocommerce .ths-products-grid,
.ths-products-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 32px;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}
.woocommerce ul.products.ths-products-grid::before,
.woocommerce ul.products.ths-products-grid::after {
  display: none;
  content: none;
}
.woocommerce ul.products.ths-products-grid li.product,
.woocommerce-page ul.products.ths-products-grid li.product,
.ths-product-card {
  display: flex !important;
  float: none !important;
  flex-direction: column;
  align-items: center;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  text-align: center;
  clear: none !important;
}
.woocommerce ul.products.ths-products-grid li.product .product-card-image,
.product-card-image {
  display: grid;
  width: 100%;
  min-height: 205px;
  aspect-ratio: 1.34 / 1;
  place-items: center;
  background: #f3f3f3;
  overflow: hidden;
}
.woocommerce ul.products.ths-products-grid li.product a img,
.woocommerce ul.products.ths-products-grid li.product .product-card-image img,
.product-card-image img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}
.woocommerce ul.products.ths-products-grid li.product .woocommerce-loop-product__title,
.ths-product-card h2 {
  width: 100%;
  min-height: 50px;
  margin: 18px 0 6px;
  padding: 0;
  font-size: 1.18rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.woocommerce ul.products.ths-products-grid li.product .price,
.ths-product-card .price {
  display: block;
  margin-bottom: 12px;
  color: var(--ths-green-dark);
  font-weight: 800;
}
.card-actions {
  display: flex !important;
  gap: 8px;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  flex-wrap: nowrap;
  width: 100%;
}
.woocommerce ul.products.ths-products-grid li.product .button,
.card-actions .button {
  display: inline-flex !important;
  min-height: 52px !important;
  height: 52px !important;
  min-width: 150px;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 18px !important;
  background: var(--ths-green) !important;
  color: #fff !important;
  font-family: var(--ths-font-body) !important;
  font-size: .95rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
}
.new-stock .ths-products-grid,
.woocommerce .new-stock .ths-products-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.card-actions .qty,
.woocommerce .quantity .qty {
  width: 64px;
  height: 52px !important;
  min-height: 52px !important;
  border: 1px solid #bbb;
  text-align: center;
  font-size: 1rem;
  line-height: 52px;
  padding: 0;
}
.shop-faq {
  margin-top: 90px;
  text-align: center;
}
.shop-faq h2 { margin-bottom: 28px; }
.shop-faq details {
  max-width: 760px;
  margin: 12px auto;
  border: 1px solid #e5e5e5;
  background: #fff;
  padding: 16px 22px;
  text-align: left;
}

/* Product detail */
.single-product-layout {
  padding: 26px 0 0;
}
.product-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding-bottom: 86px;
}
.product-gallery-wrap {
  background: #fff;
}
.ths-product-gallery {
  background: #fff;
}
.ths-product-main-image {
  position: relative;
  display: grid;
  min-height: 470px;
  place-items: center;
  background: #fff;
  overflow: hidden;
}
.ths-product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ths-product-main-image span {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.16);
}
.ths-product-main-image span::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 3px solid #111;
  border-radius: 50%;
}
.ths-product-main-image span::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 14px;
  width: 12px;
  height: 3px;
  background: #111;
  transform: rotate(45deg);
}
.ths-product-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.ths-product-thumbs button {
  display: grid;
  min-height: 126px;
  place-items: center;
  border: 3px solid transparent;
  background: #fff;
  cursor: pointer;
  opacity: .58;
}
.ths-product-thumbs button.is-active,
.ths-product-thumbs button:hover {
  border-color: var(--ths-green);
  opacity: 1;
}
.ths-product-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-summary h1 {
  margin: 0 0 18px;
  font-size: clamp(2.8rem, 4vw, 5rem);
}
.product-meta-line {
  margin: 0;
  font-size: 1.18rem;
  text-transform: uppercase;
}
.product-meta-line b {
  font-family: var(--ths-font-head);
  font-size: 1.35rem;
}
.product-meta-line a { color: var(--ths-green); }
.single-excerpt {
  margin: 32px 0;
  font-size: 1.12rem;
}
.single-price {
  margin-bottom: 22px;
  font-size: 1.5rem;
  font-weight: 700;
}
.single-cart-actions form.cart,
.product-summary form.cart {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
.single-cart-actions .quantity {
  margin: 0;
}
.single-cart-actions .quantity .qty {
  width: 76px;
  height: 52px;
  min-height: 52px;
  font-size: 1.1rem;
}
.single-cart-actions .single_add_to_cart_button {
  display: inline-flex !important;
  min-height: 56px !important;
  height: 56px !important;
  min-width: 190px;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 32px !important;
  background: var(--ths-green) !important;
  color: #fff !important;
  font-family: var(--ths-font-body) !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center !important;
}
.woocommerce div.product form.cart .button.single_add_to_cart_button,
.woocommerce div.product form.cart .button.single_add_to_cart_button.alt,
.woocommerce div.product form.cart button.single_add_to_cart_button,
.woocommerce div.product form.cart button.single_add_to_cart_button.alt {
  background: var(--ths-green) !important;
  color: #fff !important;
}
.secondary-action { margin-top: 0; }
.product-tabs-wrap {
  border-top: 1px solid #ccc;
  padding: 70px 0 80px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: 1px solid #ddd;
  background: #f4f4f4;
  padding: 18px 34px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background: var(--ths-green);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #fff; }
.woocommerce div.product .woocommerce-tabs ul.tabs a {
  font-family: var(--ths-font-head);
  font-size: 1.25rem;
  text-transform: uppercase;
}
.woocommerce-Tabs-panel h2 {
  font-size: 1.65rem;
}
.related-wrap {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 90px max(46px, calc((100vw - 1260px) / 2)) 110px;
  background: #eee;
}
.related-wrap > section > h2,
.related.products > h2 {
  text-align: center;
  margin-bottom: 42px;
}

/* WooCommerce utility pages */
.woocommerce-cart .site-main,
.woocommerce-checkout .site-main,
.woocommerce-account .site-main {
  background: #f2f2f2;
}
.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content,
.woocommerce-account .entry-content {
  width: min(100% - 72px, 1260px);
  margin: 0 auto;
  padding: 60px 0 90px;
}
.woocommerce-cart table.shop_table,
.woocommerce-checkout table.shop_table,
.woocommerce-account table.shop_table {
  border: 0;
  border-radius: 0;
  background: #fff;
}
.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td,
.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td {
  border-color: #e1e1e1;
  padding: 18px;
}
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-checkout #order_review,
.woocommerce-checkout .woocommerce-checkout-review-order,
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields,
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-navigation {
  background: #fff;
  padding: 28px;
}
.ths-generic-page {
  padding: 58px 0 86px;
}
.ths-generic-page > article > h1 {
  margin-top: 0;
}
.about-intro {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 60px;
  align-items: start;
}

/* Blog */
.blog-page {
  background: #fff;
}
.blog-featured {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 44px;
  align-items: stretch;
  margin-bottom: 54px;
  background: #f1f1f1;
}
.blog-featured-image,
.blog-card-image {
  display: grid;
  place-items: center;
  min-height: 300px;
  background:
    linear-gradient(130deg, rgba(0,0,0,.72), rgba(0,0,0,.2)),
    url("https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1200&q=70") center/cover;
  color: #fff;
  overflow: hidden;
}
.blog-featured-image img,
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-featured-image span,
.blog-card-image span {
  font-family: var(--ths-font-head);
  font-size: 2rem;
  text-transform: uppercase;
}
.blog-featured-copy {
  padding: 50px 46px 50px 0;
}
.blog-featured-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 3vw, 4rem);
}
.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.blog-card {
  background: #f3f3f3;
}
.blog-card-image {
  min-height: 210px;
}
.blog-card-copy {
  padding: 24px;
}
.blog-card-copy > p:first-child {
  margin: 0 0 8px;
  color: var(--ths-green-dark);
  font-family: var(--ths-font-head);
  text-transform: uppercase;
}
.blog-card-copy h2 {
  margin: 0 0 12px;
  font-size: 1.55rem;
}
.single-post-page {
  display: grid;
  grid-template-columns: 1fr minmax(0, 760px) 1fr;
}
.single-post-page > * {
  grid-column: 2;
}
.single-post-image {
  grid-column: 1 / -1;
  margin-bottom: 36px;
}
.single-post-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}
.single-post-content {
  font-size: 1.08rem;
}

/* Contact and service */
.ths-page-hero {
  position: relative;
  min-height: 380px;
  background:
    linear-gradient(104deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.6) 42%, rgba(0,0,0,.1) 43%),
    url("https://images.unsplash.com/photo-1519003722824-194d4455a60c?auto=format&fit=crop&w=1800&q=70") center/cover;
}
.ths-hero-shade {
  padding: 140px 0 0 46px;
  color: #fff;
}
.ths-hero-shade p {
  margin: 0;
  color: #ddd;
  font-family: var(--ths-font-head);
  font-size: 1.4rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.ths-hero-shade h1 {
  margin: 8px 0 0;
  color: #fff;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 560px;
  gap: 70px;
  padding: 86px 0 110px;
}
.contact-copy h1 { margin-top: 0; font-size: 3rem; }
.contact-copy a { color: var(--ths-green); }
.contact-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}
.contact-location {
  position: relative;
  margin: 30px 0;
  padding-right: 110px;
}
.contact-location h3 { margin-bottom: 4px; }
.contact-location .button {
  position: absolute;
  right: 0;
  top: 12px;
  color: #fff;
}
.contact-side {
  display: grid;
  gap: 32px;
}
.contact-slider-card,
.store-hours,
.form-panel,
.service-form-band {
  background: #eee;
  padding: 32px;
}
.contact-slider-card {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  min-height: 200px;
  text-align: center;
}
.slider-arrow {
  font-size: 3rem;
  color: #111;
}
.mini-trailer {
  width: 210px;
  height: 86px;
  margin: 0 auto 16px;
  background:
    linear-gradient(#c98b65,#c98b65) 55px 32px/105px 24px no-repeat,
    radial-gradient(circle,#111 45%,transparent 47%) 62px 58px/30px 30px no-repeat,
    radial-gradient(circle,#111 45%,transparent 47%) 142px 58px/30px 30px no-repeat;
  border-bottom: 5px solid #111;
}
.store-hours p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.ths-fallback-form {
  display: grid;
  gap: 14px;
}
.ths-fallback-form input,
.ths-fallback-form textarea,
.ths-fallback-form select,
.wpcf7 input,
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d5d5d5;
  background: #fff;
  padding: 10px 12px;
  font-family: var(--ths-font-body);
}
.ths-fallback-form textarea,
.wpcf7 textarea { min-height: 150px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.service-intro {
  padding: 82px 0 70px;
  text-align: center;
}
.service-intro > p:not(.eyebrow) {
  max-width: 860px;
  margin: 0 auto 40px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-grid article {
  min-height: 120px;
  display: grid;
  place-items: center;
  background: #eee;
  padding: 22px;
}
.service-grid span { color: var(--ths-green); font-size: 2rem; }
.service-grid h3 { margin: 0; font-size: 1.1rem; }
.service-form-band {
  padding: 80px 0 110px;
}
.form-wide {
  max-width: 720px;
}
.form-wide > h2,
.form-wide > .eyebrow { text-align: center; }
.narrow-copy { max-width: 860px; }
.finance-page-cards {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 42px;
}
.finance-detail-page {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 520px);
  gap: 54px;
  align-items: start;
}
.finance-detail-copy h1 {
  margin-top: 0;
}
.finance-detail-copy p {
  max-width: 720px;
}
.finance-detail-panel,
.payment-calculator {
  background: #f1f1f1;
  padding: 34px;
}
.finance-detail-panel h2,
.payment-calculator h2 {
  margin-top: 0;
}
.finance-detail-panel li {
  margin: 12px 0;
}
.payment-calculator {
  display: grid;
  gap: 16px;
}
.payment-calculator label {
  display: grid;
  gap: 8px;
  font-weight: 800;
  text-transform: uppercase;
}
.payment-calculator input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d2d2d2;
  padding: 0 14px;
  font: inherit;
}
.calculator-result {
  display: grid;
  gap: 6px;
  margin: 6px 0;
  padding: 24px;
  background: #111;
  color: #fff;
}
.calculator-result span {
  color: #cfcfcf;
  font-weight: 700;
}
.calculator-result strong {
  font-family: var(--ths-font-head);
  font-size: 2.6rem;
  line-height: 1;
}

/* Footer */
.footer-cta {
  min-height: 330px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=70") center/cover;
  color: #fff;
  text-align: center;
}
.footer-cta h2 { color: #fff; margin: 0; }
.footer-cta p {
  margin: 0;
  color: #d9d9d9;
  font-family: var(--ths-font-head);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.footer-cta span { display: block; margin-bottom: 18px; }
.site-footer {
  background: #111;
  color: #bdbdbd;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.1fr repeat(3, 1.35fr);
  gap: 20px;
  padding: 70px 46px;
}
.footer-main h3 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 1.05rem;
}
.footer-main ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-main li { margin: 8px 0; }
.footer-location-card {
  background: #1d1d1d;
  padding: 24px;
}
.footer-location-card a {
  display: block;
  margin: 8px 0;
  color: #fff;
  font-weight: 800;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 24px 46px;
  font-size: .86rem;
}

@media (max-width: 980px) {
  .content-wrap { width: min(100% - 28px, 760px); }
  .header-top {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 10px 14px;
    justify-items: center;
  }
  .site-logo { width: 165px; }
  .header-phones { display: none; }
  .header-nav-row {
    grid-template-columns: 118px 1fr 58px;
    padding-left: 0;
    min-height: 58px;
  }
  .primary-nav { display: none; }
  .mobile-menu-toggle {
    display: flex;
    gap: 8px;
    align-items: center;
    border: 0;
    background: #111;
    color: #fff;
    padding: 0 16px;
    font-family: var(--ths-font-body);
    text-transform: uppercase;
  }
  .mobile-menu-toggle span,
  .mobile-menu-toggle span::before,
  .mobile-menu-toggle span::after {
    display: block;
    width: 16px;
    height: 2px;
    background: #fff;
    content: "";
  }
  .mobile-menu-toggle span::before { transform: translateY(-6px); }
  .mobile-menu-toggle span::after { transform: translateY(4px); }
  .header-search { padding: 6px; }
  .search-field { min-height: 44px; }
  .cart-count {
    top: 6px;
    right: 6px;
  }
  .mobile-panel {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: block;
    background: #fff;
    padding: 82px 18px 38px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  body.admin-bar .mobile-panel { top: 32px; }
  .mobile-panel[hidden] { display: none; }
  .mobile-panel-close {
    position: absolute;
    top: 30px;
    right: 35px;
    border: 0;
    background: transparent;
    color: var(--ths-green);
    font-size: 3rem;
    line-height: 1;
  }
  .mobile-panel .ths-nav-list {
    display: grid;
    height: auto;
    gap: 0;
  }
  .mobile-panel .ths-nav-list > li {
    border-bottom: 1px solid #e2e2e2;
  }
  .mobile-panel .ths-nav-list > li > a {
    justify-content: space-between;
    height: auto;
    padding: 18px 4px;
    color: #111;
    font-size: clamp(1.55rem, 6vw, 2.15rem);
    line-height: 1;
  }
  .mobile-panel .sub-menu,
  .mobile-panel .mega-menu {
    display: none;
  }
  .mobile-panel .sub-menu {
    position: static;
    min-width: 0;
    padding: 0 0 14px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .mobile-panel .sub-menu a {
    padding: 10px 4px 10px 18px;
    font-size: 1rem;
  }
  .mobile-panel .mega-menu {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    grid-template-columns: 1fr;
    width: 100%;
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding: 0 0 22px;
    background: #fff;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: none;
  }
  .mobile-panel .has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
  }
  .mobile-panel .mega-types,
  .mobile-panel .mega-brands {
    padding: 18px 0;
    background: #fff;
  }
  .mobile-panel .mega-menu h3 {
    margin: 0 0 14px;
    font-size: 1.5rem;
  }
  .mobile-panel .mega-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .mobile-panel .mega-type-card {
    min-height: 148px;
    padding: 10px;
  }
  .mobile-panel .mega-type-card img {
    width: 100%;
    max-height: 78px;
    object-fit: contain;
  }
  .mobile-panel .mega-type-card span,
  .mobile-panel .mega-brand-list a {
    font-size: 1rem;
    line-height: 1.08;
  }
  .mobile-panel .mega-brand-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    margin-bottom: 18px;
  }

  .home-hero { min-height: 455px; }
  .home-hero-content { padding: 32px 14px; width: 100%; }
  .home-hero h1 { font-size: 2.35rem; }
  .hero-actions .button { width: 100%; }
  .brand-strip-track { animation-duration: 24s; }
  .brand-strip a {
    padding: 16px 26px;
    font-size: 1rem;
  }
  .section-block { padding: 42px 0; }
  .section-heading-row { display: block; }
  .section-heading-row .button { margin-top: 14px; }
  .category-tile-grid,
  .brand-logo-grid,
  .quality-grid,
  .location-map-grid,
  .financing-grid,
  .finance-detail-page,
  .about-intro,
  .blog-featured,
  .blog-card-grid,
  .contact-layout,
  .service-grid,
  .finance-page-cards,
  .product-top,
  .shop-page {
    grid-template-columns: 1fr;
  }
  .category-tile { min-height: 190px; }
  .brand-logo-grid { grid-template-columns: repeat(2, 1fr); }
  .quality-band { text-align: left; }
  .shop-page { padding-top: 18px; }
  .shop-filters { display: none; }
  .woocommerce .ths-products-grid,
  .ths-products-grid,
  .new-stock .ths-products-grid,
  .woocommerce .new-stock .ths-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .woocommerce ul.products.ths-products-grid li.product,
  .ths-product-card {
    align-items: center;
    text-align: center;
  }
  .product-card-image { min-height: 180px; }
  .product-top { gap: 22px; padding-bottom: 44px; }
  .ths-product-main-image { min-height: 310px; }
  .ths-product-thumbs {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .ths-product-thumbs button { min-height: 96px; }
  .product-summary h1 { font-size: 2.2rem; }
  .single-cart-actions form.cart {
    flex-wrap: wrap;
  }
  .blog-featured-copy { padding: 28px; }
  .blog-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-tabs-wrap { padding: 34px 0; }
  .woocommerce div.product .woocommerce-tabs ul.tabs { display: grid; }
  .related-wrap { padding: 48px 14px; }
  .ths-page-hero { min-height: 260px; }
  .ths-hero-shade { padding: 90px 16px 0; }
  .contact-location { padding-right: 0; }
  .contact-location .button { position: static; margin-top: 10px; }
  .two-col,
  .three-col,
  .contact-lists { grid-template-columns: 1fr; }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    padding: 42px 16px;
  }
  .footer-location-card { grid-column: span 2; }
  .footer-bottom { padding: 20px 16px; }
}

@media (max-width: 520px) {
  .mobile-panel {
    padding: 74px 14px 32px;
  }
  body.admin-bar .mobile-panel { top: 46px; }
  .mobile-panel-close {
    top: 20px;
    right: 20px;
  }
  .mobile-panel .mega-type-grid,
  .mobile-panel .mega-brand-list {
    grid-template-columns: 1fr;
  }
  .mobile-panel .mega-type-card {
    min-height: 128px;
  }
  .woocommerce .ths-products-grid,
  .ths-products-grid,
  .new-stock .ths-products-grid,
  .woocommerce .new-stock .ths-products-grid {
    grid-template-columns: 1fr;
  }
  .product-card-image { min-height: 220px; }
  .card-actions {
    width: 100%;
  }
  .card-actions .button {
    flex: 1;
    min-width: 0;
  }
  .blog-card-grid { grid-template-columns: 1fr; }
  .blog-featured-image,
  .blog-card-image { min-height: 210px; }
  .blog-featured-copy h2 { font-size: 2rem; }
  .ths-product-main-image { min-height: 260px; }
  .ths-product-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }
  .woocommerce-cart .entry-content,
  .woocommerce-checkout .entry-content,
  .woocommerce-account .entry-content {
    width: min(100% - 28px, 1260px);
    padding: 34px 0 54px;
  }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-column h3,
  .footer-location-card h3 { font-size: .98rem; }
  .footer-column,
  .footer-location-card { font-size: .82rem; }
}
