
:root {
  --bg: #efe4d4;
  --surface: #fffdfa;
  --surface-soft: #fcf5ea;
  --text: #1d1814;
  --muted: #6a6056;
  --line: #e2d4c0;
  --gold: #d4af5b;
  --gold-dark: #9d7932;
  --brown: #533a26;
  --shadow: 0 12px 28px rgba(62, 46, 28, 0.085);
  --shadow-soft: 0 7px 20px rgba(62, 46, 28, 0.065);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(212, 175, 91, .17), transparent 28%),
    linear-gradient(180deg, #fbf5ec 0%, var(--bg) 48%, #e8dcc8 100%);
}

a { color: inherit; text-decoration: none; }

.app {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 10px 10px 48px;
  background:
    radial-gradient(circle at 88% 18%, rgba(212,175,91,.13), transparent 24%),
    linear-gradient(180deg, rgba(255,251,245,.62), rgba(243,235,223,.52));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 6px 0;
  backdrop-filter: blur(18px);
  background: rgba(243, 236, 225, .80);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255,252,248,.94);
  border: 1px solid rgba(212, 175, 91, .30);
  border-radius: 999px;
  padding: 7px 9px;
  box-shadow: 0 8px 20px rgba(62,46,28,.075);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, #efd995, #cda656);
  color: #241a12;
  font-weight: 900;
  flex: 0 0 auto;
  font-size: 14px;
}

.brand-text {
  min-width: 0;
  font-weight: 850;
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff7eb;
  color: var(--brown);
  border: 1px solid rgba(215, 180, 95, .32);
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.hero {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  border-radius: 24px;
  padding: 22px 18px 20px;
  background:
    linear-gradient(135deg, rgba(255,253,248,.98), rgba(248,239,226,.96)),
    radial-gradient(circle at 90% 8%, rgba(212,175,91,.29), transparent 28%);
  border: 1px solid rgba(215,180,95,.26);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  right: -82px;
  bottom: -104px;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: rgba(212,175,91,.08);
  border: 1px solid rgba(212,175,91,.14);
}

.eyebrow {
  margin: 0 0 9px;
  font-size: 10.5px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

h1 {
  margin: 0;
  font-size: clamp(30px, 8.5vw, 38px);
  line-height: 1.02;
  letter-spacing: -.052em;
}

.lead {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.38;
  letter-spacing: -.012em;
}

.notice {
  margin-top: 12px;
  background: rgba(255,252,247,.95);
  border: 1px solid rgba(215,180,95,.24);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.notice h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: -.05em;
}

.notice p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.42;
}

.breadcrumbs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 7px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  white-space: nowrap;
}

.breadcrumbs a,
.breadcrumbs strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumbs a {
  color: var(--gold-dark);
  font-weight: 850;
  flex: 0 0 auto;
}

.breadcrumbs strong {
  min-width: 0;
}

