#overlay-root:empty { display: none; }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.overlay--center,
.overlay--search {
  display: flex;
  justify-content: center;
  overflow-y: auto;
  background: rgba(28, 25, 23, 0.6);
  backdrop-filter: blur(3px);
}

.overlay--center { align-items: center; padding: 1rem; }
.overlay--search { align-items: flex-start; padding: 4rem 1rem 1rem; }

.overlay__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(28, 25, 23, 0.5);
  backdrop-filter: blur(3px);
}

.drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(28rem, calc(100% - 2.5rem));
  height: 100%;
  background: #fff;
  box-shadow: var(--shadow);
  animation: slide-in 0.28s ease;
}

.drawer__head,
.modal__bar,
.ship-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.drawer__head,
.modal__bar {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--stone-200);
  background: var(--page);
}

.drawer__head h2,
.modal__bar h2,
.modal__bar h3 { margin: 0; font-size: 1.05rem; }

.drawer__head h2,
.modal__bar h3,
.calm-head h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.drawer__head h2 .icon { color: var(--green); }

.drawer__count {
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(231, 229, 228, 0.9);
  color: var(--stone-500);
  font-size: 0.75rem;
  font-weight: 600;
}

.icon-x {
  display: grid;
  place-items: center;
  padding: 0.25rem;
  border: 0;
  border-radius: 0.5rem;
  background: none;
  color: var(--stone-400);
}

.icon-x:hover { color: var(--stone-700); }

.ship-note {
  display: block;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid #d8e6d4;
  background: var(--green-soft);
  color: #2f5421;
  font-size: 0.75rem;
  font-weight: 600;
}

.ship-note p {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.4rem;
}

.meter {
  height: 0.375rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--stone-200);
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.drawer__body {
  flex: 1;
  overflow: auto;
  padding: 1rem 1.5rem;
}

.drawer__foot {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem;
  border-top: 1px solid var(--stone-200);
  background: var(--page);
}

.totals { display: grid; gap: 0.35rem; color: var(--stone-600); font-size: 0.75rem; }
.totals div,
.line { display: flex; justify-content: space-between; gap: 1rem; }
.totals .grand {
  padding-top: 0.5rem;
  border-top: 1px solid var(--stone-200);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
}
.free { color: var(--green); }

.cart-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--stone-100);
  border-radius: 0.75rem;
  background: rgba(250, 248, 245, 0.6);
}

.cart-row__visual {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(231, 229, 228, 0.8);
  border-radius: 0.5rem;
  background: #fff;
}

.cart-row h3 {
  margin: 0;
  overflow: hidden;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  text-transform: capitalize;
  white-space: nowrap;
}

.cart-row .each { margin: 0.1rem 0 0; color: var(--stone-500); font-size: 11px; }
.stepper { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.45rem; }
.stepper__box {
  display: flex;
  align-items: center;
  border: 1px solid var(--stone-200);
  border-radius: 0.35rem;
  background: #fff;
}
.stepper button,
.qty button {
  border: 0;
  background: none;
  color: var(--stone-500);
  font-weight: 700;
}
.stepper button { padding: 0.25rem; }
.qty button { padding: 0.35rem 0.5rem; }
.ghost {
  border: 0;
  background: none;
  color: var(--stone-400);
  padding: 0.25rem;
}
.ghost:hover { color: var(--rose); }
.line-total { flex: 0 0 auto; font-size: 0.75rem; font-weight: 700; }

.empty, .done {
  display: flex;
  min-height: 16rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
}

.empty__icon, .done__icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
}
.empty__icon { background: var(--stone-100); color: var(--stone-400); }
.done__icon { background: #d1fae5; color: var(--green); }
.done h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
}
.address-chip {
  padding: 0.75rem;
  border: 1px solid var(--stone-200);
  border-radius: 0.75rem;
  background: var(--page);
  font-size: 0.75rem;
  font-weight: 500;
}
.order-no { margin: 0; color: var(--stone-400); font-size: 11px; }

.stack { display: grid; gap: 0.75rem; }
.stack label, .field-label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--stone-700);
  font-size: 0.75rem;
  font-weight: 600;
}
.field, .stack textarea, .stack input, .info-form input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--stone-200);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--ink);
  font-size: 0.75rem;
}
.field:focus, .stack textarea:focus, .stack input:focus, .info-form input:focus {
  outline: none;
  border-color: var(--green);
}
.pay-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border: 1px solid var(--stone-200);
  border-radius: 0.5rem;
  background: #fafaf9;
  font-size: 0.75rem;
}
.back-link {
  border: 0;
  background: none;
  color: var(--green);
  font-size: 0.75rem;
}
.back-link:hover { text-decoration: underline; }
.full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--green);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}
.full:hover { background: var(--green-deep); }

