/* Product detail page */

.tag { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .02em; }
.tag--green { background: var(--green-100); color: var(--green-800); }
.tag--pink { background: var(--pink-100); color: var(--pink-600); }

/* ---------- Hero ---------- */
.p-hero { display: grid; gap: var(--s-6); padding-top: var(--s-2); padding-bottom: var(--s-7); }
.p-hero__media { position: relative; }
.p-hero__frame {
  position: relative; aspect-ratio: 10 / 11; overflow: hidden; border-radius: var(--radius-lg);
  background: #e6e8f1;
  border: 1px solid var(--line);
}
.p-hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.p-hero__badges { list-style: none; position: absolute; left: var(--s-4); bottom: var(--s-4); display: flex; flex-wrap: wrap; gap: var(--s-2); }
.p-hero__badges li {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); box-shadow: var(--shadow-sm);
  font-size: var(--fs-xs); font-weight: 600; color: var(--green-800);
}
.p-hero__badges svg { width: 15px; height: 15px; color: var(--green-600); }

.p-hero__info { display: flex; flex-direction: column; gap: var(--s-5); }
.p-hero__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.p-hero__title { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -0.02em; }
.p-hero__title span { color: var(--pink-500); white-space: nowrap; }
.p-hero__lead { font-size: var(--fs-md); color: var(--ink-2); max-width: 56ch; margin-top: calc(var(--s-2) * -1); }

.npk { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.npk--2, .npk--4 { grid-template-columns: repeat(2, 1fr); }
.npk--1 { grid-template-columns: minmax(0, 240px); }
@media (min-width: 560px) { .npk--4 { grid-template-columns: repeat(4, 1fr); } }
.npk__item {
  display: grid; gap: 2px; padding: var(--s-4); border-radius: var(--radius);
  background: var(--green-900); color: #fff; position: relative; overflow: hidden;
}
.npk__item::after { content: ""; position: absolute; right: -18px; top: -18px; width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.npk__item:nth-child(2) { background: var(--green-700); }
.npk__item:nth-child(3) { background: var(--green-600); }
.npk__sym { font-family: var(--font-head); font-size: var(--fs-sm); font-weight: 600; color: var(--pink-200); }
.npk__val { font-family: var(--font-head); font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 700; line-height: 1.1; }
.npk__val small { font-size: .55em; font-weight: 600; margin-left: 2px; opacity: .85; }
.npk__name { font-size: var(--fs-xs); color: var(--green-200); }

.me { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--radius); background: var(--pink-100); }
.me__label { font-family: var(--font-head); font-weight: 700; color: var(--pink-600); }
.me__list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.me__list li {
  display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 6px; border-radius: 10px;
  background: #fff; color: var(--green-900); font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm);
  box-shadow: var(--shadow-sm);
}
.me__note { margin-left: auto; font-size: var(--fs-xs); font-weight: 600; color: var(--pink-600); }

.facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.facts__item { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); }
.facts__item + .facts__item { border-top: 1px solid var(--line); }
.facts dt { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); color: var(--muted); }
.facts dt svg { width: 18px; height: 18px; color: var(--green-600); }
.facts dd { margin: 0; font-weight: 600; color: var(--green-900); text-align: right; font-size: var(--fs-sm); }

.p-hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.p-hero__actions .btn { flex: 1 1 200px; }

@media (min-width: 560px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts__item { flex-direction: column; align-items: flex-start; gap: 4px; }
  .facts__item + .facts__item { border-top: 0; border-left: 1px solid var(--line); }
  .facts dd { text-align: left; }
}
@media (min-width: 960px) {
  .p-hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-8); align-items: center; padding-top: var(--s-4); padding-bottom: var(--s-8); }
  .p-hero__media { position: sticky; top: 96px; align-self: start; }
  .p-hero__actions .btn { flex: 0 0 auto; }
}

/* ---------- Sub navigation ---------- */
.subnav {
  position: sticky; top: 64px; z-index: 40;
  background: rgba(250, 248, 244, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-block: 1px solid var(--line);
}
.subnav__list { list-style: none; display: flex; gap: var(--s-1); overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.subnav__list::-webkit-scrollbar { display: none; }
.subnav__list a {
  position: relative; display: block; padding: 14px 14px; white-space: nowrap;
  font-family: var(--font-head); font-size: var(--fs-sm); font-weight: 500; color: var(--muted);
  transition: color .2s;
}
.subnav__list a:hover { color: var(--green-900); }
.subnav__list a.is-active { color: var(--green-900); }
.subnav__list a.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--pink-500); }

/* ---------- Benefits ---------- */
.benefits { list-style: none; display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
.benefit {
  padding: var(--s-5); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.benefit:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green-200); }
