/* Store pages (/data/). Loaded after /styles.css and uses its tokens (:root in styles.css).
   Mobile first; the site breakpoint is 768px. No external libraries. */

.store { max-width: 1000px; margin: 0 auto; padding: 24px 16px 64px; }
.store { overflow-wrap: break-word; }
.store a.js-contact { overflow-wrap: anywhere; }
.store .card { padding: 20px; overflow-x: visible; }
.store h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin: 4px 0 12px; }
.store h2 { font-size: 1.25rem; font-weight: 600; margin: 0 0 12px; letter-spacing: -0.01em; text-transform: none; color: var(--text-primary); }
.store h3 { font-size: 1rem; font-weight: 600; margin: 20px 0 8px; }
.store p, .store li { color: var(--text-secondary); line-height: 1.65; }
.store p { margin-bottom: 12px; }
.store ul, .store ol { margin: 0 0 12px 20px; }
.store li { margin-bottom: 6px; }
.store strong { color: var(--text-primary); }
.store a { color: var(--accent-text); }
.store .btn { text-decoration: none; text-align: center; }
.store .btn-primary { color: #000; }
.store .btn-secondary { color: var(--text-primary); }

.store-section { background: var(--bg-card); border-radius: var(--radius); padding: 20px; margin-top: 20px; border: 1px solid rgba(0,0,0,0.06); }
.store-section > h2:first-child { margin-top: 0; }

.breadcrumb { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 12px; }
.breadcrumb a { color: var(--accent-text); }
.breadcrumb .sep { margin: 0 6px; }

.eyebrow { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent-text); margin-bottom: 4px; }
.lede { font-size: 1.0625rem; color: var(--text-primary); }
.for-line { font-size: 0.9375rem; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.tile { background: var(--bg-elevated); border-radius: var(--radius); padding: 12px; }
.tile dt { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em; }
.tile dd { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); margin: 2px 0 0; overflow-wrap: break-word; }
.tile-wide { grid-column: span 2; }

.buy-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 8px; }
.price-card, .sample-card { border: 1px solid rgba(0,0,0,0.1); border-radius: var(--radius); padding: 16px; background: var(--bg-card); }
.price-card h2, .sample-card h2 { font-size: 1.0625rem; }
.offer { border-top: 1px solid rgba(0,0,0,0.08); padding: 12px 0; }
.offer:first-of-type { border-top: none; padding-top: 0; }
.offer-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.offer-name { font-weight: 600; color: var(--text-primary); }
.offer-price { font-weight: 700; font-size: 1.125rem; color: var(--text-primary); white-space: nowrap; }
.offer-detail { font-size: 0.875rem; margin: 4px 0 8px; }
.offer .btn { width: 100%; padding: 12px 16px; }
.btn-placeholder { outline: 2px dashed var(--danger); outline-offset: 2px; }
.policy-box { font-size: 0.8125rem; background: var(--bg-elevated); border-radius: var(--radius); padding: 10px 12px; margin: 0 0 12px; }
.policy-box p { margin: 0 0 6px; color: var(--text-primary); font-size: 0.8125rem; }
.policy-box p:last-child { margin-bottom: 0; }
.delivery, .guarantee { font-size: 0.875rem; margin: 8px 0 0; }
.guarantee { font-weight: 600; color: var(--text-primary); }
.before-buy { border: 1px solid rgba(0,0,0,0.12); border-left: 4px solid var(--accent-text); border-radius: var(--radius); padding: 12px 16px; margin: 12px 0 16px; background: var(--bg-elevated); }
.store .before-buy-title { font-size: 1rem; margin: 0 0 6px; }
.before-buy ul { margin-bottom: 8px; }
.before-buy li { margin-bottom: 4px; font-size: 0.9375rem; color: var(--text-primary); }
.before-buy p { margin: 0; }
.facts-line { font-size: 0.8125rem; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(0,0,0,0.08); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid rgba(0,0,0,0.1); border-radius: var(--radius); margin: 12px 0; }
.table-wrap:focus { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.store table { border-collapse: collapse; width: 100%; font-size: 0.8125rem; }
.store th, .store td { padding: 8px 10px; text-align: left; border-bottom: 1px solid rgba(0,0,0,0.08); vertical-align: top; }
.store th { background: var(--bg-elevated); font-weight: 600; color: var(--text-primary); }
.store td.num, .store th.num { text-align: right; white-space: nowrap; }
.store tr:last-child td { border-bottom: none; }
.store caption { text-align: left; font-size: 0.8125rem; color: var(--text-secondary); padding: 8px 10px; caption-side: bottom; }
.preview-table { min-width: 860px; }
.store td .btn { padding: 6px 12px; font-size: 0.8125rem; white-space: nowrap; }
.preview-table th[scope="row"] { min-width: 170px; }
.flag-list li { margin-bottom: 10px; }

.quote { border-left: 4px solid var(--accent); background: var(--bg-elevated); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; margin: 12px 0; }
.quote p { color: var(--text-primary); font-size: 0.9375rem; }
.quote ul { margin-bottom: 0; }

.store details { border: 1px solid rgba(0,0,0,0.1); border-radius: var(--radius); padding: 10px 14px; margin: 10px 0; }
.store summary { cursor: pointer; font-weight: 600; color: var(--text-primary); }
.store details[open] summary { margin-bottom: 8px; }

.status-soon { display: inline-block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; background: var(--bg-secondary); color: var(--text-primary); border-radius: 12px; padding: 2px 10px; }
.product-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.product-card { border: 1px solid rgba(0,0,0,0.1); border-radius: var(--radius); padding: 16px; background: var(--bg-card); }
.product-card h3 { margin-top: 0; font-size: 1.0625rem; }
.product-card .actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.product-card .actions .btn { padding: 12px 16px; }

.faq h3 { margin-top: 16px; }
.small { font-size: 0.8125rem; }
.js-contact-fallback { font-size: 0.875rem; }

/* Footer headings are h2 here (heading order: h1 > h2 > h3 on every store page); match the site's h4 look. */
.footer-col .footer-heading { color: #ffffff; font-size: 0.875rem; font-weight: 600; margin: 0 0 16px; text-transform: uppercase; letter-spacing: 0.05em; }

@media (min-width: 769px) {
  .store { padding: 40px 24px 80px; }
  .store .card, .store-section { padding: 32px; }
  .store h1 { font-size: 2.25rem; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .buy-grid { grid-template-columns: 3fr 2fr; }
  .product-cards { grid-template-columns: 1fr 1fr; }
  .product-card .actions { flex-direction: row; flex-wrap: wrap; }
  .offer .btn { width: auto; }
}

/* Desktop nav between 769 and 900px: the existing items are 2px wider than a 769-770px window. */
@media (min-width: 769px) and (max-width: 900px) {
  .nav-links { gap: 2px; }
  .nav-links > li > a, .nav-dropdown-btn { padding: 10px 12px; }
}
