/*
Theme Name:   615 Dyno and Performance
Theme URI:    https://615dynoandperformance.com
Description:  Child theme for 615 Dyno and Performance. Dark performance-shop styling, vehicle picker, fitment badges, dropship shipping notices, and CARB compliance messaging. Built to sit on top of the Auto Parts Garage parent theme.
Author:       615 Dyno and Performance
Template:     auto-parts-garage
Version:      1.0.0
Text Domain:  dyno615
*/

/* -------------------------------------------------------------------------
   IMPORTANT: the "Template:" line above must exactly match the FOLDER NAME
   of your active parent theme inside wp-content/themes/.
   Check it in the Hostinger File Manager and correct the line if it differs.
   ------------------------------------------------------------------------- */

:root {
  --d-blue:      #1668d8;
  --d-blue-lift: #3b8cff;
  --d-ink:       #0a0b0d;
  --d-panel:     #14161a;
  --d-line:      #2a2e35;
  --d-mute:      #8b929e;
  --d-paper:     #f4f6f8;
}

/* ---------------------------------------------------------------- TYPE */

body,
.woocommerce {
  text-wrap: pretty;
}

.d615-cond,
.d615 h1, .d615 h2, .d615 h3,
.d615-btn {
  font-family: "Barlow Condensed", "Oswald", Impact, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
}

/* ---------------------------------------------------------------- HEADER BAR */

.d615-topbar {
  background: var(--d-ink);
  color: #fff;
  border-bottom: 3px solid var(--d-blue);
}

.d615-topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.d615-logo img {
  display: block;
  height: 62px;
  width: auto;
}

.d615-topbar-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  align-items: center;
  flex-wrap: wrap;
}

.d615-topbar-nav a {
  font: 700 13px/1 "Barlow Condensed", Oswald, system-ui, sans-serif;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #d5dae2;
  text-decoration: none;
  white-space: nowrap;
}

.d615-topbar-nav a:hover { color: var(--d-blue-lift); }

.d615-topbar-phone {
  font: 800 20px/1 "Barlow Condensed", Oswald, system-ui, sans-serif;
  color: #fff;
  text-decoration: none;
}
.d615-topbar-phone span {
  display: block;
  font: 600 10px/1.4 system-ui, sans-serif;
  letter-spacing: 0.14em;
  color: var(--d-mute);
}

/* ---------------------------------------------------------------- VEHICLE PICKER */

.d615-picker {
  background: var(--d-panel);
  border-top: 1px solid var(--d-line);
  border-bottom: 1px solid var(--d-line);
  padding: 18px 22px;
}

.d615-picker-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
}

.d615-picker-label {
  font: 800 22px/1 "Barlow Condensed", Oswald, system-ui, sans-serif;
  color: #fff;
  letter-spacing: 0.02em;
  margin-right: 6px;
  padding-bottom: 10px;
}
.d615-picker-label em {
  color: var(--d-blue-lift);
  font-style: normal;
}

.d615-field { display: flex; flex-direction: column; gap: 6px; min-width: 150px; }

.d615-field span {
  font: 700 10px/1 system-ui, sans-serif;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--d-mute);
}

.d615-field select {
  appearance: none;
  background: #1d2026 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%238b929e' stroke-width='2'/></svg>") no-repeat right 12px center;
  border: 1px solid var(--d-line);
  color: #fff;
  font: 600 15px/1 system-ui, sans-serif;
  padding: 12px 34px 12px 13px;
  min-height: 46px;
  border-radius: 0;
  cursor: pointer;
}
.d615-field select:focus { outline: 2px solid var(--d-blue); outline-offset: -2px; }
.d615-field select:disabled { opacity: 0.45; cursor: not-allowed; }

.d615-btn {
  background: var(--d-blue);
  color: #fff;
  border: 0;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 30px;
  min-height: 46px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s ease;
}
.d615-btn:hover { background: var(--d-blue-lift); color: #fff; }
.d615-btn[disabled] { background: #3a4048; cursor: not-allowed; }

.d615-picker-reset {
  font: 600 12px/1 system-ui, sans-serif;
  color: var(--d-mute);
  text-decoration: underline;
  align-self: center;
  padding-bottom: 14px;
}

/* ---------------------------------------------------------------- HERO */

.d615-hero {
  position: relative;
  background: #0a0b0d center/cover no-repeat;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
}

.d615-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,11,13,0.92) 0%, rgba(10,11,13,0.55) 55%, rgba(10,11,13,0.15) 100%);
}

.d615-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 22px 48px;
  width: 100%;
}

