/*
Theme Name: Truxx Parts Direct
Description: Store theme for Truxx Parts Direct Inc. Built for WooCommerce.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Author: Truxx Parts Direct Inc.
Text Domain: truxx
*/

:root {
  --ink: #010101; --graphite: #2f2f2f; --wine: #7e171d; --wine-dark: #651217; --bell: #3e92cc; --bell-ink: #1d6699;
  --wash: #f5f5f4; --line: #e2e2e0; --muted: #66666a;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.55 var(--sans); color: var(--graphite); background: #fff; -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px)); }
body > main { flex: 1 0 auto; width: 100%; }   /* short pages push the footer to the bottom of the window instead of leaving white space under it */
.site-footer { margin-top: auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--bell); outline-offset: 2px; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { font: 600 15px/1 var(--sans); min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--graphite); }
.btn.primary { background: var(--wine); border-color: var(--wine); color: #fff; }
.btn.primary:hover { background: var(--wine-dark); border-color: var(--wine-dark); }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: var(--wash); }

/* Header */
.site-header { border-top: 4px solid var(--wine); background: #fff; border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.bar .logo { display: block; flex: none; }
.bar .logo img { height: 48px; width: auto; }
.bar-search { flex: 1; max-width: 520px; margin-right: auto; }
.bar-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.bar-nav .link, .bar-nav .btn { display: inline-flex; align-items: center; gap: 7px; }
.bar-nav .link { font-weight: 500; text-decoration: none; padding: 10px 12px; }
.bar-nav .link:hover { color: var(--wine); }
.cart-count { display: inline-block; min-width: 22px; padding: 1px 6px; margin-left: 4px; border-radius: 11px; background: var(--wine); color: #fff; font-size: 13px; font-weight: 600; text-align: center; }
.cart-count[hidden] { display: none; }
.cart-link .cart-count { margin-left: 0; }

/* Icons: one outline style, drawn as masks so they take the colour of the text around them */
:root {
  --i-cart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.4'/%3E%3Ccircle cx='18' cy='20' r='1.4'/%3E%3Cpath d='M2.5 3.5h2.7l2.2 11.2a1.5 1.5 0 0 0 1.5 1.2h8.3a1.5 1.5 0 0 0 1.5-1.1L20.5 8H6'/%3E%3C/svg%3E");
  --i-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.6'/%3E%3Cpath d='M4.5 20c.6-3.6 3.6-5.6 7.5-5.6s6.9 2 7.5 5.6'/%3E%3C/svg%3E");
  --i-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E");
  --i-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10.5V8a4 4 0 0 1 8 0v2.5'/%3E%3C/svg%3E");
  --i-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --i-box: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 7.5 12 3l8.5 4.5v9L12 21l-8.5-4.5z'/%3E%3Cpath d='M3.5 7.5 12 12l8.5-4.5M12 12v9'/%3E%3C/svg%3E");
  --i-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s6.5-5.7 6.5-11A6.5 6.5 0 0 0 5.5 10c0 5.3 6.5 11 6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2.3'/%3E%3C/svg%3E");
  --i-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='6.5' height='6.5' rx='1'/%3E%3Crect x='13.5' y='4' width='6.5' height='6.5' rx='1'/%3E%3Crect x='4' y='13.5' width='6.5' height='6.5' rx='1'/%3E%3Crect x='13.5' y='13.5' width='6.5' height='6.5' rx='1'/%3E%3C/svg%3E");
  --i-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7.5 10.5 12 15l4.5-4.5M4.5 19.5h15'/%3E%3C/svg%3E");
  --i-card: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5.5' width='18' height='13' rx='2'/%3E%3Cpath d='M3 10h18M7 15h3'/%3E%3C/svg%3E");
  --i-out: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4H5.5A1.5 1.5 0 0 0 4 5.5v13A1.5 1.5 0 0 0 5.5 20H9M15 8l4 4-4 4M19 12H9'/%3E%3C/svg%3E");
}
.ic, .woocommerce-product-search button::before, .hero-search button::before, .truxx-price-note::before, .single_add_to_cart_button::before,
#place_order::before, .woocommerce-MyAccount-navigation a::before, .cats > .cats-wrap > ul > li > details > summary::after {
  content: ""; display: inline-block; flex: none; width: 1.2em; height: 1.2em; background: currentColor;
  -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat;
}
.ic-cart { --ic: var(--i-cart); } .ic-user { --ic: var(--i-user); }
.woocommerce-product-search button, .hero-search button { display: inline-flex; align-items: center; gap: 8px; }
.woocommerce-product-search button::before, .hero-search button::before { --ic: var(--i-search); }
.truxx-price-note::before { --ic: var(--i-lock); width: 1em; height: 1em; margin-right: 6px; vertical-align: -0.15em; }
.single_add_to_cart_button { display: inline-flex; align-items: center; gap: 8px; }
.single_add_to_cart_button::before { --ic: var(--i-cart); }
#place_order::before { --ic: var(--i-lock); margin-right: 8px; vertical-align: -0.2em; }
.woocommerce-MyAccount-navigation a { display: flex; align-items: center; gap: 10px; }
.woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--dashboard a::before { --ic: var(--i-grid); }
.woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--orders a::before { --ic: var(--i-box); }
.woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--edit-address a::before { --ic: var(--i-pin); }
.woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--edit-account a::before { --ic: var(--i-user); }
.woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--downloads a::before { --ic: var(--i-down); }
.woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--payment-methods a::before { --ic: var(--i-card); }
.woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--customer-logout a::before { --ic: var(--i-out); }

/* Part page: the photo and details float side by side. Contain them, and keep what follows (related parts) clear of the photo. */
.woocommerce div.product { display: flow-root; }
.woocommerce div.product .related.products, .woocommerce div.product .up-sells.upsells { clear: both; margin-top: 56px; padding-top: 8px; }
.cats > .cats-wrap > ul > li > details > summary { align-items: center; justify-content: flex-start; }
.cats > .cats-wrap > ul > li > details > summary .n { margin-left: auto; }
.cats > .cats-wrap > ul > li > details > summary::after { --ic: var(--i-chev); width: 1em; height: 1em; margin-left: 4px; transition: transform .15s; }
.cats > .cats-wrap > ul > li > details[open] > summary::after { transform: rotate(180deg); }

/* Search forms (header search from WooCommerce, hero search) */
.woocommerce-product-search, .hero-search { display: flex; border: 2px solid var(--ink); border-radius: 4px; background: #fff; max-width: 560px; }
.woocommerce-product-search:focus-within, .hero-search:focus-within { border-color: var(--bell); }
.woocommerce-product-search input[type="search"], .hero-search input[type="search"] { flex: 1; min-width: 0; border: 0; padding: 0 14px; min-height: 44px; font: 400 16px var(--sans); color: var(--ink); background: transparent; border-radius: 4px 0 0 4px; }
.woocommerce-product-search input:focus, .hero-search input:focus { outline: none; }
.woocommerce-product-search button, .hero-search button { border: 0; background: var(--ink); color: #fff; font: 600 15px var(--sans); padding: 0 18px; cursor: pointer; border-radius: 0 2px 2px 0; }
.woocommerce-product-search button:hover, .hero-search button:hover { background: var(--wine); }
.hero-search input[type="search"] { min-height: 54px; font-size: 17px; padding: 0 16px; }
.hero-search button { padding: 0 22px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Front page */
h1 { font: 700 clamp(34px, 4.4vw, 56px)/1.05 var(--serif); letter-spacing: -0.02em; color: var(--ink); margin: 0 0 20px; text-wrap: balance; }
.lede { font-size: 18px; max-width: 34em; margin: 0 0 28px; }
.try { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.try a { color: var(--bell-ink); text-underline-offset: 3px; margin-right: 10px; white-space: nowrap; }

.makes { border-bottom: 1px solid var(--line); }
.makes h2 { font: 600 17px/1.3 var(--sans); color: var(--muted); margin: 0; padding: 28px 0 12px; }
.makes ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.makes li + li { border-left: 1px solid var(--line); }
.makes a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px 16px 24px; text-decoration: none; color: var(--ink); transition: background-color .18s, color .18s; }
.makes .name { font: 600 clamp(20px, 1.8vw, 26px)/1.1 var(--serif); letter-spacing: -0.01em; }
.makes .count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.makes a:hover, .makes a:focus-visible { background: var(--wine); color: #fff; }
.makes a:hover .count, .makes a:focus-visible .count { color: #f0d9da; }
.makes .all .name { font: 600 18px/1.3 var(--sans); }
@media (prefers-reduced-motion: no-preference) {
  .makes li { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
  .makes li:nth-child(2) { animation-delay: .06s; } .makes li:nth-child(3) { animation-delay: .12s; }
  .makes li:nth-child(4) { animation-delay: .18s; } .makes li:nth-child(5) { animation-delay: .24s; }
  .makes li:nth-child(6) { animation-delay: .3s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.section { padding: clamp(40px, 6vw, 80px) 0; }
.section.flush { padding-top: 0; }
.section h2.title { font: 700 clamp(28px, 3.4vw, 42px)/1.1 var(--serif); letter-spacing: -0.015em; color: var(--ink); margin: 0 0 28px; }
.parts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.part { text-decoration: none; color: var(--ink); display: block; }
.part .photo { aspect-ratio: 1; background: var(--wash); position: relative; overflow: hidden; }
.part .photo img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; transition: transform .25s; }
.part:hover .photo img { transform: scale(1.04); }
.part .cap { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 12px 0 0; border-top: 3px solid transparent; }
.part:hover .cap { border-top-color: var(--wine); }
.part .t { font: 600 24px/1.15 var(--serif); }
.part .c { font-size: 14px; color: var(--muted); white-space: nowrap; }
.more { margin: 24px 0 0; }
.more a { color: var(--bell-ink); font-weight: 600; text-underline-offset: 4px; }

.xref { background: var(--graphite); color: #e9e9e7; }
.xref .grid { display: grid; grid-template-columns: minmax(0, 560px); gap: clamp(28px, 4vw, 48px); }
.xref h2 { font: 700 clamp(28px, 3.6vw, 46px)/1.1 var(--serif); letter-spacing: -0.015em; color: #fff; margin: 0 0 16px; }
.xref p { margin: 0 0 24px; max-width: 30em; font-size: 17px; }
.xref .brandrun { font: 600 clamp(20px, 2vw, 26px)/1.4 var(--serif); letter-spacing: -0.005em; color: #fff; margin: 0; max-width: none; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .3); }

.acct { background: var(--wash); }
.acct .grid { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.acct h2 { font: 700 clamp(26px, 3vw, 38px)/1.12 var(--serif); letter-spacing: -0.015em; color: var(--ink); margin: 0 0 8px; }
.acct p { margin: 0; max-width: 34em; }
.acct .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--ink); color: #bdbdbb; padding: 48px 0 28px; font-size: 15px; margin-top: 0; }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px 48px; }
.foot img { height: 44px; width: auto; background: #fff; padding: 6px 10px; border-radius: 4px; margin-bottom: 14px; }
.foot p { margin: 0; max-width: 26em; }
.foot h3 { font: 600 15px var(--sans); color: #fff; margin: 0 0 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { text-decoration: none; overflow-wrap: anywhere; } .foot a:hover { color: #fff; text-decoration: underline; }
.fine { grid-column: 1 / -1; border-top: 1px solid #2f2f2f; padding-top: 18px; font-size: 13px; color: #8d8d8b; }

/* Ordinary pages: cart, checkout, my account */
.plain-page { padding-top: 32px; padding-bottom: 64px; min-height: 50vh; }
.plain-page > article > h1, .shop h1.page-title { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; margin-bottom: 24px; }

/* Shop layout */
.shop { padding-top: 24px; padding-bottom: 64px; }
.shop.with-side { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.side { position: sticky; top: 16px; }
.shop-main { min-width: 0; }
.cats-wrap > summary { list-style: none; font: 600 17px/1.3 var(--sans); color: var(--muted); margin: 0 0 8px; pointer-events: none; }
.cats-wrap > summary::-webkit-details-marker { display: none; }
.cats ul { list-style: none; margin: 0; padding: 0; }
.cats > ul { border-top: 2px solid var(--ink); }
.cats > ul > li { border-bottom: 1px solid var(--line); }
.cats summary { display: flex; justify-content: space-between; gap: 8px; padding: 11px 2px; cursor: pointer; font: 600 16px var(--sans); color: var(--ink); list-style: none; }
.cats summary::-webkit-details-marker { display: none; }
.cats summary:hover { color: var(--wine); }
.cats details ul { padding: 0 0 10px 12px; }
.cats details a { display: flex; justify-content: space-between; gap: 8px; padding: 5px 4px; text-decoration: none; font-size: 15px; }
.cats details a:hover { color: var(--wine); }
.cats a[aria-current="page"] { color: var(--wine); font-weight: 600; }
.cats .n { color: var(--muted); font-weight: 400; font-size: 13px; font-variant-numeric: tabular-nums; }

.woocommerce-breadcrumb { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.woocommerce-breadcrumb a { color: var(--bell-ink); text-underline-offset: 3px; }
.woocommerce-products-header__title, .product_title { font-family: var(--serif); letter-spacing: -0.015em; color: var(--ink); }
.woocommerce-result-count { color: var(--muted); font-size: 14px; }
.woocommerce .woocommerce-ordering select { min-height: 40px; border: 1px solid var(--line); border-radius: 4px; padding: 0 10px; font: 400 15px var(--sans); background: #fff; }

/* Product grid */
.woocommerce ul.products, .woocommerce-page ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; margin: 0 0 32px; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products[class*="columns-"] li.product, .woocommerce-page ul.products[class*="columns-"] li.product { width: auto; float: none; margin: 0; display: flex; flex-direction: column; }
.woocommerce ul.products li.product .woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; }
.woocommerce ul.products li.product a img { aspect-ratio: 1; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 8%; margin: 0 0 12px; transition: border-color .2s; }
.woocommerce ul.products li.product:hover a img { border-color: var(--wine); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font: 600 17px/1.25 var(--serif); color: var(--ink); padding: 0; margin: 0 0 4px; }
.woocommerce ul.products li.product .pn { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.woocommerce ul.products li.product .price { color: var(--ink); font-weight: 600; font-size: 16px; margin-bottom: 10px; }
.woocommerce ul.products li.product .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; margin: 12px 0 0; align-self: flex-start; line-height: 1; }
.truxx-price-note { font-weight: 400; font-size: 14px; color: var(--muted); }
.truxx-price-note a { color: var(--bell-ink); text-underline-offset: 3px; }

/* Buttons from WooCommerce */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt {
  font: 600 15px/1 var(--sans); min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px; border: 1px solid var(--wine); background: var(--wine); color: #fff;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--wine-dark); border-color: var(--wine-dark); color: #fff; }
.woocommerce a.button.disabled, .woocommerce button.button:disabled { opacity: .5; }
.woocommerce nav.woocommerce-pagination ul { border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; margin: 0 2px; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { border: 1px solid var(--line); border-radius: 4px; padding: 9px 13px; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Part page */
.woocommerce div.product div.images .woocommerce-product-gallery__image { background: var(--wash); overflow: hidden; }
/* Hover zoom: the enlarged copy sits over the photo as itself. Blended like the photo (multiply), the two would overlap as a ghost. */
.woocommerce div.product div.images img.zoomImg { mix-blend-mode: normal; background: #fff; max-width: none; max-height: none; }
.woocommerce div.product div.images .woocommerce-product-gallery__image a { cursor: zoom-in; }
.woocommerce div.product div.images img { mix-blend-mode: multiply; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); font-size: 26px; font-weight: 600; }
.woocommerce div.product .truxx-price-note { font-size: 16px; }
.woocommerce div.product .product_meta { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 20px; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: var(--line); }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: var(--wash); border-color: var(--line); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: #fff; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-weight: 600; color: var(--ink); }
.woocommerce div.product .woocommerce-tabs .panel h2, .related.products > h2, .upsells > h2 { font: 700 26px/1.15 var(--serif); letter-spacing: -0.01em; color: var(--ink); }
.woocommerce div.product .woocommerce-tabs .panel h4 { font: 600 16px var(--sans); margin: 20px 0 8px; color: var(--ink); }
.woocommerce table.shop_attributes th { width: 30%; color: var(--ink); }
.woocommerce div.product form.cart .qty, .woocommerce .quantity .qty { min-height: 44px; border: 1px solid var(--line); border-radius: 4px; }

/* Notices and forms */
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--wine); background: var(--wash); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--wine); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { min-height: 44px; border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px; font: 400 16px var(--sans); }
.woocommerce form .form-row input.input-text:focus { border-color: var(--bell); outline: none; }
/* Log in / register: two columns, the second one a graphite panel */
.woocommerce-account h2 { font: 700 clamp(24px, 2.6vw, 32px)/1.15 var(--serif); letter-spacing: -0.01em; color: var(--ink); margin: 0 0 8px; }
.woocommerce-account .col2-set { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); width: 100%; align-items: start; }
.woocommerce-account .col2-set::before, .woocommerce-account .col2-set::after { display: none; }
.woocommerce-account .col2-set .u-column1, .woocommerce-account .col2-set .u-column2 { float: none; width: auto; max-width: none; }
.woocommerce-account .col2-set .u-column1 { border-top: 2px solid var(--ink); padding-top: 24px; }
.woocommerce-account .col2-set .u-column2 { background: var(--graphite); color: #e9e9e7; padding: 24px clamp(20px, 3vw, 40px) 32px; border-top: 2px solid var(--wine); }
.woocommerce-account .col2-set .u-column2 h2 { color: #fff; }
.woocommerce-account .col2-set .u-column2 a { color: #fff; }
.woocommerce-account .col2-set .u-column2 .woocommerce-privacy-policy-text p { font-size: 14px; }
.woocommerce-account form.login, .woocommerce-account form.register { border: 0; padding: 0; margin: 16px 0 0; border-radius: 0; }
.woocommerce-account .truxx-lead { margin: 0 0 20px; max-width: 34em; text-wrap: balance; }
.woocommerce-account form .form-row { padding-left: 0; padding-right: 0; }
.woocommerce-account .u-column2 .required { color: #fff; }
.woocommerce-account .u-column2 .woocommerce-password-strength { color: var(--ink); }   /* the meter has a pale background */
.woocommerce-account form .form-row label { font-weight: 500; }
.woocommerce-account .u-column2 .button { background: #fff; border-color: #fff; color: var(--ink); }
.woocommerce-account .u-column2 .button:hover { background: var(--wash); border-color: var(--wash); color: var(--ink); }
.woocommerce-account .woocommerce-form-login__rememberme { margin-left: 12px; }
.woocommerce-account .lost_password { margin-top: 16px; }
.woocommerce-account .lost_password a { color: var(--bell-ink); text-underline-offset: 3px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0 0 24px; border-top: 2px solid var(--ink); }
.woocommerce-account .woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--line); }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: flex; align-items: center; gap: 10px; padding: 10px 4px; text-decoration: none; font-weight: 500; }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { color: var(--wine); font-weight: 600; }
.woocommerce-cart table.cart img { width: 64px; mix-blend-mode: multiply; }
.woocommerce table.shop_table { border-radius: 4px; border-color: var(--line); }
.woocommerce a.remove { color: var(--wine) !important; }
.woocommerce a.remove:hover { background: var(--wine); color: #fff !important; }

@media (max-width: 1100px) {
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .woocommerce-account .col2-set { grid-template-columns: minmax(0, 1fr); }
  .makes ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .makes li:nth-child(n+4) { border-top: 1px solid var(--line); }
  .makes li:nth-child(4) { border-left: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; }
  .shop.with-side { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .side { position: static; }
  .cats-wrap > summary { pointer-events: auto; cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 14px; margin: 0; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); }
  .cats-wrap > summary::after { content: "+"; font-size: 22px; font-weight: 400; }
  .cats-wrap[open] > summary::after { content: "\2212"; }
  .cats-wrap[open] > summary { margin-bottom: 8px; }
  .bar { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .bar-search { order: 3; flex-basis: 100%; max-width: none; }
}
@media (max-width: 700px) {
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
}
@media (max-width: 640px) {
  .bar .logo img { height: 40px; }
  .bar-nav .reg { display: none; }
  .bar-nav .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* icon only on a phone */
  .bar-nav .link, .bar-nav .btn { padding-left: 10px; padding-right: 10px; }
  .part .t { font-size: 20px; } .part .cap { flex-direction: column; gap: 2px; }
  .acct .actions, .acct .actions .btn { width: 100%; }
}

/* availability note under Add to cart and above the payment methods */
.truxx-avail-note { margin: 16px 0 0; padding: 12px 14px; border-left: 3px solid var(--bell); background: var(--wash); font-size: 14px; line-height: 1.5; color: var(--graphite); }
.truxx-avail-note.is-checkout { margin: 0 0 16px; }

/* Front page: photo hero */
.hero-photo { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(520px, 72vh, 720px); background: var(--ink); color: #fff; }
.hero-photo .wrap { width: 100%; }
.hero-photo .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; z-index: -2; }
.hero-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(1, 1, 1, .84) 0%, rgba(1, 1, 1, .58) 38%, rgba(1, 1, 1, 0) 70%); }
.hero-photo .copy { max-width: 600px; padding-block: clamp(48px, 8vw, 96px); }
.hero-photo h1 { color: #fff; font-size: clamp(40px, 4.8vw, 66px); line-height: 1.04; }
.hero-photo .lede { color: #e9e9e7; }
.hero-photo .try { color: #cfcfcc; }
.hero-photo .try a { color: #9fcdee; }

/* How ordering works: a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 16px; }
.steps li::before { content: counter(step); display: block; margin-bottom: 10px; font: 700 44px/1 var(--serif); color: var(--wine); }
.steps h3 { font: 700 24px/1.2 var(--serif); letter-spacing: -0.01em; color: var(--ink); margin: 0 0 8px; }
.steps p { margin: 0; max-width: 28em; }

/* Delivery band over the highway photo */
.ship { position: relative; isolation: isolate; display: flex; align-items: flex-start; min-height: clamp(380px, 44vw, 520px); background: #e9eef3; }
.ship .wrap { width: 100%; }
.ship .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 62%; z-index: -2; }
.ship::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .62) 40%, rgba(255, 255, 255, 0) 70%); }
.ship .copy { max-width: 520px; padding-block: clamp(40px, 6vw, 72px); }
.ship h2 { font: 700 clamp(28px, 3.6vw, 46px)/1.1 var(--serif); letter-spacing: -0.015em; color: var(--ink); margin: 0 0 14px; }
.ship p { margin: 0; font-size: 17px; color: var(--graphite); }

/* Pickup: a plain white band, so the delivery photo and the video band don't run into each other */
.pickup .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.pickup .title { margin-bottom: 16px; }
.pickup p { margin: 0; max-width: 30em; font-size: 17px; }
.pickup dl { margin: 0; border-top: 2px solid var(--ink); }
.pickup dl div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pickup dt { font-weight: 600; color: var(--ink); }
.pickup dd { margin: 0; }

/* Cross-reference band with the silent looping video behind it */
.xref.has-video { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(56px, 8vw, 112px); }
.xref .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; z-index: -2; }
.xref.has-video::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(33, 33, 33, .94) 0%, rgba(33, 33, 33, .74) 45%, rgba(33, 33, 33, .12) 100%); }
.vid-toggle { position: absolute; right: var(--gutter); bottom: 16px; min-height: 36px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 4px; background: rgba(0, 0, 0, .45); color: #fff; font: 600 13px var(--sans); cursor: pointer; }
.vid-toggle:hover { background: rgba(0, 0, 0, .7); }
.vid-toggle[hidden] { display: none; }

@media (max-width: 960px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .hero-photo { display: block; min-height: 0; }
  .hero-photo .bg { position: static; display: block; height: 62vw; z-index: auto; object-position: 66% 50%; }
  .hero-photo::after { display: none; }
  .hero-photo .copy { padding-block: 28px 40px; }
  .ship::after { background: linear-gradient(180deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .7) 55%, rgba(255, 255, 255, 0) 100%); }
  .xref.has-video::after { background: rgba(33, 33, 33, .84); }
  .makes ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .makes li:nth-child(n) { border-left: 0; border-top: 1px solid var(--line); }
  .makes li:nth-child(even) { border-left: 1px solid var(--line); }
  .makes li:nth-child(-n+2) { border-top: 0; }
  .pickup .grid { grid-template-columns: minmax(0, 1fr); }
  .pickup dl div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* search with no results */
.truxx-no-results { margin: 0 0 32px; font-size: 16px; max-width: 40em; }
.truxx-no-results a { color: var(--wine); }
