/* Taylor Tire retail — winter packages (/winter-packages hub, brand, leaf).
   Palette + fonts come from site.css :root. */

/* ---- vehicle card grid (hub + brand + discontinued alternates) ---- */
.wp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin: 18px 0 28px;
}
.wp-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow .15s ease, transform .15s ease;
}
.wp-card:hover { box-shadow: 0 6px 18px rgba(11, 44, 79, .12); transform: translateY(-2px); }
.wp-card-media { display: block; aspect-ratio: 3 / 2; background: var(--porcelain); }
.wp-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wp-card-body { display: block; padding: 12px 14px 14px; }
.wp-card-title { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; line-height: 1.2; }
.wp-card-years { display: block; color: var(--ink-soft); font-size: .85rem; margin-top: 2px; }
.wp-card-price { display: block; margin-top: 6px; font-size: .95rem; }
.wp-card-price b { font-size: 1.1rem; }
.wp-card-price--call { color: var(--ink-soft); }
.wp-card-cta { display: block; margin-top: 8px; color: var(--blue); font-weight: 600; font-size: .9rem; }

/* ---- leaf layout ---- */
.wp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .wp-layout { grid-template-columns: 1fr; } }
.wp-hero { margin: 0 0 18px; border-radius: 12px; overflow: hidden; background: var(--porcelain); }
.wp-hero img { display: block; width: 100%; height: auto; }
.wp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wp-chip {
  display: inline-block; padding: 2px 10px; border: 1px solid var(--line-blue);
  border-radius: 999px; background: var(--blue-tint); color: var(--blue-ink);
  font-family: var(--font-mono); font-size: .85rem;
}
.wp-section { margin: 0 0 26px; }
.wp-section h2 { font-family: var(--font-display); font-size: 1.35rem; margin: 0 0 10px; }
.wp-subhead { font-family: var(--font-display); font-size: 1.25rem; margin: 24px 0 10px; }

/* ---- profile chips ---- */
.wp-profile-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.wp-pchip input { position: absolute; opacity: 0; pointer-events: none; }
.wp-pchip span {
  display: inline-block; padding: 8px 16px; border: 2px solid var(--line);
  border-radius: 999px; cursor: pointer; font-weight: 600; background: var(--paper);
}
.wp-pchip input:checked + span { border-color: var(--blue); background: var(--blue-tint); color: var(--blue-ink); }
.wp-pchip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---- option cards (wheels + tires) ---- */
.wp-opts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.wp-opt { position: relative; display: block; }
.wp-opt input { position: absolute; opacity: 0; pointer-events: none; }
.wp-opt-card {
  display: flex; flex-direction: column; gap: 3px; height: 100%;
  border: 2px solid var(--line); border-radius: 10px; padding: 10px;
  background: var(--paper); cursor: pointer;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.wp-opt-card:hover { border-color: var(--line-blue); }
.wp-opt input:checked + .wp-opt-card {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-tint);
}
.wp-opt input:focus-visible + .wp-opt-card { outline: 2px solid var(--blue); outline-offset: 2px; }
.wp-opt-card img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: contain; display: block;
  background: #fff; border-radius: 6px; margin-bottom: 4px;
}
.wp-opt-tier { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.wp-opt-name { font-weight: 600; line-height: 1.25; }
.wp-opt-spec { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-soft); }
.wp-opt-up { color: var(--blue-deep); font-weight: 600; font-size: .9rem; }
.wp-opt-total { margin-top: auto; padding-top: 4px; font-weight: 700; font-size: 1rem; }
.wp-badge {
  display: inline-block; padding: 1px 7px; border-radius: 999px;
  background: var(--accent); color: var(--ink); font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em; vertical-align: middle;
}

/* ---- price box ---- */
.wp-side { position: sticky; top: 84px; }
@media (max-width: 900px) { .wp-side { position: static; } }
.wp-pricebox {
  border: 2px solid var(--blue-ink); border-radius: 12px; padding: 18px;
  background: var(--paper);
}
.wp-price-label { color: var(--ink-soft); font-size: .9rem; }
.wp-price-value { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; line-height: 1.1; margin: 2px 0 4px; }
.wp-price-eb { color: var(--ok); font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.wp-includes { list-style: none; margin: 12px 0; padding: 0; border-top: 1px solid var(--line); }
.wp-includes li { padding: 6px 0 6px 24px; border-bottom: 1px solid var(--line); font-size: .92rem; position: relative; }
.wp-includes li::before { content: "✓"; position: absolute; left: 4px; color: var(--ok); font-weight: 700; }

/* ---- CTAs ---- */
.wp-ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.wp-btn {
  display: block; text-align: center; padding: 12px 18px; border-radius: 8px;
  border: 2px solid var(--blue); color: var(--blue-deep); background: var(--paper);
  font-weight: 700; text-decoration: none; cursor: pointer; font-size: 1rem;
  font-family: var(--font-body);
}
.wp-btn:hover { background: var(--blue-tint); }
.wp-btn--primary { background: var(--blue); color: #fff; }
.wp-btn--primary:hover { background: var(--blue-deep); color: #fff; }
.wp-btn--ghost { border-color: var(--line); color: var(--ink); }

/* ---- related links / misc ---- */
.wp-related ul { list-style: none; margin: 8px 0 0; padding: 0; }
.wp-related li { padding: 4px 0; }
.wp-brand-links a { display: inline-block; margin: 0 10px 8px 0; }
.wp-backlink { margin: 24px 0 8px; }

/* ---- hub brand tiles ---- */
.wp-groups { margin: 10px 0 30px; }
.wp-group-title { font-family: var(--font-display); font-size: 1.6rem; margin: 26px 0 12px; }
.wp-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.wp-tile {
  display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--paper); text-decoration: none; color: var(--ink);
  transition: box-shadow .15s ease, transform .15s ease;
}
.wp-tile:hover { box-shadow: 0 6px 18px rgba(11, 44, 79, .12); transform: translateY(-2px); }
.wp-tile-media { display: block; aspect-ratio: 1 / 1; background: var(--porcelain); }
.wp-tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wp-tile-name {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: .03em;
}
.wp-tile-name b { color: var(--blue); }

/* ---- hub finder ---- */
.wp-finder { margin: 6px 0 10px; max-width: 560px; position: relative; }
.wp-finder label { display: block; font-weight: 600; margin-bottom: 6px; }
.wp-finder input {
  width: 100%; padding: 12px 14px; border: 2px solid var(--line-blue); border-radius: 8px;
  font-size: 1rem; font-family: var(--font-body);
}
.wp-finder input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.wp-finder-results {
  position: absolute; z-index: 30; left: 0; right: 0; top: 100%;
  background: var(--paper); border: 1px solid var(--line); border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 24px rgba(11, 44, 79, .15); max-height: 320px; overflow-y: auto;
}
.wp-finder-results a { display: block; padding: 10px 14px; text-decoration: none; color: var(--ink); }
.wp-finder-results a:hover, .wp-finder-results a.is-active { background: var(--blue-tint); }
.wp-finder-none { padding: 10px 14px; color: var(--ink-soft); }
