:root {
    --gp-dark:   #1a3a2a;
    --gp-mid:    #2a5a3f;
    --gp-accent: #4a9e6f;
    --gp-light:  #e8f0e9;
    --gp-cream:  #faf8f4;
    --gp-gold:   #c8a84b;
    --gp-text:   #1c1c1c;
    --gp-muted:  #6b7280;
    --gp-border: #e2e8e4;
}
  /* ── Breadcrumb ── */
.breadcrumb-bar { border-bottom: 1px solid var(--gp-border); background: #fff; }
.breadcrumb { max-width: 1200px; margin: 0 auto; padding: 12px 13px; font-size: 12px; color: var(--gp-muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--gp-muted); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--gp-dark); }
.breadcrumb span { color: var(--gp-border); }

  /* ── Page header ── */
.page-header { background: var(--gp); border-bottom: 1px solid var(--gp-border); padding: 20px 0; }
.page-header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 0 13px; }
.page-header h1 { font-family: "Work Sans", sans-serif; font-size: 28px; font-weight: 600; color: var(--gp-light); }
  .page-header-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
  .meta-pill { font-size: 12px; border: 1px solid var(--gp-border); color: var(--gp-muted); padding: 5px 12px; border-radius: 20px; background: #fff; }
  .meta-pill.green { background: var(--gp-light); color: var(--gp-dark); border-color: var(--gp-light); font-weight: 500; }

  /* ── Builder layout ── */
  .builder-layout { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 320px 1fr; gap: 0; min-height: calc(100vh - 160px); align-items: start; padding: 0 13px; }

  /* ── LEFT: Pack panel ── */
  .pack-panel {
    position: sticky;
    top: 65px;
    height: calc(100vh - 65px);
    overflow-y: auto;
    background: var(--gp-light);
    border-right: 1px solid var(--gp-border);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scrollbar-width: thin;
  }
  .pack-panel::-webkit-scrollbar { width: 4px; }
  .pack-panel::-webkit-scrollbar-thumb { background: var(--gp-border); border-radius: 2px; }

  .pack-panel-title { font-size: 13px; font-weight: 500; color: var(--gp-dark); }
  .pack-panel-sub { font-size: 11px; color: var(--gp-muted); margin-top: 2px; }

  /* Progress */
  .progress-section {}
  .progress-bar-track { background: var(--gp-border); border-radius: 4px; height: 6px; overflow: hidden; margin-bottom: 6px; }
  .progress-bar-fill { height: 100%; background: var(--gp); border-radius: 4px; transition: width .4s ease; }
  .progress-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--gp-muted); }
  .progress-labels .selected-count { font-weight: 500; color: var(--gp); }

  /* Slots grid */
  .slots-label { font-size: 11px; font-weight: 500; color: var(--gp-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
  .slots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .slot {
    /*aspect-ratio: 1;*/
    border-radius: 12px;
    border: 1.5px dashed var(--gp-border);
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all .2s;
    cursor: default;
    overflow: hidden;
  }
  .slot.filled {
    border-style: solid;
    border-color: var(--gp-border);
    cursor: pointer;
  }
  .slot.filled:hover { border-color: #e53e3e; }
  .slot.filled:hover .slot-remove { opacity: 1; }
  .slot.pulse { animation: slotPulse .35s ease; }
  @keyframes slotPulse { 0%{transform:scale(1)} 50%{transform:scale(1.06)} 100%{transform:scale(1)} }

  .slot-empty-num { font-size: 18px; color: var(--gp-border); font-weight: 300; }
  .slot-juice-color { width: 100%; height: 55%; display: flex; align-items: center; justify-content: center; font-size: 26px; }
  .slot-juice-name { font-size: 8px; font-weight: 500; color: var(--gp-dark); text-align: center; padding: 0 4px; line-height: 1.3; }
  .slot-remove {
    position: absolute;
    top: 4px; right: 4px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: rgba(229,62,62,.85);
    color: #fff;
    font-size: 11px;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity .15s;
    line-height: 1;
  }

  /* Price block */
  .price-block {
    background: #fff;
    border: 1px solid var(--gp-border);
    border-radius: 16px;
    padding: 18px;
  }
  .price-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
  .price-amount { font-family: "Work Sans", sans-serif; font-size: 32px; font-weight: 600; color: var(--gp); line-height: 1; }
  .price-freq { font-size: 13px; color: var(--gp-muted); }
  .price-note { font-size: 11px; color: var(--gp-muted); margin-bottom: 14px; }

  .signup-btn {
    width: 100%;
    height: 48px;
    border-radius: 50px;
    border: none;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    cursor: not-allowed;
    transition: all .3s;
    background: #d1d5db;
    color: #9ca3af;
  }
  .signup-btn.ready {
    background-color: var(--gp);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(26,58,42,.2);
  }
  .signup-btn.ready:hover { background-color: #000; }
  .signup-btn.ready:active { transform: scale(0.98); }

  .slots-hint { font-size: 11px; color: var(--gp-muted); text-align: center; margin-top: 8px; min-height: 16px; transition: color .3s; }
  .slots-hint.done { color: var(--gp-accent); font-weight: 500; }

  .pack-tip { background: #fff; border-radius: 10px; padding: 10px 12px; font-size: 11px; color: var(--gp-dark); line-height: 1.5; }

  /* ── RIGHT: Selection panel ── */
  .selection-panel { padding: 24px; background: #fff; }

  .sel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
  .sel-title { font-size: 16px; font-weight: 500; color: var(--gp); }
  .sel-count { font-size: 12px; color: var(--gp-muted); }

  .filter-row { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
  .filter-btn {
    padding: 7px 16px;
    border-radius: 20px;
    border: 1px solid var(--gp-border);
    font-size: 12px;
    font-family: inherit;
    color: var(--gp-muted);
    background: #fff;
    cursor: pointer;
    transition: all .2s;
  }
  .filter-btn:hover { border-color: var(--gp-dark); color: var(--gp-dark); }
  .filter-btn.active { background: var(--gp-dark); color: #fff; border-color: var(--gp-dark); }

  /* Juice grid */
  .juice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .juice-card {
    border: 1.5px solid var(--gp-border);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    position: relative;
    user-select: none;
  }
  .juice-card:hover:not(.oos) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,58,42,.1); border-color: var(--gp-accent); }
  .juice-card.in-pack { border-color: var(--gp); border-width: 2px; }
  .juice-card.oos { opacity: .5; cursor: not-allowed; }
  .juice-card[data-visible="false"] { display: none; }

  .juice-card-img {
    /*height: 90px;*/
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    position: relative;
  }
  .juice-add-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.0);
    transition: background .2s;
  }
  .juice-card:hover:not(.oos) .juice-add-icon { background: rgba(255,255,255,.15); }
  .add-circle {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    color: var(--gp-dark);
    font-weight: 500;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity .15s, transform .15s;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
  }
  .juice-card:hover:not(.oos) .add-circle { opacity: 1; transform: scale(1); }
  .juice-card.in-pack .add-circle { opacity: 1; transform: scale(1); background: var(--gp); color: #fff; }

  .juice-count-badge {
    position: absolute;
    top: 8px; right: 8px;
    background: var(--gp);
    color: #fff;
    width: 22px; height: 22px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 500;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
  }
  .juice-card.in-pack .juice-count-badge { display: flex; }

  .juice-oos-badge {
    position: absolute;
    top: 8px; left: 8px;
    background: rgba(255,255,255,.9);
    color: var(--gp-muted);
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 500;
  }

  .juice-card-body { padding: 10px 12px 12px; }
  .juice-card-name { font-size: 13px; font-weight: 500; color: var(--gp-dark); margin-bottom: 2px; line-height: 1.3; }
  .juice-card-desc { font-size: 10px; color: var(--gp-muted); line-height: 1.4; margin-bottom: 6px; }
  .juice-card-tag { display: inline-block; font-size: 9px; background: var(--gp-light); color: var(--gp-dark); padding: 2px 8px; border-radius: 20px; }

  /* Juice background colours — matching real brand colours */
  .bg-green      { background: #b8d4a0; }
  .bg-dark-green { background: #3d6b2a; }
  .bg-lime       { background: #c5d9a0; }
  .bg-orange     { background: #c87830; }
  .bg-coral      { background: #c87060; }
  .bg-cream      { background: #c8a878; }
  .bg-tan        { background: #b89060; }
  .bg-yellow     { background: #d4c060; }
  .bg-dark-red   { background: #6b1a1a; }
  .bg-beet       { background: #8b2020; }
  .bg-orange2    { background: #c87030; }
  .bg-red        { background: #c04040; }
  .bg-teal       { background: #2a7a6a; }
  .bg-purple     { background: #5a2a6a; }

  /* Info tip below grid */
  .grid-tip { margin-top: 20px; background: var(--gp-light); border: 1px solid var(--gp-border); border-radius: 12px; padding: 14px 16px; font-size: 12px; color: var(--gp); line-height: 1.6; display: flex; gap: 10px; align-items: flex-start; }
  .grid-tip-icon { font-size: 16px; flex-shrink: 0; }

  /* ── Success overlay ── */
  .success-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 300;
    align-items: center;
    justify-content: center;
  }
  .success-overlay.show { display: flex; }
  .success-modal {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
  }
  .success-icon { font-size: 56px; margin-bottom: 16px; }
  .success-title { font-family: "Work Sans", sans-serif; font-size: 28px; font-weight: 600; color: var(--gp-dark); margin-bottom: 8px; }
  .success-body { font-size: 14px; color: var(--gp-muted); line-height: 1.6; margin-bottom: 24px; }
  .success-confirm { width: 100%; height: 48px; background-color: var(--gp); color: #fff; border: none; border-radius: 50px; font-size: 14px; font-weight: 500; font-family: inherit; cursor: pointer; margin-bottom: 10px; transition: background .2s; }
  .success-confirm:hover { background-color: #000; }
  .success-edit { background: none; border: none; font-size: 13px; color: var(--gp-muted); cursor: pointer; text-decoration: underline; font-family: inherit; }
/* ── box-product-photos.css ──────────────────────────────────────────────────
   Add these rules to your theme stylesheet (or a dedicated file).
   They handle real product thumbnail images in juice cards and filled slots.
   ─────────────────────────────────────────────────────────────────────────── */

/* Card image area when a real photo is present */
.juice-card-img.has-photo {
  background: #f4f4f4;          /* neutral fallback while image loads */
  overflow: hidden;
  position: relative;
}

.juice-card-img.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .3s ease;
}

.juice-card:hover .juice-card-img.has-photo img {
  transform: scale(1.05);       /* subtle zoom on hover */
}

/* Filled slot: product thumbnail photo */
.slot-juice-img {
  width: 100%;
  height: 52px;                 /* match your existing slot-juice-color height */
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  display: block;
}
.juice-qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.juice-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #2d7a4f;
  background: transparent;
  color: #2d7a4f;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.juice-qty-btn:hover:not(:disabled) {
  background: #2d7a4f;
  color: #fff;
}

.juice-qty-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.juice-qty-num {
  min-width: 20px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}


  /* ── Responsive ── */
@media (max-width: 1024px) {
    .builder-layout { grid-template-columns: 280px 1fr; }
    .juice-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .builder-layout { grid-template-columns: 1fr; }
    .pack-panel { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--gp-border); }
    .juice-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 500px) {
    .juice-grid { grid-template-columns: repeat(2, 1fr); }
}