/* Wolf Auto Parts — Site Layout Styles
   Header, Footer, Homepage, Cart
   Design tokens defined in wolf-parts-search.css — reused here via var() */

/* ================================================================
   BASE
   ================================================================ */

html {
  font-size: 62.5%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--wolf-bg, #fff);
  color: var(--wolf-text, #333);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ================================================================
   HEADER
   ================================================================ */

.wolf-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

/* --- Topbar --- */
.wolf-header__topbar {
  background: var(--wolf-blue);
  color: #fff;
  font-size: 1.2rem;
  text-align: center;
  padding: 0.45rem 1rem;
  letter-spacing: 0.02em;
}

.wolf-header__topbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.wolf-header__topbar a:hover {
  text-decoration: underline;
}

/* --- Main bar --- */
.wolf-header__main {
  background: var(--wolf-bg);
  border-bottom: 1px solid var(--wolf-border);
}

.wolf-header__main-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
}

/* Logo */
.wolf-header__logo {
  flex-shrink: 0;
}

.wolf-header__logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* Search wrapper */
.wolf-header__search {
  flex: 1;
  min-width: 0;
}

/* Search button (fake input) */
.wolf-header__search-btn {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--wolf-bg-subtle);
  border: 1px solid var(--wolf-border);
  border-radius: 6px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  color: var(--wolf-text-muted);
  font-size: 1.4rem;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wolf-header__search-btn:hover {
  border-color: var(--wolf-border-light);
  box-shadow: 0 0 0 2px rgba(27, 58, 107, 0.08);
}

.wolf-header__search-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--wolf-text-muted);
}

.wolf-header__search-btn span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Icon buttons (garage, cart) */
.wolf-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.wolf-header__icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: var(--wolf-text);
  transition: background 0.12s ease, color 0.12s ease;
}

.wolf-header__icon-btn:hover {
  background: var(--wolf-bg-subtle);
  color: var(--wolf-blue);
}

.wolf-header__icon-btn svg {
  width: 22px;
  height: 22px;
}

/* Badge */
.wolf-header__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wolf-gold);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50%;
  padding: 0 4px;
  line-height: 1;
  pointer-events: none;
}

/* Hamburger */
.wolf-header__hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--wolf-text);
  padding: 0;
  flex-shrink: 0;
}

.wolf-header__hamburger svg {
  width: 24px;
  height: 24px;
}

/* --- Nav bar --- */
.wolf-header__nav {
  background: var(--wolf-blue);
}

.wolf-header__nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.wolf-header__nav-inner::-webkit-scrollbar {
  display: none;
}

.wolf-header__nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.3rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.12s ease, background 0.12s ease;
  border-bottom: 2px solid transparent;
}

.wolf-header__nav-link:hover,
.wolf-header__nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-bottom-color: var(--wolf-gold);
}

/* ================================================================
   HEADER — MOBILE (max-width: 767px)
   ================================================================ */

@media (max-width: 767px) {
  .wolf-header__main-inner {
    padding: 0.6rem 1rem;
    gap: 0.5rem;
  }

  .wolf-header__logo img {
    height: 32px;
  }

  .wolf-header__search-btn span {
    display: none;
  }

  .wolf-header__search-btn {
    flex: 0 0 auto;
    padding: 0.6rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    justify-content: center;
  }

  .wolf-header__hamburger {
    display: flex;
  }

  /* Collapse nav */
  .wolf-header__nav {
    display: none;
  }

  .wolf-header__nav.is-open {
    display: block;
  }

  .wolf-header__nav-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow-x: visible;
  }

  .wolf-header__nav-link {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid transparent;
    font-size: 1.4rem;
  }

  .wolf-header__nav-link:hover,
  .wolf-header__nav-link.is-active {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--wolf-gold);
    background: rgba(255, 255, 255, 0.06);
  }

  .wolf-header__nav-link:last-child {
    border-bottom: none;
  }
}


/* ================================================================
   FOOTER
   ================================================================ */

.wolf-footer {
  background: var(--wolf-blue);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 1.5rem 0;
  margin-top: 4rem;
}

.wolf-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 2.5rem;
}

.wolf-footer__brand p {
  font-size: 1.3rem;
  line-height: 1.6;
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.65);
}

