/* STOCKSELECT - dedicated stock page */

.stock-page {
  background: #f7f8fa;
  color: #20242a;
  min-height: 70vh;
}

.stock-intro {
  padding: 82px 7% 66px;
  background: #fff;
  border-bottom: 1px solid #e7e9ed;
}

.stock-intro .eyebrow,
.catalogue-heading .eyebrow {
  color: #66849f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 0 0 15px;
}

.stock-intro h1 {
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 500;
  letter-spacing: -2px;
  margin: 0 0 18px;
}

.stock-intro h1 em,
.catalogue-heading h2 em {
  color: #66849f;
  font-style: normal;
}

.stock-intro > p:not(.eyebrow) {
  color: #69727d;
  font-size: 16px;
  line-height: 1.8;
  max-width: 650px;
  margin: 0;
}

.stock-intro-line {
  color: #87919c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-top: 34px;
}

.stock-catalogue {
  padding: 65px 7% 90px;
}

.catalogue-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
}

.catalogue-heading h2 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -1px;
  margin: 0;
}

.stock-count {
  color: #69727d;
  font-size: 13px;
  padding-bottom: 5px;
}

.stock-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.stock-filters {
  background: #fff;
  border: 1px solid #e6e9ed;
  border-radius: 5px;
  padding: 23px;
  position: sticky;
  top: 20px;
}

.filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 25px;
}

.filter-heading h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}

.filter-heading button {
  background: none;
  border: 0;
  color: #66849f;
  cursor: pointer;
  font-size: 11px;
  padding: 5px 0;
}

.filter-label {
  display: block;
  color: #454d57;
  font-size: 12px;
  font-weight: 600;
  margin: 19px 0 8px;
}

.stock-filters select,
.stock-filters input[type="number"] {
  width: 100%;
  min-width: 0;
  height: 43px;
  border: 1px solid #dfe3e8;
  border-radius: 3px;
  background: #fff;
  color: #252a30;
  padding: 0 11px;
  font: inherit;
  font-size: 12px;
}

.stock-filters select:focus,
.stock-filters input:focus {
  outline: 1px solid #66849f;
  border-color: #66849f;
}

.price-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.filter-divider {
  height: 1px;
  background: #e9ebef;
  margin: 25px 0;
}

.exclusive-filter {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.exclusive-filter input {
  accent-color: #66849f;
  margin-top: 3px;
}

.exclusive-filter strong {
  display: block;
  font-size: 11px;
  letter-spacing: .5px;
}

.exclusive-filter small {
  display: block;
  color: #7b838d;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 5px;
}

.stock-results {
  min-width: 0;
}

.results-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #7b838d;
  font-size: 11px;
  margin: 0 0 18px;
}

.results-toolbar span:first-child {
  color: #343b44;
  font-weight: 600;
}

.stock-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.stock-page-grid .vehicle-card {
  background: #fff;
  border: 1px solid #e8eaee;
  border-radius: 4px;
  overflow: hidden;
  min-width: 0;
}

.stock-page-grid .vehicle-image {
  position: relative;
  height: 220px;
  background: #f0f2f4;
  overflow: hidden;
}

.stock-page-grid .vehicle-photo {
  display: block;
  width: 160%;
  height: 160%;
  max-width: none;
  object-fit: contain;
  padding: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.stock-page-grid .stock-tag {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 13px;
  background: #fff;
  color: #4c5864;
  font-size: 9px;
  letter-spacing: 1px;
  padding: 7px 9px;
}

.stock-page-grid .vehicle-info {
  padding: 20px;
}

.stock-page-grid .vehicle-info h3 {
  color: #20242a;
  font-size: 20px;
  font-weight: 600;
  margin: 7px 0 13px;
}

.stock-page-grid .vehicle-meta {
  color: #7a838d;
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: .3px;
}

.stock-page-grid .vehicle-bottom {
  border-top: 1px solid #eceef1;
  margin-top: 17px;
  padding-top: 15px;
}

.stock-page-grid .vehicle-bottom strong {
  color: #20242a;
  font-size: 21px;
  font-weight: 600;
}

.stock-contact-link {
  display: inline-block;
  color: #66849f;
  font-size: 11px;
  font-weight: 600;
  margin-top: 13px;
  text-decoration: none;
}

.stock-contact-link:hover {
  text-decoration: underline;
}

.coming-soon {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: #89939e;
  letter-spacing: 2px;
  font-size: 10px;
}

.coming-soon strong {
  color: #414b56;
  font-size: 15px;
}

.stock-loading,
.stock-empty {
  color: #7b838d;
  font-size: 13px;
  line-height: 1.7;
  padding: 25px 0;
}

.stock-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: #20242a;
  color: #fff;
  padding: 27px 7%;
  font-size: 10px;
  letter-spacing: 1.5px;
}

.stock-footer a {
  color: #b7c6d4;
  text-decoration: none;
}

@media (max-width: 900px) {
  .stock-layout {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 20px;
  }

  .stock-page-grid {
    gap: 14px;
  }

  .stock-page-grid .vehicle-image {
    height: 185px;
  }
}

@media (max-width: 680px) {
  .stock-intro {
    padding: 55px 6% 45px;
  }

  .stock-catalogue {
    padding: 42px 6% 60px;
  }

  .catalogue-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .stock-layout {
    grid-template-columns: 1fr;
  }

  .stock-filters {
    position: static;
  }

  .stock-page-grid {
    grid-template-columns: 1fr;
  }

  .stock-page-grid .vehicle-image {
    height: 220px;
  }

  .results-toolbar {
    flex-wrap: wrap;
  }

  .stock-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