.breadcrumbs span { color: #b0a79c; }

.section-head {
  margin: 20px 0 11px;
}

.section-head h2 {
  margin: 0;
  font-size: 31px;
  line-height: 1.02;
  letter-spacing: -.055em;
}

.section-note {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

.section-head.section-head-no-title .section-note {
  margin-top: 0;
}

.list {
  display: grid;
  gap: 10px;
}



.card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 36px;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: rgba(255,253,249,.98);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  border-radius: 22px;
  padding: 10px;
  transition: .18s ease;
}

.card:active { transform: scale(.992); }

.card.compact {
  grid-template-columns: 46px minmax(0, 1fr) 34px;
  border-radius: 20px;
  padding: 9px;
}

.thumb {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .04em;
  background: linear-gradient(135deg, #211914, #755239);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}

.card.compact .thumb {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #fff7e6;
  border: 1px solid #eddfbf;
  color: var(--gold-dark);
  font-size: 11px;
  box-shadow: none;
}

.thumb-mask { background: linear-gradient(135deg,#2b2018,#9a7142); }
.thumb-leavein { background: linear-gradient(135deg,#241a13,#625744); }
.thumb-cond { background: linear-gradient(135deg,#261c14,#7c6646); }
.thumb-scalp { background: linear-gradient(135deg,#1f1814,#60544c); }
.thumb-muted { filter: grayscale(.15); opacity: .75; }

.card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -.045em;
}

.card.compact h3 {
  font-size: 18px;
  line-height: 1.08;
}

.card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.34;
}

.card.compact p {
  font-size: 13px;
  margin-top: 5px;
  line-height: 1.32;
}

.arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #f6efe0;
  border: 1px solid #ebddc0;
  color: var(--brown);
  font-size: 21px;
  font-weight: 900;
  justify-self: end;
}

.card.compact .arrow {
  width: 34px;
  height: 34px;
  font-size: 20px;
}

.future-label {
  display: inline-flex;
  margin-top: 7px;
  min-height: 23px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f6f3ef;
  border: 1px solid #e6e0d6;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.product-grid {
  display: grid;
  gap: 12px;
}

.product-card {
  background: rgba(255,253,249,.98);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.product-photo {
  height: 160px;
  border-radius: 18px;
  border: 1px solid #ece1cd;
  background: linear-gradient(180deg,#fdfaf4,#f1e8d8);
  display: grid;
  place-items: center;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px;
}

.product-card h3 {
  margin: 13px 0 0;
  font-size: 21px;
  line-height: 1.07;
  letter-spacing: -.04em;
}

.product-card .brand-name {
  margin-top: 6px;
  color: var(--brown);
  font-size: 14px;
  font-weight: 850;
}

.product-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.compose-btn {
  display: inline-flex;
  margin-top: 12px;
  min-height: 34px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(215,180,95,.38);
  background: #fffaf1;
  color: var(--brown);
  font-size: 13px;
  font-weight: 850;
}

.empty-box {
  margin-top: 12px;
  border-radius: 22px;
  background: rgba(255,252,247,.82);
  border: 1px dashed #d9c8a7;
  padding: 18px 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.empty-box strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  letter-spacing: -.02em;
  margin-bottom: 7px;
}

@media (min-width: 431px) {
  body {
    background:
      radial-gradient(circle at top left, rgba(215, 180, 95, .13), transparent 28%),
      linear-gradient(180deg, #fffaf3 0%, #f1eadf 100%);
  }

  .app {
    box-shadow: 0 0 0 1px rgba(215,180,95,.14), 0 20px 70px rgba(62,46,28,.09);
  }
}

@media (max-width: 380px) {
  .app { padding-left: 8px; padding-right: 8px; }
  h1 { font-size: 30px; }
  .lead { font-size: 16px; }
  .card { grid-template-columns: 56px minmax(0,1fr) 34px; }
  .thumb { width: 56px; height: 56px; border-radius: 16px; font-size: 17px; }
  .card h3 { font-size: 20px; }
  .card p { font-size: 13px; }
}


.product-card.real {
  padding: 12px;
}

.product-card.real .product-photo {
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(246,239,224,.92)),
    radial-gradient(circle at 50% 18%, rgba(215,180,95,.16), transparent 38%);
}

.product-note {
  display: inline-flex;
  margin-top: 10px;
  min-height: 25px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f8f2e5;
  color: var(--gold-dark);
  border: 1px solid #eadbb9;
  font-size: 11.5px;
  font-weight: 850;
}

details.composition {
  margin-top: 12px;
  border: 1px solid rgba(215,180,95,.30);
  background: #fffaf1;
  border-radius: 18px;
  overflow: hidden;
}

details.composition summary {
  list-style: none;
  cursor: pointer;
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 9px 12px;
  color: var(--brown);
  font-size: 13px;
  font-weight: 850;
}

details.composition summary::-webkit-details-marker {
  display: none;
}

details.composition summary::after {
  content: "＋";
  margin-left: auto;
  color: var(--gold-dark);
  font-weight: 900;
}

details.composition[open] summary::after {
  content: "−";
}

.composition-body {
  border-top: 1px solid rgba(215,180,95,.22);
  padding: 11px 12px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.composition-body p {
  margin: 0 0 8px;
  font-size: 13px;
}

.composition-body p:last-child {
  margin-bottom: 0;
}

.source-link {
  color: var(--gold-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}



.list-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  gap: 12px;
  align-items: center;
  background: rgba(255,253,249,.98);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 12px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: .18s ease;
}
.list-card:active { transform: scale(.992); }

.list-card-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.08;
  letter-spacing: -.03em;
}
.list-card-brand {
  margin-top: 5px;
  color: var(--brown);
  font-size: 13px;
  font-weight: 800;
}
.list-card-desc {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.34;
}
.list-card-tag {
  display: inline-flex;
  margin-top: 8px;
  min-height: 24px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f8f2e5;
  border: 1px solid #eadbb9;
  color: var(--gold-dark);
  font-size: 11.5px;
  font-weight: 850;
}

.thumb-photo {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #eadbb9;
  background: linear-gradient(180deg, #fffdf8, #efe5d1);
  display: grid;
  place-items: center;
}
.thumb-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb-photo-label {
  position: absolute;
  inset: auto 6px 6px 6px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(255,252,248,.94);
  border: 1px solid rgba(234,219,185,.9);
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  color: var(--brown);
}

.list-card-photo-wrap {
  position: relative;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, .56);
  backdrop-filter: blur(7px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  padding: 12px;
}
.modal-overlay.open {
  display: flex;
}
.modal-sheet {
  width: 100%;
  max-width: 430px;
  max-height: 92vh;
  overflow: auto;
  background: linear-gradient(180deg, #fffdfa, #f7f0e4);
  border: 1px solid rgba(215, 180, 95, .28);
  border-radius: 28px 28px 20px 20px;
  box-shadow: 0 18px 48px rgba(30,20,12,.22);
  padding: 12px;
}
.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.modal-handle {
  width: 52px;
  height: 5px;
  border-radius: 999px;
  background: #dac8a2;
  margin: 0 auto 8px;
}
.modal-close {
  display: inline-flex;
  min-height: 34px;
  min-width: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff7e8;
  border: 1px solid #eadbb9;
  color: var(--brown);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}
.modal-title {
  margin: 0;
  font-size: 15px;
  font-weight: 850;
  color: var(--brown);
}
.modal-hero {
  display: grid;
  gap: 12px;
}
.modal-photo {
  width: 100%;
  height: 220px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #fffdf8, #efe5d1);
  border: 1px solid #eadbb9;
}
.modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-badge {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f8f2e5;
  border: 1px solid #eadbb9;
  color: var(--gold-dark);
  font-size: 11.5px;
  font-weight: 850;
}
.modal-brand {
  margin-top: 8px;
  color: var(--brown);
  font-size: 14px;
  font-weight: 850;
}
.modal-product-name {
  margin: 8px 0 0;
  font-size: 28px;
  line-height: 1.02;
  letter-spacing: -.045em;
}
.modal-body p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.42;
}
.modal-body strong {
  color: var(--text);
}
.full-inci-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 380px) {
  .list-card { grid-template-columns: minmax(0, 1fr) 76px; }
  .thumb-photo { width: 76px; height: 76px; }
  .list-card-title { font-size: 18px; }
  .modal-product-name { font-size: 26px; }
}


.list-card {
  display: grid;
  grid-template-columns: minmax(0,1fr) 86px;
  gap: 12px;
  align-items: center;
  background: rgba(255,255,255,.97);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 12px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: .18s ease;
  text-align: left;
}
.list-card:active { transform: scale(.992); }

.list-card-title {
  margin: 0;
  color: var(--text);
  font-size: 19px;
  line-height: 1.08;
  letter-spacing: -.035em;
}
.list-card-tag {
  display: inline-flex;
  margin-top: 7px;
  min-height: 24px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f8f2e5;
  border: 1px solid #eadbb9;
  color: var(--gold-dark);
  font-size: 11.5px;
  font-weight: 850;
}
.list-card-desc {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.34;
}
.list-card-photo {
  width: 86px;
  height: 86px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #eadbb9;
  background: linear-gradient(180deg, #fffdf8, #efe5d1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}
.list-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(25, 19, 13, .54);
  backdrop-filter: blur(7px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  padding: 12px;
}
.modal-overlay.open { display: flex; }

.modal-sheet {
  width: 100%;
  max-width: 430px;
  max-height: 92vh;
  overflow: auto;
  background: linear-gradient(180deg, #fffdfa, #f7f0e4);
  border: 1px solid rgba(215,180,95,.28);
  border-radius: 30px 30px 22px 22px;
  box-shadow: 0 18px 48px rgba(30,20,12,.22);
  padding: 12px;
}
.modal-handle {
  width: 56px;
  height: 6px;
  border-radius: 999px;
  background: #d5c39a;
  margin: 0 auto 10px;
}
.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 850;
  color: var(--brown);
}
.modal-close {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff7e8;
  border: 1px solid #eadbb9;
  color: var(--brown);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}
.modal-photo {
  width: 100%;
  height: 220px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #eadbb9;
  background: linear-gradient(180deg, #fffdf8, #efe5d1);
}
.modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-tag {
  display: inline-flex;
  margin-top: 12px;
  min-height: 25px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f8f2e5;
  border: 1px solid #eadbb9;
  color: var(--gold-dark);
  font-size: 11.5px;
  font-weight: 850;
}
.modal-brand {
  margin-top: 10px;
  color: var(--brown);
  font-size: 14px;
  font-weight: 800;
}
.modal-product-name {
  margin: 6px 0 0;
  font-size: 24px;
  line-height: 1.06;
  letter-spacing: -.04em;
}
.modal-body p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.42;
}
.modal-body strong { color: var(--text); }
.modal-meta-box {
  margin-top: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  border: 1px solid #eadbb9;
  padding: 12px;
}
.modal-meta-box p {
  margin: 0;
  font-size: 14px;
}
.modal-meta-box p + p { margin-top: 7px; }

details.composition {
  margin-top: 12px;
  border: 1px solid rgba(215,180,95,.30);
  background: #fffaf1;
  border-radius: 18px;
  overflow: hidden;
}
details.composition summary {
  list-style: none;
  cursor: pointer;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  color: var(--brown);
  font-size: 14px;
  font-weight: 850;
}
details.composition summary::-webkit-details-marker { display: none; }
details.composition summary::after {
  content: "＋";
  margin-left: auto;
  color: var(--gold-dark);
  font-weight: 900;
}
details.composition[open] summary::after { content: "−"; }
.composition-body {
  border-top: 1px solid rgba(215,180,95,.22);
  padding: 11px 12px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}
.full-inci-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.34;
}

@media (max-width: 380px) {
  .list-card { grid-template-columns: minmax(0,1fr) 78px; }
  .list-card-photo { width: 78px; height: 78px; }
  .list-card-title { font-size: 18px; }
  .modal-product-name { font-size: 22px; }
}


/* Photo layout fix: show full product packshot, no cropping */
.list-card {
  grid-template-columns: minmax(0, 1fr) 94px !important;
  align-items: center !important;
}

.list-card-photo,
.thumb-photo {
  width: 94px !important;
  height: 94px !important;
  border-radius: 20px !important;
  background: #fffdf8 !important;
  padding: 8px !important;
}

.list-card-photo img,
.thumb-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

.modal-photo {
  height: auto !important;
  aspect-ratio: 4 / 5 !important;
  background: #fffdf8 !important;
  padding: 14px !important;
}

.modal-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

.list-card-title {
  color: var(--text) !important;
  text-decoration: none !important;
}

.list-card:link,
.list-card:visited,
.list-card:hover,
.list-card:active {
  color: var(--text) !important;
}

@media (max-width: 380px) {
  .list-card {
    grid-template-columns: minmax(0, 1fr) 86px !important;
  }
  .list-card-photo,
  .thumb-photo {
    width: 86px !important;
    height: 86px !important;
  }
}

/* Modal scroll fix for mobile Safari/Chrome: scroll the overlay, not a nested sheet */
body.modal-open {
  overflow: hidden !important;
  touch-action: none;
}

.modal-overlay.open {
  display: flex !important;
  align-items: flex-start !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  padding: max(12px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom)) !important;
}

.modal-sheet {
  max-height: none !important;
  overflow: visible !important;
  margin: 0 auto !important;
}

.modal-top {
  position: sticky !important;
  top: 0 !important;
  z-index: 5 !important;
  padding: 8px 0 !important;
  background: linear-gradient(180deg, rgba(255,253,250,.98), rgba(255,253,250,.90)) !important;
  backdrop-filter: blur(12px);
  border-radius: 18px;
}

.modal-close {
  flex: 0 0 auto;
}

.modal-photo {
  display: grid !important;
  place-items: center !important;
  min-height: 280px !important;
  max-height: 420px !important;
}

.modal-photo img {
  display: block !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

@media (max-width: 380px) {
  .modal-photo {
    min-height: 250px !important;
  }
}

body.modal-open {
  touch-action: auto !important;
}

.modal-overlay.open {
  touch-action: pan-y !important;
}


/* Final packshot safety fix: render images as intrinsic packshots inside the frame */
.modal-photo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  aspect-ratio: 4 / 5 !important;
  min-height: 0 !important;
  max-height: none !important;
}

.modal-photo img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.list-card-photo img,
.thumb-photo img {
  object-fit: contain !important;
  object-position: center center !important;
}


/* Nourishing masks list: visible brand + compact product name */
.list-card-brand-small {
  margin: 0 0 5px;
  color: var(--brown);
  font-size: 11px;
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .82;
}

.list-card-title {
  font-size: 18px !important;
  line-height: 1.08 !important;
  letter-spacing: -.035em !important;
}

.list-card-desc {
  font-size: 12.8px !important;
  line-height: 1.32 !important;
}

.classification-note {
  margin-top: 10px !important;
  padding: 11px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(215,180,95,.24);
}

/* Keep product packshots visually smaller inside the modal frame */
.modal-photo {
  padding: 20px !important;
}

.modal-photo img {
  max-width: 92% !important;
  max-height: 92% !important;
}

@media (max-width: 380px) {
  .list-card-title { font-size: 17px !important; }
  .list-card-brand-small { font-size: 10.5px; }
}

/* Final modal state reset / iOS viewport safety */
.modal-overlay {
  height: 100dvh !important;
  max-height: 100dvh !important;
}
.modal-overlay.open {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}
.modal-sheet {
  flex: 0 0 auto !important;
}

/* Keep remaining nourishing-mask packshots in one visual language */
.list-card-photo img,
.modal-photo img {
  object-fit: contain !important;
  object-position: center center !important;
}


/* Repair masks tier separators */
.list-section-label {
  margin: 18px 0 6px;
  padding: 12px 14px;
  border: 1px solid rgba(202,164,92,.25);
  border-radius: 22px;
  background: rgba(255,250,240,.72);
  box-shadow: 0 10px 24px rgba(78,62,38,.05);
}
.list-section-title {
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--gold-dark, #9c7a32);
}
.list-section-note {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted, #756f68);
}


/* Repair masks: tabbed tier navigation */
.tier-switch-wrap {
  margin: 18px 0 14px;
}

.tier-switch-label {
  margin: 0 2px 10px;
  font-size: 11px;
  line-height: 1.1;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--gold-dark);
}

.tier-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  width: 100%;
  gap: 0;
  padding: 0 0 6px;
}

.tier-switch::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(215,180,95,.34);
}

.tier-switch-slider {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #cda55b, #b28636);
  box-shadow: 0 1px 4px rgba(159,125,54,.18);
  transition: transform .24s ease, width .24s ease;
  pointer-events: none;
  z-index: 2;
}

.tier-tab {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  background: transparent;
  color: #948b81;
  font: inherit;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.01em;
  text-align: center;
  padding: 2px 8px 6px;
  min-height: 34px;
  transition: color .2s ease, opacity .2s ease;
}

.tier-tab.is-active {
  color: var(--brown);
}

.tier-switch-note {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.42;
}

.products-panel {
  display: grid;
  gap: 10px;
}

.panel-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 4px 6px;
  padding-right: 2px;
}

.panel-kicker {
  flex: 0 1 auto;
  max-width: 62%;
  font-size: 11px;
  line-height: 1.1;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--gold-dark);
}

.panel-line {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(215,180,95,.50), rgba(215,180,95,.10));
}

.products-panel[hidden] {
  display: none !important;
}

.list-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
}

@media (max-width: 380px) {
  .tier-switch-label { font-size: 10.5px; }
  .tier-tab { font-size: 13px; padding: 2px 4px 6px; min-height: 32px; }
  .tier-switch-note { font-size: 12px; }
}



/* Click-to-zoom product photo */
.zoomable-photo {
  position: relative;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}

.zoomable-photo:focus-visible {
  outline: 2px solid rgba(178, 134, 54, .65);
  outline-offset: 4px;
}

.photo-zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(215, 180, 95, .36);
  background: rgba(255, 250, 240, .94);
  color: var(--brown);
  box-shadow: 0 6px 18px rgba(70, 51, 30, .08);
}
.photo-zoom-hint svg {
  width: 19px;
  height: 19px;
  display: block;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: stretch;
  justify-content: center;
  background: rgba(36, 31, 26, .74);
  color: #fff;
}

.image-viewer.open {
  display: flex;
}

.image-viewer-scrim {
  position: absolute;
  inset: 0;
}

.image-viewer-head {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  left: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.image-viewer-title {
  max-width: calc(100% - 70px);
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 250, 240, .92);
  color: var(--brown);
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  pointer-events: auto;
}

.image-viewer-close {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 50%;
  background: rgba(255, 250, 240, .94);
  color: var(--brown);
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  pointer-events: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
}

.image-viewer-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}

.image-viewer-stage:active {
  cursor: grabbing;
}

.image-viewer-stage img {
  max-width: min(94vw, 820px);
  max-height: min(82svh, 820px);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center center;
  transition: transform .08s ease-out;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 56px rgba(0,0,0,.26);
}

.image-viewer-controls {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 42px);
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(255, 250, 240, .94);
  box-shadow: 0 10px 30px rgba(0,0,0,.16);
}

