/* ============================================================
   HL SUPPLY — Phase 6: catalog pages
   (products.html, category.html, product.html)
   Consistent with the homepage system; more functional,
   still hospitality — never generic ecommerce.
   ============================================================ */

/* ---------- page hero band ---------- */

.page-hero {
  background: var(--ivory, #f6f1e6);
  border-bottom: 1px solid rgba(216, 203, 174, 0.7);
  padding: clamp(64px, 8vw, 110px) 0 clamp(56px, 7vw, 90px);
}

.page-hero__copy .eyebrow { display: block; margin-bottom: 18px; }

.page-hero h1 {
  font-family: var(--serif, "Marcellus", serif);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.08;
  color: var(--navy, #1b2a41);
  margin-bottom: 20px;
}

.page-hero p {
  font-size: clamp(16px, 1.4vw, 18.5px);
  color: var(--navy-soft, #2c3e57);
  max-width: 56ch;
  margin-bottom: 34px;
}

/* landing hero: text only, buttons row */
.page-hero--landing .btn-row { margin-top: 4px; }

/* category hero: media + copy split */
.page-hero--category .page-hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

.page-hero__ph { aspect-ratio: 16 / 9.5; border: 1px solid rgba(216, 203, 174, 0.9); border-radius: 6px; overflow: hidden; box-shadow: 0 20px 44px -34px rgba(27, 42, 65, 0.35); }

@media (max-width: 860px) {
  .page-hero--category .page-hero__inner { grid-template-columns: 1fr; }
  .page-hero__media { order: -1; }
}

/* ---------- catalog sections ---------- */

.catalog-section { padding: clamp(64px, 8vw, 110px) 0; }

.catalog-section .section-head { margin-bottom: clamp(36px, 4.5vw, 60px); }

.catalog-section--tint { background: var(--ivory, #f6f1e6); border-top: 1px solid rgba(216, 203, 174, 0.6); border-bottom: 1px solid rgba(216, 203, 174, 0.6); }

/* ---------- category overview cards ---------- */

.ccard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(18px, 2.2vw, 28px);
}

.ccard { grid-column: span 3; display: flex; flex-direction: column; border: 1px solid rgba(216, 203, 174, 0.85); border-radius: 4px; overflow: hidden; background: var(--cream, #fcf9f2); transition: transform 0.42s cubic-bezier(0.22,0.61,0.36,1), border-color 0.42s, box-shadow 0.42s; }

.ccard:nth-child(n + 5) { grid-column: span 4; }

@media (max-width: 1000px) { .ccard, .ccard:nth-child(n + 5) { grid-column: span 6; } }
@media (max-width: 600px)  { .ccard, .ccard:nth-child(n + 5) { grid-column: span 12; } }

.ccard:hover {
  transform: translateY(-4px);
  border-color: rgba(154, 163, 168, 0.7);
  box-shadow: 0 18px 38px -26px rgba(27, 42, 65, 0.34);
}

.ccard:focus-visible { outline: 2px solid var(--pool-deep, #52869a); outline-offset: 3px; }

.ccard__media { aspect-ratio: 4 / 2.9; }

.ccard__media .ph__art { transition: transform 0.5s cubic-bezier(0.22,0.61,0.36,1); }

.ccard:hover .ccard__media .ph__art { transform: scale(1.03); }

.ccard__body { padding: 18px 20px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex: 1; }

.ccard__body h3 { font-family: var(--serif, "Marcellus", serif); font-weight: 400; font-size: 22px; color: var(--navy, #1b2a41); }

.ccard__body p { font-size: 14.5px; line-height: 1.6; color: var(--ink, #33383d); margin-bottom: 6px; }

.ccard__body .tlink { margin-top: auto; }

/* ---------- product grid + cards ---------- */

.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
  align-items: start;
}

.pcard {
  background: var(--cream, #fcf9f2);
  border: 1px solid rgba(216, 203, 174, 0.9);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pcard__media { aspect-ratio: 4 / 3; }

.pcard__media-link { display: block; }

.pcard__media .ph__art { transition: transform 0.5s cubic-bezier(0.22,0.61,0.36,1); }

.pcard__media-link:hover .ph__art { transform: scale(1.03); }

.pcard__media-link:focus-visible { outline: 2px solid var(--pool-deep, #52869a); outline-offset: -2px; }

.pcard__body { padding: 22px 22px 24px; display: flex; flex-direction: column; }

.pcard__cat {
  font-family: var(--sans, "Jost", sans-serif);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terracotta, #c47e5d);
  margin-bottom: 10px;
}

.pcard__body h3 {
  font-family: var(--serif, "Marcellus", serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--navy, #1b2a41);
  margin-bottom: 8px;
}

.pcard__desc { font-size: 14.5px; line-height: 1.65; color: var(--ink, #33383d); margin-bottom: 16px; }

/* meta rows */
.pcard__meta { margin: 0 0 18px; display: grid; gap: 8px; border-top: 1px solid rgba(216, 203, 174, 0.7); padding-top: 14px; }

.pcard__meta div { display: flex; gap: 12px; align-items: baseline; }

.pcard__meta dt {
  flex: 0 0 auto;
  font-family: var(--sans, "Jost", sans-serif);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--chrome, #9aa3a8);
  min-width: 110px;
}

.pcard__meta dd { margin: 0; font-size: 14px; color: var(--navy-soft, #2c3e57); }

/* ---------- pricing tiers ---------- */

.pt { margin-bottom: 16px; }

.pt__label {
  display: block;
  font-family: var(--sans, "Jost", sans-serif);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--green, #3f5c4f);
  margin-bottom: 10px;
}

.pt__rows { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }

.pt-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 8px 24px;
  background: #fffdf8;
  border: 1px solid rgba(216, 203, 174, 0.9);
  border-radius: 2px;
  font-family: var(--sans, "Jost", sans-serif);
  cursor: pointer;
  text-align: center;
  transition: background 0.3s, border-color 0.3s;
}

.pt-tier:hover { border-color: var(--chrome, #9aa3a8); }

.pt-tier:focus-visible { outline: 2px solid var(--pool-deep, #52869a); outline-offset: 2px; }

.pt-tier__qty { font-family: var(--serif, "Marcellus", serif); font-size: 15px; color: var(--navy, #1b2a41); }

.pt-tier__price { font-size: 11px; font-weight: 300; color: var(--navy-soft, #2c3e57); letter-spacing: 0.02em; }

.pt-tier__mark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pool-deep, #52869a);
}

.pt-tier.is-active {
  background: rgba(127, 179, 193, 0.16); /* soft pool wash */
  border-color: var(--pool-deep, #52869a);
}

.pt-tier.is-active .pt-tier__qty { color: var(--navy, #1b2a41); }

/* ---------- quantity + summary ---------- */

.pcard__qtyrow { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }

.pcard__qtyrow label {
  font-family: var(--sans, "Jost", sans-serif);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green, #3f5c4f);
}

.pcard__qty {
  width: 120px;
  font-family: var(--sans, "Jost", sans-serif);
  font-weight: 300;
  font-size: 15px;
  color: var(--navy, #1b2a41);
  background: #fffdf8;
  border: 1px solid rgba(216, 203, 174, 0.95);
  border-radius: 2px;
  padding: 10px 12px;
}

.pcard__qty:focus {
  outline: none;
  border-color: var(--green, #3f5c4f);
  box-shadow: 0 0 0 1px var(--green, #3f5c4f);
}

.pcard__summary { min-height: 24px; margin-bottom: 16px; }

.pcard__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-top: 1px solid rgba(216, 203, 174, 0.7);
  padding-top: 12px;
  font-family: var(--sans, "Jost", sans-serif);
}

.pcard__total span {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--chrome, #9aa3a8);
}

.pcard__total strong { font-weight: 400; font-size: 14.5px; color: var(--navy, #1b2a41); }

.pcard__moqwarn {
  font-size: 13.5px;
  color: var(--terracotta, #c47e5d);
  border-top: 1px solid rgba(216, 203, 174, 0.7);
  padding-top: 12px;
}

.pcard__ctas { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; }

.pcard__ctas .btn { padding: 13px 24px 12px; font-size: 11.5px; }

/* ---------- customization note strip ---------- */

.custom-note {
  border-top: 1px solid rgba(216, 203, 174, 0.8);
  border-bottom: 1px solid rgba(216, 203, 174, 0.8);
  padding: clamp(34px, 4.5vw, 54px) 0;
}

.custom-note p {
  font-family: var(--serif, "Marcellus", serif);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.5;
  color: var(--navy, #1b2a41);
  max-width: 34ch;
}

.custom-note small {
  display: block;
  margin-top: 12px;
  font-family: var(--sans, "Jost", sans-serif);
  font-size: 13.5px;
  color: var(--navy-soft, #2c3e57);
}

/* ---------- product detail ---------- */

.pd { padding: clamp(48px, 6vw, 84px) 0 clamp(72px, 9vw, 120px); }

.pd__crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans, "Jost", sans-serif);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--chrome, #9aa3a8);
  margin-bottom: clamp(28px, 3.5vw, 44px);
  flex-wrap: wrap;
}

.pd__crumbs a { color: var(--navy-soft, #2c3e57); border-bottom: 1px solid transparent; }
.pd__crumbs a:hover { color: var(--terracotta, #c47e5d); border-bottom-color: var(--terracotta, #c47e5d); }
.pd__crumbs [aria-current] { color: var(--navy, #1b2a41); }

.pd__grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

@media (max-width: 900px) {
  .pd__grid { grid-template-columns: 1fr; }
}

.pd__ph {
  aspect-ratio: 4 / 4.4;
  border: 1px solid rgba(216, 203, 174, 0.9);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 50px -36px rgba(27, 42, 65, 0.35);
  position: sticky;
  top: 100px;
}

@media (max-width: 900px) { .pd__ph { position: static; aspect-ratio: 4 / 3; } }

.pd__info h1 {
  font-family: var(--serif, "Marcellus", serif);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 42px);
  color: var(--navy, #1b2a41);
  margin-bottom: 14px;
}

.pd__desc { font-size: 16px; line-height: 1.7; color: var(--ink, #33383d); margin-bottom: 20px; max-width: 52ch; }

.pd__meta { margin-bottom: 22px; }

.pd__notes { margin: 4px 0 20px; display: grid; gap: 8px; }

.pd__notes label {
  font-family: var(--sans, "Jost", sans-serif);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green, #3f5c4f);
}

.pd__notes textarea {
  font-family: var(--sans, "Jost", sans-serif);
  font-weight: 300;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--navy, #1b2a41);
  background: #fffdf8;
  border: 1px solid rgba(216, 203, 174, 0.95);
  border-radius: 2px;
  padding: 12px 14px;
  resize: vertical;
}

.pd__notes textarea:focus {
  outline: none;
  border-color: var(--green, #3f5c4f);
  box-shadow: 0 0 0 1px var(--green, #3f5c4f);
}

.pd__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }

.pd__logonote {
  font-family: var(--sans, "Jost", sans-serif);
  font-size: 13px;
  color: var(--chrome, #9aa3a8);
}

/* ---------- quote count chip ---------- */

.quote-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  margin-left: 8px;
  border-radius: 999px;
  background: var(--green, #3f5c4f);
  color: var(--cream, #fcf9f2);
  font-family: var(--sans, "Jost", sans-serif);
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* ---------- toast ---------- */

.hl-toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 16px);
  z-index: 120;
  background: var(--ivory, #f6f1e6);
  color: var(--navy, #1b2a41);
  border: 1px solid rgba(154, 163, 168, 0.6);
  box-shadow: 0 16px 36px -22px rgba(27, 42, 65, 0.4);
  padding: 14px 24px;
  font-family: var(--sans, "Jost", sans-serif);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  max-width: min(420px, calc(100vw - 40px));
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.22,0.61,0.36,1), transform 0.4s cubic-bezier(0.22,0.61,0.36,1), visibility 0.4s;
}

.hl-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ---------- mobile ---------- */

@media (max-width: 640px) {
  .pt__rows { grid-template-columns: repeat(2, 1fr); }
  .pcard__ctas { flex-direction: column; align-items: stretch; }
  .pcard__ctas .tlink { align-self: center; }
  .pcard__qty { width: 100%; }
  .pcard__qtyrow { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pd__ctas .btn { width: 100%; text-align: center; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .ccard, .ccard__media .ph__art, .pcard__media .ph__art, .pt-tier, .hl-toast {
    transition-duration: 0.01ms !important;
  }
  .ccard:hover { transform: none; }
}

/* ---------- landing note (fix phase) ---------- */
.catalog-note {
  margin-top: clamp(24px, 3vw, 36px);
  font-family: var(--sans, "Jost", sans-serif);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--chrome, #9aa3a8);
}

/* ============================================================
   Phase 6B: product detail additions
   ============================================================ */

/* gallery thumbnails under the main image */
.pd__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.pd__thumb {
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(216, 203, 174, 0.9);
  border-radius: 4px;
  overflow: hidden;
}

.pd__thumb .ph__cap {
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  font-size: 8.5px;
  padding: 5px 8px;
  letter-spacing: 0.08em;
}

@media (min-width: 901px) {
  .pd__media { position: sticky; top: 100px; }
  .pd__ph { position: static; }
}

/* pricing note under tiers */
.pd__pricenote {
  font-family: var(--sans, "Jost", sans-serif);
  font-size: 12.5px;
  color: var(--chrome, #9aa3a8);
  margin: -6px 0 16px;
}

/* specifications */
.pd__specs {
  border-top: 1px solid rgba(216, 203, 174, 0.8);
  padding-top: 20px;
  margin: 6px 0 20px;
}

.pd__specs h2 {
  font-family: var(--sans, "Jost", sans-serif);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--green, #3f5c4f);
  margin-bottom: 14px;
}

.pd__specs dl { margin: 0; display: grid; gap: 8px; }

.pd__specs div { display: flex; gap: 12px; align-items: baseline; }

.pd__specs dt {
  flex: 0 0 auto;
  min-width: 110px;
  font-family: var(--sans, "Jost", sans-serif);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--chrome, #9aa3a8);
}

.pd__specs dd { margin: 0; font-size: 14px; color: var(--navy-soft, #2c3e57); }

/* related products */
.pd__related {
  margin-top: clamp(56px, 7vw, 90px);
  border-top: 1px solid rgba(216, 203, 174, 0.8);
  padding-top: clamp(36px, 4.5vw, 56px);
}

.pd__related h2 {
  font-family: var(--serif, "Marcellus", serif);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 32px);
  color: var(--navy, #1b2a41);
  margin-bottom: clamp(24px, 3vw, 36px);
}

.rel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

@media (max-width: 760px) { .rel-grid { grid-template-columns: 1fr; } }

.rel-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(216, 203, 174, 0.85);
  border-radius: 4px;
  overflow: hidden;
  background: var(--cream, #fcf9f2);
  transition: transform 0.42s cubic-bezier(0.22,0.61,0.36,1), border-color 0.42s, box-shadow 0.42s;
}

.rel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(154, 163, 168, 0.7);
  box-shadow: 0 18px 38px -26px rgba(27, 42, 65, 0.32);
}

.rel-card:focus-visible { outline: 2px solid var(--pool-deep, #52869a); outline-offset: 3px; }

.rel-card__media { aspect-ratio: 4 / 3; }

.rel-card__media .ph__art { transition: transform 0.5s cubic-bezier(0.22,0.61,0.36,1); }

.rel-card:hover .rel-card__media .ph__art { transform: scale(1.03); }

.rel-card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.rel-card__body h4 {
  font-family: var(--serif, "Marcellus", serif);
  font-weight: 400;
  font-size: 18px;
  color: var(--navy, #1b2a41);
}

@media (prefers-reduced-motion: reduce) {
  .rel-card, .rel-card__media .ph__art { transition-duration: 0.01ms !important; }
  .rel-card:hover { transform: none; }
}

/* ---------- not-found states (routing fix) ---------- */
.nf { text-align: left; }
.nf__title {
  font-family: var(--serif, "Marcellus", serif);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 44px);
  color: var(--navy, #1b2a41);
  margin-bottom: 14px;
}
.nf__copy {
  font-size: 16px;
  color: var(--navy-soft, #2c3e57);
  margin-bottom: 28px;
  max-width: 46ch;
}

/* ---------- category cards: pricing lives on the product page ---------- */
.pcard__pricing-note {
  font-family: var(--sans, "Jost", sans-serif);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--chrome, #9aa3a8);
  border-top: 1px solid rgba(216, 203, 174, 0.7);
  padding-top: 12px;
  margin-bottom: 18px;
}

/* category cards: single View Details CTA */
.pcard__ctas--single { justify-content: flex-start; }

/* ---------- catalog imagery additions ---------- */

.page-hero__tagline {
  font-family: var(--serif, "Marcellus", serif);
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta, #c47e5d);
  margin: -8px 0 16px;
}

.pd__thumb.ph--photo .ph__img { padding: 12%; }

.pd__ph.ph--photo .ph__img { padding: 7%; }
