/* Knotless braids configurator
   ------------------------------------------------------------------ */
.bb-body {
  background-color: #f5e8d9;
  color: #3a2a1c;
}

.bb-main {
  min-height: 100vh;
}

.bb-main--pad {
  padding: 2.5rem 1.25rem 3rem;
}

.bb-config-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 2rem;
}

.bb-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bb-aside {
  position: sticky;
  top: 1.5rem;
  align-self: flex-start;
}

/* Cards */
.bb-card {
  background-color: #fdf8f2;
  border-radius: 24px;
  border: 1px solid #e0cfbb;
  box-shadow: 0 2px 16px rgba(58,42,28,0.07);
  padding: 1.75rem 1.5rem;
}

.bb-card--hero {
  padding: 2rem 1.75rem;
}

.bb-card--summary {
  padding: 1.75rem 1.5rem;
}

.bb-card--guidance {
  background-color: #fdf8f2;
  padding: 1.5rem 1.5rem;
}

.bb-card--step {
  padding: 1.75rem 1.5rem;
}

/* Typography */
.bb-eyebrow {
  font-family: "niveau-grotesk", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.65rem;
  font-weight: 600;
  color: #b3834b;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.bb-eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.bb-hero-title {
  font-family: "cormorant-garamond", Georgia, serif;
  font-size: 1.85rem;
  line-height: 1.15;
  font-weight: 600;
  color: #3a2a1c;
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

.bb-hero-sub {
  font-family: "niveau-grotesk", "Helvetica Neue", sans-serif;
  font-size: 0.9rem;
  color: #7a6754;
  max-width: 34rem;
  line-height: 1.65;
}

.bb-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.bb-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background-color: rgba(201,169,110,0.10);
  border: 1px solid rgba(201,169,110,0.28);
  font-family: "niveau-grotesk", "Helvetica Neue", sans-serif;
  font-size: 0.78rem;
  color: #b3834b;
}

.bb-dot {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background-color: #c9a96e;
}

.bb-step-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.bb-step-label {
  font-family: "niveau-grotesk", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.65rem;
  font-weight: 600;
  color: #b3834b;
  margin-bottom: 0.25rem;
}

.bb-step-title {
  font-family: "cormorant-garamond", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #3a2a1c;
  letter-spacing: 0.01em;
}

.bb-step-sub {
  font-family: "niveau-grotesk", "Helvetica Neue", sans-serif;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: #7a6754;
  line-height: 1.6;
}

/* Pills */
.bb-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.bb-pill {
  font-family: "niveau-grotesk", "Helvetica Neue", sans-serif;
  border-radius: 999px;
  border: 1.5px solid #e0cfbb;
  background-color: #fff;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  color: #3a2a1c;
  cursor: pointer;
  transition: all 0.18s ease;
}

.bb-pill:hover {
  border-color: #b3834b;
  color: #b3834b;
}

.bb-pill--active {
  background-color: #b3834b;
  color: #fff;
  border-color: #b3834b;
  box-shadow: 0 4px 16px rgba(179,131,75,0.30);
  transform: scale(1.02);
}

/* Grids */
.bb-grid {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.75rem;
}

.bb-grid--colours {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bb-grid--two {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.bb-grid--three {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

/* Card options */
.bb-option-card {
  font-family: "niveau-grotesk", "Helvetica Neue", sans-serif;
  border-radius: 16px;
  border: 1.5px solid #e0cfbb;
  background-color: #fff;
  padding: 0.85rem 0.9rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  transition: all 0.18s ease;
  text-align: left;
}

.bb-option-card:hover {
  border-color: #b3834b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(179,131,75,0.18);
}

.bb-option-card--active {
  border-color: #b3834b;
  background-color: rgba(201,169,110,0.06);
  box-shadow: 0 4px 14px rgba(179,131,75,0.18);
}

.bb-colour-swatch {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid #e0cfbb;
}

.bb-option-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #3a2a1c;
}

.bb-option-sub {
  font-size: 0.75rem;
  color: #7a6754;
  line-height: 1.5;
}

.bb-option-price {
  font-size: 0.78rem;
  color: #3a2a1c;
  font-weight: 600;
  margin-top: 0.15rem;
}

/* Summary */
.bb-summary-list {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.bb-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.83rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(224,207,187,0.5);
}
.bb-summary-row:last-child { border-bottom: none; }

.bb-summary-label {
  font-family: "niveau-grotesk", "Helvetica Neue", sans-serif;
  color: #7a6754;
}

.bb-summary-value {
  font-family: "niveau-grotesk", "Helvetica Neue", sans-serif;
  font-weight: 600;
  text-align: right;
  color: #3a2a1c;
}

.bb-divider {
  margin: 0.75rem 0;
  height: 1px;
  background-color: #e0cfbb;
}

.bb-summary-metrics {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e0cfbb;
}

.bb-metric-label {
  font-family: "niveau-grotesk", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.65rem;
  font-weight: 600;
  color: #7a6754;
}

.bb-metric-value {
  font-family: "cormorant-garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: #3a2a1c;
  margin-top: 0.15rem;
  letter-spacing: -0.01em;
}

.bb-metric-sub {
  font-family: "niveau-grotesk", "Helvetica Neue", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #3a2a1c;
  margin-top: 0.25rem;
}

.bb-btn {
  font-family: "niveau-grotesk", "Helvetica Neue", sans-serif;
  width: 100%;
  margin-top: 0.9rem;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.bb-btn--primary {
  background-color: #b3834b;
  color: #fff;
  box-shadow: 0 4px 16px rgba(179,131,75,0.30);
}

.bb-btn--primary:hover {
  background-color: #9a6e3a;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(179,131,75,0.42);
}

.bb-btn--disabled {
  background-color: #e0cfbb;
  color: #7a6754;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.7;
}

.bb-footnote {
  font-family: "niveau-grotesk", "Helvetica Neue", sans-serif;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: #7a6754;
  text-align: center;
  line-height: 1.5;
}

/* Guidance */
.bb-guidance-title {
  font-family: "cormorant-garamond", Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: #3a2a1c;
  margin-bottom: 0.2rem;
  letter-spacing: 0.01em;
}

.bb-guidance-text {
  font-family: "niveau-grotesk", "Helvetica Neue", sans-serif;
  font-size: 0.8rem;
  color: #7a6754;
  line-height: 1.6;
}

/* Visibility helpers */
.bb-step--hidden {
  display: none;
}

/* Responsive */
@media (max-width: 991px) {
  .bb-main--pad {
    padding: 1.5rem 0.85rem 2rem;
  }

  .bb-config-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .bb-aside {
    position: static;
  }

  .bb-card {
    border-radius: 20px;
    padding: 1.35rem 1.1rem;
  }

  .bb-card--hero {
    padding: 1.5rem 1.1rem;
  }

  .bb-chip-row {
    gap: 0.4rem;
  }

  .bb-hero-title {
    font-size: 1.5rem;
  }

  .bb-hero-sub {
    font-size: 0.86rem;
  }

  .bb-grid--colours {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .bb-grid--colours {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .bb-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bb-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
