/* REEF 3D - product detail page
 *
 * The product pages reuse the shared inline styles from index.html, so this
 * file only styles the parts that exist on a product page and nowhere else.
 */

.pd-main-wrap {
  padding: 28px 20px 60px;
  min-height: 60vh;
}

.pd-wrap {
  max-width: 1080px;
  margin: 0 auto;
}

/* ---------- breadcrumbs ---------- */

/* The breadcrumb is a <nav>, and the site's global "nav" rule styles the
   top bar: dark background, 64px tall, sticky, padded. Without this
   reset the breadcrumb inherited all of that and rendered as a second
   dark bar with the links laid out by "space-between", so "Home" sat
   hard against the left edge and the current page hard against the
   right. The reset puts it back to an ordinary inline breadcrumb on
   the page background. */
.pd-crumbs {
  background: none;
  padding: 0;
  height: auto;
  position: static;
  top: auto;
  z-index: auto;
  box-shadow: none;

  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  justify-content: flex-start;
}

/* Links are the ocean blue on the sand background: 8.4:1, so they clear
   AA for normal text. */
.pd-crumbs a {
  color: var(--ocean);
  text-decoration: none;
  font-weight: 500;
}

.pd-crumbs a:hover {
  text-decoration: underline;
}

.pd-crumbs a:focus-visible {
  outline: 2px solid var(--ocean);
  outline-offset: 2px;
  border-radius: 2px;
}

/* The slash between the crumbs. Held darker than the muted body text
   so it stays legible without competing with the links. */
.pd-crumbs span:not([aria-current]) {
  color: var(--text);
  opacity: 0.75;
}

/* The current page. */
.pd-crumbs span[aria-current] {
  color: var(--text);
  font-weight: 600;
}

/* ---------- two column layout ---------- */

.pd-main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

@media (max-width: 820px) {
  .pd-main {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

/* ---------- gallery ---------- */

.pd-gallery {
  position: sticky;
  top: 84px;
}

@media (max-width: 820px) {
  .pd-gallery {
    position: static;
  }
}

.pd-hero {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: var(--sand);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.pd-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.pd-hero-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(7, 30, 46, 0.82);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
}

.pd-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.pd-thumb {
  border: 2px solid transparent;
  background: var(--sand);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  width: 76px;
  height: 76px;
}

.pd-thumb.is-active {
  border-color: var(--teal);
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- info column ---------- */

.pd-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  font-weight: 700;
  color: var(--deep);
  line-height: 1.2;
  margin: 6px 0 14px;
}

.pd-info .product-badge {
  display: inline-block;
  background: rgba(14, 165, 160, 0.12);
  color: var(--ocean);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin: 0 6px 6px 0;
}

.pd-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 16px 0 20px;
  flex-wrap: wrap;
}

.pd-price b {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--coral);
}

.pd-price span {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ---------- flexible product options ---------- */

/* The size and colour pickers on a product whose listed version can
   be bought now, but whose other sizes are priced on request. The
   price line above stays put and shows what the listed size costs. */
.pd-options {
  border: 1px solid rgba(7, 30, 46, 0.1);
  border-radius: 12px;
  padding: 16px 18px;
  margin: -8px 0 22px;
  background: rgba(255, 255, 255, 0.6);
}

.pd-option-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.pd-option { flex: 1 1 200px; }

.pd-option label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 6px;
}

.pd-option select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(7, 30, 46, 0.18);
  border-radius: 9px;
  background: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
}

.pd-option select:focus {
  outline: 2px solid var(--ocean);
  outline-offset: 1px;
}

.pd-option-fixed {
  padding: 10px 12px;
  border: 1px dashed rgba(7, 30, 46, 0.2);
  border-radius: 9px;
  font-size: 0.9rem;
  color: var(--text);
}

/* The second price line, shown when the selection is not the listed
   version and the price has to be quoted. */
.pd-flex-price {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.pd-flex-price b {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ocean);
}
.pd-flex-price span {
  font-size: 0.82rem;
  color: var(--text-light);
}

.pd-option-note {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
}

.pd-buy [hidden] { display: none; }

/* The note under a flexible card on the catalogue page. */
.product-flex-note {
  font-size: 0.78rem;
  color: var(--text-light);
  margin: -2px 0 10px;
}

/* The banner on the catalogue page that says the quote form has been
   filled in for them. */
#quote-prefill-note {
  background: rgba(14, 165, 160, 0.12);
  border-left: 3px solid var(--ocean);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 14px;
}

/* ---------- spec rows ---------- */

.pd-rows {
  border-top: 1px solid rgba(7, 30, 46, 0.1);
  border-bottom: 1px solid rgba(7, 30, 46, 0.1);
  padding: 6px 0;
  margin-bottom: 22px;
}

.pd-row {
  display: flex;
  gap: 14px;
  padding: 7px 0;
  font-size: 0.9rem;
  align-items: baseline;
}

.pd-row-key {
  color: var(--text-light);
  flex: 0 0 108px;
  font-weight: 600;
}

.pd-row-val {
  color: var(--text);
  flex: 1 1 auto;
}

/* The asterisk footnote under the spec rows. It scopes the 3-5 day
   turnaround to existing, unchanged designs, and says the turnaround
   runs to dispatch rather than delivery.

   The long version sits behind a "Full terms" disclosure so the page
   is not cluttered. The one-line lead carries the two facts that
   matter most on its own: the turnaround ends at dispatch, and the
   delivery date is confirmed on acceptance. */
.pd-footnote {
  font-size: 0.82rem;
  color: var(--text-light);
  margin: -10px 0 20px;
  line-height: 1.5;
  max-width: 520px;
}
.pd-footnote-lead { display: block; }

.pd-footnote-more { margin-top: 0.3rem; }
.pd-footnote-more > summary {
  display: inline-block;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ocean);
  text-decoration: underline;
  text-underline-offset: 2px;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.pd-footnote-more > summary::-webkit-details-marker { display: none; }
.pd-footnote-more > summary::before { content: '\203A\00a0'; }
.pd-footnote-more[open] > summary::before { content: '\2304\00a0'; }
.pd-footnote-more > summary:hover { color: var(--deep); }
.pd-footnote-more > p {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  line-height: 1.55;
  text-align: left;
  background: rgba(14, 165, 160, 0.06);
  border-left: 2px solid rgba(14, 165, 160, 0.35);
  border-radius: 0 8px 8px 0;
  padding: 0.6rem 0.75rem;
}

/* ---------- buy box ---------- */

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

.pd-buy .btn-add-cart {
  font-size: 1rem;
  padding: 13px 26px;
}

.pd-quote {
  border-color: var(--ocean);
  color: var(--ocean);
}

/* ---------- description ---------- */

.pd-desc {
  margin-top: 22px;
}

.pd-desc p {
  color: var(--text);
  line-height: 1.68;
  margin-bottom: 13px;
  font-size: 0.96rem;
}

/* ---------- ordering note ---------- */

.pd-note {
  margin-top: 46px;
  background: var(--sand);
  border-radius: 14px;
  padding: 26px 28px;
}

.pd-note h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  color: var(--deep);
  margin-bottom: 10px;
}

.pd-note p {
  color: var(--text);
  line-height: 1.65;
  font-size: 0.94rem;
  margin-bottom: 12px;
}

.pd-note ul {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}

.pd-note li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 7px;
}

.pd-contact {
  margin-bottom: 0;
}

.pd-contact a {
  color: var(--ocean);
  font-weight: 600;
}
