/* ── Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0 40px;
}

/* ── Breadcrumbs (typography lives in base.css) ── */
.breadcrumbs {
  padding: clamp(8px, 2vw, 20px) 0 0;
}

/* ── Page title ── */
.page-title-section {
  margin: 12px 0 24px;
}

.page-title {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  text-wrap: balance;
}

/* ── Back link ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 6px 12px 6px 10px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.2s var(--ease);
}

.back-link:hover {
  border-color: var(--accent);
}

/* ── Watch detail card ── */
.watch-detail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 40px;
}

/* ── Gallery ── */
.gallery-wrapper {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, 80px);
  gap: 8px;
}

.gallery-hero {
  grid-column: 1 / -1;
  display: block;
  height: 480px;
  background: var(--surface-3);
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  text-decoration: none;
}

.gallery-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery-hero:hover img {
  transform: scale(1.02);
}

.gallery-thumb {
  display: block;
  height: 80px;
  background: var(--surface-3);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  border: 2px solid transparent;
  transition: border-color 0.2s var(--ease);
  text-decoration: none;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb:hover {
  border-color: var(--accent);
}

.gallery-no-images {
  grid-column: 1 / -1;
  height: 300px;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  border-radius: 14px;
}

.watch-info {
  padding: 24px 30px 30px;
  border-top: 1px solid var(--line);
}

.watch-title {
  margin-bottom: 6px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.watch-subtitle {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.watch-price {
  margin-bottom: 24px;
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ── Archived listing (sold / expired / withdrawn) ── */
.watch-archived {
  margin-bottom: 24px;
  padding: 18px 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.watch-archived-status {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.watch-archived-price {
  margin-top: 6px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-2);
}

.watch-archived-note {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.watch-archived-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.watch-archived-cta {
  padding: 10px 16px;
  color: var(--on-accent);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  background: var(--accent);
  border-radius: var(--radius-sm);
  transition:
    transform 0.18s var(--ease),
    box-shadow 0.25s var(--ease);
}

.watch-archived-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 80%, transparent);
}

/* ── Contact seller ── */
.watch-contact,
.watch-message {
  margin-bottom: 24px;
}

.watch-contact-label,
.watch-message-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-ink);
}

.watch-contact-label::before,
.watch-message-label::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}

.watch-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  transition:
    transform 0.18s var(--ease),
    box-shadow 0.25s var(--ease);
}

.contact-btn:hover {
  transform: translateY(-1px);
}

/* The reveal button shares the call button's look. */
button.contact-btn {
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

button.contact-btn:disabled {
  cursor: default;
  opacity: 0.7;
  transform: none;
}

.contact-btn--call {
  color: var(--on-accent);
  background: var(--accent);
}

.contact-btn--call:hover {
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 80%, transparent);
}

/* Darker than WhatsApp's own green, so the white label stays readable. */
.contact-btn--whatsapp {
  background: #128c3e;
}

.contact-btn--whatsapp:hover {
  box-shadow: 0 8px 20px -8px rgba(18, 140, 62, 0.7);
}

/* Inverted: dark on light by day, light on dark at night. */
.contact-btn--message {
  color: var(--surface);
  background: var(--text);
}

.contact-btn--message:hover {
  box-shadow: 0 8px 20px -8px rgba(14, 24, 38, 0.6);
}

/* ── On-site message ── */
.watch-message-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.watch-message-field {
  display: block;
  width: 100%;
}

.watch-message-field textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font-size: 15px;
  resize: vertical;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.watch-message-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus);
}

.watch-message-login {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.watch-message-hint {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── Specs grid: small dashboard tiles ── */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.spec-item {
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.spec-label {
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.spec-value {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.spec-value a {
  color: var(--accent-ink);
  text-decoration: none;
}

.spec-value a:hover {
  text-decoration: underline;
}

/* ── Description ── */
.watch-description {
  margin-bottom: 20px;
  padding: 20px 22px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.watch-description h3 {
  margin-bottom: 10px;
  font-size: 17px;
  color: var(--text);
}

.watch-description p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .container {
    padding: 12px 0 32px;
  }

  .gallery-wrapper {
    padding: 10px;
  }

  .gallery-hero {
    height: 300px;
  }

  .watch-info {
    padding: 20px 16px;
  }

  .specs-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pswp__button--zoom {
    position: fixed !important;
    top: auto !important;
    bottom: 20px;
    right: 16px;
  }

  .pswp__button--close {
    position: fixed !important;
    top: auto !important;
    bottom: 20px;
    right: 64px;
  }
}

@media (max-width: 420px) {
  .specs-grid {
    grid-template-columns: 1fr;
  }
}

/* Related / internal-linking sections */
.related-section {
  margin-top: 56px;
}

.related-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.related-header h2 {
  font-size: 22px;
  color: var(--text);
}

.related-see-all {
  font-size: 14px;
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
}

.related-see-all:hover {
  text-decoration: underline;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.related-card {
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.related-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}

.related-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.related-badges .detail-badge {
  padding: 2px 8px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ok);
  background: var(--ok-soft);
  border-radius: 999px;
}

.related-image {
  margin: 6px 6px 0;
  aspect-ratio: 1 / 1;
  background: var(--surface-3);
  border-radius: 11px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-name {
  padding: 10px 12px 2px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
}

.related-price {
  padding: 2px 12px 12px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* The seller's own listing: edit and end, in an amber-tinted strip. */
.owner-bar {
  margin: 12px 0 20px;
  padding: 14px 16px;
  background: var(--accent-soft);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--accent-ring);
}

.owner-bar-actions,
.owner-bar .end-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
