/*
  Layout layer
  Shared shell styles live here. Keep page-specific styles in top.css or
  bike-detail.css so the global stylesheet does not keep growing.
*/

html {
  scroll-behavior: smooth;
}

.bp-button,
.btn.btn-danger,
.primary-button {
  border-radius: 6px;
  font-weight: 950;
}

.bp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: var(--white);
  background: var(--red);
  border: 1px solid var(--red);
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(215, 25, 32, .16);
}

.bp-button:hover {
  color: var(--white);
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.bp-button-secondary {
  color: var(--text);
  background: var(--white);
  border-color: var(--line);
  box-shadow: none;
}

.bp-button-secondary:hover {
  color: var(--red);
  background: #fff7f7;
  border-color: #ffc6cb;
}

.bp-mobile-nav {
  display: contents;
  min-width: 0;
}

.bp-mobile-nav > summary {
  display: none;
}

.bp-layout-note {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.7;
}

.bp-page-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(17, 19, 24, .06);
}

.bp-anchor-offset {
  scroll-margin-top: 120px;
}

.bp-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 28px 0;
  align-items: start;
}

.bp-footer-grid p {
  margin: 8px 0 0;
  max-width: 520px;
}

.bp-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
}

.bp-footer-links a {
  color: rgba(255,255,255,.84);
  font-size: .9rem;
}

.bp-footer-grid small {
  grid-column: 1 / -1;
  color: rgba(255,255,255,.58);
}

.bp-breadcrumb-wrap {
  position: sticky;
  top: 68px;
  z-index: 9;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.bp-breadcrumb-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 16px;
  align-items: center;
  max-width: var(--bp-container);
  margin: 0 auto;
  padding: 8px 20px;
}

.bp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .86rem;
  color: var(--muted);
}

.bp-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: #b4b4b4;
}

.bp-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.bp-breadcrumb a:hover {
  color: var(--red);
}

.bp-breadcrumb-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  justify-self: end;
  width: 100%;
  padding: 4px;
  background: #f1f3f5;
  border: 1px solid #d6dbe0;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.bp-breadcrumb-search input {
  min-width: 0;
  height: 32px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid #cfd5db;
  border-radius: 6px;
  font-size: .86rem;
}

.bp-breadcrumb-search input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(215, 25, 32, .12);
  outline: none;
}

.bp-breadcrumb-search button {
  height: 32px;
  padding: 0 18px;
  color: #fff !important;
  background-color: #d71920 !important;
  background-image: none !important;
  border: 1px solid #b9131b !important;
  border-radius: 6px;
  font-size: .86rem;
  font-weight: 900;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset;
}

.bp-breadcrumb-search button:hover {
  color: #fff !important;
  background-color: #b9131b !important;
  background-image: none !important;
}

@media (max-width: 720px) {
  .bp-breadcrumb-inner {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .bp-breadcrumb-search {
    justify-self: stretch;
  }
}
