/* bundle.css — Beard scent pack. Screenshot-exact: dark green CTA, cream panel. Scoped. */
/* Root is now a vertical stack: full-width header on top, then the two-column body. */
#my-custom-bundle {
  --pk-green: #2f4a2f;
  --pk-green-light: #6f8a5a;
  --pk-cream: #f7f6f2;
  --pk-border: #e4e1d8;
  --pk-text: #2a2a24;
  --pk-muted: #8a8a80;
  --pk-delete: #8a8a80;

  /* Theme fonts: pull the OS 2.0 theme font vars; fall back to inherit so nothing breaks off-theme. */
  --pk-font-body: var(--font-body-family, inherit);
  --pk-font-heading: var(--font-heading-family, var(--font-body-family, inherit));

  box-sizing: border-box;
  max-width: 1120px;
  margin: 24px auto;
  padding: 0;
  font-family: var(--pk-font-body);
  font-size: 14px;
  color: var(--pk-text);
  display: block;
}
#my-custom-bundle *,
#my-custom-bundle *::before,
#my-custom-bundle *::after { box-sizing: inherit; }

#my-custom-bundle h2,
#my-custom-bundle h3,
#my-custom-bundle h4 {
  margin: 0; font-family: var(--pk-font-heading); letter-spacing: 0.04em;
  text-transform: none; color: var(--pk-text); line-height: 1.3;
}
#my-custom-bundle button,
#my-custom-bundle input,
#my-custom-bundle select { font-family: var(--pk-font-body); letter-spacing: normal; }
/* Display copy + labels use the theme heading font to match the theme's headings. */
#my-custom-bundle .pk__eyebrow,
#my-custom-bundle .pk__section-label,
#my-custom-bundle .pk__pack-title,
#my-custom-bundle .pk__total-label,
#my-custom-bundle .pk__total-amount { font-family: var(--pk-font-heading); }

/* ── Full-width centered header (spans above both columns) ── */
#my-custom-bundle .pk__header {
  text-align: center; margin: 0 auto 32px; max-width: 920px;
}
#my-custom-bundle .pk__eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--pk-muted); margin-bottom: 14px;
}
#my-custom-bundle .pk__title {
  font-size: 40px; font-weight: 800; letter-spacing: 0.01em; line-height: 1.05;
  text-transform: uppercase; margin-bottom: 14px;
}
#my-custom-bundle .pk__subtitle {
  font-size: 16px; color: var(--pk-muted); line-height: 1.4; margin: 0 auto 22px;
  max-width: 620px;
}

/* ── Scent pills (centered, in header) ── */
#my-custom-bundle .pk__scents {
  display: flex; gap: 10px; flex-wrap: nowrap; justify-content: center; margin-bottom: 0;
}
#my-custom-bundle .pk__scent {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; white-space: nowrap;
  padding: 8px 16px; border: 1px solid var(--pk-border); background: #fff;
  border-radius: 999px; cursor: pointer; font-size: 13px; color: var(--pk-text);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
#my-custom-bundle .pk__scent.is-active {
  background: #24231e; border-color: #24231e; color: #fff;
}
#my-custom-bundle .pk__scent-dot {
  width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
#my-custom-bundle .pk__scent-label { font-weight: 500; }

/* ── Body: the two-column grid (products + sticky side cart) ── */
#my-custom-bundle .pk__body {
  display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start;
}
#my-custom-bundle .pk__main { min-width: 0; }

/* ── Sections (stacked 01/02/03) ── */
#my-custom-bundle .pk__section { margin-bottom: 32px; }
#my-custom-bundle .pk__section-head {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px;
  border-bottom: 1px solid var(--pk-border); padding-bottom: 8px;
}
#my-custom-bundle .pk__section-num {
  font-size: 13px; font-weight: 700; color: var(--pk-green-light);
  letter-spacing: 0.06em;
}
#my-custom-bundle .pk__section-label {
  font-size: 15px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
#my-custom-bundle .pk__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px;
}
#my-custom-bundle .pk__grid-loading,
#my-custom-bundle .pk__empty {
  grid-column: 1 / -1; padding: 20px; text-align: center; color: var(--pk-muted); font-size: 13px;
}

/* ── Product cards ── */
#my-custom-bundle .pk__card {
  border: 1px solid var(--pk-border); border-radius: 6px; background: #fff;
  padding: 10px; display: flex; flex-direction: column; gap: 8px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
