/* ==========================================================================
   AutoQuoto Inventory + VDP page stylesheet v2.0
   Linked only from Inventory and the Vehicles template (VDP).
   ========================================================================== */

/* ----- Numbered pager + scroll-to-results ----- */
/* AQ numbered pager + icon recolor + scroll-to-results */

  .shop_col {
    scroll-margin-top: 88px;
  }
  html {
    scroll-behavior: smooth;
  }
  .w-pagination-wrapper {
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin-top: 36px;
    margin-bottom: 8px;
  }
  .aq-pager-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  .w-pagination-previous-icon,
  .w-pagination-next-icon {
    display: none !important;
  }
  .w-pagination-previous,
  .w-pagination-next,
  .aq-page-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #D5DCE8;
    color: #0B2D6B;
    font-family: Outfit, Inter, sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }
  .aq-page-btn:hover,
  .w-pagination-previous:hover,
  .w-pagination-next:hover {
    background: #1F6FEB;
    border-color: #1F6FEB;
    color: #fff;
  }
  .aq-page-btn.w--current {
    background: #0B2D6B;
    border-color: #0B2D6B;
    color: #fff;
  }
  .w-pagination-previous.is-list-pagination-disabled,
  .w-pagination-next.is-list-pagination-disabled,
  .is-list-pagination-disabled {
    background: #F4F6F9 !important;
    border-color: #E6EAF0 !important;
    color: #A0AAB8 !important;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 1;
  }
  .aq-page-dots {
    color: #5B6B82;
    padding: 0 2px;
    font-family: Outfit, Inter, sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 40px;
    user-select: none;
  }
  @media (max-width: 479px) {
    .w-pagination-wrapper,
    .aq-pager-pages { gap: 6px; }
    .w-pagination-previous,
    .w-pagination-next,
    .aq-page-btn {
      width: 36px;
      height: 36px;
      min-width: 36px;
      font-size: 14px;
      border-radius: 8px;
    }
    .aq-page-dots { line-height: 36px; font-size: 14px; }
  }

/* ----- Card footer pin + VDP similar-vehicle grid ----- */
/* AQ card footer pin: Inventory + VDP similar — prices/buttons share a baseline in each row */
.shop_list,
.shop_list-2,
.shop_list-3,
.compare_list {
  align-items: stretch !important;
}
.shop_item,
.shop_item-2,
.shop_item-3,
.compare_item {
  display: flex !important;
  flex-direction: column !important;
  align-self: stretch !important;
  height: auto !important;
}
.shop_item .product__block,
.shop_item-2 .product__block,
.shop_item-3 .product__block,
.compare_item .product__block {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto;
  height: 100% !important;
  min-height: 100%;
}
.shop_item .prod__images,
.shop_item-2 .prod__images,
.shop_item-3 .prod__images,
.compare_item .prod__images {
  flex: 0 0 auto;
}
.shop_item .prod_content,
.shop_item-2 .prod_content,
.shop_item-3 .prod_content,
.compare_item .prod_content {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto;
  min-height: 0;
}
.shop_item .bottom_row,
.shop_item-2 .bottom_row,
.shop_item-3 .bottom_row,
.compare_item .bottom_row {
  margin-top: auto !important;
}

/* VDP similar cards: 2×3 spec grid + View details label (Inventory already has these) */
.compare_item .pro__spec_row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px;
  border-top: 1px solid #E9E9E9;
  margin-top: 20px;
  padding-top: 20px;
}
.compare_item .spec__row {
  display: flex !important;
  align-items: center;
  gap: 8px;
  width: calc(50% - 8px);
  box-sizing: border-box;
}
.compare_item .view_details > div:empty::before {
  content: "View details";
}

