/* Triangle Academy shop — visual match to www.trianglefranklin.com (Nov 23, 2026). */
:root {
  --white: #ffffff;
  --black: #000000;
  --ink: #111111;
  --red: #b70306;
  --red-nav: #d61920; /* 5.23:1 on white, WCAG AA for 16px */
  --red-hover-border: #ac1f17;
  --muted: #5a5a5a;
  --slate: #2c3d49;
  --hairline: #e2e2e2;
  --soft: #f4f4f4;
  --footer: #313131;
  --header-h: 96px;
  --max: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Montserrat, "Montserrat Fallback", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, select, input { font-family: inherit; }

/* ----- sample banner ----- */
.sample-banner {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 16px;
  line-height: 1.4;
}
.sample-banner strong { color: #ffd0d0; }

/* ----- header ----- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 3px 11px rgba(0,0,0,.1);
  position: sticky;
  top: 0;
  z-index: 80;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 24px;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
}
.logo-link {
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo-link img {
  width: 112px;
  height: auto;
}
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
}
.nav a, .nav-btn {
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 12px;
  background: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}
.nav a:hover, .nav-btn:hover { color: var(--red-nav); }
.nav a.current { color: var(--red); }
.nav-item { position: relative; }
.nav-item .chev {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  display: inline-block;
}
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--black);
  padding: 6px 0;
  z-index: 90;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown { display: block; }
.dropdown a {
  display: block;
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .02em;
  padding: 12px 18px;
  text-align: left;
}
.dropdown a:hover {
  background: var(--red-nav);
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
}
.phone-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff !important;
  border: 5px solid var(--red);
  border-radius: 10px;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .02em;
  text-decoration: none;
  padding: 8px 18px;
  white-space: nowrap;
  line-height: 1;
}
.phone-btn:hover {
  background: var(--white);
  color: var(--red) !important;
  border-color: var(--red-hover-border);
}
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  text-decoration: none;
}
.cart-link svg { width: 26px; height: 26px; }
.cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  line-height: 1;
}
.cart-count.show { display: inline-flex; }

.menu-toggle, .mobile-phone {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}
.menu-toggle svg, .mobile-phone svg { width: 26px; height: 26px; display: block; }

/* ----- mobile nav drawer ----- */
.mobile-nav {
  display: none;
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
  padding: 8px 0 16px;
}
.mobile-nav.open { display: block; }
.mobile-nav a, .mobile-nav button.sub-toggle {
  display: block;
  width: 100%;
  text-align: left;
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 12px 24px;
  cursor: pointer;
}
.mobile-nav a.current { color: var(--red); }
.mobile-nav .sub { display: none; padding-left: 12px; background: var(--black); }
.mobile-nav .sub.open { display: block; }
.mobile-nav .sub a { color: #fff; font-size: 14px; font-weight: 700; }
.mobile-nav .sub a:hover { background: var(--red-nav); }

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 44px 1fr auto;
    padding: 8px 12px;
    min-height: 72px;
  }
  .nav, .phone-btn { display: none; }
  .menu-toggle, .mobile-phone { display: inline-flex; }
  .logo-link img { width: 72px; }
  .logo-link { justify-content: center; }
}

/* ----- page ----- */
main { flex: 1; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.hero {
  padding: 48px 0 28px;
}
.hero-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 8px;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: -.02em;
}
.hero h1 span { color: var(--red); }
.hero p {
  margin: 0;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 500;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0 28px;
}
.filter-btn {
  background: var(--white);
  border: 1px solid var(--hairline);
  color: var(--ink);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 0;
  cursor: pointer;
}
.filter-btn[aria-pressed="true"], .filter-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding-bottom: 64px;
}
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .wrap { padding: 0 16px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s ease;
}
.card:hover { box-shadow: 0 8px 22px rgba(0,0,0,.08); }
.card-img {
  background: var(--soft);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 8px;
}
.card-body { padding: 14px 16px 18px; }
.card-body h2 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
}
.card-meta { margin: 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.card-blank { margin: 6px 0 0; font-size: 12px; color: var(--slate); }
.card-price { margin: 10px 0 0; font-size: 15px; font-weight: 800; }
.card-price small {
  display: block;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

/* ----- product ----- */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 40px 0 72px;
  align-items: start;
}
@media (max-width: 800px) {
  .product { grid-template-columns: 1fr; gap: 24px; padding: 24px 0 56px; }
}
.product-img {
  background: var(--soft);
  border: 1px solid var(--hairline);
  position: relative;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img img { width: 100%; height: 100%; object-fit: contain; }
.crumb {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 16px;
}
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--red); }
.product h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
}
.product .meta { margin: 0 0 8px; font-weight: 700; color: var(--ink); }
.product .blank { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.price-block { margin: 0 0 8px; }
.price-block .amt { font-size: 28px; font-weight: 900; }
.price-block .note {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.product p.desc { font-size: 15px; line-height: 1.55; color: var(--ink); margin: 16px 0 24px; }
.field { margin: 0 0 18px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes input { position: absolute; opacity: 0; pointer-events: none; }
.sizes label.sz {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  background: #fff;
}
.sizes input:focus-visible + label.sz { outline: 2px solid var(--red); }
.sizes input:checked + label.sz {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.qty-row { display: flex; align-items: center; gap: 10px; }
.qty-row input {
  width: 72px;
  padding: 10px;
  border: 1px solid var(--hairline);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  border: 5px solid var(--red);
  border-radius: 10px;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 22px;
  cursor: pointer;
  line-height: 1.1;
}
.btn:hover { background: #fff; color: var(--red); border-color: var(--red-hover-border); }
.btn[disabled], .btn.is-disabled {
  background: #8a8a8a;
  border-color: #8a8a8a;
  color: #fff;
  cursor: not-allowed;
}
.btn[disabled]:hover, .btn.is-disabled:hover {
  background: #8a8a8a;
  border-color: #8a8a8a;
  color: #fff;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
  z-index: 120;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ----- cart ----- */
.cart-page { padding: 36px 0 72px; }
.cart-page h1 {
  margin: 0 0 8px;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  text-transform: uppercase;
}
.cart-empty { padding: 24px 0 48px; color: var(--muted); }
.cart-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.cart-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 800;
  border-bottom: 1px solid var(--hairline);
  padding: 10px 8px;
  color: var(--muted);
}
.cart-table td { border-bottom: 1px solid var(--hairline); padding: 16px 8px; vertical-align: middle; }
.cart-item { display: flex; gap: 14px; align-items: center; }
.cart-item img { width: 88px; height: 88px; object-fit: contain; background: var(--soft); }
.cart-item strong { display: block; font-size: 15px; }
.cart-item span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.cart-table input[type="number"] {
  width: 64px; padding: 8px; border: 1px solid var(--hairline); font-weight: 700;
}
.remove {
  background: none; border: 0; color: var(--red); font-weight: 800; font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase; cursor: pointer; padding: 0;
}
.cart-summary {
  margin-left: auto;
  max-width: 360px;
  border: 1px solid var(--hairline);
  padding: 20px;
}
.cart-summary h2 { margin: 0 0 12px; font-size: 16px; text-transform: uppercase; }
.sum-row { display: flex; justify-content: space-between; font-weight: 700; margin: 8px 0; }
.cart-summary .note { font-size: 13px; color: var(--muted); margin: 12px 0 16px; line-height: 1.45; }
.cart-summary .btn { width: 100%; }
@media (max-width: 700px) {
  .cart-hide-sm { display: none; }
  .cart-item img { width: 64px; height: 64px; }
}

/* ----- CTA band + footer ----- */
.cta-band {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 48px 20px 44px;
}
.cta-band p {
  margin: 0;
  font-weight: 900;
  font-size: clamp(26px, 5vw, 52px);
  line-height: 1;
  text-transform: uppercase;
}
.cta-band p span { color: #b70306; }
.cta-band a.btn { margin-top: 22px; }

.site-footer {
  background: var(--footer);
  color: var(--white);
  padding: 48px 24px 0;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: start;
  padding-bottom: 36px;
}
.footer-grid h2 {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 700;
  text-transform: uppercase;
}
.footer-grid p, .footer-grid li, .footer-grid a {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  line-height: 1.45;
}
.footer-grid a:hover { text-decoration: underline; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 0 0 4px; }
.info { text-align: right; }
.hours { text-align: left; }
.hours ul { max-width: 300px; }
.hours li { display: flex; justify-content: space-between; gap: 24px; }
.brand-col {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.brand-col img { width: 180px; height: auto; }
.social { display: flex; gap: 10px; }
.social a {
  width: 40px; height: 40px;
  background: var(--red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.social svg { width: 18px; height: 18px; fill: currentColor; }
.legal-links { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.copy {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  font-weight: 700;
  padding: 8px 0 20px;
  font-size: 14px;
}
.leadtek-credit {
  border-top: 1px solid #4a4a4a;
  padding: 16px 24px 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: #ddd;
  font-size: 13px;
  font-weight: 700;
}
.leadtek-credit a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.leadtek-credit img {
  width: 96px;
  height: auto;
  aspect-ratio: 599 / 160;
  background: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  box-sizing: content-box;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .info, .hours { text-align: center; }
  .hours ul { margin: 0 auto; }
  .hours li { justify-content: center; gap: 16px; }
  .legal-links { align-items: center; }
}

/* ----- Triangle Gear additions ----- */
.skip { position: absolute; left: -9999px; top: 0; background: #fff; color: #000; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.hero-ship { font-size: 14px !important; color: var(--muted) !important; font-weight: 600; }
.dots { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 0; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); display: inline-block; }
.card-img { background: var(--soft); }
.gallery { display: flex; flex-direction: column; gap: 10px; }
.thumbs { display: flex; gap: 10px; }
.pdp-thumb { width: 84px; height: 84px; padding: 0; border: 2px solid var(--hairline); border-radius: 6px; background: #fff; cursor: pointer; overflow: hidden; }
.pdp-thumb[aria-pressed="true"] { border-color: var(--red); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
fieldset.field legend { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; padding: 0; }
fieldset.field legend strong { text-transform: none; font-weight: 700; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches input { position: absolute; opacity: 0; pointer-events: none; }
.swatch { display: inline-flex; flex-direction: column; align-items: center; cursor: pointer; }
.swatch span { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(0,0,0,.3); box-shadow: inset 0 0 0 3px #fff; outline: 2px solid transparent; outline-offset: 1px; }
.swatch em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.swatches input:checked + .swatch span { outline-color: var(--red); }
.swatches input:focus-visible + .swatch span { outline: 3px solid var(--ink); }
.field select { width: 100%; max-width: 320px; padding: 12px; font-size: 16px; border: 1px solid #8a8a8a; border-radius: 6px; background: #fff; }
.field label[for] { display: block; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.details { padding-left: 18px; margin: 20px 0 12px; line-height: 1.55; font-size: 15px; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.5; }
.cart-list { list-style: none; margin: 24px 0; padding: 0; }
.cart-row { display: grid; grid-template-columns: 88px 1fr auto auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.cart-row img { width: 88px; height: 88px; object-fit: cover; border-radius: 6px; }
.cart-name strong { display: block; font-size: 15px; }
.cart-name span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.cart-qty { display: inline-flex; align-items: center; gap: 8px; }
.cart-qty button { width: 34px; height: 34px; border: 1px solid #8a8a8a; background: #fff; border-radius: 6px; font-size: 18px; cursor: pointer; }
.cart-line { font-weight: 800; }
.remove { background: none; border: 0; color: var(--red); font-weight: 700; cursor: pointer; text-decoration: underline; }
.cart-summary { max-width: 420px; margin-left: auto; }
.ship-progress { margin: 14px 0 6px; }
.ship-progress-bar { height: 10px; background: var(--hairline); border-radius: 999px; overflow: hidden; }
.ship-progress-bar span { display: block; height: 100%; background: var(--red); }
.ship-progress.is-free .ship-progress-bar span { background: #1d7a36; }
.ship-progress-status { margin: 8px 0 0; font-weight: 700; font-size: 14px; }
.shop-held { background: var(--soft); border-left: 4px solid var(--red); padding: 12px 14px; font-size: 14px; }
.policies h2 { font-size: 18px; margin: 28px 0 8px; text-transform: uppercase; }
.policies p { line-height: 1.6; max-width: 760px; }
@media (max-width: 640px) {
  .cart-row { grid-template-columns: 64px 1fr auto; }
  .cart-row img { width: 64px; height: 64px; }
  .cart-line { grid-column: 2; }
  .cart-summary { max-width: none; }
}
.product-img { aspect-ratio: 1 / 1; overflow: hidden; }
.product-img img { object-fit: cover; }
.card-img { aspect-ratio: 1 / 1; }
.card-img img { object-fit: cover; }
.swatch span { display: block; flex: 0 0 auto; }
.swatch { position: relative; padding: 2px; }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }

/* Light swatches/dots: solid #595959 is 7.00:1 on white and >=3.69:1 on every light fill (WCAG 1.4.11). */
.dot.is-light { border-color: #595959; }
.swatch.is-light span { border-color: #595959; }