#my-custom-bundle .pk__card:hover { border-color: #cfcbbf; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
#my-custom-bundle .pk__card-img-wrap {
  aspect-ratio: 1 / 1; background: var(--pk-cream); border-radius: 4px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 6px;
}
#my-custom-bundle .pk__card-img { width: 100%; height: 100%; object-fit: contain; }
#my-custom-bundle .pk__card-title {
  font-size: 13px; font-weight: 600; line-height: 1.3; letter-spacing: normal;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
#my-custom-bundle .pk__card-meta {
  display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--pk-muted);
  margin-top: auto; min-width: 0;
}
#my-custom-bundle .pk__card-price { font-weight: 700; color: var(--pk-text); white-space: nowrap; flex: 0 0 auto; }
#my-custom-bundle .pk__card-dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
#my-custom-bundle .pk__card-scent {
  font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── Variant selector ── */
#my-custom-bundle .pk__card-variant {
  width: 100%; height: 30px; padding: 0 8px; border: 1px solid var(--pk-border);
  border-radius: 4px; background: #fff; color: var(--pk-text); font-size: 12px; cursor: pointer;
}

/* ── Add / stepper ── */
#my-custom-bundle .pk__add-btn {
  width: 100%; height: 34px; border: 1px solid var(--pk-green); background: #fff;
  color: var(--pk-green); border-radius: 4px; font-size: 13px; font-weight: 700;
  cursor: pointer; letter-spacing: 0.04em; transition: background .15s ease, color .15s ease;
}
#my-custom-bundle .pk__add-btn:hover { background: var(--pk-green); color: #fff; }
#my-custom-bundle .pk__added-btn {
  width: 100%; height: 34px; border: 1px solid var(--pk-green); background: var(--pk-green);
  color: #fff; border-radius: 4px; font-size: 13px; font-weight: 700; cursor: pointer;
}
#my-custom-bundle .pk__stepper {
  display: flex; align-items: stretch; height: 34px; border: 1px solid var(--pk-green);
  border-radius: 4px; overflow: hidden;
}
#my-custom-bundle .pk__step-btn {
  flex: 0 0 34px; background: var(--pk-green); color: #fff; border: 0; cursor: pointer;
  font-size: 16px; font-weight: 700; line-height: 1;
}
#my-custom-bundle .pk__step-btn:hover { filter: brightness(1.15); }
#my-custom-bundle .pk__step-qty {
  flex: 1 1 auto; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; background: #fff;
}

/* ── Side panel ── */
#my-custom-bundle .pk__side {
  position: sticky; top: 16px; align-self: start; min-width: 0;
  display: flex; flex-direction: column; gap: 16px;
  padding: 20px; background: var(--pk-cream); border: 1px solid var(--pk-border);
  border-radius: 10px;
}
#my-custom-bundle .pk__pack-title {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}

/* ── Tiles ── */
#my-custom-bundle .pk__tiles { display: flex; gap: 8px; }
#my-custom-bundle .pk__tile {
  flex: 1 1 0; min-width: 0; text-align: center; padding: 10px 6px;
  border: 1px solid var(--pk-border); border-radius: 10px; background: rgba(47,74,47,.05);
}
#my-custom-bundle .pk__tile.is-active {
  border-color: var(--pk-green); background: rgba(47,74,47,.14); color: var(--pk-text);
}
#my-custom-bundle .pk__tile-head { font-size: 12px; font-weight: 700; }
#my-custom-bundle .pk__tile-save { font-size: 12px; font-weight: 700; margin-top: 3px; color: var(--pk-green); }
#my-custom-bundle .pk__tile.is-active .pk__tile-save { color: var(--pk-green); }
#my-custom-bundle .pk__tile-perk {
  font-size: 10px; font-weight: 700; margin-top: 4px; letter-spacing: 0.03em; color: var(--pk-text);
}

