.section-header a {
  color: floralwhite;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.25em;
  color: #9a8f6a;
}
/* Home Cars Section */
.home-cars {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;

  a {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
  }
  .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    a {
      box-shadow: none;
      background: none;
    }
    & :hover {
      outline: none;
    }

    h1 {
      font-family: var(--font-family);
    }
  }

  .deal-row {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
  }

  .deal-card {
    height: 350px;
    background: var(--bg-secondary);
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .6);
    overflow: hidden;


  }
  a {
    color: var(--text-color);
    text-decoration: none;
    background: var(--bg-secondary);
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .6);
    overflow: hidden;
    transition: 0.5s ease-in-out;

    &:hover {
      outline: 1px solid #105C5C;
    }
  }

  .deal-image {
    position: relative; /* This is the 'anchor' for the badge and heart */
    overflow: hidden;
    border-radius: 18px;

    img {
      width: 100%;
      height: 170px;
      object-fit: cover;
    }
  }

  .wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg-secondary);
    font-size: 16px;
    cursor: pointer;
  }

  .deal-body {
    padding: 14px;
  }

  .deal-title {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;

    h3 {
      font-size: 1.5rem;
      font-family: var(--font-family);
      font-weight: 700;
      margin: 0;
    }
  }

  .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007a6e;
    font-family: var(--font-family);
    white-space: nowrap;
    overflow: visible;
  }

  .subtitle {
    font-size: 13px;
    color: #6b7280;
    margin: 6px 0 12px;
  }

  .stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #eef0f2;
    padding-top: 10px;
  }

  .stat {
    position: relative;
    padding-left: 10px;
    text-align: left;
    margin-top: 0.6rem;

    &:not(:last-child)::after {
      content: "";
      position: absolute;
      top: 15%;
      right: -20px;
      height: 70%;
      width: 1px;
      background: #e5e7eb;
    }
  }

  .label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #9aa0a6;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 2px;
  }

  .value {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
  }
}

/* Button & Search Images */
.seemore a {
  padding: 10px;
  border: none;
  background: var(--bs-first-color);
  border-radius: 10px;
  color: #17527e !important;
  width: 300px;
  font-weight: bold;
  outline: 2px solid;
  margin-top: 10px;
  text-align: center;
}

.search-img .card {
  margin: 0 auto;
  border: none;
  max-width: 90%;
}

.search-form div {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

/* Home Car Details */
.hcar-details {
  position: relative;

  a {
    text-decoration: none;
    color: inherit;
  }

  p {
    font-family: var(--font-family);
    font-size: 14px;
    margin: 6px 0;
  }

  .production_year {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background-color: #2b2f4a;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    width: fit-content;
    margin-left: auto;
    margin-top: 6px;
    margin-bottom: 10px;
    box-shadow: inset 0 0 2px #4b6fff;

    i {
      color: #139bf5;
      margin-right: 5px;
    }
  }

  img {
    object-fit: cover;
    height: 230px;
    width: 100%;
    transition: transform 0.3s ease;
  }

  .card {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden;

    .card-header {
      padding: 0;
      margin: 0;
      background-color: #1e1e1e;
      border: none;
      border-radius: 5px;
      overflow: hidden;
      transition: box-shadow 0.3s ease, transform 0.3s ease;
    }

    &:hover {
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
      transform: scale(1.02);
      cursor: pointer;
    }

    .card-body {
      padding: 16px;
    }

    .card-footer {
      background-color: #181818;
      padding: 12px 16px;
      height: 70px;
      border-top: 1px solid #333;
    }
  }

  .promoted-carousel-track .card:hover {
    transform: none;
  }

  .hcar-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;

    h5 {
      font-weight: 600;
      margin: 0;
    }
  }

  .hcar-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    margin-top: 10px;

    i, svg {
      color: #139bf5;
      margin-right: 5px;
    }
  }

  .hcar-footer h4 {
    font-family: var(--font-family);
    font-weight: bold;
    color: #ffffff;
    margin: 0;
  }

  .wishlisticon {
    border: none;
    color: #1276db;
    font-size: 22px;
    background-color: #72a9e0;
    border-radius: 10px;
    margin-right: 15px;
    transition: transform 0.2s ease, color 0.2s ease;
    z-index: 2;
    padding: 6px 12px;

    &:hover {
      transform: scale(1.2);
      color: white;
    }
  }
}