.wolf-footer__logo img {
  height: 36px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.wolf-footer__heading {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wolf-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wolf-footer__links li {
  margin-bottom: 0.5rem;
}

.wolf-footer__links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.12s ease;
}

.wolf-footer__links a:hover {
  color: #fff;
}

/* Footer phone */
.wolf-footer__phone {
  margin: 0;
}

.wolf-footer__phone a {
  color: var(--wolf-gold);
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 700;
}

.wolf-footer__phone a:hover {
  text-decoration: underline;
}

/* Footer bottom bar */
.wolf-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Footer — Tablet */
@media (max-width: 1023px) {
  .wolf-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .wolf-footer__brand {
    grid-column: 1 / -1;
  }
}

/* Footer — Mobile */
@media (max-width: 767px) {
  .wolf-footer {
    padding: 2rem 1rem 0;
    margin-top: 3rem;
  }

  .wolf-footer__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}


/* ================================================================
   HOMEPAGE HERO
   ================================================================ */

.wolf-hero {
  background: linear-gradient(135deg, var(--wolf-bg-subtle) 0%, var(--wolf-gold-light) 100%);
  padding: 4rem 1.5rem;
  text-align: center;
}

.wolf-hero__inner {
  max-width: 720px;
  margin: 0 auto;
}

.wolf-hero__heading {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--wolf-blue);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.wolf-hero__subheading {
  font-size: 1.6rem;
  color: var(--wolf-text-body);
  line-height: 1.5;
  margin: 0 0 2rem;
  font-weight: 400;
}

.wolf-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 2em;
  background: var(--wolf-gold);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}

.wolf-hero__cta:hover {
  background: var(--wolf-gold-hover);
  transform: translateY(-1px);
}

.wolf-hero__cta:active {
  transform: translateY(0);
}

/* Hero — Mobile */
@media (max-width: 767px) {
  .wolf-hero {
    padding: 2.5rem 1rem;
  }

  .wolf-hero__heading {
    font-size: 2.4rem;
  }

  .wolf-hero__subheading {
    font-size: 1.4rem;
  }

  .wolf-hero__cta {
    font-size: 1.5rem;
    width: 100%;
    justify-content: center;
  }
}


/* ================================================================
   BROWSE BY MAKE GRID
   ================================================================ */

.wolf-makes {
  padding: 3rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.wolf-makes__heading {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--wolf-text-dark);
  text-align: center;
  margin: 0 0 2rem;
}

.wolf-makes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.wolf-makes-grid__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.75rem 1.25rem;
  background: var(--wolf-bg);
  border: 1px solid var(--wolf-border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--wolf-text-dark);
  transition: border-color 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.wolf-makes-grid__card:hover {
  border-color: var(--wolf-gold);
  box-shadow: 0 4px 16px rgba(27, 58, 107, 0.1);
  transform: translateY(-2px);
}

.wolf-makes-grid__card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.wolf-makes-grid__card-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--wolf-text-dark);
}

.wolf-makes-grid__card-count {
  font-size: 1.2rem;
  color: var(--wolf-text-muted);
}

/* Makes grid — Tablet */
@media (max-width: 1023px) {
  .wolf-makes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Makes grid — Mobile */
@media (max-width: 767px) {
  .wolf-makes {
    padding: 2rem 1rem;
  }

  .wolf-makes__heading {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .wolf-makes-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .wolf-makes-grid__card {
    flex-direction: row;
    padding: 1.25rem;
  }

  .wolf-makes-grid__card img {
    width: 48px;
    height: 48px;
  }
}


/* ================================================================
   VALUE PROPOSITIONS
   ================================================================ */

.wolf-value-props {
  padding: 3rem 1.5rem;
  background: var(--wolf-bg-subtle);
}

.wolf-value-props__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1080px;
  margin: 0 auto;
}

.wolf-value-prop {
  text-align: center;
  padding: 1.5rem;
}

.wolf-value-prop__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: var(--wolf-gold-light);
  border-radius: 50%;
  color: var(--wolf-gold);
}

.wolf-value-prop__icon svg {
  width: 28px;
  height: 28px;
}

.wolf-value-prop__heading {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wolf-text-dark);
  margin: 0 0 0.5rem;
}

.wolf-value-prop__desc {
  font-size: 1.3rem;
  color: var(--wolf-text-body);
  line-height: 1.55;
  margin: 0;
}

/* Value props — Mobile */
@media (max-width: 767px) {
  .wolf-value-props {
    padding: 2rem 1rem;
  }

  .wolf-value-props__inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .wolf-value-prop {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    padding: 1rem;
  }

  .wolf-value-prop__icon {
    margin: 0;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
  }

  .wolf-value-prop__icon svg {
    width: 24px;
    height: 24px;
  }
}


/* ================================================================
   CART PAGE
   ================================================================ */