/* Card footer rhythm: 16px spec→divider, 16px divider→price, 12px price→buttons */
.shop_item .pro__spec_row,
.shop_item-2 .pro__spec_row,
.shop_item-3 .pro__spec_row,
.compare_item .pro__spec_row {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  padding-bottom: 16px !important;
  margin-bottom: 0 !important;
}
.shop_item .spec__row,
.shop_item-2 .spec__row,
.shop_item-3 .spec__row,
.compare_item .spec__row {
  height: auto !important;
  overflow: visible !important;
  flex-shrink: 0;
}
.shop_item .bottom_row,
.shop_item-2 .bottom_row,
.shop_item-3 .bottom_row,
.compare_item .bottom_row {
  display: flex !important;
  flex-wrap: wrap !important;
  margin-top: auto !important;
  padding-top: 16px !important;
  row-gap: 12px !important;
  column-gap: 8px !important;
}
.shop_item .bottom_row .prod__price,
.shop_item-2 .bottom_row .prod__price,
.shop_item-3 .bottom_row .prod__price,
.compare_item .bottom_row .prod__price,
.shop_item .bottom_row .cfp_btn,
.shop_item-2 .bottom_row .cfp_btn,
.shop_item-3 .bottom_row .cfp_btn,
.compare_item .bottom_row .cfp_btn {
  width: 100%;
  margin: 0 !important;
}

/* ----- Estimated monthly payment layout ----- */
/* AQ estimated monthly: list price left (slightly smaller) + Est. monthly $X* on the right, same row */
.aq-pay-row {
  display: flex !important;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
  width: 100%;
  box-sizing: border-box;
  flex-wrap: nowrap;
}
.shop_item .bottom_row .aq-pay-row .prod__price,
.shop_item-2 .bottom_row .aq-pay-row .prod__price,
.shop_item-3 .bottom_row .aq-pay-row .prod__price,
.compare_item .bottom_row .aq-pay-row .prod__price {
  width: auto !important;
  flex: 0 1 auto;
  margin: 0 !important;
  text-align: left !important;
  font-size: 24px !important;
  line-height: 1.1 !important;
}
.aq-est-monthly {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 5px;
  text-align: right;
  white-space: nowrap;
  margin-left: auto;
  flex: 0 0 auto;
  line-height: 1.2;
}
.aq-est-label {
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #334155;
  letter-spacing: 0;
}
.aq-est-amt {
  font-family: Outfit, Inter, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #0B2D6B;
  letter-spacing: -0.01em;
}
.aq-est-monthly[hidden] { display: none !important; }
.aq-pay-disclaimer {
  font-family: Inter, sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.5;
  color: #6B7A90;
  text-align: center;
  max-width: 600px;
  width: 100%;
  margin: 24px auto 0;
  padding: 0 20px;
  box-sizing: border-box;
  text-wrap: balance;
}
/* Keep the pager centered on the card-grid column; disclaimer shares that column. */
.shop_col .w-pagination-wrapper {
  width: 100%;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}
.shop_col .aq-pay-disclaimer {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Home trust items: match VDP pill treatment. Side label stays. */
.aq-trust-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px !important;
}
.aq-trust-it {
  display: inline-flex !important;
  align-items: center;
  gap: 8px !important;
  background: #FFFFFF;
  border: 1px solid #E3E9F2;
  box-shadow: 0 1px 2px rgba(11, 45, 107, 0.04);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: Inter, sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #0B2D6B !important;
  line-height: 1.2;
  box-sizing: border-box;
}
@media screen and (max-width: 767px) {
  .aq-trust-items {
    justify-content: center;
    gap: 12px !important;
  }
  .aq-trust {
    align-items: center !important;
  }
}
@media screen and (max-width: 767px) {
  .shop_item .bottom_row .aq-pay-row .prod__price,
  .shop_item-2 .bottom_row .aq-pay-row .prod__price,
  .shop_item-3 .bottom_row .aq-pay-row .prod__price,
  .compare_item .bottom_row .aq-pay-row .prod__price {
    font-size: 20px !important;
  }
}
