/**
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Author: Brainstorm Force
Author URI: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme
Description: The Astra WordPress theme is lightning-fast and highly customizable. It has over 1 million downloads and the only theme in the world with 5,700+ five-star reviews! It’s ideal for professional web designers, solopreneurs, small businesses, eCommerce, membership sites and any type of website. It offers special features and templates so it works perfectly with all page builders like Spectra, Elementor, Beaver Builder, etc. Fast performance, clean code, mobile-first design and schema markup are all built-in, making the theme exceptionally SEO-friendly. It’s fully compatible with WooCommerce, SureCart and other eCommerce plugins and comes with lots of store-friendly features and templates. Astra also provides expert support for free users. A dedicated team of fully trained WordPress experts are on hand to help with every aspect of the theme. Try the live demo of Astra: https://zipwp.org/themes/astra/
Template:     astra

/* Note: The CSS files are loaded from assets/css/ folder. */

:root {
  --bs-dropdown-item-padding-y: 5px;
  --bs-dropdown-item-padding-x: 15px;
}

.hide {
  display: none;
}

.overview-inner {
  border: solid 1px #cdcdcd;
  padding: 20px 0px;
  margin: 14px 0;
  border-radius: 15px;
}

.brand-box {
  border: 1px solid #eee;
  border-radius: 20px;
  padding: 0px 0 0;
  max-width: 100%;
  overflow: hidden;
  background: #fff;
  margin: 50px auto;
}

ul.car-brands {
  /* width: 100%; */
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid #eee;
}

li.brand {
  /* list-style-type: none;
  display: inline-block;
  padding: 30px 25px;
  text-align: center;
  border: solid 1px #cdcdcd;
  border-right-width: 0;
  width: 16.6667%; */
  text-align: center;
  /* padding: 18px 10px; */
  padding: 25px 50px;
  border-right: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

ul.car-brands li:nth-child(6n) {
  border-right: none;
}

li div.category-image-wrapper {
  width: 100%;
  height: auto;
}

.accordion-button {
  background-color: var(--bs-accordion-btn-bg);
  color: var(--bs-accordion-btn-color);
}

/**********************************/

/* Horizontal scroll wrapper */
.tab-cards-wrapper {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Each card should snap nicely */
.tab-cards-wrapper > div {
  scroll-snap-align: start;
}

/* Optional: hide scrollbar on Webkit */
.tab-cards-wrapper::-webkit-scrollbar {
  display: none;
}

/**********************************/
/**********************************/

.tabs-wrapper {
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: center;
}

.tabs {
  position: relative;
  display: flex;
  background: #ffffff;
  padding: 10px;
  border-radius: 12px;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  overflow-x: auto;
  scrollbar-width: none;
}

.ast-single-post .entry-content a,
.tabs a {
  text-decoration: none !important;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  position: relative;
  padding: 12px 20px;
  white-space: nowrap;
  cursor: pointer;
  color: #6b7280;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s ease;
  border-radius: 8px;
}

.tab:hover {
  color: #6366f1;
  /* background: #f3f4f6; */
}

.tab.active {
  color: #4f46e5;
  font-weight: 600;
}

/* Sliding indicator */
.indicator {
  position: absolute;
  bottom: 5px;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5, #6366f1);
  border-radius: 4px;
  transition: 0.3s ease;
  pointer-events: none;
}

/* -------------------- Tab Content -------------------- */
.tab-content {
  /* margin-top: 25px; */
  padding: 10px 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: none;
  /* hidden by default */
  animation: fade 0.3s ease;
}

/* Show only active content */
.tab-content.active {
  display: block;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/**********************************/
/**********************************/

.search-container {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  flex-direction: column;
  flex-wrap: wrap;
  width: 100%;
  margin: 50px auto;
}

.search-type {
  display: flex;
  background: #f0f2f5;
  border-radius: 25px;
  overflow: hidden;
}

.search-type button {
  border: none;
  background: none;
  padding: 8px 20px;
  cursor: pointer;
  font-weight: 500;
  color: #555;
}

.search-type button.active {
  background: #00796b;
  color: white;
  border-radius: 25px;
}

.search-box {
  position: relative;
  flex: 1;
  display: flex;
  min-width: 500px;
}

.search-box input {
  width: 100%;
  padding: 10px 40px 10px 15px;
  border: 1px solid #d1d9e0;
  border-radius: 25px;
  font-size: 15px;
  outline: none;
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #777;
  font-size: 18px;
  pointer-events: none;
}

/* Dropdown styling */
.search-dropdown {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: none;
  z-index: 100;
  max-height: 200px;
  overflow: auto;
}

/* .search-box input:focus + .search-icon + .search-dropdown {
  display: block;
} */

.dropdown-section {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.dropdown-section:last-child {
  border-bottom: none;
}

.section-title {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  color: #999;
  padding: 5px 15px;
}

.dropdown-item {
  padding: 10px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
  padding: 5px 15px;
}

.dropdown-item:hover {
  background: #f8f9fb;
}

.dropdown-item a {
  text-decoration: none !important;
  font-size: 15px;
  line-height: 18px;
}

.icon {
  color: #888;
}

.section-recent-viewed {
  display: none;
}

/**********************************/
/**********************************/
/**********************************/
/**********************************/

.hidden-row {
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease-in-out;
}

.show-row {
  display: table-row;
  opacity: 1;
  transform: translateY(0);
}

.view-more-variants-wrapper {
  display: flex;
  justify-content: center;
}

/**********************************/
/**********************************/

.container.cars_by_budget,
.container.cars_by_fueltype,
.container.cars_by_bodytype {
  margin-bottom: 50px;
}

/**********************************/
/**********************************/
/**********************************/

/* Responsive (4 per row) */
@media (max-width: 992px) {
  .brand-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .search-container .search-box {
    min-width: 100%;
  }
}

/* Responsive (3 per row) */
@media (max-width: 600px) {

  .brand-list {
    grid-template-columns: repeat(3, 1fr);
 padding: 15px !important;
  }
}

/* Mobile styling */
@media (max-width: 480px) {
  body {
    padding: 8px !important;
  }

  .tab {
    font-size: 13px;
    padding: 10px 16px;
  }
}

/**********************************/
/**********************************/

/* Reduce gap between header and page content */
.site-content,
#content,
.ast-separate-container,
.ast-article-post,
.ast-container { padding-top: 0 !important; margin-top: 0 !important; }
#primary,
.ast-separate-container #primary { padding-top: 1em !important; }
@media (min-width: 993px) {
    .ast-separate-container #primary,
    .ast-separate-container.ast-left-sidebar #primary,
    .ast-separate-container.ast-right-sidebar #primary { margin: 0 !important; }
}

/* Shift car page tab nav to left */
#carTabs { justify-content: flex-start !important; padding-left: 0 !important; margin-left: 0 !important; }
#carTabs .nav-link { padding-left: 0.5em; padding-right: 0.5em; }

/* Heading sizes — car single pages */
body #primary h1 { font-size: 1.4rem !important; }
body #primary h2 { font-size: 1.2rem !important; }
body #primary h3 { font-size: 1.0rem !important; }