.wolf-cart-page {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.wolf-cart-page__title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--wolf-text-dark);
  margin: 0 0 1.5rem;
}

/* Cart items list */
.wolf-cart__items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wolf-cart-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--wolf-border);
}

.wolf-cart-item:last-child {
  border-bottom: none;
}

/* Item image */
.wolf-cart-item__img {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--wolf-border);
  background: var(--wolf-bg-subtle);
}

.wolf-cart-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Item info */
.wolf-cart-item__info {
  flex: 1;
  min-width: 0;
}

.wolf-cart-item__name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--wolf-text-dark);
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.wolf-cart-item__sku {
  font-size: 1.2rem;
  color: var(--wolf-text-muted);
  margin: 0;
}

.wolf-cart-item__price {
  font-size: 1.3rem;
  color: var(--wolf-text);
  margin: 0.25rem 0 0;
  font-weight: 500;
}

/* Quantity controls */
.wolf-cart-item__qty {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  border: 1px solid var(--wolf-border);
  border-radius: 4px;
  overflow: hidden;
}

.wolf-cart-item__qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--wolf-bg-subtle);
  border: none;
  cursor: pointer;
  color: var(--wolf-text);
  font-size: 1.4rem;
  font-weight: 600;
  transition: background 0.1s ease;
}

.wolf-cart-item__qty-btn:hover {
  background: var(--wolf-bg-light);
}

.wolf-cart-item__qty-val {
  width: 36px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--wolf-text-dark);
  border-left: 1px solid var(--wolf-border);
  border-right: 1px solid var(--wolf-border);
  line-height: 32px;
  background: var(--wolf-bg);
}

/* Item total */
.wolf-cart-item__total {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--wolf-text-dark);
  flex-shrink: 0;
  min-width: 60px;
  text-align: right;
}

/* Remove button */
.wolf-cart-item__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--wolf-text-muted);
  border-radius: 4px;
  transition: color 0.12s ease, background 0.12s ease;
  flex-shrink: 0;
}

.wolf-cart-item__remove:hover {
  color: #d32f2f;
  background: #fef2f2;
}

.wolf-cart-item__remove svg {
  width: 18px;
  height: 18px;
}

/* Cart summary */
.wolf-cart__summary {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--wolf-bg-subtle);
  border-radius: 8px;
  border: 1px solid var(--wolf-border);
}

.wolf-cart__summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 1.4rem;
  color: var(--wolf-text);
}

.wolf-cart__summary-row--total {
  border-top: 2px solid var(--wolf-border);
  margin-top: 0.5rem;
  padding-top: 1rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wolf-text-dark);
}

.wolf-cart__checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.5em;
  margin-top: 1.25rem;
  padding: 0.9em 1.5em;
  background: var(--wolf-gold);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}

.wolf-cart__checkout-btn:hover {
  background: var(--wolf-gold-hover);
}

.wolf-cart__checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Cart continue shopping */
.wolf-cart__continue {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: 1.3rem;
  color: var(--wolf-blue);
  text-decoration: none;
  font-weight: 500;
}

.wolf-cart__continue:hover {
  text-decoration: underline;
}

/* Empty cart */
.wolf-cart__empty {
  text-align: center;
  padding: 4rem 1.5rem;
}

.wolf-cart__empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  background: var(--wolf-bg-subtle);
  border-radius: 50%;
  color: var(--wolf-text-muted);
}

.wolf-cart__empty-icon svg {
  width: 36px;
  height: 36px;
}

.wolf-cart__empty-heading {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wolf-text-dark);
  margin: 0 0 0.5rem;
}

.wolf-cart__empty-text {
  font-size: 1.4rem;
  color: var(--wolf-text-body);
  margin: 0 0 1.5rem;
}

.wolf-cart__empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.75em 1.8em;
  background: var(--wolf-gold);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}

.wolf-cart__empty-cta:hover {
  background: var(--wolf-gold-hover);
}

/* Cart — Mobile */
@media (max-width: 767px) {
  .wolf-cart-page {
    padding: 0 1rem;
    margin: 1.5rem auto;
  }

  .wolf-cart-page__title {
    font-size: 2rem;
  }

  .wolf-cart-item {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 0;
  }

  .wolf-cart-item__img {
    width: 64px;
    height: 64px;
  }

  .wolf-cart-item__info {
    flex-basis: calc(100% - 80px);
  }

  .wolf-cart-item__qty {
    margin-left: 0;
  }

  .wolf-cart-item__total {
    margin-left: auto;
  }

  .wolf-cart__summary {
    padding: 1.25rem;
  }
}
