/* ==========================================================================
   Breed search — filters the price table below
   ========================================================================== */
.breed-search {
  max-width: 480px;
  margin: 0 auto var(--space-4);
  text-align: center;
}

.breed-search label {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
}

.breed-search-input-wrap {
  position: relative;
}

.breed-search-input-wrap svg {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  pointer-events: none;
}

.breed-search-input-wrap input {
  width: 100%;
  padding: 0.85rem 1.2rem 0.85rem 2.7rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-card-bg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: border-color var(--dur-fast) var(--ease);
}

.breed-search-input-wrap input:focus {
  outline: none;
  border-color: var(--color-accent-dark);
}

.price-search-empty {
  margin-top: 0.9rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.price-search-empty[hidden] {
  display: none;
}

/* ==========================================================================
   Services — price table
   ========================================================================== */
.price-table-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.price-table-viewport {
  position: relative;
}

.price-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.price-table th,
.price-table td {
  padding: 0.55rem 0.6rem;
  text-align: left;
}

.price-table th:first-child,
.price-table td:first-child {
  width: 32%;
  padding-left: 1.1rem;
}

.price-table th:not(:first-child),
.price-table td:not(:first-child) {
  width: 17%;
}

.price-table th:last-child,
.price-table td:last-child {
  padding-right: 1.1rem;
}

.price-table thead th {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
}

.price-table thead th.price-table-price-col {
  text-align: center;
}

.price-table tbody th {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--color-text);
  white-space: normal;
}

.price-table tbody td {
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  color: var(--color-text);
  font-weight: 600;
  white-space: nowrap;
}

.price-table tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background var(--dur-fast) var(--ease);
}

.price-table tbody tr:last-child {
  border-bottom: none;
}

.price-table tbody tr[hidden] {
  display: none;
}

.price-table tbody tr:nth-child(even) {
  background: var(--color-bg-alt);
}

.price-table tbody tr:hover {
  background: color-mix(in srgb, var(--color-pink) 22%, transparent);
}

.price-table-note {
  padding: 0.9rem 1.15rem;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-style: italic;
  border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   Scroll hint — shown only when the table actually overflows (JS-toggled),
   nudges right to hint at horizontal scroll, fades once the user scrolls
   ========================================================================== */
.price-scroll-hint {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.5rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease);
  background: linear-gradient(
    to right,
    transparent,
    var(--color-card-bg) 65%
  );
}

.price-table-card.has-overflow .price-scroll-hint {
  opacity: 1;
}

.price-table-card.has-overflow.is-scrolled .price-scroll-hint {
  opacity: 0;
}

.price-scroll-hint svg {
  width: 22px;
  height: 22px;
  color: var(--color-accent-dark);
  animation: priceScrollNudge 1.4s ease-in-out infinite;
}

@keyframes priceScrollNudge {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .price-scroll-hint svg {
    animation: none;
  }
}

@media (max-width: 640px) {
  .price-table th,
  .price-table td {
    padding: 0.5rem 0.4rem;
  }

  .price-table th:first-child,
  .price-table td:first-child {
    padding-left: 0.85rem;
  }

  .price-table th:last-child,
  .price-table td:last-child {
    padding-right: 0.85rem;
  }
}
