/* ───────────────────────────────────────────────────────────────────────── *
 *  "Build-Your-Own Kit" — hero + tabs + 3-col grid, sticky slot panel,
 *  right-side shade drawer with ▲ triangle swatches.
 *  Bundle-defaults mode: --gbbCustom-* (style presets) win; the values after
 *  the comma are the reference screenshot's fallbacks.
 * ───────────────────────────────────────────────────────────────────────── */

#my-custom-bundle[template-id="custom-79897"] {
  --bundle-accent: var(--gbbCustom-primary, #111);
  --bundle-accent-text: var(--gbbCustom-btn-text, #fff);
  --bundle-text: var(--gbbCustom-text, #111);
  --bundle-muted: #555;
  --bundle-faint: #8a8a8a;
  --bundle-bg: var(--gbbCustom-bg, #fff);
  --bundle-card-bg: #FAF8F5;
  --bundle-slot-bg: #F3F0EB;
  --bundle-cta-idle: #EFEBE3;
  --bundle-line: #E6E1D8;
  --bundle-radius-card: var(--gbbCustom-radius-card, 0);
  --bundle-radius-btn: var(--gbbCustom-radius-btn, 0);
  --bundle-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 24px 0;
  padding: 16px;
  font-family: inherit;
  font-size: var(--gbbCustom-body-size, 15px);
  font-weight: var(--gbbCustom-body-weight, 400);
  color: var(--bundle-text);
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(320px, 32%, 580px);
  gap: 40px;
  align-items: start;

  & *,
  & *::before,
  & *::after {
    box-sizing: inherit;
  }

  & h2,
  & h3 {
    margin: 0;
    font-family: inherit;
    letter-spacing: normal;
    text-transform: none;
    color: var(--bundle-text);
    line-height: 1.25;
  }
  & button,
  & select {
    font-family: inherit;
    letter-spacing: normal;
    text-transform: none;
  }
  & button:focus-visible,
  & [role="button"]:focus-visible {
    outline: 2px solid var(--bundle-accent);
    outline-offset: 2px;
  }

  & .bundle__side,
  & .bundle__drawer-body,
  & .bundle__tabs {
    scrollbar-width: thin;
    scrollbar-color: #cfcfcf transparent;
  }

  & > .bundle__loader {
    grid-column: 1 / -1;
  }

  /* ── Main column ──────────────────────────────────────────────────────── */
  & .bundle__main {
    min-width: 0;
  }

  /* ── Hero ─────────────────────────────────────────────────────────────── */
  /* Editable hero (rendered by renderBanner): cover image, heading + subtitle on the left, round badge top-right.
     On desktop it is at least as tall as the side panel down to the savings line (--bundle-banner-h). */
  & .bundle__banner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: var(--bundle-banner-h, 380px);
    margin-bottom: 24px;
    padding: 48px 40px;
    border-radius: var(--bundle-radius-card);
    overflow: hidden;
    background: var(--bundle-cta-idle);
    color: var(--bundle-hero-text, #111);
  }
  & .bundle__banner[hidden] { display: none; }
  & .bundle__banner-media {
    position: absolute;
    inset: 0;
    display: block;
  }
  & .bundle__banner-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  & .bundle__banner-text {
    position: relative;
    z-index: 1;
    max-width: min(60%, 640px);
  }
  & .bundle__banner-heading {
    font-size: clamp(32px, 3.6vw, 60px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: inherit;
  }
  & .bundle__banner-sub {
    margin-top: 24px;
    font-size: clamp(16px, 1.4vw, 22px);
    line-height: 1.35;
  }
  & .bundle__banner-sub strong,
  & .bundle__banner-sub b { font-weight: 700; }
  /* Discount badge: a fixed square box at the same spot as before; its centre is the triangle's centre.
     --bundle-badge-w = the box, --bundle-tri-s = the triangle's side (30px bigger than the box). Every size is in px
     from these, never a % of the box height, so the triangle can't stretch and all three sides stay equal. */
  & .bundle__banner-badge {
    --bundle-badge-w: clamp(96px, 9vw, 124px);
    --bundle-tri-s: calc(var(--bundle-badge-w) + 30px);
    position: absolute;
    z-index: 1;
    top: 13%;
    right: 5%;
    width: var(--bundle-badge-w);
    height: var(--bundle-badge-w);
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0; /* the text block is centred on the box centre = the triangle's centre point */
    overflow: visible;
    text-align: center;
  }
  /* Equilateral triangle: side S, height S × 0.866. Its centre (2/3 down from the point) sits on the box centre,
     so the point starts S × 0.57735 above that centre; it grows evenly on every side around that point. */
  & .bundle__banner-badge::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: calc((var(--bundle-badge-w) - var(--bundle-tri-s)) / 2);
    top: calc(var(--bundle-badge-w) / 2 - var(--bundle-tri-s) * 0.57735);
    width: var(--bundle-tri-s);
    height: calc(var(--bundle-tri-s) * 0.86603);
    background: rgba(250, 248, 245, 0.92);
    -webkit-clip-path: polygon(50% 0, 100% 100%, 0 100%);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
  }
  /* Badge text (reference): a large, light "15%" over a small, widely spaced "OFF". Sizes scale with the badge so
     both stay inside the triangle. */
  /* Badge "15%": its own block with a full line box, so the line under it never overlaps the digits */
  & .bundle__banner-badge-top {
    display: block;
    position: relative;
    font-size: 24px;
    font-size: 21cqw;
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: 0.02em;
    color: #1a1a1a;
  }
  /* Badge "OFF": a small, clear gap under "15%", drawn above it so nothing covers its top */
  & .bundle__banner-badge-bottom {
    display: block;
    position: relative;
    z-index: 1;
    margin-top: 4px;
    margin-top: 4cqw;
    font-family: inherit;
    font-size: 10px;
    font-size: max(9px, 8.5cqw);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.32em;
    /* The spacing also lands after the last letter: offset it so "OFF" stays centred under "15%". */
    padding-left: 0.32em;
    text-transform: uppercase;
    /* Badge "OFF": solid, fully opaque ink so the tops of the letters don't look faded */
    color: #1a1a1a;
    opacity: 1;
    -webkit-text-fill-color: #1a1a1a;
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
    text-rendering: geometricPrecision;
  }

  /* ── Category tabs ────────────────────────────────────────────────────── */
  & .bundle__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 28px;
    margin-bottom: 24px;
  }
  & .bundle__tabs[hidden] { display: none; }
  & .bundle__tab {
    min-height: 44px;
    padding: 8px 0;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    font-family: "Founders Grotesk Mono", monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bundle-muted);
    cursor: pointer;
    white-space: nowrap;
  }
  & .bundle__tab:hover { color: var(--bundle-text); }
  & .bundle__tab.is-active {
    color: var(--bundle-text);
    border-bottom-color: currentColor;
  }

  /* ── Product grid ─────────────────────────────────────────────────────── */
  & .bundle__products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 20px;
    align-content: start;
  }
  & .bundle__sentinel {
    display: block;
    height: 1px;
  }
  & .bundle__card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    text-align: center;
    cursor: pointer;
  }
  & .bundle__card.is-disabled { cursor: default; }
  & .bundle__card-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--bundle-card-bg);
    border-radius: var(--bundle-radius-card);
    overflow: hidden;
  }
  & .bundle__card-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: var(--gbbCustom-img-fit, cover);
    transition: transform 0.4s ease;
  }
  & .bundle__card:not(.is-disabled):hover .bundle__card-img { transform: scale(1.03); }
  & .bundle__card-shades {
    position: absolute;
    right: 12px;
    bottom: 10px;
    font-family: var(--bundle-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bundle-muted);
  }
  & .bundle__card-inbundle {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 4px 8px;
    background: var(--bundle-accent);
    color: var(--bundle-accent-text);
    font-family: var(--bundle-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 2px;
  }
  & .bundle__card-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  & .bundle__card-btn {
    margin-top: auto;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--bundle-accent);
    background: transparent;
    color: var(--bundle-accent);
    border-radius: var(--bundle-radius-btn);
    font-family: var(--bundle-mono);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.3;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
  }
  & .bundle__card:not(.is-disabled):hover .bundle__card-btn {
    background: var(--bundle-accent);
    color: var(--bundle-accent-text);
  }
  & .bundle__card-btn:disabled {
    border-color: #ddd;
    background: #f4f4f4;
    color: #aaa;
    cursor: not-allowed;
  }

  & .bundle__empty {
    grid-column: 1 / -1;
    padding: 40px 16px;
    text-align: center;
    color: var(--bundle-faint);
    font-size: 14px;
  }
  & .bundle__grid-loader {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
  }
  & .bundle__grid-loader::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-top-color: var(--bundle-text);
    border-radius: 50%;
    animation: bundle-spin-custom-79897 0.9s linear infinite;
  }

  /* ── Side panel ───────────────────────────────────────────────────────── */
  & .bundle__side {
    position: sticky;
    top: 16px;
    align-self: start;
    min-width: 0;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 2px; /* room for focus outlines only — no box around the panel */
    background: transparent;
    border: 0;
  }
  & .bundle__side-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }
  & .bundle__side-title {
    font-size: var(--gbbCustom-font-size, 22px);
    font-weight: var(--gbbCustom-font-weight, 700);
    line-height: 1.2;
    min-width: 0;
  }
  & .bundle__pick {
    flex: 0 0 auto;
    font-family: var(--bundle-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bundle-faint);
    white-space: nowrap;
  }

  & .bundle__slots {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  & .bundle__slots-empty {
    padding: 16px 0;
    color: var(--bundle-faint);
    font-size: 13px;
    text-align: center;
  }
  & .bundle__slot {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
  }
  & .bundle__slot.is-filled[role="button"] { cursor: pointer; }
  & .bundle__slot.is-filled[role="button"]:hover .bundle__slot-title { text-decoration: underline; }
  & .bundle__slot-thumb {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bundle-slot-bg);
    border-radius: var(--bundle-radius-card);
    overflow: hidden;
  }
  & .bundle__slot-img {
    width: 100%;
    height: 100%;
    object-fit: var(--gbbCustom-img-fit, cover);
  }
  & .bundle__slot-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #B5B0A8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--bundle-mono);
    font-size: 13px;
    color: var(--bundle-faint);
  }
  & .bundle__slot-empty-label {
    font-family: var(--bundle-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bundle-faint);
  }
  & .bundle__slot-info {
    flex: 1 1 auto;
    min-width: 0;
  }
  & .bundle__slot-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  & .bundle__slot-shade {
    margin-top: 2px;
    font-size: 13px;
    color: var(--bundle-muted);
  }
  & .bundle__slot-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-top: 6px;
    font-size: 14px;
  }
  & .bundle__slot-price-current { font-weight: 600; }
  & .bundle__slot-price-original {
    font-size: 13px;
    color: var(--bundle-faint);
    text-decoration: line-through;
  }
  /* Round × over the thumbnail's top-right corner (thumb is 100px wide); 44px tap area, icon centred in it. */
  & .bundle__slot-remove {
    position: absolute;
    top: -16px;
    left: calc(100px - 26px);
    z-index: 1;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6f6f6f;
  }
  /* The × is drawn with two crossed lines (not the text glyph, which sits off-centre), so it is exactly centred. */
  & .bundle__slot-remove-icon {
    position: relative;
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    background: var(--bundle-bg);
    font-size: 0;
    line-height: 0;
    transition: color 0.15s ease, border-color 0.15s ease;
  }
  & .bundle__slot-remove-icon::before,
  & .bundle__slot-remove-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 1.5px;
    border-radius: 1px;
    background: currentColor;
  }
  & .bundle__slot-remove-icon::before { transform: translate(-50%, -50%) rotate(45deg); }
  & .bundle__slot-remove-icon::after { transform: translate(-50%, -50%) rotate(-45deg); }
  /* Hover / focus: outline and × darken — no fill. */
  & .bundle__slot-remove:hover,
  & .bundle__slot-remove:focus-visible {
    color: var(--bundle-text);
  }

  & .bundle__nav {
    display: flex;
    gap: 8px;
  }
  & .bundle__nav-btn {
    flex: 1 1 0;
    min-height: 44px;
    border: 1px solid var(--bundle-accent);
    background: transparent;
    color: var(--bundle-accent);
    border-radius: var(--bundle-radius-btn);
    font-family: var(--bundle-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
  }
  & .bundle__nav-btn[hidden] { display: none; }
  & .bundle__nav-next {
    background: var(--bundle-accent);
    color: var(--bundle-accent-text);
  }

  & .bundle__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 10px;
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    border: 0;
    background: var(--bundle-accent);
    color: var(--bundle-accent-text);
    border-radius: var(--bundle-radius-btn);
    font-family: var(--bundle-mono);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter 0.15s ease, background 0.15s ease;
  }
  & .bundle__cta[hidden] { display: none; }
  /* Total + struck original after the label (kit complete). */
  & .bundle__cta-price {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    white-space: nowrap;
  }
  & .bundle__cta-price-original {
    text-decoration: line-through;
    opacity: 0.6;
  }
  & .bundle__cta:not(:disabled):hover { filter: brightness(1.12); }
  & .bundle__cta:disabled {
    background: var(--bundle-cta-idle);
    color: var(--bundle-text);
    cursor: not-allowed;
  }
  & .bundle__cta.is-loading,
  & .bundle__cta.is-loading:disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--bundle-accent);
    color: var(--bundle-accent-text);
    cursor: progress;
    opacity: 0.85;
  }
  & .bundle__cta.is-loading::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: bundle-spin-custom-79897 0.9s linear infinite;
  }

  & .bundle__savings {
    text-align: center;
    font-size: 14px;
    line-height: 1.4;
    color: var(--bundle-text);
  }
  /* Kit complete: "You are saving Rs. 1,350" in muted grey. */
  & .bundle__savings.is-saving {
    color: var(--bundle-muted);
  }
  & .bundle__side-footer {
    padding-top: 16px;
    border-top: 1px solid var(--bundle-line);
  }
  & .bundle__side-footer-heading {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
  }
  & .bundle__side-footer-desc {
    font-size: 13px;
    line-height: 1.5;
    color: var(--bundle-muted);
  }

  /* ── Shade drawer ─────────────────────────────────────────────────────── */
  & .bundle__overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    background: rgba(17, 17, 17, 0.35);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  & .bundle__overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  & .bundle__drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483001;
    width: min(500px, 100vw);
    display: flex;
    flex-direction: column;
    background: var(--bundle-bg);
    color: var(--bundle-text);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
  }
  & .bundle__drawer.is-open {
    transform: none;
    visibility: visible;
    transition: transform 0.3s ease;
  }
  & .bundle__drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 14px 24px;
    border-bottom: 1px solid var(--bundle-line);
  }
  & .bundle__drawer-heading {
    font-size: 18px;
    font-weight: 600;
  }
  & .bundle__drawer-close {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--bundle-text);
  }
  & .bundle__drawer-close-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
  }
  & .bundle__drawer-close:hover .bundle__drawer-close-icon {
    background: var(--bundle-text);
    color: var(--bundle-bg);
  }
  & .bundle__drawer-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  & .bundle__carousel {
    /* Square; shrinks (centred) when needed so the first swatch row stays visible (--bundle-carousel-size, set by fitDrawerImage). */
    width: min(100%, var(--bundle-carousel-size, 100%));
    align-self: center;
    position: relative;
    flex: 0 0 auto;
    aspect-ratio: 1 / 1;
    background: var(--bundle-card-bg);
    border-radius: var(--bundle-radius-card);
    overflow: hidden;
  }
  /* Swipeable strip: one slide per image, snapping to whole slides. */
  & .bundle__carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
  }
  & .bundle__carousel-track::-webkit-scrollbar { display: none; }
  & .bundle__carousel-track.is-single { cursor: default; }
  /* Mouse drag: no snapping while the image follows the pointer. */
  & .bundle__carousel-track.is-dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
    cursor: grabbing;
  }
  & .bundle__carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  & .bundle__carousel-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: var(--gbbCustom-img-fit, cover);
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
  }
  /* Previous / next image arrows: 44px tap area, round chevron button centred in it. */
  & .bundle__carousel-nav {
    position: absolute;
    top: 50%;
    z-index: 1;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--bundle-text);
  }
  & .bundle__carousel-prev { left: 6px; }
  & .bundle__carousel-next { right: 6px; }
  & .bundle__carousel-nav-icon {
    position: relative;
    display: block;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--bundle-line);
    background: rgba(255, 255, 255, 0.88);
    transition: border-color 0.15s ease, background 0.15s ease;
  }
  & .bundle__carousel-nav-icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
  }
  & .bundle__carousel-prev .bundle__carousel-nav-icon::before { transform: translate(-30%, -50%) rotate(-135deg); }
  & .bundle__carousel-next .bundle__carousel-nav-icon::before { transform: translate(-70%, -50%) rotate(45deg); }
  & .bundle__carousel-nav:hover .bundle__carousel-nav-icon,
  & .bundle__carousel-nav:focus-visible .bundle__carousel-nav-icon {
    background: #fff;
    border-color: var(--bundle-text);
  }
  /* Dot strip: one line, scrolls sideways like a carousel. flex: 0 0 auto stops the scrolling drawer body from
     squeezing it to 0 px tall (that is what hid it). Auto margins on the first/last dot centre a short row. */
  & .bundle__dots {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    min-height: 28px;
    margin-top: -8px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  & .bundle__dots::-webkit-scrollbar { display: none; }
  /* More dots than fit: fade the edges so the strip reads as scrollable. */
  & .bundle__dots.is-overflowing {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  }
  & .bundle__dot:first-child { margin-left: auto; }
  & .bundle__dot:last-child { margin-right: auto; }
  & .bundle__dot {
    flex: 0 0 auto;
    display: flex;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    scroll-snap-align: center;
  }
  & .bundle__dot-mark {
    display: block;
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c9c3b9;
    transition: background 0.15s ease, transform 0.15s ease;
  }
  & .bundle__dot:hover .bundle__dot-mark { background: #9a948a; }
  /* Sold-out variant: its dot stays (dots = variants) but reads faded. */
  & .bundle__dot.is-soldout .bundle__dot-mark { opacity: 0.35; }
  & .bundle__dot.is-active .bundle__dot-mark {
    background: var(--bundle-text);
    transform: scale(1.25);
  }
  & .bundle__drawer-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
  }
  & .bundle__drawer-shade {
    font-size: 16px;
    font-weight: 700;
  }

  & .bundle__drawer-shade-desc {
    margin-top: -10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--bundle-muted);
  }

  /* ▲ triangle SVG swatches: ring = selection outline, shape = shade colour (fill set inline), check = selected. */
  & .bundle__swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  & .bundle__swatch {
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    background: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  & .bundle__swatch-svg {
    display: block;
    width: 50px;
    height: 50px;
    pointer-events: none;
  }
  & .bundle__swatch svg {
    display: block;
    width: 50px;
    height: 50px;
    overflow: visible;
  }
  /* Unselected: the full-size outer triangle filled with the shade, so every swatch is 50 × 50.
     Selected: that outer triangle becomes a thin outline and the inner triangle shows the shade, with a thin gap
     between them. currentColor = the shade colour (set inline on the svg). */
  & .bundle__swatch-shape {
    stroke: none;
    opacity: 0;
    transition: opacity 0.15s ease;
  }
  & .bundle__swatch.is-selected .bundle__swatch-shape { opacity: 1; }
  /* Very light shades keep a thin grey edge so they stay visible on white. */
  & .bundle__swatch.is-light .bundle__swatch-shape {
    stroke: #a8a39b;
    stroke-width: 1;
    stroke-linejoin: round;
  }
  & .bundle__swatch-ring {
    fill: currentColor;
    stroke: none;
    stroke-width: 1.5;
    stroke-linejoin: round;
    transform-box: fill-box;
    transform-origin: 50% 60%;
    transition: fill 0.15s ease, transform 0.15s ease;
  }
  & .bundle__swatch.is-light .bundle__swatch-ring {
    stroke: #a8a39b;
    stroke-width: 1;
  }
  & .bundle__swatch.is-selected .bundle__swatch-ring {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
  }
  & .bundle__swatch.is-light.is-selected .bundle__swatch-ring { stroke: #a8a39b; }
  & .bundle__swatch-check {
    fill: none;
    stroke: #fff;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
  }
  & .bundle__swatch.is-selected .bundle__swatch-check { opacity: 1; }
  & .bundle__swatch.is-light .bundle__swatch-check { stroke: #6f6a63; }
  & .bundle__swatch:not(.is-selected):not(:disabled):hover .bundle__swatch-ring { transform: scale(1.05); }
  & .bundle__swatch.is-soldout {
    opacity: 0.3;
    cursor: not-allowed;
  }
  & .bundle__swatch:focus-visible {
    outline: 2px solid var(--bundle-accent);
    outline-offset: 0;
  }

  & .bundle__drawer-foot {
    flex: 0 0 auto;
    padding: 16px 24px calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--bundle-line);
    background: var(--bundle-bg);
  }
  & .bundle__drawer-add {
    width: 100%;
    min-height: 54px;
    padding: 14px 20px;
    border: 0;
    background: var(--bundle-accent);
    color: var(--bundle-accent-text);
    border-radius: var(--bundle-radius-btn);
    font-family: var(--bundle-mono);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter 0.15s ease;
  }
  & .bundle__drawer-add:not(:disabled):hover { filter: brightness(1.15); }
  & .bundle__drawer-add:disabled {
    background: #cfcfcf;
    color: #fff;
    cursor: not-allowed;
  }
  & .bundle__drawer-add.is-loading,
  & .bundle__drawer-add.is-loading:disabled {
    background: var(--bundle-accent);
    color: var(--bundle-accent-text);
    opacity: 0.8;
    cursor: progress;
  }

  /* ── Loader (before the instance is ready) ────────────────────────────── */
  & .bundle__loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
  }
  & .bundle__loader::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-top-color: #111;
    border-radius: 50%;
    animation: bundle-spin-custom-79897 0.9s linear infinite;
  }

  /* ── Tablet ───────────────────────────────────────────────────────────── */
  @media (max-width: 1100px) {
    & {
      gap: 24px;
    }
    & .bundle__products {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  /* ── Mobile ───────────────────────────────────────────────────────────── */
  @media (max-width: 768px) {
    & {
      display: flex;
      flex-direction: column;
      gap: 28px;
      padding: 12px 16px;
      margin: 12px 0;
    }
    & .bundle__main {
      align-self: stretch;
    }
    & .bundle__tabs {
      flex-wrap: nowrap;
      overflow-x: auto;
      gap: 20px;
      margin-bottom: 16px;
      -webkit-overflow-scrolling: touch;
    }
    & .bundle__tab { flex: 0 0 auto; }
    & .bundle__products {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 28px 12px;
    }
    & .bundle__card-title { font-size: 15px; }
    & .bundle__banner {
      min-height: 260px;
      padding: 28px 20px;
      margin-bottom: 16px;
    }
    & .bundle__banner-text { max-width: calc(100% - 88px); }
    & .bundle__banner-heading { font-size: 28px; }
    & .bundle__banner-sub {
      margin-top: 12px;
      font-size: 15px;
    }
    & .bundle__banner-badge {
      --bundle-badge-w: 76px;
      --bundle-tri-s: calc(var(--bundle-badge-w) + 16px); /* grows less on phones so the point stays inside the banner */
      top: 16px;
      right: 16px;
    }
    /* Badge text keeps scaling with the 76px badge (set above), so it stays inside the triangle. */
    & .bundle__card-btn {
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.05em;
      padding: 8px 6px;
    }
    & .bundle__card-shades {
      right: 8px;
      bottom: 6px;
      font-size: 10px;
    }
    /* Room under the bundle for the fixed bar (height set by syncMobileBar). */
    & { padding-bottom: calc(12px + var(--bundle-bar-h, 0px)); }

    /* Side panel: hidden until a product is added, then a bar fixed to the bottom of the screen. */
    & .bundle__side { display: none; }
    & .bundle__side.has-items {
      display: flex;
      position: fixed;
      top: auto;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 1000;
      max height: 70vh;
      max-height: 70vh;
      overflow-y: auto;
      gap: 10px;
      padding: 14px 16px calc(12px + env(safe-area-inset-bottom, 0px));
      background: var(--bundle-bg);
      box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
      animation: bundle-bar-up-custom-79897 0.3s ease;
    }
    & .bundle__side-title { font-size: 15px; }
    & .bundle__pick { font-size: 11px; }
    & .bundle__savings,
    & .bundle__side-footer { display: none; }

    /* Slots: one row of square tiles, name + shade underneath. */
    & .bundle__slots {
      display: grid;
      grid-auto-flow: column;
      grid-auto-columns: minmax(96px, 1fr);
      gap: 10px;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }
    & .bundle__slot {
      position: relative;
      flex-direction: column;
      align-items: stretch;
      gap: 6px;
    }
    & .bundle__slot-thumb {
      flex: 0 0 auto;
      width: 100%;
      height: auto;
      aspect-ratio: 1 / 1;
    }
    & .bundle__slot-num {
      width: 28px;
      height: 28px;
      font-size: 12px;
    }
    & .bundle__slot-info { text-align: center; }
    & .bundle__slot-title {
      font-size: 12px;
      font-weight: 500;
      line-height: 1.3;
    }
    & .bundle__slot-shade {
      margin-top: 0;
      font-size: 11px;
    }
    & .bundle__slot-price,
    & .bundle__slot-empty-label { display: none; }
    /* Round × in the tile's top-right corner, inside a 44px tap area. */
    & .bundle__slot-remove {
      position: absolute;
      top: 0;
      right: 0;
      left: auto;
      width: 44px;
      height: 44px;
      align-items: flex-start;
      justify-content: flex-end;
      padding: 4px;
    }
    & .bundle__slot-remove-icon {
      width: 22px;
      height: 22px;
      background: var(--bundle-bg);
    }
    & .bundle__slot-remove-icon::before,
    & .bundle__slot-remove-icon::after { width: 9px; }

    /* Button: label + total + struck original. */
    & .bundle__cta {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 48px;
      font-size: 14px;
      font-weight: 500;
      letter-spacing: 0.06em;
    }
    & .bundle__cta[hidden] { display: none; }
    & .bundle__cta-price {
      display: inline-flex;
      align-items: baseline;
      gap: 8px;
    }
    & .bundle__cta-price-original {
      text-decoration: line-through;
      opacity: 0.6;
    }
    & .bundle__drawer { width: 100vw; }
    & .bundle__drawer-body { padding: 16px; }
    & .bundle__drawer-foot { padding-left: 16px; padding-right: 16px; }
    & .bundle__drawer-title { font-size: 24px; }
    & .bundle__dot {
      width: 44px;
      height: 44px;
    }
    & .bundle__dots {
      margin-top: -12px;
      min-height: 44px;
    }
  }
}

@keyframes bundle-spin-custom-79897 {
  to { transform: rotate(360deg); }
}

/* Mobile bottom bar slides up the first time a product is added. */
@keyframes bundle-bar-up-custom-79897 {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}