/* Moved from inline <style> in milltek.tab.cfm. */

:root {
    --bg: #0b1120;
    --bg-card: #020617;
    --border: #1e293b;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --accent: #e11d48;
}

.milltek-logo {
    padding: 2.5vh 0;
    background: #000;
}
.milltek-logo img {
    max-width: 280px;
    margin: 0 auto;
}
.carbon-background {
    background-color: #000; /* fallback base */
    background-image:
      /* Vignette first: darkens corners */
      radial-gradient(circle at center, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.75) 100%),

      /* Carbon fiber pattern */
      repeating-linear-gradient(
        135deg,
        #1a1a1a 0px,
        #1a1a1a 2px,
        #111 2px,
        #111 8px
      );

    background-color: #000;
    background-size: cover;
    background-repeat: no-repeat;
}

.vehicle-title::before {
    width: 100%;
    height: 48px;
    display: block;
    content: "";
}
.vehicle-title {
  font-size: clamp(1.4rem, 2.2vw + 0.4rem, 2.4rem);
  line-height: 1.2;
  font-weight: 600;
  max-width: 52rem;   /* keeps line length reasonable on big screens */
  text-wrap: balance; /* more even line breaks in modern browsers */
  hyphens: auto;
  display: inline;
  padding-top: 24px;
  color: #333;
}
/* Smaller qualifier (the bit in brackets) */
.vehicle-title-brackets {
    /*display: block;*/
    font-size: 0.78em;
    font-weight: 400;
    color: var(--text-muted);
}
.vehicle-years {
    display: block;
    font-size: 0.70em;
    font-weight: 400;
    color: var(--text-muted);
}
@media (max-width: 640px) {
  .vehicle-title {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }
}

.return {
    margin-top: 48px;
    margin-left: 24px;
}

.flex-container {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      margin: 48px 48px;
      justify-content: center;
      font-size: 100%;
      color: #333;
    }

    .flex-item {
      flex: 1 0 calc(25% - 20px);
      background: white;
      padding: 20px;
      border: 1px solid #ddd;
      border-radius: 8px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.05);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      min-height: 400px; /* adjust as needed */
      max-width: 25%;
      font-size: 100%;
    }
    .flex-item a {
        text-decoration: none;
    }
    .flex-item a .row-text, .flex-item a > .reduced-price {
        text-decoration: none;
        color: #000;
    }
    .reduced-price {
        color: #000;
    }

    .row-image {
      /*height: 100px;*/
      background: #fff;
      margin-bottom: 10px;
      position: relative;
    }

    .img-contain {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
      max-height: 240px;
    }

    .row-text {
      flex-grow: 1;
      margin-top: 24px;
      margin-bottom: 10px;
      text-align: center;
      font-weight: bold;
      line-height: 1;
    }

    .row-button {
      text-align: center;
      margin: 24px auto;
    }

    /* Tablet: 3 columns */
    @media (max-width: 1024px) {
      .flex-item {
        flex: 1 0 calc(33.333% - 20px);
        max-width: initial;
      }
    }

    /* Mobile: 2 columns */
    @media (max-width: 900px) {
      .flex-item {
        flex: 1 0 calc(50% - 20px);
        max-width: initial;
      }
    }

    /* Very small devices */
    @media (max-width: 800px) {
      .flex-item {
        flex: 1 0 100%;
        max-width: initial;
      }
    }
    
.product--label-container {
    position: absolute;
    z-index: 1;
    top: 20px;
    left: 20px;
}
.product--label-container.milltek-specific {
    right: 20px;
    left: initial;
}

.product--label-container .product--label {
    display: inline-block;
    border-radius: 4px;
    background-color: #007BFF;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    line-height: 20px;
    padding: 0 10px;
    text-transform: uppercase;
    text-align: center;
    z-index: 2;
}
.product--label-container .product--label.clearance, .product--label-container.milltek-specific .product--label.mo {
    background-color: #e41e29;
    color: #fff;
}
.product--label-container .product--label.new {
    background-color: green;
    color: #fff;
}
.product--label-container.milltek-specific .product--label.ec {
    background-color: #3376e6;
    color: #fff;
}
.category-intro {
    padding: 24px;
    text-align: left;
    font-size: 110%;
}
.category-intro h1 {
    display: block;
    margin: initial;
    margin-bottom: 0;
}
.category-intro h3 {
    font-size: 160%;
    font-weight: bold;
}
.category-intro h3:first-of-type {
    margin-top: 0;
}
.product-category-title {
    display: block;
    width: 100%;
    font-size: 180%;
    font-weight: bold;
    color: #555;
}
.center {
    text-align: center;
}
.note {
    margin: 2.5vh auto;
    padding: 24px;
    background: #333;
    color: #fff;
    max-width: 50%;
    border: 6px solid red;
}
    .note h2 {
        font-weight: bold;
        font-size: 160%;
        margin-bottom: 0;
    }
    .note p {
        margin-top: 6px;
    }
    .note a {
        color: #fff;
    }
 @media (max-width: 1024px) {
     .note {
         max-width: 95%;
     }
 }

/* Milltek fitment note on the product card (first line of the ShortDesc
   callout, see includes/milltek.notes.cfm). Amber so it reads as a caution,
   not a feature. */
.milltek-note {
    margin: 6px 0 0;
    padding: 6px 10px;
    border-left: 3px solid #e6a100;
    background: #fff8e6;
    color: #6b5620;
    font-size: 14px;
    line-height: 1.35;
    font-weight: normal;
    text-align: left;
}
.milltek-note__more { color: #9a7a1a; white-space: nowrap; }