/* ── Progress bar (segmented pill stages) ── */
#my-custom-bundle .pk__bar { display: flex; flex-direction: column; gap: 8px; padding: 4px 0 0; }
#my-custom-bundle .pk__seg-row { display: flex; gap: 6px; }
#my-custom-bundle .pk__seg {
  flex: 1 1 0; height: 10px; background: #dcdccf; border-radius: 5px; overflow: hidden;
}
#my-custom-bundle .pk__seg-fill {
  display: block; height: 100%; background: var(--pk-green); border-radius: 5px;
  transition: width .4s ease;
}
#my-custom-bundle .pk__seg.is-complete .pk__seg-fill { width: 100% !important; }
/* Three stage labels evenly spread: start left-aligned, middle centred, end right-aligned. */
#my-custom-bundle .pk__seg-labels { display: flex; justify-content: space-between; gap: 6px; }
#my-custom-bundle .pk__seg-label {
  flex: 1 1 0; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: #b3b3a6; white-space: nowrap;
}
#my-custom-bundle .pk__seg-label:nth-child(2) { text-align: center; }
#my-custom-bundle .pk__seg-label--end { text-align: right; }
#my-custom-bundle .pk__seg-label.is-reached { color: var(--pk-green); font-weight: 800; }
#my-custom-bundle .pk__bar-status {
  font-size: 12px; font-weight: 600; color: var(--pk-green); text-align: center; margin-top: 2px;
}

/* ── Pack (HORIZONTAL filling slots) ── */
#my-custom-bundle .pk__pack {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 8px;
}
#my-custom-bundle .pk__pack-empty {
  grid-column: 1 / -1; padding: 12px 0; color: var(--pk-muted); font-size: 13px; text-align: center;
}
#my-custom-bundle .pk__slot {
  position: relative; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
#my-custom-bundle .pk__slot--empty {
  border: 1px dashed var(--pk-border); background: transparent;
}
#my-custom-bundle .pk__slot--empty::after {
  content: "+"; color: var(--pk-muted); font-size: 20px; font-weight: 400; opacity: .5;
}
#my-custom-bundle .pk__slot--filled {
  border: 1px solid var(--pk-border); background: #fff;
}
#my-custom-bundle .pk__slot-img { width: 100%; height: 100%; object-fit: cover; }
#my-custom-bundle .pk__slot-remove {
  position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; line-height: 14px;
  border: 0; border-radius: 50%; background: rgba(42,42,36,.72); color: #fff;
  font-size: 13px; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s ease;
}
#my-custom-bundle .pk__slot--filled:hover .pk__slot-remove { opacity: 1; }
#my-custom-bundle .pk__slot-qty {
  position: absolute; bottom: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--pk-green); color: #fff; font-size: 11px; font-weight: 700;
  line-height: 16px; text-align: center; z-index: 1;
}

/* ── Gift banner (locked / unlocked) ── */
#my-custom-bundle .pk__addons { display: flex; flex-direction: column; gap: 12px; }
#my-custom-bundle .pk__addons[hidden] { display: none; }
#my-custom-bundle .pk__gift {
  display: flex; align-items: center; gap: 10px; border-radius: 8px; padding: 10px 12px;
}
#my-custom-bundle .pk__gift--locked {
  border: 1.5px dashed #b7a86a; background: #faf8f0; padding: 14px 18px; gap: 14px;
}
#my-custom-bundle .pk__gift-thumb--locked {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  background: #fff; border: 1px solid var(--pk-border);
  display: flex; align-items: center; justify-content: center;
}
#my-custom-bundle .pk__gift-lock { flex: 0 0 auto; font-size: 15px; line-height: 1; filter: grayscale(1) brightness(.7); }
#my-custom-bundle .pk__gift-text { font-size: 14px; font-weight: 600; color: #7a6a3a; line-height: 1.3; }
#my-custom-bundle .pk__gift--unlocked {
  border: 1px solid var(--pk-green); background: rgba(47,74,47,.06);
}
#my-custom-bundle .pk__gift-thumb {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 6px; overflow: hidden;
  background: var(--pk-cream); display: flex; align-items: center; justify-content: center;
}
#my-custom-bundle .pk__gift-thumb-img { width: 100%; height: 100%; object-fit: cover; }
#my-custom-bundle .pk__gift-info { flex: 1 1 auto; min-width: 0; }
#my-custom-bundle .pk__gift-name {
  font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#my-custom-bundle .pk__gift-badge { font-size: 11px; font-weight: 700; color: var(--pk-green); margin-top: 2px; }
#my-custom-bundle .pk__gift-check {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--pk-green);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}