.benefit__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--green-100); color: var(--green-700); margin-bottom: var(--s-4); }
.benefit:nth-child(even) .benefit__icon { background: var(--pink-100); color: var(--pink-600); }
.benefit__icon svg { width: 24px; height: 24px; }
.benefit h3 { font-size: var(--fs-md); margin-bottom: var(--s-2); }
.benefit p { color: var(--muted); font-size: var(--fs-sm); line-height: 1.65; }
@media (min-width: 640px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .benefits { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }

/* ---------- Composition ---------- */
.composition { display: grid; gap: var(--s-5); }
@media (min-width: 960px) { .composition { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } }

.comp-table-wrap { padding: var(--s-2) 0 0; overflow: hidden; }
.comp-table { font-size: var(--fs-sm); }
.comp-table thead th { padding: var(--s-3) var(--s-5); text-align: left; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.comp-table th, .comp-table td { padding: 12px var(--s-5); text-align: left; vertical-align: middle; }
.comp-table tbody th { font-weight: 400; color: var(--ink-2); }
.comp-table tbody tr + tr { border-top: 1px solid var(--line); }
.comp-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--green-900); }
.comp-table tbody tr:not(.is-sub):not(.comp-group) th { position: relative; padding-left: calc(var(--s-5) + 36px + var(--s-3)); min-height: 36px; }
.comp-table tbody th .el { position: absolute; left: var(--s-5); top: 50%; transform: translateY(-50%); }
.comp-table tr.is-main th { font-weight: 600; color: var(--green-900); }
.comp-table tr.is-sub { border-top: 0 !important; }
.comp-table tr.is-sub th { padding-left: calc(var(--s-5) + 36px + var(--s-3)); color: var(--muted); padding-block: 6px; position: relative; }
.comp-table tr.is-sub th::before { content: ""; position: absolute; left: calc(var(--s-5) + 17px); top: 0; bottom: 50%; width: 10px; border-left: 1.5px solid var(--line-strong); border-bottom: 1.5px solid var(--line-strong); border-bottom-left-radius: 6px; }
.comp-table tr.is-sub td { color: var(--muted); font-weight: 500; padding-block: 6px; }
.comp-table tr.comp-group th { padding-top: var(--s-4); padding-bottom: var(--s-2); background: var(--green-50); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--green-700); }
.comp-table tr.comp-group th span { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }

.el {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; vertical-align: middle;
  background: var(--green-900); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm);
}
.el--me { background: var(--green-100); color: var(--green-800); }
.edta { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: var(--pink-100); color: var(--pink-600); font-size: 11px; font-weight: 600; letter-spacing: .04em; vertical-align: middle; }
.comp-legend { padding: var(--s-3) var(--s-5); font-size: var(--fs-xs); color: var(--muted); border-top: 1px solid var(--line); background: var(--bg); }
.comp-legend .edta { margin-left: 0; }

@media (max-width: 480px) {
  .comp-table th, .comp-table td { padding-inline: var(--s-4); }
  .comp-table .el { width: 30px; height: 30px; font-size: var(--fs-xs); }
  .comp-table tbody th .el { left: var(--s-4); }
  .comp-table tbody tr:not(.is-sub):not(.comp-group) th { padding-left: calc(var(--s-4) + 30px + var(--s-3)); }
  .comp-table tr.is-sub th { padding-left: calc(var(--s-4) + 30px + var(--s-2)); }
  .comp-table tr.is-sub th::before { left: calc(var(--s-4) + 14px); }
}

.comp-side { display: grid; gap: var(--s-5); }
.ph-card { padding: var(--s-5); }
.ph-card h3 { font-size: var(--fs-md); }
.ph-card__hint { margin-top: 4px; margin-bottom: var(--s-5); font-size: var(--fs-sm); color: var(--muted); }
.ph { display: grid; gap: var(--s-3); }
.ph__row { display: grid; grid-template-columns: 36px 1fr 64px; align-items: center; gap: var(--s-3); }
.ph__el { display: grid; place-items: center; height: 30px; border-radius: 8px; background: var(--green-100); color: var(--green-800); font-family: var(--font-head); font-weight: 600; font-size: var(--fs-xs); }
.ph__track {
  position: relative; height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, #f6d1c9 0%, #f3e6b8 30%, #dcebd6 50%, #cfe0ec 70%, #dad2ec 100%);
  opacity: 1;
}
.ph__bar {
  position: absolute; top: -3px; bottom: -3px; border-radius: 9px;
  left: calc(var(--from) / 14 * 100%); width: calc((var(--to) - var(--from)) / 14 * 100%);
  background: var(--green-700); box-shadow: 0 0 0 2px #fff;
}
.ph__val { font-size: var(--fs-xs); font-weight: 600; color: var(--green-900); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ph__scale { display: grid; grid-template-columns: 36px 1fr 64px; gap: var(--s-3); margin-top: var(--s-2); }
.ph__ticks { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); font-style: normal; }
.ph__ticks i { font-style: normal; }

.notes { list-style: none; display: grid; gap: var(--s-3); padding: var(--s-5); font-size: var(--fs-sm); color: var(--ink-2); }
.notes li { display: flex; gap: var(--s-3); align-items: flex-start; }
.notes svg { width: 20px; height: 20px; flex: none; padding: 3px; border-radius: 50%; background: var(--green-100); color: var(--green-700); margin-top: 1px; }

