/* ── LAB HERO ── */
.lab-hero {
  padding: 48px 24px 32px;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.lab-hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.lab-hero-title {
  font-family: var(--serif);
  font-size: clamp(36px, 9vw, 56px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.lab-hero-title em { font-style: italic; color: var(--red); }

.lab-hero-sub {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
  margin-top: 14px;
  max-width: 460px;
}

/* ── CATEGORY FILTER (inside picker modal) ── */
.lab-picker-cats {
  display: flex;
  gap: 8px;
  padding-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.lab-picker-cats::-webkit-scrollbar { display: none; }

.lab-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 0;
  flex-shrink: 0;
  transition: opacity 0.2s;
  font-family: var(--sans);
}

.lab-cat-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--red-bg);
  font-size: 16px;
  transition: background 0.2s, color 0.2s;
}

.lab-cat span:last-child {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
}

.lab-cat.active .lab-cat-icon {
  background: var(--red);
  color: #fff;
}
.lab-cat.active span:last-child { color: var(--red); }

/* ── PROGRESS INDICATOR ── */
.lab-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 8px 24px 8px;
  max-width: 400px;
  margin: 0 auto;
}

.lab-progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background 0.25s;
}
.lab-progress-dot.active {
  background: var(--red);
  box-shadow: 0 0 0 4px var(--red-bg);
}
.lab-progress-dot.done { background: var(--red); }

.lab-progress-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 4px;
}

/* ── BUILDER ── */
.lab-builder {
  padding: 24px 24px 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.lab-step { animation: labStepIn 0.25s ease; }
@keyframes labStepIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lab-builder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.lab-builder-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--black);
}

.lab-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--red);
  cursor: pointer;
  font-family: var(--sans);
  transition: color 0.2s, transform 0.2s;
  padding: 4px;
}
.lab-reset-btn:hover { color: var(--red-dark); transform: rotate(-45deg); }
.lab-reset-icon { font-size: 26px; line-height: 1; }

.lab-tier {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.lab-step[data-step="1"] .lab-tier:first-of-type { border-top: none; }

.lab-tier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.lab-tier-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
}

.lab-tier-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
}

.lab-notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 12px;
}

.lab-no-notes {
  font-size: 13px;
  color: var(--gray);
  padding: 12px 0;
  grid-column: 1 / -1;
}

/* ── SLOTS (in builder) ── */
.lab-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  font-family: var(--sans);
  transition: transform 0.15s;
}
.lab-slot:hover { transform: translateY(-2px); }

.lab-slot-circle {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.lab-slot-circle--dotted {
  background: transparent;
  border: 2px dashed var(--border);
  transition: border-color 0.2s, background 0.2s;
}
.lab-slot--empty:hover .lab-slot-circle--dotted {
  border-color: var(--red);
  background: var(--red-bg);
}

.lab-slot-plus {
  font-size: 26px;
  font-weight: 300;
  color: var(--gray);
  line-height: 1;
  transition: color 0.2s;
}
.lab-slot--empty:hover .lab-slot-plus { color: var(--red); }

.lab-slot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lab-slot--filled .lab-slot-circle {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-bg);
}

.lab-slot-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--black);
  text-align: center;
  line-height: 1.3;
}
.lab-slot--filled .lab-slot-name { color: var(--red); font-weight: 600; }
.lab-slot--empty .lab-slot-name { color: var(--gray); }

/* ── NOTE PICKER MODAL ── */
.lab-picker-popup {
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
}

.lab-picker-title { margin-bottom: 12px !important; }

.lab-picker-remove {
  display: inline-block;
  background: none;
  border: none;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--sans);
  padding: 0;
  margin-bottom: 16px;
  text-decoration: underline;
}
.lab-picker-remove[hidden] { display: none; }

.lab-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
}

.lab-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  font-family: var(--sans);
  transition: transform 0.15s;
}
.lab-note:hover:not(.disabled) { transform: translateY(-2px); }
.lab-note.disabled { opacity: 0.3; cursor: not-allowed; }

.lab-note-img-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
}