/* Swiper & Sliders */
.promoted-pictures span {
  position: absolute;
  right: 1rem;
  top: 38%;
  width: 100px;
  display: block;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 5px;
  color: white;
  text-align: center;
}

.promoted-swiper {
  height: 550px;
  max-width: 700px;
  margin: 2rem auto;
  position: relative;
  padding: 0 0.5rem !important;

  .swiper-slide {
    width: auto;
  }

  .card {
    width: 100%;
    max-width: none;
  }
}

.swiper-wrapper {
  align-items: stretch;
}

.swiper .hcar-title h5 {
  max-width: 100%;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Brands Section */
.car-brands-section {
  background-color: var(--bg-secondary);
}

.brands-section {
  position: relative;
  max-width: 1000px;
  color: white !important;
  margin: auto;
}

.brand-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.brand-carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
}

.brand-carousel-track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
}

.brand-item {
  flex: 0 0 200px !important;
  margin-right: 16px;
}

.brand-card {
  background: #B9D6F3;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
  height: 100%;

  &:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
  }
}

.brand-logo {
  height: 60px;
  object-fit: contain;
  max-width: 100%;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #343a40;
}

.brand-tagline {
  font-size: 0.85rem;
  color: #6c757d;
}

/* Home Styles */
.home-styles {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 6rem;
  padding-bottom: 6rem;

  .home-style-sort {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    display: grid;
    gap: 1.5rem;
    margin-top: 2.5rem;
  }
  a {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
  }
  .style-card {
    padding: 2rem;
    border-radius: 1rem;
    background: var(--bs-first-color);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-shadow: var(--shadow-s);
    transition: 1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0;

    &:hover {
      outline: 1px solid #105C5C;
      transition: 0.5s ease-in-out;

      i { color: white; }
      .style-logo { background: #105C5C; }
    }
    svg {
      flex: 0;
    }
  }

  .style-logo {
    background: #F3F7F7;
    padding: 1rem;
    width: 4rem;
    height: 4rem;
    border-radius: 100%;
    transition: 0.5s ease-in-out;
  }

  i {
    font-size: 2rem;
    color: #105C5C;
  }

  a { text-decoration: none; }

  h4 {
    font-family: var(--font-family);
    font-size: 20px;
    margin-top: 15px;
    text-decoration: none;
    color: var(--text-color);
  }
}

/* Home Brands (Gallery) */
.home-brands {
  max-width: 80rem;
  margin: 80px auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  a {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
  }
  .header {
    h1 {
      font-size: 52px;
      font-weight: 600;
    }
    p {
      max-width: 420px;
      line-height: 1.6;
      color: #555;
    }
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 28px;

    .card {
      position: relative;
      height: 420px;
      border-radius: 20px;
      overflow: hidden;
      text-decoration: none;
      color: white;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: grayscale(100%);
        transform: scale(1);
        transition: transform 0.7s ease, filter 0.7s ease;
      }

      .overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        transition: opacity 0.5s ease;
      }

      &:hover {
        img {
          transform: scale(1.1);
          filter: grayscale(0%);
        }
        .overlay { opacity: 0.25; }
      }
    }

    .content {
      position: absolute;
      bottom: 24px;
      left: 24px;
      z-index: 3;

      h3 {
        font-size: 24px;
        font-weight: 500;
      }
      small {
        font-size: 11px;
        letter-spacing: 0.18em;
        color: rgba(255, 255, 255, 0.75);
      }
    }
  }

  .index {
    position: absolute;
    top: 18px;
    left: 18px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    z-index: 3;
  }

  .arrow {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    z-index: 3;
  }

  .second-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 28px;

    a {
      text-decoration: none;
      display: flex;
      justify-content: center;
      padding: 0.35rem;
    }

    .content {
      display: flex;
      gap: 15px;
      align-items: center;
      overflow: hidden;

      h3 {
        text-decoration: none;
        font-size: 16px;
        align-content: center;
        line-height: 24px;
        margin-bottom: 0;
      }
      img, svg { margin-left: 10px; object-fit: contain; }
    }

    .card:hover img { transform: scale(1.05); }
  }
}

