/* Calluna Light - global site font
   IMPORTANT: Add webfont files to: assets/corporate/fonts/calluna/
   Files expected (recommended): Calluna-Light.woff2, Calluna-Light.woff, Calluna-Light.ttf
   If you don't have Calluna licensed, replace with an available webfont or remove the @font-face block.
*/

@font-face {
  font-family: 'Calluna Light';
  src: url('../fonts/calluna/Calluna-Light.woff2') format('woff2'),
       url('../fonts/calluna/Calluna-Light.woff') format('woff'),
       url('../fonts/calluna/Calluna-Light.ttf') format('truetype'),
       /* fallback to the available OTF in the repo */
       url('../fonts/calluna/fonnts.com-Calluna-Lght-.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global font and vertical rhythm */
html, body {
  font-family: 'Calluna Light', 'Calluna', Georgia, 'Times New Roman', serif;
  line-height: 24px;
}

/* Brand variables and palette (use these site-wide; preserve footer gradients) */
:root {
  --brand-grad: linear-gradient(180deg, #f2f2f2 0%, #d9d9d9 100%);
  --brand-grad-hover: linear-gradient(180deg, #e9e9e9 0%, #cfcfcf 100%);
  --brand-100: #f2f2f2;
  --brand-200: #d9d9d9;
  --brand-text: #333333;
  --brand-accent: #2a7b8a; /* accent for links and highlights */
  --brand-grey: #6c757d; /* neutral grey to replace red/danger */
}

/* Apply brand background and base text color */
body {
  background: var(--brand-grad);
  color: var(--brand-text);
}

/* Links and accents */
a {
  color: var(--brand-accent);
}
a:hover, a:focus {
  color: #1e5660;
  text-decoration: underline;
}

/* Primary buttons: use the brand gradient */
.btn-primary {
  background-image: var(--brand-grad);
  background-size: 100% 100%;
  color: var(--brand-text);
  border-color: #cfcfcf;
}
.btn-primary:hover, .btn-primary:focus {
  background-image: var(--brand-grad-hover);
  color: var(--brand-text);
  border-color: #bfbfbf;
}

/* Product card titles and CTA link colors */
.product-item h3, .product-item h3 a {
  color: var(--brand-text);
}
.product-item h3 a:hover {
  color: var(--brand-accent);
}

/* Keep footer and pre-footer styles untouched to preserve their gradients */
/* ⚠️ Do not modify .footer, .footer-gray, .pre-footer or related selectors here */

/* Ensure form controls and common elements inherit the same styling */
button, input, select, textarea, a, p, li, span, h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  line-height: 24px;
}

/* Small utility: tighter headings if needed (optional) */
h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
}

/* Strong overrides so third-party plugin CSS inherit Calluna */
input, textarea, select, button, .uniform-input, .uniform-multiselect, .selector select, .selector, div.button span, .btn, .menu-search input, .menu-search button, .search-box input, .search-box .btn {
  font-family: inherit !important;
  line-height: 24px !important;
}

/* Navigation and header consistency */
.header-navigation, .header-navigation ul, .header-navigation li, .header-navigation a {
  font-family: inherit !important;
  line-height: 24px !important;
}

/* Make sure small UI components also inherit */
.dropdown-menu, .breadcrumb, .list-unstyled, .help-block, .form-control, .form-control input, .form-group label {
  font-family: inherit !important;
  line-height: 24px !important;
}

/* Improve font rendering on various platforms */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Featured Cars — landscape thumbnail (cropped) */
.sale-product .product-item .pi-img-wrapper {
  height: 160px;
  overflow: hidden;
}

/* Navbar and top-level components: gently apply brand gradient */
.navbar-default {
  background-image: var(--brand-grad);
  border-color: #d0d0d0;
}
.navbar-default .navbar-nav > li > a {
  color: var(--brand-text);
}
.navbar-default .navbar-nav > li > a:hover {
  color: var(--brand-accent);
}

/* Page title / header accents */
.page-title, .page-header {
  background: transparent; /* keep content readable over body gradient */
}
.sale-product .product-item .pi-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Slight spacing tweak for featured product titles */
.sale-product .product-item h3 {
  margin-top: 10px;
  margin-bottom: 8px;
}

/* Make all product cards landscape (cropped thumbnails) */
.product-item .pi-img-wrapper {
  height: 140px; /* default landscape height */
  overflow: hidden;
}
.product-item .pi-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .product-item .pi-img-wrapper { height: 120px; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .product-item .pi-img-wrapper { height: 140px; }
}
@media (min-width: 992px) {
  .product-item .pi-img-wrapper { height: 160px; }
}


/* Danger (red) -> Grey overrides */
/* These override Bootstrap/plugin danger classes to use a neutral grey palette without editing vendor files */
.btn-danger {
  background-color: var(--brand-grey) !important;
  color: #ffffff !important;
  border-color: #5a6268 !important;
}
.btn-danger:hover, .btn-danger:focus, .btn-danger:active {
  background-color: #5a6268 !important;
  border-color: #4f585d !important;
}
.label-danger, .badge-danger {
  background-color: var(--brand-grey) !important;
  color: #ffffff !important;
}
.text-danger {
  color: var(--brand-grey) !important;
}
.alert-danger {
  background-color: #f3f3f3 !important; /* pale neutral background */
  border-color: #dedede !important;
  color: var(--brand-text) !important;
}
.panel.panel-danger, .panel-danger > .panel-heading {
  border-color: var(--brand-grey) !important;
}
.panel-danger > .panel-heading {
  background-color: var(--brand-grey) !important;
  color: #ffffff !important;
}
.table > .danger > td, .table > .danger > th {
  background-color: #f6f6f6 !important;
}

/* End danger -> grey overrides */

/* Map steps-block-gray to a neutral background so theme variations pick it up */
.steps-block-gray {
  background: var(--brand-grey) !important;
  color: #ffffff !important;
}

/* Form field and required marker neutralization */
/* Override default .require asterisk and form focus borders (originally red) */
.require {
  color: var(--brand-grey) !important;
}
.content-form-page .form-control:focus {
  border-color: var(--brand-grey) !important;
  box-shadow: none !important;
}
.content-form-page .form-control:focus {
  outline: none !important;
}

.about-us {
  margin-top: 48px;
  color: #798b97; /* force gray text */
}

/* Ensure every text node and link inside the about section uses the theme gray */
.about-us, .about-us * {
  color: #798b97 !important;
}

.about-us a {
  color: #798b97 !important;
  text-decoration: underline;
}

@media (max-width: 767px) {
  .about-us {
    margin-top: 24px;
  }
}

/* Admin image helpers: consistent thumbnail and preview sizing */
.img-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
}

.img-preview-200 {
  width: 200px;
  max-height: 200px;
  object-fit: cover;
  display: block;
}

.img-preview-400 {
  width: 400px;
  max-height: 400px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Footer contacts: make address and phone/email links gray across all pre-footers */
.pre-footer .pre-footer-col address,
.pre-footer .pre-footer-col address a {
  color: var(--brand-grey) !important;
}

/* Quick Links: gray links in the pre-footer */
.pre-footer .pre-footer-col .quick-links,
.pre-footer .pre-footer-col .quick-links a {
  color: var(--brand-grey) !important;
}
.pre-footer .pre-footer-col .quick-links a:hover {
  color: var(--brand-grey) !important;
  text-decoration: underline;
}

/* Product page: make active nav tab color gray (remove red) */
.product-page .nav-tabs > li.active > a,
.product-page .nav-tabs > li.active > a:hover,
.product-page .nav-tabs > li.active > a:focus,
.product-page .nav-tabs .active a {
  color: var(--brand-grey) !important;
  background-color: transparent !important;
  border-color: var(--brand-grey) !important;
  border-bottom-color: var(--brand-grey) !important;
}

/* Ensure non-active tab hover/focus do not show red */
.product-page .nav-tabs > li > a:hover,
.product-page .nav-tabs > li > a:focus {
  color: var(--brand-grey) !important;
  border-color: transparent !important;
}

/* Utility: small meta text in gray for labels like Part # */
.meta-gray {
  color: var(--brand-grey) !important;
}

/* Part number styling: larger and slightly bolder but still gray */
.part-number {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand-grey) !important;
  letter-spacing: 0.2px;
}

/* Part label matching size to part-number */
.part-label {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--brand-grey) !important;
}

/* Breadcrumb: ensure active crumb is gray */
.breadcrumb > .active, .breadcrumb > li.active {
  color: var(--brand-grey) !important;
}
.breadcrumb > li > a:hover, .breadcrumb > li > a:focus {
  color: var(--brand-grey) !important;
}

/* Ensure tab panes don't have red highlights */
.product-page .tab-pane {
  color: var(--brand-text);
}

/* Center emphasized lines inside about section */
.about-us .about-inner strong {
  display: block;
  text-align: center;
}

/* Ensure the about-inner content respects container sizing */
.about-us .about-inner {
  box-sizing: border-box;
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}