/* Sale & Co Pty Ltd — shared public identity. Status colours retain their meaning. */
:root {
  --sale-ink: #15324f;
  --sale-accent: #c77b42;
  --sale-button: #15324f;
  --sale-accent-dark: #355e7d;
  --sale-paper: #f5f7fa;
  --sale-muted: #526475;
  --sale-line: #dbe4ec;
  --gem-forest: var(--sale-ink);
  --gem-green: #355e7d;
  --gem-gold: var(--sale-accent);
  --gem-gold-dark: var(--sale-accent-dark);
  --gem-cream: var(--sale-paper);
  --gem-ink: #172b3a;
  --miller-black: var(--sale-ink);
  --miller-gold: var(--sale-accent);
  --miller-gold-soft: rgba(199,123,66,.12);
  --au-ink: var(--sale-ink);
  --au-sand: var(--sale-accent);
  --au-paper: var(--sale-paper);
  --au-muted: var(--sale-muted);
  --accent-color: var(--sale-accent);
  --heading-color: var(--sale-ink);
  --default-color: var(--gem-ink);
  --background-color: var(--sale-paper);
  --contrast-color: #fff;
  --nav-hover-color: var(--sale-accent-dark);
  --bs-primary: var(--sale-accent);
  --bs-primary-rgb: 199,123,66;
  --bs-link-color: var(--sale-accent-dark);
}
body { background: var(--sale-paper) !important; color: var(--gem-ink) !important; }
body .main, .category-page .main, .product-details-page .product-details.section { background: var(--sale-paper) !important; }
body a { color: var(--sale-accent-dark); }
body a:hover { color: var(--sale-ink); }
::selection { background: #edbd95; color: var(--sale-ink); }
:focus-visible { outline-color: var(--sale-accent); }

#header.miller-2026-header .main-header { background: #fff !important; border-bottom-color: var(--sale-line) !important; box-shadow: 0 5px 20px rgba(21,50,79,.06) !important; }
#header.miller-2026-header .miller-logo { width: 218px; height: 74px; padding: 7px 8px !important; background: transparent !important; }
#header.miller-2026-header .miller-logo img { width: 100% !important; height: auto !important; max-height: 62px !important; object-fit: contain; }
#header.miller-2026-header .main-menu-list .nav-current > a,
#header.miller-2026-header .main-menu-list .nav-current > a:hover { background: var(--sale-button) !important; border-color: var(--sale-button) !important; color: #fff !important; box-shadow: none !important; }
#header.miller-2026-header .search-expand-btn:hover,
#header.miller-2026-header .account-dropdown .user-btn:hover { background: var(--sale-accent-dark) !important; border-color: var(--sale-accent-dark) !important; color: #fff !important; }
.page-title, .page-title.light-background { background: var(--sale-paper) !important; border-color: var(--sale-line); }
.page-title .breadcrumbs ol, .page-title .breadcrumbs .current { color: var(--sale-muted) !important; }
.light-background { --background-color: var(--sale-paper); }
.au-category-icon { display: inline-block; width: 18px; height: 18px; flex: 0 0 18px; vertical-align: -.15em; }
#header.miller-2026-header .main-menu-list > li > .au-category-link,
.au-stock-tabs > .au-category-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.au-category-title { display: flex; align-items: center; gap: 10px; }
.au-category-title .au-category-icon { width: .8em; height: .8em; flex-basis: .8em; color: var(--sale-accent-dark); }
.btn-primary, .cta-button, .hero-cta, .au-inline-button { background: var(--sale-button) !important; border-color: var(--sale-button) !important; color: #fff !important; }
.btn-primary:hover, .cta-button:hover, .hero-cta:hover, .au-inline-button:hover { background: var(--sale-accent-dark) !important; border-color: var(--sale-accent-dark) !important; color: #fff !important; }
.btn-dark:hover { background: var(--sale-accent-dark) !important; color: #fff !important; }
.product-details-page .secondary-action .bi-cart-check { color: #fff !important; }

.au-home .au-category-hero, .au-stock { background: var(--sale-paper); }
.au-home-intro h1 em, .au-eyebrow, .au-home-buying-strip i, .au-buying-steps span { color: var(--sale-accent-dark); }
.au-home-intro-copy p, .au-category-cover > p, .au-home-buying-strip { color: var(--sale-muted); }
.au-home-buying-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 24px;
  padding: 16px 0;
  border: 1px solid #dbe4ec;
  border-radius: 16px;
  background: #edf2f6;
  color: var(--sale-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.au-home-buying-strip > span {
  min-width: 0;
  justify-content: center;
  gap: 12px;
  padding: 8px 24px;
}
.au-home-buying-strip > span + span { border-left: 1px solid #dbe4ec; }
.au-home-buying-strip i {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.65);
  font-size: 20px;
}
@media (max-width: 767px) {
  .au-home-buying-strip {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    gap: 0;
    margin-top: 18px;
    padding: 4px 18px;
    font-size: 13px;
  }
  .au-home-buying-strip > span { justify-content: flex-start; padding: 14px 0; }
  .au-home-buying-strip > span + span { border-left: 0; border-top: 1px solid #dbe4ec; }
}
.au-main-category-card { border-color: var(--sale-line); }
.au-main-category-card:hover { box-shadow: 0 12px 35px rgba(21,50,79,.09); border-color: var(--sale-accent); }
.au-category-arrow { background: #edf2f6; color: var(--sale-accent-dark); }
.au-category-types a:hover { color: var(--sale-accent-dark); }
.au-stock-tabs > a.is-active, .au-stock-tabs > a:not(.au-all-stock):hover { background: var(--sale-button); border-color: var(--sale-button); color: #fff; }
.au-stock-tabs > a { background: #fff; border-color: var(--sale-line); }
.au-stock-image span { color: var(--sale-ink); }
.au-stock-body h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  line-height: 1.25;
  height: 2.5em;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.au-stock-price { flex-direction: column; align-items: flex-start; gap: 5px; }
.au-stock-price > span { display: block; width: 100%; }
.category-page .inventory-product-title {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  line-height: 1.2;
  height: 2.4em;
  min-height: 2.4em;
  padding: 0 8px;
  margin: 14px 0 10px !important;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.category-page .inventory-product-card .homepage-price-grid {
  grid-template-columns: minmax(0, 1fr);
}
.category-page .inventory-product-card .homepage-product-labels {
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
}
.category-page .inventory-product-card .homepage-product-labels > .product-category,
.category-page .inventory-product-card .homepage-product-labels > .homepage-hours-badge {
  width: 100% !important;
  margin-left: 0;
  white-space: normal;
  overflow: visible !important;
  text-overflow: clip;
  overflow-wrap: anywhere;
}
.au-buying-panel, .au-resource-card { background: var(--sale-paper); }
.au-resource-card { border-top-color: var(--sale-accent); }
.au-last-cta { background: var(--sale-ink) !important; }
.rebrand-trust-strip { background: linear-gradient(135deg, #15324f, #426982) !important; }
.au-last-cta .au-eyebrow { color: #edbd95 !important; }
.rebrand-trust-strip i { color: #a87312 !important; }
.au-last-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 16px;
  width: auto;
  max-width: 100%;
  min-height: 56px;
  padding: 16px 28px;
  font-size: 16px;
  line-height: 1.5;
}
.au-last-cta .btn-primary > i { flex-shrink: 0; line-height: 1; }
.index-page .hero.section { background: linear-gradient(135deg, #10283f 0%, #15324f 58%, #2b506f 58%, #426982 100%) !important; }
.index-page .hero.section::before { background: none !important; }
.index-page .hero .hero-title span { color: #edbd95 !important; }
.index-page .gem-reviews { background: var(--sale-paper) !important; }

/* Hiatt-style photo and copy, followed by buying highlights and the catalogue. */
.au-home #hero .hero-container {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  padding-top: clamp(48px, 6vw, 82px) !important;
  padding-bottom: clamp(48px, 6vw, 82px) !important;
}
.au-home #hero .hero-visuals { order: 1; min-width: 0; }
.au-home #hero .hero-content { order: 2; min-width: 0; }
.au-home #hero .hero-visuals img { display: block; width: 100%; height: auto; }
.au-home #hero .hero-title {
  font-size: clamp(44px, 4.7vw, 66px) !important;
  line-height: 1.04 !important;
  letter-spacing: -2px !important;
  margin-bottom: 24px;
}
.au-home #hero .au-eyebrow { font-size: 11px !important; color: #edbd95 !important; }
.au-home #hero .hero-description { line-height: 1.7; margin-bottom: 30px; }
.au-home #hero .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 0; }
.au-home #hero .hero-actions > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}
.au-home #hero .au-hero-location { font-size: 12px !important; margin: 22px 0 0; }
.au-home .rebrand-trust-strip { margin-top: 0 !important; padding-top: 0; }
.au-home .rebrand-trust-strip .trust-strip-item { font-size: 13px; }
.au-home .rebrand-trust-strip .trust-strip-item i { flex-shrink: 0; }
.au-home .au-category-hero { padding-top: 48px; }
@media (max-width: 1199px) {
  .au-home #hero .hero-container { grid-template-columns: 1fr !important; gap: 32px; }
  .au-home #hero .hero-visuals { width: 100%; max-width: 680px; margin: 0 auto; }
  .au-home #hero .hero-content { width: 100%; max-width: 680px; margin: 0 auto; }
  .au-home #hero .hero-title { font-size: clamp(40px, 6vw, 64px) !important; }
  .au-home #hero .hero-visuals img { transform: none; }
}
@media (max-width: 575px) {
  .au-home #hero .hero-container { padding: 28px 20px 34px !important; gap: 26px; }
  .au-home #hero .hero-title { font-size: clamp(34px, 9.8vw, 48px) !important; letter-spacing: -1px !important; }
  .au-home #hero .hero-visuals img { border-width: 5px !important; }
  .au-home #hero .hero-actions > a { width: 100%; }
  .au-home .au-category-hero { padding-top: 32px; }
}

.shipping-info .delivery-card { border-color: var(--sale-line) !important; box-shadow: 0 10px 30px rgba(21,50,79,.05) !important; }
.shipping-info .delivery-card p { color: #505b60 !important; }
.shipping-info .delivery-card .card-icon { background: #edf2f6 !important; color: var(--sale-accent-dark) !important; }
/* Detail-page titles override the shared 17px card heading rule. */
.product-details-page .product-details h1.product-name {
  font-size: clamp(36px, 3.3vw, 44px) !important;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 767px) {
  .product-details-page .product-details h1.product-name {
    font-size: clamp(28px, 7.5vw, 32px) !important;
  }
}
.product-details-page .main-showcase, .product-details-page .thumbnail-container,
.product-details-page .countdown > div, .product-details-page .purchase-section,
.product-details-page .benefits-list, .product-details-page .spec-row:nth-child(odd) { background: var(--sale-paper) !important; }
.product-details-page .image-nav-btn { background: rgba(21,50,79,.92) !important; }
.product-details-page .badge-category { background: #edf2f6 !important; border-color: #dbe4ec !important; }
.product-details-page .action-buttons button.secondary-action:not(#btn_for_bidd) { background: var(--sale-button) !important; border-color: var(--sale-button) !important; }
.product-details-page .action-buttons button.secondary-action:not(#btn_for_bidd):hover { background: var(--sale-accent-dark) !important; }

#footer.footer { background: radial-gradient(circle at 10% 0%, rgba(199,123,66,.13), transparent 24%), linear-gradient(135deg, #10283f 0%, #15324f 60%, #355e7d 100%) !important; }
#footer .footer-logo-link { display: inline-flex; background: var(--sale-paper); border-radius: 10px; padding: 16px 18px; }
#footer .footer-logo-link img { background: transparent; width: 240px !important; max-width: 100% !important; height: auto !important; max-height: 90px !important; filter: none !important; }
.footer .footer-contact i, .footer .legal-links a:hover, #footer a:hover { color: #edbd95 !important; }
.au-footer-note { color: #c6c7c5; }
.scroll-top { background: var(--sale-accent-dark) !important; }

/* The standalone inspection report uses the same identity and retains green grades. */
.inspection-report-page { background: var(--sale-paper) !important; }
.insp-toolbar, .insp-table-head { background: var(--sale-ink); }
.insp-toolbar button { background: var(--sale-accent-dark); color: #fff; }
.insp-eyebrow { color: var(--sale-accent-dark); }
.insp-title-row h1, .insp-section h2, .insp-check-section h2, .insp-summary h2,
.insp-table-row > span:first-child, .inspection-report-page .insp-footer strong { color: var(--sale-ink) !important; }
.insp-metrics > div, .insp-id-grid > div, .insp-summary { background: var(--sale-paper); border-color: var(--sale-line); }
.insp-rating-key { background: #f2f5f8; border-color: #dbe4ec; }
.inspection-report-page .insp-footer { border-top-color: var(--sale-accent); }
.insp-table-row:nth-child(odd) { background: #f8fafc; }

/* Keep every product photo complete inside a consistent white frame. */
.au-stock-image,
.index-page .best-sellers .homepage-product-frame,
.category-page .inventory-product-frame {
  aspect-ratio: 4 / 3;
  background: #fff !important;
}
.au-stock-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  background: #fff;
}
.index-page .best-sellers .homepage-product-frame img,
.category-page .inventory-product-frame img {
  object-fit: contain !important;
  object-position: center !important;
  background: #fff;
  transform: none !important;
}
.product-details-page .product-gallery .main-showcase,
.product-details-page .product-gallery .image-zoom-container,
.product-details-page .thumbnail-container {
  background: #fff !important;
}
.product-details-page .product-gallery .main-showcase .image-zoom-container {
  aspect-ratio: 4 / 3;
}
.product-details-page .product-gallery .main-product-image {
  object-fit: contain !important;
  object-position: center;
  background: #fff;
}
.product-details-page .thumbnail-container {
  align-items: center;
}
.product-details-page .thumbnail-container .thumbnail-wrapper {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  flex: 0 0 80px;
  width: 80px;
  height: 60px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
}
.product-details-page .thumbnail-container .thumbnail-wrapper img {
  display: block;
  width: auto;
  height: var(--gallery-thumb-height, 100%);
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
}
.account .product-image,
.account img[src*="assets/vehicles/"] {
  background: #fff !important;
}
.account img[src*="assets/vehicles/"] {
  object-fit: contain !important;
  object-position: center;
}
@media(max-width:575px) {
  #header.miller-2026-header .main-header-row { gap: 8px !important; }
  #header.miller-2026-header .miller-logo { width: min(205px,calc(100vw - 178px)); height: 62px; padding: 5px 0 !important; }
  #header.miller-2026-header .miller-header-tools { gap: 6px !important; }
  #header.miller-2026-header .miller-header-tools .mobile-header-search-toggle,
  #header.miller-2026-header .miller-header-tools .miller-mobile-toggle,
  #header.miller-2026-header .miller-header-tools .header-action-btn { width: 40px !important; min-width: 40px !important; height: 40px !important; flex: 0 0 40px !important; padding: 0 !important; }
}
@media print {
  .inspection-report-page { background: #fff !important; }
}

/* Keep desktop search within its button slot; the field opens below it. */
@media (min-width: 1200px) {
  #header.miller-2026-header .desktop-search-form.collapsed-search,
  #header.miller-2026-header .desktop-search-form.collapsed-search.search-open,
  #header.miller-2026-header .desktop-search-form.collapsed-search.active,
  #header.miller-2026-header .desktop-search-form.collapsed-search:focus-within {
    position: relative !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    flex: 0 0 48px !important;
    overflow: visible !important;
  }
  #header.miller-2026-header .desktop-search-form.collapsed-search .input-group,
  #header.miller-2026-header .desktop-search-form.collapsed-search.search-open .input-group,
  #header.miller-2026-header .desktop-search-form.collapsed-search.active .input-group,
  #header.miller-2026-header .desktop-search-form.collapsed-search .input-group:focus-within {
    position: relative !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    transition: none !important;
  }
  #header.miller-2026-header .desktop-search-form.collapsed-search .form-control {
    position: absolute !important;
    top: calc(100% + 12px) !important;
    right: 0 !important;
    left: auto !important;
    margin: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none;
  }
  #header.miller-2026-header .desktop-search-form.collapsed-search.search-open .form-control {
    width: 320px !important;
    max-width: 320px !important;
    height: 48px !important;
    padding: 0 16px !important;
    border: 1px solid var(--sale-line) !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--sale-ink) !important;
    box-shadow: 0 14px 34px rgba(21,50,79,.16) !important;
    opacity: 1 !important;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
  }
}