.lab-note-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lab-note-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--black);
  text-align: center;
  line-height: 1.3;
}

/* ── STRENGTH ── */
.lab-strength {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.lab-step[data-step="2"] .lab-strength:first-of-type { border-top: none; }

.lab-strength-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.lab-strength-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
}

.lab-slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.lab-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--red);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.lab-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--red);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.lab-slider-marks {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 11px;
  color: var(--gray);
}

/* ── VOLUME ── */
.lab-volume {
  padding: 24px 0;
  border-top: none;
}

.lab-volume-opts {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.lab-vol-opt { flex: 1; cursor: pointer; }
.lab-vol-opt input[type="radio"] { display: none; }

.lab-vol-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  border: 1.5px solid var(--border);
  background: var(--white);
  transition: all 0.18s;
}
.lab-vol-opt input:checked + .lab-vol-box {
  border-color: var(--red);
  background: var(--red-bg);
}
.lab-vol-size { font-size: 15px; font-weight: 600; color: var(--black); }
.lab-vol-price { font-size: 13px; color: var(--red); font-weight: 500; }

/* ── NAME FIELD ── */
.lab-name-field {
  padding: 0 0 24px;
  border-top: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lab-name-input {
  border: 1.5px solid var(--border);
  padding: 12px 14px;
  font-size: 14px;
  font-family: var(--sans);
  background: var(--white);
  color: var(--black);
  outline: none;
  transition: border-color 0.2s;
}
.lab-name-input:focus { border-color: var(--red); }

/* ── SUMMARY ── */
.lab-summary {
  padding: 20px 0 100px;
  border-top: 1px solid var(--border);
}

.lab-summary-empty {
  font-size: 13px;
  color: var(--gray);
  font-style: italic;
}

.lab-summary-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 12px;
}

.lab-summary-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.lab-summary-row:last-child { border-bottom: none; }

.lab-summary-tier {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.lab-summary-notes {
  font-size: 14px;
  color: var(--black);
}

/* ── STICKY BAR ── */
.lab-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 16px;
}

.lab-sticky-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lab-sticky-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lab-sticky-label {
  font-size: 12px;
  color: var(--gray);
  font-weight: 500;
}

.lab-sticky-price {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
}

.lab-sticky-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.04em;
  white-space: nowrap;
  clip-path: polygon(0% 3%, 2% 0%, 98% 1%, 100% 4%, 99% 96%, 97% 100%, 3% 99%, 1% 97%);
}
.lab-sticky-btn:hover:not(:disabled) { background: var(--red-dark); }
.lab-sticky-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.lab-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1.5px solid var(--border);
  color: var(--black);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.lab-back-btn:hover { border-color: var(--red); color: var(--red); }
.lab-back-btn[hidden] { display: none; }

/* ── SUCCESS POPUP ── */
.lab-popup {
  text-align: center;
  padding: 40px 32px;
}

.lab-popup-icon {
  font-size: 36px;
  color: var(--red);
  margin-bottom: 8px;
}

.lab-popup-text {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 24px;
}

.lab-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-popup-continue {
  background: none;
  border: 1.5px solid var(--border);
  padding: 14px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--sans);
  color: var(--black);
  cursor: pointer;
  transition: border-color 0.2s;
  width: 100%;
}
.cart-popup-continue:hover { border-color: var(--black); }

.cart-popup-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--black);
  color: #fff;
  text-align: center;
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--sans);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s;
}
.cart-popup-checkout:hover { background: #222; }

/* Add bottom padding so content isn't hidden behind sticky bar */
body { padding-bottom: 0; }

@media (max-width: 420px) {
  .lab-sticky-bar { padding: 12px 16px; gap: 10px; }
  .lab-back-btn { padding: 12px 14px; }
  .lab-sticky-btn { padding: 12px 18px; }
}

@media (min-width: 640px) {
  .lab-hero { padding: 64px 56px 32px; }
  .lab-categories { padding: 8px 56px 28px; }
  .lab-builder { padding: 24px 56px 60px; }
  .lab-notes-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .lab-sticky-bar { padding: 16px 56px; }
}