.d615-kicker {
  font: 700 12px/1 system-ui, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--d-blue-lift);
  margin-bottom: 14px;
}

.d615-hero h1 {
  font-family: "Barlow Condensed", Oswald, Impact, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.94;
  color: #fff;
  margin: 0 0 16px;
  max-width: 15ch;
}

.d615-hero p {
  font: 400 18px/1.6 system-ui, sans-serif;
  color: #cdd3db;
  max-width: 52ch;
  margin: 0 0 26px;
}

.d615-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.d615-btn--ghost {
  background: transparent;
  border: 2px solid #4a5058;
  color: #fff;
}
.d615-btn--ghost:hover { border-color: #fff; background: transparent; }

/* ---------------------------------------------------------------- CATEGORY BAR (shop results) */

.d615-catbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 22px;
  padding: 14px 0 18px;
  border-bottom: 2px solid #e2e5ea;
}

.d615-catbar-label {
  font-family: "Barlow Condensed", "Oswald", Impact, system-ui, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 15px;
  color: #6b727c;
  margin-right: 6px;
}

.d615-catchip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border: 2px solid #d7dbe1;
  border-radius: 2px;
  background: #fff;
  color: #1a1d21 !important;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.d615-catchip i {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: #6b727c;
}
.d615-catchip:hover { border-color: #1668d8; }
.d615-catchip.is-active {
  background: #14171b;
  border-color: #14171b;
  color: #fff !important;
}
.d615-catchip.is-active i { color: #9aa2ad; }

/* ---------------------------------------------------------------- CATEGORY GRID */

.d615-section { max-width: 1440px; margin: 0 auto; padding: 54px 22px; }

.d615-section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  border-bottom: 2px solid #e2e5ea;
  padding-bottom: 12px;
  margin-bottom: 26px;
}

.d615-section-head h2 {
  font-family: "Barlow Condensed", Oswald, system-ui, sans-serif;
  font-weight: 800;
  font-size: 30px;
  margin: 0;
  color: var(--d-panel);
  letter-spacing: 0.01em;
}

.d615-section-head a {
  margin-left: auto;
  font: 700 12px/1 system-ui, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--d-blue);
  text-decoration: none;
}

.d615-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.d615-cat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 132px;
  padding: 18px;
  background: var(--d-panel);
  color: #fff;
  text-decoration: none;
  border-left: 4px solid var(--d-blue);
  transition: background 0.15s ease, transform 0.15s ease;
}
.d615-cat:hover { background: #1d2129; transform: translateY(-2px); color: #fff; }

.d615-cat b {
  font-family: "Barlow Condensed", Oswald, system-ui, sans-serif;
  font-weight: 800;
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.d615-cat i {
  font-style: normal;
  font: 600 11px/1 system-ui, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--d-mute);
}

/* ---------------------------------------------------------------- FITMENT BADGE */

.d615-fits {
  border: 1px solid #d8dce2;
  border-left: 5px solid var(--d-blue);
  background: #f7f9fb;
  padding: 13px 16px;
  margin: 16px 0;
}
.d615-fits em {
  display: block;
  font: 700 10px/1 system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--d-blue);
  font-style: normal;
  margin-bottom: 6px;
}
.d615-fits strong {
  font: 700 17px/1.35 system-ui, sans-serif;
  color: var(--d-panel);
}
.d615-fits small {
  display: block;
  font: 400 13px/1.5 system-ui, sans-serif;
  color: #5a616b;
  margin-top: 5px;
}

/* ---------------------------------------------------------------- NOTICES */

.d615-note {
  border-left: 4px solid #d99a00;
  background: #fff8e6;
  padding: 12px 16px;
  margin: 14px 0;
  font: 400 14px/1.6 system-ui, sans-serif;
  color: #54452a;
}
.d615-note b { color: #8a6200; }

.d615-note--ship {
  border-left-color: var(--d-blue);
  background: #f0f6ff;
  color: #24405f;
}
.d615-note--ship b { color: #14406f; }

.d615-note--stop {
  border-left-color: #b30000;
  background: #fdf0f0;
  color: #5e2020;
}
.d615-note--stop b { color: #8f1414; }

/* ---------------------------------------------------------------- SERVICE STRIP */

.d615-strip {
  background: var(--d-ink);
  color: #fff;
}
.d615-strip-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
}
.d615-strip h3 {
  font-family: "Barlow Condensed", Oswald, system-ui, sans-serif;
  font-weight: 800;
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--d-blue-lift);
  letter-spacing: 0.02em;
}
.d615-strip p {
  margin: 0;
  font: 400 15px/1.6 system-ui, sans-serif;
  color: #b9c0ca;
}

/* ---------------------------------------------------------------- SHOP GRID TWEAKS */

.woocommerce ul.products li.product .price {
  color: var(--d-panel);
  font-weight: 700;
}

.d615-card-fits {
  display: block;
  font: 600 11px/1.4 system-ui, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--d-blue);
  margin: 2px 0 4px;
}