.image-viewer-controls button {
  min-width: 44px;
  height: 38px;
  border: 1px solid rgba(215, 180, 95, .28);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--brown);
  font: inherit;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
}

#imageZoomReset {
  min-width: 66px;
  font-size: 13px;
}

.image-viewer-help {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
  z-index: 4;
  color: rgba(255,255,255,.82);
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  pointer-events: none;
}

body.image-viewer-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .photo-zoom-hint {
    right: 10px;
    bottom: 10px;
    width: 40px;
    height: 40px;
  }

  .image-viewer-stage img {
    max-width: 96vw;
    max-height: 78svh;
    border-radius: 14px;
  }
}


/* Robust photo zoom viewer fix */
button.modal-photo {
  width: 100% !important;
  border: 1px solid rgba(215, 180, 95, .36) !important;
  border-radius: 22px !important;
  display: block !important;
  text-align: initial !important;
  font: inherit !important;
  color: inherit !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}
button.modal-photo:active {
  transform: none !important;
}
.image-viewer {
  z-index: 99999 !important;
}
.image-viewer.open {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
.image-viewer-scrim,
.image-viewer-stage,
.image-viewer-controls,
.image-viewer-close {
  pointer-events: auto !important;
}
.modal-photo.zoomable-photo,
.modal-photo.zoomable-photo img,
.photo-zoom-hint {
  pointer-events: auto !important;
}
body.image-viewer-open .modal-overlay {
  pointer-events: none !important;
}
body.image-viewer-open .image-viewer {
  pointer-events: auto !important;
}

/* Bounded photo viewer: fixed controls, limited zoom, no off-screen drift */
.image-viewer-head {
  z-index: 100004 !important;
  position: fixed !important;
}
.image-viewer-close {
  z-index: 100005 !important;
  flex: 0 0 auto !important;
}
.image-viewer-stage {
  box-sizing: border-box !important;
  padding: calc(env(safe-area-inset-top, 0px) + 76px) 12px calc(env(safe-area-inset-bottom, 0px) + 126px) !important;
  min-height: 100svh !important;
  max-height: 100svh !important;
  overflow: hidden !important;
  overscroll-behavior: contain !important;
}
.image-viewer-stage img {
  max-width: 96vw !important;
  max-height: calc(100svh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 216px) !important;
  transform-origin: center center !important;
  will-change: transform !important;
}
.image-viewer-controls {
  z-index: 100004 !important;
  position: fixed !important;
}
.image-viewer-controls button:disabled {
  opacity: .42 !important;
}
.image-viewer-help {
  z-index: 100004 !important;
  position: fixed !important;
  max-width: 320px !important;
  margin: 0 auto !important;
}
@media (max-width: 480px) {
  .image-viewer-stage {
    padding-top: calc(env(safe-area-inset-top, 0px) + 74px) !important;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 126px) !important;
  }
  .image-viewer-stage img {
    max-width: 96vw !important;
    max-height: calc(100svh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 210px) !important;
  }
}


.product-photo img {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
  display: block;
}
.product-card details {
  margin-top: 12px;
  border: 1px solid rgba(215,180,95,.28);
  border-radius: 16px;
  background: #fffaf2;
  overflow: hidden;
}
.product-card summary {
  cursor: pointer;
  list-style: none;
  padding: 11px 12px;
  color: var(--brown);
  font-size: 14px;
  font-weight: 900;
}
.product-card summary::-webkit-details-marker { display: none; }
.product-card .inci-text {
  border-top: 1px solid rgba(215,180,95,.22);
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
  word-break: normal;
}


/* Unified empty state for product categories */
.empty-state {
  display: grid;
  gap: 10px;
}
.empty-card {
  border: 1px solid rgba(215, 180, 95, .26);
  border-radius: 24px;
  background: rgba(255,255,255,.82);
  padding: 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

/* Missing product photo marker */
.list-card-photo.is-missing-photo {
  background: linear-gradient(180deg, #fffaf0, #efe1c7);
  border-style: dashed;
}
.list-card-photo.is-missing-photo img {
  opacity: .92;
}

/* Final modal image centering fix: keep zoomable button as a flex container.
   Previous button.modal-photo rule reset it to display:block, so the image sat at the left edge of its own box on iOS. */
.modal-photo,
button.modal-photo,
.modal-photo.zoomable-photo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.modal-photo img,
button.modal-photo img,
.modal-photo.zoomable-photo img {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  flex: 0 0 auto !important;
}

.curly-note-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.52);
  border: 1px solid rgba(215,180,95,.22);
}
.curly-note-box p {
  margin: 0;
  font-size: 13px;
  line-height: 1.36;
}
.curly-note-box p + p { margin-top: 5px; }

#modalCurlyWrap { margin: 14px 0; }
#modalCurlyNote { display: inline-block; margin-top: 4px; }



/* Compact mini-card descriptions: full details stay inside the modal card */
.list-card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 2026-05-06 integrity fix: product photos must never be cropped in cards */
.list-card-desc {
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
.list-card-photo img,
.thumb-photo img,
.product-photo img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}
.modal-photo,
button.modal-photo,
.modal-photo.zoomable-photo {
  width: 100% !important;
  height: clamp(320px, 58svh, 560px) !important;
  min-height: 320px !important;
  max-height: 560px !important;
  aspect-ratio: auto !important;
  padding: 18px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #fffdf8 !important;
}
.modal-photo img,
button.modal-photo img,
.modal-photo.zoomable-photo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 auto !important;
  flex: 0 1 auto !important;
}
.segment-empty-card {
  margin: 0 0 10px !important;
}
@media (max-width: 430px) {
  .modal-photo,
  button.modal-photo,
  .modal-photo.zoomable-photo {
    height: clamp(300px, 52svh, 480px) !important;
    min-height: 300px !important;
    padding: 16px !important;
  }
}


/* Full modal product photos should not be cropped by the browser */
.modal-photo img,
.modal-photo.zoomable-photo img,
#modalPhoto {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

/* Leave-in mini-card compact badges */
.list-card-badge.mini-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 6px;
  margin-right: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(107, 82, 52, 0.22);
  font-size: 11px;
  line-height: 1.15;
  background: rgba(244, 235, 220, 0.78);
  color: #5c4630;
  white-space: nowrap;
}
.list-card-badge.heat-badge {
  background: rgba(238, 222, 192, 0.82);
  border-color: rgba(155, 118, 61, 0.24);
}
.list-card-badge.dry-badge {
  background: rgba(246, 241, 232, 0.86);
  border-color: rgba(126, 103, 75, 0.20);
}

/* Category overview cards */
.category-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.category-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  grid-template-areas:
    "title arrow"
    "desc arrow"
    "count arrow";
  align-items: center;
  gap: 4px 12px;
  width: 100%;
  padding: 16px 14px 15px;
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(215,180,95,.24);
  box-shadow: var(--shadow-soft);
}

