/* Camp List — styles ported from the Claude Design prototype
   (handoff-import/car-camping-checklist-app/project/Camping Checklist v2.dc.html) */

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: #e7e3d8;
  height: 100%;
}

body {
  min-height: 100dvh;
  font-family: -apple-system, system-ui, sans-serif;
}

a { color: #2E7D4F; text-decoration: none; }
a:hover { color: #1f5c39; }

::-webkit-scrollbar { display: none; }

button {
  touch-action: manipulation;
  font: inherit;
}

@keyframes ccFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ccSheetUp { from { transform: translateY(48px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes ccPop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes ccTwinkle { 0%, 100% { opacity: 0.9; } 50% { opacity: 0.3; } }

/* ---- app shell ---- */
.app-shell {
  position: relative;
  height: 100dvh;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #F4F1E8;
  font-family: -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
}

.screen {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: calc(env(safe-area-inset-top) + 8px) 0 calc(env(safe-area-inset-bottom) + 120px);
}

/* ---- header ---- */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px 14px;
}
.page-header--shop { padding-bottom: 2px; }

.page-title {
  font-family: ui-rounded, -apple-system, system-ui, sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 41px;
  color: #1E2B22;
}

.add-btn {
  width: 38px;
  height: 38px;
  border-radius: 19px;
  background: #2E7D4F;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(46, 125, 79, 0.35);
  padding: 0;
  transition: transform 0.1s;
}
.add-btn:active { transform: scale(0.92); }
.add-btn span {
  color: #fff;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  margin-top: -2px;
}

/* ---- hero card ---- */
.hero-card {
  margin: 0 16px 18px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, #16283A 0%, #23445A 52%, #2E5A48 100%);
  padding: 16px 18px 18px;
  color: #fff;
  box-shadow: 0 4px 14px rgba(30, 43, 34, 0.18);
}
.hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-scene .twinkle { animation: ccTwinkle 2.6s infinite; }
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.hero-title {
  font-family: ui-rounded, -apple-system, system-ui, sans-serif;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 0.2px;
  margin-top: 2px;
}
.hero-sub {
  font-size: 14px;
  letter-spacing: -0.2px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1px;
}
.progress-track {
  margin-top: 22px;
  position: relative;
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
}
.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 4px;
  background: #F5B83D;
  transition: width 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
  width: 0%;
}
.progress-car {
  position: absolute;
  bottom: 1px;
  left: -13px;
  font-size: 19px;
  line-height: 1;
  transition: left 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}
.progress-tent {
  position: absolute;
  bottom: 4px;
  right: -4px;
  font-size: 16px;
  line-height: 1;
}

/* ---- category / meal cards ---- */
.card {
  margin: 0 16px 12px;
  background: #FFFEFA;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(30, 43, 34, 0.05);
}
.card-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 16px 11px 12px;
  cursor: pointer;
  user-select: none;
}
.card-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.card-title {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: #1E2B22;
}
.card-title-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.card-subtitle {
  font-size: 12px;
  letter-spacing: -0.1px;
  color: rgba(60, 60, 67, 0.55);
}
.count-pill {
  font-size: 13px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.chevron {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.card-body {
  border-top: 0.5px solid rgba(60, 60, 67, 0.1);
}

/* ---- rows ---- */
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  min-height: 46px;
  cursor: pointer;
}
.row:active { background: rgba(46, 125, 79, 0.06); }
.row-circle {
  width: 25px;
  height: 25px;
  border-radius: 13px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border 0.15s;
}
.row-name {
  flex: 1;
  font-size: 17px;
  letter-spacing: -0.43px;
  min-width: 0;
}
.row-bang {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.need-it-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #D97D07;
  background: rgba(232, 137, 12, 0.13);
  padding: 3px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}
.qty-pill {
  font-size: 13px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  transition: background 0.2s;
  white-space: nowrap;
}
.pop { animation: ccPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }

.footer-hint {
  padding: 6px 32px 0;
  font-size: 13px;
  text-align: center;
  color: rgba(60, 60, 67, 0.4);
  letter-spacing: -0.1px;
}

/* ---- food shop specific ---- */
.shop-summary {
  padding: 0 20px 16px;
  font-size: 15px;
  letter-spacing: -0.2px;
  color: rgba(60, 60, 67, 0.6);
}

.nights-card {
  margin: 0 16px 18px;
  background: #FFFEFA;
  border-radius: 16px;
  padding: 13px 14px 13px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(30, 43, 34, 0.05);
}
.nights-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(46, 125, 79, 0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.nights-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.nights-title { font-size: 16px; font-weight: 600; letter-spacing: -0.3px; color: #1E2B22; }
.nights-hint { font-size: 13px; letter-spacing: -0.1px; color: rgba(60, 60, 67, 0.6); }
.stepper {
  display: flex;
  align-items: center;
  background: rgba(118, 118, 128, 0.12);
  border-radius: 10px;
  overflow: hidden;
}
.stepper-btn {
  width: 40px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  color: #1E2B22;
}
.stepper-btn:active { background: rgba(60, 60, 67, 0.1); }
.stepper-value {
  width: 32px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: #1E2B22;
  font-variant-numeric: tabular-nums;
}

/* ---- tab bar ---- */
.tab-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 8px 0 max(30px, calc(env(safe-area-inset-bottom) + 12px));
  display: flex;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(250, 248, 242, 0.85);
  border-top: 0.5px solid rgba(60, 60, 67, 0.14);
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 0;
  cursor: pointer;
  border: none;
  background: none;
  color: rgba(60, 60, 67, 0.5);
}
.tab-item.active { color: #2E7D4F; }
.tab-item span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06px;
  color: inherit;
}
.tab-icon-wrap { position: relative; }
.badge {
  position: absolute;
  top: -4px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: #E8890C;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.badge[hidden] {
  display: none;
}

/* ---- add sheet ---- */
.sheet-scrim {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgba(20, 30, 24, 0.4);
  animation: ccFadeIn 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.sheet-scrim[hidden] {
  display: none;
}
.sheet {
  background: #F4F1E8;
  border-radius: 22px 22px 0 0;
  padding: 8px 20px calc(env(safe-area-inset-bottom) + 24px);
  animation: ccSheetUp 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}
.sheet-handle {
  width: 36px;
  height: 5px;
  border-radius: 3px;
  background: rgba(60, 60, 67, 0.25);
  margin: 4px auto 14px;
}
.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.sheet-cancel { font-size: 17px; color: #2E7D4F; cursor: pointer; }
.sheet-title {
  font-family: ui-rounded, -apple-system, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #1E2B22;
}
.sheet-add { font-size: 17px; font-weight: 600; cursor: pointer; }
.sheet-input {
  width: 100%;
  border: none;
  outline: none;
  background: #FFFEFA;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 17px;
  font-family: -apple-system, system-ui, sans-serif;
  letter-spacing: -0.43px;
  color: #1E2B22;
  margin-bottom: 20px;
}
.sheet-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  color: rgba(60, 60, 67, 0.6);
  margin: 0 4px 8px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.chip {
  padding: 8px 13px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.2px;
  cursor: pointer;
  background: rgba(118, 118, 128, 0.12);
  color: #1E2B22;
  transition: background 0.15s;
}
.chip-active { background: #2E7D4F; color: #fff; }
.segs {
  display: flex;
  background: rgba(118, 118, 128, 0.12);
  border-radius: 10px;
  padding: 2px;
  gap: 2px;
}
.seg {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.2px;
  cursor: pointer;
  color: #1E2B22;
  transition: background 0.15s;
}
.seg-active {
  background: #FFFEFA;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