.d615-card-brand {
  display: block;
  font: 600 11px/1.4 system-ui, sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8b929e;
  margin-bottom: 3px;
}

/* ---------------------------------------------------------------- FOOTER */

.d615-footer {
  background: var(--d-ink);
  color: #9aa2ad;
  border-top: 3px solid var(--d-blue);
}
.d615-footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 46px 22px 30px;
  display: grid;
  grid-template-columns: 1.4fr repeat(auto-fit, minmax(160px, 1fr));
  gap: 34px;
}
.d615-footer h4 {
  font: 700 12px/1 system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 14px;
}
.d615-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.d615-footer a { color: #9aa2ad; text-decoration: none; font: 400 14px/1.4 system-ui, sans-serif; }
.d615-footer a:hover { color: #fff; }
.d615-footer img { height: 54px; width: auto; margin-bottom: 14px; }
.d615-footer p { font: 400 14px/1.7 system-ui, sans-serif; margin: 0 0 10px; }
.d615-footer-legal {
  border-top: 1px solid var(--d-line);
  padding: 16px 22px 26px;
  max-width: 1440px;
  margin: 0 auto;
  font: 400 12px/1.6 system-ui, sans-serif;
  color: #666d78;
}

/* ---------------------------------------------------------------- LINKS
   Auto Parts Garage colors links yellow. Blue is the brand. */

.d615-section a,
.d615-hero a,
.d615-strip a,
.d615-footer a,
.d615-fits a,
.d615-note a {
  color: var(--d-blue);
  text-decoration: none;
}

.d615-section a:hover,
.d615-hero a:hover,
.d615-strip a:hover,
.d615-fits a:hover,
.d615-note a:hover {
  color: var(--d-blue-lift);
  text-decoration: underline;
}

.d615-btn,
.d615-btn:hover,
.d615-topbar-nav a,
.d615-topbar-phone { text-decoration: none; }

/* ---------------------------------------------------------------- MOBILE */

@media (max-width: 782px) {
  .d615-topbar-inner { gap: 14px; }
  .d615-logo img { height: 46px; }
  .d615-topbar-nav { gap: 16px; width: 100%; margin-left: 0; }
  .d615-picker-inner { flex-direction: column; align-items: stretch; }
  .d615-field { min-width: 0; }
  .d615-field select { min-height: 48px; }
  .d615-btn { min-height: 48px; justify-content: center; }
  .d615-picker-label { padding-bottom: 4px; }
  .d615-hero { min-height: 300px; }
}


/* ---- Frequently bought with ---------------------------------------- */

.d615-addons {
    max-width: 1180px;
    margin: 40px auto 0;
    padding: 0 22px;
}

.d615-addons-head {
    font-family: 'Barlow Condensed', 'Oswald', Impact, system-ui, sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 20px;
    color: #0e1114;
    margin: 0 0 12px;
}

.d615-addons-list {
    display: flex;
    flex-direction: column;
    border: 1px solid #e4e9ee;
}

.d615-addon {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-top: 1px solid #eef1f4;
}

.d615-addon:first-child { border-top: none; }

.d615-addon-text a {
    font-size: 15px;
    font-weight: 700;
    color: #0e1114;
    text-decoration: none;
}

.d615-addon-text a:hover { color: #0f62ce; }

.d615-addon-text small {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    color: #5b6672;
}

.d615-addon-price {
    font-size: 16px;
    font-weight: 800;
    color: #0e1114;
    white-space: nowrap;
}

.d615-addon-price del { font-weight: 500; opacity: 0.55; }

.d615-addon-add {
    padding: 10px 18px;
    border: 1.5px solid #0f62ce;
    color: #0f62ce;
    font-family: 'Barlow Condensed', 'Oswald', Impact, system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

.d615-addon-add:hover {
    background: #0f62ce;
    color: #fff;
}

.d615-addon-add.added { display: none; }

@media (max-width: 560px) {
    .d615-addon {
        grid-template-columns: 1fr auto;
        row-gap: 10px;
    }
    .d615-addon-text { grid-column: 1 / -1; }
}