.category-card::after {
  content: "›";
  grid-area: arrow;
  display: grid;
  place-items: center;
  justify-self: end;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #fff7eb;
  border: 1px solid rgba(215,180,95,.32);
  color: var(--brown);
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

.category-card h2 {
  grid-area: title;
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -.045em;
}

.category-card p {
  grid-area: desc;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.36;
}

.category-card span {
  grid-area: count;
  display: inline-flex;
  width: fit-content;
  margin-top: 9px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff7eb;
  border: 1px solid rgba(215,180,95,.28);
  color: var(--gold-dark);
  font-size: 12.5px;
  font-weight: 850;
}

@media (max-width: 390px) {
  .category-card h2 { font-size: 22px; }
  .category-card p { font-size: 14px; }
}

/* Product photo gallery for package transition cards */
.photo-gallery-controls{display:none;align-items:center;justify-content:center;gap:10px;margin:10px 0 2px;}
.photo-gallery-controls.is-visible{display:flex;}
.photo-gallery-btn{width:36px;height:36px;border-radius:999px;border:1px solid rgba(214,189,127,.65);background:#fffaf0;color:#5b412e;font-size:22px;line-height:1;display:flex;align-items:center;justify-content:center;}
.photo-gallery-count{font-size:13px;color:#8a7868;font-weight:650;min-width:42px;text-align:center;}
.modal-package-note{display:none;margin:10px 0 0;color:#8a7868;font-size:14px;line-height:1.45;}
.modal-package-note.is-visible{display:block;}


/* 2026-05-12: gallery arrows inside product photo; no numeric counter */
.modal-photo{position:relative;overflow:hidden;touch-action:pan-y;}
.photo-gallery-controls{display:none!important;}
.photo-gallery-count{display:none!important;}
.modal-photo .photo-gallery-nav{display:none;position:absolute;top:50%;transform:translateY(-50%);z-index:6;width:38px;height:38px;border-radius:999px;border:1px solid rgba(214,189,127,.70);background:rgba(255,250,240,.92);color:#5b412e;font-size:28px;line-height:34px;font-weight:650;align-items:center;justify-content:center;box-shadow:0 8px 22px rgba(91,65,46,.10);}
.modal-photo.has-gallery .photo-gallery-nav{display:flex;}
.modal-photo .photo-gallery-prev{left:10px;}
.modal-photo .photo-gallery-next{right:10px;}
.modal-photo .photo-gallery-nav[aria-hidden="true"]{display:none!important;}
@media (max-width:520px){.modal-photo .photo-gallery-nav{width:34px;height:34px;font-size:25px;line-height:30px}.modal-photo .photo-gallery-prev{left:8px}.modal-photo .photo-gallery-next{right:8px}}


/* 2026-05-12: compact leave-in badge block; degree data stays only in heat badge */
.modal-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 6px;
  margin-top: 6px;
  margin-bottom: 8px;
  align-items: flex-start;
}
.modal-badges-row .modal-badge {
  margin: 0;
}
.modal-tag + .modal-badges-row {
  margin-top: 6px;
}

/* 2026-05-12: tighten vertical spacing between modal badge rows */
.modal-badges-row .modal-tag {
  margin-top: 0;
}
.modal-tag + .modal-badges-row {
  margin-top: 4px;
}
.modal-badges-row {
  row-gap: 4px;
}


/* 2026-05-12: favorites UI */
.list-card.has-favorite-toggle {
  position: relative;
}
.favorite-toggle,
.modal-favorite-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(215,180,95,.42);
  background: rgba(255,250,240,.94);
  color: var(--brown);
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(62,46,28,.08);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.favorite-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 6;
}
.favorite-toggle.is-active,
.modal-favorite-toggle.is-active {
  color: #8f5f18;
  background: #fff4dc;
  border-color: rgba(215,180,95,.72);
}
.modal-favorite-toggle {
  flex: 0 0 auto;
  cursor: pointer;
}
.modal-favorite-toggle:active,
.favorite-toggle:active {
  transform: scale(.96);
}
.favorite-card-empty {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(215,180,95,.24);
  background: rgba(255,255,255,.86);
  color: var(--muted);
  line-height: 1.45;
}
.favorite-card-link {
  position: relative;
}
.favorite-card-link .favorite-toggle {
  top: 10px;
  right: 10px;
}
.favorites-count-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
@media (max-width: 380px) {
  .favorite-toggle,
  .modal-favorite-toggle {
    width: 32px;
    height: 32px;
    font-size: 19px;
  }
}


/* 2026-05-12: favorites UI refinement */
.nav-favorites-icon {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  font-size: 21px;
  line-height: 1;
}
.favorite-toggle {
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  top: 8px;
  right: 8px;
  font-size: 16px;
  box-shadow: 0 5px 14px rgba(62,46,28,.07);
}
.favorite-card-link .favorite-toggle {
  top: 8px;
  right: 8px;
}
.modal-top {
  justify-content: flex-start !important;
}
.modal-title {
  flex: 1 1 auto;
  min-width: 0;
}
.modal-favorite-toggle {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  margin-left: auto;
  font-size: 20px;
}
.favorite-section-group {
  display: grid;
  gap: 10px;
}
.favorite-section-group + .favorite-section-group {
  margin-top: 20px;
}
.favorite-section-head {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(169,126,43,.20);
}
.favorite-section-title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.favorite-section-subtitle {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.favorite-section-list {
  display: grid;
  gap: 12px;
}
@media (max-width: 380px) {
  .favorite-toggle {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    font-size: 15px;
  }
  .nav-favorites-icon {
    width: 36px;
    min-width: 36px;
    min-height: 36px;
  }
}

/* 2026-05-12: favorites page category-first grouping */
.favorite-category-group {
  display: grid;
  gap: 12px;
}
.favorite-category-group + .favorite-category-group {
  margin-top: 22px;
}
.favorite-category-head {
  padding-top: 12px;
  border-top: 1px solid rgba(169,126,43,.20);
}
.favorite-category-title {
  font-size: clamp(18px, 4.8vw, 24px);
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  line-height: 1.15;
}
.favorite-subcategory-list {
  display: grid;
  gap: 18px;
}
.favorite-subcategory-group {
  display: grid;
  gap: 8px;
}
.favorite-subcategory-title {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}
.favorite-subcategory-group + .favorite-subcategory-group {
  margin-top: 2px;
}
@media (max-width: 380px) {
  .favorite-category-title {
    font-size: 18px;
    letter-spacing: .14em;
  }
  .favorite-subcategory-title {
    font-size: 14px;
  }
}

/* 2026-05-12: keep favorite heart outside product photo on mini-cards */
.list-card.has-favorite-toggle {
  grid-template-columns: minmax(0, 1fr) 28px 86px;
  column-gap: 8px;
}
.list-card.has-favorite-toggle > :first-child {
  grid-column: 1;
  grid-row: 1;
}
.list-card.has-favorite-toggle > .list-card-photo,
.list-card.has-favorite-toggle > .list-card-photo-wrap,
.list-card.has-favorite-toggle > .thumb-photo {
  grid-column: 3;
  grid-row: 1;
}
.list-card.has-favorite-toggle > .favorite-toggle,
.favorite-card-link.has-favorite-toggle > .favorite-toggle {
  position: static;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: center;
  margin-top: 6px;
  z-index: 2;
}
@media (max-width: 380px) {
  .list-card.has-favorite-toggle {
    grid-template-columns: minmax(0, 1fr) 24px 78px;
    column-gap: 7px;
  }
  .list-card.has-favorite-toggle > .favorite-toggle,
  .favorite-card-link.has-favorite-toggle > .favorite-toggle {
    margin-top: 5px;
  }
}

/* 2026-05-12: favorite heart back to card top-right; compact, no separate grid column */
.list-card.has-favorite-toggle,
.favorite-card-link.has-favorite-toggle {
  position: relative !important;
  grid-template-columns: minmax(0, 1fr) 94px !important;
  column-gap: 12px !important;
}
.list-card.has-favorite-toggle > :first-child,
.favorite-card-link.has-favorite-toggle > :first-child {
  grid-column: 1 !important;
  grid-row: 1 !important;
}
.list-card.has-favorite-toggle > .list-card-photo,
.list-card.has-favorite-toggle > .list-card-photo-wrap,
.list-card.has-favorite-toggle > .thumb-photo,
.favorite-card-link.has-favorite-toggle > .list-card-photo,
.favorite-card-link.has-favorite-toggle > .list-card-photo-wrap,
.favorite-card-link.has-favorite-toggle > .thumb-photo {
  grid-column: 2 !important;
  grid-row: 1 !important;
}
.list-card.has-favorite-toggle > .favorite-toggle,
.favorite-card-link.has-favorite-toggle > .favorite-toggle {
  position: absolute !important;
  top: 9px !important;
  right: 9px !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  font-size: 14px !important;
  line-height: 1 !important;
  margin: 0 !important;
  z-index: 8 !important;
}
@media (max-width: 380px) {
  .list-card.has-favorite-toggle,
  .favorite-card-link.has-favorite-toggle {
    grid-template-columns: minmax(0, 1fr) 86px !important;
    column-gap: 12px !important;
  }
  .list-card.has-favorite-toggle > .favorite-toggle,
  .favorite-card-link.has-favorite-toggle > .favorite-toggle {
    width: 21px !important;
    height: 21px !important;
    min-width: 21px !important;
    min-height: 21px !important;
    font-size: 13.5px !important;
    top: 8px !important;
    right: 8px !important;
  }
}

/* 2026-05-12: restore usable mini-card favorite size and move it closer to card top edge */
.list-card.has-favorite-toggle > .favorite-toggle,
.favorite-card-link.has-favorite-toggle > .favorite-toggle {
  top: 5px !important;
  right: 7px !important;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  font-size: 16px !important;
  line-height: 1 !important;
}
@media (max-width: 380px) {
  .list-card.has-favorite-toggle > .favorite-toggle,
  .favorite-card-link.has-favorite-toggle > .favorite-toggle {
    top: 5px !important;
    right: 7px !important;
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    min-height: 25px !important;
    font-size: 15px !important;
  }
}


/* 2026-05-13: mini-card favorite heart final upper-corner adjustment */
.list-card.has-favorite-toggle > .favorite-toggle,
.favorite-card-link.has-favorite-toggle > .favorite-toggle {
  position: absolute !important;
  top: 2px !important;
  right: 7px !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  font-size: 18px !important;
  line-height: 1 !important;
  margin: 0 !important;
  z-index: 9 !important;
}
@media (max-width: 380px) {
  .list-card.has-favorite-toggle > .favorite-toggle,
  .favorite-card-link.has-favorite-toggle > .favorite-toggle {
    top: 2px !important;
    right: 7px !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    font-size: 17px !important;
  }
}


/* 2026-05-13: scalp section empty container structure */
.safety-note {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 18px;
  border: 1px solid rgba(215,180,95,.30);
  background: rgba(255,250,241,.78);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.38;
}

.scalp-section-card .thumb {
  background: linear-gradient(135deg,#1f1814,#60544c);
}

.scalp-care-structure {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

.scalp-cut {
  border-radius: 24px;
  border: 1px solid rgba(215,180,95,.26);
  background: rgba(255,252,247,.82);
  box-shadow: var(--shadow-soft);
  padding: 14px;
}

.scalp-cut-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.scalp-cut-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 21px;
  line-height: 1.08;
  letter-spacing: -.035em;
  white-space: normal;
}

.scalp-cut-line {
  min-width: 42px;
  height: 1px;
  flex: 1 1 auto;
  background: rgba(215,180,95,.38);
}

.scalp-cut-desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.38;
}

.scalp-products-slot {
  margin-top: 12px;
}

.scalp-products-slot .empty-card {
  margin-top: 0;
  background: rgba(255,250,241,.72);
  border-style: dashed;
}

@media (max-width: 380px) {
  .safety-note {
    font-size: 12.5px;
    padding: 10px 12px;
  }
  .scalp-cut {
    padding: 12px;
  }
  .scalp-cut-head {
    gap: 9px;
  }
  .scalp-cut-head h2 {
    font-size: 19px;
  }
  .scalp-cut-desc {
    font-size: 13px;
  }
}


/* 2026-05-13: scalp first product cards */
.scalp-products-slot .list-card + .list-card {
  margin-top: 10px;
}
.scalp-products-slot .list-card {
  width: 100%;
}
.scalp-products-slot .empty-card {
  min-height: 54px;
}


/* 2026-05-13: scalp second product pool spacing */
.scalp-products-slot .list-card + .list-card {
  margin-top: 10px;
}
.scalp-products-slot .list-card {
  width: 100%;
}
.scalp-products-slot .empty-card {
  min-height: 54px;
}


/* 2026-05-13: scalp third product pool spacing */
.scalp-products-slot .list-card + .list-card {
  margin-top: 10px;
}
.scalp-products-slot .list-card {
  width: 100%;
}
.scalp-products-slot .empty-card {
  min-height: 54px;
}

/* Home main visual banner — added 2026-05-14 */
.home-main-banner {
  margin: 10px 0 12px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 91, .30);
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--shadow);
  line-height: 0;
}

.home-main-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Section visual banners — added 2026-05-14 */
.section-main-banner {
  margin: 10px 0 12px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 91, .30);
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--shadow);
  line-height: 0;
}

