/* ============================================================
   Royal Truck Body — landing page + product page
   Inherits theme tokens (--hh-black / --hh-yellow / etc.)
   ============================================================ */

/* ---------- Banner: full pre-designed image ---------- */
.royal-banner-image {
  background: #0a0d1a; /* matches the banner's dark side; fills the header gap */
  padding-top: 88px;   /* clear the fixed 83px site header */
  line-height: 0;
}
.royal-banner-image img {
  display: block;
  width: 100%;
  height: auto;
}
.royal-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Banner: styled text fallback (no image set) ---------- */
.royal-banner {
  position: relative;
  padding: 7rem 0 5rem;
  background: var(--hh-black);
  background-size: cover;
  background-position: center;
  color: var(--hh-white);
}
.royal-banner.has-image .royal-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,13,13,0.92) 0%, rgba(13,13,13,0.7) 55%, rgba(13,13,13,0.45) 100%);
}
.royal-banner-content {
  position: relative;
  max-width: 760px;
}
.royal-banner-content h1 {
  color: var(--hh-white);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin: 0.5rem 0 1rem;
}
.royal-banner-sub {
  color: var(--hh-gray-300);
  font-size: 1.1rem;
  max-width: 640px;
}

/* ---------- Lead / quote bar ---------- */
.royal-leadbar {
  background: var(--hh-yellow);
  padding: 2rem 0;
}
.royal-leadbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.royal-leadbar-copy h2 {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
  color: var(--hh-black);
}
.royal-leadbar-copy p {
  margin: 0;
  color: var(--hh-black-soft);
  max-width: 620px;
}
.royal-leadbar .btn--primary {
  background: var(--hh-black);
  color: var(--hh-yellow);
  flex-shrink: 0;
}
.royal-leadbar .btn--primary:hover { background: var(--hh-black-deep); }

/* ---------- Find Your Body filters ---------- */
.royal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: center;
  margin: 2.5rem 0 0.5rem;
}
.royal-filter-group { text-align: center; }
.royal-filter-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hh-gray-500);
  margin-bottom: 0.5rem;
}
.royal-filter-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.royal-chip {
  border: 2px solid var(--hh-gray-200);
  background: var(--hh-white);
  color: var(--hh-black);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.royal-chip:hover { border-color: var(--hh-black); }
.royal-chip.is-active {
  background: var(--hh-black);
  border-color: var(--hh-black);
  color: var(--hh-yellow);
}
.royal-filter-count {
  text-align: center;
  color: var(--hh-gray-700);
  font-weight: 600;
  min-height: 1.2rem;
  margin: 1rem 0 0;
}

/* ---------- Product squares ---------- */
.royal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 1.5rem;
}
.royal-card {
  display: flex;
  flex-direction: column;
  background: var(--hh-white);
  border: 1px solid var(--hh-gray-200);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.royal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}
.royal-card-image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--hh-gray-100);
  overflow: hidden;
}
.royal-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.royal-card:hover .royal-card-image img { transform: scale(1.04); }
.royal-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--hh-yellow);
  color: var(--hh-black);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  z-index: 2;
}
.royal-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  flex: 1;
}
.royal-card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.royal-tag {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--hh-gray-100);
  color: var(--hh-gray-700);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}
.royal-card-title {
  font-size: 1.12rem;
  line-height: 1.25;
  margin: 0.25rem 0 0;
}
.royal-card-part {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--hh-yellow-dark);
  font-weight: 600;
}
.royal-card-desc {
  color: var(--hh-gray-700);
  font-size: 0.92rem;
  margin: 0;
  flex: 1;
}
.royal-card-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.royal-card-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 0.6rem 0.5rem;
  font-size: 0.9rem;
}
/* The theme's .btn--outline is white-on-transparent (built for dark heroes);
   recolor the card's "Learn More" so it's visible on the white card. */
.royal-card-actions .btn--outline {
  color: var(--hh-black);
  border-color: var(--hh-black);
  background: transparent;
}
.royal-card-actions .btn--outline:hover {
  background: var(--hh-black);
  color: var(--hh-white);
}
.royal-grid-empty {
  text-align: center;
  max-width: 480px;
  margin: 2.5rem auto 0;
  padding: 2rem;
  background: var(--hh-gray-100);
  border-radius: 10px;
}
.royal-grid-empty h3 { margin: 0 0 0.5rem; }
.royal-grid-empty p { color: var(--hh-gray-700); margin: 0 0 1.25rem; }

/* ============================================================
   Single product page
   ============================================================ */
.royal-single { padding-top: 100px; }
.royal-product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  /* Center the (landscape) gallery against the taller info column so there's
     no large empty band under the photo. */
  align-items: center;
}
.royal-product-gallery { min-width: 0; }
.royal-product-gallery .woocommerce-product-gallery {
  margin: 0 !important;
  width: 100% !important;
}
.royal-product-intro .eyebrow { margin-bottom: 0.5rem; }
.royal-product-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.1;
  margin: 0.25rem 0 0.5rem;
}
.royal-product-part {
  font-family: 'JetBrains Mono', monospace;
  color: var(--hh-gray-700);
  margin: 0 0 1.5rem;
}
.royal-product-part strong { color: var(--hh-black); }
.royal-keyfeatures {
  background: var(--hh-gray-100);
  border-left: 4px solid var(--hh-yellow);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}
.royal-keyfeatures h2 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.75rem;
}
.royal-keyfeatures ul { margin: 0; padding-left: 1.1rem; }
.royal-keyfeatures li { margin-bottom: 0.5rem; color: var(--hh-black-soft); }
.royal-product-intro .royal-quote-btn { width: 100%; justify-content: center; }
.royal-best-for {
  margin-top: 1.25rem;
  color: var(--hh-gray-700);
  font-size: 0.95rem;
}

/* Specs */
.royal-specs { background: var(--hh-gray-100); }
.royal-specs-inner { max-width: 900px; margin: 0 auto; }
.royal-specs-inner h2 { text-align: center; margin-bottom: 1.5rem; }
.royal-spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--hh-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.royal-spec-table th,
.royal-spec-table td {
  text-align: left;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--hh-gray-200);
  font-size: 0.95rem;
}
.royal-spec-table th {
  width: 45%;
  background: var(--hh-white);
  color: var(--hh-gray-700);
  font-weight: 600;
}
.royal-spec-table td { font-weight: 600; color: var(--hh-black); }
.royal-spec-table tr:last-child th,
.royal-spec-table tr:last-child td { border-bottom: none; }
.royal-spec-note {
  text-align: center;
  color: var(--hh-gray-500);
  font-size: 0.85rem;
  margin-top: 1rem;
}

/* Accessories */
.royal-section-head { text-align: center; margin-bottom: 2.5rem; }
.royal-accessory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.royal-accessory-card {
  background: var(--hh-black-soft);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 1.5rem;
}
.royal-accessory-card h3 {
  color: var(--hh-yellow);
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
}
.royal-accessory-card p { color: var(--hh-gray-300); margin: 0; font-size: 0.92rem; }

/* Additional features */
.royal-feature-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 0.75rem 2rem;
}
.royal-feature-list li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--hh-black-soft);
  line-height: 1.4;
}
.royal-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--hh-yellow);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-11'/%3E%3C/svg%3E");
  background-size: 0.8rem;
  background-repeat: no-repeat;
  background-position: center;
}
.royal-features-cta { text-align: center; margin-top: 2.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .royal-product-hero { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .royal-leadbar-inner { flex-direction: column; align-items: flex-start; }
  .royal-card-actions { flex-direction: column; }
}
