/* store.css: the Solution Store tier.
   Store register on the same brand tokens: dense, uniform, self-service.
   Every value comes from theme.css tokens (root:variable law). Catalogued in
   system.html sec-store. No prices anywhere by design. */

.store-page { background: var(--surface); }
.store-wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-5); }

/* Breadcrumb (store pages do not load fundamentals.css) */
.store-crumb { font-size: var(--size-tiny); color: var(--text-muted); padding: var(--space-4) 0 var(--space-3); }
.store-crumb a { color: var(--text-muted); }
.store-crumb a:hover { color: var(--link-hover); }
.store-crumb .sep { margin: 0 var(--space-2); color: var(--neutral-400); }

/* ---- PDP layout: gallery left, buy panel right ---- */
.store-pdp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-7); align-items: start; padding-bottom: var(--space-7); }
@media (max-width: 860px) { .store-pdp { grid-template-columns: 1fr; gap: var(--space-5); } }

/* Gallery: uniform white frame, the store's strongest convention */
.store-gallery { position: sticky; top: var(--space-5); }
@media (max-width: 860px) { .store-gallery { position: static; } }
.store-gallery__main { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: var(--space-5); }
.store-gallery__main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.store-gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: var(--space-3); margin-top: var(--space-3); }
.store-thumb { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-base); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: var(--space-2); cursor: pointer; transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.store-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.store-thumb:hover { border-color: var(--border-strong); }
.store-thumb[aria-current="true"] { border-color: var(--brand-blue-mark); box-shadow: 0 0 0 1px var(--brand-blue-mark); }
.store-gallery__caption { font-size: var(--size-tiny); color: var(--text-muted); text-align: center; margin-top: var(--space-3); min-height: 1.2em; }

/* Buy panel */
.store-buy { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-base); padding: var(--space-6); }
.store-buy__eyebrow { font-size: var(--size-eyebrow); font-weight: var(--weight-bold); letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-blue-deep); margin-bottom: var(--space-2); }
.store-buy__eyebrow a { color: inherit; text-decoration: none; }
.store-buy__eyebrow a:hover { text-decoration: underline; }
.store-buy h1 { font-family: var(--font-display); font-size: var(--size-h2); font-weight: var(--weight-h1); line-height: 1.15; color: var(--text-heading); margin: 0 0 var(--space-2); }
.store-buy__outcome { font-size: var(--size-body); line-height: 1.5; color: var(--text-body); margin: 0 0 var(--space-4); }
/* The about-price: one honest number, then send them shopping */
.store-buy__price { font-family: var(--font-display); font-size: var(--size-h3); font-weight: var(--weight-h3); color: var(--text-heading); margin: 0 0 var(--space-1); }
.store-buy__pricenote { font-size: var(--size-tiny); color: var(--text-muted); margin: 0 0 var(--space-4); }

.store-meta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-5); }
.store-meta span { font-size: var(--size-tiny); color: var(--text-muted); background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-full); padding: var(--space-1) var(--space-3); white-space: nowrap; }

/* Options: choose-your-configuration radio cards */
.store-opt { margin-bottom: var(--space-5); }
.store-opt__label { font-size: var(--size-small); font-weight: var(--weight-bold); color: var(--text-heading); margin-bottom: var(--space-2); }
.store-opt__choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
.store-opt input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.store-opt label.store-choice { display: block; border: 1px solid var(--border); border-radius: var(--radius-base); padding: var(--space-2) var(--space-3); cursor: pointer; background: var(--surface-raised); transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); }
.store-opt label.store-choice:hover { border-color: var(--border-strong); }
.store-opt input:checked + label.store-choice { border-color: var(--brand-blue-mark); box-shadow: 0 0 0 1px var(--brand-blue-mark); background: var(--blue-50); }
.store-opt input:focus-visible + label.store-choice { outline: 2px solid var(--brand-blue-mark); outline-offset: 2px; }
.store-choice__name { display: block; font-size: var(--size-small); font-weight: var(--weight-bold); color: var(--text-heading); }
.store-choice__note { display: block; font-size: var(--size-tiny); color: var(--text-muted); }