.section-main-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Home section photo icons — fixed 2026-05-14
   Placed at the end intentionally: it must override the old .thumb gradients. */
.home-sections-list {
  margin-top: 18px;
}

.home-sections-list .thumb.thumb-banner {
  position: relative;
  overflow: hidden;
  color: transparent;
  text-indent: -9999px;
  border: 1px solid rgba(84, 61, 36, 0.10);
  background-color: #ecdfcb;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.20),
    0 6px 16px rgba(62, 46, 28, .08);
  filter: none;
  opacity: 1;
}

.home-sections-list .thumb.thumb-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.05));
  pointer-events: none;
}

.home-sections-list .thumb-banner-shampoos {
  background-image: url("assets/section-banner-shampoos.webp");
  background-position: 52% 42%;
}

.home-sections-list .thumb-banner-masks {
  background-image: url("assets/section-banner-masks.webp");
  background-position: 54% 44%;
}

.home-sections-list .thumb-banner-conditioners {
  background-image: url("assets/section-banner-conditioners.webp");
  background-position: 55% 42%;
}

.home-sections-list .thumb-banner-leavein {
  background-image: url("assets/section-banner-leave-in.webp");
  background-position: 54% 42%;
}

.home-sections-list .thumb-banner-scalp {
  background-image: url("assets/section-banner-scalp.webp");
  background-position: 55% 42%;
}

/* Home compact constructor layout — added 2026-05-14 */
.home-hero {
  margin-top: 8px;
  border-radius: 22px;
  padding: 18px 16px 17px;
}

.home-hero .eyebrow {
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: .20em;
}

.home-hero h1 {
  max-width: 640px;
  font-size: clamp(34px, 9.2vw, 48px);
  line-height: .96;
  letter-spacing: -.068em;
}

.home-hero .lead {
  max-width: 680px;
  margin-top: 12px;
  font-size: 15.6px;
  line-height: 1.34;
}

.home-sections-label {
  margin: 18px 4px 8px;
  color: var(--gold-dark);
  font-size: 10.5px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.home-sections-list {
  margin-top: 0;
  gap: 9px;
}

.home-sections-list .card {
  grid-template-columns: 72px minmax(0, 1fr) 32px;
  gap: 12px;
  padding: 9px;
  border-radius: 22px;
}

.home-sections-list .card h3 {
  font-size: 24px;
  line-height: .98;
  letter-spacing: -.055em;
}

.home-sections-list .card p {
  margin-top: 7px;
  font-size: 14.5px;
  line-height: 1.30;
  letter-spacing: -.012em;
}

.home-sections-list .thumb.thumb-banner {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #eadcc8;
  border: 1px solid rgba(215, 180, 95, .26);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.20),
    0 6px 14px rgba(62, 46, 28, .08);
}

.home-sections-list .arrow {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-size: 27px;
  color: rgba(84, 59, 38, .86);
  background: rgba(250, 244, 231, .78);
  border-color: rgba(215, 180, 95, .26);
}

.home-sections-list .thumb-banner-shampoos {
  background-position: 55% 45%;
}

.home-sections-list .thumb-banner-masks {
  background-position: 54% 46%;
}

.home-sections-list .thumb-banner-conditioners {
  background-position: 55% 44%;
}

.home-sections-list .thumb-banner-leavein {
  background-position: 54% 43%;
}

.home-sections-list .thumb-banner-scalp {
  background-position: 56% 43%;
}

/* Home visual polish — arrows and spacing fixed 2026-05-14 */
.home-hero .lead {
  max-width: 660px;
  font-size: 15.2px;
  line-height: 1.32;
}

.home-sections-label {
  margin: 17px 6px 9px;
  font-size: 10px;
  letter-spacing: .23em;
}

.home-sections-list {
  gap: 10px;
}

.home-sections-list .card {
  grid-template-columns: 72px minmax(0, 1fr) 34px;
  gap: 12px;
  padding: 9px 10px;
}

.home-sections-list .card h3 {
  font-size: 23.5px;
  line-height: 1;
}

.home-sections-list .card p {
  margin-top: 7px;
  font-size: 14.2px;
  line-height: 1.31;
  color: rgba(88, 77, 68, .96);
}

.home-sections-list .arrow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  font-size: 0;
  line-height: 0;
  color: transparent;
  background: rgba(252, 246, 236, .92);
  border: 1px solid rgba(212, 175, 91, .30);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}

.home-sections-list .arrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2.2px solid rgba(94, 68, 47, .84);
  border-bottom: 2.2px solid rgba(94, 68, 47, .84);
  transform: translateX(-1px) rotate(-45deg);
  border-radius: 1px;
}

.home-sections-list .card:active .arrow {
  transform: scale(.96);
}

/* Home premium refinement — added 2026-05-14 */
.home-main-banner img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.home-hero {
  padding: 16px 15px 16px;
  border-radius: 21px;
}

.home-hero .eyebrow {
  margin-bottom: 7px;
  font-size: 9.5px;
  letter-spacing: .20em;
}

.home-hero h1 {
  font-size: clamp(32px, 8.7vw, 45px);
  line-height: .965;
  letter-spacing: -.066em;
}

.home-hero .lead {
  margin-top: 11px;
  max-width: 650px;
  font-size: 14.7px;
  line-height: 1.31;
  color: rgba(88, 77, 68, .96);
}

.home-sections-label {
  margin: 16px 7px 9px;
  font-size: 9.8px;
  letter-spacing: .235em;
}

.home-sections-list {
  gap: 9px;
}

.home-sections-list .card {
  grid-template-columns: 74px minmax(0, 1fr) 34px;
  min-height: 112px;
  padding: 9px 10px;
  gap: 12px;
  border-radius: 21px;
  align-items: center;
  border: 1px solid #e3d6c4;
  box-shadow: 0 9px 18px rgba(62, 46, 28, .055);
}

.home-sections-list .card h3 {
  font-size: 23px;
  line-height: 1;
  letter-spacing: -.055em;
}

