/* PT Shop — product detail page.
   Same visual language as the rest of the ecosystem: navy type, fine borders,
   cyan/teal accents, large radii. The layout is a reading column plus a
   sticky purchase rail, because the catalogue has no product photography. */
.shop-product {
  margin-top: 26px;
}

.shop-product h1,
.shop-product h2 {
  color: var(--eco-navy);
}

.shop-product a:focus-visible,
.shop-product button:focus-visible,
.shop-product input:focus-visible {
  outline: 3px solid var(--eco-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.shop-eyebrow {
  margin: 0 0 10px;
  color: var(--eco-teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Breadcrumb --------------------------------------------------------------- */
.shop-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.shop-crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: #a8bfc4;
}

.shop-crumbs a {
  color: var(--eco-teal);
  font-weight: 650;
  text-decoration: none;
}

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

.shop-crumbs li[aria-current] {
  color: var(--eco-muted);
  /* Long product names must not push the rail off-screen. */
  max-width: 46ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Layout ------------------------------------------------------------------- */
.shop-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

.shop-product-head h1 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.14;
  letter-spacing: -.03em;
}

.shop-product-summary {
  max-width: 62ch;
  margin: 16px 0 0;
  color: #31545c;
  font-size: 16px;
  line-height: 1.72;
}

.shop-product-figure {
  margin: 26px 0 0;
  padding: 18px;
  border: 1px solid var(--eco-border);
  border-radius: var(--eco-radius);
  background: #fff;
  text-align: center;
}

.shop-product-figure img {
  max-width: 100%;
  max-height: 420px;
  height: auto;
  border-radius: 8px;
}

/* Specifications ----------------------------------------------------------- */
.shop-product-specs,
.shop-product-notes {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--eco-border);
}

.shop-product-specs h2,
.shop-product-notes h2,
.shop-related h2 {
  margin: 0 0 18px;
  font-size: 19px;
  letter-spacing: -.01em;
}

.shop-product-specs dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid var(--eco-border);
  border-radius: var(--eco-radius);
  background: var(--eco-border);
  overflow: hidden;
}

.shop-product-specs dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: #fff;
}

.shop-product-specs dt {
  color: var(--eco-muted);
  font-size: 13px;
}

.shop-product-specs dd {
  margin: 0;
  color: var(--eco-navy);
  font-size: 14px;
  font-weight: 650;
  text-align: right;
  word-break: break-word;
}

/* Buying notes ------------------------------------------------------------- */
.shop-product-notes ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-product-notes li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: var(--eco-muted);
  font-size: 14px;
  line-height: 1.65;
}

.shop-product-notes i {
  margin-top: 3px;
  color: var(--eco-teal);
}

.shop-product-notes a {
  color: var(--eco-teal);
  font-weight: 650;
}

/* Highlight strip ---------------------------------------------------------- */
.shop-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.shop-highlights li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 14px 15px;
  border: 1px solid #d8edee;
  border-radius: 14px;
  background: var(--eco-sky);
}

.shop-highlight-icon {
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff;
  color: var(--eco-teal);
  font-size: 15px;
}

.shop-highlight-value {
  display: block;
  color: var(--eco-navy);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
  word-break: break-word;
}

.shop-highlight-label {
  display: block;
  margin-top: 2px;
  color: var(--eco-muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Full specification sheet ------------------------------------------------- */
.shop-specsheet {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--eco-border);
}

.shop-specsheet > header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.shop-specsheet > header h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -.01em;
}

.shop-specsheet-kind {
  margin: 0;
  padding: 4px 11px;
  border: 1px solid var(--eco-border);
  border-radius: 999px;
  color: var(--eco-muted);
  font-size: 12px;
}

.shop-specgroup + .shop-specgroup {
  margin-top: 10px;
}

