/* ===========================================================
   Barbers & Gents product landing pages (/product/<slug>/)
   Loads after /styles.css. Only adds what the homepage lacks:
   a single-product sheet with price and stock, the order notes
   band, and the lineup links. Palette, type and nav are inherited.
   =========================================================== */

.product-page .topbar-right a { color: var(--ivory-dim); }
.product-page .topbar-right a:hover { color: var(--copper-hi); }

/* ----------  Product sheet (bone, like the homepage products section)  ---------- */
.product-hero { padding: 44px 0 80px; }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 0 0 26px; padding: 0; list-style: none;
  color: #756957;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
}
.breadcrumb a { color: var(--copper-dim); }
.breadcrumb a:hover { color: var(--copper); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: rgba(122,82,50,0.45); }
.breadcrumb [aria-current] { color: var(--ink); }

.product-single { grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr); }
.product-single .product-media { min-height: 560px; background: #fff; }
.product-single .product-media img {
  object-fit: contain;
  object-position: center;
  padding: 28px;
  outline: 0;
}
/* Scene photo (product shot with a background): fill the box, no white frame */
.product-single .product-media.is-scene { background: #1a120c; }
.product-single .product-media.is-scene img { object-fit: cover; padding: 0; }
.product-single .product-copy h1 {
  margin: 0;
  color: var(--ink);
  font-family: 'Cinzel', serif;
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.08;
  text-transform: uppercase;
}

.buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.price { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.price .amount {
  color: var(--ink);
  font-family: 'Cinzel', serif;
  font-size: 34px; font-weight: 600; line-height: 1; letter-spacing: 0.02em;
}
.price .stock {
  color: #4f4638;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
}
.price .stock::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px;
  border-radius: 50%; background: #2f7d4f; vertical-align: 1px;
}
.product-single .product-link { min-height: 52px; padding: 14px 30px; }
.buy-note {
  max-width: 520px; margin: 20px 0 0;
  color: #625847;
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px; line-height: 1.5;
}

/* Crest label tile: stands in until the shop supplies a product photo */
.label-tile {
  display: grid; place-items: center; align-content: center; gap: 14px;
  width: 100%; height: 100%; min-height: 420px; padding: 40px;
  background: #fffaf0; text-align: center;
}
.label-tile img {
  width: 148px; height: 148px; opacity: 0.92;
  border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 8px rgba(192,138,94,0.08);
}
.label-tile .label-rule { width: 56px; height: 1px; background: var(--rule); }
.label-tile .label-name {
  margin: 0; color: var(--ink);
  font-family: 'Cinzel', serif; font-size: 15px; letter-spacing: 0.2em; text-transform: uppercase;
}

/* ----------  Order notes (ink band)  ---------- */
.order-notes {
  padding: 76px 0;
  background: var(--ink);
  border-bottom: 1px solid rgba(192,138,94,0.18);
}
.order-notes .section-eyebrow { justify-content: center; }
.order-notes h2 { text-align: center; }
.notes-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 36px;
  border-top: 1px solid var(--rule);
}
.notes-grid > div { padding: 28px 28px 0 0; }
.notes-grid > div + div { padding-left: 28px; border-left: 1px solid var(--rule); }
.notes-grid .step {
  display: block; margin-bottom: 10px;
  color: var(--copper);
  font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: 0.3em;
}
.notes-grid h3 {
  margin: 0 0 8px; color: var(--bone);
  font-family: 'Cinzel', serif; font-size: 15px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.notes-grid p {
  margin: 0; color: var(--ivory-dim);
  font-family: 'Cormorant Garamond', serif; font-size: 19px; line-height: 1.5;
}
.notes-grid a { color: var(--copper); white-space: nowrap; }
.notes-grid a:hover { color: var(--copper-hi); }
.notes-foot {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--ivory-dim);
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; line-height: 1.5;
  text-align: center;
}
.notes-foot a { color: var(--copper); text-decoration: underline; text-underline-offset: 3px; }
.notes-foot a:hover { color: var(--copper-hi); }

/* ----------  Lineup links  ---------- */
.lineup { padding: 64px 0 84px; background: #0d0c0b; }
.lineup .section-eyebrow { justify-content: center; }
.lineup h2 { text-align: center; }
.lineup-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  margin-top: 30px;
}
.lineup-grid a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 78px; padding: 16px 18px;
  border: 1px solid rgba(192,138,94,0.25);
  background: rgba(246,239,220,0.035);
  color: var(--bone);
  transition: border-color .18s ease, background-color .18s ease;
}
.lineup-grid a:hover { border-color: var(--copper); background: rgba(246,239,220,0.07); color: var(--bone); }
.lineup-grid small {
  display: block; margin-bottom: 4px;
  color: var(--copper-hi);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700;
}
.lineup-grid strong {
  font-family: 'Cinzel', serif; font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.lineup-grid svg {
  width: 20px; height: 20px; flex: 0 0 auto;
  fill: none; stroke: var(--copper); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* ----------  Tablet and phone  ---------- */
@media (max-width: 820px) {
  .product-hero { padding: 30px 0 60px; }
  .product-single { grid-template-columns: 1fr; }
  .product-single .product-media {
    height: auto; min-height: 0; max-height: 520px;
    aspect-ratio: 1 / 1;
  }
  .product-single .product-media img { padding: 20px; }
  .label-tile { min-height: 0; }
  .order-notes { padding: 60px 0; }
  .notes-grid { grid-template-columns: 1fr; border-top: 0; }
  .notes-grid > div { padding: 22px 0; border-top: 1px solid var(--rule); }
  .notes-grid > div + div { padding-left: 0; border-left: 0; }
  .lineup { padding: 56px 0 70px; }
  .lineup-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  /* Phone order: kicker, name, price + Buy now, then the description and facts.
     Keeps the action inside the first 390x844 screen. */
  .product-single .product-copy { padding: 26px 20px 30px; }
  .product-single .product-copy h1 { font-size: clamp(28px, 8.4vw, 34px); }
  .product-single .product-description { order: 3; margin: 22px 0 18px; }
  .product-single .product-facts { order: 4; margin-bottom: 0; }
  .product-single .buy-note { order: 5; margin-top: 18px; }
  .buy-row { order: 2; flex-direction: column; align-items: stretch; gap: 14px; margin-top: 16px; }
  .price { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; }
  .price .amount { font-size: 30px; }
  .price .stock { text-align: right; }
  .product-single .product-link { width: 100%; }
}