.modal {
  position: relative;
  width: min(100%, 32rem);
  margin-block: 2rem;
  border: 1px solid var(--stone-200);
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: var(--shadow);
  animation: fade-in 0.2s ease;
}
.modal--sm { width: min(100%, 24rem); }
.modal--md { width: min(100%, 36rem); }
.modal--lg { width: min(100%, 42rem); }
.modal--xl { width: min(100%, 48rem); overflow: hidden; }
.modal--sheet {
  display: flex;
  max-height: min(90vh, 52rem);
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.modal__body { overflow: auto; padding: 1.5rem; }
.modal--pad { padding: 1.5rem; }
.kicker {
  color: var(--stone-500);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.kicker--green { color: var(--green); }

.detail { display: grid; }
.detail__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(231, 229, 228, 0.8);
  background: var(--page);
}
.eyebrow {
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.size-chip {
  margin-top: 1rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(231, 229, 228, 0.8);
  border-radius: 0.35rem;
  background: #fff;
  color: var(--stone-500);
  font-size: 0.75rem;
}
.detail__info { padding: 1.5rem; }
.detail__info h2 { margin: 0; font-size: 1.35rem; text-transform: capitalize; }
.subtitle { margin: 0.25rem 0 0; color: var(--green); font-size: 0.75rem; font-weight: 500; }
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--stone-100);
}
.price-row strong { font-size: 1.5rem; }
.stars { color: #fbbf24; letter-spacing: 0.05em; }
.rating { color: var(--stone-600); font-size: 0.75rem; }
.desc { color: var(--stone-600); font-size: 0.85rem; line-height: 1.6; }
.tabs { display: flex; gap: 1rem; margin-top: 1.25rem; border-bottom: 1px solid var(--stone-200); }
.tabs button {
  padding: 0 0 0.5rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--stone-500);
  font-size: 0.75rem;
  font-weight: 600;
}
.tabs button.is-active { border-color: var(--green); color: var(--green); }
.tab-panel { min-height: 5.5rem; padding: 0.75rem 0; color: var(--stone-700); font-size: 0.75rem; }
.tab-panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.tab-panel li { display: flex; gap: 0.4rem; }
.buy {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--stone-100);
}
.qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--stone-200);
  border-radius: 0.75rem;
}
.wish-lg {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--stone-200);
  border-radius: 0.75rem;
  background: #fafaf9;
  color: var(--stone-600);
}
.wish-lg.is-on { border-color: #fecdd3; background: #fff1f2; color: var(--rose); }
.modal-x {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--stone-100);
  color: var(--stone-600);
}
.modal-x:hover { background: var(--stone-200); }

.progress-label { display: flex; justify-content: space-between; margin-bottom: 0.5rem; color: var(--stone-500); font-size: 0.75rem; font-weight: 600; }
.quiz-title { margin: 0 0 0.5rem; font-family: var(--serif); font-size: 1.5rem; font-style: italic; }
.quiz-options { display: grid; gap: 0.75rem; }
.quiz-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--stone-200);
  border-radius: 0.75rem;
  background: #fff;
  text-align: left;
}
.quiz-option:hover { border-color: var(--green-mid); background: rgba(237, 244, 234, 0.5); }
.quiz-option strong { display: block; color: var(--stone-800); font-size: 0.875rem; }
.quiz-option small { color: var(--stone-500); font-size: 0.75rem; }
.result-head { padding-bottom: 1rem; border-bottom: 1px solid var(--stone-100); text-align: center; }
.result-head h3 { margin: 0.75rem 0 0; font-family: var(--serif); font-size: 1.7rem; font-style: italic; }
.two-col { display: grid; gap: 1rem; padding: 1rem; border: 1px solid rgba(231, 229, 228, 0.8); border-radius: 1rem; background: var(--page); font-size: 0.75rem; }
.two-col h4 { display: flex; align-items: center; gap: 0.35rem; margin: 0 0 0.5rem; }
.two-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; color: var(--stone-600); }
.two-col li { display: flex; gap: 0.35rem; }
.reco { display: grid; gap: 0.75rem; }
.reco-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--stone-200);
  border-radius: 0.75rem;
}
.reco-card h5 { margin: 0; overflow: hidden; font-size: 0.75rem; text-overflow: ellipsis; text-transform: capitalize; white-space: nowrap; }
.reco-card p { margin: 0.1rem 0 0; color: var(--green-mid); font-size: 11px; font-weight: 600; }
.add-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.7rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--green-mid);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}
.quiz-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.5rem; border-top: 1px solid var(--stone-100); }
.linkish { display: inline-flex; align-items: center; gap: 0.35rem; border: 0; background: none; color: var(--stone-500); font-size: 0.75rem; font-weight: 500; }

