.bundle-heading {
  padding-block: 18px 42px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
}

.bundle-heading h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.bundle-intro {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.bundle-price {
  margin: 0;
  color: var(--white);
  font-size: 2rem;
  font-weight: 700;
  white-space: nowrap;
}

.bundle-price span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
}

.bundle-builder {
  padding-bottom: 96px;
}

.selection-bar,
.bundle-purchase {
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(16, 37, 52, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.selection-bar {
  margin-bottom: 22px;
}

.selection-bar .eyebrow,
.selection-bar h2 {
  margin-bottom: 5px;
}

.selection-total {
  margin: 0;
  color: var(--pink-soft);
  font-size: 1.1rem;
  white-space: nowrap;
}

.selection-total strong {
  color: var(--white);
  font-size: 1.55rem;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.color-option {
  padding: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid transparent;
  border-radius: 15px;
  text-align: center;
  transition: border-color 160ms ease, transform 160ms ease;
}

.color-option.has-selection {
  border-color: var(--raspberry-light);
  transform: translateY(-2px);
}

.color-image {
  height: 190px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
}

.color-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.color-option h3 {
  min-height: 2.3em;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 1rem;
}

.color-controls {
  width: 132px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 40px 52px 40px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #d7d7d7;
  border-radius: 999px;
}

.color-controls button,
.color-controls output {
  min-height: 40px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--white);
  border: 0;
  font: inherit;
  font-weight: 700;
}

.color-controls button {
  cursor: pointer;
  font-size: 1.2rem;
}

.color-controls button:disabled {
  color: #a7a7a7;
  cursor: not-allowed;
}

.bundle-purchase {
  margin-top: 24px;
  position: sticky;
  bottom: 16px;
  box-shadow: var(--shadow);
}

.bundle-purchase p {
  margin: 0;
  color: var(--pink-soft);
}

.bundle-add {
  min-width: 290px;
}

.bundle-add:disabled {
  color: rgba(255,255,255,0.66);
  background: #596570;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 860px) {
  .color-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .bundle-heading,
  .selection-bar,
  .bundle-purchase { align-items: stretch; flex-direction: column; }
  .color-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .color-option { padding: 12px; }
  .color-image { height: 145px; }
  .color-controls { width: 140px; grid-template-columns: 44px 52px 44px; }
  .color-controls button,
  .color-controls output { min-height: 44px; }
  .bundle-purchase { bottom: 8px; }
  .bundle-add { min-width: 0; width: 100%; }
}

@media (max-width: 360px) {
  .color-grid { grid-template-columns: 1fr; }
}