/* ---------- Application ---------- */
.app-tools { display: grid; gap: var(--s-4); margin-bottom: var(--s-5); }
.apps { display: grid; gap: var(--s-4); }
@media (min-width: 768px) { .apps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .apps { grid-template-columns: repeat(3, 1fr); } }

.app {
  display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-5);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: box-shadow .25s var(--ease), border-color .25s;
}
.app:hover { box-shadow: var(--shadow); border-color: var(--green-200); }
.app[hidden] { display: none; }
.app__head { display: flex; align-items: center; gap: var(--s-3); }
.app__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--green-100); color: var(--green-700); }
.app__icon svg { width: 24px; height: 24px; }
.app h3 { font-size: var(--fs-md); }
.crops { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crops li { padding: 3px 10px; border-radius: var(--radius-pill); background: var(--surface-2); font-size: var(--fs-xs); color: var(--ink-2); transition: background-color .2s, color .2s; }
.crops li.is-match { background: var(--pink-500); color: #fff; }
.app__stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); margin: 0; margin-top: auto; }
.app__stats > div:nth-child(odd):last-child { grid-column: 1 / -1; }
.app__stats div { padding: var(--s-3); border-radius: var(--radius); background: var(--green-50); }
.app__stats dt { font-size: var(--fs-xs); color: var(--muted); }
.app__stats dd { margin: 2px 0 0; font-family: var(--font-head); font-weight: 600; color: var(--green-900); font-size: var(--fs-sm); }
.app__how { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.6; }
.methods { list-style: none; display: flex; gap: 6px; }
.methods li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 6px; border: 1px solid var(--green-200); color: var(--green-700); font-size: var(--fs-xs); font-weight: 600; }
.methods li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green-500); }

.apps__empty { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-5); border-radius: var(--radius-lg); border: 1.5px dashed var(--pink-200); background: var(--pink-100); color: var(--ink-2); }
.apps__empty[hidden] { display: none; }
.apps__empty strong { color: var(--green-900); }

/* ---------- About ---------- */
.about { display: grid; gap: var(--s-6); }
.about__aside { display: grid; gap: var(--s-3); align-content: start; }
.about__aside h2 { font-size: var(--fs-xl); }
.quote { margin: var(--s-4) 0 0; padding: var(--s-5); border-radius: var(--radius-lg); background: var(--green-900); color: #fff; position: relative; }
.quote::before { content: "“"; position: absolute; top: -6px; left: 18px; font-family: Georgia, serif; font-size: 72px; line-height: 1; color: var(--pink-400); }
.quote p { padding-top: var(--s-4); font-family: var(--font-head); font-size: var(--fs-md); line-height: 1.5; font-weight: 500; }
@media (min-width: 960px) {
  .about { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s-8); }
  .about__aside { position: sticky; top: 140px; }
}

.prose__more { position: relative; }
.js .prose__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.js .prose__more { overflow: hidden; }
.js .prose__more.is-open { grid-template-rows: 1fr; }
.js .prose__more-inner { min-height: 0; }

.readmore { display: none; align-items: center; gap: 6px; margin-top: var(--s-5); padding: 10px 18px; border-radius: var(--radius-pill); border: 1.5px solid var(--line-strong); background: var(--surface); font-family: var(--font-head); font-weight: 500; font-size: var(--fs-sm); color: var(--green-900); }
.js .readmore { display: inline-flex; }
.readmore:hover { border-color: var(--green-700); }
.readmore svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.readmore [data-less] { display: none; }
.readmore[aria-expanded="true"] [data-less] { display: inline; }
.readmore[aria-expanded="true"] [data-more] { display: none; }
.readmore[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ---------- Related ---------- */
.related { list-style: none; display: grid; gap: var(--s-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .related { grid-template-columns: repeat(4, 1fr); gap: var(--s-5); } }
.pcard { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pcard__img { aspect-ratio: 1; background: #f1f2f5; overflow: hidden; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.04); }
.pcard__name { padding: var(--s-4) var(--s-4) 0; font-family: var(--font-head); font-weight: 600; color: var(--green-900); font-size: var(--fs-sm); line-height: 1.35; }
.pcard__cta { margin-top: auto; padding: var(--s-2) var(--s-4) var(--s-4); font-size: var(--fs-xs); font-weight: 600; color: var(--pink-600); }
.pcard__cta::after { content: " →"; }
@media (min-width: 640px) { .pcard__name { font-size: var(--fs-base); } }

/* ---------- Empty product pages ---------- */
.p-hero__placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--green-50), var(--green-100)); color: var(--green-600); }
.p-hero__placeholder svg { width: 30%; height: 30%; opacity: .5; }
.p-hero__notice { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4); border-radius: var(--radius); background: var(--pink-100); color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.6; }
.p-hero__notice svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--pink-600); }