/* Home CTA */
.home-cta {
  background: var(--bg-secondary);

  .cta-container {
    max-width: 80rem;
    margin: 1.5rem auto;
    padding: 6rem 1.5rem 6rem 1.5rem;
  }

  .cta-rows {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 28px;
  }
  .cta-card {
    border-radius: 18px;
    overflow: hidden;
     opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;

    h1 {
      font-family: var(--font-family);
      font-weight: 500;
      margin-bottom: 1.5rem;
    }
    h2 {
      font-size: 1.25rem;
      font-weight: 700;
      font-family: var(--font-family);
      line-height: 1.375;
      color: var(--text-color);
      margin-left: 10px;
    }
    p {
      overflow: hidden;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      max-width: 400px;
      margin-left: 10px;
    }

    &:hover img { transform: scale(1.1); }

    img {
      object-fit: cover;
      height: 100%;
      width: 100%;
      border-radius: 1rem;
      transition: 0.5s ease-in-out;
    }
  }

  .cta-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 1rem;
  }
}

/* Home Banner */
.home-banner {
  max-width: 80rem;
  margin: 6rem auto 0;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  border-radius: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
  a {
    text-decoration: none;
  }
  .banner-items {
    display: flex;
    flex-direction: column-reverse;
    padding: 2rem 1rem 4rem;
    text-align: center;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
    border-radius: 1.5rem;
    background: #1C6464;

    h1 {
      max-width: 48rem;
      color: white;
      font-family: var(--font-family);
      font-weight: 400;
    }

    p {
      font-family: var(--font-family);
      padding: 0.35rem 1rem;
      background: #417d7d;
      max-width: 100%;
      border-radius: 1rem;
      line-height: 1rem;
      letter-spacing: 0.1em;
      color: whitesmoke;
    }

    span {
      font-weight: 900;
      font-style: italic;
    }

    .first-half { margin-top: 20px; }

    .second-half {
      display: flex;
      justify-content: center;
    }

    .first-cyrcle {
      top: 20%;
      position: relative;
      font-size: 6rem;
      left: 0;
      background: #417D7D;
      padding: 3rem;
      border-radius: 100%;
      color: rgba(255, 255, 255, 0.6);
    }

    .second-cyrcle {
      font-size: 12rem;
      background: #2D7070;
      padding: 3rem;
      border-radius: 100%;
      color: rgba(255, 255, 255, 0);
      display: none;
    }
  }

  .banner-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
  }

  .car-sale-button {
    padding: 1.2rem;
    border-radius: 1rem;
    max-width: 250px;
    background: #FFFFFF;
    outline: none;
    border: none;
    color: #1C6464;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
    font-family: var(--font-family);
  }

  .car-sale-button2 {
    padding: 1.2rem;
    border-radius: 1rem;
    max-width: 250px;
    background: transparent;
    outline: none;
    border: 1px solid white;
    color: white;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
    font-family: var(--font-family);
    transition: 0.5s ease-in-out;

    &:hover { background: rgba(255, 255, 255, 0.1); }
  }
}

/* Hero Section */

