/* ===== Car Detail Page ===== */

.carDetail {
  background: #fff;
  padding-top: var(--nav-height, 80px);
}

.carMain {
  padding: 18px 0 0;
}

/* Blog style top links */
.carSubnav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.carSubnav__link {
  color: rgba(0,0,0,0.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.carSubnav__link:hover {
  text-decoration: underline;
  color: rgba(0,0,0,0.95);
}

.carSubnav__sep {
  color: rgba(0,0,0,0.35);
}

/* ===== Gallery layout inside container ===== */

.carGallery{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  align-items: start;
  width: 100%;
}

.carGallery__main{
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #eee;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.carGallery__mainImg{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Plain text price (Knewave) */
.carGallery__price{
  position: absolute;
  right: 18px;
  bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  z-index: 2;

  font-family: var(--font-heading);
  line-height: 1;

  /* readability on photos without a box */
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.carGallery__priceFrom{
  color: #111;
  font-size: 40px;
}

.carGallery__priceValue{
  color: var(--theme, #7FBFC6);
  font-size: 54px;
}

.carGallery__thumbs{
  display: grid;
  gap: 14px;
  align-content: start;
}

.carGallery__thumb{
  position: relative;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  background: #eee;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.carGallery__thumb img{
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

/* Active state uses Strapi theme */
.carGallery__thumb.is-active {
  box-shadow: 0 0 0 3px var(--theme, rgba(0,0,0,0.22));
  transform: translateY(-1px);
}

/* ===== Info ===== */

.carInfoWrap {
  margin-top: 22px;
}

.carInfo__desc {
  font-size: 13px;
  line-height: 1.55;
  color: #111;
  background: #fff;
}

.carInfo__specs {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.carInfo__specs li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  color: #222;
}

.carInfo__specs li::before {
  content: "•";
  position: absolute;
  left: 6px;
  top: 0;
  font-size: 18px;
  line-height: 1;
}

/* ===== CTA BAR ===== */

.carCtaBar {
  margin-top: 48px;
  background: #E8D07A;
  padding: 40px 0;
}

.carCtaBar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.carCtaBar__title {
  font-weight: 800;
  font-size: 18px;
  color: #111;
}

.carCtaBar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  background: var(--theme, #7FBFC6);
  color: #fff;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 900px){
  .carGallery{
    grid-template-columns: 1fr;
  }
  .carGallery__thumbs{
    grid-template-columns: repeat(3, 1fr);
  }
  .carGallery__thumb img{
    height: 80px;
  }
  .carGallery__priceFrom{ font-size: 34px; }
  .carGallery__priceValue{ font-size: 46px; }
}

.carInfoWrap {
  margin-top: 22px;
  text-align: center;
}

.carInfo__desc {
  max-width: 760px;          /* keeps it readable */
  margin: 0 auto;            /* centers block */
  font-size: 14px;
  line-height: 1.65;
  color: #111;
}

.carInfo__specs {
  margin: 18px auto 0;
  padding: 0;
  list-style: none;

  display: grid;
  gap: 12px;

  max-width: 520px;          /* keeps bullets in a nice column */
  justify-items: center;     /* centers each row visually */
}

.carInfo__specs li {
  position: relative;
  padding-left: 18px;        /* room for bullet */
  font-size: 18px;           /* ✅ bigger than description */
  font-weight: 700;          /* makes it feel more “spec list” */
  color: #111;
  line-height: 1.35;
}

/* themed bullet */
.carInfo__specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--theme, #7FBFC6); /* ✅ Strapi color */
  transform: translateY(-50%);
}

.carCtaBar__title {
  font-family: var(--font-heading);  /* Knewave */
  font-size: 46px;                  /* BIG */
  line-height: 1;
  margin: 0;
  color: #111;
}

@media (max-width: 900px) {
  .carCtaBar__title {
    font-size: 34px;
  }
}

.carCtaBar__btn:hover {
  background: var(--theme-dark, var(--theme, #7FBFC6));
}