.calm-head { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--stone-200); background: #ede4d8; }
.calm-grid, .tier-grid, .contact-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.calm-card, .tier {
  padding: 0.75rem;
  border: 1px solid var(--stone-200);
  border-radius: 1rem;
  background: var(--page);
  text-align: left;
}
.tier { background: #fff; color: var(--stone-600); }
.tier.is-on { border-color: var(--green); background: var(--green-soft); color: var(--ink); box-shadow: 0 0 0 1px var(--green); }
.tier b, .calm-card h4 { display: block; font-size: 0.75rem; }
.muted { margin: 0.25rem 0 0; color: var(--stone-500); font-size: 11px; }
.off { padding: 0.1rem 0.35rem; border-radius: 0.2rem; background: var(--stone-200); font-size: 10px; }
.off--hot { background: var(--green); color: #fff; }
.kit-total { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--stone-200); }
.was { color: var(--stone-400); font-size: 0.75rem; text-decoration: line-through; }
.assure { display: flex; justify-content: center; align-items: center; gap: 0.35rem; color: var(--stone-500); font-size: 10px; }

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--stone-200);
  background: var(--page);
}
.search-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
}
.search-bar input:focus { outline: none; }
.search-results { max-height: 60vh; overflow: auto; padding: 1.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips button, .term {
  padding: 0.35rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: var(--green-soft);
  color: #2c5321;
  font-size: 0.75rem;
  font-weight: 500;
}
.search-hit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--stone-100);
  border-radius: 1rem;
  background: rgba(250, 248, 245, 0.55);
}
.hit-open {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}
.hit-visual {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  overflow: hidden;
  border: 1px solid rgba(231, 229, 228, 0.8);
  border-radius: 0.75rem;
  background: #fff;
}
.hit-open strong { display: block; font-size: 0.75rem; text-transform: capitalize; }
.hit-open small { color: var(--stone-500); font-size: 11px; }
.bag-btn {
  display: grid;
  place-items: center;
  padding: 0.5rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--green-mid);
  color: #fff;
}
.sold { color: var(--stone-400); font-size: 10px; font-weight: 600; }
.search-label { color: var(--stone-400); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

.article-title { margin: 0.75rem 0 0; font-family: var(--serif); font-size: 1.7rem; font-style: italic; line-height: 1.2; }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1rem; color: var(--stone-500); font-size: 0.75rem; }
.article-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.article-hero { overflow: hidden; margin-bottom: 1.25rem; border: 1px solid rgba(231, 229, 228, 0.8); border-radius: 1rem; }
.article-hero img { width: 100%; height: 16rem; object-fit: cover; }
.article-body { color: var(--stone-700); font-size: 0.9rem; line-height: 1.7; white-space: pre-line; }
.article-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--stone-200); font-size: 0.75rem; }
.mini-tags span { margin-left: 0.35rem; padding: 0.1rem 0.4rem; border-radius: 0.2rem; background: var(--green-soft); color: var(--green); font-weight: 500; }

.store-card {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--stone-200);
  border-radius: 0.75rem;
  background: var(--page);
  font-size: 0.75rem;
}
.store-card h4 { margin: 0 0 0.15rem; }
.info-copy { color: var(--stone-700); font-size: 0.85rem; line-height: 1.6; }
.info-copy h4 { margin: 0 0 0.25rem; font-size: 0.9rem; }
.info-form { display: grid; gap: 0.5rem; }
.track-row { display: flex; gap: 0.5rem; }
.prose p { margin: 0 0 0.75rem; }

@media (min-width: 640px) {
  .overlay--search { padding-top: 6rem; }
  .reco { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .detail { grid-template-columns: 5fr 7fr; }
  .detail__visual { border-bottom: 0; border-right: 1px solid rgba(231, 229, 228, 0.8); }
  .two-col { grid-template-columns: 1fr 1fr; }
  .detail__info h2 { font-size: 1.5rem; }
}
