body.account-detail-page {
  background: var(--bg-soft);
}

.ad-page {
  padding: 22px 0 56px;
}

.ad-bc {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}
.ad-bc a { color: inherit; }
.ad-bc a:hover { color: var(--primary); }
.ad-bc i { font-size: 8px; flex: none; }
.ad-bc span {
  overflow: hidden;
  color: var(--text);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ad-hero {
  display: grid;
  grid-template-columns: minmax(260px, .92fr) minmax(0, 1.08fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.ad-media {
  position: relative;
  min-height: 380px;
  background: color-mix(in srgb, var(--account-accent, var(--primary)) 18%, var(--card-2));
}
.ad-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.ad-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  color: var(--text);
}
.ad-ph i {
  font-size: 36px;
  color: var(--account-accent, var(--primary));
}
.ad-ph b {
  font-size: 18px;
  font-weight: 800;
}

.ad-tags {
  position: absolute;
  z-index: 1;
  left: 14px;
  bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ad-tags span {
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}
.ad-tags span:first-child {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.ad-sale {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 14px;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.ad-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px 28px 24px;
}
.ad-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.ad-kicker > span {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}
.ad-kicker > b {
  font-size: 12px;
  font-weight: 800;
}
.ad-kicker > b.on { color: var(--green); }
.ad-kicker > b.off { color: var(--red); }

.ad-info h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
  letter-spacing: -.3px;
}
.ad-lead {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}
.ad-info > .product-rating { margin-top: 10px; }
.ad-info > .product-rating i { font-size: 13px; }

.ad-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.ad-features li {
  position: relative;
  padding-left: 16px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
}
.ad-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.ad-buy {
  margin-top: auto;
  padding-top: 20px;
}
.ad-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 14px;
}
.ad-price > span {
  width: 100%;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}
.ad-price strong {
  color: var(--text);
  font-size: 28px;
  letter-spacing: -.4px;
}
.ad-price del {
  color: var(--text-muted);
  font-size: 14px;
}

.ad-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ad-actions button,
.ad-sticky button {
  height: 46px;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.ad-actions button:disabled,
.ad-sticky button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.ad-cart {
  border: 1px solid var(--border) !important;
  background: var(--card);
  color: var(--text);
}
.ad-cart:hover { border-color: var(--primary) !important; color: var(--primary); }
.ad-now,
.ad-sticky button {
  background: var(--primary);
  color: #fff;
}
.ad-now:hover,
.ad-sticky button:hover { background: var(--primary-hover); }

.ad-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 650;
}
.ad-trust i {
  margin-right: 6px;
  color: var(--primary);
}

.ad-body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}
.ad-copy,
.ad-ship {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.ad-copy h2,
.ad-ship h2 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 800;
}
.ad-copy,
.ad-copy p {
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
}
.ad-copy p:first-of-type { margin-top: 0; }
.ad-copy p { margin: 0 0 12px; color: var(--text-muted); }
.ad-copy a,
.ad-copy .corp-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
.ad-copy a:hover,
.ad-copy .corp-link:hover { text-decoration: underline; }

.ad-ship ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.ad-ship li {
  position: relative;
  padding-left: 36px;
  counter-increment: step;
}
.ad-ship li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}
.ad-ship li b,
.ad-ship li span { display: block; }
.ad-ship li b { font-size: 14px; }
.ad-ship li span {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}
.ad-ship > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.ad-ship > a:hover { border-color: var(--primary); color: var(--primary); }

.ad-related { margin-top: 28px; }
.ad-related > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.ad-related h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}
.ad-related > header a {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}
.ad-related-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.ad-related-scroll .product-card {
  width: 210px;
  flex: 0 0 210px;
}
.ad-related-scroll::-webkit-scrollbar { display: none; }

.ad-sticky { display: none; }

@media (max-width: 980px) {
  .ad-hero,
  .ad-body { grid-template-columns: 1fr; }
  .ad-media { min-height: 0; aspect-ratio: 16 / 10; }
  .ad-info { padding: 22px; }
}

@media (max-width: 700px) {
  body.account-detail-page { padding-bottom: 138px; }
  .ad-page { padding: 12px 0 24px; }
  .ad-bc {
    margin-bottom: 12px;
    font-size: 12px;
  }
  .ad-hero,
  .ad-copy,
  .ad-ship { border-radius: 12px; }
  .ad-media { aspect-ratio: 16 / 11; }
  .ad-ph i { font-size: 28px; }
  .ad-ph b { font-size: 16px; }
  .ad-info { padding: 16px; }
  .ad-info h1 { font-size: 22px; }
  .ad-lead { font-size: 14px; }
  .ad-features { grid-template-columns: 1fr; margin-top: 14px; }
  .ad-price strong { font-size: 24px; }
  .ad-actions { gap: 8px; }
  .ad-actions button { font-size: 13px; }
  .ad-trust {
    gap: 10px 12px;
    font-size: 12.5px;
  }
  .ad-copy,
  .ad-ship { padding: 16px; }
  .ad-copy h2,
  .ad-ship h2 { font-size: 16px; }
  .ad-copy,
  .ad-copy p { font-size: 14px; }
  .ad-related h2 { font-size: 17px; }

  .ad-sticky {
    position: fixed;
    z-index: 80;
    left: 0;
    right: 0;
    bottom: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    background: var(--card);
  }
  .ad-sticky span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
  }
  .ad-sticky b { font-size: 18px; }
  .ad-sticky button {
    min-width: 132px;
    padding: 0 18px;
  }
}
