/*
 * Online stores hub (template-stores-hub.php) + store pages (single-store.php).
 * Prefix sh-. Builds on guide-components.css (gp-*: buttons, table, CTA, sticky bar).
 * Palette: #ffd23f yellow, #e63968 raspberry, #ff6b35 orange, #3d2e2c brown, #fff6f0 cream.
 * Nothing here targets .product-card or other theme components.
 */

/* ── Hero ───────────────────────────────────────────────── */
.sh-hero .guide-hero__intro { max-width: 720px; margin-bottom: 12px; }
.sh-hero__meta { font-size: 14px; color: #7a6a66; margin: 0; }
.sh-hero__meta a { color: #e63968; font-weight: 700; }

/* ── Body ───────────────────────────────────────────────── */
.sh-body.article-section .container { max-width: 1040px; }
.sh-body .sh-page > .gp:first-child { margin-top: 0; }
.sh-muted { color: #9a8a86; font-size: 13px; }
.sh-code {
    display: inline-block; font-weight: 800; background: #fff6f0; border: 1px dashed #e63968;
    border-radius: 6px; padding: 2px 8px; white-space: nowrap; color: #3d2e2c;
}

/* ── Comparison table (reuses .gp-table) ────────────────── */
.sh-table-wrap { margin-top: 0; }
.sh-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sh-table td { font-size: 14px; line-height: 1.4; }
.sh-table__logo { width: 84px; height: 48px; flex: 0 0 84px; display: flex; align-items: center; justify-content: center; }
.sh-table__logo img { width: auto; height: auto; max-width: 84px; max-height: 48px; border-radius: 0; }
.sh-table-wrap, .sh-cards, .sh-faq { padding: 0; }
.sh-table-wrap.gp-table-wrap { padding: 0; }
.sh-table-wrap .gp-table__title { padding: 18px 16px 0; }
.sh-table .gp-table__name, .article-section .sh-table .gp-table__name { font-weight: 800; color: #3d2e2c; text-decoration: none; }
.article-section .sh-table .gp-table__name:hover { color: #e63968; text-decoration: underline; }
@media (max-width: 767px) {
    .sh-table-scroll { overflow: visible; }
    .sh-table td[data-label="Specialty"] { grid-column: 1 / -1; }
}

/* ── Store cards ────────────────────────────────────────── */
.sh-cards { margin: 36px 0 8px; scroll-margin-top: 90px; }
.sh-cards__title, .article-section .sh-cards__title { font-size: 22px; font-weight: 900; margin: 0 0 16px; letter-spacing: -.02em; }
.sh-cards__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.sh-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid #ffd23f; border-radius: 14px;
    box-shadow: 0 4px 8px 3px rgba(0,0,0,.03); overflow: hidden; scroll-margin-top: 90px;
}
.sh-card__logo {
    display: flex; align-items: center; justify-content: center; height: 140px; padding: 20px;
    background: #fff; border-bottom: 1px solid #f5ece6;
}
.sh-logo { width: auto; height: auto; max-width: 100%; display: block; }
.sh-card__logo img { max-height: 100px; max-width: min(100%, 280px); }
.sh-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; }
.sh-card__title, .article-section .sh-card__title { font-size: 19px; font-weight: 900; margin: 0; padding: 0; line-height: 1.2; letter-spacing: -.01em; }
.sh-card__title a, .article-section .sh-card__title a { color: #3d2e2c; text-decoration: none; }
.sh-card__title a:hover, .article-section .sh-card__title a:hover { color: #e63968; }
.sh-card__desc { font-size: 15px; line-height: 1.55; margin: 0; }
.sh-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 0; font-size: 13px; }
.sh-facts div { margin: 0; min-width: 0; }
.sh-facts dt { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #7a6a66; }
.sh-facts dd { margin: 2px 0 0; font-weight: 700; color: #3d2e2c; }
.sh-card__actions {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    margin-top: auto; padding-top: 12px; border-top: 1px solid #f5ece6;
}
.sh-card__more, .article-section .sh-card__more { font-size: 14px; font-weight: 700; color: #e63968; text-decoration: underline; }
.sh-card__more:hover, .article-section .sh-card__more:hover { color: #ff6b35; }
@media (min-width: 768px) { .sh-cards__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .sh-card__actions .gp-btn { width: 100%; } }

/* ── Editorial content, locator block, FAQ, empty state ─── */
.sh-content { margin: 36px 0 0; }
.sh-content > :first-child { margin-top: 0; }
.sh-content:empty { display: none; }
.sh-locator { margin-top: 36px; }
.sh-faq { margin-top: 36px; }
.sh-empty { background: #fff; border: 1px dashed #e63968; border-radius: 14px; padding: 18px; margin: 0 0 28px; }

/* ── Store page (single-store.php) ──────────────────────── */
.store-page .single-post-container { padding-bottom: 100px; }
.sh-breadcrumbs { font-size: 14px; margin: 0 0 20px; color: #3d2e2c; font-weight: 400; }
.sh-breadcrumbs a, .article-section .sh-breadcrumbs a { color: #e63968; font-weight: 700; text-decoration: none; }
.sh-breadcrumbs a:hover, .article-section .sh-breadcrumbs a:hover { color: #ff6b35; }
.sh-breadcrumbs span { opacity: .6; }
.sh-store-header {
    display: flex; flex-direction: column; gap: 18px; background: #fff; border: 1px solid #ffd23f; border-radius: 14px;
    padding: 22px 20px; margin: 0 0 30px; box-shadow: 0 4px 8px 3px rgba(0,0,0,.03);
}
.sh-store-header__logo { display: flex; align-items: center; justify-content: center; }
.sh-store-header__logo img { max-width: 200px; max-height: 120px; }
.sh-store-header__text { min-width: 0; }
.sh-store-header__title, .article-section .sh-store-header__title { margin: 0 0 10px; }
.sh-store-header__blurb { font-size: 16px; line-height: 1.55; margin: 0 0 14px; }
.sh-store-header__facts { margin-bottom: 4px; }
.sh-store-header__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.sh-store-header__alt, .article-section .sh-store-header__alt { font-size: 14px; font-weight: 700; color: #e63968; text-decoration: underline; }
.sh-store-header__alt:hover, .article-section .sh-store-header__alt:hover { color: #ff6b35; }
@media (min-width: 640px) {
    .sh-store-header { flex-direction: row; align-items: flex-start; gap: 26px; padding: 26px; }
    .sh-store-header__logo { flex: 0 0 200px; min-height: 120px; }
    .sh-store-header__text { flex: 1 1 auto; }
}
@media (max-width: 639px) { .sh-store-header__actions .gp-btn { width: 100%; } }
.store-page .post-content { line-height: 1.6; font-size: 18px; }
.store-page .post-content p { margin-bottom: 24px; }
.store-page .post-content h2 { font-size: 20px; font-weight: 900; margin: 40px 0 20px; }
@media (min-width: 768px)  { .store-page .post-content h2 { font-size: 24px; } }
@media (min-width: 1024px) { .store-page .post-content h2 { font-size: 26px; } }
.store-page .post-content a { text-decoration: underline; color: inherit; transition: color .25s ease; }
.store-page .post-content a:hover { text-decoration: none; color: #ff6b35; }
.sh-store-cta { margin: 36px 0 0; }

/* Phone layout of the comparison table: keep wide logos readable next to the store name. */
@media (max-width: 767px) {
    .gp-table .sh-table__logo { width: 84px; max-width: 84px; height: 48px; max-height: 48px; flex: 0 0 84px; }
    .gp-table .sh-table__logo img { width: auto; height: auto; max-width: 84px; max-height: 48px; }
    .sh-table .gp-table__pcell { gap: 12px; }
}
