/* storePages.css - brands, news archive, compare pages. Prefix sp-. Uses the store's design tokens and brand colour. */
.sp, .sp * { box-sizing: border-box; }
.sp { width: 100%; max-width: var(--container-max, 1280px); margin: 0 auto; padding: var(--space-5, 20px) var(--gutter, 24px) 40px; color: var(--color-text); min-width: 0; }
.sp.sp-in { padding-left: 0; padding-right: 0; }
.sp h1, .sp h2, .sp h3 { font-family: var(--font-heading); }

.sp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 12px; font-size: 13px; color: var(--color-text-muted); list-style: none; padding: 0; }
.sp-crumbs a { color: var(--color-text-muted); text-decoration: none; }
.sp-crumbs a:hover { color: var(--brand-text); text-decoration: underline; }
.sp-crumbs li + li::before { content: "/"; margin-right: 8px; color: #b3bdc2; }
.sp-crumbs [aria-current] { color: var(--color-text); font-weight: 600; }

.sp-title { margin: 0 0 4px; font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
.sp-sub { margin: 0 0 20px; color: var(--color-text-muted); font-size: 14px; }

.sp-block { margin: 0 0 32px; }
.sp-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--color-border); }
.sp-block-head h2 { margin: 0; font-size: 1.2rem; }
.sp-block-head h2 a { color: inherit; text-decoration: none; }
.sp-block-head h2 a:hover { color: var(--brand-text); }
.sp-more { font-size: 14px; font-weight: 600; color: var(--brand-text); text-decoration: none; white-space: nowrap; }
.sp-more:hover { text-decoration: underline; }

.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.sp-card { display: flex; flex-direction: column; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition); }
.sp-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--brand); color: inherit; }
.sp-card-img { aspect-ratio: 4 / 3; background: var(--color-surface-sunk); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sp-card-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sp-card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.sp-card-name { font-size: 15px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-card-meta { font-size: 12.5px; color: var(--color-text-muted); }
.sp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: auto; }
.sp-price strong { font-size: 17px; font-weight: 700; color: var(--color-text); }
.sp-price s { font-size: 13px; color: var(--color-text-muted); }
.sp-off { font-size: 12px; font-weight: 700; color: var(--color-success); background: #e8f5e9; padding: 2px 8px; border-radius: 999px; }

.sp-empty { padding: 28px 16px; text-align: center; color: var(--color-text-muted); background: var(--color-surface-alt); border: 1px dashed var(--color-border); border-radius: var(--radius-lg); }

/* news: archive + list */
.sp-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.sp-archive { position: sticky; top: 96px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.sp-archive h2 { margin: 0; padding: 12px 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); background: var(--color-surface-alt); border-bottom: 1px solid var(--color-border); font-family: var(--font-body); }
.sp-archive details { border-bottom: 1px solid var(--color-border); }
.sp-archive details:last-child { border-bottom: 0; }
.sp-archive summary { cursor: pointer; padding: 10px 14px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.sp-archive summary::-webkit-details-marker { display: none; }
.sp-archive summary::after { content: "\25BE"; color: var(--color-text-muted); }
.sp-archive details[open] summary::after { content: "\25B4"; }
.sp-archive ul { list-style: none; margin: 0; padding: 0 0 8px; }
.sp-archive li a { display: block; padding: 6px 14px 6px 22px; font-size: 14px; color: var(--color-text); text-decoration: none; }
.sp-archive li a:hover, .sp-archive li a[aria-current] { background: var(--brand-soft); color: var(--brand-text); }
.sp-archive p { margin: 0; padding: 12px 14px; font-size: 14px; color: var(--color-text-muted); }

.sp-news-list { display: grid; gap: 16px; }
.sp-news { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 12px; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), border-color var(--transition); }
.sp-news:hover { box-shadow: var(--shadow-md); border-color: var(--brand); color: inherit; }
.sp-news-img { aspect-ratio: 4 / 3; background: var(--color-surface-sunk); border-radius: var(--radius-md); overflow: hidden; }
.sp-news-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-news-title { display: block; margin: 0 0 6px; font-size: 1.05rem; line-height: 1.3; }
.sp-news-meta { font-size: 13px; color: var(--color-text-muted); }
.sp-news-text { margin: 8px 0 0; font-size: 14px; color: var(--color-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sp-month { margin: 0 0 28px; }
.sp-month > h2 { margin: 0 0 12px; font-size: 1.15rem; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }

.sp-article { max-width: 78ch; }
.sp-article h1 { margin: 0 0 8px; }
.sp-article-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 16px; font-size: 14px; color: var(--color-text-muted); }
.sp-article-img { margin: 0 0 16px; border-radius: var(--radius-lg); overflow: hidden; }
.sp-article-img img { display: block; width: 100%; height: auto; }
.sp-article-body { font-size: 16px; line-height: 1.7; }
.sp-article-body img { max-width: 100%; height: auto; }
.sp-article-body p { margin: 0 0 14px; }
.sp-video { margin-top: 16px; }

/* compare */
.sp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.sp-compare-list { display: grid; gap: 10px; max-width: 640px; margin: 0 0 16px; }
.sp-compare-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.sp-compare-row form { margin: 0; }
.sp-compare-row .sp-name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.sp-compare-go { display: flex; justify-content: flex-end; max-width: 640px; }
.sp-note { max-width: 640px; margin: 0 0 14px; padding: 10px 14px; border-radius: var(--radius-md); background: #fff8e6; border: 1px solid #f0d9a0; color: #6b4f00; font-size: 14px; }
.specstable { display: table; width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.specsdivrow { display: table-row; }
.specsdivcell { display: table-cell; padding: 10px 14px; border-bottom: 1px solid var(--color-border); vertical-align: top; min-width: 140px; }
.specsdivrow:first-child .specsdivcell { background: var(--color-surface-sunk); font-weight: 700; position: sticky; top: 0; }
.specsdivrow:has(> .specsdivcell:only-child) { background: var(--brand-soft); }
.specsdivrow:has(> .specsdivcell:only-child) .specsdivcell { font-weight: 700; color: var(--brand-text); background: var(--brand-soft); }
.specsdivcell:first-child { font-weight: 600; background: var(--color-surface-alt); min-width: 160px; }
.specsdivrow:first-child .specsdivcell:first-child { background: var(--color-surface-sunk); }

@media (max-width: 860px) {
	.sp-layout { grid-template-columns: minmax(0, 1fr); }
	.sp-archive { position: static; }
}
@media (max-width: 520px) {
	.sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.sp-news { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
	.sp-block-head { flex-wrap: wrap; }
}
