/* Store detail — extends stores-page tokens */
.stores-page--show {
    padding-bottom: 2.5rem;
}

/* Hero — light card (matches stores listing) */
.ssd-hero {
    margin-bottom: 1.25rem;
    padding: 1.5rem 1.6rem 1.25rem;
    border-radius: 16px;
    background: linear-gradient(125deg, #ffffff 0%, #f8fcfa 45%, #eef8f4 100%);
    border: 1px solid rgba(4, 93, 72, 0.14);
    box-shadow: 0 4px 20px rgba(4, 93, 72, 0.08);
    overflow: hidden;
}

.ssd-hero__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.15rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid var(--st-border, #e6eaef);
}

.ssd-hero__main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.15rem;
    flex: 1;
    min-width: 0;
}

.ssd-hero__avatar {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid #fff;
    background: var(--st-surface-muted, #f4f6f9);
    box-shadow: 0 4px 14px rgba(4, 93, 72, 0.12);
}

.ssd-hero__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ssd-hero__content {
    flex: 1;
    min-width: 200px;
}

.ssd-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.7rem;
    margin-bottom: 0.45rem;
    border-radius: 999px;
    background: var(--st-brand, #045d48);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.ssd-hero__title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.4rem, 2.8vw, 1.95rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--st-text, #1a1f26);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ssd-hero__title .bi-patch-check-fill {
    color: #10b981;
    font-size: 1.05rem;
}

.ssd-hero__desc {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--st-text-muted, #6b7280);
    max-width: 560px;
    text-align: left !important;
}

.ssd-hero__desc a {
    color: var(--st-brand, #045d48);
    font-weight: 700;
    text-decoration: none;
}

.ssd-hero__desc a:hover {
    text-decoration: underline;
}

/* Action buttons */
.ssd-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.ssd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 42px;
    padding: 0.6rem 1.2rem;
    border-radius: 11px;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.15s;
    white-space: nowrap;
}

.ssd-btn i {
    font-size: 1rem;
    line-height: 1;
}

.ssd-btn--outline {
    border: 1.5px solid var(--st-border, #e6eaef);
    background: #fff;
    color: var(--st-text, #1a1f26) !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.ssd-btn--outline:hover {
    border-color: rgba(4, 93, 72, 0.35);
    background: var(--st-brand-light, #e8f5f1);
    color: var(--st-brand, #045d48) !important;
    box-shadow: 0 4px 12px rgba(4, 93, 72, 0.1);
    transform: translateY(-1px);
}

.ssd-btn--primary {
    border: none;
    background: linear-gradient(135deg, #034436 0%, #045d48 55%, #0a7a5c 100%);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(4, 93, 72, 0.28);
}

.ssd-btn--primary:hover {
    background: linear-gradient(135deg, #023529 0%, #034436 55%, #045d48 100%);
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(4, 93, 72, 0.35);
    transform: translateY(-1px);
}

/* Stat cards row */
.ssd-hero__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.ssd-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid var(--st-border, #e6eaef);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: border-color 0.18s, box-shadow 0.18s;
}

.ssd-stat:hover {
    border-color: rgba(4, 93, 72, 0.22);
    box-shadow: 0 4px 14px rgba(4, 93, 72, 0.08);
}

.ssd-stat__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--st-brand-light, #e8f5f1);
    color: var(--st-brand, #045d48);
    font-size: 1.05rem;
}

.ssd-stat__icon--items {
    background: #eff6ff;
    color: #1d4ed8;
}

.ssd-stat__icon--rating {
    background: #fff8e6;
    color: #b45309;
}

.ssd-stat__icon--member {
    background: #f5f3ff;
    color: #6d28d9;
}

.ssd-stat__body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.ssd-stat__label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--st-text-muted, #6b7280);
    line-height: 1.2;
}

.ssd-stat__value {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--st-text, #1a1f26);
    line-height: 1.25;
    word-break: break-word;
}

/* Sidebar store list */
.ssd-store-nav {
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-right: 0.15rem;
}

.ssd-store-nav::-webkit-scrollbar {
    width: 5px;
}

.ssd-store-nav::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.ssd-store-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--st-text, #1a1f26);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.ssd-store-link:hover {
    background: var(--st-surface-muted, #f4f6f9);
    color: var(--st-brand, #045d48);
}

.ssd-store-link.is-active {
    background: var(--st-brand-light, #e8f5f1);
    color: var(--st-brand, #045d48);
    font-weight: 700;
}

.ssd-store-link .bi-shop {
    color: var(--st-text-muted, #6b7280);
    font-size: 0.9rem;
}

.ssd-store-link.is-active .bi-shop {
    color: var(--st-brand, #045d48);
}

/* Products section */
.ssd-section {
    margin-bottom: 1.25rem;
}

.ssd-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1.15rem;
    background: var(--st-surface, #fff);
    border: 1px solid var(--st-border, #e6eaef);
    border-radius: var(--st-radius, 14px);
    box-shadow: var(--st-shadow, 0 2px 12px rgba(15, 23, 42, 0.06));
}

.ssd-section__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--st-text, #1a1f26);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ssd-section__count {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--st-brand-light, #e8f5f1);
    color: var(--st-brand, #045d48);
    font-size: 0.72rem;
    font-weight: 800;
}

.ssd-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.ssd-products-grid .gh-product-card,
.ssd-products-grid .gems-harbor-card {
    margin: 0 !important;
    height: 100%;
}

/* About panel */
.ssd-about {
    background: var(--st-surface, #fff);
    border: 1px solid var(--st-border, #e6eaef);
    border-radius: var(--st-radius, 14px);
    box-shadow: var(--st-shadow, 0 2px 12px rgba(15, 23, 42, 0.06));
    overflow: hidden;
}

.ssd-about__header {
    padding: 1rem 1.25rem;
    background: linear-gradient(125deg, #ffffff 0%, #f0faf6 100%);
    border-bottom: 1px solid var(--st-border, #e6eaef);
}

.ssd-about__header h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--st-text, #1a1f26);
}

.ssd-about__header p {
    margin: 0.25rem 0 0;
    font-size: 0.82rem;
    color: var(--st-text-muted, #6b7280);
    text-align: left !important;
}

.ssd-about__body {
    padding: 1.25rem;
}

.ssd-about__block + .ssd-about__block {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--st-border, #e6eaef);
}

.ssd-about__block-title {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--st-brand, #045d48);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ssd-about__block-text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--st-text-muted, #6b7280);
    text-align: left !important;
}

/* CTA */
.ssd-cta {
    margin-top: 1.25rem;
    padding: 1.5rem;
    text-align: center;
    background: linear-gradient(125deg, #ffffff 0%, #f0faf6 55%, #e8f5f1 100%);
    border: 1px solid rgba(4, 93, 72, 0.12);
    border-radius: var(--st-radius, 14px);
    box-shadow: var(--st-shadow, 0 2px 12px rgba(15, 23, 42, 0.06));
}

.ssd-cta p {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--st-text-muted, #6b7280);
    text-align: center !important;
}

.ssd-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.5rem;
    border-radius: 10px;
    background: var(--st-brand, #045d48);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: background 0.15s;
}

.ssd-cta__btn:hover {
    background: var(--st-brand-dark, #034436);
    color: #fff !important;
}

@media (max-width: 1200px) {
    .ssd-hero__stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .ssd-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ssd-hero {
        padding: 1.15rem;
    }

    .ssd-hero__top {
        flex-direction: column;
    }

    .ssd-hero__main {
        flex-direction: column;
        align-items: flex-start;
    }

    .ssd-hero__actions {
        width: 100%;
    }

    .ssd-btn {
        flex: 1;
        min-width: 0;
    }

    .ssd-hero__stats {
        grid-template-columns: 1fr;
    }

    .ssd-products-grid {
        grid-template-columns: 1fr;
    }
}
