/* Tint Bio — commerce and imagery layer. Extends tint.css. */

/* ---------- Full bleed image hero ---------- */

.hero-img {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  background: var(--navy);
  overflow: hidden;
}
.hero-img > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .58;
}
.hero-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,31,63,.62) 0%, rgba(0,31,63,.3) 38%, rgba(0,31,63,.94) 100%);
}
.hero-img .wrap { position: relative; z-index: 2; padding-top: var(--s9); padding-bottom: var(--s7); width: 100%; }
.hero-img, .hero-img .t-display, .hero-img .t-cover { color: var(--paper); }
.hero-img .lede { color: rgba(255,255,255,.84); }
.hero-img .eyebrow { color: #7FC0FF; }
.hero-img .rule-hair { background: rgba(255,255,255,.24); }

/* ---------- Media ---------- */

figure { margin: 0; }
.media { position: relative; overflow: hidden; background: var(--cloud); }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media.r-1x1 { aspect-ratio: 1 / 1; }
.media.r-4x5 { aspect-ratio: 4 / 5; }
.media.r-3x2 { aspect-ratio: 3 / 2; }
.media.r-3x4 { aspect-ratio: 3 / 4; }
.media.r-16x9 { aspect-ratio: 16 / 9; }
figcaption { font-size: 12px; color: var(--graphite); margin-top: var(--s3); line-height: 1.45; }
.bg-navy figcaption { color: rgba(255,255,255,.55); }

/* ---------- Status badge. Square, hairline, no pills ---------- */

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 500;
  padding: 5px 9px; border: 1px solid currentColor; border-radius: 0;
  line-height: 1;
}
.badge .dot { width: 5px; height: 5px; background: currentColor; flex: none; }

/* ---------- Line cards ---------- */

.line-card {
  display: block; color: inherit; text-decoration: none;
  border: 1px solid var(--rule); background: var(--paper);
  transition: border-color .18s ease; height: 100%;
}
.line-card:hover { text-decoration: none; border-color: var(--navy); }
.line-card .accent { height: 5px; }
.line-card .media { aspect-ratio: 3 / 2; }
.line-card .media img { transition: transform .5s ease; }
.line-card:hover .media img { transform: scale(1.03); }
.line-card .body { padding: var(--s5) var(--s5) var(--s6); }
.line-card .count {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--graphite);
}

/* ---------- Product cards ---------- */

.p-card {
  display: flex; flex-direction: column; height: 100%;
  border: 1px solid var(--rule); background: var(--paper);
  color: inherit; text-decoration: none;
  transition: border-color .18s ease;
}
.p-card:hover { text-decoration: none; border-color: var(--navy); }
.p-card .media { aspect-ratio: 4 / 5; }
.p-card .media img { transition: transform .5s ease; }
.p-card:hover .media img { transform: scale(1.03); }
.p-card .body { padding: var(--s5); display: flex; flex-direction: column; flex: 1; }
.p-card .nm { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; margin: 0; }
.p-card .vr { font-size: 13px; color: var(--graphite); margin: 2px 0 0; }
.p-card .sm { font-size: 14px; color: var(--navy); margin: var(--s4) 0 0; line-height: 1.5; }
.p-card .foot {
  margin-top: auto; padding-top: var(--s5);
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3);
}
.p-card .pr { font-weight: 700; font-size: 16px; }
.p-card .pr small { font-weight: 500; color: var(--graphite); font-size: 12px; }

/* ---------- Buy box ---------- */

.buybox { border: 1px solid var(--navy); padding: var(--s6); background: var(--paper); }
.buybox .price { font-weight: 800; font-size: 40px; letter-spacing: -0.03em; line-height: 1; }
.buybox .price small { font-size: 14px; font-weight: 500; color: var(--graphite); letter-spacing: 0; }

.qty-row { display: flex; align-items: center; gap: var(--s4); margin-top: var(--s5); }
.qty-row label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--graphite);
}
.qty-row input {
  width: 90px; padding: 10px var(--s3); border: 1px solid var(--graphite-soft);
  border-radius: 2px; font-family: var(--sans); font-size: 15px; color: var(--navy);
}
.buybox .btn { width: 100%; justify-content: center; margin-top: var(--s5); }
.buybox .terms { font-size: 12px; color: var(--graphite); margin-top: var(--s4); line-height: 1.5; }

/* ---------- Gallery ---------- */

.gallery { display: grid; grid-template-columns: 76px 1fr; gap: var(--s4); }
.thumbs { display: flex; flex-direction: column; gap: var(--s3); }
.thumbs button {
  padding: 0; border: 1px solid var(--rule); background: none; cursor: pointer;
  aspect-ratio: 1/1; overflow: hidden; transition: border-color .15s ease;
}
.thumbs button[aria-pressed="true"] { border-color: var(--navy); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Breadcrumb ---------- */

.crumb {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--graphite);
  display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap;
  padding-top: var(--s5);
}
.crumb a { color: var(--graphite); }
.crumb a:hover { color: var(--blue); }
.crumb .sep { color: var(--graphite-soft); }