.home-sections-list .card p {
  margin-top: 6px;
  font-size: 13.8px;
  line-height: 1.29;
  letter-spacing: -.012em;
  color: rgba(84, 74, 66, .95);
}

.home-sections-list .thumb.thumb-banner {
  width: 74px;
  height: 74px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(212, 175, 91, .30);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.25),
    0 7px 15px rgba(62, 46, 28, .075);
}

.home-sections-list .thumb-banner-shampoos { background-image: url("assets/home-thumb-shampoos.webp"); }
.home-sections-list .thumb-banner-masks { background-image: url("assets/home-thumb-masks.webp"); }
.home-sections-list .thumb-banner-conditioners { background-image: url("assets/home-thumb-conditioners.webp"); }
.home-sections-list .thumb-banner-leavein { background-image: url("assets/home-thumb-leavein.webp"); }
.home-sections-list .thumb-banner-scalp { background-image: url("assets/home-thumb-scalp.webp"); }

.home-sections-list .arrow {
  width: 32px;
  height: 32px;
  background: rgba(252, 246, 236, .92);
  border-color: rgba(212, 175, 91, .28);
}

.home-sections-list .arrow::before {
  width: 7.5px;
  height: 7.5px;
  border-right-width: 2.2px;
  border-bottom-width: 2.2px;
  transform: translateX(-1px) rotate(-45deg);
}

/* Home final polish — 2026-05-14 */
.home-sections-list .thumb.thumb-banner {
  background-size: cover;
  background-position: center;
}

.home-sections-list .thumb-banner-masks {
  background-image: url("assets/home-thumb-masks.webp");
  background-position: center;
}

.home-sections-list .thumb-banner-leavein {
  background-image: url("assets/home-thumb-leavein.webp");
  background-position: center;
}

.home-sections-list .thumb-banner-scalp {
  background-image: url("assets/home-thumb-scalp.webp");
  background-position: center;
}


/* Warm palette refinement — 2026-05-14 */
.home-sections-list .card { background: rgba(255,253,249,.98); border-color: #e3d6c4; }
.home-sections-list .arrow { box-shadow: inset 0 1px 0 rgba(255,255,255,.72); }
.home-sections-list .arrow::before { width: 7px; height: 7px; }
.home-hero { border-color: rgba(212,175,91,.28); }
.home-main-banner { border-color: rgba(212,175,91,.28); }
.section-main-banner { border-color: rgba(212,175,91,.28); }
.topbar-inner { border-color: rgba(212,175,91,.28); }
.home-sections-label, .eyebrow { color: #9d7932; }
.lead { color: rgba(88,77,68,.96); }
.card p { color: rgba(92,82,73,.94); }


/* Final home warm polish + header artifact fix — 2026-05-14 */
:root {
  --bg: #ede1d1;
  --surface-soft: #fdf5ea;
  --line: #e4d6c3;
  --gold: #d7b05d;
  --gold-dark: #9b7835;
}

body {
  background:
    radial-gradient(circle at top left, rgba(215, 180, 95, .16), transparent 28%),
    linear-gradient(180deg, #faf3e8 0%, #efe3d3 48%, #e9dcc9 100%);
}

.app {
  background:
    radial-gradient(circle at 88% 18%, rgba(212,175,91,.16), transparent 24%),
    linear-gradient(180deg, rgba(255,250,244,.78), rgba(244,236,224,.68));
}

.topbar {
  padding: 8px 0 10px;
  background: transparent;
  backdrop-filter: none;
}

.topbar-inner {
  background: rgba(255,252,248,.97);
  border-color: rgba(212,175,91,.30);
  box-shadow: 0 10px 22px rgba(62,46,28,.06);
}

.home-main-banner {
  margin: 6px 0 12px;
  background: rgba(255,255,255,.78);
  border-color: rgba(212,175,91,.30);
}

.home-hero {
  background:
    linear-gradient(135deg, rgba(255,253,248,.99), rgba(247,238,225,.97)),
    radial-gradient(circle at 90% 8%, rgba(212,175,91,.18), transparent 28%);
  border-color: rgba(212,175,91,.30);
}

.home-hero .lead {
  color: rgba(92, 80, 70, .97);
}

.home-sections-list .card {
  background: rgba(255,253,250,.985);
  border-color: #e3d5c2;
  box-shadow: 0 10px 18px rgba(62, 46, 28, .05);
}

.home-sections-list .thumb.thumb-banner {
  background-color: #eadcc8;
  border-color: rgba(212,175,91,.28);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.25),
    0 7px 16px rgba(62, 46, 28, .07);
}

.home-sections-list .thumb.thumb-banner::after {
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(0,0,0,.02));
}

.home-sections-list .thumb-banner-shampoos { background-image: url("assets/home-thumb-shampoos-warm.webp"); }
.home-sections-list .thumb-banner-masks { background-image: url("assets/home-thumb-masks-warm.webp"); }
.home-sections-list .thumb-banner-conditioners { background-image: url("assets/home-thumb-conditioners-warm.webp"); }
.home-sections-list .thumb-banner-leavein { background-image: url("assets/home-thumb-leavein-warm.webp"); }
.home-sections-list .thumb-banner-scalp { background-image: url("assets/home-thumb-scalp-warm.webp"); }

.home-sections-list .arrow {
  width: 33px;
  height: 33px;
  background: rgba(252, 246, 236, .96);
  border-color: rgba(212,175,91,.24);
}

.home-sections-list .arrow::before {
  width: 6.8px;
  height: 6.8px;
  border-right-width: 2.1px;
  border-bottom-width: 2.1px;
}


/* Home combined hero card — 2026-05-14 */
.home-hero-combined {
  margin-top: 6px;
  padding: 0 0 16px;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,253,248,.99), rgba(247,238,225,.975)),
    radial-gradient(circle at 88% 10%, rgba(212,175,91,.17), transparent 28%);
  border: 1px solid rgba(212,175,91,.30);
  box-shadow: 0 12px 28px rgba(62,46,28,.055);
}

.home-hero-combined::after {
  right: -88px;
  bottom: -116px;
  width: 228px;
  height: 228px;
  background: rgba(212,175,91,.075);
  border: 1px solid rgba(212,175,91,.13);
}

.home-hero-combined .home-hero-media {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  overflow: hidden;
  border-bottom: 1px solid rgba(212,175,91,.16);
  background: rgba(255,255,255,.78);
  box-shadow: 0 8px 18px rgba(62,46,28,.045);
  line-height: 0;
}

.home-hero-combined .home-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.home-hero-combined .home-hero-copy {
  position: relative;
  z-index: 1;
  padding: 8px 18px 4px;
}

.home-hero-combined .eyebrow {
  margin-bottom: 8px;
}

.home-hero-combined h1 {
  font-size: clamp(32px, 8.7vw, 45px);
  line-height: .965;
  letter-spacing: -.066em;
}

.home-hero-combined .lead {
  margin-top: 12px;
  max-width: 650px;
  font-size: 14.9px;
  line-height: 1.34;
  color: rgba(92,80,70,.97);
}

.home-sections-label {
  margin-top: 18px;
}

@media (max-width: 380px) {
  .home-hero-combined {
    padding: 0 0 14px;
    border-radius: 24px;
  }

  .home-hero-combined .home-hero-media {
    margin-bottom: 12px;
  }

  .home-hero-combined .home-hero-copy {
    padding-left: 14px;
    padding-right: 14px;
  }

  .home-hero-combined .lead {
    font-size: 14.4px;
  }
}


/* Shampoo section refinement — 2026-05-14 */
.topbar {
  background: linear-gradient(180deg, rgba(239, 228, 211, .96), rgba(239, 228, 211, .88));
  backdrop-filter: blur(16px);
}

.topbar-inner {
  background: rgba(255, 252, 248, .985);
}

.section-hero-combined {
  margin-top: 12px;
  padding: 0 0 16px;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,253,248,.99), rgba(247,238,225,.975)),
    radial-gradient(circle at 88% 10%, rgba(212,175,91,.17), transparent 28%);
  border: 1px solid rgba(212,175,91,.30);
  box-shadow: 0 12px 28px rgba(62,46,28,.055);
}

.section-hero-combined::after {
  right: -88px;
  bottom: -116px;
  width: 228px;
  height: 228px;
  background: rgba(212,175,91,.075);
  border: 1px solid rgba(212,175,91,.13);
}

.section-hero-media {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  overflow: hidden;
  border-bottom: 1px solid rgba(212,175,91,.16);
  background: rgba(255,255,255,.78);
  box-shadow: 0 8px 18px rgba(62,46,28,.045);
  line-height: 0;
}

.section-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.section-hero-copy {
  position: relative;
  z-index: 1;
  padding: 8px 18px 4px;
}

.section-hero-copy .eyebrow {
  margin-bottom: 8px;
}

.section-hero-copy h1 {
  font-size: clamp(32px, 8.7vw, 45px);
  line-height: .965;
  letter-spacing: -.066em;
}

.section-hero-copy .lead {
  margin-top: 12px;
  max-width: 650px;
  font-size: 15.8px;
  line-height: 1.38;
  color: rgba(92,80,70,.97);
}

.section-types-label {
  margin: 18px 0 9px 8px;
  color: var(--gold-dark);
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.card.compact .section-photo-thumb {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  overflow: hidden;
  color: transparent;
  text-indent: -9999px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(212,175,91,.26);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.24),
    0 5px 12px rgba(62,46,28,.055);
}

.card.compact .section-photo-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.025));
  pointer-events: none;
}

.shampoo-type-normal { background-image: url("assets/shampoo-type-normal.webp"); }
.shampoo-type-oily { background-image: url("assets/shampoo-type-oily.webp"); }
.shampoo-type-sensitive { background-image: url("assets/shampoo-type-sensitive.webp"); }
.shampoo-type-flaking { background-image: url("assets/shampoo-type-flaking.webp"); }