/* Board picker: choices with product thumbnails */
.store-opt__choices--boards { grid-template-columns: 1fr; }
.store-choice--img { display: flex; align-items: center; gap: var(--space-3); }
.store-choice--img img { width: 56px; height: 42px; object-fit: contain; background: var(--surface-raised); border-radius: var(--radius-xs); flex-shrink: 0; }
.store-opt__concept { font-size: var(--size-tiny); color: var(--text-muted); line-height: 1.5; margin: var(--space-2) 0 0; }

/* The buy button that delivers instantly */
.store-cta { display: flex; width: 100%; align-items: center; justify-content: center; gap: var(--space-2); background: var(--brand-blue-mark); color: var(--text-on-primary); font-family: var(--font-reading); font-size: var(--size-body); font-weight: var(--weight-bold); border: none; border-radius: var(--radius-base); padding: var(--space-3) var(--space-5); text-decoration: none; cursor: pointer; transition: background var(--dur-fast) var(--ease-out); }
.store-cta:hover { background: var(--blue-600); color: var(--text-on-primary); }
.store-buy__act { display: flex; justify-content: center; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-5); }
.store-buy__fine { font-size: var(--size-tiny); color: var(--text-muted); text-align: center; margin: var(--space-3) 0 0; }
.store-cta__sub { font-size: var(--size-tiny); color: var(--text-muted); text-align: center; margin: var(--space-2) 0 0; }
.store-buy__links { display: flex; justify-content: center; gap: var(--space-4); margin-top: var(--space-4); font-size: var(--size-small); }

/* ---- Section nav (store tabs) ---- */
.store-tabs { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--border); margin: var(--space-4) 0 var(--space-6); overflow-x: auto; }
.store-tabs a { font-size: var(--size-small); font-weight: var(--weight-button); color: var(--text-muted); text-decoration: none; padding: var(--space-2) var(--space-4); border-bottom: 2px solid transparent; white-space: nowrap; }
.store-tabs a:hover { color: var(--text-heading); }
.store-tabs a.is-active { color: var(--brand-blue-deep); border-bottom-color: var(--brand-blue-mark); }

.store-section { margin-bottom: var(--space-8); }
.store-section h2 { font-family: var(--font-display); font-size: var(--size-h3); font-weight: var(--weight-h3); color: var(--text-heading); margin: 0 0 var(--space-4); }
.store-section .store-lede { max-width: 70ch; line-height: 1.6; color: var(--text-body); }

/* ---- What's in the box: part cards ---- */
.store-part { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--space-5); background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-5); margin-bottom: var(--space-4); }
@media (max-width: 640px) { .store-part { grid-template-columns: 72px minmax(0, 1fr); gap: var(--space-3); } }
.store-part__img { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-base); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: var(--space-2); }
.store-part__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.store-part__img--none { color: var(--neutral-400); font-size: var(--size-eyebrow); text-align: center; }
.store-part h3 { font-size: var(--size-h4); font-weight: var(--weight-h4); color: var(--text-heading); margin: 0 0 var(--space-1); }
.store-part__qty { font-size: var(--size-tiny); font-weight: var(--weight-bold); color: var(--text-muted); }
.store-part p { font-size: var(--size-small); line-height: 1.55; color: var(--text-body); margin: var(--space-1) 0 var(--space-2); }
.store-part__pick { font-size: var(--size-tiny); color: var(--text-muted); background: var(--surface-alt); border-left: 3px solid var(--green-500); border-radius: var(--radius-xs); padding: var(--space-2) var(--space-3); margin: var(--space-2) 0; }
.store-part[hidden] { display: none; }

/* Vendor search chips: the know-how is the search term */
.store-chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-2); }
.store-chips__label { font-size: var(--size-tiny); color: var(--text-muted); }
.store-chip { display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--size-tiny); font-weight: var(--weight-button); color: var(--brand-blue-deep); background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius-full); padding: var(--space-1) var(--space-3); text-decoration: none; transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.store-chip:hover { background: var(--blue-100); border-color: var(--blue-300); color: var(--blue-800); }
.store-chip::after { content: "\2197"; font-size: 0.75em; }

