/* Mobile product detail — store-like identity, metrics and discovery. */
body.detail-family-mobile {
  --mobile-ink: #17251f;
  --mobile-muted: #6d7d75;
  --mobile-green: #087f5b;
  --mobile-green-dark: #056b4c;
  --mobile-line: #e4ebe7;
  background: #f7f9f8;
}

body.detail-family-mobile .mobile-store-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  padding: 38px 40px 30px;
  border: 1px solid #e1eae5;
  border-radius: 28px;
  background:
    radial-gradient(circle at 94% 4%, rgba(57, 192, 139, .16), transparent 31%),
    linear-gradient(145deg, #fff 0%, #fbfdfc 64%, #f0f8f4 100%);
  box-shadow: 0 18px 48px rgba(23, 62, 47, .07);
}

body.detail-family-mobile .mobile-store-identity {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

body.detail-family-mobile .mobile-store-icon {
  position: relative;
  width: 124px;
  height: 124px;
  overflow: hidden;
  border: 1px solid rgba(15, 72, 50, .1);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(22, 78, 57, .16);
}

body.detail-family-mobile .mobile-store-icon .logo-original,
body.detail-family-mobile .mobile-store-icon .logo-img,
body.detail-family-mobile .mobile-store-icon .logo-qr {
  width: 100%;
  height: 100%;
}

body.detail-family-mobile .mobile-store-icon .logo-img { object-fit: cover; }
body.detail-family-mobile .mobile-store-icon .logo-qr { display: none; object-fit: contain; background: #fff; }
body.detail-family-mobile .mobile-store-icon .logo-placeholder { display: grid; place-items: center; height: 100%; color: #729085; font-weight: 800; }

body.detail-family-mobile .mobile-store-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--mobile-green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
}

body.detail-family-mobile .mobile-store-copy h1 {
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--mobile-ink);
  font-size: clamp(32px, 3.1vw, 46px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -.055em;
}

body.detail-family-mobile .mobile-store-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  color: #39745f;
  font-size: 14px;
  font-weight: 700;
}

body.detail-family-mobile .mobile-store-byline i { width: 3px; height: 3px; border-radius: 50%; background: #a4b5ad; }
body.detail-family-mobile .mobile-store-copy p { max-width: 650px; margin: 13px 0 0; color: var(--mobile-muted); font-size: 16px; line-height: 1.7; }

body.detail-family-mobile .mobile-store-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
body.detail-family-mobile .mobile-store-tags span {
  padding: 5px 10px;
  border: 1px solid #dce8e2;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #52665d;
  font-size: 12px;
  font-weight: 700;
}

body.detail-family-mobile .mobile-store-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 31px 0 24px;
  padding: 19px 0;
  border-top: 1px solid var(--mobile-line);
  border-bottom: 1px solid var(--mobile-line);
}

body.detail-family-mobile .mobile-store-metrics div { min-width: 0; padding: 0 20px; text-align: center; border-right: 1px solid var(--mobile-line); }
body.detail-family-mobile .mobile-store-metrics div:first-child { padding-left: 0; }
body.detail-family-mobile .mobile-store-metrics div:last-child { padding-right: 0; border-right: 0; }
body.detail-family-mobile .mobile-store-metrics strong { display: block; overflow: hidden; color: #263a31; font-size: 18px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
body.detail-family-mobile .mobile-store-metrics strong small { color: #f3a71b; font-size: 12px; }
body.detail-family-mobile .mobile-store-metrics span { display: block; margin-top: 5px; color: #78877f; font-size: 11px; }

body.detail-family-mobile .mobile-store-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px 17px; }
body.detail-family-mobile .mobile-store-download {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 224px;
  min-height: 52px;
  padding: 0 18px 0 22px;
  border-radius: 16px;
  background: var(--mobile-green);
  box-shadow: 0 12px 24px rgba(8, 127, 91, .2);
  color: #fff !important;
  font-size: 15px;
  font-weight: 850;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
body.detail-family-mobile .mobile-store-download:hover { transform: translateY(-2px); background: var(--mobile-green-dark); box-shadow: 0 15px 28px rgba(8, 127, 91, .26); }
body.detail-family-mobile .mobile-store-download b { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: rgba(255, 255, 255, .17); font-size: 16px; }
body.detail-family-mobile .mobile-store-download:not(.is-quark) .text-quark,
body.detail-family-mobile .mobile-store-download.is-quark .text-normal { display: none; }
body.detail-family-mobile .mobile-store-safe { color: #607169; font-size: 12px; font-weight: 650; }
body.detail-family-mobile .mobile-store-safe i { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-right: 4px; border-radius: 50%; background: #e5f5ed; color: var(--mobile-green); font-style: normal; font-size: 10px; }

body.detail-family-mobile .mobile-store-integrity { margin-top: 18px; color: var(--mobile-muted); }
body.detail-family-mobile .mobile-store-integrity summary { display: inline-flex; align-items: baseline; gap: 9px; cursor: pointer; list-style: none; font-size: 11px; }
body.detail-family-mobile .mobile-store-integrity summary::-webkit-details-marker { display: none; }
body.detail-family-mobile .mobile-store-integrity summary span { color: #52675e; font-weight: 800; }
body.detail-family-mobile .mobile-store-integrity summary small { color: #93a099; }
body.detail-family-mobile .mobile-store-integrity code { display: block; max-width: 520px; margin-top: 9px; padding: 10px 12px; overflow-wrap: anywhere; border-radius: 10px; background: #edf4f0; color: #315448; font-size: 11px; }

body.detail-family-mobile .mobile-store-package {
  display: grid;
  gap: 9px;
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid #dce8e2;
  border-radius: 15px;
  background: rgba(255, 255, 255, .72);
}
body.detail-family-mobile .mobile-store-package-title { color: #314b40; font-size: 13px; font-weight: 850; }
body.detail-family-mobile .mobile-store-package-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-width: 0; color: #75857d; font-size: 12px; }
body.detail-family-mobile .mobile-store-package-row strong { min-width: 0; overflow-wrap: anywhere; color: #425a50; font-size: 12px; }
body.detail-family-mobile .mobile-store-package-row code { min-width: 0; overflow-wrap: anywhere; color: #1f5744; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
body.detail-family-mobile .copy-value-btn { padding: 5px 9px; border: 1px solid #cfe1d8; border-radius: 8px; background: #fff; color: #177456; cursor: pointer; font-size: 10px; font-weight: 800; }
body.detail-family-mobile .copy-value-btn:hover { background: #eaf7f1; }

/* Discovery rail: a product shelf, not another download panel. */
body.detail-family-mobile .sidebar { padding-top: 12px; }
body.detail-family-mobile .sidebar-module--discover {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.detail-family-mobile .sidebar-module--discover:hover { transform: none; box-shadow: none; }
body.detail-family-mobile .sidebar-module--discover .card-body { padding: 0; }
body.detail-family-mobile .sidebar-module--discover h4 {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  color: #24362e;
  font-size: 17px;
  letter-spacing: -.02em;
}
body.detail-family-mobile .sidebar-module--discover h4::before { display: none; }
body.detail-family-mobile .sidebar-card-grid { gap: 8px; }
body.detail-family-mobile .sidebar-mini-card {
  position: relative;
  gap: 12px;
  min-height: 70px;
  padding: 9px 34px 9px 9px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
}
body.detail-family-mobile .sidebar-mini-card::after { position: absolute; right: 12px; color: #9aaba3; content: "→"; font-size: 15px; }
body.detail-family-mobile .sidebar-mini-card:hover { border-color: #e1eae5; background: #fff; box-shadow: 0 10px 24px rgba(28, 61, 48, .06); transform: translateX(3px); }
body.detail-family-mobile .sidebar-mini-logo { width: 52px; height: 52px; border: 0; border-radius: 14px; box-shadow: 0 5px 13px rgba(32, 64, 52, .11); }
body.detail-family-mobile .sidebar-mini-name { color: #273a32; font-size: 13px; font-weight: 750; }
body.detail-family-mobile .sidebar-mini-meta { margin-top: 4px; color: #89978f; font-size: 10px; }

body.detail-family-mobile .detail-anchor-nav { border: 0; border-radius: 14px; box-shadow: none; background: #fff; }
body.detail-family-mobile .detail-section { border-color: #e5ebe8; border-radius: 20px; box-shadow: none; }

@media (max-width: 768px) {
  body.detail-family-mobile .mobile-store-hero { margin: 0 -12px 16px; padding: 24px 18px 22px; border-width: 0 0 1px; border-radius: 0; box-shadow: none; }
  body.detail-family-mobile .mobile-store-identity { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: start; }
  body.detail-family-mobile .mobile-store-icon { width: 88px; height: 88px; border-radius: 21px; box-shadow: 0 10px 22px rgba(22, 78, 57, .14); }
  body.detail-family-mobile .mobile-store-copy h1 { font-size: 27px; line-height: 1.12; }
  body.detail-family-mobile .mobile-store-copy p { grid-column: 1 / -1; font-size: 13px; }
  body.detail-family-mobile .mobile-store-tags { gap: 5px; margin-top: 10px; }
  body.detail-family-mobile .mobile-store-metrics { margin: 24px 0 20px; }
  body.detail-family-mobile .mobile-store-metrics div { padding: 0 8px; }
  body.detail-family-mobile .mobile-store-metrics strong { font-size: 13px; }
  body.detail-family-mobile .mobile-store-download { width: 100%; min-width: 0; }
  body.detail-family-mobile .mobile-store-actions { gap: 11px; }
  body.detail-family-mobile .mobile-store-integrity summary { align-items: flex-start; flex-direction: column; gap: 2px; }
  body.detail-family-mobile .mobile-store-package { padding: 14px; }
  body.detail-family-mobile .mobile-store-package-row { grid-template-columns: 55px minmax(0, 1fr) auto; }
}
