/* Storefront Internal 1688 Shop Page (/shop/{sellerOpenId}) */
.storefront-shop-page {
    background-color: var(--canvas-subtle, #f6f7f9);
    padding: 16px 0 48px;
    min-height: 75dvh;
}

.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

@media (max-width: 1200px) {
    .shop-products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .shop-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .shop-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

.shop-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 14px;
}

.shop-breadcrumbs a {
    color: #475569;
    text-decoration: none;
}

.shop-breadcrumbs a:hover {
    color: #ff5b00;
}

.shop-bc-sep {
    color: #cbd5e1;
}

.shop-bc-current {
    color: #0f172a;
    font-weight: 500;
    max-width: 340px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-hero-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    margin-bottom: 18px;
}

.shop-hero-identity {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1;
}

.shop-hero-avatar {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #fff7ed;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shop-hero-avatar-fallback {
    color: #ff5b00;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-hero-info {
    min-width: 0;
    flex: 1;
}

.shop-hero-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.shop-hero-name {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-hero-raw-name {
    font-size: 12.5px;
    color: #64748b;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.shop-metric-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 3px 10px;
}

.shop-metric-pill.is-highlight {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #c2410c;
}

.shop-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 15px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
    white-space: nowrap;
}

.shop-btn-follow {
    background: #ff5b00;
    color: #ffffff;
}

.shop-btn-follow:hover {
    background: #e65100;
}

.shop-btn-follow.is-following {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fdba74;
}

.shop-btn-chat {
    background: #ffffff;
    color: #0f172a;
    border-color: #cbd5e1;
}

.shop-btn-chat:hover {
    border-color: #ff5b00;
    color: #ff5b00;
}

.shop-btn-external {
    background: #f8fafc;
    color: #475569;
    border-color: #e2e8f0;
}

.shop-btn-external:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.shop-toolbar-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-toolbar-title h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.shop-count-badge {
    font-size: 12.5px;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 9px;
    border-radius: 999px;
}

.shop-empty-state {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

@media (max-width: 768px) {
    .storefront-shop-page {
        padding-top: 10px;
    }

    .shop-hero-card {
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        gap: 14px;
    }

    .shop-hero-avatar {
        width: 52px;
        height: 52px;
    }

    .shop-hero-name {
        font-size: 16px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .shop-hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .shop-hero-actions .shop-btn-external {
        grid-column: 1 / -1;
    }

    .shop-toolbar {
        padding: 10px 12px;
    }
}