/* ---- Component (part) pages ---- */
.store-concept { font-size: var(--size-small); line-height: 1.55; color: var(--text-body); background: var(--surface-alt); border-left: 3px solid var(--brand-blue-mark); border-radius: var(--radius-xs); padding: var(--space-3) var(--space-4); margin: 0 0 var(--space-5); }
.store-getone { border-top: 1px solid var(--border); padding-top: var(--space-4); }
.store-getone__label { font-size: var(--size-small); font-weight: var(--weight-bold); color: var(--text-heading); margin: 0 0 var(--space-1); }
.store-getone__note { font-size: var(--size-tiny); color: var(--text-muted); line-height: 1.5; margin: 0 0 var(--space-3); }
.store-getone__variant { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding: var(--space-2) 0; border-bottom: 1px dashed var(--border); }
.store-getone__variant:last-child { border-bottom: none; }
.store-getone__vname { font-size: var(--size-small); font-weight: var(--weight-bold); color: var(--text-heading); min-width: 120px; }
.store-picklist { max-width: 70ch; padding-left: 1.2em; }
.store-picklist li { line-height: 1.6; margin-bottom: var(--space-2); }
.store-chip--part { background: var(--green-50); border-color: var(--green-300); color: var(--green-700); }
.store-chip--part:hover { background: var(--green-50); border-color: var(--green-500); color: var(--green-900); }
.store-chip--part::after { content: "\2192"; }

/* ---- Specs ---- */
.store-specs { width: 100%; border-collapse: collapse; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.store-specs th, .store-specs td { text-align: left; font-size: var(--size-small); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); vertical-align: top; }
.store-specs tr:last-child th, .store-specs tr:last-child td { border-bottom: none; }
.store-specs th { width: 220px; font-weight: var(--weight-bold); color: var(--text-heading); background: var(--surface-alt); }
@media (max-width: 640px) { .store-specs th { width: 40%; } }

/* ---- Success stories + related ---- */
.store-invite { background: var(--green-50); border: 1px solid var(--green-300); border-radius: var(--radius-lg); padding: var(--space-5); max-width: 70ch; }
.store-invite p { margin: 0 0 var(--space-2); line-height: 1.55; }
.store-invite p:last-child { margin-bottom: 0; }

.store-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-4); }
.store-related a { display: block; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-5); text-decoration: none; transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.store-related a:hover { border-color: var(--border-strong); box-shadow: var(--shadow-base); }
.store-related h3 { font-size: var(--size-h4); font-weight: var(--weight-h4); color: var(--brand-blue-deep); margin: 0 0 var(--space-1); }
.store-related p { font-size: var(--size-small); color: var(--text-muted); line-height: 1.5; margin: 0; }

/* ---- Storefront shelf ---- */
.store-front__title { font-family: var(--font-display); font-size: var(--size-h1); font-weight: var(--weight-h1); color: var(--text-heading); margin: var(--space-4) 0 var(--space-3); }
.store-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-4); }
.store-card { display: block; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.store-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.store-card__img { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--surface-raised); border-bottom: 1px solid var(--border); padding: var(--space-4); }
.store-card__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.store-card__body { display: block; padding: var(--space-4); }
.store-card__kind { display: block; font-size: var(--size-eyebrow); font-weight: var(--weight-bold); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-1); }
.store-card__title { display: block; font-size: var(--size-h4); font-weight: var(--weight-bold); color: var(--brand-blue-deep); margin-bottom: var(--space-1); }
.store-card__outcome { display: block; font-size: var(--size-small); line-height: 1.5; color: var(--text-body); margin-bottom: var(--space-2); }

/* Coming-soon cards + badge (honest tense, same idea as the sketches library) */
.store-card--coming { cursor: default; }
.store-card--coming:hover { border-color: var(--border); box-shadow: none; }
.store-card--coming .store-card__img img { opacity: 0.85; }
.store-badge { display: inline-block; font-size: var(--size-eyebrow); font-weight: var(--weight-bold); letter-spacing: 0.04em; text-transform: uppercase; color: var(--green-700); background: var(--green-50); border: 1px solid var(--green-300); border-radius: var(--radius-full); padding: 0 var(--space-2); margin-left: var(--space-2); }

/* FAQ (component lives in styles.css; store constrains its measure) */
.store-section .faq { max-width: 70ch; }

/* Video slot (component lives in styles.css as .fund-video; store constrains width) */
.store-video { max-width: 640px; }

/* Mock banner: remove when the store leaves review */
.store-mockbar { background: var(--neutral-800); color: var(--text-on-primary); font-size: var(--size-tiny); text-align: center; padding: var(--space-2) var(--space-4); }
