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

/* Probite-specific */
.green-underline {
    border-bottom-color: #00f783;
    border-bottom-width: 3px;
    border-bottom-style: solid;
}
.purple-underline {
    border-bottom-color: #35003a;
    border-bottom-width: 3px;
    border-bottom-style: solid;
}

.center {
    display: block;
    text-align: center;
    margin-top: 40px;
}
.center img {
    margin: 0 auto;
}

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

.flex-container {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      margin: 24px 24px 0;
      justify-content: center;
    }

    .flex-item {
      flex: 1 0 calc(25% - 20px);
      max-width: 800px;
      background: white;
      padding: 20px 5px;
      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 */
      color: #000;
    }
    .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;*/
    }

    .probite-vehicle { margin-bottom: 24px; }
    .probite-vehicle-name { margin: 0; font-size: 1.6rem; }
    .probite-vehicle-spec { margin-top: 4px; font-size: 1.05rem; font-weight: 600; color: #35003a; }

    .row-text {
      flex-grow: 1;
      margin-top: 0px;
      margin-bottom: 10px;
      text-align: center;
      font-weight: bold;
      line-height: 1.2;
      font-size: 180%;
      text-transform: capitalize;
    }
    .tagline {
        display: block;
        text-align: center;
        font-size: 60%;
        font-weight: normal;
        line-height: 1.5;
        margin-top: 12px;
    }

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

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

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

    /* Very small devices */
    @media (max-width: 800px) {
      .flex-item {
        flex: 1 0 100%;
      }
    }

.product--label-container {
    position: absolute;
    z-index: 1;
    top: 20px;
    left: 20px;
}

.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 {
    background-color: red;
    color: #fff;
}
.product--label-container .product--label.new {
    background-color: green;
    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-type filter bar (CSS-only; works whether or not injected scripts run) ---- */
.pb-filter-input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.pb-filterbar {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center;
    margin: 12px 24px 0;
}
.pb-filter-legend {
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    color: #6b7280; margin-right: 2px;
}
.pb-chip {
    cursor: pointer; user-select: none;
    padding: 8px 18px; border-radius: 999px;
    border: 2px solid #35003a; background: #fff; color: #35003a;
    font-size: 0.95rem; font-weight: 700; line-height: 1.2;
    text-transform: uppercase; letter-spacing: 0.03em;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.pb-chip:hover { background: #f3e9f6; }

/* ---- Front / Rear sections ---- */
.pb-section { margin: 40px 0 0; }
.pb-section-title {
    margin: 0 24px; padding-bottom: 2px;
    font-size: 1.7rem; color: #35003a;
    border-bottom: 3px solid #00f783;
}
.pb-range { margin-top: 24px; }
.pb-range-title { margin: 0 24px; font-size: 1.25rem; color: #111; }

/* disc column: capped + centred so it doesn't stretch the full screen width on desktop */
.pb-disc-groups { max-width: 920px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.pb-measure-note {
    margin: 10px 0 0; padding: 10px 14px;
    background: #fff8e1; border-left: 4px solid #f5b301; border-radius: 4px;
    font-size: 1rem; color: #5a4500;
}
.pb-size-title {
    margin: 22px 0 0; font-size: 1.05rem; font-weight: 700;
    color: #35003a; text-transform: capitalize;
}

/* ---- disc finish configurator card ---- */
.pb-disc {
    background: #fff; border: 1px solid #ddd; border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin: 12px 0 0; padding: 16px;
}
.pb-disc-head { text-align: center; font-weight: bold; line-height: 1.3; font-size: 1.2rem; }
.pb-disc-head .pb-part { display: block; font-weight: normal; font-size: 0.85rem; color: #555; margin-top: 4px; }
.pb-disc-sub { text-align: center; font-size: 0.95rem; color: #555; margin: 6px 0 14px; }
/* tiles fill the card width evenly instead of clustering in the middle */
.pb-finish-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.pb-finish {
    text-decoration: none; color: #111;
    border: 1px solid #eee; border-radius: 6px; padding: 8px;
    transition: border-color 0.12s, box-shadow 0.12s, transform 0.08s;
}
.pb-finish:hover { border-color: #00f783; box-shadow: 0 2px 8px rgba(0,0,0,0.12); transform: translateY(-2px); }
.pb-finish img { width: 100%; height: auto; display: block; }
.pb-finish-label { display: block; text-align: center; font-weight: 700; font-size: 0.9rem; margin-top: 6px; }
.pb-disc-price { text-align: center; margin-top: 16px; }
.pb-disc-price .pb-from { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: #555; }
.pb-disc-price .price-display { font-weight: bold; font-size: 1.2rem; }

.pb-empty { text-align: center; padding: 32px 24px; color: #666; font-size: 1.05rem; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
           overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---- mobile: tighten cards so product images aren't tiny / squashed ---- */
@media (max-width: 600px) {
    .flex-container { gap: 12px; margin: 16px 12px 0; }
    .flex-item { min-height: auto; padding: 14px 10px; }
    .row-text { font-size: 125%; }
    .pb-section { margin-top: 28px; }
    .pb-section-title { margin: 0 14px; font-size: 1.4rem; }
    .pb-range-title { margin: 0 14px; font-size: 1.1rem; }
    .pb-disc-groups { padding: 0 12px; }
    .pb-disc { padding: 14px 10px; }
    .pb-finish-strip { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
    .pb-finish { padding: 6px; }
    .pb-finish-label { font-size: 0.8rem; }
    .pb-filterbar { margin: 10px 12px 0; gap: 6px; }
    .pb-chip { padding: 6px 12px; font-size: 0.85rem; }
}
