/** Shopify CDN: Minification failed

Line 430:0 Expected "}" to go with "{"

**/
.cb-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;   /* number of lines you want to show */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  max-width: 100%;
}


/* custom-bundle.css - Scoped styles for bundle builder */
.cb-wrapper { max-width:1200px; margin:0 auto; padding:20px; box-sizing:border-box; }
.cb-inner { display:flex; gap:20px; align-items:flex-start; }

/* left 70% / right 30% */
.cb-left { flex: 0 0 70%; }
.cb-right { flex: 0 0 30%; position:sticky; top:20px; height:fit-content; }

/* product grid */
.cb-grid { display:grid; gap:18px; }
.cb-grid[data-products-per-row="3"] { grid-template-columns: repeat(3, 1fr); }
.cb-grid[data-products-per-row="4"] { grid-template-columns: repeat(4, 1fr); }
.cb-grid[data-products-per-row="2"] { grid-template-columns: repeat(2, 1fr); }

/* card */
.cb-card { border-radius:12px; overflow:hidden; border:1px solid #eee; background:#fff; display:flex; flex-direction:column; transition:box-shadow .18s; }
.cb-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.cb-card-image { width:100%; height:220px; object-fit:cover; display:block; }
.cb-card-body { padding:12px; display:flex; flex-direction:column; gap:8px; }
.cb-card-title { margin:0; font-size:15px; line-height:1.2; }
.cb-variant-select { width:100%; padding:8px; border-radius:6px; border:1px solid #ddd; }
.cb-single-variant { color:#333; font-weight:600; }

/* actions */
.cb-card-actions { margin-top:auto; display:flex; gap:8px; }
.cb-add-bundle-btn { background:#1f6feb; color:#fff; border-radius:8px; padding:10px; border:0; cursor:pointer; width:100%; }

/* sidebar */
.cb-sidebar { border:1px solid #eee; padding:16px; border-radius:12px; background:#fafafa; }
.cb-sidebar h2 { text-align: center;}
.cb-discounts { display:flex; gap:8px; margin-bottom:12px; }
.cb-discount-tier { background:#fff; padding:8px; border-radius:8px; border:1px solid #eee; flex:1; text-align:center; }
.cb-discount-value { font-weight:700; font-size:12px; margin-top:6px; }
.cb-discount-title { font-size: 12px; }
/* bundle list */
.cb-bundle-list { min-height:120px; margin-bottom:12px; }
.cb-bundle-item { display:flex; gap:8px; align-items:center; padding:8px; border-radius:8px; background:#fff; margin-bottom:8px; }
.cb-bundle-item img { width:56px; height:56px; object-fit:cover; border-radius:6px; }
.cb-bundle-item .meta { flex:1; }
.cb-bundle-item .remove { background:transparent; border:0; color:#e04b4b; cursor:pointer; }

/* summary */
.cb-summary-row { display:flex; justify-content:space-between; margin:6px 0; }
.cb-summary-total { font-size:18px; margin-top:10px; }

/* buttons */
.cb-primary { width:100%; padding:12px; border:0; background:#00695c; color:#fff; border-radius:8px; cursor:pointer; }
.cb-ghost { width:100%; padding:10px; background:#4b4545; border-radius:8px; margin-top:8px; cursor:pointer; }

/* mobile */
@media (max-width: 900px) {
  .cb-inner { flex-direction:column; }
  .cb-left, .cb-right { flex:1 1 100%; }
  .cb-grid[data-products-per-row] { grid-template-columns: repeat(2,1fr) !important; }
  .cb-right { position:fixed; right:0; top:0; height:100vh; width:92%; max-width:420px; transform:translateX(110%); transition:transform .25s; z-index:999; box-shadow:-20px 0 60px rgba(0,0,0,.12); }
  .cb-right.open { transform:translateX(0); }
  .cb-mobile-bar { position:fixed; left:0; right:0; bottom:0; background:#fff; border-top:1px solid #eee; padding:10px; z-index:400; display:flex; justify-content:center; }
  .cb-mobile-toggle { width:100%; max-width:1200px; padding:12px; border-radius:10px; border:0; background:#2b7cff; color:#fff; font-weight:700; }
}
/* Card image wrapper and arrows */
.cb-card-image-wrapper {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
}

.cb-card-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  transition: opacity 0.3s ease;
}

.cb-image-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  font-size: 22px;
  line-height: 1;
  padding: 6px 14px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.2s ease;
}



.cb-image-arrow.prev { left: 8px; }
.cb-image-arrow.next { right: 8px; }

.cb-image-arrow:hover {
  background: rgba(0,0,0,0.6);
}
/* --- Mobile close button --- */
.cb-close-mobile {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: #333;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  z-index: 9999; /* stay above all */
  display: none;
}

/* Show only on mobile sidebar */
@media (max-width: 768px) {
  .cb-close-mobile {
    display: block;
  }
}
#cb-loading {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.cb-loading-inner {
  text-align: center;
  color: #333;
  font-family: inherit;
}

.cb-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: cb-spin 0.8s linear infinite;
  margin-bottom: 10px;
}

@keyframes cb-spin {
  to { transform: rotate(360deg); }
}
.cb-filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cb-filter-btn {
  border: 1px solid #000;
  background: #fff;
  color: #000;
  padding: 8px 16px;
  border-radius: 24px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cb-filter-btn.active {
  background: #000;
  color: #fff;
}

.cb-grid.fade {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cb-grid {
  opacity: 1;
  transition: opacity 0.4s ease;
}
@media (min-width: 900px) {
 .cb-mobile-toggle { 
  display: none;
}


/* ---------- UI POLISH + ANIMATIONS (append only) ---------- */

/* subtle global ease */
.cb-wrapper, .cb-grid, .cb-card, .cb-bundle-item, .cb-filter-btn, .cb-add-bundle-btn, .cb-primary {
  transition-timing-function: cubic-bezier(.2,.9,.2,1);
}

/* FILTER BUTTON - active micro-zoom and focus */
.cb-filter-btn {
  transform: scale(1);
  will-change: transform, background-color;
}
.cb-filter-btn:hover { transform: scale(1.03); }
.cb-filter-btn.active {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s;
}

/* PRODUCTS GRID - fade + staggered card entrance */
.cb-card { 
  opacity: 1; 
  transform: translateY(0);
  transition: transform .38s ease, opacity .38s ease, box-shadow .18s ease;
  will-change: transform, opacity;
}

/* initial hidden state for newly injected cards */
.cb-card.hidden-for-appear {
  opacity: 0;
  transform: translateY(10px);
}

/* when visible */
.cb-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* subtle hover lift */
.cb-card:hover { transform: translateY(-6px) scale(1.003); }

/* ADD-TO-BUNDLE button pulse */
.cb-add-bundle-btn {
  transform-origin: center;
  will-change: transform;
}
.cb-add-bundle-btn.pulse {
  animation: cb-pulse 360ms ease;
}
@keyframes cb-pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* ADD-ALL-TO-CART button micro-zoom when bundle updated */
#cb-add-all-to-cart, #cb-add-all-to-cart-mobile {
  transform-origin: center;
}
.pulse-add-all {
  animation: cb-addall 480ms cubic-bezier(.2,.9,.2,1);
}
@keyframes cb-addall {
  0% { transform: scale(1); box-shadow: none; }
  40% { transform: scale(1.06); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
  100% { transform: scale(1); box-shadow: none; }
}

/* BUNDLE LIST - enter & exit animations */
.cb-bundle-item {
  opacity: 1;
  transform: translateX(0);
  transition: transform .32s ease, opacity .32s ease;
  will-change: transform, opacity;
}
.cb-bundle-item.enter {
  opacity: 0;
  transform: translateX(10px) scale(.985);
  animation: cb-item-enter .34s forwards cubic-bezier(.2,.9,.2,1);
}
@keyframes cb-item-enter {
  to { opacity: 1; transform: translateX(0) scale(1); }
}

/* exit animation (when user removes) */
.cb-bundle-item.exit {
  animation: cb-item-exit .28s forwards cubic-bezier(.2,.9,.2,1);
}
@keyframes cb-item-exit {
  to { opacity: 0; transform: translateX(16px) scale(.98); height:0; margin:0; padding:0; }
}

/* grid fade used during collection change */
.cb-grid.fade { opacity: 0.35; filter: blur(1px); transform: scale(.997); transition: opacity .32s ease, transform .32s ease, filter .32s; }

/* small accessibility / focus */
.cb-filter-btn:focus, .cb-add-bundle-btn:focus, #cb-add-all-to-cart:focus { outline: 3px solid rgba(0,0,0,0.06); outline-offset: 2px; }

/* LOADER minor style (if you have existing loader keep it) */
#cb-loading .cb-loading-inner p { margin: 8px 0 0; font-weight:600; color:#111; }

/* ensure active mobile toggle hidden on desktop (you already have) */
@media (min-width: 900px) {
  .cb-mobile-toggle { display: none; }
}
/* Sticky bar quick press feedback */
.cb-mobile-toggle:active,
.cb-mobile-bar:active {
  transform: scale(0.995);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08) inset;
  transition: transform .12s, box-shadow .12s;
}
/* Hide "No products" text until JS fully loads content */
.cb-no-products {
  opacity: 0;
  visibility: hidden;
  height: 0;
  margin: 0;
  overflow: hidden;
}

/* === FINAL FIX: Sidebar scroll and sticky footer === */

/* Desktop scrollable sidebar */
@media (min-width: 901px) {
  .cb-right {
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    overflow: hidden;
  }

  .cb-sidebar {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
  }

  .cb-bundle-list {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 120px;
  }

  .cb-summary {
    position: sticky;
    bottom: 0;
    background: #fafafa;
    padding: 12px;
    box-shadow: 0 -4px 14px rgba(0,0,0,0.08);
  }
}

/* ===== Strong mobile + desktop sidebar scroll fixes (paste at end of custom-bundle.css) ===== */

/* Ensure outer aside (#cb-right) is the flex root and won't block inner scrolling */
#cb-right {
  position: fixed;        /* keep mobile behavior consistent */
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;      /* keep scrolling inside the list */
  z-index: 2;
}

/* Ensure the real sidebar uses full height and allows child flex to size */
#cb-right .cb-sidebar {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important; /* critical: allow children to shrink -> enables scrolling */
  overflow: visible !important;
}

/* The scrollable list — this must take remaining space and actually scroll */
#cb-right .cb-bundle-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;             /* critical */
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  padding: 8px 16px 140px !important;   /* bottom padding to keep last item above buttons */
}

/* Keep summary (buttons) out of scroll flow and visible */
#cb-right .cb-summary {
  flex: 0 0 auto !important;
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  background: #fafafa;
  padding: 12px 16px;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}

/* Small desktop safety: allow internal scrolling if sidebar taller than viewport */
@media (min-width: 901px) {
  #cb-right { position: relative; max-height: 90vh; }
  #cb-right .cb-sidebar { min-height: 0; overflow: hidden; }
  #cb-right .cb-bundle-list { max-height: calc(90vh - 160px); } /* give room for header/summary */
}
/* Hide empty message until JS decides */
.cb-empty,
.cb-no-products {
  display: none !important;
}

/* Only show message if still empty after products load */
body.cb-products-loaded .cb-empty,
body.cb-products-loaded .cb-no-products {
  display: block !important;
}
.cb-ghost:hover {
  background: #000000
}