.shop-specgroup h3 {
  margin: 0 0 8px;
  color: var(--eco-teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.shop-specgroup dl {
  margin: 0;
  border: 1px solid var(--eco-border);
  border-radius: var(--eco-radius);
  overflow: hidden;
}

/* Label column fixed so every group's values line up down the whole sheet. */
.shop-specgroup dl > div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  padding: 11px 18px;
  background: #fff;
}

.shop-specgroup dl > div + div {
  border-top: 1px solid #eef4f5;
}

.shop-specgroup dt {
  color: var(--eco-muted);
  font-size: 13px;
  line-height: 1.5;
}

.shop-specgroup dd {
  margin: 0;
  color: #294a52;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
}

/* Purchase rail ------------------------------------------------------------ */
.shop-buy {
  position: sticky;
  top: 24px;
  padding: 26px;
  border: 1px solid #cfe5e6;
  border-radius: 20px;
  background: var(--eco-sky);
  box-shadow: 0 6px 22px rgba(8, 47, 58, .05);
}

.shop-buy-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}

.shop-buy-currency {
  /* Same reason as .shop-buy-links a — brand teal on the sky panel is 4.25:1,
     and 15px bold is not "large text" under WCAG, so it must clear 4.5:1. */
  color: #056068;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
}

.shop-buy-amount {
  color: var(--eco-navy);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.shop-buy-unit {
  margin: 5px 0 0;
  color: var(--eco-muted);
  font-size: 13px;
}

.shop-buy-incart {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  padding: 9px 13px;
  border-radius: 10px;
  background: #fff;
  color: #2b6a3f;
  font-size: 13px;
  font-weight: 650;
}

.shop-buy-form {
  margin-top: 20px;
}

.shop-buy-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--eco-navy);
  font-size: 13px;
  font-weight: 700;
}

.shop-buy-form input[type="number"] {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #c3dde0;
  border-radius: var(--eco-radius-sm);
  background: #fff;
  color: var(--eco-navy);
  font-size: 15px;
  font-weight: 650;
}

.shop-buy-add {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  border-radius: var(--eco-radius-sm);
  font-weight: 700;
}

.shop-buy-note {
  margin: 16px 0 0;
  color: var(--eco-muted);
  font-size: 13px;
  line-height: 1.6;
}

.shop-buy-links {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #c9e2e4;
}

.shop-buy-links a {
  display: flex;
  align-items: center;
  gap: 9px;
  /* Deliberately darker than --eco-teal: at 13px on the pale-cyan rail the
     brand teal measures 4.25:1, just under AA. This clears it. */
  color: #056068;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.shop-buy-links a:hover {
  text-decoration: underline;
}

.shop-buy-count {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--eco-teal);
  color: #fff;
  font-size: 11px;
}

/* Related ------------------------------------------------------------------ */
.shop-related {
  margin: 54px 0 40px;
  padding-top: 30px;
  border-top: 1px solid var(--eco-border);
}

.shop-related > header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.shop-related > header h2 {
  margin: 0;
}

.shop-related > header a {
  color: var(--eco-teal);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.shop-related > header i {
  margin-left: 5px;
}

.shop-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.shop-related-card {
  display: flex;
  min-height: 104px;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--eco-border);
  border-radius: var(--eco-radius);
  background: #fff;
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.shop-related-card:hover {
  border-color: #abd4d8;
  box-shadow: 0 10px 24px rgba(8, 47, 58, .07);
  transform: translateY(-2px);
}

.shop-related-name {
  color: var(--eco-navy);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.shop-related-price {
  color: var(--eco-teal);
  font-size: 14px;
  font-weight: 800;
}

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1000px) {
  .shop-product-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  /* The rail becomes a normal block once it is full width — sticky would
     otherwise pin a tall panel over the content on the way down. */
  .shop-buy {
    position: static;
    order: -1;
  }

  .shop-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .shop-product {
    margin-top: 16px;
  }

  .shop-product-specs dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .shop-specgroup dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .shop-specgroup dt {
    font-size: 12px;
    font-weight: 650;
  }

  .shop-buy {
    padding: 22px;
    border-radius: 16px;
  }

  .shop-crumbs li[aria-current] {
    max-width: 100%;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .shop-related-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-related-card {
    transition: none;
  }

  .shop-related-card:hover {
    transform: none;
  }
}