/* ── Subscription / purchase options (stacked cards, screenshot-exact) ── */
#my-custom-bundle .pk__subscription[hidden] { display: none; }
#my-custom-bundle .pk__purchase-heading {
  font-size: 14px; font-weight: 700; color: var(--pk-green); margin-bottom: 2px;
}
#my-custom-bundle .pk__purchase-options { display: flex; flex-direction: column; gap: 12px; }
#my-custom-bundle .pk__purchase-option {
  display: flex; flex-direction: column; gap: 8px; padding: 12px 14px;
  border: 1px solid var(--pk-border); border-radius: 6px; background: #fff; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
#my-custom-bundle .pk__purchase-option.is-active {
  border-color: var(--pk-green); border-width: 2px; background: #dfe3d7;
}
/* Radio + title row on top. */
#my-custom-bundle .pk__purchase-top { display: flex; align-items: center; gap: 12px; }
#my-custom-bundle .pk__purchase-radio {
  flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--pk-green-light); background: #fff; position: relative;
}
#my-custom-bundle .pk__purchase-option.is-active .pk__purchase-radio {
  border-color: var(--pk-green);
}
#my-custom-bundle .pk__purchase-radio.is-checked::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 9px; height: 9px; border-radius: 50%; background: var(--pk-green);
}
#my-custom-bundle .pk__purchase-title {
  font-size: 15px; font-weight: 700; color: var(--pk-green); line-height: 1.2;
}
/* Subtitle ("Cancel Anytime") — indented under the title. */
#my-custom-bundle .pk__purchase-sub {
  font-size: 13px; font-weight: 500; color: var(--pk-text); padding-left: 30px; margin-top: -2px;
}
/* Delivery-frequency dropdown. */
#my-custom-bundle .pk__purchase-select {
  width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--pk-green);
  border-radius: 4px; background: #fff; color: var(--pk-text); font-size: 13px; cursor: pointer;
}
#my-custom-bundle .pk__purchase-select:disabled {
  opacity: .55; cursor: not-allowed; border-color: var(--pk-border);
}

/* ── Total + ATC ── */
#my-custom-bundle .pk__total {
  display: flex; flex-direction: column; gap: 4px;
  padding-top: 14px; border-top: 1px solid var(--pk-border);
}
#my-custom-bundle .pk__total-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
}
#my-custom-bundle .pk__total-label { font-size: 20px; font-weight: 800; }
#my-custom-bundle .pk__total-prices { display: flex; align-items: baseline; gap: 10px; }
#my-custom-bundle .pk__total-original {
  font-size: 15px; color: var(--pk-muted); text-decoration: line-through;
}
#my-custom-bundle .pk__total-amount { font-size: 24px; font-weight: 800; color: var(--pk-text); }
#my-custom-bundle .pk__total-saving { font-size: 12.5px; font-weight: 600; color: var(--pk-muted); }
#my-custom-bundle .pk__atc {
  width: 100%; padding: 14px; border: 0; background: var(--pk-green); color: #fff;
  border-radius: 6px; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; cursor: pointer;
  transition: filter .15s ease;
}
#my-custom-bundle .pk__atc:hover { filter: brightness(1.12); }
#my-custom-bundle .pk__atc:disabled { background: #b9b9ac; cursor: not-allowed; }

/* ── Loader ── */
#my-custom-bundle .pk__loader {
  display: flex; align-items: center; justify-content: center;
  min-height: 400px; color: var(--pk-muted); font-size: 14px;
}
#my-custom-bundle .pk__loader::before {
  content: ""; width: 14px; height: 14px; margin-right: 10px;
  border: 2px solid #ccc; border-top-color: var(--pk-green); border-radius: 50%;
  animation: pk-spin .9s linear infinite;
}
@keyframes pk-spin { to { transform: rotate(360deg); } }

/* ── Mobile ── */
@media (max-width: 768px) {
  #my-custom-bundle { padding: 12px; }
  #my-custom-bundle .pk__header { margin-bottom: 22px; }
  #my-custom-bundle .pk__title { font-size: 30px; }
  #my-custom-bundle .pk__subtitle { font-size: 15px; }
  #my-custom-bundle .pk__body { display: flex; flex-direction: column; gap: 20px; }
  #my-custom-bundle .pk__scents { flex-wrap: wrap; }
  #my-custom-bundle .pk__grid { grid-template-columns: repeat(2, 1fr); }
  #my-custom-bundle .pk__side { position: static; align-self: stretch; }
}