/* Product page, same language as the home page (needs home.css). */
.ap-pp { padding-top: 10px; }
.ap-crumbs { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; color: var(--ap-muted); font-size: 13px; font-weight: 700; }
.ap-crumbs svg { width: 17px; height: 17px; }
.ap-crumbs a { display: inline-flex; align-items: center; }
.ap-crumbs a:hover { color: var(--ap-indigo); }

.ap-pp-hero {
    position: relative; isolation: isolate; overflow: hidden;
    display: grid; grid-template-columns: 1fr; justify-items: center; gap: 4px;
    padding: 22px 20px 22px; border-radius: 28px; background: var(--ap-ink); color: #fff; text-align: center;
}
.ap-pp-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14, 17, 48, .9), rgba(14, 17, 48, .35)); }
.ap-pp-art { width: min(68%, 260px); aspect-ratio: 1; display: grid; place-items: center; }
.ap-pp-art img { width: 100%; height: 100%; object-fit: contain; transform: rotate(-4deg); filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .45)); }
.ap-pp-art .ap-plate-letter { color: #fff; font-size: 80px; }
.ap-pp-copy h1 { margin: 6px 0 12px; font-family: var(--ap-display); font-weight: 400; font-size: 36px; line-height: 1.1; letter-spacing: 0; text-wrap: balance; }
.ap-pp-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ap-pp-facts li { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); font-size: 12.5px; font-weight: 700; }
.ap-pp-facts svg { width: 16px; height: 16px; color: var(--ap-brass-2); }

.ap-pp-body { display: grid; gap: 18px; margin-top: 22px; }
.ap-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ap-value {
    position: relative; display: grid; gap: 6px; align-content: space-between; min-height: 104px;
    padding: 14px; border-radius: 20px; background: #fff; border: 2px solid var(--ap-line); cursor: pointer;
}
.ap-value b { font-size: 14.5px; font-weight: 800; line-height: 1.4; padding-inline-end: 22px; }
.ap-value strong { color: var(--ap-indigo); font-size: 15px; font-weight: 800; }
.ap-value em { position: absolute; top: -9px; inset-inline-start: 12px; height: 22px; padding: 0 8px; display: grid; place-items: center; border-radius: 8px; background: var(--ap-coral); color: #fff; font-style: normal; font-size: 11.5px; font-weight: 800; }
.ap-value-check { position: absolute; top: 12px; inset-inline-end: 12px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--ap-line); color: transparent; }
.ap-value-check svg { width: 14px; height: 14px; }
.ap-value:hover { border-color: #c9c3ff; }
.ap-value[aria-checked="true"] { border-color: var(--ap-indigo); background: #f3f1ff; box-shadow: 0 10px 22px rgba(75, 59, 255, .14); }
.ap-value[aria-checked="true"] .ap-value-check { background: var(--ap-indigo); border-color: var(--ap-indigo); color: #fff; }

.ap-pp-buy { display: grid; gap: 12px; padding: 16px; border-radius: 24px; background: #fff; border: 1px solid var(--ap-line); box-shadow: 0 18px 40px rgba(22, 27, 69, .08); }
.ap-pp-sum { display: grid; gap: 2px; }
.ap-pp-sum span { color: var(--ap-muted); font-size: 12px; font-weight: 700; }
.ap-pp-sum b { font-size: 16px; font-weight: 800; }
.ap-pp-sum strong { font-family: var(--ap-display); font-weight: 400; font-size: 32px; color: var(--ap-ink); line-height: 1.15; }
.ap-pp-sum s { color: var(--ap-muted); font-size: 13px; }
.ap-pp-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.ap-pp-actions form { margin: 0; }
.ap-pp-now { justify-content: center; height: 54px; font-size: 16px; }
.ap-pp-cart { height: 54px; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border: 2px solid var(--ap-ink); border-radius: 14px; background: #fff; color: var(--ap-ink); font: inherit; font-weight: 800; cursor: pointer; }
.ap-pp-cart:hover { background: var(--ap-ink); color: #fff; }
.ap-pp-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ap-pp-trust li { display: flex; align-items: center; gap: 8px; color: var(--ap-muted); font-size: 13px; font-weight: 600; }
.ap-pp-trust svg { width: 18px; height: 18px; color: var(--ap-mint); }
.ap-faq summary > span { display: inline-flex; align-items: center; gap: 10px; }
.ap-faq summary > span svg { color: var(--ap-indigo); }

/* phones: the buy box sits above the bottom bar, always in reach */
@media (max-width: 860px) {
    .ap-pp-buy {
        position: sticky; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 20;
        grid-template-columns: 1fr auto; align-items: center; padding: 10px 10px 10px 12px; border-radius: 20px;
    }
    .ap-pp-sum b, .ap-pp-sum span, .ap-pp-trust { display: none; }
    .ap-pp-sum { min-width: 0; }
    .ap-pp-sum strong { font-size: 19px; white-space: nowrap; direction: ltr; unicode-bidi: isolate; text-align: end; }
    .ap-pp-sum s { font-size: 11px; }
    .ap-pp-actions { grid-template-columns: auto auto; }
    .ap-pp-now { height: 48px; padding: 0 16px; }
    .ap-pp-cart { height: 48px; width: 48px; padding: 0; justify-content: center; }
    .ap-pp-cart span { display: none; }
}
@media (min-width: 861px) {
    .ap-pp-hero { grid-template-columns: 300px 1fr; justify-items: start; align-items: center; gap: 30px; padding: 30px 40px; text-align: start; }
    .ap-pp-hero::after { background: linear-gradient(90deg, rgba(14, 17, 48, .3), rgba(14, 17, 48, .85)); }
    html[dir="ltr"] .ap-pp-hero::after { background: linear-gradient(270deg, rgba(14, 17, 48, .3), rgba(14, 17, 48, .85)); }
    .ap-pp-art { width: 100%; }
    .ap-pp-copy h1 { font-size: 52px; }
    .ap-pp-facts { justify-content: flex-start; }
    .ap-pp-body { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 26px; }
    .ap-pp-buy { position: sticky; top: 100px; }
    .ap-values { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}

/* the floating support button moves above the buy bar on the product page */
@media (max-width: 860px) { body:has(.ap-pp-buy) .ap-support { display: none; } }
@media (min-width: 861px) {
    .ap-pp-actions { grid-template-columns: 1fr; }
    .ap-pp-cart { width: 100%; justify-content: center; }
}
