
:root {
  --bg: #f4eee3;
  --surface: #ffffff;
  --surface-soft: #fbf7ef;
  --text: #1e1a16;
  --muted: #71685e;
  --line: #e6ddce;
  --gold: #d7b45f;
  --gold-dark: #9f7d36;
  --brown: #4a3524;
  --shadow: 0 10px 26px rgba(62, 46, 28, 0.07);
  --shadow-soft: 0 6px 18px rgba(62, 46, 28, 0.055);
}

* { 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(215, 180, 95, .14), transparent 26%),
    linear-gradient(180deg, #fffaf3 0%, var(--bg) 48%, #f0e8db 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(215,180,95,.10), transparent 20%),
    linear-gradient(180deg, rgba(255,250,242,.50), rgba(246,241,232,.38));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 6px 0;
  backdrop-filter: blur(18px);
  background: rgba(246, 241, 232, .72);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(215, 180, 95, .22);
  border-radius: 999px;
  padding: 7px 9px;
  box-shadow: 0 6px 18px rgba(62,46,28,.055);
}

.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, #edd99e, #d0aa5c);
  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: #fff8ea;
  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,255,255,.96), rgba(251,245,234,.94)),
    radial-gradient(circle at 90% 8%, rgba(215,180,95,.25), transparent 26%);
  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(215,180,95,.055);
  border: 1px solid rgba(215,180,95,.10);
}

.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,255,255,.93);
  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;
}

.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,255,255,.95);
  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,255,255,.96);
  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,255,255,.74);
  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,255,255,.96);
  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,255,255,.88);
  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;
}
