/* The page kit's base look (resources/themes/_kit): cart, mini cart, checkout, thank-you, account,
   sign-in, 404, search and entry pages. Only the store's design tokens (--store-*), so any theme that
   asks for the kit looks tidy before it styles a thing; list "kit.css" first in theme.json
   "stylesheets" and override these fm-* rules in the theme's own CSS. */

:root {
  --fm-gutter: 1rem;
  --fm-section: clamp(2.5rem, 5vw, 4rem);
  --fm-line: rgb(0 0 0 / .08);
  --fm-ease: cubic-bezier(.2, .7, .2, 1);
}

/* Building blocks */
.fm-container { box-sizing: border-box; width: 100%; max-width: var(--store-container); margin-inline: auto; padding-inline: var(--fm-gutter); }
.fm-h1 { margin: 0; font-family: var(--store-font-display); font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; color: var(--store-ink); }
.fm-h2 { margin: 0 0 var(--store-space-4); font-family: var(--store-font-display); font-size: var(--store-text-2xl); font-weight: 700; color: var(--store-ink); }
.fm-h3 { margin: 0; font-family: var(--store-font-display); font-size: var(--store-text-xl); font-weight: 700; color: var(--store-ink); }
.fm-eyebrow { margin: 0 0 var(--store-space-2); color: var(--store-accent); font-size: var(--store-text-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.fm-lead { margin: var(--store-space-3) 0 0; max-width: 42rem; color: var(--store-muted); font-size: var(--store-text-lg); line-height: 1.6; }
.fm-muted { margin: var(--store-space-2) 0 0; color: var(--store-muted); }
.fm-link { color: var(--store-primary); font-weight: 600; text-align: center; text-decoration: underline; text-underline-offset: 4px; }
.fm-panel { box-sizing: border-box; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--fm-line); border-radius: var(--store-radius-lg); background: var(--store-surface); }
.fm-button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 var(--store-space-6); border: 2px solid var(--store-primary); border-radius: var(--store-radius-md); background: var(--store-primary); color: var(--store-on-accent); font-weight: 700; text-decoration: none; transition: background .2s var(--fm-ease), color .2s var(--fm-ease); }
.fm-button:hover { background: var(--store-primary-strong); border-color: var(--store-primary-strong); }
.fm-button--ghost { background: transparent; color: var(--store-primary); }
.fm-button--ghost:hover { background: var(--store-primary-soft); color: var(--store-primary-strong); }
.fm-empty { display: grid; gap: var(--store-space-4); justify-items: center; padding: var(--store-space-12) var(--store-space-4); text-align: center; color: var(--store-muted); }
.fm-breadcrumbs { display: flex; flex-wrap: wrap; gap: var(--store-space-2); margin-bottom: var(--store-space-8); color: var(--store-muted); font-size: var(--store-text-sm); }
.fm-breadcrumbs a { color: inherit; text-decoration: none; }
.fm-breadcrumbs a:hover { color: var(--store-primary); }
.fm-page-head { display: grid; gap: var(--store-space-2); margin-bottom: var(--store-space-10); }
.fm-page-head--top { padding-top: var(--fm-section); }
.fm-page-head--center { justify-items: center; text-align: center; }
.fm-badge { display: inline-flex; padding: .2rem .55rem; border-radius: var(--store-radius-full); background: var(--store-surface); color: var(--store-ink); font-size: var(--store-text-xs); font-weight: 700; box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.fm-badge--sale { background: var(--store-accent); color: var(--store-on-accent); }
.fm-badge--muted { color: var(--store-muted); }

/* Mini cart and cart */
.fm-mini { display: flex; flex: 1; flex-direction: column; min-height: 0; gap: var(--store-space-4); }
.fm-mini__head { display: flex; align-items: center; justify-content: space-between; }
.fm-mini__lines { flex: 1; min-height: 0; overflow-y: auto; }
.fm-mini__foot { display: grid; gap: var(--store-space-3); padding-top: var(--store-space-4); border-top: 1px solid var(--fm-line); }
.fm-cart { display: grid; gap: var(--store-space-8); align-items: start; margin-top: var(--store-space-8); }
@media (min-width: 1024px) { .fm-cart { grid-template-columns: minmax(0, 1fr) 22rem; } .fm-cart__aside { position: sticky; top: 6rem; } }
.fm-cart__aside { display: grid; gap: var(--store-space-4); }
.fm-cart__upsell { margin-top: var(--fm-section); }

/* Checkout */
.fm-checkout { display: grid; gap: var(--store-space-8); align-items: start; }
@media (min-width: 1024px) { .fm-checkout { grid-template-columns: minmax(0, 1fr) 24rem; } .fm-checkout__head { grid-column: 1 / -1; } .fm-checkout__summary { position: sticky; top: 2rem; } }
.fm-checkout__steps { display: grid; gap: var(--store-space-6); }
.fm-checkout__summary { box-sizing: border-box; display: grid; gap: var(--store-space-4); padding: var(--store-space-6); border-radius: var(--store-radius-lg); background: var(--store-ink); color: var(--store-on-dark); }
.fm-checkout__summary .fm-h3 { color: var(--store-on-dark); }
.fm-checkout__trust { margin: 0; color: rgb(255 255 255 / .7); font-size: var(--store-text-sm); text-align: center; }

/* Thank-you page */
.fm-thanks { display: grid; gap: var(--store-space-4); max-width: 40rem; margin: 0 auto; text-align: center; justify-items: center; }
.fm-thanks__lines { width: 100%; margin: 0; padding: 0; list-style: none; text-align: left; }
.fm-thanks__lines li, .fm-thanks__total { display: flex; justify-content: space-between; gap: var(--store-space-4); width: 100%; padding: var(--store-space-3) 0; border-bottom: 1px solid var(--fm-line); }
.fm-thanks__total { margin: 0; border: 0; font-size: var(--store-text-lg); }

/* Blog and article */
.fm-article { box-sizing: border-box; margin: 0 auto; max-width: 64rem; padding: var(--fm-section) var(--fm-gutter); }
.fm-entry { box-sizing: border-box; margin: 0 auto; max-width: var(--store-container); padding: var(--fm-section) var(--fm-gutter); }
.fm-article--narrow .fm-article__head, .fm-article--narrow .fm-article__body { max-width: 44rem; margin-inline: auto; }
.fm-article__head { display: grid; gap: var(--store-space-3); margin-bottom: var(--store-space-8); }
.fm-article__cover { display: block; width: 100%; max-height: 32rem; margin-bottom: var(--store-space-10); border-radius: var(--store-radius-lg); object-fit: cover; }
.fm-article__body { font-size: var(--store-text-lg); line-height: 1.75; }

/* Account and sign-in */
.fm-account { display: grid; gap: var(--store-space-8); align-items: start; }
@media (min-width: 1024px) { .fm-account { grid-template-columns: 14rem minmax(0, 1fr); } }
.fm-account__menu { display: grid; gap: var(--store-space-3); }
.fm-account__menu nav { display: grid; gap: var(--store-space-1); }
.fm-account__menu nav a { padding: var(--store-space-2) var(--store-space-3); border-radius: var(--store-radius-md); color: var(--store-ink); font-weight: 600; text-decoration: none; }
.fm-account__menu nav a:hover { background: var(--store-primary-soft); }
.fm-account__menu nav a.is-active { background: var(--store-primary); color: var(--store-on-accent); }
.fm-account__main { display: grid; gap: var(--store-space-4); }
.fm-auth { display: grid; gap: var(--store-space-4); justify-items: center; }
.fm-auth__card { display: grid; gap: var(--store-space-2); width: 100%; max-width: 28rem; }
.fm-auth__note { max-width: 28rem; margin: 0; color: var(--store-muted); font-size: var(--store-text-sm); text-align: center; }

/* 404 */
.fm-404 { display: grid; gap: var(--store-space-4); justify-items: center; padding-block: var(--fm-section); text-align: center; }
.fm-404__code { margin: 0; color: var(--store-primary-soft); font-family: var(--store-font-display); font-size: clamp(5rem, 16vw, 10rem); font-weight: 800; line-height: 1; }
.fm-404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--store-space-3); margin-top: var(--store-space-4); }

/* Every theme on the kit: a visible keyboard focus and no motion for those who asked for less. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--store-primary); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll- auto !important; }
}