/* ---------- Nav dropdown ---------- */

.has-menu { position: relative; }
.menu {
  position: absolute; top: calc(100% + 16px); left: 50%;
  background: var(--paper); border: 1px solid var(--rule);
  min-width: 320px; padding: var(--s2);
  opacity: 0; visibility: hidden;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.has-menu:hover .menu, .has-menu:focus-within .menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.menu a { display: flex; align-items: center; gap: var(--s3); padding: 11px var(--s3); font-size: 14px; color: var(--navy); font-weight: 500; }
.menu a:hover { background: var(--cloud); text-decoration: none; }
.menu a .sw { width: 4px; height: 24px; flex: none; }
.menu a .ms { display: block; font-size: 12px; color: var(--graphite); font-weight: 400; margin-top: 1px; }

/* ---------- Order table ---------- */

.order { width: 100%; border-collapse: collapse; font-size: 15px; }
.order th, .order td { padding: var(--s4) 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.order td.r, .order th.r { text-align: right; }
.order thead th {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--graphite); font-weight: 500; border-bottom: 1px solid var(--navy);
}
.order tfoot td { border-bottom: none; padding-top: var(--s5); font-weight: 700; font-size: 19px; }
.order .sub { font-size: 13px; color: var(--graphite); font-weight: 400; display: block; margin-top: 2px; }

.empty { border: 1px dashed var(--graphite-soft); padding: var(--s8); text-align: center; color: var(--graphite); }

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .hero-img { min-height: 66vh; }
  .tiers { grid-template-columns: 1fr; }
  .tier { border-right: 1px solid var(--rule); border-bottom: none; }
  .tier:last-child { border-bottom: 1px solid var(--rule); }
  .menu { position: static; transform: none; opacity: 1; visibility: visible; min-width: 0; border: none; padding: 0; }
  .gallery { grid-template-columns: 1fr; }
  /* Seven views do not fit across a phone, so the strip scrolls sideways
     inside itself rather than pushing the page. */
  .thumbs {
    flex-direction: row; overflow-x: auto; overscroll-behavior-x: contain;
    padding-bottom: 4px; scrollbar-width: thin;
  }
  .thumbs button { flex: 0 0 auto; width: 64px; }
}

/* ---------- Volume price table, five bands ---------- */

.tier-list { margin-top: var(--s5); border-top: 1px solid var(--navy); }
.tier-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: var(--s3);
  width: 100%;
  padding: 11px 0;
  border: none;
  border-bottom: 1px solid var(--rule);
  background: none;
  font-family: var(--sans);
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  transition: background .15s ease;
}
.tier-row:hover { background: var(--cloud); }
.tier-row[aria-pressed="true"] { background: var(--cloud); }
.tier-row[aria-pressed="true"] .tr-band { font-weight: 700; }
.tier-row[aria-pressed="true"] .tr-price { color: var(--blue); }
.tr-band { font-size: 14px; font-weight: 500; }
.tr-note {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--graphite);
}
.tr-price {
  font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums;
  min-width: 62px; text-align: right;
}

@media (max-width: 480px) {
  .tier-row { grid-template-columns: 1fr auto; }
  .tr-note { display: none; }
}

/* Application caption over the gallery image. Navy scrim from the bottom,
   mono label, a bar in the line colour. The photograph stays clean and the
   brand sits on top of it in CSS, so the text is crisp and editable. */
.pdp-fig { position: relative; margin: 0; }
/* The application is named and explained above the photograph, so the reader
   knows what they are looking at before they look at it. */
.pdp-cap {
  display: grid; gap: 7px; margin: 0 0 var(--s4); max-width: min(56ch, 100%);
}
.pdp-cap[hidden] { display: none; }
.pdp-cap b {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(16px, 1.4vw, 19px); letter-spacing: -0.02em; line-height: 1.25;
  color: var(--navy);
}
.pdp-cap #main-cap-d { font-size: 14px; line-height: 1.5; color: var(--graphite); }
.pdp-bar { width: 26px; height: 3px; background: var(--c, var(--blue)); }

/* Downloadable documents in the doc list. */
.doclist a.dl { display: inline-flex; align-items: center; gap: var(--s2); color: var(--navy); }
.doclist a.dl:hover { color: var(--blue); text-decoration: none; }
.dl-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; padding: 1px 5px; border: 1px solid currentColor; }

/* The single sample card is information, not a choice. */
.sample-opt.static { cursor: default; }
#form-status.error { color: var(--alert); }
