/* =========================================
   PRICE LIST PAGES (/price, /price/<kind>)
   Built by functions/_shared/price-page.js
========================================= */

.price-container {
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
  padding: calc(70px + var(--gap-section-sm)) 20px var(--gap-section);
  box-sizing: border-box;
  color: var(--text-color);
  font-family: var(--font-primary);
  display: grid;
  gap: 18px;
}

.price-crumbs {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.price-crumbs a {
  color: inherit;
}

.price-container h1 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  text-wrap: balance;
}

.price-container h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 18px 0 0;
}

.price-lead {
  margin: 0;
  line-height: 1.6;
}

.price-updated {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.price-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: 8px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.price-table th,
.price-table td {
  text-align: left;
  vertical-align: middle;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
}

.price-table tr:last-child td {
  border-bottom: 0;
}

.price-table th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.price-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-color);
  text-decoration: none;
  min-width: 0;
}

.price-item img {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  flex: none;
  background: var(--border-light);
}

.price-item-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.price-item-name {
  color: var(--text-color);
  font-weight: 600;
  text-decoration: none;
}

.price-item-name:hover {
  text-decoration: underline;
}

.price-colours {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 0.78rem;
}

.price-colours a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.price-colours a:hover {
  color: var(--text-color);
}

.price-colours a.is-sold-out {
  text-decoration: line-through;
}

.price-size-guide {
  display: grid;
  gap: 8px;
}

.price-size-guide h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 8px 0 0;
}

.size-table td,
.size-table th {
  text-align: center;
}

.size-table td:first-child,
.size-table th:first-child {
  text-align: left;
  font-weight: 600;
}

.price-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.price-cell {
  white-space: nowrap;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.price-cell s {
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 6px;
}

.price-sold-out {
  color: var(--text-muted);
}

.price-faq {
  margin: 0;
  display: grid;
  gap: 4px;
}

.price-faq dt {
  font-weight: 600;
  margin-top: 10px;
}

.price-faq dt:first-child {
  margin-top: 0;
}

.price-faq dd {
  margin: 0;
  line-height: 1.6;
}

.price-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-links a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.85rem;
}

.price-links a:hover {
  border-color: var(--text-color);
}

.price-links small {
  color: var(--text-muted);
  margin-left: 4px;
}

@media (max-width: 600px) {
  .price-table th:nth-child(3),
  .price-table td:nth-child(3) {
    font-size: 0.8rem;
  }

  .price-item img {
    width: 40px;
    height: 53px;
  }
}