@media (max-width: 380px) {
  .section-hero-combined {
    padding: 0 0 14px;
    border-radius: 24px;
  }

  .section-hero-media {
    margin-bottom: 12px;
  }

  .section-hero-copy {
    padding-left: 14px;
    padding-right: 14px;
  }

  .section-hero-copy .lead {
    font-size: 15px;
  }
}


/* Shampoo section contrast + icon rendering fix — 2026-05-14 */
.topbar {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.topbar-inner {
  background: rgba(255,252,248,.992) !important;
  border-color: rgba(212,175,91,.34) !important;
  box-shadow: 0 10px 24px rgba(62,46,28,.075) !important;
}

.section-hero-combined {
  background:
    linear-gradient(135deg, rgba(255,252,246,.998), rgba(246,234,216,.988)) !important;
  border-color: rgba(194,156,83,.42) !important;
  box-shadow:
    0 15px 34px rgba(62,46,28,.085),
    inset 0 0 0 1px rgba(255,255,255,.38) !important;
}

.section-hero-media {
  border-bottom-color: rgba(194,156,83,.24) !important;
  background: rgba(255,255,255,.86) !important;
}

.section-hero-copy {
  background:
    radial-gradient(circle at 100% 100%, rgba(212,175,91,.09), transparent 38%),
    linear-gradient(180deg, rgba(255,252,246,.78), rgba(247,236,219,.70));
}

.card.compact .section-photo-thumb {
  position: relative;
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  overflow: hidden;
  text-indent: 0 !important;
  color: transparent;
  background: rgba(255,248,238,.98) !important;
  border: 1px solid rgba(212,175,91,.30);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.30),
    0 5px 12px rgba(62,46,28,.06);
}

.card.compact .section-photo-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card.compact .section-photo-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.015), rgba(0,0,0,.025));
  pointer-events: none;
}

@media (max-width: 380px) {
  .card.compact .section-photo-thumb {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
}


/* Shampoo final visual pass — 2026-05-14 */
.section-hero-combined::after {
  right: -64px !important;
  bottom: -96px !important;
  width: 238px !important;
  height: 238px !important;
  border: 1.6px solid rgba(196, 145, 62, .34) !important;
  background: radial-gradient(circle at 32% 28%, rgba(244,229,200,.18), rgba(212,175,91,.055) 70%) !important;
  opacity: 1 !important;
  filter: none !important;
}

.section-hero-copy {
  background:
    radial-gradient(circle at 100% 100%, rgba(212,175,91,.09), transparent 42%),
    linear-gradient(180deg, rgba(255,252,246,.84), rgba(247,236,219,.74));
}

.section-hero-copy h1 {
  margin-top: 0;
}

.card.compact .section-bottle-thumb {
  position: relative;
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  overflow: hidden;
  text-indent: 0 !important;
  color: transparent;
  background: rgba(255,248,238,.98) !important;
  border: 1px solid rgba(212,175,91,.30);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.30),
    0 5px 12px rgba(62,46,28,.06);
}

.card.compact .section-bottle-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card.compact .section-bottle-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.025));
  pointer-events: none;
}

@media (max-width: 380px) {
  .card.compact .section-bottle-thumb {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
}

/* Shampoo icon frame alignment fix — 2026-05-14
   Source icon images were cropped to remove their internal generated frame.
   The UI container now owns the rounded-square shape, border and shadow. */
.card.compact .section-bottle-thumb {
  width: 46px !important;
  height: 46px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  padding: 0 !important;
  background: #fbf4ea !important;
  border: 1px solid rgba(212, 175, 91, .32) !important;
  box-sizing: border-box !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.34),
    0 5px 12px rgba(62,46,28,.055) !important;
}

.card.compact .section-bottle-thumb img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: inherit !important;
}

.card.compact .section-bottle-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(0,0,0,.018));
  pointer-events: none;
}

/* Shampoo hero decorative arc match home — 2026-05-14
   Align the lower-right decorative semicircle in the Shampoo hero with the approved Home hero treatment. */
.section-hero-combined::after {
  right: -88px !important;
  bottom: -116px !important;
  width: 228px !important;
  height: 228px !important;
  border-radius: 999px !important;
  background: rgba(212,175,91,.075) !important;
  border: 1px solid rgba(212,175,91,.13) !important;
  opacity: 1 !important;
  filter: none !important;
}

.section-hero-copy {
  background: transparent !important;
}

/* Masks section combined hero + category icons — 2026-05-14
   Masks page now follows the same section-page structure as Shampoos: combined photo/copy hero,
   small uppercase section label and compact category icons owned by the UI container. */
.card.compact .section-mask-thumb {
  position: relative;
  display: block;
  width: 46px !important;
  height: 46px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  padding: 0 !important;
  background: #fbf4ea !important;
  border: 1px solid rgba(212, 175, 91, .32) !important;
  box-sizing: border-box !important;
  color: transparent !important;
  text-indent: 0 !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.34),
    0 5px 12px rgba(62,46,28,.055) !important;
}

.card.compact .section-mask-thumb img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: inherit !important;
}

.card.compact .section-mask-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(0,0,0,.018));
  pointer-events: none;
}

@media (max-width: 380px) {
  .card.compact .section-mask-thumb {
    width: 46px !important;
    height: 46px !important;
    border-radius: 14px !important;
  }
}

/* Conditioners section combined hero + category icons — 2026-05-14
   Conditioners page now follows the same section-page structure as Shampoos and Masks:
   combined photo/copy hero, small uppercase section label and compact conditioner-tube icons. */
.card.compact .section-conditioner-thumb {
  position: relative;
  display: block;
  width: 46px !important;
  height: 46px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  padding: 0 !important;
  background: #fbf4ea !important;
  border: 1px solid rgba(212, 175, 91, .32) !important;
  box-sizing: border-box !important;
  color: transparent !important;
  text-indent: 0 !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.34),
    0 5px 12px rgba(62,46,28,.055) !important;
}

.card.compact .section-conditioner-thumb img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: inherit !important;
}

.card.compact .section-conditioner-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(0,0,0,.018));
  pointer-events: none;
}

@media (max-width: 380px) {
  .card.compact .section-conditioner-thumb {
    width: 46px !important;
    height: 46px !important;
    border-radius: 14px !important;
  }
}

/* Leave-in section combined hero + format icons — 2026-05-14
   Leave-in page now follows the same section-page structure as Shampoos, Masks and Conditioners:
   combined photo/copy hero, small uppercase section label and compact leave-in format icons.
   2026-05-14 fix: icons use full square source images so each bottle stays fully visible while the UI frame remains visually consistent with other sections. */
.card.compact .section-leavein-thumb {
  position: relative;
  display: block;
  width: 46px !important;
  height: 46px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  padding: 0 !important;
  background: #fbf4ea !important;
  border: 1px solid rgba(212, 175, 91, .32) !important;
  box-sizing: border-box !important;
  color: transparent !important;
  text-indent: 0 !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.34),
    0 5px 12px rgba(62,46,28,.055) !important;
}

.card.compact .section-leavein-thumb img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: inherit !important;
}

.card.compact .section-leavein-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(0,0,0,.018));
  pointer-events: none;
}

@media (max-width: 380px) {
  .card.compact .section-leavein-thumb {
    width: 46px !important;
    height: 46px !important;
    border-radius: 14px !important;
  }
}


/* Scalp section combined hero + category icons — 2026-05-14
   Scalp page now follows the same section-page structure as Shampoos, Masks,
   Conditioners and Leave-in: combined photo/copy hero, safety note inside the
   hero copy block, and compact care-format icons built from full framed images. */
.card.compact .section-scalp-thumb {
  position: relative;
  display: block;
  width: 46px !important;
  height: 46px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  padding: 0 !important;
  background: #fbf4ea !important;
  border: 1px solid rgba(212, 175, 91, .32) !important;
  box-sizing: border-box !important;
  color: transparent !important;
  text-indent: 0 !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.34),
    0 5px 12px rgba(62,46,28,.055) !important;
}

.card.compact .section-scalp-thumb img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: inherit !important;
}

.card.compact .section-scalp-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(0,0,0,.018));
  pointer-events: none;
}

@media (max-width: 380px) {
  .card.compact .section-scalp-thumb {
    width: 46px !important;
    height: 46px !important;
    border-radius: 14px !important;
  }
}


/* 2026-05-15: anchor mini-card favorite heart to the photo corner for a consistent position */
.list-card.has-favorite-toggle,
.favorite-card-link.has-favorite-toggle {
  grid-template-columns: minmax(0, 1fr) 94px !important;
  column-gap: 12px !important;
  align-items: start !important;
}

.list-card-photo-wrap {
  position: relative;
  width: 94px;
  height: 94px;
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: end;
  align-self: start;
  overflow: visible;
}

.list-card-photo-wrap > .list-card-photo,
.list-card-photo-wrap > .thumb-photo {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}

.list-card-photo-wrap > .favorite-toggle,
.favorite-card-link.has-favorite-toggle .list-card-photo-wrap > .favorite-toggle {
  position: absolute !important;
  top: -9px !important;
  right: -9px !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  margin: 0 !important;
  font-size: 18px !important;
  line-height: 1 !important;
  z-index: 12 !important;
}

.list-card.has-favorite-toggle > .favorite-toggle,
.favorite-card-link.has-favorite-toggle > .favorite-toggle {
  display: none !important;
}

