/* ---------- Product page — standalone styles ---------- */

/* ---- Breadcrumb ---- */
.breadcrumb {
  margin: 1.5rem 0 1rem;
}
.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .15rem .1rem;
  align-items: center;
  font-size: .85rem;
}
.bc-item a {
  color: var(--brand);
  text-decoration: none;
}
.bc-item a:hover {
  text-decoration: underline;
}
.bc-current span {
  color: var(--ink-soft);
}
.bc-sep {
  margin: 0 .35rem;
  color: var(--muted);
  font-size: .75rem;
}

/* ---- Page container ---- */
.product-page-container {
  padding-top: 0;
  padding-bottom: 4rem;
}

/* ---- Two-column layout ---- */
.product-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 480px) 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 860px) {
  .product-page-layout {
    grid-template-columns: 1fr;
  }
}

/* ---- Product image ---- */
.product-page-image {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  position: sticky;
  top: calc(var(--sticky-toolbar-top) + 1rem);
}
.product-page-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

@media (max-width: 860px) {
  .product-page-image {
    position: static;
    max-width: 560px;
    margin: 0 auto;
  }
}

/* ---- Body content ---- */
.product-page-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.product-page-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--brand-dark);
  margin: 0;
  text-transform: capitalize;
}

.product-page-desc {
  color: var(--ink-soft);
  line-height: 1.7;
}
.product-page-desc p {
  margin: 0 0 .75em;
}
.product-page-desc p:last-child {
  margin-bottom: 0;
}

/* ---- Details table ---- */
.product-details-table {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.product-details-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.product-details-table th,
.product-details-table td {
  padding: .6rem .9rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.product-details-table tr:last-child th,
.product-details-table tr:last-child td {
  border-bottom: none;
}
.product-details-table th {
  background: var(--surface-alt);
  color: var(--ink-soft);
  font-weight: 600;
  width: 38%;
}

/* ---- CTA block ---- */
.product-page-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  padding: 1.25rem;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.product-page-cta p {
  margin: 0;
  flex: 1 1 100%;
  font-size: .95rem;
  color: var(--ink-soft);
}

/* ---- Back-to-top (reuse from main site) ---- */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 40;
}

/* ---- Site footer (reuse) ---- */
.site-footer {
  background: #1f1714;
  color: rgba(255,255,255,.75);
  padding: 2.5rem 0;
  font-size: .9rem;
}
.footer-inner {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-brand {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  color: #fff;
  margin: 0 0 .4rem;
  font-weight: 700;
}
.footer-inner p { margin: .25rem 0; }
.footer-inner a { color: var(--accent-soft); }
.footer-inner a:hover { color: #fff; text-decoration: underline; }
.footer-meta { text-align: right; }
.footer-meta .muted { font-size: .8rem; opacity: .6; }

@media (max-width: 640px) {
  .footer-meta { text-align: left; }
}
