/* Shared layout for store guide items and FAQ pages. Load after the store's market-theme.css. */
.store-page *, .store-page *::before, .store-page *::after { box-sizing: border-box; }
.store-page { margin: 0; line-height: 1.6; }
.store-page .skip-link { position: fixed; top: 12px; left: 12px; padding: 12px; transform: translateY(-200%); }
.store-page .skip-link:focus { transform: none; }
.store-page main { width: min(100% - 32px, 880px); margin: clamp(36px, 7vh, 64px) auto 0; }
.store-page main:focus { outline: none; }
.store-page h1, .store-page h2, .store-page h3 { margin: 0; font-family: var(--ws-display); letter-spacing: -.03em; }
.store-page h1 { font-size: clamp(2.25rem, 6vw, 3.25rem); font-weight: 600; line-height: 1.1; }
.store-page h1 em { color: var(--ws-accent); font-style: normal; }
.store-page a { color: var(--ws-accent); text-underline-offset: 3px; }
.store-page a[href^="tel:"] { white-space: nowrap; }
.page-intro { margin-bottom: 28px; }
.page-intro > p:last-child { max-width: 60ch; margin: 14px 0 0; color: var(--ws-muted); font-size: 1.0625rem; }

.product-search { margin-bottom: 32px; padding: 20px; border: 1px solid var(--ws-line); border-radius: 18px; background: var(--ws-surface); }
.product-search label { display: block; margin-bottom: 8px; }
.product-search .field { display: flex; }
.product-search input { flex: 1; min-width: 0; padding: 15px 14px; font: inherit; }
#product-count { margin: 10px 0 0; color: var(--ws-muted); font-size: .875rem; }

.product-group { margin-bottom: 32px; }
.product-group h2 { margin-bottom: 14px; font-size: 1.375rem; font-weight: 600; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.product { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--ws-line); border-radius: 14px; background: var(--ws-surface); }
.product h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.product .brand { margin: -6px 0 0; color: var(--ws-accent); font-size: .875rem; font-weight: 600; }
.product .description { margin: 0; color: var(--ws-muted); font-size: .875rem; line-height: 1.5; }
.product dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; }
.product dt { color: var(--ws-muted); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.product dd { margin: 0; font-size: .9375rem; }
.stock { align-self: flex-start; margin: auto 0 0; padding: 3px 10px; border: 1px solid currentColor; border-radius: 999px; font-size: .8125rem; font-weight: 600; }
.stock-in { color: #8fe3a8; }
.stock-low { color: #ffd27a; }
.stock-out { color: #ffb4b4; }
.stock-unknown { color: var(--ws-muted); }
.empty-state, .page-cta { color: var(--ws-muted); }
.page-cta { margin: 8px 0 0; padding-top: 20px; border-top: 1px solid var(--ws-line); }

.faq-list { display: grid; gap: 10px; }
.faq { border: 1px solid var(--ws-line); border-radius: 14px; background: var(--ws-surface); }
.faq summary { display: flex; min-height: 56px; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; cursor: pointer; font-family: var(--ws-display); font-size: 1.0625rem; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; color: var(--ws-accent); font-size: 1.375rem; line-height: 1; }
.faq[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline: 3px solid var(--ws-focus); outline-offset: 2px; border-radius: 14px; }
.faq .answer { padding: 0 18px 16px; color: var(--ws-muted); }
.faq .answer p { margin: 0; }
.faq-checked { margin: 18px 0 0; color: var(--ws-muted); font-size: .875rem; }

@media (max-width: 480px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .product-search { padding: 16px; }
}
@media (forced-colors: active) {
  .product, .faq, .product-search, .stock { border: 1px solid CanvasText; }
}