@media (max-width: 380px) {
  .list-card.has-favorite-toggle,
  .favorite-card-link.has-favorite-toggle {
    grid-template-columns: minmax(0, 1fr) 86px !important;
  }

  .list-card-photo-wrap {
    width: 86px;
    height: 86px;
  }

  .list-card-photo-wrap > .favorite-toggle,
  .favorite-card-link.has-favorite-toggle .list-card-photo-wrap > .favorite-toggle {
    top: -8px !important;
    right: -8px !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    font-size: 17px !important;
  }
}


/* 2026-05-15: keep product photo block vertically centered; heart stays attached to photo corner */
.list-card.has-favorite-toggle,
.favorite-card-link.has-favorite-toggle {
  align-items: center !important;
}

.list-card.has-favorite-toggle .list-card-photo-wrap,
.favorite-card-link.has-favorite-toggle .list-card-photo-wrap {
  align-self: center !important;
}


/* 2026-05-15: tighten favorite heart closer to the product photo corner */
.list-card-photo-wrap > .favorite-toggle,
.favorite-card-link.has-favorite-toggle .list-card-photo-wrap > .favorite-toggle {
  top: -4px !important;
  right: -4px !important;
}

@media (max-width: 380px) {
  .list-card-photo-wrap > .favorite-toggle,
  .favorite-card-link.has-favorite-toggle .list-card-photo-wrap > .favorite-toggle {
    top: -3px !important;
    right: -3px !important;
  }
}


/* 2026-05-15: place favorite heart above the product photo near the top-right corner */
.list-card-photo-wrap > .favorite-toggle,
.favorite-card-link.has-favorite-toggle .list-card-photo-wrap > .favorite-toggle {
  top: -20px !important;
  right: -2px !important;
}

@media (max-width: 380px) {
  .list-card-photo-wrap > .favorite-toggle,
  .favorite-card-link.has-favorite-toggle .list-card-photo-wrap > .favorite-toggle {
    top: -18px !important;
    right: -2px !important;
  }
}


/* 2026-05-17: active dermocosmetic block inside dandruff/flaking shampoo category */
.active-dermo-block {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(169, 126, 43, .22);
}

.active-dermo-head {
  display: grid;
  gap: 6px;
  padding: 13px 13px 12px;
  border-radius: 20px;
  border: 1px solid rgba(215, 180, 95, .28);
  background: rgba(255, 250, 241, .78);
}

.active-dermo-title {
  color: var(--gold-dark);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.active-dermo-desc,
.active-dermo-warning {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.38;
}

.active-dermo-warning {
  color: rgba(92, 80, 70, .98);
}


/* 2026-05-19: compact multi-badges on shampoo mini-cards */
.list-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.list-card-tags .list-card-tag {
  margin-top: 0 !important;
}


/* 2026-05-20: multi-badges in conditioner modal cards */
.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.modal-tags .modal-tag {
  margin-top: 0 !important;
}


/* 2026-05-20: unified leave-in composition badges */
.list-card-badge.composition-badge {
  background: rgba(246, 241, 232, 0.86);
  border-color: rgba(126, 103, 75, 0.20);
}
.leavein-silicone-note {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(160, 124, 62, .18);
  border-radius: 20px;
  background: rgba(255, 250, 241, .72);
}


/* Unified Home — added 2026-05-21 */
.unified-home-app {
  padding-bottom: 28px;
}

.unified-topbar .brand-text {
  max-width: 210px;
}

.unified-hero {
  position: relative;
  overflow: hidden;
  min-height: min(36vh, 330px);
  margin-top: 8px;
  border-radius: 28px;
  padding: 22px 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 84% 9%, rgba(239,217,149,.36), transparent 26%),
    radial-gradient(circle at 18% 24%, rgba(255,255,255,.78), transparent 26%),
    linear-gradient(135deg, rgba(255,253,248,.98), rgba(246,235,219,.96) 72%, rgba(232,216,191,.92));
  border: 1px solid rgba(215,180,95,.28);
  box-shadow: 0 18px 46px rgba(62,46,28,.12);
}

.unified-hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  border: 1px solid rgba(212,175,91,.18);
  background: rgba(212,175,91,.07);
  pointer-events: none;
}

.hair-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orbit-ring {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(212,175,91,.24);
  background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.72), rgba(255,255,255,.10) 45%, rgba(212,175,91,.07));
  box-shadow: inset 0 0 28px rgba(255,255,255,.28);
}

.ring-one {
  width: 210px;
  height: 210px;
  right: -42px;
  top: -48px;
  animation: unifiedFloat 7.5s ease-in-out infinite;
}

.ring-two {
  width: 132px;
  height: 132px;
  left: 18px;
  top: 24px;
  opacity: .64;
  animation: unifiedFloat 8.4s ease-in-out infinite reverse;
}

.orbit-glass-card {
  position: absolute;
  border-radius: 26px;
  background: rgba(255,255,255,.34);
  border: 1px solid rgba(255,255,255,.54);
  box-shadow: 0 14px 34px rgba(84,59,38,.10);
  backdrop-filter: blur(14px);
}

.card-one {
  width: 98px;
  height: 128px;
  right: 32px;
  top: 58px;
  transform: rotate(8deg);
  animation: cardDrift 7s ease-in-out infinite;
}

.card-two {
  width: 82px;
  height: 82px;
  left: 44px;
  top: 78px;
  transform: rotate(-10deg);
  opacity: .72;
  animation: cardDrift 8s ease-in-out infinite reverse;
}

.orbit-bottle {
  position: absolute;
  width: 18px;
  height: 70px;
  border-radius: 999px 999px 12px 12px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.78), rgba(238,212,150,.92), rgba(255,255,255,.42));
  border: 1px solid rgba(172,128,57,.18);
  box-shadow: 0 10px 22px rgba(84,59,38,.10);
}

.orbit-bottle::before {
  content: "";
  position: absolute;
  left: 5px;
  top: -8px;
  width: 8px;
  height: 10px;
  border-radius: 4px 4px 1px 1px;
  background: rgba(161,118,44,.48);
}

.bottle-one {
  right: 72px;
  top: 88px;
}

.bottle-two {
  left: 76px;
  top: 94px;
  height: 54px;
  width: 15px;
  opacity: .66;
}

.orbit-strand {
  position: absolute;
  width: 220px;
  height: 70px;
  border-radius: 999px;
  border-top: 2px solid rgba(151,106,58,.18);
  transform: rotate(-18deg);
}

.strand-one {
  right: 26px;
  top: 166px;
}

.strand-two {
  left: 4px;
  top: 154px;
  width: 180px;
  border-top-color: rgba(212,175,91,.18);
  transform: rotate(16deg);
}

.orbit-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, #efd995, #cda656);
  box-shadow: 0 0 22px rgba(205,166,86,.45);
}

.dot-one {
  right: 166px;
  top: 44px;
  animation: pulseDot 3s ease-in-out infinite;
}

.dot-two {
  left: 136px;
  top: 42px;
  transform: scale(.72);
  animation: pulseDot 4.2s ease-in-out infinite reverse;
}

.unified-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.unified-copy h1 {
  margin: 0;
  max-width: 640px;
  color: var(--text);
  font-size: clamp(33px, 9vw, 50px);
  line-height: .94;
  letter-spacing: -.073em;
}

.unified-copy .lead {
  margin-top: 12px;
  max-width: 690px;
  color: rgba(93,78,66,.92);
  font-size: 15.6px;
  line-height: 1.35;
  letter-spacing: -.012em;
}

.unified-actions {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.unified-action-card {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) 38px;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px 12px;
  border-radius: 24px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255,253,249,.98);
  border: 1px solid rgba(215,180,95,.26);
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.unified-action-card:active {
  transform: scale(.992);
}

.unified-action-card.primary-action {
  border-color: rgba(205,166,86,.44);
  box-shadow: 0 16px 32px rgba(62,46,28,.11);
}

.action-index {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(239,217,149,.80), rgba(205,166,86,.52));
  color: #3d2c1d;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
  border: 1px solid rgba(255,255,255,.52);
}

.unified-action-card h2 {
  margin: 0;
  font-size: clamp(24px, 6vw, 32px);
  line-height: .96;
  letter-spacing: -.06em;
}

.unified-action-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14.7px;
  line-height: 1.30;
  letter-spacing: -.012em;
}

.action-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: rgba(84,59,38,.86);
  background: rgba(250,244,231,.88);
  border: 1px solid rgba(215,180,95,.32);
  font-size: 31px;
  line-height: 1;
}

.unified-footer-note,
.soft-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 22px;
  color: var(--muted);
  background: rgba(255,253,249,.70);
  border: 1px solid rgba(215,180,95,.20);
  font-size: 14.5px;
  line-height: 1.35;
}

.learning-hero h1 {
  max-width: 640px;
}

.learn-list .learn-card {
  cursor: default;
}

.learn-thumb {
  background: linear-gradient(180deg, rgba(239,217,149,.95), rgba(205,166,86,.70));
  color: #3d2c1d;
  font-size: 14px;
}

@keyframes unifiedFloat {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-8px,8px,0) scale(1.025); }
}

@keyframes cardDrift {
  0%,100% { transform: translate3d(0,0,0) rotate(8deg); }
  50% { transform: translate3d(6px,-8px,0) rotate(4deg); }
}

@keyframes pulseDot {
  0%,100% { opacity: .42; transform: scale(.78); }
  50% { opacity: .95; transform: scale(1.08); }
}

@media (min-width: 680px) {
  .unified-hero {
    min-height: 360px;
    padding: 28px 26px 26px;
  }

  .unified-actions {
    grid-template-columns: 1fr;
  }

  .unified-action-card {
    padding: 17px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ring-one,
  .ring-two,
  .card-one,
  .card-two,
  .dot-one,
  .dot-two {
    animation: none;
  }
}