.hero-content {
  position: relative;
  max-width: 1100px;
  width: 100%;
  padding: 0 24px;
  text-align: center;

  .subtitle {
    max-width: 640px;
    margin: 0 auto 48px;
    font-size: 16px;
    color: white;
  }

  .search-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    overflow: visible !important;
    position: relative;
    z-index: 10;
  }

  .search-container.active {
    z-index: 100;
  }

  .inputs {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
    z-index: 3;
  }

  .field {
    label {
      display: block;
      font-size: 12px;
      font-weight: 600;
      color: var(--text-color);
      margin-bottom: 6px;
      text-align: left;
    }

    input {
      width: 100%;
      padding: 14px 16px;
      border-radius: 999px;
      border: 1px solid #e5e7eb;
      font-size: 14px;
      outline: none;

      &::placeholder {
        color: #9ca3af;
      }
    }
  }

}
  .hero h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    font-family: var(--font-family);
    margin-top: 15px;
    color: white;
    span {
      color: #0f6b63;
    }
  }

  .search-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
  }

  .meta {
    font-size: 14px;
    color: #6b7280;

    span {
      color: var(--text-color);
    }

    a {
      color: #0f6b63;
      font-weight: 600;
      margin-right: 8px;
    }
  }

  .cta {
    background: #0f6b63;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;

    &:hover {
      background: #0c5c55;
    }
  }

/* Media Queries (Responsive) */
@media (max-width: 900px) {
  .hero-content .inputs { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero-content .inputs { grid-template-columns: 1fr; }
  .search-footer { flex-direction: column; gap: 16px; }
  .hero h1 { font-size: 22px; }
}

@media (min-width: 481px) {
  .home-cta .cta-container .cta-rows { grid-template-columns: repeat(2, 1fr); }
  .home-brands .grid, .home-brands .second-grid { grid-template-columns: repeat(2, 1fr); }
  .home-banner .banner-buttons { justify-content: center; flex-direction: unset; }
  .home-banner .car-sale-button, .home-banner .car-sale-button2 { font-size: var(--fs-md); }
  .home-cars .deal-row { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 640px) {
  .home-styles .home-style-sort { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-banner .banner-items {
    flex-direction: unset;
    .second-half { display: unset; margin-right: 10px; }
    p, h1 { margin-left: 15px; color: whitesmoke; }
  }
  .hero-content .inputs { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .home-banner .car-sale-button, .home-banner .car-sale-button2 { font-size: 20px; }
  .home-cta .cta-container .cta-rows { grid-template-columns: repeat(3, 1fr); }
  .home-brands .grid, .home-brands .second-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-content .inputs { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .home-banner .banner-items {
    text-align: unset;
    p { text-align: center; max-width: 350px; color: whitesmoke; }
    .first-half { margin-top: 0px; }
  }
  .home-banner .banner-buttons {
    flex-direction: unset;
    justify-content: unset;
    align-content: unset;
    flex-wrap: unset;
    margin-left: 15px;
  }
  .home-styles .home-style-sort { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .home-brands .grid, .home-brands .second-grid { grid-template-columns: repeat(4, 1fr); }
  .home-cars .deal-row { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1280px) {
  .home-cta .cta-container .cta-rows { grid-template-columns: repeat(3, 1fr); }
  .home-brands .grid, .home-brands .second-grid { grid-template-columns: repeat(4, 1fr); }
  .promoted-swiper { max-width: 1200px; padding: 0 1rem; }
  .home-styles .home-style-sort { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .home-banner .banner-items {
    position: relative;
    padding-left: 1.5rem;
    padding-top: 6rem;
    padding-bottom: 6rem;
    color: white;

    .first-cyrcle { position: absolute; font-size: 10rem; left: 70%; }
    .second-cyrcle {
      position: absolute;
      left: 68.5%;
      top: 16.5%;
      display: block;
    }
    p { max-width: 280px; color: whitesmoke; }
  }
  .home-cars .deal-row { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 576px) {
  .search-img .card { padding: 0; }
}

/* Dark Theme overrides */
[data-bs-theme="dark"] {
  .hero-content .field input { border: 1px solid #555555; }
}