/* Store: /store/ and product pages (/store/<product>/). */

.store-lead { max-width: 34em; }

/* ---------- price block ---------- */
.store-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .9rem; margin-top: clamp(1.4rem, 3vh, 2rem); }
.store-price__now { font-family: var(--font-display); font-size: clamp(2.4rem, 3.4vw + 1rem, 3.6rem); line-height: 1; color: var(--bone); }
.store-price__mrp { font-family: var(--font-mono); font-size: clamp(1.05rem, .6vw + .8rem, 1.35rem); color: var(--mute); text-decoration-thickness: 2px; text-decoration-color: var(--error); }
.store-price__off {
  align-self: center; display: inline-flex; align-items: center; padding: .38rem .7rem; border-radius: var(--r-pill);
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-mono); font-weight: 700; font-size: .78rem; letter-spacing: .14em;
}
.store-price--sm { margin-top: 1.2rem; }
.store-price--sm .store-price__now { font-size: clamp(1.9rem, 1.6vw + 1.1rem, 2.6rem); }
.store-price__note { margin-top: .55rem; font-size: var(--fs-small); color: var(--mute); }

/* ---------- product hero: copy left, cover right ---------- */
.store-hero::after { display: none; }   /* the outlined 8 would sit behind the cover */
.store-hero__grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (min-width: 900px) { .store-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
.store-hero .page-hero__title, .store-hero .page-hero__lead { max-width: none; }
.store-hero__chips { margin-top: 1.4rem; }

.store-cover { position: relative; margin: 0 auto; width: min(100%, 22rem); }
.store-cover img {
  display: block; width: 100%; height: auto; border-radius: 6px;
  box-shadow: 0 30px 80px -20px rgba(245, 165, 36, .28), 0 0 0 1px var(--line-strong);
  transform: rotate(-2deg);
}
.store-cover__ribbon {
  position: absolute; z-index: 1; top: -.8rem; right: -.6rem;
  padding: .5rem .8rem; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-mono); font-weight: 700; font-size: .8rem; letter-spacing: .14em;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .6);
}

/* ---------- contents list ---------- */
.store-toc { list-style: none; padding: 0; display: grid; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .store-toc { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; } }
@media (min-width: 1200px) { .store-toc { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.store-toc li { display: flex; gap: 1rem; align-items: baseline; padding: .85rem 0; border-bottom: 1px solid var(--line); color: var(--bone); line-height: 1.4; }
.store-toc__n { flex: none; font-family: var(--font-dot); font-weight: 800; color: var(--accent); min-width: 1.6rem; }

/* ---------- sample pages ---------- */
.store-samples { list-style: none; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 960px) { .store-samples { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem; } }
.store-sample__link { display: block; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-strong); transition: transform .3s var(--ease), box-shadow .3s; }
.store-sample__link:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--accent-line), 0 20px 50px -20px rgba(245, 165, 36, .3); }
.store-sample__link img { display: block; width: 100%; height: auto; }
.store-sample__cap { margin-top: .7rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }

/* ---------- who it is for ---------- */
.store-who { display: grid; gap: clamp(2rem, 4vw, 3rem); }

/* ---------- checkout ---------- */
.store-checkout .term__body { padding: clamp(1.25rem, 3vw, 2rem); }
.store-done { display: grid; gap: 1rem; outline: none; }
.store-done[hidden] { display: none; }
.store-done__kicker { display: flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--live); }
.store-done__title { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--bone); }

.store-recover { margin-top: 1.25rem; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel); }
.store-recover__sum {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; list-style: none;
  padding: 1.05rem 1.25rem; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bone);
}
.store-recover__sum::-webkit-details-marker { display: none; }
.store-recover__sum:hover { color: var(--accent); }
.store-recover[open] .faq-item__icon { transform: rotate(45deg); }
.store-recover .form { padding: 0 1.25rem 1.25rem; }

/* ---------- /store/ product grid ---------- */
.store-grid { list-style: none; padding: 0; display: grid; gap: 1.5rem; }
.store-card__body { display: grid; gap: clamp(1.25rem, 3vw, 2.25rem); }
@media (min-width: 760px) { .store-card__body { grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); align-items: center; } }
@media (min-width: 1100px) { .store-grid { grid-template-columns: minmax(0, 1fr); max-width: 64rem; } }
.store-card__media { position: relative; width: min(100%, 16rem); }
.store-card__media img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 0 0 1px var(--line-strong); }
.store-card__info { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.store-card .term__foot { margin-top: 1.4rem; }
.store-checkout .form[hidden] { display: none; }   /* .form sets display:grid, which would beat [hidden] */
.store-buy .h2 + .store-lead { margin-top: clamp(1rem, 2vw, 1.4rem); }
@media (max-width: 899.98px) { .store-cover { width: min(70%, 17rem); } }
